123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- #! /bin/sh
- . test-init.sh
- cat >> configure.ac <<'END'
- m4_pattern_forbid([^MY_])
- MY_FOOBAR || exit 1
- MY_ZARDOZ || exit 1
- AC_OUTPUT
- END
- mkdir m4
- echo 'AC_DEFUN([MY_FOOBAR], [:])' > m4/foobar.m4
- echo 'AC_DEFUN([MY_ZARDOZ], [:])' > m4/zardoz.m4
- echo 'ACLOCAL_AMFLAGS = -I m4' > Makefile.am
- $ACLOCAL -I m4
- $AUTOCONF
- $AUTOMAKE
- ./configure
- ocwd=$(pwd) || fatal_ "cannot get current working directory"
- for vpath in false :; do
- $MAKE distdir
- test -f $distdir/m4/zardoz.m4
- rm -f $distdir/m4/zardoz.m4
- if $vpath; then
-
-
- mkdir vpath-distcheck
- cd vpath-distcheck
- ../$distdir/configure
- else
- cd $distdir
- ./configure
- fi
- run_make -e FAIL -M
-
-
- grep 'possibly undefined .*MY_ZARDOZ' output
- grep 'MY_FOOBAR' output && exit 1
- cd "$ocwd" || fatal_ "cannot chdir back to top-level test directory"
- done
- :
|