summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2009-09-14 10:36:08 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2009-09-14 10:36:08 +0100
commit12470fd7010ea0748c8dcc9014d1cd0f52f51a3b (patch)
tree9bbc3c9948774f2a3703a32e39ab2f0bde673c9c
parent9c2790ccc48392bfe039626ebb383070aa18fe56 (diff)
[configure] Setup GL CFLAGS before checking for GLX
-rw-r--r--configure.ac3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index b4b1cc37..d2c1231a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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