On Fri, 18 Dec 2020 17:41:45 -0500, Brad Smith wrote: > Here is a port for autoconf 2.70.
You might want to wait until the 2.70.1 release for the bug fixes, though it's not clear when that will arrive. At the very least you will need the following patch. Otherwise, the compiler test for C99 support will not work properly with base gcc. - todd commit efc940dc82763b7b2d6e65f04d15d5972d829c0a Author: Zack Weinberg <za...@panix.com> Date: Tue Dec 8 21:35:45 2020 -0500 _AC_PROG_CC_C99: fix typo (#110396) _AC_PROG_CC_C99 was using the wrong test program. Fixes #110396, reported anonymously. * lib/autoconf/c.m4 (_AC_PROG_CC_C99): Use the C99 test program, not the C89 test program. diff --git a/lib/autoconf/c.m4 b/lib/autoconf/c.m4 index fe217cad..601c2df4 100644 --- a/lib/autoconf/c.m4 +++ b/lib/autoconf/c.m4 @@ -1559,7 +1559,7 @@ dnl SVR4 -Xc -D__EXTENSIONS__ # option to output variable CC to make it so. AC_DEFUN([_AC_PROG_CC_C99], [AC_REQUIRE([_AC_C_C99_TEST_PROGRAM])]dnl -[_AC_C_STD_TRY([c99], [ac_c_conftest_c89_program], +[_AC_C_STD_TRY([c99], [ac_c_conftest_c99_program], dnl Try dnl GCC -std=gnu99 (unused restrictive modes: -std=c99 -std=iso9899:1999) dnl IBM XL C -qlanglvl=extc1x (V12.1; does not pass C11 test)