Tag
Hash :
82ad7e39
Author :
Date :
2000-03-19T23:38:10
* libobj2.test: Put depcomp into subdir. * confsub.test: Put depcomp into subdir. * defs: Always copy `depcomp'.
#! /bin/sh
# Test to make sure config.h can be in subdir.
. $srcdir/defs || exit 1
cat > configure.in << 'END'
AM_INIT_AUTOMAKE(nonesuch, nonesuch)
AC_PROG_MAKE_SET
AM_CONFIG_HEADER(subdir/config.h)
PACKAGE=nonesuch
VERSION=nonesuch
AC_PROG_CC
AC_ARG_PROGRAM
AC_PROG_INSTALL
AC_OUTPUT(Makefile subdir/Makefile)
END
cat > Makefile.am << 'END'
SUBDIRS = subdir
END
mkdir subdir
cat > subdir/Makefile.am << 'END'
bin_PROGRAMS = fred
END
: > subdir/config.h.in
mv depcomp subdir
$AUTOMAKE || exit 1
# Make sure subdir Makefile.in doesn't itself look in the subdir.
(grep 'subdir/config.h' subdir/Makefile.in | grep -v CONFIG_HEADERS) && exit 1
exit 0