mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2025-12-24 17:10:11 +01:00
[configure] Setup GL CFLAGS before checking for GLX
This commit is contained in:
parent
9c2790ccc4
commit
12470fd701
1 changed files with 3 additions and 0 deletions
|
|
@ -366,9 +366,12 @@ CAIRO_ENABLE_FUNCTIONS(egl, EGL, auto, [
|
|||
|
||||
CAIRO_ENABLE_FUNCTIONS(glx, GLX, auto, [
|
||||
if test "x$need_glx_functions" = "xyes"; then
|
||||
save_CFLAGS="$CFLAGS"
|
||||
CFLAGS="$CFLAGS $gl_CFLAGS $gl_NONPKGCONFIG_CFLAGS"
|
||||
AC_CHECK_HEADER(GL/glx.h,, [use_glx="no (GLX headers not found)"])
|
||||
glx_NONPKGCONFIG_CFLAGS=
|
||||
glx_NONPKGCONFIG_LIBS="-lGL"
|
||||
CFLAGS="$save_CFLAGS"
|
||||
else
|
||||
use_glx="no (not required by any backend)"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue