mirror of
git://git.sv.gnu.org/autoconf
synced 2025-01-18 10:45:15 +08:00
* lib/autoconf/c.m4 (AC_PROG_CC_STDC): If we cannot enable C99
nor C89 mode, set `$ac_cv_prog_cc_stdc' to `no' instead of trying to execute the command `no'.
This commit is contained in:
parent
df1fe4b493
commit
4bed79349d
@ -1,5 +1,9 @@
|
||||
2006-03-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
|
||||
|
||||
* lib/autoconf/c.m4 (AC_PROG_CC_STDC): If we cannot enable C99
|
||||
nor C89 mode, set `$ac_cv_prog_cc_stdc' to `no' instead of
|
||||
trying to execute the command `no'.
|
||||
|
||||
* lib/autoconf/lang.m4 (AC_LANG_CONFTEST): AC_DEFUN this, not
|
||||
m4_define, so that the requirements of `AC_INCLUDES_DEFAULT' are
|
||||
expanded outside.
|
||||
|
@ -1054,7 +1054,8 @@ AC_DEFUN([AC_PROG_CC_C99],
|
||||
AC_DEFUN([AC_PROG_CC_STDC],
|
||||
[ AC_REQUIRE([AC_PROG_CC])dnl
|
||||
_AC_PROG_CC_C99([ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99],
|
||||
[_AC_PROG_CC_C89([ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89], [no])])dnl
|
||||
[_AC_PROG_CC_C89([ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89],
|
||||
[ac_cv_prog_cc_stdc=no])])dnl
|
||||
AC_MSG_CHECKING([for $CC option to accept ISO Standard C])
|
||||
AC_CACHE_VAL([ac_cv_prog_cc_stdc], [])
|
||||
case "x$ac_cv_prog_cc_stdc" in
|
||||
|
Loading…
Reference in New Issue
Block a user