[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Tue, 28 Dec 2004 11:05:05 +0100
thanks for the clarification. I was not aware of option
--file. I have been reading the documentation - but ob-
viously not hard enough :-)
From: address@hidden [mailto:address@hidden Behalf Of Stepan
Sent: Monday, December 27, 2004 2:56 PM
To: wolfgang haefelinger
Subject: Re: CONFIG_FILES
you described the following problem with autoconf-generated config.status:
On Wed, Dec 22, 2004 at 10:34:36PM +0100, wolfgang haefelinger wrote:
> autoconf manual states in 15.1 that
> >> `config.status' now supports arguments to specify the files to
> >> instantiate [..] Before, environment variables had to be used.
> Perhaps a known problem but the new approach is not identical to
> the old one.
> This works well:
> $ CONFIG_FILES=./Makefile config.status
> config.status: creating ./Makefile
> But this fails:
> $ ./config.status ./Makefile
> config.status: error: invalid argument: ./Makefile
> I'm using GNU autoconf 2.59.
Indeed, the two commands are not equivalent. The following two commands
CONFIG_COMMANDS= CONFIG_LINKS= CONFIG_FILES=./Makefile \
./config.status --file ./Makefile
Both the obsolete CONFIG_* variables and modern --file and --header
option are general commands to create files which may not have been
listed in the original configure.ac.
is different--it says, in effect
``Create the file Makefile mentioned in configure.ac.''
The difference is that with --file (or CONFIG_*) you have to list the
prerequisities (template), while with a plain argument to config.status
you need not (and cannot) specify the prerequisities.
The difference can be illustrated on an example of GNU awk, shipped as
You can make use of this declaration this way:
then the string "version.c" is the same as the name of the file used in
the declaration. and config.status finds out that it is to be created
If you use the --file or CONFIG_FILE method, you have to copy the full
specification, with the template name:
./config.status --file version.c:version.in
CONFIG_COMMANDS= CONFIG_LINKS= CONFIG_FILES=version.c:version.in \