bug-autoconf
[Top][All Lists]
Advanced

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

Newlines in non-literal tag list in AC_CONFIG_FOO


From: Andreas Schwab
Subject: Newlines in non-literal tag list in AC_CONFIG_FOO
Date: Thu, 26 Jun 2008 17:53:33 +0200
User-agent: Gnus/5.110009 (No Gnus v0.9) Emacs/22.2 (gnu/linux)

The manual discourages non-literals in AC_CONFIG_FOO, but does not
forbid them.  There are a few things that break when a variable is used
instead of literal tags (eg. "./config.status TAG" does not work), but
since ce429ecd ("Proper config.status --file/--header and $srcdir
escaping.") newlines in the value of the variable do not work at all:

$ cat configure.ac
AC_INIT
foo="Makefile
foo"
AC_CONFIG_FILES([$foo])
AC_OUTPUT
$ ./configure
configure: creating ./config.status
./config.status: line 579: foo: command not found
config.status: creating Makefile

The docs say that the tag list can be blank or newline separated, not
distinguishing between literals and non-literals.

Andreas.

-- 
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




reply via email to

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