summaryrefslogtreecommitdiff
path: root/bin/autoupdate.in
diff options
context:
space:
mode:
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>2006-02-14 23:18:51 +0000
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>2006-02-14 23:18:51 +0000
commit8d75399149a528fae0b99b29d4f310fc3e08ef16 (patch)
treedc15ae749c3701856242f630fe9c341cfd13e1a0 /bin/autoupdate.in
parent9a0e3a3558f5942cea0315ee971f8ff4e55ddb15 (diff)
downloadautoconf-8d75399149a528fae0b99b29d4f310fc3e08ef16.tar.gz
* bin/autoupdate.in (handle_autoconf_macros): Fix updating of
macros without parameters. * lib/autoconf/autoupdate.m4 (AU_ALIAS): Likewise. * doc/autoconf.texi (Obsoleting Macros): Document AU_ALIAS. * tests/tools.at (autoupdating AU_ALIAS): New test for AU_ALIAS `$#' bug. (autoupdate): Updated to match AU_ALIAS fix.
Diffstat (limited to 'bin/autoupdate.in')
-rw-r--r--bin/autoupdate.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/autoupdate.in b/bin/autoupdate.in
index 378d4556..4518b087 100644
--- a/bin/autoupdate.in
+++ b/bin/autoupdate.in
@@ -227,7 +227,7 @@ sub handle_autoconf_macros ()
print $unac_m4 "# unac.m4 -- undefine the AC macros.\n";
foreach (sort grep { $ac_macros{$_} ne 'm4sugar' } keys %ac_macros)
{
- print $ac_m4 "_au_define([$_], [[\$0(\$\@)]])\n";
+ print $ac_m4 "_au_define([$_], [m4_if(\$#, 0, [[\$0]], [[\$0(\$\@)]])])\n";
print $unac_m4 "_au_undefine([$_])\n";
}
}