autoconf
[Top][All Lists]
Advanced

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

Re: config headers and #undefs


From: Akim Demaille
Subject: Re: config headers and #undefs
Date: 14 Mar 2001 10:00:13 +0100
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley)

>>>>> "Kevin" == Kevin Ryde <address@hidden> writes:

Kevin> I thought of using AC_CONFIG_FILES, but that put settings
Kevin> through into the makefiles, which is harmless but
Kevin> AC_CONFIG_HEADERS seemed better suited to #defines.  I guess
Kevin> also there's no reason not to use a separate installed file for
Kevin> the defines wanted, it was just that a single file was so close
Kevin> to working.

I understand.  Then I suppose config.status is not the right tool to
do that.  This is an issue the Autoconf people will have to solve
someday, as more and more people need to install configured headers.

Kevin> By the way, is it intentional that the "pre" and "post" parts
Kevin> of an AC_CONFIG_HEADERS get transformed?  If they got used
Kevin> literally that would work too.

No it's not intentional, it's just an optimization :)  I mean, since
you are not supposed to do that, the question of knowing whether it
was meant or not is irrelevant :)

Really, config.h should be considered as a list of switches, and
nothing else.  It should remain almost language independent etc.  If
you need to perform actions, then do it elsewhere.



reply via email to

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