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, 29 Dec 2004 17:09:37 +0000
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.3 (gnu/linux)

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

Dan Manthey <address@hidden> writes:

> I'm using autoconf 2.59, so I copied the relevant parts of the new
> AC_PROG_CC_C99 macro to my aclocal.m4 to use it.  I used the version Roger
> Leigh posted as a diff on December 2nd.
>
> I noticed two issues:
>
> I had to change the order in which flags were tried in order to test for
> "C99-plus-extensions" before "strict-C99" as discussed.  For instance,
> although -std=c99 was tried after -std=gnu99, it should also be tried after
> -qlanglvl=extc99.  This probably doesn't practically matter for any current
> compilers, but putting all extended flags before all strict flags increases
> the chances that the right thing will happen with future tools.

OK, I've rearranged the order to suit.

> Much more importantly, $ac_cv_prog_cc_c99 is set to 'no' if C99 cannot be
> supported (That's all well and good.), but the string ' no' is appended to
> $CC in this case, which makes pretty much all future attempts to compile
> gratuitiously fail.

That shouldn't happen.  Please could you try again with the attached
patch.  Changes in this patch from the previous one:

- - changed order of C99-enabling options
- - don't set $CC on failure
- - AC_PROG_CC_STDC assigns and caches ac_cv_prog_cc_stdc (for backwards
  compatibility)
- - some documentation fixes


Paul, the FSF have received the copyright assignment (Ted Teah said it
would be processed after the new year).  Unless there are any other
requests for changes, this is what I'd like to propose for inclusion.


Happy Christmas!
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/>

iD8DBQFB0uSWVcFcaSW/uEgRArBKAJ9UQU46XAv2Mxsiu91KDGCGVVBUkwCfZY6L
bx2eqYtvMAXAHjD9C8BvpcQ=
=4GWF
-----END PGP SIGNATURE-----

Attachment: rl-autoconf-c99-3.diff
Description: AC_PROG_CC_C99 /3


reply via email to

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