[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: |
Thu, 02 Dec 2004 16:07:07 +0000 |
User-agent: |
Gnus/5.1007 (Gnus v5.10.7) Emacs/21.3 (gnu/linux) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Paul Eggert <address@hidden> writes:
> Roger Leigh <address@hidden> writes:
>
>> 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.
>
> I'd rather avoid this complexity. Isn't it easy enough to abort based
> on the value of ac_cv_prog_cc_c89 (or whatever)?
Yes, but I didn't know if users were allowed access to those
internals. I've reverted this (but kept it for internal use).
> Can you please also check for the following features?
>
> variable declarations in for loops
> last member of a struct may be an incomplete array type
> varargs macros
> named initialization of structs
> variable length arrays
> long long
>
> These are all features that C99-ish programs are likely to want.
>
>> +# AC_PROG_CC_STDC ([ACTION-IF-AVAILABLE], [ACTION-IF-UNAVAILABLE])
>> +# ----------------------------------------------------------------
>> +AC_DEFUN([AC_PROG_CC_STDC],
>> +[AC_PROG_CC_C99([$1], [$2])])
>
> This isn't quite right. It should try for C99 mode, and failing that
> it should try for C89 mode.
I've made the above changes, additions and updates NEWS and
autoconf.texi. A diff against the current CVS is attached.
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/>
iD8DBQFBrz2KVcFcaSW/uEgRAqTIAJoC7gAtOqwJ41oSkPMx8ePMzFW90gCfQUJe
FywvxT3sK1EVGjTyRM6837U=
=l2Te
-----END PGP SIGNATURE-----
rl-autoconf-c99-2.diff
Description: C99 patch take 2
Re: AC_PROG_CC_C99, Steven G. Johnson, 2004/12/01
- Re: AC_PROG_CC_C99, Roger Leigh, 2004/12/01
- Re: AC_PROG_CC_C99, Paul Eggert, 2004/12/01
- Re: AC_PROG_CC_C99,
Roger Leigh <=
- Re: AC_PROG_CC_C99, Kevin P. Fleming, 2004/12/02
- Re: AC_PROG_CC_C99, Paul Eggert, 2004/12/02
- Re: AC_PROG_CC_C99, Kevin P. Fleming, 2004/12/02
- Re: AC_PROG_CC_C99, Paul Eggert, 2004/12/02
- Re: AC_PROG_CC_C99, Ralf Wildenhues, 2004/12/03
- Re: AC_PROG_CC_C99, Paul Eggert, 2004/12/03
- Re: AC_PROG_CC_C99, Kevin P. Fleming, 2004/12/03
Re: AC_PROG_CC_C99, Paul Eggert, 2004/12/02
Re: AC_PROG_CC_C99, Steven G. Johnson, 2004/12/03
Re: AC_PROG_CC_C99, Steven G. Johnson, 2004/12/03