From: Eric Blake Date: Fri, 10 Apr 2009 05:00:22 +0000 (-0600) Subject: Add cross-reference to new macros. X-Git-Tag: v2.64~86 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff97bd9a3f2649a407dccf3ca0cb8f890264aa68;p=thirdparty%2Fautoconf.git Add cross-reference to new macros. * doc/autoconf.texi (Text processing Macros) : Reference the new m4_ifblank. Suggested by Mike Frysinger. Signed-off-by: Eric Blake --- diff --git a/ChangeLog b/ChangeLog index be0c8689e..efa5501e9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2009-04-13 Eric Blake + Add cross-reference to new macros. + * doc/autoconf.texi (Text processing Macros) + : Reference the new m4_ifblank. + Suggested by Mike Frysinger. + Make AS_IF, AS_CASE, and AS_FOR more robust to blank arguments. * lib/m4sugar/m4sh.m4 (_AS_CASE, _AS_CASE_DEFAULT, AS_FOR, _AS_IF) (_AS_IF_ELSE, AS_IF): Avoid syntax error on blank argument, diff --git a/doc/autoconf.texi b/doc/autoconf.texi index fc4d61883..35cf745ac 100644 --- a/doc/autoconf.texi +++ b/doc/autoconf.texi @@ -11811,7 +11811,9 @@ that M4 does not discard leading whitespace during argument collection. Remove leading and trailing spaces and tabs, sequences of backslash-then-newline, and replace multiple spaces, tabs, and newlines with a single space. This is a combination of @code{m4_flatten} and -@code{m4_strip}. +@code{m4_strip}. To determine if @var{string} consists only of bytes +that would be removed by @code{m4_normalize}, you can use +@code{m4_ifblank}. @end defmac @defmac m4_re_escape (@var{string}) @@ -11834,7 +11836,8 @@ Strip whitespace from @var{string}. Sequences of spaces and tabs are reduced to a single space, then leading and trailing spaces are removed. The result is still a quoted string. Note that this does not interfere with newlines; if you want newlines stripped as well, consider -@code{m4_flatten}, or do it all at once with @code{m4_normalize}. +@code{m4_flatten}, or do it all at once with @code{m4_normalize}. To +quickly test if @var{string} has only whitespace, use @code{m4_ifblank}. @end defmac @defmac m4_text_box (@var{message}, @dvar{frame, -})