Tag
Hash :
17db0c1a
Author :
Date :
2002-07-23T18:58:07
* tests/required2.test: New file. * tests/Makefile.am (TESTS): Add required2.test. * automake.in (initialize_per_input): Remove %require_file_found setting. This reverts my change of 2002-04-19. (require_file_internal): Use the full name of a file as a key in %require_file_found, not only the basename. Reported by Andrew Suffield.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
#! /bin/sh
# Regression test for a bug reported by Andrew Suffield.
# (Automake goes wild and try to rerun itself more than two time
# to fix the Makefiles.)
required='libtoolize'
. $srcdir/defs || exit 1
set -e
cat >>configure.in <<'END'
AC_CONFIG_AUX_DIR([autoconf])
AC_PROG_CC
AM_PROG_LIBTOOL
AC_CONFIG_FILES([autoconf/Makefile main/Makefile])
AC_OUTPUT
END
mkdir autoconf
mkdir main
: > autoconf/Makefile.am
echo 'SUBDIRS = autoconf main' >Makefile.am
cat >main/Makefile.am <<'END'
lib_LTLIBRARIES = lib0.la
lib0_la_SOURCES = 0.c
END
libtoolize --force --copy
$ACLOCAL
$AUTOCONF
test -f autoconf/ltmain.sh # Sanity check.
rm -f autoconf/ltmain.sh
$AUTOMAKE --add-missing --copy 2>stderr
cat stderr
grep 'running more than two' stderr && exit 1
# Since we are ensuring that 'running more than two' is not printed,
# also ensure that it can be printed. This way if someone changes the
# wording of this message (s)he will remember to adjust this test.
grep 'running more than two' ../../automake