autoconf
[Top][All Lists]
Advanced

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

Re: AC_PROG_CC_C99


From: Roger Leigh
Subject: Re: AC_PROG_CC_C99
Date: Wed, 01 Dec 2004 22:29:11 +0000
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.3 (gnu/linux)

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

"Steven G. Johnson" <address@hidden> writes:

> Roger Leigh wrote:
>> # Try
>> # GCC                        -std=gnu99 -std=c99 -std=iso9899:1999
>> # AIX                        -qlanglvl=extc99 -qlanglvl=stdc99
>
> Here are a few more, gleaned from Google (not tested):

Thanks.  I've implemented these, as well as Paul and Ralf's other
suggestions.  I've added all these to c.m4, and the diff against the
c.m4 in 2.59a is attached.

One change I've made is added arguments to AC_PROG_CC_C89,
AC_PROG_CC_C89 and AC_PROG_CC_STDC to allow custom code to run on
success or failure, to e.g. abort configure if there isn't a C99
compiler available.  It should be completely backward-compatible with
existing code.  Is this OK?

Any comments will be gladly received.  (Apologies if the formatting is
a little weird--it's over two years since I last wrote any m4 other
than basic configure scripts.)

I can re-do the diff against autoconf CVS if required--I just don't
have a copy right now.


Regards,
Roger


- -- 
Roger Leigh
                Printing on GNU/Linux?  http://gimp-print.sourceforge.net/
                Debian GNU/Linux        http://www.debian.org/
                GPG Public Key: 0x25BFB848.  Please sign and encrypt your mail.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>

iD8DBQFBrkWNVcFcaSW/uEgRAhqIAKCPfZcOoHIKG4mhNCkXLMaZEMcMKQCgzCkk
ZfFi03UQGGVUOhDjOTJ4eug=
=Ck+w
-----END PGP SIGNATURE-----

Attachment: rl-autoconf-c99.diff
Description: Patch to add C99 support


reply via email to

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