diff options
author | Ralf Wildenhues <Ralf.Wildenhues@gmx.de> | 2011-03-06 13:28:42 +0100 |
---|---|---|
committer | Ralf Wildenhues <Ralf.Wildenhues@gmx.de> | 2011-03-08 20:46:02 +0100 |
commit | fd0e10b3f3173b43d7ecc644f6f9db34fcc74811 (patch) | |
tree | f76f00206bd055ceeb7d732a1446761d77d9d23c | |
parent | 63aaea5ecd84c39de578c85dd9eda3bf642322f9 (diff) | |
download | autoconf-fd0e10b3f3173b43d7ecc644f6f9db34fcc74811.tar.gz |
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.
Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | doc/autoconf.texi | 13 |
2 files changed, 19 insertions, 0 deletions
@@ -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. diff --git a/doc/autoconf.texi b/doc/autoconf.texi index b5528836..91839814 100644 --- a/doc/autoconf.texi +++ b/doc/autoconf.texi @@ -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 |