]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Make sure we can compile in C99 mode.
authorMark Wielaard <mark@klomp.org>
Wed, 17 Jan 2018 12:30:35 +0000 (13:30 +0100)
committerMark Wielaard <mark@klomp.org>
Wed, 17 Jan 2018 12:30:35 +0000 (13:30 +0100)
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.

configure.ac

index 3cc9732eca3fa2a999df5b16041bb487f34472cc..901c59502114b5b0b74b09ff0899993e5339e531 100644 (file)
@@ -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])