]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
docs: BSD and Solaris make trailing space macro issue.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sun, 6 Mar 2011 12:28:42 +0000 (13:28 +0100)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Tue, 8 Mar 2011 19:46:02 +0000 (20:46 +0100)
* doc/autoconf.texi (Trailing whitespace in Make Macros):
Document issue with trailing whitespace in macro settings.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
ChangeLog
doc/autoconf.texi

index ed4c467df37cf2a0a4e2d5de1fd7030abaf68e3d..ba2750f7c1a7824340e306accef712059fd8c422 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-03-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       docs: BSD and Solaris make trailing space macro issue.
+       * doc/autoconf.texi (Trailing whitespace in Make Macros):
+       Document issue with trailing whitespace in macro settings.
+
 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        Fix Cray Fortran flag for AC_FC_IMPLICIT_NONE.
index b552883691eaef6d00227c414a8cf9b9cc973e9f..91839814ef509158a822455a228b0a772d9074b4 100644 (file)
@@ -19853,6 +19853,19 @@ print: ; @@echo $(foo:=.test)
 @noindent
 prints @samp{bar.test .test}.
 
+BSD and Solaris @command{make} implementations do not honor trailing
+whitespace in macro definitions as Posix requires:
+
+@example
+foo = bar # Note the space after "bar".
+print: ; @@echo $(foo)t
+@end example
+
+@noindent
+prints @samp{bart} instead of @samp{bar t}.  To work around this, you
+can use a helper macro as in the previous example.
+
+
 @node Command-line Macros and whitespace
 @section Command-line Macros and whitespace
 @cindex whitespace in command-line macros