From 0584101e15539dc022db27bba801e5d6e8d4679b Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Thu, 8 Dec 2016 10:07:09 +0200 Subject: Unbreak gcc options checking Commit c810a0aca3f1148d2072d44b91b8cc9caeb4cf19 changed the gcc flag test to include a call to alloca() which at least on GCC 6.2 just causes all the tests to fail with implicit declaration warnings which are errors since we test with -Werror. Include to avoid the warnings and thus make the test functional again. --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 2eaf97ed5..0e5188646 100644 --- a/configure.ac +++ b/configure.ac @@ -43,7 +43,8 @@ if test "$GCC" = yes; then echo for flag in $cflags_to_try; do CFLAGS="$CFLAGS $flag -Werror" - AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[alloca(100);]])],[ + AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[#include + alloca(100);]])],[ echo " $flag" RPMCFLAGS="$RPMCFLAGS $flag" ],[]) -- cgit v1.2.1