autoconf
[Top][All Lists]
Advanced

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

Re: AC_CONFIG_HEADERS & AC_CONFIG_FILES combo


From: Ralf Wildenhues
Subject: Re: AC_CONFIG_HEADERS & AC_CONFIG_FILES combo
Date: Sun, 1 Nov 2009 10:44:38 +0100
User-agent: Mutt/1.5.20 (2009-08-09)

* Paolo Bonzini wrote on Tue, Oct 20, 2009 at 07:41:12PM CEST:
> AC_CONFIG_HEADERS has to have a very specific format.  You'd do
> 
> AC_DEFINE_UNQUOTED([LIBFFCALL_VERSION], ["$PACKAGE_VERSION"],
>                    [Version of libffcall, for avcall.h])
> 
> and in avcall.h.in
> 
> #ifndef LIBFFCALL_VERSION
> #undef LIBFFCALL_VERSION
> #endif
> 
> but I'm not sure whether autoheader would destroy avcall.h.in, so
> Peter's solution is preferred.

autoheader only writes the input file to the first AC_CONFIG_HEADERS
that is specified in configure.ac; all following ones are supposed to be
written by the developer.

Cheers,
Ralf




reply via email to

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