* lib/m4sugar/m4sugar.m4 (m4_bmatch): Make sure m4_bregexp is not

expanded if $# <= 2.
This commit is contained in:
Andreas Schwab 2002-04-03 11:11:46 +00:00
parent 70e9cf4bd3
commit 9dc0d53597
2 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,8 @@
2002-04-03 Andreas Schwab <schwab@suse.de>
* lib/m4sugar/m4sugar.m4 (m4_bmatch): Make sure m4_bregexp is not
expanded if $# <= 2.
* bin/autoreconf.in (autoreconf): Run automake after rerunning
aclocal.

View File

@ -422,8 +422,8 @@ m4_define([m4_bmatch],
[m4_if([$#], 0, [],
[$#], 1, [],
[$#], 2, [$2],
m4_bregexp([$1], [$2]), -1, [$0([$1], m4_shiftn(3, $@))],
[$3])])
[m4_if(m4_bregexp([$1], [$2]), -1, [$0([$1], m4_shiftn(3, $@))],
[$3])])])
# m4_map(MACRO, LIST)