configure: use $ERROR_CFLAGS instead of hard-coding -Werror
https://bugzilla.gnome.org//show_bug.cgi?id=731692
This commit is contained in:
parent
a84406c09b
commit
5f00de4601
@ -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])
|
AC_MSG_CHECKING([whether it is possible to include both GL and GLES2 headers])
|
||||||
save_CPPFLAGS="$CPPFLAGS"
|
save_CPPFLAGS="$CPPFLAGS"
|
||||||
CPPFLAGS="$CPPFLAGS -Werror"
|
CPPFLAGS="$CPPFLAGS $ERROR_CFLAGS"
|
||||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[$GL_INCLUDES]], [[
|
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[$GL_INCLUDES]], [[
|
||||||
#if !defined(GL_FALSE)
|
#if !defined(GL_FALSE)
|
||||||
#error Failed to include GL headers
|
#error Failed to include GL headers
|
||||||
|
Loading…
x
Reference in New Issue
Block a user