distinguish m4sugar macros.
* tests/tools.at (autoupdating with aclocal and m4_include):
New test. Bug reported by Gary V. Vaughan <gary@gnu.org>,
test case by Noah Misch <noah@cs.caltech.edu>.
+2006-04-07 Stepan Kasal <kasal@ucw.cz>,
+ Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ * bin/autoupdate.in (handle_autoconf_patches): Change the way we
+ distinguish m4sugar macros.
+ * tests/tools.at (autoupdating with aclocal and m4_include):
+ New test. Bug reported by Gary V. Vaughan <gary@gnu.org>,
+ test case by Noah Misch <noah@cs.caltech.edu>.
+
2006-04-07 Stepan Kasal <kasal@ucw.cz>
Revert my change from 2006-03-17, in other words:
{
chomp;
my ($domain, $file, $macro) = /^(AC|AU):(.*):([^:]*)$/ or next;
- # ../lib/m4sugar/m4sugar.m4 -> m4sugar
- # ../lib/m4sugar/version.m4 -> m4sugar
- # ../lib/autoconf/general.m4 -> autoconf
- # aclocal.m4 -> aclocal
- # ../lib/m4sugar/m4sh.m4 -> m4sh
- my $set = basename (dirname ($file));
- $set = 'aclocal' if $file eq 'aclocal.m4';
- $set = 'm4sh' if basename($file) eq 'm4sh.m4';
- error "unknown set: $set: $_"
- unless $set =~ /^(m4sugar|m4sh|aclocal|autoconf)$/;
if ($domain eq "AU")
{
$au_macros{$macro} = 1;
}
- elsif ($set eq "m4sugar")
+ elsif ($file =~ /(^|\/)m4sugar\/(m4sugar|version)\.m4$/)
{
# Add the m4sugar macros to m4_builtins.
$m4_builtins{$macro} = 1;
AT_CHECK([[grep ' 1 2 3 4 5 6' stdout]], 0, [ignore], [ignore])
AT_CLEANUP
+
+
+# autoupdating with aclocal and m4_include
+# ----------------------------------------
+AT_SETUP([autoupdating with aclocal and m4@&t@_include])
+
+# We use aclocal.
+AT_CHECK([aclocal --version || exit 77], [], [ignore], [ignore])
+
+mkdir m4 aclocal
+AT_DATA([configure.in],
+[[AC_INIT(x,0)
+AC_UNCHANGED_MACRO
+AC_OLD_MACRO
+AC_OUTPUT
+]])
+AT_DATA([m4/stuff.m4],
+[[AU_ALIAS([AC_OLD_MACRO], [AC_NEW_MACRO])
+AC_DEFUN([AC_NEW_MACRO], [echo hi])
+AC_DEFUN([AC_UNCHANGED_MACRO], [echo one])
+]])
+cp m4/stuff.m4 aclocal/stuff.m4
+AT_CHECK([aclocal -I aclocal], [0], [ignore], [ignore])
+# Checking `autoupdate'.
+AT_CHECK_AUTOUPDATE
+AT_CHECK([aclocal -I m4], [0], [ignore], [ignore])
+AT_CHECK_AUTOUPDATE
+
+AT_CLEANUP