From 57ff67b159902934c8903d0259eb7df92d05a22a Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 27 Apr 1999 15:52:46 +0000 Subject: [PATCH] * cond9.test: New file. From Raja R Harinath. * Makefile.am (TESTS): Added cond9.test. --- tests/ChangeLog | 3 +++ tests/Makefile.am | 1 + tests/Makefile.in | 1 + tests/cond9.test | 31 +++++++++++++++++++++++++++++++ 4 files changed, 36 insertions(+) create mode 100755 tests/cond9.test diff --git a/tests/ChangeLog b/tests/ChangeLog index 4ebccefb1..3963f2884 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,5 +1,8 @@ 1999-04-27 Tom Tromey + * cond9.test: New file. From Raja R Harinath. + * Makefile.am (TESTS): Added cond9.test. + * pluseq8.test: New file. * Makefile.am (TESTS): Added pluseq8.test. diff --git a/tests/Makefile.am b/tests/Makefile.am index 5c19aacf3..6d96842ae 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -52,6 +52,7 @@ cond5.test \ cond6.test \ cond7.test \ cond8.test \ +cond9.test \ condman.test \ condman2.test \ conf2.test \ diff --git a/tests/Makefile.in b/tests/Makefile.in index 41ea38f31..472a77ad2 100644 --- a/tests/Makefile.in +++ b/tests/Makefile.in @@ -117,6 +117,7 @@ cond5.test \ cond6.test \ cond7.test \ cond8.test \ +cond9.test \ condman.test \ condman2.test \ conf2.test \ diff --git a/tests/cond9.test b/tests/cond9.test new file mode 100755 index 000000000..504323cbd --- /dev/null +++ b/tests/cond9.test @@ -0,0 +1,31 @@ +#! /bin/sh + +# Test for bug in conditionals. From Raja R Harinath. + +. $srcdir/defs || exit 1 + +cat > configure.in << 'END' +AC_INIT(Makefile.am) +AM_INIT_AUTOMAKE(foo,0.0) +AM_CONDITIONAL(FALSE, [test x = y]) +AC_OUTPUT(Makefile) +END + +cat > Makefile.am << 'END' +if FALSE +this= +else +this=is_something_interesting +endif + +echo-something: + echo '$(this)' +END + +(autoconf --version) > /dev/null 2>&1 || exit 77 + +$ACLOCAL \ + && autoconf \ + && $AUTOMAKE -a \ + && ./configure \ + && $MAKE echo-something | grep interesting > /dev/null -- 2.47.2