]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* lib/autoconf/c.m4 (AC_PROG_CC_STDC): If ac_cv_prog_cc_stdc
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sun, 7 May 2006 20:36:01 +0000 (20:36 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sun, 7 May 2006 20:36:01 +0000 (20:36 +0000)
is set to `no', then that overrides and sets ac_cv_prog_cc_c89
and ac_cv_prog_cc_c99 to `no', for backward compatibility.
* NEWS: Update.

ChangeLog
NEWS
lib/autoconf/c.m4

index c727112c445c5c44cb382d4eba621a1685f078b2..dd904894ed0dc9c7e01e188e109cbaa1401b5c29 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2006-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * lib/autoconf/c.m4 (AC_PROG_CC_STDC): If ac_cv_prog_cc_stdc
+       is set to `no', then that overrides and sets ac_cv_prog_cc_c89
+       and ac_cv_prog_cc_c99 to `no', for backward compatibility.
+       * NEWS: Update.
+
 2006-05-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Take care not to
diff --git a/NEWS b/NEWS
index 141cf91a9aa7c926839ea1de63cdf0e84534b446..37764c2eb67e53e0454f63dcb9f34a7bc74bd8f1 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,10 @@
 * Major changes in Autoconf 2.59d
 
+** AC_PROG_CC_STDC
+  Passing 'ac_cv_prog_cc_stdc=no' to 'configure' now sets ac_cv_prog_cc_c99
+  and ac_cv_prog_cc_c89 to 'no' as well, for backward compatibility with
+  obsolete K&R tests in the Automake test suite.
+
 * Major changes in Autoconf 2.59c
 
   Released 2006-04-12, by Ralf Wildenhues.
index eb911d9ae8aa2a6e82fa90d8d8ec66b92c62baba..7dcaf6d0d8fa7331bdb307ab4539fdb853f73d43 100644 (file)
@@ -1208,23 +1208,17 @@ 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],
-                                  [ac_cv_prog_cc_stdc=no])])dnl
+  AS_CASE([$ac_cv_prog_cc_stdc],
+    [no], [ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no],
+         [_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],
+                             [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
-    xno)
-      AC_MSG_RESULT([unsupported])
-      ;;
-    *)
-      if test "x$ac_cv_prog_cc_stdc" = x; then
-       AC_MSG_RESULT([none needed])
-      else
-       AC_MSG_RESULT([$ac_cv_prog_cc_stdc])
-      fi
-      ;;
-  esac
+  AS_CASE([$ac_cv_prog_cc_stdc],
+    [no], [AC_MSG_RESULT([unsupported])],
+    [''], [AC_MSG_RESULT([none needed])],
+          [AC_MSG_RESULT([$ac_cv_prog_cc_stdc])])
 ])