]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
testsuite: require C compiler explicitly in tests needing it
authorStefano Lattarini <stefano.lattarini@gmail.com>
Mon, 23 May 2011 19:53:44 +0000 (21:53 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 25 May 2011 14:01:54 +0000 (16:01 +0200)
The list of the test scripts which needed a C compiler but
failed to require it explicitly has been found by running:
  $ am_explicit_skips=yes CC=false make check
and looking for tests that reported FAIL instead of SKIP.
After the present change, all those previously failing tests
either pass or get correctly skipped.

* tests/aclocal4.test ($required): Add `cc'.
* tests/ansi.test: Likewise.
* tests/ansi10.test: Likewise.
* tests/ansi3.test: Likewise.
* tests/ansi3b.test: Likewise.
* tests/ansi5.test: Likewise.
* tests/ansi6.test: Likewise.
* tests/ansi7.test: Likewise.
* tests/ansi9.test: Likewise.
* tests/backcompat6.test: Likewise.
* tests/canon7.test: Likewise.
* tests/check5.test: Likewise.
* tests/check7.test: Likewise.
* tests/check8.test: Likewise.
* tests/cond4.test: Likewise.
* tests/cond11.test: Likewise.
* tests/cond16.test: Likewise.
* tests/cond18.test: Likewise.
* tests/cond19.test: Likewise.
* tests/cond22.test: Likewise.
* tests/cond30.test: Likewise.
* tests/cond31.test: Likewise.
* tests/cond32.test: Likewise.
* tests/cond34.test: Likewise.
* tests/cond35.test: Likewise.
* tests/cond39.test: Likewise.
* tests/condd.test: Likewise.
* tests/cygnus-dependency-tracking.test: Likewise.
* tests/depcomp2.test: Likewise.
* tests/depcomp6.test: Likewise.
* tests/depcomp7.test: Likewise.
* tests/depcomp8a.test: Likewise.
* tests/depcomp8b.test: Likewise.
* tests/depdist.test: Likewise.
* tests/depend2.test: Likewise.
* tests/depend5.test: Likewise.
* tests/distcleancheck.test: Likewise.
* tests/distname.test: Likewise.
* tests/exeext.test: Likewise.
* tests/exeext4.test: Likewise.
* tests/extradep.test: Likewise.
* tests/extradep2.test: Likewise.
* tests/gnits2.test: Likewise.
* tests/gnits3.test: Likewise.
* tests/instdir-ltlib.test: Likewise.
* tests/instdir-prog.test: Likewise.
* tests/instfail.test: Likewise.
* tests/instfail-libtool.test: Likewise.
* tests/lex3.test: Likewise.
* tests/lex5.test: Likewise.
* tests/lexvpath.test: Likewise.
* tests/lex-subobj-nodep.test: Likewise.
* tests/lflags.test: Likewise.
* tests/libobj-basic.test: Likewise.
* tests/libobj2.test: Likewise.
* tests/libobj7.test: Likewise.
* tests/libobj10.test: Likewise.
* tests/libobj16a.test: Likewise.
* tests/libobj16b.test: Likewise.
* tests/libobj17.test: Likewise.
* tests/libobj19.test: Likewise.
* tests/libtool2.test: Likewise.
* tests/libtool3.test: Likewise.
* tests/libtool7.test: Likewise.
* tests/libtool9.test: Likewise.
* tests/libtoo10.test: Likewise.
* tests/libtoo11.test: Likewise.
* tests/ltcond.test: Likewise.
* tests/ltcond2.test: Likewise.
* tests/ltconv.test: Likewise.
* tests/ltinit.test: Likewise.
* tests/ltlibsrc.test: Likewise.
* tests/ltorder.test: Likewise.
* tests/nobase.test: Likewise.
* tests/nobase-libtool.test: Likewise.
* tests/mmodely.test: Likewise.
* tests/parallel-tests5.test: Likewise.
* tests/parallel-tests-suffix-prog.test: Likewise.
* tests/parallel-tests-ext-driver-prog.test: Likewise.
* tests/posixsubst-ldadd.test: Likewise.
* tests/posixsubst-libraries.test: Likewise.
* tests/posixsubst-ltlibraries.test: Likewise.
* tests/posixsubst-programs.test: Likewise.
* tests/posixsubst-sources.test: Likewise.
* tests/pr87.test: Likewise.
* tests/pr204.test: Likewise.
* tests/pr224.test: Likewise.
* tests/pr300-lib.test: Likewise.
* tests/pr300-ltlib.test: Likewise.
* tests/pr300-prog.test: Likewise.
* tests/pr401.test: Likewise.
* tests/pr401b.test: Likewise.
* tests/pr401c.test: Likewise.
* tests/remake-gnulib-add-acsubst.test: Likewise.
* tests/remake-gnulib-add-header.test: Likewise.
* tests/regex.test: Likewise.
* tests/repeated-options.test: Likewise.
* tests/silent.test: Likewise.
* tests/silent3.test: Likewise.
* tests/silent9.test: Likewise.
* tests/silent-lex-generic.test: Likewise.
* tests/silent-many-generic.test: Likewise.
* tests/silent-yacc-generic.test: Likewise.
* tests/specflg7.test: Likewise.
* tests/specflg9.test: Likewise.
* tests/specflg10.test: Likewise.
* tests/stdinc.test: Likewise.
* tests/strip.test: Likewise.
* tests/strip2.test: Likewise.
* tests/strip3.test: Likewise.
* tests/subdirbuiltsources.test: Likewise.
* tests/subobj3.test: Likewise.
* tests/subobj6.test: Likewise.
* tests/subobj11a.test: Likewise.
* tests/subpkg.test: Likewise.
* tests/subst2.test: Likewise.
* tests/subst3.test: Likewise.
* tests/substref.test: Likewise.
* tests/substre2.test: Likewise.
* tests/suffix5.test: Likewise.
* tests/suffix8.test: Likewise.
* tests/suffix10.test: Likewise.
* tests/suffix11.test: Likewise.
* tests/suffix12.test: Likewise.
* tests/suffix13.test: Likewise.
* tests/target-cflags.test: Likewise.
* tests/transform.test: Likewise.
* tests/transform2.test: Likewise.
* tests/yacc-basic.test: Likewise.
* tests/yacc-d-basic.test: Likewise.
* tests/yacc-clean.test: Likewise.
* tests/yacc-dist-nobuild.test: Likewise.
* tests/yacc-nodist.test: Likewise.
* tests/yaccvpath.test: Likewise.
* tests/yacc-d-vpath.test: Likewise.
* tests/yacc4.test: Likewise.
* tests/yacc7.test: Likewise.
* tests/yacc8.test: Likewise.
* tests/yaccdry.test: Likewise.
* tests/yflags-cmdline-override.test: Likewise.
* tests/yflags-force-override.test: Likewise.
* tests/python-virtualenv.test: Likewise.  Also, improve skip
messages.
* tests/subobj5.test ($required): Add `cc'.
(Makefile.am): Set `AUTOMAKE_OPTIONS' to `subdir-objects', and
add new checking rules `test-build' and `test-distdir'.
Extend the test by building and examining the distdir, the
program, and the object files.
* tests/postproc.test ($required): Add `cc'.
Avoid the explicit `|| Exit $?' after call to configure, which
is now either redundant (e.g., when `am_explicit_skips' is
unset), or counter-productive (e.g., when `am_explicit_skips'
is set to "yes").
* tests/pr243.test: Likewise.
* tests/pr266.test: Likewise.
* tests/pr220.test: Simplify so that it doesn't require a
C compiler anymore.
* tests/subdir5.test: Likewise.
* tests/subdir8.test: Likewise.
* tests/lflags.test: Likewise.
* tests/yflags.test: Likewise.
* tests/yflags-force-conditional.test: Likewise.
* tests/lflags2.test: Simplify so that it doesn't require a
C++ compiler anymore.
* tests/yflags2.test: Likewise.
* tests/autohdrdry.test (configure.in): Remove unneeded call
to `AC_PROG_CC'.
* tests/pr287.test: Likewise.
* tests/check6.test: Likewise.
* tests/cond21.test: Likewise, plus some cosmetic adjustments.
* tests/upc.test: Skip if configure fails with status `77'.
* tests/upc3.test: Likewise.
* tests/vala4.test: Likewise.
* tests/nostdinc.test: Likewise.  Also, make grepping checks
on `Makefile.in'.  Update heading comments.
* tests/compile5.test: When we must skip, skip explicitly,
and with a meaningful message.
* tests/instspc-tests.sh: When running in "test-build" or
"test-install" mode (as determined by the value of variable
`$instspc_action'), require `cc'.  Adjust comments.
* tests/depmod-tests.sh: Likewise.

168 files changed:
ChangeLog
tests/aclocal4.test
tests/ansi.test
tests/ansi10.test
tests/ansi3.test
tests/ansi3b.test
tests/ansi5.test
tests/ansi6.test
tests/ansi7.test
tests/ansi9.test
tests/autohdr4.test
tests/autohdrdry.test
tests/backcompat6.test
tests/canon7.test
tests/check-subst-prog.test
tests/check5.test
tests/check6.test
tests/check7.test
tests/check8.test
tests/compile5.test
tests/cond11.test
tests/cond16.test
tests/cond18.test
tests/cond19.test
tests/cond21.test
tests/cond22.test
tests/cond30.test
tests/cond31.test
tests/cond32.test
tests/cond34.test
tests/cond35.test
tests/cond39.test
tests/cond4.test
tests/condd.test
tests/cygnus-dependency-tracking.test
tests/depcomp2.test
tests/depcomp6.test
tests/depcomp7.test
tests/depcomp8a.test
tests/depcomp8b.test
tests/depdist.test
tests/depend2.test
tests/depend5.test
tests/depmod-tests.sh
tests/distcleancheck.test
tests/distname.test
tests/exeext.test
tests/exeext4.test
tests/extradep.test
tests/extradep2.test
tests/gnits2.test
tests/gnits3.test
tests/instdir-ltlib.test
tests/instdir-prog.test
tests/instfail-libtool.test
tests/instfail.test
tests/instspc-tests.sh
tests/lex-subobj-nodep.test
tests/lex3.test
tests/lex5.test
tests/lexvpath.test
tests/lflags.test
tests/lflags2.test
tests/libobj-basic.test
tests/libobj10.test
tests/libobj16a.test
tests/libobj16b.test
tests/libobj17.test
tests/libobj19.test
tests/libobj2.test
tests/libobj7.test
tests/libtoo10.test
tests/libtoo11.test
tests/libtool3.test
tests/libtool7.test
tests/libtool9.test
tests/ltcond.test
tests/ltcond2.test
tests/ltconv.test
tests/ltinit.test
tests/ltlibsrc.test
tests/ltorder.test
tests/mmodely.test
tests/nobase-libtool.test
tests/nobase.test
tests/nostdinc.test
tests/parallel-tests-ext-driver-prog.test
tests/parallel-tests-suffix-prog.test
tests/parallel-tests5.test
tests/posixsubst-ldadd.test
tests/posixsubst-libraries.test
tests/posixsubst-ltlibraries.test
tests/posixsubst-programs.test
tests/posixsubst-sources.test
tests/postproc.test
tests/pr204.test
tests/pr220.test
tests/pr224.test
tests/pr243.test
tests/pr266.test
tests/pr287.test
tests/pr300-lib.test
tests/pr300-ltlib.test
tests/pr300-prog.test
tests/pr401.test
tests/pr401b.test
tests/pr401c.test
tests/pr87.test
tests/primary3.test
tests/python-virtualenv.test
tests/regex.test
tests/remake-gnulib-add-acsubst.test
tests/remake-gnulib-add-header.test
tests/remake-gnulib-remove-header.test
tests/repeated-options.test
tests/silent-lex-generic.test
tests/silent-many-generic.test
tests/silent-yacc-generic.test
tests/silent.test
tests/silent3.test
tests/silent9.test
tests/specflg10.test
tests/specflg7.test
tests/specflg8.test
tests/stdinc.test
tests/strip.test
tests/strip2.test
tests/strip3.test
tests/subdir5.test
tests/subdir8.test
tests/subdirbuiltsources.test
tests/subobj11a.test
tests/subobj3.test
tests/subobj5.test
tests/subobj6.test
tests/subpkg.test
tests/subst2.test
tests/subst3.test
tests/substre2.test
tests/substref.test
tests/suffix10.test
tests/suffix11.test
tests/suffix12.test
tests/suffix13.test
tests/suffix5.test
tests/suffix8.test
tests/target-cflags.test
tests/transform.test
tests/transform2.test
tests/upc.test
tests/upc3.test
tests/vala4.test
tests/yacc-basic.test
tests/yacc-clean.test
tests/yacc-d-basic.test
tests/yacc-d-vpath.test
tests/yacc-dist-nobuild.test
tests/yacc-nodist.test
tests/yacc4.test
tests/yacc7.test
tests/yacc8.test
tests/yaccdry.test
tests/yaccvpath.test
tests/yflags-cmdline-override.test
tests/yflags-force-conditional.test
tests/yflags-force-override.test
tests/yflags.test
tests/yflags2.test

index cab13f207ec832923e34398294ae61e12bd589ea..e7dcc98d745a8284f3751eb21d498e62f13bc6db 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,194 @@
+2011-05-25  Stefano Lattarini  <stefano.lattarini@gmail.com>
+
+       testsuite: require C compiler explicitly in tests needing it
+       The list of the test scripts which needed a C compiler but
+       failed to require it explicitly has been found by running:
+         $ am_explicit_skips=yes CC=false make check
+       and looking for tests that reported FAIL instead of SKIP.
+       After the present change, all those previously failing tests
+       either pass or get correctly skipped.
+       * tests/aclocal4.test ($required): Add `cc'.
+       * tests/ansi.test: Likewise.
+       * tests/ansi10.test: Likewise.
+       * tests/ansi3.test: Likewise.
+       * tests/ansi3b.test: Likewise.
+       * tests/ansi5.test: Likewise.
+       * tests/ansi6.test: Likewise.
+       * tests/ansi7.test: Likewise.
+       * tests/ansi9.test: Likewise.
+       * tests/backcompat6.test: Likewise.
+       * tests/canon7.test: Likewise.
+       * tests/check5.test: Likewise.
+       * tests/check7.test: Likewise.
+       * tests/check8.test: Likewise.
+       * tests/cond4.test: Likewise.
+       * tests/cond11.test: Likewise.
+       * tests/cond16.test: Likewise.
+       * tests/cond18.test: Likewise.
+       * tests/cond19.test: Likewise.
+       * tests/cond22.test: Likewise.
+       * tests/cond30.test: Likewise.
+       * tests/cond31.test: Likewise.
+       * tests/cond32.test: Likewise.
+       * tests/cond34.test: Likewise.
+       * tests/cond35.test: Likewise.
+       * tests/cond39.test: Likewise.
+       * tests/condd.test: Likewise.
+       * tests/cygnus-dependency-tracking.test: Likewise.
+       * tests/depcomp2.test: Likewise.
+       * tests/depcomp6.test: Likewise.
+       * tests/depcomp7.test: Likewise.
+       * tests/depcomp8a.test: Likewise.
+       * tests/depcomp8b.test: Likewise.
+       * tests/depdist.test: Likewise.
+       * tests/depend2.test: Likewise.
+       * tests/depend5.test: Likewise.
+       * tests/distcleancheck.test: Likewise.
+       * tests/distname.test: Likewise.
+       * tests/exeext.test: Likewise.
+       * tests/exeext4.test: Likewise.
+       * tests/extradep.test: Likewise.
+       * tests/extradep2.test: Likewise.
+       * tests/gnits2.test: Likewise.
+       * tests/gnits3.test: Likewise.
+       * tests/instdir-ltlib.test: Likewise.
+       * tests/instdir-prog.test: Likewise.
+       * tests/instfail.test: Likewise.
+       * tests/instfail-libtool.test: Likewise.
+       * tests/lex3.test: Likewise.
+       * tests/lex5.test: Likewise.
+       * tests/lexvpath.test: Likewise.
+       * tests/lex-subobj-nodep.test: Likewise.
+       * tests/lflags.test: Likewise.
+       * tests/libobj-basic.test: Likewise.
+       * tests/libobj2.test: Likewise.
+       * tests/libobj7.test: Likewise.
+       * tests/libobj10.test: Likewise.
+       * tests/libobj16a.test: Likewise.
+       * tests/libobj16b.test: Likewise.
+       * tests/libobj17.test: Likewise.
+       * tests/libobj19.test: Likewise.
+       * tests/libtool2.test: Likewise.
+       * tests/libtool3.test: Likewise.
+       * tests/libtool7.test: Likewise.
+       * tests/libtool9.test: Likewise.
+       * tests/libtoo10.test: Likewise.
+       * tests/libtoo11.test: Likewise.
+       * tests/ltcond.test: Likewise.
+       * tests/ltcond2.test: Likewise.
+       * tests/ltconv.test: Likewise.
+       * tests/ltinit.test: Likewise.
+       * tests/ltlibsrc.test: Likewise.
+       * tests/ltorder.test: Likewise.
+       * tests/nobase.test: Likewise.
+       * tests/nobase-libtool.test: Likewise.
+       * tests/mmodely.test: Likewise.
+       * tests/parallel-tests5.test: Likewise.
+       * tests/parallel-tests-suffix-prog.test: Likewise.
+       * tests/parallel-tests-ext-driver-prog.test: Likewise.
+       * tests/posixsubst-ldadd.test: Likewise.
+       * tests/posixsubst-libraries.test: Likewise.
+       * tests/posixsubst-ltlibraries.test: Likewise.
+       * tests/posixsubst-programs.test: Likewise.
+       * tests/posixsubst-sources.test: Likewise.
+       * tests/pr87.test: Likewise.
+       * tests/pr204.test: Likewise.
+       * tests/pr224.test: Likewise.
+       * tests/pr300-lib.test: Likewise.
+       * tests/pr300-ltlib.test: Likewise.
+       * tests/pr300-prog.test: Likewise.
+       * tests/pr401.test: Likewise.
+       * tests/pr401b.test: Likewise.
+       * tests/pr401c.test: Likewise.
+       * tests/remake-gnulib-add-acsubst.test: Likewise.
+       * tests/remake-gnulib-add-header.test: Likewise.
+       * tests/regex.test: Likewise.
+       * tests/repeated-options.test: Likewise.
+       * tests/silent.test: Likewise.
+       * tests/silent3.test: Likewise.
+       * tests/silent9.test: Likewise.
+       * tests/silent-lex-generic.test: Likewise.
+       * tests/silent-many-generic.test: Likewise.
+       * tests/silent-yacc-generic.test: Likewise.
+       * tests/specflg7.test: Likewise.
+       * tests/specflg9.test: Likewise.
+       * tests/specflg10.test: Likewise.
+       * tests/stdinc.test: Likewise.
+       * tests/strip.test: Likewise.
+       * tests/strip2.test: Likewise.
+       * tests/strip3.test: Likewise.
+       * tests/subdirbuiltsources.test: Likewise.
+       * tests/subobj3.test: Likewise.
+       * tests/subobj6.test: Likewise.
+       * tests/subobj11a.test: Likewise.
+       * tests/subpkg.test: Likewise.
+       * tests/subst2.test: Likewise.
+       * tests/subst3.test: Likewise.
+       * tests/substref.test: Likewise.
+       * tests/substre2.test: Likewise.
+       * tests/suffix5.test: Likewise.
+       * tests/suffix8.test: Likewise.
+       * tests/suffix10.test: Likewise.
+       * tests/suffix11.test: Likewise.
+       * tests/suffix12.test: Likewise.
+       * tests/suffix13.test: Likewise.
+       * tests/target-cflags.test: Likewise.
+       * tests/transform.test: Likewise.
+       * tests/transform2.test: Likewise.
+       * tests/yacc-basic.test: Likewise.
+       * tests/yacc-d-basic.test: Likewise.
+       * tests/yacc-clean.test: Likewise.
+       * tests/yacc-dist-nobuild.test: Likewise.
+       * tests/yacc-nodist.test: Likewise.
+       * tests/yaccvpath.test: Likewise.
+       * tests/yacc-d-vpath.test: Likewise.
+       * tests/yacc4.test: Likewise.
+       * tests/yacc7.test: Likewise.
+       * tests/yacc8.test: Likewise.
+       * tests/yaccdry.test: Likewise.
+       * tests/yflags-cmdline-override.test: Likewise.
+       * tests/yflags-force-override.test: Likewise.
+       * tests/python-virtualenv.test: Likewise.  Also, improve skip
+       messages.
+       * tests/subobj5.test ($required): Add `cc'.
+       (Makefile.am): Set `AUTOMAKE_OPTIONS' to `subdir-objects', and
+       add new checking rules `test-build' and `test-distdir'.
+       Extend the test by building and examining the distdir, the
+       program, and the object files.
+       * tests/postproc.test ($required): Add `cc'.
+       Avoid the explicit `|| Exit $?' after call to configure, which
+       is now either redundant (e.g., when `am_explicit_skips' is
+       unset), or counter-productive (e.g., when `am_explicit_skips'
+       is set to "yes").
+       * tests/pr243.test: Likewise.
+       * tests/pr266.test: Likewise.
+       * tests/pr220.test: Simplify so that it doesn't require a
+       C compiler anymore.
+       * tests/subdir5.test: Likewise.
+       * tests/subdir8.test: Likewise.
+       * tests/lflags.test: Likewise.
+       * tests/yflags.test: Likewise.
+       * tests/yflags-force-conditional.test: Likewise.
+       * tests/lflags2.test: Simplify so that it doesn't require a
+       C++ compiler anymore.   
+       * tests/yflags2.test: Likewise.
+       * tests/autohdrdry.test (configure.in): Remove unneeded call
+       to `AC_PROG_CC'.
+       * tests/pr287.test: Likewise.
+       * tests/check6.test: Likewise.
+       * tests/cond21.test: Likewise, plus some cosmetic adjustments.
+       * tests/upc.test: Skip if configure fails with status `77'.
+       * tests/upc3.test: Likewise.
+       * tests/vala4.test: Likewise.
+       * tests/nostdinc.test: Likewise.  Also, make grepping checks
+       on `Makefile.in'.  Update heading comments.
+       * tests/compile5.test: When we must skip, skip explicitly,
+       and with a meaningful message.
+       * tests/instspc-tests.sh: When running in "test-build" or
+       "test-install" mode (as determined by the value of variable
+       `$instspc_action'), require `cc'.  Adjust comments.
+       * tests/depmod-tests.sh: Likewise.
+
 2011-05-24  Stefano Lattarini  <stefano.lattarini@gmail.com>
 
        testsuite: allow user to ask for stricter skip semantics
index 7b637bdbb05d61dcf4efd2eedbac434218138897..aa16aba9c7c192d8812e31f02210b862eb60aa3c 100755 (executable)
@@ -17,6 +17,7 @@
 # Make sure dependencies on aclocal.m4 are set correctly.
 # Report from Jim Meyering.
 
+required=cc
 . ./defs || Exit 1
 
 cat >>configure.in <<EOF
index 066337adb3395c74eedb4785eeec20a6a14c793e..aa2eb7f7327f87a994971ad36509ecd8a6d489ba 100755 (executable)
@@ -18,6 +18,7 @@
 # Test for bug where ansi2knr.c is not included in distribution.
 # From François Pinard.
 
+required=cc
 . ./defs || Exit 1
 
 cat > Makefile.am << 'END'
index 5cba1ce96e5cfa066461043f0e601e0d39a211cd..208bbc5387e6c5583e0c32220e9db5b5c773bd3e 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Make sure ansi2knr works with $(LIBOBJS).
 
-required=native
+required='cc native'
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index f41035cd1791e57cbf1ec2f2991d3fb269041eac..4aca8a250e53415bc3a77b5d3afb4d0b491077e6 100755 (executable)
@@ -17,7 +17,7 @@
 
 # Actual test of ansi2knr functionality.
 
-required=native
+required='cc native'
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index 59eef0882bd414c353d9143233e5bdddb83cec86..48ca7cbe731e033880f6fc2a9da03e15db39accb 100755 (executable)
@@ -19,7 +19,7 @@
 # of working gcc.  Same as ansi3.test, but with AUTOMAKE_OPTIONS
 # defined in configure.in.
 
-required=native
+required='cc native'
 . ./defs || Exit 1
 
 cat > configure.in << 'END'
index b29183c06664e2894ca051935e7b406275cba50d..4490d8b5e9b7e56601b542edd04007744a464054 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test for ansi2knr in another directory.
 
-required=native
+required='cc native'
 . ./defs || Exit 1
 
 cat > configure.in << 'END'
index 2a25ee1d2321d921b6566bb236f7e17eccba7599..7892d2be02788f859876738bb9fb30e31160ce98 100755 (executable)
@@ -17,7 +17,7 @@
 # Check ansi2knr on a source file in subdirectory.
 # From Kevin Ryde.
 
-required=native
+required='cc native'
 . ./defs || Exit 1
 
 cat > configure.in << 'END'
index 3b0a37f1a0ca63c300ae06b598248bb18c4f4c9d..231d8c81da2dad88b75ba7db8873f7412a2496a9 100755 (executable)
@@ -18,7 +18,7 @@
 # ansi6.test is the same test without subdir-objects.
 # From Kevin Ryde.
 
-required=native
+required='cc native'
 . ./defs || Exit 1
 
 cat > configure.in << 'END'
index aba430d9993a59034b068f010f933eeb83696586..52a68e87709668c5a9d324e981ab215f44c2df2c 100755 (executable)
@@ -18,6 +18,7 @@
 # can still be deansified.
 # Report from Paul D. Smith.
 
+required=cc
 . ./defs || Exit 1
 
 cat >>configure.in <<EOF
index d9bacd3ac0419c9b86476f1bad1f88d9fb3f2ec8..430d75c544d0af66930a3fe195d58f8187028b8f 100755 (executable)
@@ -17,6 +17,7 @@
 # Check rebuild rules for AC_CONFIG_HEADERS.
 # (This should also work without GNU Make.)
 
+required=cc
 . ./defs || Exit 1
 
 cat >>configure.in <<'EOF'
index c77315464eb2f48df6b053a9e338c92d799add46..b6208ff5197d7a3b050f3cd596f84ae92a4c86fe 100755 (executable)
@@ -20,7 +20,6 @@
 . ./defs || Exit 1
 
 cat >>configure.in <<'EOF'
-AC_PROG_CC
 AC_CONFIG_HEADERS([config.h])
 AC_OUTPUT
 EOF
index 8db46303f170b8bdc57f0d7784048fdc25c0aa98..343fd4e31e4c4f1b0fd333b102fd1406fbf9583f 100755 (executable)
@@ -19,6 +19,7 @@
 # This script can also serve as mild stress-testing for Automake.
 # See also the similar test `backcompat5.test'.
 
+required=cc
 . ./defs || Exit 1
 
 # Anyone doing something like this in a real-life package probably
index 8df283c2d273d06e7478455d0558a8252cf2412d..4a4d66ff42c2a064372a9aec1f9236b07335e8e1 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Stress test on canonicalization.
 
-required='libtool libtoolize'
+required='cc libtool libtoolize'
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index b8931d5a3dfe1b15561231817b72e8b56aee81ea..245a2512f3dc224c440bdfbd954bed57dfb028a2 100755 (executable)
@@ -17,7 +17,7 @@
 # Check @substituted@ TESTS, some of which are also PROGRAMS.
 # See also sister test `check-subst.test'.
 
-required=native
+required='cc native'
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index 639f343427e40e89ffad7c831b3acfc2644bf9cf..a10989cf8058304846b7c1e69b7c826a401f7e53 100755 (executable)
@@ -17,7 +17,7 @@
 
 # Test TESTS = $(check_PROGRAMS)
 
-required=native
+required='cc native'
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index 982ffbf70477b365385d94a5e2e6affcf5edc09d..9687008d7a34e21d2cb395160a369e5b3443538e 100755 (executable)
@@ -20,7 +20,6 @@
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
-AC_PROG_CC
 AC_OUTPUT
 END
 
index 39c9d77dc2469f23722ef3896d001074231bb8bf..e0b37c9c88089f5507bb9530a589e4aa523a2c12 100755 (executable)
@@ -16,6 +16,7 @@
 
 # Check EXEEXT extension for XFAIL_TESTS.
 
+required=cc
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index ae9d3752850be7bbd3ed670e1325aa8e238f8c10..225816100c6255ea5ad924dc6b1abd6c5241e2fe 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Check subdir TESTS.
 
-required=native
+required='cc native'
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index 6f4f4bdd2593cf2da80893b07362ca05573a69af..cd8baee3ca0cd80a45f89e3eeeb089bd880286cd 100755 (executable)
@@ -37,20 +37,21 @@ END
 
 : >Makefile.am
 
+# This will be sourced, nor executed.
 cat >check_host.in << 'END'
-#! /bin/sh
-case @host_os@ in
+case '@host_os@' in
   mingw*)
     ;;
   *)
-    exit 77
+    skip_ "target OS is not MinGW"
     ;;
 esac
 case @build_os@ in
   mingw* | cygwin*)
     ;;
   *)
-    winepath -w / || exit 77
+    winepath -w / \
+      || skip_ "not on MinGW or Cygwin, and winepath not available"
     ;;
 esac
 END
@@ -59,7 +60,7 @@ $ACLOCAL
 $AUTOCONF
 $AUTOMAKE -a
 ./configure
-./check_host
+. ./check_host
 
 pwd=`pwd`
 
index 1df840aabb68ddf444f3c6ae2c536505c44e298a..9e7f6da5371ed9b695d61f3a46b5b530635ed52e 100755 (executable)
@@ -18,6 +18,7 @@
 # This checks that, if LDADD is set from a conditional variable
 # and an AC_SUBST, the _DEPENDENCIES variable is set correctly.
 
+required=cc
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index 483fa64be617cfd8d894f7a68faa975f29974534..d27472c337401dfdb8f837c171f7bc5080c7748b 100755 (executable)
@@ -18,6 +18,7 @@
 # references.
 # Report from Richard Boulton
 
+required=cc
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index 577c31a4f85d20c26aa3e479bd31a6d5ea12f884..57c5516d70538ade0d78054f68561edbeefdb487 100755 (executable)
@@ -17,7 +17,7 @@
 # Regression test for substitution references to conditional variables.
 # Report from Richard Boulton
 
-required=GNUmake
+required='cc GNUmake'
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index a913575042bc2054c3b4f6c0e5e0aaec4b8c6365..c5ac15a320731d540a1327679b3d2f60640de61e 100755 (executable)
@@ -17,7 +17,7 @@
 # Regression test for substitution references to conditional variables.
 # Report from Richard Boulton
 
-required=GNUmake
+required='cc GNUmake'
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index 5d1db769cc774cab5ccbfc17d13466ed6991e572..cf204527e608643c47c1f9ed5f808c3ba8efa303 100755 (executable)
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
-AC_PROG_CC
-AM_CONDITIONAL(COND1, true)
-AM_CONDITIONAL(COND2, true)
-AM_CONDITIONAL(COND3, true)
+AM_CONDITIONAL([COND1], [true])
+AM_CONDITIONAL([COND2], [true])
+AM_CONDITIONAL([COND3], [true])
 AC_OUTPUT
 END
 
@@ -61,6 +60,7 @@ if COND3
   BAR += bar3
 endif
 
+.PHONY: test
 test:
        @echo BAR: $(BAR) :BAR
        @echo FOO: $(FOO) :FOO
@@ -72,3 +72,5 @@ $AUTOMAKE -a
 ./configure
 $MAKE test | $FGREP 'BAR: bar12 bar bar3 :BAR'
 $MAKE test | $FGREP 'FOO: foo foo1 foo2 foo1b :FOO'
+
+:
index 3354077245b40f63c37ab2edf2159a347e20bae3..4d88f9d2de857d28a8972bd79e6a7099b80bc2b9 100755 (executable)
@@ -17,6 +17,7 @@
 # Regression test for bug when sources listed in conditional.
 # Report from Richard Boulton.  PR/326.
 
+required=cc
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index d156297612671a19eb0fd8578de2f8d0eab05760..e1c134194b079d57f9114d15c7945615b2c79303 100755 (executable)
@@ -16,6 +16,7 @@
 
 # For PR/352: make sure we support bin_PROGRAMS being defined conditionally.
 
+required=cc
 . ./defs || Exit 1
 
 cat >>configure.in <<'EOF'
index 7deb999a72bb07d5be0da72277c59037108f034c..70feffc1ed7be36d252d1ba630adef561c2bd095 100755 (executable)
@@ -16,6 +16,7 @@
 
 # Make sure we define conditional _DEPENDENCIES correctly.
 
+required=cc
 . ./defs || Exit 1
 
 cat >>configure.in <<'EOF'
index 0e5e5d2a654edd3fbab28f30633f5374dcb17d69..57113dd442c21ac07fe323e3a3ae1bf5b9c33bed 100755 (executable)
@@ -16,6 +16,7 @@
 
 # Make sure the user can override a conditional _DEPENDENCIES.
 
+required=cc
 . ./defs || Exit 1
 
 cat >>configure.in <<'EOF'
index 9b951f54d69fbfa9b126b091b9baaae856976562..13b7a2751633dddba82d88e820ef7bef06280b33 100755 (executable)
@@ -17,6 +17,7 @@
 # Check for _DEPDENDENCIES definition with conditional _LDADD.
 # Report from Elena A. Vengerova
 
+required=cc
 . ./defs || Exit 1
 
 cat >>configure.in <<'EOF'
index 8aa1333ea53cbbc4e28f41a3407ac31e876367dd..2fba1f1e1473f0c83a39b5622c02f8fcd3b20969 100755 (executable)
@@ -17,7 +17,7 @@
 # Check rules output for parser defined conditionally.
 # Report from Roman Fietze.
 
-required='flex yacc'
+required='cc flex yacc'
 . ./defs || Exit 1
 
 cat >>configure.in <<'EOF'
index 3deb1cfd4e7d286a13e0003ef231c4f514e5c0fc..f6a916e01061580ddf1fe6214a410d48b6529438 100755 (executable)
@@ -20,7 +20,9 @@
 
 # Build either as CONFIG_FILE or as PROGRAM.
 
+required=cc
 . ./defs || Exit 1
+
 mkdir sub
 
 cat >>configure.in <<'END'
index 7c561032d60802680bd06dbc9cad4b706d90c7ee..8a7fcd324247854ac6aff92b99866f313cb05dd4 100755 (executable)
@@ -17,7 +17,7 @@
 
 # Another sources-in-conditional test.  Report from Tim Goodwin.
 
-required=GNUmake
+required='cc GNUmake'
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index ef5f7c71f7661b955a5e754c1567e3b4c3ec727a..71d10eae50f9d2f27e823501f4c7b24d1a7ede8a 100755 (executable)
@@ -17,6 +17,7 @@
 
 # Test for bug in conditionals.
 
+required=cc
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index 1bfec252cab40fb0bc50d9e976e1fb93c29aa0f9..e5df33c66ce2b7674254e137968d40d2637dd151 100755 (executable)
@@ -17,6 +17,7 @@
 # Check that cygnus mode disables automatic dependency tracking.
 # And check that this *cannot* be overridden.
 
+required=cc
 . ./defs || Exit 1
 
 cat >> configure.in <<'END'
index 63398db5326342d6928db49040101049c089d4f3..2bceaaf260ece522f67de7b20d28df9d0908a4c4 100755 (executable)
@@ -17,6 +17,7 @@
 # Test to make sure that depcomp is not used when it's not installed
 # From Pavel Roskin.
 
+required=cc
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index baf9fd58fd648a3061969e7c25a4bd5f977fe94c..13e8c83d443e3e5a3af37905cdc983e52e1e9fc0 100755 (executable)
@@ -16,6 +16,7 @@
 
 # Check dependency generation (non libtool case).
 
+required=cc
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index f404039ea76b5f9bbe6c2e58464c2dd667e94349..87f86b93ecb2c63d8868bdff1c33364953c86f62 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Check dependency generation (libtool case).
 
-required='libtoolize'
+required='cc libtoolize'
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index 06544d8303ba1354d19aca5310bc97aba1b4ebd0..9866cfdc2bfb940d6fa8b4238ee00a716fb6e04a 100755 (executable)
@@ -19,6 +19,7 @@
 # Keep this in sync with sister test `depcomp8b.test', which checks the
 # same thing for libtool objects.
 
+required=cc
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index e4cd632e87ddc8a27f2571d17adf6eed62e9f3c7..15dd109cefd6df269a306135f094f67e90fda3ea 100755 (executable)
@@ -19,7 +19,7 @@
 # Keep this in sync with sister test `depcomp8a.test', which checks the
 # same thing for non-libtool objects.
 
-required=libtoolize
+required='cc libtoolize'
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index 338763a650422a1d8813729427bd06b055034451..d5644dee36a9f4eaeda43da5e8e9b8a0bc4ffd47 100755 (executable)
@@ -17,6 +17,7 @@
 # Make sure depcomp is found for the distribution.
 # From Eric Magnien.
 
+required=cc
 . ./defs || Exit 1
 
 rm -f configure.in
index a5ca0c090372506a3230c2ea51bfe3bdab4f0650..995680426cc11764a32aa1be9e6f20651f6dd99d 100755 (executable)
@@ -19,6 +19,7 @@
 # --disable-dependency-tracking.
 # Report from Robert Boehne
 
+required=cc
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index bd14c72d566a034f77392cf91afd4d7b1fd41982..9d1bb415197e2d1f4538945867a2d4a1a5225747 100755 (executable)
@@ -17,6 +17,7 @@
 # Check that _AM_OUTPUT_DEPENDENCY_COMMANDS works with eval-style
 # quoting in $CONFIG_FILES, done by newer Autoconf.
 
+required=cc
 . ./defs || Exit 1
 
 cat >>configure.in << END
index 2be8af0528d58fa7c112da1939c1176c4d6f91cf..36b57190f893aee15f949f5ab479813db9070f1c 100755 (executable)
@@ -166,9 +166,12 @@ fi
 # the errexit flag, since the setup code might not be prepared to deal
 # with it.  Also pre-set `$me' for `tests/defs', so that different calls
 # to `depmod-tests.sh' won't try to use the same temporary directory.
+# The actual tests require a C compiler, so require it for them; but do
+# not require it when generating data, as it's not needed then.
 if test x"$action" = x"generate-data"; then
   me=depmod-data
 else
+  required=cc
   me=depcomp-$depmode
 fi
 set +e
index b27ab07a17f878611a0392aa818ff81d4da568fb..cf2b0fe48cb0e86f85b7e7cd938eb5307748072d 100755 (executable)
@@ -17,6 +17,7 @@
 # Make sure the suggested `distcleancheck_listfiles' in the manual works.
 # The example Makefile.am we use is from the FAQ entry `distcleancheck'.
 
+required=cc
 . ./defs || Exit 1
 
 cat >>configure.in << 'END'
index f940045a642eb14c1f86808d5edba4d2d4d6740e..d090fe9a0c79d10eb26fcb14ace382c583b465fe 100755 (executable)
@@ -18,6 +18,7 @@
 # Test of names in tar file.
 # From Rainer Orth
 
+required=cc
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index 70d7efa2ea0e57cbf4dafbc28fa5c4275733becb..08cc0346a0ac3c9ae2e57bd7a150a75194997b77 100755 (executable)
@@ -22,6 +22,7 @@
 # Also make sure the old definitions of bin_PROGRAMS and friend
 # aren't left around.  Report from Jim Meyering.
 
+required=cc
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index c3f968c420add1afa342c1f775b317220c2d4e56..e78a508b743e3de15178fe386e343c3af61b4d73 100755 (executable)
@@ -17,6 +17,7 @@
 # Make sure $(EXEEXT) is appended to programs and to tests that are
 # programs, but not to @substitutions@.
 
+required=cc
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index 623d73a621bf6d59dc97bf9b20b7487cea73550f..7f3478ed356f79e4d459962a7c9efe8ff60af4b2 100755 (executable)
@@ -16,6 +16,7 @@
 
 # Test EXTRA_*_DEPENDENCIES.  See extradep2 for libtool variant.
 
+required=cc
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index 9a97de4ec50753346359b19bbd4c185f7fdc7636..86caa5d28d67f5e78aed60bddbc7f9ee4afc880a 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test EXTRA_*_DEPENDENCIES, libtool version; see extradep.test.
 
-required=libtoolize
+required='cc libtoolize'
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index 1b60387b34022bf04e89aafb97475a76323ece91..255ba7b0f86c1ac7e0e5f27247be8c52bda93fd9 100755 (executable)
@@ -17,7 +17,7 @@
 
 # Test to ensure std-options checking is correct.
 
-required=native
+required='cc native'
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index 0c8683529abe0a2ec03d75469c0853b48430a32e..5813527a014528737652cd33532d76e9bbe5dd88 100755 (executable)
@@ -16,6 +16,7 @@
 
 # Check that AM_INSTALLCHECK_STD_OPTIONS_EXEMPT works.
 
+required=cc
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index a90536dbd4ccf069858f623863c53c43aa3651ab..0d9afd6b3bde5b6525ad5030041e42e5af4e32c1 100755 (executable)
@@ -18,7 +18,7 @@
 # be installed there.
 # This test exercises the libtool code paths.
 
-required=libtoolize
+required='cc libtoolize'
 . ./defs || Exit 1
 
 cat >>configure.in <<'END'
index eb52933aef71d2e44d4b494fcac7f60e273a21a3..9ca67ad69891c379e30ad3550d3092d1bf670a8d 100755 (executable)
@@ -18,6 +18,7 @@
 # nothing should be installed there.
 # This test exercises the prog and libs code paths.
 
+required=cc
 . ./defs || Exit 1
 
 cat >>configure.in <<'END'
index 114f290899d6efacc765f14c4d0c72004d589da7..3d520f1c77f680d10b984fee160943086790f9b4 100755 (executable)
@@ -19,7 +19,7 @@
 
 # This is the libtool sister test of instfail.test
 
-required='libtool libtoolize'
+required='cc libtool libtoolize'
 . ./defs || Exit 1
 
 cat >>configure.in <<END
index 440438794202b7ed9d6d09abdea855a0e51d7142..76312437eafb7f84036d96c05d1c9794b8163869 100755 (executable)
@@ -19,6 +19,7 @@
 
 # This test has a few sister tests, for java, info, libtool.
 
+required=cc
 . ./defs || Exit 1
 
 cat >>configure.in <<END
index 70c1a654d19adf7e00483bafad364f055b0cd345..c57efb79240a4b11c4bc29260aa7e8063fa07dae 100755 (executable)
@@ -268,9 +268,12 @@ fi
 # the errexit flag, since the setup code might not be prepared to deal
 # with it.  Also pre-set `$me' for `tests/defs', so that different calls
 # to `instspc-tests.sh' won't try to use the same temporary directory.
+# The actual tests require a C compiler, so require it for them; but do
+# not require it when generating data, as it's not needed then.
 if test x"$instspc_action" = x"generate-data"; then
   me=instspc-data
 else
+  required=cc
   me=$instspc_action-$instspc_test_name
 fi
 set +e
index 5f201cbbd4c4c41f42812ffd17366a063b5841ee..322ae96e3232757f040d643b2b8dc554a7542749 100755 (executable)
@@ -17,7 +17,7 @@
 # Ensure subdirs for subdir scanners are generated when subdir-objects
 # are used, even when dependency tracking is disabled.
 
-required=flex
+required='cc flex'
 . ./defs || Exit 1
 
 cat >>configure.in <<\END
index 2b7f3d15afc0842d103467d247e3ce85b50b3c21..7def55ad99682716160e35b01c2b0d4c541b3c9b 100755 (executable)
@@ -19,7 +19,7 @@
 # Test associated with PR 19.
 # From Matthew D. Langston.
 
-required='flex GNUmake'
+required='cc flex GNUmake'
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index d57a619d7f9f1367ac531b905b5d4447c0a710ec..ee4306fb851e29a2c9892445998e34048c06d785 100755 (executable)
@@ -17,7 +17,7 @@
 
 # Test for subdir lexers.
 
-required='GNUmake flex'
+required='cc GNUmake flex'
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index 4b75950304a5fe3541503d5422706c3f5bd9aa39..212db31433db901dd209a91c65eb7ee554df4775 100755 (executable)
@@ -22,7 +22,7 @@
 
 # Please keep this in sync with sister test `yaccvapth.test'.
 
-required=flex
+required='cc flex'
 . ./defs || Exit 1
 
 cat > lexoutroot.in << 'END'
index da207fb2ec5b081a41a2e4aa7ae4da49a26d99bc..42e6da0a4bd9e6b8094e503791bf5cca2827e3ed 100755 (executable)
@@ -19,6 +19,7 @@
 # Please keep this in sync with the sister tests lflags2.test, yflags.test
 # and yflags2.test
 
+required=cc
 . ./defs || Exit 1
 
 cat >fake-lex <<'END'
@@ -33,7 +34,7 @@ chmod a+x fake-lex
 unset LEX || :
 
 cat >> configure.in <<'END'
-AC_PROG_CC
+AC_SUBST([CC], [false])
 # Simulate presence of Lex using our fake-lex script.
 AC_SUBST([LEX], ['$(abs_top_srcdir)'/fake-lex])
 AC_SUBST([LEX_OUTPUT_ROOT], [lex.yy])
@@ -42,6 +43,7 @@ AC_OUTPUT
 END
 
 cat > Makefile.am <<'END'
+AUTOMAKE_OPTIONS = no-dependencies
 bin_PROGRAMS = foo bar
 foo_SOURCES = main.c foo.l
 bar_SOURCES = main.c bar.l
@@ -55,19 +57,17 @@ $AUTOMAKE -a
 grep '\$(LFLAGS).*\$(bar_LFLAGS)' Makefile.in && Exit 1
 grep '\$(LFLAGS).*\$(AM_LFLAGS)' Makefile.in && Exit 1
 
-echo 'int main(void){ return 0; }' > main.c
 : > foo.l
 : > bar.l
 
 $AUTOCONF
 ./configure
-env LFLAGS=__user_flags__ $MAKE -e
-
-ls -l
+env LFLAGS=__user_flags__ $MAKE -e foo.c bar-bar.c
 
 cat foo.c
-grep '__am_flags__.*__user_flags__' foo.c
 cat bar-bar.c
+
+grep '__am_flags__.*__user_flags__' foo.c
 grep '__bar_flags__.*__user_flags__' bar-bar.c
 
 :
index 6c731216aa24ee7ce237a8daab910cf68591682e..f78de85cc74a12c8db417c64b2c15dfd3e36d5cc 100755 (executable)
@@ -33,7 +33,7 @@ chmod a+x fake-lex
 unset LEX || :
 
 cat >> configure.in <<'END'
-AC_PROG_CXX
+AC_SUBST([CXX], [false])
 # Simulate presence of Lex using our fake-lex script.
 AC_SUBST([LEX], ['$(abs_top_srcdir)'/fake-lex])
 AC_SUBST([LEX_OUTPUT_ROOT], [lex.yy])
@@ -42,6 +42,7 @@ AC_OUTPUT
 END
 
 cat > Makefile.am <<'END'
+AUTOMAKE_OPTIONS = no-dependencies
 bin_PROGRAMS = foo bar
 foo_SOURCES = main.cc foo.ll
 bar_SOURCES = main.cc bar.l++
@@ -55,19 +56,17 @@ $AUTOMAKE -a
 grep '\$(LFLAGS).*\$(bar_LFLAGS)' Makefile.in && Exit 1
 grep '\$(LFLAGS).*\$(AM_LFLAGS)' Makefile.in && Exit 1
 
-echo 'int main(void) { return 0; }' > main.cc
 : > foo.ll
 : > bar.l++
 
 $AUTOCONF
 ./configure
-env LFLAGS=__user_flags__ $MAKE -e
-
-ls -l
+env LFLAGS=__user_flags__ $MAKE -e foo.cc bar-bar.c++
 
 cat foo.cc
-grep '__am_flags__.*__user_flags__' foo.cc
 cat bar-bar.c++
+
+grep '__am_flags__.*__user_flags__' foo.cc
 grep '__bar_flags__.*__user_flags__' bar-bar.c++
 
 :
index 0fe0278c71a2fd6eb91a6c74891004b678f43fbc..157dd01ecb3c590d0a9e7e7aadaf633709d4dcba 100755 (executable)
@@ -16,6 +16,7 @@
 
 # Make sure AC_LIBSOURCE and AC_LIBSOURCES work.
 
+required=cc
 . ./defs || Exit 1
 
 mv configure.in configure.proto
index f891e85f44c680690da531647a0ac1f4c55694b4..85b3d8a96660f8637a746705e7541748f468bdb4 100755 (executable)
@@ -18,6 +18,7 @@
 # Do not complain about the nonexistence of a source for LIBOBJS if
 # it's in BUILT_SOURCES.  Reported by Erez Zadok.
 
+required=cc
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index 9946bc5b009607b75f19e7b990749ebb2747f150..9b7c6fbdc84965723235599431f037c7f5b6f0d7 100755 (executable)
@@ -17,6 +17,7 @@
 # Make sure AC_LIBOBJ and friends work.
 # Please keep this in sync with sister test `libobj16b.test'.
 
+required=cc
 . ./defs || Exit 1
 
 mv configure.in configure.proto
index 1039558e0ce84272b6aa484a5da7b8a23434ecf3..9f6088358c4eee0815fc87fbeb06265b4a952fc2 100755 (executable)
@@ -15,8 +15,9 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 # Make sure AC_LIBOBJ and friends work.
-# Please keep this in sync with sister test `libobj16b.test'.
+# Please keep this in sync with sister test `libobj16a.test'.
 
+required=cc
 . ./defs || Exit 1
 
 mv configure.in configure.proto
index 4f9db57f9039be7410aedc2fc9ca3ccbb1e1e56f..c753f7da61f197d1f36b6ce6ba251f09d7bb4ae1 100755 (executable)
@@ -16,6 +16,7 @@
 
 # Make sure AC_LIBOBJ accept non-literal arguments.
 
+required=cc
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index bc495b5b543c99e967381105f1cc7abb6590e25a..8e595c2c0183abd779ffe780da8746730c1b2822 100755 (executable)
@@ -16,6 +16,7 @@
 
 # Test support for AC_CONFIG_LIBOBJ_DIR.
 
+required=cc
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index 66ca0d04e122a1560641bd830f1866e63816ad27..350f605166cf25125111ef3d2ca10606b9b0fef6 100755 (executable)
@@ -18,6 +18,7 @@
 # Test to make sure LIBOBJS works in subdirs.
 # Bug from Josh MacDonald.
 
+required=cc
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index b7556b70bc6c04b23409b2e6e78e389fd0a48395..22207d7a21788f78e39691904d2a287a4305e5ff 100755 (executable)
@@ -17,6 +17,7 @@
 
 # Test for multiple replacement functions.
 
+required=cc
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index 72310bb7203486f314b8f57383f20850b81d44cf..0d999dce88aba7a13cc4e3c69dca7a57d7892a14 100755 (executable)
@@ -17,8 +17,9 @@
 # Make sure .libs directories are removed for _PROGRAMS.
 # Report from Guillermo Ontañón.
 
-required=libtoolize
+required='cc libtoolize'
 . ./defs || Exit 1
+
 cat >> configure.in << 'END'
 AC_PROG_LIBTOOL
 AC_OUTPUT
index 4cfcda5bde7807efaf3a04d58c6fd7cf4b5e9587..e7b7354dcd9cebb0e7cb2bd1a6be302815ff394f 100755 (executable)
@@ -17,8 +17,9 @@
 # Make sure config.lt is removed with Libtool 2.2.x's LT_OUTPUT.
 # Report by Charles Wilson.
 
-required=libtoolize
+required='cc libtoolize'
 . ./defs || Exit 1
+
 cat >> configure.in << 'END'
 AC_PROG_LIBTOOL
 m4_ifdef([LT_OUTPUT], [LT_OUTPUT])
@@ -33,4 +34,5 @@ $AUTOMAKE --add-missing
 $AUTOCONF
 ./configure
 $MAKE distcheck
+
 :
index b50cde2a4f929c7efbac00db3ec3197d0d760086..86a04b4284bca751c7812bd102f0025e1b2abc36 100755 (executable)
@@ -17,7 +17,7 @@
 # Try to build and package a program linked to a Libtool library.
 # Also make sure we do not bloat the Makefile with unneeded rules.
 
-required=libtoolize
+required='cc libtoolize'
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index ad8e2ecb043d500f825d2213f48003da2aa476b9..90ae862a13aaff434dd4dd7c38468b8327f3748f 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure we allow Libtool's -dlopen/-dlpreopen
 # Also check basic support for AM_LIBTOOLFLAGS/LIBTOOLFLAGS
 
-required=libtoolize
+required='cc libtoolize'
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index b025719a7c6ad8ac04ddd319c8117ec2f2c8c512..ab6266eb84ad89b1a22a88fc942704c01e2969aa 100755 (executable)
@@ -19,7 +19,7 @@
 # Quite similar to libtool7.test, using AM_LDFLAGS in addition to
 # xxx_LDFLAGS.
 
-required=libtoolize
+required='cc libtoolize'
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index 1c4069dd9026ea0258ef1ba9e2a4027614c7d87c..2dc64e0e058e3d0387586ebeed1e31c792025152 100755 (executable)
@@ -17,7 +17,7 @@
 # Test for conditional libtool libraries.
 # This combines two examples from the manual.
 
-required=libtoolize
+required='cc libtoolize'
 . ./defs || Exit 1
 
 cat >>configure.in <<'END'
index b917eb4b79336c3b2f7d80e3f280f555f979cd03..42da11bb1c99845c936a26dddfa1503646819ce6 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test for bug in conditionals.
 
-required='native libtoolize'
+required='cc native libtoolize'
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index 65ee86ded99f54826e77b35b9222efe36a5bdca4..c0a1099e081913ebf40c254b32e02937761df154 100755 (executable)
@@ -17,7 +17,7 @@
 # Test for libtool convenience libraries.
 # This example is taken from the manual.
 
-required='native libtoolize'
+required='cc native libtoolize'
 . ./defs || Exit 1
 
 cat >>configure.in <<'END'
index 189e5c26c807b28451a415b64efd0abfba425d54..a6131f94bcdbecf1480822806e067fdcdcad4d75 100755 (executable)
@@ -18,7 +18,7 @@
 # interface (with LT_INIT etc.) is used (this interface has been
 # present since libtool 1.9b, circa 2004).
 
-required='libtoolize'
+required='cc libtoolize'
 . ./defs || Exit 1
 
 cat >>configure.in <<'END'
index 404d2745827b2cdb0008616e077e989ebf444dde..f1506267ee09a3ea4e9bbf37896542542cb36eb2 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test to make sure a sensible default source for libraries is used.
 
-required=libtool
+required='cc libtool'
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index c41134137b8fff29cb1b85bff3b5df0370cbb457..7c4b78c8772d8ab80c00a6b564c414887f40eff5 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test for correct installation order of nobase libtool libraries.
 
-required='libtoolize'
+required='cc libtoolize'
 . ./defs || Exit 1
 
 cat >>configure.in <<'END'
@@ -57,4 +57,5 @@ grep 'has not been installed' stderr && Exit 1
 
 $MAKE uninstall
 test `find inst -type f -print | wc -l` -eq 0
+
 :
index f2ad334eb73229ff46712585f6554c3bbe56a1f1..f232058b2461b33b0b1991ffc8281e9055bc8cb7 100755 (executable)
@@ -19,6 +19,7 @@
 # sources in maintainer mode.
 # From Derek R. Price.
 
+required=cc
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index e2d2847001bac92c261d1624a71a848bf475d955..c9e057acdd5ed219f23bab957090835101dbb27b 100755 (executable)
@@ -19,7 +19,7 @@
 # This is just the libtool equivalent of nobase.test, split
 # up for greater exposure of nobase.test.
 
-required=libtoolize
+required='cc libtoolize'
 . ./defs || Exit 1
 
 cat >> configure.in <<'EOF'
index 52335d453d53d84f79f67abdc9692fda6b10b296..aca646ace644108066e9e531522d7ff6a9789440 100755 (executable)
@@ -17,6 +17,7 @@
 
 # Make sure nobase_* works.
 
+required=cc
 . ./defs || Exit 1
 
 cat >> configure.in <<'EOF'
index a693003cc46164835b40ac5a5db20273beb4e82f..07f91f154a7bbc24f7c4d352aa2aae64a7d222e5 100755 (executable)
 
 # Test to make sure nostdinc option works correctly.
 
+# We don't require a C compiler explicitly, because the first part of the
+# test (where `Makefile.in' is grepped) does not require one.  Insted, we
+# just skip the rest of the test if configure fails to find a working C
+# compiler.
+
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
@@ -33,7 +38,7 @@ END
 $ACLOCAL
 $AUTOMAKE
 
-grep '.*-I *\.' Makefile.in && Exit 1
+$EGREP '(-I *\.|-I.*srcdir|am__isrc)' Makefile.in && Exit 1
 
 # We'll test the fully-processed Makefile too.
 $AUTOCONF
@@ -41,12 +46,12 @@ $AUTOCONF
 # Test with $builddir != $srcdir
 mkdir build
 cd build
-../configure
+../configure || Exit $?
 $EGREP '.*-I *(\.|\$.srcdir.)' Makefile && Exit 1
 
 # Test with $builddir = $srcdir
 cd ..
-./configure
+./configure || Exit $?
 $EGREP '.*-I *(\.|\$.srcdir.)' Makefile && Exit 1
 
 Exit 0
index fca4746cf11ce834b00029e34d1882dfa1315950..e92d262746bdd4fe2a6851ac29398634406cb9ab 100755 (executable)
@@ -20,7 +20,7 @@
 # See also related test 'parallel-tests-ext-driver.test'.
 
 parallel_tests=yes
-required=native
+required='cc native'
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index 5e7c2ab1bbd62d343e03cc064808bfbec71b27b6..1ea730acb4f31e85a8d6127bcf70bc02780d5825 100755 (executable)
@@ -19,7 +19,7 @@
 # See also sister test 'parallel-tests-suffix.test'.
 
 parallel_tests=yes
-required=native
+required='cc native'
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index b1bc5b055f8812adcd96a6dcc5f56bb1ed2fb21f..6b3e70b7a970e786934ab8d5f7e51a0268357059 100755 (executable)
@@ -21,7 +21,7 @@
 # It merely serves as demonstration.  :-)
 
 parallel_tests=yes
-required='native GNUmake'
+required='cc native GNUmake'
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index a418fc26e2b0e48fda9c37945d70b7f279c8d4a5..9d6cc2dc59c177becc05690d3200f5a57499a0db 100755 (executable)
@@ -15,8 +15,9 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 # Test that POSIX variable expansion `$(var:str=rpl)' works
-# in when used in LDADD.
+# when used in LDADD.
 
+required=cc
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index 418d24175c716d48f98b478c7a1dd1c1dc32bc0b..00283090e280266ee1b500be296f47f113b474d7 100755 (executable)
@@ -18,6 +18,7 @@
 # with the LIBRARIES primary in a "simple" way.
 # Keep this in sync with sister test `posixsubst-ltlibraries.test'.
 
+required=cc
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index e95023c94475e2b1f8b56d67aa253007cb2b3208..b601672cf03cd1b929bae9684c6e8210467b4cf8 100755 (executable)
@@ -18,7 +18,7 @@
 # with the LTLIBRARIES primary in a "simple" way.
 # Keep this in sync with sister test `posixsubst-libraries.test'.
 
-required='libtool libtoolize'
+required='cc libtool libtoolize'
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index 947cf79bb11605b80e314c32a266d6ec3300a287..2b50e36d58deccef7723dcb1a31e553cc55e0a5f 100755 (executable)
@@ -17,6 +17,7 @@
 # Test that POSIX variable expansion `$(var:str=rpl)' works when used
 # with the PROGRAMS primary.
 
+required=cc
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index aef4c2f0bbde50ca7b01c56482097240b2435db3..62e9d3d81a882c444300c91d43c53d132572e090 100755 (executable)
@@ -17,6 +17,7 @@
 # Test that POSIX variable expansion `$(var:str=rpl)' works when used
 # with the SOURCES primary.
 
+required=cc
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index 0a8b1f3888934e5c7068e02619055b0fdc5c5cbf..2208d66ab0f1aff04f97d861a2df22bc59d24253 100755 (executable)
@@ -18,6 +18,7 @@
 # Check to make sure we recognize a Makefile.in, even if post-processed
 # and renamed.
 
+required=cc
 . ./defs || Exit 1
 
 cat >configure.in <<END
@@ -41,7 +42,7 @@ mv myMakefile.in myMakefile.old
 echo '# Post-processed by post-processor 3.14.' > myMakefile.in
 cat myMakefile.old >> myMakefile.in
 
-./configure || Exit $?
+./configure
 
 test -f .deps/fred.Po || test -f _deps/fred.Po || Exit 1
 
index c0db1b404ced75dec00148cf87a2973de497ace9..1c4b0faf418994508ae5d39c7d095f8f21770959 100755 (executable)
@@ -17,7 +17,7 @@
 # For PR 204.
 # Sources derived from nodist_ sources should not be distributed.
 
-required=yacc
+required='cc yacc'
 . ./defs || Exit 1
 
 cat >> configure.in <<'EOF'
index 6e8040e99dd5ea5b6664d18cd7b77d35de5c8900..b068c1025b52d19b9d11b90dfad3b3b23bd1ddd8 100755 (executable)
 
 . ./defs || Exit 1
 
-cat > main.c << 'EOF'
-int main (void)
-{
-  return 0;
-}
-EOF
-
 cat > Makefile.am << 'EOF'
 if NEVER_TRUE
-NEVER_DEFINED = missingfile.c
+NEVER_DEFINED = foo.txt
 endif
-
-bin_PROGRAMS = main
-main_SOURCES = main.c $(NEVER_DEFINED)
+data_DATA = $(NEVER_DEFINED)
 EOF
 
 cat >> configure.in << 'EOF'
-AC_PROG_CC
 AC_ARG_ENABLE([foo],
 [  --enable-foo          Enable foo],
 [ if test "foo" = "bar" ; then
index 8e9414a8b3edf338f02f9ee00d46f26d329a7473..bf249352f7eaf1cbcc1532bfb46fab0e78068f5d 100755 (executable)
@@ -23,6 +23,7 @@
 # `$(top_srcdir)/build', the location of the `.deps' directory
 # should be `$(top_builddir)/bar/.deps'.
 
+required=cc
 . ./defs || Exit 1
 
 mkdir foo
index 30b0d70a804d4f2bc29e6141e8a241e828004daf..2b11fb70445cd8812016f0cad265c5a989e849c5 100755 (executable)
@@ -27,6 +27,7 @@
 # the AM_OUTPUT_DEPENDENCY_COMMANDS macro cannot cope with
 # the colon in the CONFIG_FILES variable.
 
+required=cc
 . ./defs || Exit 1
 
 cat > configure.in << END
@@ -50,8 +51,7 @@ END
 $ACLOCAL
 $AUTOMAKE
 $AUTOCONF
-# FIXME: require compiler in $required rather than skipping here
-./configure || Exit $?
+./configure
 
 test -f .deps/fx64.Po
 
index c3fd5598ebdf711e4b10d4255899e211a9e0b75f..cff6bcae1babbad5879d7b44f27a5ce58269dbd6 100755 (executable)
@@ -18,6 +18,7 @@
 # Test for PR 266.
 # Dependency tracking -vs- nonstandard Makefile names
 
+required=cc
 . ./defs || Exit 1
 
 cat > configure.in << END
@@ -39,8 +40,7 @@ END
 $ACLOCAL
 $AUTOMAKE
 $AUTOCONF
-# FIXME: require compiler in $required rather than skipping here
-./configure --enable-dependency-tracking || Exit $?
+./configure --enable-dependency-tracking
 
 test -f .deps/fx64.Po
 
index 33587022b17db193438c05b48b042ca9a4d89803..fc987f629b4e863ac200544d4cfa6203f0a4006a 100755 (executable)
@@ -19,7 +19,6 @@
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
-AC_PROG_CC
 AC_OUTPUT
 END
 
index 951ec52b72370ba4ed070fc9c02f2420ac21e5f2..c27c2be86c996fb370fc681ff9d55cef7f1faeb5 100755 (executable)
@@ -17,6 +17,7 @@
 # Make sure that installing subdirectory libraries works.
 # PR/300
 
+required=cc
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index 1ac26afe4e4fe09055e65e2334284755cfde5f0d..43a1b8d344919a8aaacf5d56fd17bab7500fc187 100755 (executable)
@@ -18,7 +18,7 @@
 # Make sure that installing subdirectory libtool libraries works.
 # PR/300
 
-required=libtoolize
+required='cc libtoolize'
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index c6630121845447e96cbd2cccf4e31e57b4d1037c..7a2aa991b63173c9446da32946177ca2f99b067e 100755 (executable)
@@ -18,6 +18,7 @@
 # Make sure that installing subdirectory programs works.
 # PR/300
 
+required=cc
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index e150190b1c2bc772c6bc54fe45208e18653aeca9..b2f3c11d4a3dce537489a2a44e834a31dac1254a 100755 (executable)
@@ -19,6 +19,7 @@
 # (pr401b.test and pr401c.test do the same for LTLIBOBJS and ALLOCA)
 
 parallel_tests=no
+required=cc
 . ./defs || Exit 1
 
 mkdir lib src
index 58b3d8a167028cfda06ffb199b1f3fa2b4438565..ccd5cbd4fe644e46937161233a9b4a325ef2d708 100755 (executable)
@@ -19,7 +19,7 @@
 # (pr401.test and pr401c.test do the same for LIBOBJS and ALLOCA)
 
 parallel_tests=no
-required=libtoolize
+required='cc libtoolize'
 . ./defs || Exit 1
 
 mkdir lib src
index 91156cd4e0ea8cf21523f9a33ba4a664a6fc3854..0ab785ec16cc8bbf87d5d5610bf24d0f20bde43c 100755 (executable)
@@ -19,6 +19,7 @@
 # (pr401.test and pr401b.test do the same for LIBOBJS and LTLIBOBJS)
 
 parallel_tests=no
+required=cc
 . ./defs || Exit 1
 
 mkdir lib src
index c8c2e9167c50aa4e4a1f7b300130e5ffa8050318..9c92c71d0422137c20379cf400d4a494c92e75d2 100755 (executable)
@@ -18,6 +18,7 @@
 # Test for PR automake/87.
 # "make distcheck" fails when two source dirs exist.
 
+required=cc
 . ./defs || Exit 1
 
 subdirs="foo bar"
index 0b0aacf636c9171ad506203fc21030c197efbdf9..a7a915fbf1f531521d26de424ab2b625cedd1202 100755 (executable)
@@ -16,6 +16,7 @@
 
 # Make sure we can build programs ending in `.la'
 
+required=cc
 . ./defs || Exit 1
 
 cat >>configure.in <<EOF
index d7f87064ea8ef7f0ad110d61580ebcd139dd8ae1..c36c2b770f8fbb9e22dd466cc6028148999786da 100755 (executable)
 # Check that python support can work well with virtualenvs.
 # This test also works as a mild stress-test on the python support.
 
-required='python virtualenv'
+required='cc python virtualenv'
 . ./defs || Exit 1
 
 # In case the user's config.site defines pythondir or pyexecdir.
 CONFIG_SITE=/dev/null; export CONFIG_SITE
 
 # Skip the test if a proper virtualenv cannot be created.
-virtualenv --verbose virtenv \
-  || skip_ "virtualenv program not found"
-test -f virtenv/bin/activate \
-  || skip_ "creation of python virtual environment failed"
+virtualenv --verbose virtenv && test -f virtenv/bin/activate \
+  || skip_ "coulnd't create python virtual environment"
 
 # Activate the virtualenv.
 . ./virtenv/bin/activate
index ff786914e2e3b218a43d68530e3d9334436c856f..586ab5a2ee1cebb89ab7aaf2dd645454849750a7 100755 (executable)
@@ -16,6 +16,7 @@
 
 # Make sure AM_WITH_REGEX compiles and runs.
 
+required=cc
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index 74bd20282642de3fde8ac835607e03e716108e67..6b3549feab27b259423545df05f1b441b043a3e4 100755 (executable)
@@ -21,6 +21,7 @@
 #  <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00005.html>
 # for more info).
 
+required=cc
 . ./defs || Exit 1
 
 cat >> configure.in <<'END'
index 597a19afd42a1bf3f0c2883ead2c21de66507e6a..7b0110c71462113d414dc09225ece38f3a447e9a 100755 (executable)
@@ -21,6 +21,7 @@
 #  <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00005.html>
 # for more info).
 
+required=cc
 . ./defs || Exit 1
 
 cat >> configure.in <<'END'
index ab77f11ba6a238bd53ce416da2cd9e3c356c3716..de5a2fa1be8954927b317c7fb15bc45e9c0483d2 100755 (executable)
@@ -22,6 +22,7 @@
 #  <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00005.html>
 # for more info).
 
+required=cc
 . ./defs || Exit 1
 
 cat >> configure.in <<'END'
index c3c2e29a931d26a9eba355fa0cb65cafaf3a6ae8..4667d0d633171ec9b9ca5e516485ff2dbebf11bf 100755 (executable)
@@ -17,7 +17,7 @@
 # Check that automake does not complain on repeated options, nor
 # generate broken or incorrect makefiles.
 
-required=bzip2
+required='cc bzip2'
 . ./defs || Exit 1
 
 cat >configure.in <<END
index a61969827bd6e3222007b4f69991778180e4e27a..7e74d6466579fd3d210b9fc52237fb2e0a93bd92 100755 (executable)
@@ -17,7 +17,7 @@
 # Check silent-rules mode for Lex.
 # Keep this in sync with sister test `silent-lex-gcc.test'.
 
-required='flex'
+required='cc flex'
 . ./defs || Exit 1
 
 mkdir sub
index b8864793ef9593e5d6b557b662354910c135eeaa..80b9816ea9f84b8a4c0b97d0654b42167ffbfff3 100755 (executable)
@@ -23,7 +23,7 @@
 # and forces the use of gcc depmode.
 
 # FIXME: generic C++/Fortran compilers should suffice here
-required='g++ gfortran flex yacc'
+required='cc g++ gfortran flex yacc'
 . ./defs || Exit 1
 
 # Avoids too much code duplication.
index 76a290f486f6be7756c295a3be8f9861ed718a87..65799113092084af98ed401f7689479d7f40eb1c 100755 (executable)
@@ -17,7 +17,7 @@
 # Check silent-rules mode for Yacc.
 # Keep this in sync with sister test `silent-yacc-gcc.test'.
 
-required=yacc
+required='cc yacc'
 . ./defs || Exit 1
 
 mkdir sub
index f590347efd8995e8eed5a490671e3cf68d5b9cfc..b958727f96c4417fefa92c144dd963f562f2021c 100755 (executable)
@@ -18,6 +18,7 @@
 
 # Please keep this file in sync with silent2.test.
 
+required=cc
 . ./defs || Exit 1
 
 mkdir sub
index c0a9192cdc53f23208bfcc6433c389719598923f..24edaf754bc68e7cccfa711e024ff5a819c8dfd2 100755 (executable)
@@ -18,7 +18,7 @@
 
 # Please keep this file in sync with silent4.test and silent9.test.
 
-required=libtoolize
+required='cc libtoolize'
 . ./defs || Exit 1
 
 mkdir sub
index cb62136e2e3c61dae43c9cb22efc8b3e0add3e4b..62c4d893bea091119edaa52cd2a464a6726dbdf8 100755 (executable)
@@ -18,7 +18,7 @@
 
 # Please keep this file in sync with silent3.test and silent4.test.
 
-required="libtoolize"
+required='cc libtoolize'
 . ./defs || Exit 1
 
 mkdir sub
index 3a057165bf3c8391934c0e286e2de40c8e18d27a..36f6807862f53f6bf555a8516bd3dca394c39f99 100755 (executable)
@@ -16,7 +16,7 @@
 
 # AM_DEFAULT_SOURCE_EXT
 
-required=g++ #FIXME: a generic C++ compiler should be enough.
+required='cc g++' #FIXME: a generic C++ compiler should be enough.
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index a7aa38ab43e6befa73ea8789500fb3ed43987199..60c1a9d4c6bfa303d1b696486d81e457e8b08a0e 100755 (executable)
@@ -16,7 +16,7 @@
 
 # The true/false example from the manual, plus a check for _SHORTNAME.
 
-required=native
+required='cc native'
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index 7f8aa1440918ff86aba982d66ccd675e65bdab83..f46224a50bebef1fbe4f3f2b19e3f76d4ea4f8ec 100755 (executable)
@@ -18,7 +18,7 @@
 # with one extra indirection in the sources (PR/315), and
 # use of _CPPFLAGS (PR/337).
 
-required=native
+required='cc native'
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index 2b619d854caa6a887f25d701be9e5090f6726493..1a0b485722795ba2b71dda2765f67f3747015b20 100755 (executable)
@@ -17,6 +17,7 @@
 # Test to make sure the standard include order is stable.
 # Report by Kent Boortz.
 
+required=cc
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index c63af43ea4535ee70e8d5466ea9e9ae6b26a54e3..84ae5e9f7be33d5871a2828184052fe24992357c 100755 (executable)
@@ -16,6 +16,7 @@
 
 # Test for install-strip.
 
+required=cc
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index 01f66f186f66a5ed5422c4acc21b8d9724748387..9e1c5ffe1c7b69aead6dd92d80df2e9e14d19838 100755 (executable)
@@ -17,7 +17,7 @@
 # Ensure install-strip works when STRIP consists of more than one word.
 # This test needs GNU binutils strip.  See sister test strip3.
 
-required=strip
+required='cc strip'
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index 5f6f163d37280b67e23bf3a8c0b0cad4e03777ef..51e04d5a16476b157be08e98729f7788c7f2b4e1 100755 (executable)
@@ -17,7 +17,7 @@
 # Ensure install-strip works when STRIP consists of more than one word.
 # This test needs GNU binutils strip.  Libtool variant.
 
-required='libtoolize strip'
+required='cc libtoolize strip'
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index 9d223d477d9e46be300100b87e14bb796cfae051..42c9ad6dc21a4b780aac7b6e8b6617b305daef02 100755 (executable)
@@ -27,28 +27,14 @@ required=GNUmake
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
-AC_PROG_CC
-AM_PROG_CC_C_O
 AC_OUTPUT
 END
 
-cat > Makefile.am << 'END'
-bin_PROGRAMS = wish
-wish_SOURCES = a.c
-END
-
-cat > a.c << 'END'
-#include <stdio.h>
-int main ()
-{
-   printf ("hi liver!\n");
-   return 0;
-}
-END
+: > Makefile.am
 
 $ACLOCAL
 $AUTOCONF
-$AUTOMAKE --include-deps --copy --add-missing
+$AUTOMAKE
 ./configure
 $MAKE
 
index 1bb4c3cad3fa836ff46102ab1c1eabde301784d0..dc13c2b5583f4ba72df73e36ef68eee038a9cc55 100755 (executable)
@@ -27,8 +27,6 @@ required=GNUmake
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
-AC_PROG_CC
-AM_PROG_CC_C_O
 m4_include([confiles.m4])
 MORE_DEFS
 AC_OUTPUT
@@ -43,26 +41,14 @@ END
 
 mkdir sub
 
-cat > sub/Makefile.am << 'END'
-bin_PROGRAMS = wish
-wish_SOURCES = a.c
-END
-
-cat > sub/a.c << 'END'
-#include <stdio.h>
-int main ()
-{
-   printf ("hi liver!\n");
-   return 0;
-}
-END
+: > sub/Makefile.am
 
 mkdir m4
 echo 'AC_DEFUN([MORE_DEFS], [])' > m4/moredefs.m4
 
 $ACLOCAL -I m4
 $AUTOCONF
-$AUTOMAKE --copy --add-missing
+$AUTOMAKE
 ./configure
 $MAKE
 
index 18cacd91dcf2cc1520c2dfa7fb4138554fb0dae3..5401f97e7dcd785d3a19fe74f546d8abcc652276 100755 (executable)
@@ -18,6 +18,7 @@
 # A bug occurred where subdirs do not have all-recursive or
 # all-recursive-am which depended on BUILT_SOURCES.
 
+required=cc
 . ./defs || Exit 1
 
 mkdir lib
index fc674b83cabdb32b5d54de2960771bb43cb10fb5..60ad5a51b50ab67681198cee183cecb2ad37dae4 100755 (executable)
@@ -26,6 +26,7 @@
 # See also sister "grepping" test `subobj11b.test', and related test
 # `subobj11c.test'.
 
+required=cc
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index 404965f48d0afb128fa2833b7b0d1d4a9021c1ec..bb08beb275652b2485261565972543d220e5b2d6 100755 (executable)
@@ -17,7 +17,7 @@
 
 # Test of subdir objects with ansi2knr.
 
-required=native
+required='cc native'
 . ./defs || Exit 1
 
 cat > configure.in << END
index 1b05db39a3c4a1d3e4bb182e7347be0ca3cc9d07..00402db4468d93d1ecedaaf9d9b04576fabf3119 100755 (executable)
@@ -18,6 +18,7 @@
 # Test of subdir make dist rules.
 # From Robert Collins
 
+required=cc
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
@@ -28,20 +29,43 @@ AC_OUTPUT
 END
 
 cat > Makefile.am << 'END'
+AUTOMAKE_OPTIONS = subdir-objects
 bin_PROGRAMS = wish
 wish_SOURCES = generic/a.c
+
+.PHONY: test-distdir test-build
+test-distdir: distdir
+       ls -l $(distdir) $(distdir)/* ;: For debugging.
+       test ! -r $(distdir)/a.c
+       test -f $(distdir)/generic/a.c
+test-build: all
+       ls -l . generic ;: For debugging.
+       test -f generic/a.$(OBJEXT)
+       test -f wish$(EXEEXT)
+       test ! -r a.$(OBJEXT)
+       test ! -r a$(EXEEXT)
+       test ! -r generic/wish$(EXEEXT)
+       test ! -r generic/a$(EXEEXT)
 END
 
 mkdir generic
-: > generic/a.c
 : > generic/Makefile.am
 
+cat > generic/a.c << 'END'
+int main (void)
+{
+  return 0;
+}
+END
+
 $ACLOCAL
 $AUTOCONF
 $AUTOMAKE --include-deps --copy --add-missing
 
 ./configure
 
+$MAKE test-distdir
 $MAKE dist
+$MAKE test-build
 
 :
index 9686bf0411636cfff616cb0277eb4f210bda8a5d..fff5151743ac0154588d37d76470de30b3874cfd 100755 (executable)
@@ -18,6 +18,7 @@
 # Test of subdir make distclean rules.
 # From Robert Collins
 
+required=cc
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index a89d0cf36c8b03aae86f196984fb1fad92f0d83e..5987ac3d5e1bc5c1b4e1f78190edfff4e491db51 100755 (executable)
@@ -17,7 +17,7 @@
 
 # Check subpackage handling.
 
-required=yacc
+required='cc yacc'
 . ./defs || Exit 1
 
 mkdir m4
index 1dbb5110ae2c88234ffdf49db2a043b61f766d00..d64d8c0a671398f0d07aa20fb796cb0ce27c75af 100755 (executable)
@@ -16,6 +16,8 @@
 
 # Make sure a multi-line definition cannot be terminated by an empty
 # line (when there are @substitutions@ inside).
+
+required=cc
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index d6964a21dcca98c6f4e4323b6ae6beb8805e9331..d87f7440f7a66d794a284519861b7f9d11b6edb8 100755 (executable)
@@ -17,6 +17,7 @@
 
 # Test installation with substitutions.  This test is based on nobase.test.
 
+required=cc
 . ./defs || Exit 1
 
 cat >> configure.in <<'EOF'
index 10179cce46fa2ef245890092181e37e0c812ca54..ec920627b472dbe226eb3680f4d8f94d1e83b18a 100755 (executable)
@@ -17,6 +17,7 @@
 # Test for bug in variable substitution references, where
 # undefined variables break later substitutions.
 
+required=cc
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index 694563bfb20306aa75c1353488d7ec9bc45aa52d..47f4d410b4e48b43eec872b608b99115c00be75b 100755 (executable)
@@ -18,6 +18,7 @@
 # pattern is null.
 # Report from Richard Boulton
 
+required=cc
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index 026da2430a8f5b5c103b3e8e525e62ce59ead079..bd870f3817ffe6264a975eff44ec82579ca53a89 100755 (executable)
@@ -17,7 +17,7 @@
 # Make sure that derivations work with .lo too.
 # (related to PR/37)
 
-required='libtoolize yacc'
+required='cc libtoolize yacc'
 . ./defs || Exit 1
 
 cat >>configure.in <<EOF
index daeba1c2c3ddb407cc036130bd9abb1e8c2c8cb6..c53e2565f3052dc74a5355e8537c52bdfc3a6f79 100755 (executable)
@@ -18,6 +18,7 @@
 # PR/371 and PR/372: Reported by Duncan Gibson.
 # We also check for suffixes containing `-'.
 
+required=cc
 . ./defs || Exit 1
 
 cat >>configure.in <<EOF
index a515f41bd9cbe78bf440bb20b524906e0b381996..c14b84268ee2632a66aed5e2f7caf34e89ac16fc 100755 (executable)
@@ -18,6 +18,7 @@
 # Tests that Automake understands suffix rules with subdir objects.
 # Reported by John Ratliff.
 
+required=cc
 . ./defs || Exit 1
 
 cat >>configure.in <<EOF
index 228d04ad16d4109b0dd2493773d79bd37eff74f6..542f89288c85c13495e13986eb919b7febf36e9f 100755 (executable)
@@ -23,6 +23,7 @@
 # and subdir objects.
 # Reported by Florian Briegel.
 
+required=cc
 . ./defs || Exit 1
 
 cat >>configure.in <<EOF
index 60417e46eeb3fbabede3d1ca56d061b6b16fa3c8..e9d733d86eee7dadee128d847b0bb1d4ee709647 100755 (executable)
@@ -18,7 +18,7 @@
 # from user-defined implicit rules.
 # Based on a report from Arkadiusz Miskiewicz <misiek@pld.ORG.PL>.
 
-required=libtool
+required='cc libtool'
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index 921c6419e776d8c79aba9294eddbefa865dabe22..27ac884673f2250ed11a1b9d956d94f5004c26d1 100755 (executable)
@@ -18,7 +18,7 @@
 # same suffix.
 # From PR/37.
 
-required=libtoolize
+required='cc libtoolize'
 . ./defs || Exit 1
 
 cat >>configure.in <<'END'
index 499b7523c2620bbb22b3c013c885bbfcd25cbb6a..cbb5e33384feab24be69d881d420b5985bff5b22 100755 (executable)
@@ -18,6 +18,7 @@
 # Test to make sure target specific CFLAGS work
 # Assar Westerlund <assar@sics.se>
 
+required=cc
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index 67da70e4529fed295eb240950b71ae1c7c3e39ad..fb1550397809657c0311b2cf305f25af2f0359c6 100755 (executable)
@@ -17,6 +17,7 @@
 
 # Make sure that --program-transform works.
 
+required=cc
 . ./defs || Exit 1
 
 cat >>configure.in <<'END'
index d6411d2b539951026159d3101a188beebace9813..010ca4013efc3046c736f497c19133705bb20cca 100755 (executable)
@@ -18,6 +18,7 @@
 # Make sure that --program-transform works even when multiple files are
 # collapsed.
 
+required=cc
 . ./defs || Exit 1
 
 cat >>configure.in <<'END'
index ad072bf666e7773deead9f8fe993feb01d3a0257..547aa79f4b082d0fa0a64f7a6b064d1d8ae26738 100755 (executable)
@@ -17,6 +17,7 @@
 # A simple Hello World for UPC.
 
 . ./defs || Exit 1
+
 cat >> configure.in << 'END'
 AM_PROG_UPC
 AC_OUTPUT
@@ -43,5 +44,7 @@ $ACLOCAL
 $AUTOMAKE
 $AUTOCONF
 
-./configure
+./configure || Exit $?
 $MAKE distcheck
+
+:
index 4692398b114b1d968b7148354930e970b1dc00d6..3c2acfda7891f319299231dd035876500e18401a 100755 (executable)
@@ -17,6 +17,7 @@
 # Test that C and Unified Parallel C link safely.
 
 . ./defs || Exit 1
+
 cat >> configure.in << 'END'
 AC_PROG_CC
 AM_PROG_UPC
@@ -58,5 +59,7 @@ $ACLOCAL
 $AUTOMAKE
 $AUTOCONF
 
-./configure
+./configure || Exit $?
 $MAKE distcheck
+
+:
index acd4f7ee971a9f119a18d599fc6a375fb080c3d1..a7e6a7114b96cda73512c86855cc153ff9511bb3 100755 (executable)
@@ -50,7 +50,7 @@ libtoolize
 $ACLOCAL
 $AUTOMAKE -a
 $AUTOCONF
-./configure "VALAC=$cwd/valac"
+./configure "VALAC=$cwd/valac" || Exit $?
 
 sed 's/AM_PROG_VALAC.*/AM_PROG_VALAC([9999.9])/' < configure.in >t
 mv -f t configure.in
@@ -60,5 +60,6 @@ $AUTOCONF --force
 sed 's/AM_PROG_VALAC.*/AM_PROG_VALAC([1.2.3])/' < configure.in >t
 mv -f t configure.in
 $AUTOCONF --force
-./configure "VALAC=$cwd/valac"
+./configure "VALAC=$cwd/valac" || Exit $?
+
 :
index 16caeb22cb08eb13cdc788c25a9022990389fc37..6ce8256a311a9b07e711be7ae6f00b8fada77f28 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Basic semantic checks on Yacc support.
 
-required=yacc
+required='cc yacc'
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index a05e5f23d8e7172d3b174d5368e802c95e19cc32..f97e182454da5cb7821229693bab864de5bdb583 100755 (executable)
@@ -18,7 +18,7 @@
 # are cleaned by "make clean", while .c and .h files derived from
 # distributed .y sources are cleaned by "make maintainer-clean".
 
-required=yacc
+required='cc yacc'
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index 015c44cec32410b0d7ce2b77d0edc701fa0519f7..e705f06c65c696bfe43863826a4cd238fc0bbb44 100755 (executable)
@@ -17,7 +17,7 @@
 # Tests on basic Yacc support for when we have -d in YFLAGS, AM_YFLAGS
 # or maude_YFLAGS.
 
-required=yacc
+required='cc yacc'
 . ./defs || Exit 1
 
 tab='  '
index 401998ec04f188869f3db9f22eaf409fcef8d8bc..2e38529c07164f7648b37185e59e02bae4303d32 100755 (executable)
@@ -22,7 +22,7 @@
 
 # Please keep this in sync with sister test `yaccvpath.test'.
 
-required=yacc
+required='cc yacc'
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index 7961a5f696f9abe45e717350a984b1caa2a3c9a1..acdba6aa419e06f355c75259cddd6938cc8b8c9d 100755 (executable)
@@ -17,7 +17,7 @@
 # Check that distributed Yacc-generated parsers are not uselessly
 # remade from an unpacked distributed tarball.
 
-required=yacc
+required='cc yacc'
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index c55f40035994e43df230de53f40171e7c07b6fdb..83f63dd03ffb71d273cc36845ac8f2cbc0b25747 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Checks for .c and .h files derived from non-distributed .y sources.
 
-required=yacc
+required='cc yacc'
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index b6633006294dd2ea0ae41c647eceda5841436c2a..eee210e8d84d3dff102879a27b7efa737f0c7b89 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Some simple tests of ylwrap functionality.
 
-required=yacc
+required='cc yacc'
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index 5cea7afc526fef5ee0d10c76cc29c50556602c64..0bd0b64d2b37c2bcded0a6883dfa3bb1dc1e4ca2 100755 (executable)
@@ -21,7 +21,7 @@
 # Also check that the sources of the generated parser are distributed.
 # PR/47.
 
-required=yacc
+required='cc yacc'
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index 88e41237d946cdc4df05dea6d742f99a17870553..c7cedc72fc840dc8b7622d452d6b307c8b070cdb 100755 (executable)
@@ -17,7 +17,7 @@
 
 # Test for subdir parsers.
 
-required=yacc
+required='cc yacc'
 
 . ./defs || Exit 1
 
index f30e7f3f28b5736f4b658ce5a391aa8d076a6782..fed10d38bbd832c6a8aa7b08d8d4a5b84c4c42ce 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Removal recovery rules for headers should not remove files with `make -n'.
 
-required=yacc
+required='cc yacc'
 . ./defs || Exit 1
 
 cat >> configure.in << 'END'
index c998373c6844d06209da19e975c93d4ff6f834e9..aaebcaa4035c146d85b247ad556ae375b265e89c 100755 (executable)
@@ -23,7 +23,7 @@
 
 # Please keep this in sync with sister test `yacc-d-vpath.test'.
 
-required=yacc
+required='cc yacc'
 . ./defs || Exit 1
 
 distdir=$me-1.0
index aecff9fa707070e3efb5d8110b014853e3a902fd..accebe3516ae3ae02305e9abfae7b0cdaef94795 100755 (executable)
@@ -17,7 +17,7 @@
 # Check that automake can cope with user-redefinition of $(YFLAGS)
 # at configure time and/or at make time.
 
-required=yacc
+required='cc yacc'
 . ./defs || Exit 1
 
 unset YFLAGS || :
index dd3b2dea39c363b5200c4d50b3ed4dd6546a27e1..a5b3599fb4de91c02663d661db4116b2a530300b 100755 (executable)
@@ -20,7 +20,7 @@
 . ./defs || Exit 1
 
 cat >> configure.in <<'END'
-AC_PROG_CC
+AC_SUBST([CC], [false])
 AC_PROG_YACC
 AM_CONDITIONAL([COND], [test x"$cond" = x"yes"])
 AC_OUTPUT
@@ -37,6 +37,7 @@ PATH=`pwd`/bin$PATH_SEPARATOR$PATH; export PATH
 YACC=fake-yacc; export YACC
 
 cat > Makefile.am <<'END'
+AUTOMAKE_OPTIONS = no-dependencies
 bin_PROGRAMS = foo bar
 foo_SOURCES = foo.y main.c
 bar_SOURCES = $(foo_SOURCES)
@@ -50,13 +51,6 @@ bar_yflags2 = __bar_cond_no__
 endif !COND
 END
 
-cat > main.c <<'END'
-int main (void)
-{
-  return 0;
-}
-END
-
 : > foo.y
 
 $ACLOCAL
@@ -66,9 +60,8 @@ $AUTOMAKE -a -Wno-unsupported
 $EGREP '(YFLAGS|yflags|am__append)' Makefile.in # For debugging.
 
 ./configure cond=yes
-$MAKE
+$MAKE foo.c bar-foo.c
 
-ls -l
 cat foo.c
 cat bar-foo.c
 
@@ -80,9 +73,8 @@ $MAKE maintainer-clean
 ls -l
 
 ./configure cond=no
-$MAKE
+$MAKE foo.c bar-foo.c
 
-ls -l
 cat foo.c
 cat bar-foo.c
 
index b76b529ea4eb9ab8f2d1e2bf7b6d6b07215642da..cf30f4666c593536c36dc0c43f154d0bcf1be213 100755 (executable)
@@ -18,7 +18,7 @@
 # in Makefile.am (even if that is extremely bad practice, because that
 # variable is user-reserved).
 
-required=yacc
+required='cc yacc'
 . ./defs || Exit 1
 
 cat >> configure.in <<'END'
index aac1986618aa7c5d7d17b2c4bd1849c5b7d57027..bf5611d3e10785fc601ea3b78e230132410ab23a 100755 (executable)
@@ -33,13 +33,14 @@ chmod a+x fake-yacc
 unset YACC || :
 
 cat >> configure.in <<'END'
-AC_PROG_CC
+AC_SUBST([CC], [false])
 # Simulate presence of Yacc using our fake-yacc script.
 AC_SUBST([YACC], ['$(abs_top_srcdir)'/fake-yacc])
 AC_OUTPUT
 END
 
 cat > Makefile.am <<'END'
+AUTOMAKE_OPTIONS = no-dependencies
 bin_PROGRAMS = foo bar
 foo_SOURCES = main.c foo.y
 bar_SOURCES = main.c bar.y
@@ -53,19 +54,17 @@ $AUTOMAKE -a
 grep '\$(YFLAGS).*\$(bar_YFLAGS)' Makefile.in && Exit 1
 grep '\$(YFLAGS).*\$(AM_YFLAGS)' Makefile.in && Exit 1
 
-echo 'int main(void){ return 0; }' > main.c
 : > foo.y
 : > bar.y
 
 $AUTOCONF
 ./configure
-env YFLAGS=__user_flags__ $MAKE -e
-
-ls -l
+env YFLAGS=__user_flags__ $MAKE -e foo.c bar-bar.c
 
 cat foo.c
-grep '__am_flags__.*__user_flags__' foo.c
 cat bar-bar.c
+
+grep '__am_flags__.*__user_flags__' foo.c
 grep '__bar_flags__.*__user_flags__' bar-bar.c
 
 :
index 803cecc28eccb9c687999da8008998792eb3ab76..8e17d08dac4beffb7f9821c9b246d5f5d8215e86 100755 (executable)
@@ -33,13 +33,14 @@ chmod a+x fake-yacc
 unset YACC || :
 
 cat >> configure.in <<'END'
-AC_PROG_CXX
+AC_SUBST([CXX], [false])
 # Simulate presence of Yacc using our fake-yacc script.
 AC_SUBST([YACC], ['$(abs_top_srcdir)'/fake-yacc])
 AC_OUTPUT
 END
 
 cat > Makefile.am <<'END'
+AUTOMAKE_OPTIONS = no-dependencies
 bin_PROGRAMS = foo bar
 foo_SOURCES = main.cc foo.yy
 bar_SOURCES = main.cc bar.y++
@@ -53,19 +54,17 @@ $AUTOMAKE -a
 grep '\$(YFLAGS).*\$(bar_YFLAGS)' Makefile.in && Exit 1
 grep '\$(YFLAGS).*\$(AM_YFLAGS)' Makefile.in && Exit 1
 
-echo 'int main(void) { return 0; }' > main.cc
 : > foo.yy
 : > bar.y++
 
 $AUTOCONF
 ./configure
-env YFLAGS=__user_flags__ $MAKE -e
-
-ls -l
+env YFLAGS=__user_flags__ $MAKE -e foo.cc bar-bar.c++
 
 cat foo.cc
-grep '__am_flags__.*__user_flags__' foo.cc
 cat bar-bar.c++
+
+grep '__am_flags__.*__user_flags__' foo.cc
 grep '__bar_flags__.*__user_flags__' bar-bar.c++
 
 :