configure: use $ERROR_CFLAGS instead of hard-coding -Werror
authorTim-Philipp Müller <tim@centricular.com>
Sun, 22 Jun 2014 21:04:31 +0000 (22:04 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sun, 22 Jun 2014 21:04:31 +0000 (22:04 +0100)
https://bugzilla.gnome.org//show_bug.cgi?id=731692

configure.ac

index 214f39f..b726bd9 100644 (file)
@@ -852,7 +852,7 @@ if test "x$HAVE_GL" = "xyes" -a "x$HAVE_GLES2" = "xyes"; then
 "
   AC_MSG_CHECKING([whether it is possible to include both GL and GLES2 headers])
   save_CPPFLAGS="$CPPFLAGS"
-  CPPFLAGS="$CPPFLAGS -Werror"
+  CPPFLAGS="$CPPFLAGS $ERROR_CFLAGS"
   AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[$GL_INCLUDES]], [[
     #if !defined(GL_FALSE)
     #error Failed to include GL headers