]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* doc/autoconf.texi (Setting Output Variables): Mention that
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 27 Nov 2006 22:47:33 +0000 (22:47 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 27 Nov 2006 22:47:33 +0000 (22:47 +0000)
@VAR1@VAR2 has unspecified behavior.  Problem reported by
Ralf Wildenhues.
* NEWS: Mention this.

ChangeLog
NEWS
doc/autoconf.texi

index ba65266a30798e6080a0f3aefc677ec0009b7f56..5eed423ce4e2df17611068759273f63cd891f531 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
 
+       * doc/autoconf.texi (Setting Output Variables): Mention that
+       @VAR1@VAR2 has unspecified behavior.  Problem reported by
+       Ralf Wildenhues.
+       * NEWS: Mention this.
+
        * Makefile.am: Put only a single '#' into the copyright notice,
        so that it's also present in the output file.  Standardize wording
        in makefile copyright notices to match GNU coding standards.
diff --git a/NEWS b/NEWS
index ca6dc18f13c669c07b95d6e713ed3935bfe55b00..adc5780c2c097898cc406344ee51b3c20472f176 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,10 @@
 * Major changes in Autoconf 2.61a (??)
 
 ** config.status now uses awk instead of sed for most substitutions, for speed.
+   It is now documented that Makefile.in should not contain
+   overlapping variable occurrences, e.g., @VAR1@VAR2@.  Autoconf's
+   behavior was always iffy in such cases, and the awk implementation
+   has changed the behavior.
 
 * Major changes in Autoconf 2.61 (2006-11-17)
 
index c6618221938d04ecd50f4049dc244e2aaa2cbc52..a244000a626de9dcd5a0656a5b515950d26c3b04 100644 (file)
@@ -8349,6 +8349,9 @@ or more makefiles).  This means that @code{AC_OUTPUT}
 replaces instances of @samp{@@@var{variable}@@} in input files with the
 value that the shell variable @var{variable} has when @code{AC_OUTPUT}
 is called.  The value can contain newlines.
+Variable occurrences should not overlap: e.g., an input file should
+not contain @samp{@@@var{var1}@@@var{var2}@@} if @var{var1} and @var{var2}
+are variable names.
 The substituted value is not rescanned for more output variables;
 occurrences of @samp{@@@var{variable}@@} in the value are inserted
 literally into the output file.  (The algorithm uses the special marker