+Thu Feb 12 22:27:05 1998 Tom Tromey <tromey@cygnus.com>
+
+ * aclocal.in (scan_m4_files): Reverse-sort keys when constructing
+ `search' function. From Johan Danielsson.
+
Tue Sep 16 14:13:15 1997 Paul D. Smith <psmith@baynetworks.com>
* automake.in: Create new option --generate-deps. This option has
# function (instead of just evalling $search in the loop) so that
# "die" is correctly and easily propagated if run.
local ($search, $expr, $key) = '';
- foreach $key (keys %map)
+ foreach $key (reverse sort keys %map)
{
# EXPR is a regexp matching the name of the macro.
($expr = $key) =~ s/(\W)/\\$1/g;
Thu Feb 12 21:00:34 1998 Tom Tromey <tromey@cygnus.com>
+ * unused.test: New file.
+
* whoami.test: New file.
* alpha.test: New file.
version2.test conf2.test cond.test cond2.test xsource.test \
libobj6.test depend3.test output5.test ammissing.test install.test \
libobj7.test objc.test cond3.test cxxcpp.test aclocal.test alpha.test \
-whoami.test
+whoami.test unused.test
EXTRA_DIST = defs $(TESTS)
version2.test conf2.test cond.test cond2.test xsource.test \
libobj6.test depend3.test output5.test ammissing.test install.test \
libobj7.test objc.test cond3.test cxxcpp.test aclocal.test alpha.test \
-whoami.test
+whoami.test unused.test
EXTRA_DIST = defs $(TESTS)
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
--- /dev/null
+#! /bin/sh
+
+# Test for failing check for unused macros. From Johan Danielsson.
+. $srcdir/defs || exit 1
+
+cat >> configure.in << 'END'
+MACRO_1
+MACRO_1_2
+MACRO_1_2_3
+END
+
+cat > acinclude.m4 << 'END'
+AC_DEFUN(MACRO_1, echo 1)
+AC_DEFUN(MACRO_1_2, echo 12)
+AC_DEFUN(MACRO_1_2_3, echo 123)
+END
+
+$ACLOCAL 2> output || exit 1
+test -z "`cat output`"