From: Mark Wielaard Date: Wed, 17 Jan 2018 12:30:35 +0000 (+0100) Subject: Make sure we can compile in C99 mode. X-Git-Tag: VALGRIND_3_14_0~177 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29cc9fc0ed871d8347a9e5f8194473efa870231b;p=thirdparty%2Fvalgrind.git Make sure we can compile in C99 mode. Use AC_PROG_CC_C99 in configure.ac to make sure the compiler we use is always in C99 mode. If we detect the compiler doesn't support C99 then error out. --- diff --git a/configure.ac b/configure.ac index 3cc9732eca..901c595021 100644 --- a/configure.ac +++ b/configure.ac @@ -100,6 +100,11 @@ else fi rm $tmpfile +# Make sure we can compile in C99 mode. +AC_PROG_CC_C99 +if test "$ac_cv_prog_cc_c99" == "no"; then + AC_MSG_ERROR([Valgrind relies on a C compiler supporting C99]) +fi # We don't want gcc < 3.0 AC_MSG_CHECKING([for a supported version of gcc])