]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
_AC_PROG_CC_C99: fix typo (#110396)
authorZack Weinberg <zackw@panix.com>
Wed, 9 Dec 2020 02:35:45 +0000 (21:35 -0500)
committerZack Weinberg <zackw@panix.com>
Wed, 9 Dec 2020 02:35:45 +0000 (21:35 -0500)
_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.

lib/autoconf/c.m4

index fe217cad679f2f4506c3e20dee64e7e3e3b83a24..601c2df41bd4ee602065ce041a1173aca8a0f52e 100644 (file)
@@ -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)