Tag
Hash :
d8d7370a
Author :
Date :
2002-06-10T17:37:46
* tests/sinclude.test: Check for m4_include too.
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
#! /bin/sh
# Test to see if `m4_sinclude' and `m4_include' works.
. $srcdir/defs || exit 1
set -e
# Overwrite configure.in, because the default uses `sinclude' as package
# name and this play havoc with Autoconf on some platforms (`sinclude'
# is an m4 macro).
cat > configure.in <<EOF
AC_INIT([amsinclude], [1.0])
AM_INIT_AUTOMAKE
AC_CONFIG_FILES([Makefile])
EOF
mkdir sub
cat > sub/p.m4 << 'END'
AC_SUBST(MAGICALPIG)
END
cat > sub/h.m4 << 'END'
AC_SUBST(MAGICALHOG)
END
: > Makefile.am
$ACLOCAL
echo 'm4_sinclude(sub/p.m4)' >> aclocal.m4
echo 'm4_include(sub/h.m4)' >> aclocal.m4
$AUTOMAKE
grep MAGICALPIG Makefile.in
grep MAGICALHOG Makefile.in