2001-05-05 Raja R Harinath <harinath@cs.umn.edu>
authorTom Tromey <tromey@redhat.com>
Sat, 5 May 2001 22:43:31 +0000 (22:43 +0000)
committerTom Tromey <tromey@redhat.com>
Sat, 5 May 2001 22:43:31 +0000 (22:43 +0000)
For PR automake/164:
* tests/Makefile.am (TESTS): Added new file.
(XFAIL_TESTS): Likewise.
* tests/cond10.test: New file.

ChangeLog
tests/Makefile.am
tests/Makefile.in
tests/cond10.test [new file with mode: 0755]

index 799bce6..d48a692 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2001-05-05  Raja R Harinath  <harinath@cs.umn.edu>
+
+       For PR automake/164:
+       * tests/Makefile.am (TESTS): Added new file.
+       (XFAIL_TESTS): Likewise.
+       * tests/cond10.test: New file.
+
 2001-05-05  Tom Tromey  <tromey@redhat.com>
 
        * texinfos.am (uninstall-info-am): Debian install-info v1.8.3
index 04769a0..3db461e 100644 (file)
@@ -2,7 +2,7 @@
 
 AUTOMAKE_OPTIONS = gnits
 
-XFAIL_TESTS = man.test objc.test subobj2.test yaccvpath.test
+XFAIL_TESTS = man.test objc.test subobj2.test yaccvpath.test cond10.test
 
 TESTS =        \
 acinclude.test \
@@ -58,6 +58,7 @@ cond6.test \
 cond7.test \
 cond8.test \
 cond9.test \
+cond10.test \
 condincl.test \
 condincl2.test \
 condlib.test \
index 40f9085..47206b6 100644 (file)
@@ -75,7 +75,7 @@ install_sh = @install_sh@
 
 AUTOMAKE_OPTIONS = gnits
 
-XFAIL_TESTS = man.test objc.test subobj2.test yaccvpath.test
+XFAIL_TESTS = man.test objc.test subobj2.test yaccvpath.test cond10.test
 
 TESTS = \
 acinclude.test \
@@ -131,6 +131,7 @@ cond6.test \
 cond7.test \
 cond8.test \
 cond9.test \
+cond10.test \
 condincl.test \
 condincl2.test \
 condlib.test \
@@ -519,6 +520,8 @@ mostlyclean: mostlyclean-am
 
 mostlyclean-am: mostlyclean-generic
 
+uninstall-am:
+
 .PHONY: all all-am check check-TESTS check-am clean clean-generic \
        distclean distclean-generic distclean-local distdir dvi dvi-am \
        info info-am install install-am install-data install-data-am \
diff --git a/tests/cond10.test b/tests/cond10.test
new file mode 100755 (executable)
index 0000000..84b4950
--- /dev/null
@@ -0,0 +1,33 @@
+#! /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)
+AC_PROG_CC
+AM_CONDITIONAL(USE_A,[test x = y])
+AM_CONDITIONAL(USE_B,[test x = z])
+AC_OUTPUT(Makefile)
+END
+
+cat > Makefile.am << 'END'
+if USE_A
+out=output_a.c
+else
+if USE_B
+out=output_b.c
+else
+out=output_c.c
+endif
+endif
+
+noinst_PROGRAMS=foo
+foo_SOURCES=foo.c $(out)
+END
+
+$ACLOCAL \
+  && $AUTOMAKE -a \
+  && grep 'USE_A_FALSE.*USE_B_FALSE.*output_c\...OBJEXT.' Makefile.in