]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Document AS_IF(..., ..., [[]]) glitch
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 10 Jul 2020 20:42:26 +0000 (13:42 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 10 Jul 2020 20:42:51 +0000 (13:42 -0700)
* doc/autoconf.texi (Common Shell Constructs):
Note the if-false arg problem reported by Jannick in:
https://lists.gnu.org/r/autoconf/2020-03/msg00045.html

doc/autoconf.texi

index 594547c0c4d823d72956a89919c8b01c917cc50c..f4520bba487713a663fb108083d4aa3aa58787c8 100644 (file)
@@ -13750,6 +13750,13 @@ AS_IF([test "x$foo" = xyes], [HANDLE_FOO([yes])],
 @noindent
 ensures any required macros of @code{HANDLE_FOO}
 are expanded before the first test.
+
+The @var{run-if-false} argument should either consist entirely of
+blanks, or expand to a nonempty shell command.  For example,
+@code{AS_IF([:], [:], [[]])} is invalid because its @var{run-if-false}
+argument contains the nonblank characters @code{[]} which expand to
+nothing.  This restriction on @var{run-if-false} also applies to other
+macros with ``if-false'' arguments denoting shell commands.
 @end defmac
 
 @defmac AS_MKDIR_P (@var{file-name})