[Top][All Lists]

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

Re: AC_PROG_CC_* shouldn't append multiple options

From: Paul Eggert
Subject: Re: AC_PROG_CC_* shouldn't append multiple options
Date: Thu, 20 Sep 2012 22:20:35 -0700
User-agent: Mozilla/5.0 (X11; Linux i686; rv:15.0) Gecko/20120827 Thunderbird/15.0

On 09/20/2012 03:29 PM, Adrian Bunk wrote:

> ac_cv_prog_cc_c11 is no longer documented (but still set, and should
> not be removed). Wanting to check that variable might even be a valid 
> usecase for AC_PROG_CC_C11?

I'm not sure we should be documenting any of that stuff, but if
we do, I'd rather document ac_prog_cc_stdc.

> autoconf now sets the compiler to the last C mode requested, not the 
> highest requested.

Yes, the idea is that AC_PROG_CC_C89 puts the compiler into C89 mode,
which might be useful for part of the 'configure' script I suppose,
and that you should be able to change it back if you like.  (This
is kind of what it was trying to do anyway, though not doing a particularly
good job about it.)

No doubt this should all be documented better.
Or perhaps we should just mark AC_PROG_CC_C89 and
AC_PROG_CC_C99 as obsolete, as they're typically more trouble
than they're worth.

> [1] 
> http://git.savannah.gnu.org/gitweb/?p=autoconf-archive.git;a=blob_plain;f=m4/ax_c99_inline.m4

Yup, macros that invoke AC_PROG_CC_C89 and AC_PROG_CC_C99
are trouble.  They're trouble now, and they'll continue to
be trouble.  It's not clear how to fix this, other than
to advise people to avoid those macros, which the patch
does in the manual.

reply via email to

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