autoconf
[Top][All Lists]
Advanced

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

Re: Tricking AC_DEFINE to hide template?


From: Stepan Kasal
Subject: Re: Tricking AC_DEFINE to hide template?
Date: Thu, 19 May 2005 08:40:10 +0200
User-agent: Mutt/1.4.1i

Hello,

On Wed, May 18, 2005 at 03:24:14PM +0200, Lars J. Aas wrote:
> Stepan Kasal <address@hidden> wrote:
> : The fourth parameter to AC_DEFINE would be the name of the template
> : which should hold this define.  (Defaulting to the first one declared
> : with AC_CONFIG_HEADERS, of course.)
> 
> It sounds like something I could use.  You could also have a special
> keyword to make the template hidden (like '/dev/null') if you prefer to
> maintain some headers manually.

yes.

> You would then have to track which
> AC_CONFIG_HEADERS templates that has been mentioned as arg[4] in an
> AC_DEFINE invocation to know which ones to autogenerate, because you
> can't start autogenerating them all to keep backwards compatibility.

I don't understand.

Autoheader would trace the configure.ac.
The first AC_CONFIG_HEADERS file would become the default.
When autoheader sees an AC_DEFINE wit 3 args, it places the template
to the default file.  If there are 4 args, it places it to the one
specified.

What am I missing?

Stepan




reply via email to

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