* tests/dup.test: Removed.
* aclocal.in (scan_file): Don't give error for duplicate macro.
+2001-07-02 Tom Tromey <tromey@redhat.com>
+
+ * tests/Makefile.am (TESTS): Removed dup.test.
+ * tests/dup.test: Removed.
+ * aclocal.in (scan_file): Don't give error for duplicate macro.
+
2001-07-01 Tom Tromey <tromey@redhat.com>
* automake.texi (Program and Library Variables): Document
{
$map{$1} = $file;
}
- elsif ($map{$1} eq $file)
- {
- # You basically never want a macro in the same .m4
- # file twice.
- warn "aclocal: $file: $.: duplicated macro `$1'\n";
- $exit_status = 1;
- }
+
+ # Note: we used to give an error here if we saw a
+ # duplicated macro. However, this turns out to be
+ # extremely unpopular. It causes actual problems which
+ # are hard to work around, especially when you must
+ # mix-and-match tool versions.
+
print STDERR "aclocal: found macro $1 in $file: $.\n" if $verbose;
}
}
distdir.test \
distname.test \
double.test \
-dup.test \
dup2.test \
dup3.test \
else.test \
distdir.test \
distname.test \
double.test \
-dup.test \
dup2.test \
dup3.test \
else.test \
+++ /dev/null
-#! /bin/sh
-
-# Make sure aclocal catches duplicate definitions in acinclude.m4.
-
-. $srcdir/defs || exit 1
-
-cat > configure.in << 'END'
-pkg_INTERNAL_MACRO
-END
-
-cat > acinclude.m4 << 'END'
-AC_DEFUN([pkg_INTERNAL_MACRO])
-AC_DEFUN([pkg_INTERNAL_MACRO])
-END
-
-$ACLOCAL && exit 1
-exit 0