another cc-stdc bug fix
authorTom Tromey <tromey@redhat.com>
Thu, 25 Sep 1997 05:50:05 +0000 (05:50 +0000)
committerTom Tromey <tromey@redhat.com>
Thu, 25 Sep 1997 05:50:05 +0000 (05:50 +0000)
ChangeLog
m4/ccstdc.m4

index e3bd8f0..d58342f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Wed Sep 24 23:48:26 1997  Tom Tromey  <tromey@cygnus.com>
+
+       * m4/ccstdc.m4 (AM_PROG_CC_STDC): Make sure this is run before
+       AC_PROG_CPP.  From Markus Oberhumer.
+
 Fri Sep 12 00:04:19 1997  Paul Eggert  <eggert@twinsun.com>
 
        * m4/ccstdc.m4 (AM_PROG_CC_STDC): Don't look at __STDC__;
index 74e8c5e..d8b6cd2 100644 (file)
@@ -24,6 +24,10 @@ AC_DEFUN(AM_PROG_CC_STDC,
 [AC_REQUIRE([AC_PROG_CC])
 AC_BEFORE([$0], [AC_C_INLINE])
 AC_BEFORE([$0], [AC_C_CONST])
+dnl Force this before AC_PROG_CPP.  Some cpp's, eg on HPUX, require
+dnl a magic option to avoid problems with ANSI preprocessor commands
+dnl like #elif.
+AC_BEFORE([$0], [AC_PROG_CPP])
 AC_MSG_CHECKING(for ${CC-cc} option to accept ANSI C)
 AC_CACHE_VAL(am_cv_prog_cc_stdc,
 [am_cv_prog_cc_stdc=no