summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-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