From e0242b7819029ceec52ad6e25e9775df21ee69ea Mon Sep 17 00:00:00 2001 From: Richard Boulton Date: Sat, 4 Aug 2001 13:28:48 +0000 Subject: [PATCH] * 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. --- ChangeLog | 8 ++++++++ tests/Makefile.am | 3 ++- tests/Makefile.in | 3 ++- tests/cond17.test | 30 ++++++++++++++++++++++++++++++ 4 files changed, 42 insertions(+), 2 deletions(-) create mode 100755 tests/cond17.test diff --git a/ChangeLog b/ChangeLog index 20a78aa8..d9a9c955 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2001-08-04 Richard Boulton + + * 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 * automake.in (variable_conditions_sub): Handle variable diff --git a/tests/Makefile.am b/tests/Makefile.am index 3fcf63a9..e4468a5d 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1,6 +1,6 @@ ## 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 \ @@ -68,6 +68,7 @@ cond11.test \ cond12.test \ cond13.test \ cond16.test \ +cond17.test \ condincl.test \ condincl2.test \ condlib.test \ diff --git a/tests/Makefile.in b/tests/Makefile.in index 3cc48ad6..78d13b63 100644 --- a/tests/Makefile.in +++ b/tests/Makefile.in @@ -68,7 +68,7 @@ am__include = @am__include@ 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 \ @@ -136,6 +136,7 @@ cond11.test \ cond12.test \ cond13.test \ cond16.test \ +cond17.test \ condincl.test \ condincl2.test \ condlib.test \ diff --git a/tests/cond17.test b/tests/cond17.test new file mode 100755 index 00000000..8ab4bb3c --- /dev/null +++ b/tests/cond17.test @@ -0,0 +1,30 @@ +#! /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 -- 2.43.5