diff options
Diffstat (limited to 't/acloca22.sh')
-rwxr-xr-x | t/acloca22.sh | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/t/acloca22.sh b/t/acloca22.sh index 159fbcdb5..ea76579d9 100755 --- a/t/acloca22.sh +++ b/t/acloca22.sh @@ -21,24 +21,27 @@ . ./defs || exit 1 cat >>configure.ac <<EOF +AC_CONFIG_MACRO_DIR([.]) FOO AC_OUTPUT EOF + cat >foo.m4 <<EOF AC_DEFUN([FOO], [AC_SUBST([GREPFOO])]) EOF + cat >bar.m4 <<EOF AC_DEFUN([BAR], [AC_SUBST([GREPBAR])]) EOF -cat >Makefile.am <<EOF -ACLOCAL_AMFLAGS = -I . -EOF -$ACLOCAL -I . +: >Makefile.am + +$ACLOCAL $AUTOMAKE $AUTOCONF ./configure + $MAKE grep GREPFOO Makefile grep GREPBAR Makefile && exit 1 @@ -46,6 +49,7 @@ grep GREPBAR Makefile && exit 1 sed 's/FOO/BAR/' < configure.ac > t mv -f t configure.ac rm -f foo.m4 + $MAKE grep GREPFOO Makefile && exit 1 grep GREPBAR Makefile |