From: Zack Weinberg Date: Sat, 10 Oct 2020 18:07:53 +0000 (-0400) Subject: _AS_PATH_WALK: Use AS_IF for IF-NOT-FOUND argument. X-Git-Tag: v2.69d~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d85fc04ed3961f4195b632cd81b89a51216dbea7;p=thirdparty%2Fautoconf.git _AS_PATH_WALK: Use AS_IF for IF-NOT-FOUND argument. The construct _AS_PATH_WALK was using to conditionally execute its IF-NOT-FOUND argument, was a little too fragile: relatively natural variations in usage, such as putting the final `])` on a line by itself, could cause shell syntax errors. Use AS_IF instead. * lib/m4sugar/m4sh.m4: Use AS_IF to execute IF-NOT-FOUND conditionally. --- diff --git a/lib/m4sugar/m4sh.m4 b/lib/m4sugar/m4sh.m4 index bd4d2b9e..a1c1cd47 100644 --- a/lib/m4sugar/m4sh.m4 +++ b/lib/m4sugar/m4sh.m4 @@ -1363,7 +1363,7 @@ do m4_ifvaln([$3], [as_found=false])dnl done IFS=$as_save_IFS -m4_ifvaln([$3], [$as_found || { $3; }])dnl +m4_ifvaln([$3], [AS_IF([$as_found], [], [$3])])dnl ])