autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: c99, autoconf and a couple compilers


From: Eric Blake
Subject: Re: c99, autoconf and a couple compilers
Date: Tue, 25 Sep 2007 06:24:38 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070728 Thunderbird/2.0.0.6 Mnenhy/0.7.5.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Ted,

According to Ted Bullock on 9/24/2007 8:10 AM:
> I have been testing the build of my application (httperf) with a variety
> of different compilers
> 
> (using autoconf 2.61)
> 
> with AC_PROG_CC_C99
> 
> *icc*
> The autoconf configure script is using the -c99 option which should be
> -std=c99.  icc reports "option '-c99' is deprecated and will be removed
> in a future release."
> 
> 
> *HP cc*
> Compiler needs the -AC99 option to switch to c99 mode.

Thanks for the report.  I'm installing the following to autoconf (and
wonder if something similar should be done in gnulib):

2007-09-25  Eric Blake  <address@hidden>

        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.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG+P4G84KuGfSFAYARAjI2AKCH7cXppzkA1174tatf5kKZ15ZSmgCfVf+v
FplaPVA04pEebpcOJVDPPgY=
=ySXr
-----END PGP SIGNATURE-----
>From 6049d64ea912867a4449225cc81e35665508b7aa Mon Sep 17 00:00:00 2001
From: Eric Blake <address@hidden>
Date: Tue, 25 Sep 2007 06:23:03 -0600
Subject: [PATCH] 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.

Signed-off-by: Eric Blake <address@hidden>
---
 ChangeLog         |    8 ++++++++
 lib/autoconf/c.m4 |    5 +++--
 2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 235d1f0..102aa72 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2007-09-25  Eric Blake  <address@hidden>
+
+       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  <address@hidden>
 
        Whenever possible, use the vertical bar as sed delimiter.
diff --git a/lib/autoconf/c.m4 b/lib/autoconf/c.m4
index a31b772..7e2d76e 100644
--- a/lib/autoconf/c.m4
+++ b/lib/autoconf/c.m4
@@ -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
 
 
-- 
1.5.3.2


reply via email to

[Prev in Thread] Current Thread [Next in Thread]