Tag
Hash :
2bff849f
Author :
Date :
2001-08-04T13:28:49
* tests/cond17.test: New file: test for being able to define an object to be generated in different ways according to a conditional. * tests/Makefile.am (XFAIL_TESTS): Add cond17.test. (TESTS): Added cond17.test.
#! /bin/sh
# Test for being able to define an object to be generated in different ways
# according to a conditional.
# Report from Richard Boulton
. $srcdir/defs || exit 1
cat > configure.in << 'END'
AC_INIT(Makefile.am)
AM_INIT_AUTOMAKE(hello,0.23)
AC_PROG_CC
AC_PROG_CXX
AM_CONDITIONAL(COND1, true)
AC_OUTPUT(Makefile)
END
cat > Makefile.am << 'END'
bin_PROGRAMS = helldl
if COND1
helldl_SOURCES = foo.cc
else
helldl_SOURCES = foo.c
endif
END
set -e
$ACLOCAL
$AUTOMAKE -a