Tag
Hash :
ad45abfd
Author :
Date :
2002-04-10T15:35:40
* tests/subobj9.test: Use configure.in, not configure.ac, otherwise this fails with old libtool versions.
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 40 41
#! /bin/sh
# Test for PR 312.
required='libtoolize gcc'
. $srcdir/defs || exit 1
cat > configure.in << 'END'
AC_INIT(x, 0, x)
AM_INIT_AUTOMAKE([foreign subdir-objects])
AC_PROG_CXX
AM_PROG_LIBTOOL
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
END
cat > Makefile.am << 'END'
noinst_LTLIBRARIES = libfoo.la
libfoo_la_SOURCES = src/foo.cc
END
mkdir src
cat > src/foo.cc << 'END'
int doit (void)
{
return 23;
}
END
set -e
libtoolize --force
$ACLOCAL
$AUTOCONF
$AUTOMAKE -a
./configure CXX=gcc
$MAKE
$MAKE distcheck