+2001-08-04 Richard Boulton <richard@tartarus.org>
+
+ * 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.
+
2001-08-02 Richard Boulton <richard@tartarus.org>
* automake.in (variable_conditions_sub): Handle variable
## Process this file with automake to create Makefile.in
-XFAIL_TESTS = subdir5.test auxdir2.test
+XFAIL_TESTS = subdir5.test auxdir2.test cond17.test
TESTS = \
acinclude.test \
cond12.test \
cond13.test \
cond16.test \
+cond17.test \
condincl.test \
condincl2.test \
condlib.test \
am__quote = @am__quote@
install_sh = @install_sh@
-XFAIL_TESTS = subdir5.test auxdir2.test
+XFAIL_TESTS = subdir5.test auxdir2.test cond17.test
TESTS = \
acinclude.test \
cond12.test \
cond13.test \
cond16.test \
+cond17.test \
condincl.test \
condincl2.test \
condlib.test \
--- /dev/null
+#! /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