* Makefile.am (dist-hook): Bail out if shipped aclocal.m4 files
contain LT_INIT, AC_PROG_LIBTOOL, or AM_PROG_LIBTOOL macro
definitions. These can only come from bogus pull-ins from older
installed Libtool macro files.
* bootstrap: Likewise.
Report by Akim Demaille.
Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+2008-11-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ Check for bogus aclocal.m4 contents in bootstrap and dist-hook.
+ * Makefile.am (dist-hook): Bail out if shipped aclocal.m4 files
+ contain LT_INIT, AC_PROG_LIBTOOL, or AM_PROG_LIBTOOL macro
+ definitions. These can only come from bogus pull-ins from older
+ installed Libtool macro files.
+ * bootstrap: Likewise.
+ Report by Akim Demaille.
+
2008-11-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Fix $ECHO abuse exposed by recent patch.
case $(VERSION) in \
*[a-z]) cp -p $(srcdir)/README.alpha $(distdir)/README ;; \
esac; else :; fi
+## Ensure aclocal has not wrongly picked up old macro definitions.
+ for macro in LT_INIT AC_PROG_LIBTOOL AM_PROG_LIBTOOL; do \
+ if grep $$macro $(srcdir)/aclocal.m4 $(srcdir)/libltdl/aclocal.m4; then \
+ echo "Bogus $$macro macro contents in an aclocal.m4 file." >&2; \
+ exit 1; \
+ else :; fi; \
+ done
## ----------- ##
# to be regenerated at make-time with proper substitutions in place:
touch $auxdir/ltmain.m4sh
+for macro in LT_INIT AC_PROG_LIBTOOL AM_PROG_LIBTOOL; do
+ if grep $macro aclocal.m4 libltdl/aclocal.m4; then
+ echo "Bogus $macro macro contents in an aclocal.m4 file." >&2
+ exit 1
+ else :; fi
+done
+
# Commit script caveat:
cat <<EOF
WARNING: You might want to regenerate \`commit' and \`$auxdir/mailnotify'