Tag
Hash :
c931eeb8
Author :
Date :
2001-11-05T09:24:06
* automake.in (@common_sometimes, &handle_configure): No longer use stamp-hin. * lib/am/remake-hdr.am: Adjust. * tests/confh.test: There is no stamp.hin.
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
#! /bin/sh
# Test to make sure config.h works in a subdir.
# Report from Alexandre Oliva.
. $srcdir/defs || exit 1
cat > configure.in << 'END'
AC_INIT
AM_INIT_AUTOMAKE(nonesuch, nonesuch)
AM_CONFIG_HEADER(include/config.h)
AC_OUTPUT(Makefile include/Makefile)
END
: > Makefile.am
: > acconfig.h
mkdir include
: > include/Makefile.am
: > include/config.h.in
$ACLOCAL || exit 1
$AUTOMAKE || exit 1
(sed -n -e '/^DIST_COMMON =.*\\$/ {
:loop
p
n
/\\$/ b loop
p
n
}' -e '/^DIST_COMMON =/ p' Makefile.in | grep acconfig.h) || exit 1
# Make sure re-running automake in a different way generates same
# Makefile.in.
mv Makefile.in save
$ACLOCAL || exit 1
$AUTOMAKE Makefile || exit 1
cmp Makefile.in save