autoconf 2.73 will default to C23 by default, which means that the >C99
detection logic in configure.ac will fail because it only handles c11
and c99.
Instead of adding c23 to the list and then breaking again in the future,
flip the logic around (as suggested by Zack Weinberg) and check
explicitly for just c89.
Closes #1806.
Signed-off-by: Ross Burton <ross.burton@arm.com>
# Require C99 support
#
AS_CASE([$ac_prog_cc_stdc],
- [c11 | c99], [AC_DEFINE([C99_MACROS], 1, [C99 macros are supported])],
- [AC_MSG_WARN([[Compiler does not support C99. It may not be able to compile the project.]])]
-)
+ [c89],
+ [AC_MSG_WARN([[Compiler does not support C99. It may not be able to compile the project.]])],
+ [AC_DEFINE([C99_MACROS], 1, [C99 macros are supported])])
AM_CONDITIONAL(CROSS_COMPILING, test "$cross_compiling" = yes)