]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Improve C99 detection.
authorEric Blake <ebb9@byu.net>
Tue, 25 Sep 2007 12:23:03 +0000 (06:23 -0600)
committerEric Blake <ebb9@byu.net>
Tue, 25 Sep 2007 12:24:55 +0000 (06:24 -0600)
* lib/autoconf/c.m4 (_AC_PROG_CC_C99): Add support for HP cc, and
avoid deprecation warning with icc.
* THANKS: Update.
Reported by Ted Bullock.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
THANKS
lib/autoconf/c.m4

index 235d1f0661db15189bba4f8fe365951b7eae6081..102aa7267751694f79c36195e638cbba77a83b7a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2007-09-25  Eric Blake  <ebb9@byu.net>
+
+       Improve C99 detection.
+       * lib/autoconf/c.m4 (_AC_PROG_CC_C99): Add support for HP cc, and
+       avoid deprecation warning with icc.
+       * THANKS: Update.
+       Reported by Ted Bullock.
+
 2007-09-24  Jim Meyering  <jim@meyering.net>
 
        Whenever possible, use the vertical bar as sed delimiter.
diff --git a/THANKS b/THANKS
index fbffc1be0c992ae68da7c7a5e1d294794e0d86ea..13318e0deec033aaa30e93f7932541f2823daa8a 100644 (file)
--- a/THANKS
+++ b/THANKS
@@ -308,6 +308,7 @@ Stu Grossman                grossman@cygnus.com
 Sumit Pandya                sumit@elitecore.com
 Syd Polk                    spolk@cygnus.com
 T.E. Dickey                 dickey@clark.net
+Ted Bullock                 tbullock@canada.com
 Theodore Ts'o               tytso@mit.edu
 Thien-Thi Nguyen            ttn@gnu.org
 Thomas Winder               tom@vlsivie.tuwien.ac.at
index a31b77271241e9f856695d1ea46e19b3ac62ec98..7e2d76e95f9a5e057b15676f38bf9b72a85a9ea1 100644 (file)
@@ -1299,13 +1299,14 @@ test_varargs (const char *format, ...)
 dnl Try
 dnl GCC                -std=gnu99 (unused restrictive modes: -std=c99 -std=iso9899:1999)
 dnl AIX                -qlanglvl=extc99 (unused restrictive mode: -qlanglvl=stdc99)
-dnl Intel ICC  -c99
+dnl HP cc      -AC99
+dnl Intel ICC  -std=c99, -c99 (deprecated)
 dnl IRIX       -c99
 dnl Solaris    -xc99=all (Forte Developer 7 C mishandles -xc99 on Solaris 9,
 dnl            as it incorrectly assumes C99 semantics for library functions)
 dnl Tru64      -c99
 dnl with extended modes being tried first.
-[[-std=gnu99 -c99 -xc99=all -qlanglvl=extc99]], [$1], [$2])[]dnl
+[[-std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99]], [$1], [$2])[]dnl
 ])# _AC_PROG_CC_C99