From: Florian K. <fl...@ei...> - 2025-01-08 09:32:53
|
On 08.01.25 06:55, Paul Floyd via Valgrind-developers wrote: > > I'm all for it. Does the oldest GCC used for the nightlies and buildbot support > C11? > We could check this in and see what happens. A word from the platform maintainers would be good, too. Florian diff --git a/configure.ac b/configure.ac index cb1dc69d3..1e2723cc1 100755 --- a/configure.ac +++ b/configure.ac @@ -50,10 +50,10 @@ CXXFLAGS="$CXXFLAGS" #---------------------------------------------------------------------------- AC_PROG_LN_S -m4_version_prereq([2.70], [AC_PROG_CC], [AC_PROG_CC_C99]) -# Make sure we can compile in C99 mode. -if test "$ac_cv_prog_cc_c99" = "no"; then - AC_MSG_ERROR([Valgrind relies on a C compiler supporting C99]) +m4_version_prereq([2.70], [AC_PROG_CC], [AC_PROG_CC_C11]) +# Make sure we can compile in C111 mode. +if test "$ac_cv_prog_cc_c11" = "no"; then + AC_MSG_ERROR([Valgrind relies on a C compiler supporting C11]) fi AC_PROG_CPP AC_PROG_CXX |