From: Tom Tromey Date: Tue, 31 Jul 2001 16:39:37 +0000 (+0000) Subject: * tests/Makefile.am (TESTS): Added cond13.test. X-Git-Tag: branchpoint-real-1-5~15 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=67ef478a5a444fb55e1b5a6b51ea64412efb2d28;p=automake.git * tests/Makefile.am (TESTS): Added cond13.test. (XFAIL_TESTS): Likewise. * tests/cond13.test: New file. --- diff --git a/ChangeLog b/ChangeLog index 2d8a5669..e15ebaf8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2001-07-31 Tom Tromey + * tests/Makefile.am (TESTS): Added cond13.test. + (XFAIL_TESTS): Likewise. + * tests/cond13.test: New file. + * configure.in: Upped to version 1.4k. * configure.in: Released 1.4j. diff --git a/tests/Makefile.am b/tests/Makefile.am index aa8e64f3..cae8b9d9 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 cond13.test TESTS = \ acinclude.test \ @@ -66,6 +66,7 @@ cond9.test \ cond10.test \ cond11.test \ cond12.test \ +cond13.test \ condincl.test \ condincl2.test \ condlib.test \ diff --git a/tests/Makefile.in b/tests/Makefile.in index 8d2d05e4..5e13adee 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 cond13.test TESTS = \ acinclude.test \ @@ -134,6 +134,7 @@ cond9.test \ cond10.test \ cond11.test \ cond12.test \ +cond13.test \ condincl.test \ condincl2.test \ condlib.test \ diff --git a/tests/cond13.test b/tests/cond13.test new file mode 100755 index 00000000..81a9fe6a --- /dev/null +++ b/tests/cond13.test @@ -0,0 +1,39 @@ +#! /bin/sh + +# Test for bug in conditionals. +# Report from Lars J. Aas. + +. $srcdir/defs || exit 1 + +cat >> configure.in << 'END' +AC_PROG_CC +AC_PROG_CXX +AC_PROG_RANLIB +AM_CONDITIONAL(COND1, true) +AM_CONDITIONAL(COND2, true) +END + +cat > Makefile.am << 'END' +noinst_LIBRARIES = libtest.a + +if COND1 +SOURCEVAR1 = +SOURCEVAR2 = habla.cpp espanol.cpp +else +SOURCEVAR1 = dummy.cpp +SOURCEVAR2 = +endif + +if COND2 +TESTSOURCES = $(SOURCEVAR1) +else +TESTSOURCES = $(SOURCEVAR2) +endif + +libtest_a_SOURCES = $(TESTSOURCES) +END + +$ACLOCAL || exit 1 +$AUTOMAKE || exit 1 + +grep 'am_libtest_a_OBJECTS = .*$' Makefile.in