+2008-09-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ Use `Exit' instead of `exit' in test suite.
+ Cater to Bourne shells like Solaris sh that do not pass the
+ `exit' argument as status to the cleanup trap.
+ * Makefile.am (maintainer-check): Check that here-documents
+ use only `END' or `EOF' as delimiter in the test suite.
+ Check that, outside of here-documents, the tests do not use
+ `exit' with an argument, but use `Exit' instead.
+ * tests/defs.in (Exit): New function. Use it throughout,
+ starting with the introduction of the exit trap.
+ * tests/aclibobj.test, tests/acloca10.test, tests/acloca11.test,
+ tests/acloca12.test, tests/acloca13.test, tests/acloca14.test,
+ tests/acloca15.test, tests/acloca16.test, tests/acloca17.test,
+ tests/acloca18.test, tests/acloca19.test, tests/acloca20.test,
+ tests/acloca21.test, tests/acloca22.test, tests/aclocal.test,
+ tests/aclocal3.test, tests/aclocal4.test, tests/aclocal5.test,
+ tests/aclocal6.test, tests/aclocal7.test, tests/aclocal8.test,
+ tests/aclocal9.test, tests/acoutbs.test, tests/acoutbs2.test,
+ tests/acoutnoq.test, tests/acoutpt.test, tests/acoutpt2.test,
+ tests/acoutqnl.test, tests/acsilent.test, tests/acsubst.test,
+ tests/acsubst2.test, tests/all.test, tests/alloca.test,
+ tests/alloca2.test, tests/alpha.test, tests/alpha2.test,
+ tests/amassign.test, tests/ammissing.test, tests/amopt.test,
+ tests/amsubst.test, tests/ansi.test, tests/ansi10.test,
+ tests/ansi2.test, tests/ansi3.test, tests/ansi3b.test,
+ tests/ansi4.test, tests/ansi5.test, tests/ansi6.test,
+ tests/ansi7.test, tests/ansi8.test, tests/ansi9.test (main),
+ tests/ar.test, tests/ar2.test, tests/asm.test, tests/asm2.test,
+ tests/asm3.test, tests/automake.test, tests/auxdir.test,
+ tests/auxdir2.test, tests/auxdir3.test, tests/auxdir4.test,
+ tests/backsl.test, tests/backsl2.test, tests/backsl3.test,
+ tests/backsl4.test, tests/badline.test, tests/badopt.test,
+ tests/badprog.test, tests/block.test, tests/bsource.test,
+ tests/canon-name.test, tests/canon.test, tests/canon2.test,
+ tests/canon3.test, tests/canon4.test, tests/canon5.test,
+ tests/ccnoco.test, tests/ccnoco2.test, tests/check.test,
+ tests/check2.test, tests/check3.test, tests/check4.test,
+ tests/check5.test, tests/check6.test, tests/check7.test,
+ tests/checkall.test, tests/clean.test, tests/clean2.test,
+ tests/colneq.test, tests/colneq2.test, tests/colon.test,
+ tests/colon2.test, tests/colon3.test, tests/colon4.test,
+ tests/colon5.test, tests/colon6.test, tests/colon7.test,
+ tests/color.test (test_no_color), tests/commen10.test,
+ tests/comment.test, tests/comment2.test, tests/comment3.test,
+ tests/comment4.test, tests/comment5.test, tests/comment6.test,
+ tests/comment7.test, tests/comment8.test, tests/comment9.test,
+ tests/compile.test, tests/compile_f90_c_cxx.test,
+ tests/compile_f_c_cxx.test, tests/cond.test, tests/cond10.test,
+ tests/cond11.test, tests/cond13.test, tests/cond14.test,
+ tests/cond15.test, tests/cond16.test, tests/cond17.test,
+ tests/cond18.test, tests/cond19.test, tests/cond2.test,
+ tests/cond20.test, tests/cond21.test, tests/cond22.test,
+ tests/cond27.test, tests/cond3.test, tests/cond37.test,
+ tests/cond39.test, tests/cond4.test, tests/cond40.test,
+ tests/cond41.test, tests/cond5.test, tests/cond6.test,
+ tests/cond7.test (AC_INIT), tests/cond8.test, tests/cond9.test,
+ tests/condd.test, tests/condhook.test, tests/condinc.test,
+ tests/condinc2.test, tests/condlib.test, tests/condman.test,
+ tests/condman2.test, tests/conf2.test, tests/confdeps.test,
+ tests/conff.test, tests/conff2.test, tests/confh.test,
+ tests/confh4.test, tests/confh5.test, tests/config.test,
+ tests/confincl.test, tests/conflnk.test, tests/conflnk2.test,
+ tests/conflnk3.test, tests/conflnk4.test, tests/confsub.test,
+ tests/confvar.test, tests/confvar2.test, tests/copy.test,
+ tests/ctarget1.test, tests/cxx.test, tests/cxx2.test,
+ tests/cxxansi.test, tests/cxxcpp.test, tests/cxxlibobj.test,
+ tests/cxxlink.test, tests/cxxnoc.test, tests/cxxo.test,
+ tests/cygwin32.test, tests/dash.test, tests/defs.in (else),
+ tests/defun.test, tests/defun2.test, tests/dejagnu.test,
+ tests/dejagnu2.test, tests/dejagnu3.test, tests/dejagnu4.test,
+ tests/dejagnu5.test, tests/dejagnu6.test, tests/dejagnu7.test,
+ tests/depacl2.test, tests/depcomp.test, tests/depcomp2.test,
+ tests/depcomp3.test, tests/depcomp4.test, tests/depcomp5.test,
+ tests/depcomp6.test, tests/depcomp7.test, tests/depdist.test,
+ tests/depend.test, tests/depend2.test, tests/depend3.test,
+ tests/depend4.test, tests/destdir.test, tests/dirforbid.test,
+ tests/dirlist.test, tests/dirlist2.test, tests/discover.test,
+ tests/distcom2.test, tests/distcom3.test, tests/distcom4.test,
+ tests/distcom5.test, tests/distcom6.test, tests/distcom7.test,
+ tests/distdir.test, tests/distname.test, tests/dollar.test,
+ tests/double.test, tests/dup2.test, tests/else.test,
+ tests/empty.test, tests/empty2.test, tests/empty3.test,
+ tests/empty4.test, tests/exdir.test, tests/exdir2.test,
+ tests/exdir3.test, tests/exeext.test, tests/exeext2.test,
+ tests/exeext3.test, tests/exeext4.test, tests/exsource.test,
+ tests/ext.test, tests/extra.test, tests/extra2.test,
+ tests/extra3.test, tests/extra4.test, tests/extra5.test,
+ tests/extra6.test, tests/extra7.test, tests/f90only.test,
+ tests/flibs.test, tests/fn99.test, tests/fn99subdir.test,
+ tests/fnoc.test, tests/fo.test, tests/fonly.test,
+ tests/fort1.test, tests/fort2.test, tests/fort4.test,
+ tests/fort5.test, tests/fortdep.test, tests/fpinst2.test,
+ tests/fpinstall.test, tests/gcj.test, tests/gcj2.test,
+ tests/gcj3.test, tests/gcj4.test, tests/gcj5.test,
+ tests/getopt.test, tests/gettext.test, tests/gettext2.test,
+ tests/gettext3.test, tests/gnits.test, tests/gnits2.test (main),
+ tests/gnits3.test, tests/gnumake.test, tests/gnuwarn.test,
+ tests/gnuwarn2.test, tests/header.test, tests/help.test,
+ tests/hosts.test, tests/implicit.test, tests/include.test,
+ tests/include2.test, tests/info.test, tests/init.test,
+ tests/insh2.test, tests/install2.test, tests/installdir.test,
+ tests/instdat.test, tests/instdat2.test, tests/instexec.test,
+ tests/insthook.test, tests/instman.test, tests/instman2.test,
+ tests/instsh.test, tests/instsh2.test, tests/instsh3.test,
+ tests/instspc.test, tests/interp.test, tests/interp2.test,
+ tests/java.test, tests/java2.test, tests/java3.test,
+ tests/javaprim.test, tests/javasubst.test, tests/ldadd.test,
+ tests/ldflags.test, tests/lex.test, tests/lex2.test,
+ tests/lex3.test, tests/lex4.test, tests/lex5.test (main),
+ tests/libexec.test, tests/libobj10.test, tests/libobj11.test,
+ tests/libobj12.test, tests/libobj13.test, tests/libobj2.test,
+ tests/libobj3.test, tests/libobj4.test, tests/libobj5.test,
+ tests/libobj7.test, tests/libobj8.test, tests/library.test,
+ tests/library2.test, tests/library3.test, tests/libtoo10.test,
+ tests/libtool.test, tests/libtool2.test, tests/libtool3.test
+ (main), tests/libtool4.test, tests/libtool5.test,
+ tests/libtool6.test, tests/libtool7.test, tests/libtool8.test,
+ tests/libtool9.test (main), tests/license.test,
+ tests/link_c_cxx.test, tests/link_dist.test,
+ tests/link_f90_only.test, tests/link_f_only.test,
+ tests/link_fc.test, tests/link_fccxx.test, tests/link_fcxx.test,
+ tests/lisp2.test, tests/lisp3.test, tests/lisp4.test,
+ tests/lisp5.test, tests/lisp6.test, tests/lisp7.test,
+ tests/lisp8.test, tests/listval.test, tests/location.test,
+ tests/longlin2.test, tests/longline.test, tests/ltcond.test,
+ tests/ltcond2.test, tests/ltconv.test, tests/ltdeps.test,
+ tests/ltlibobjs.test, tests/ltlibsrc.test, tests/lzma.test,
+ tests/maintclean.test, tests/make.test, tests/makej.test,
+ tests/makevars.test, tests/man.test, tests/man2.test,
+ tests/man3.test, tests/mclean.test, tests/mdate.test,
+ tests/mdate2.test, tests/mdate3.test, tests/mdate4.test,
+ tests/mdate5.test, tests/missing.test, tests/missing2.test,
+ tests/missing3.test, tests/missing4.test, tests/missing5.test,
+ tests/missing6.test, tests/mkinst2.test, tests/mkinst3.test,
+ tests/mkinstall.test, tests/mmode.test, tests/mmodely.test,
+ tests/multlib.test, tests/nobase-libtool.test,
+ tests/nobase-python.test, tests/nobase.test, tests/nodef.test,
+ tests/nodef2.test, tests/nodep.test, tests/nodep2.test,
+ tests/nodepcomp.test, tests/nodist.test, tests/nodist2.test,
+ tests/nodist3.test, tests/nogzip.test, tests/nogzip2.test,
+ tests/noinst.test, tests/noinstdir.test, tests/nolink.test,
+ tests/nostdinc.test, tests/notrans.test, tests/number.test,
+ tests/objc.test, tests/objc2.test, tests/obsolete.test,
+ tests/order.test, tests/outdir.test, tests/output-order.test,
+ tests/output.test, tests/output10.test, tests/output11.test,
+ tests/output12.test, tests/output13.test, tests/output2.test,
+ tests/output3.test, tests/output4.test, tests/output5.test,
+ tests/output6.test, tests/output7.test, tests/output8.test,
+ tests/output9.test, tests/overrid.test, tests/parse.test,
+ tests/pluseq.test, tests/pluseq10.test, tests/pluseq2.test,
+ tests/pluseq3.test, tests/pluseq4.test, tests/pluseq5.test,
+ tests/pluseq6.test, tests/pluseq7.test, tests/pluseq8.test,
+ tests/pluseq9.test, tests/postproc.test, tests/ppf77.test,
+ tests/pr2.test, tests/pr204.test, tests/pr211.test,
+ tests/pr220.test, tests/pr224.test, tests/pr229.test,
+ tests/pr243.test, tests/pr266.test, tests/pr279-2.test,
+ tests/pr279.test, tests/pr287.test, tests/pr300-lib.test,
+ tests/pr300-ltlib.test, tests/pr300-prog.test, tests/pr307.test,
+ tests/pr401.test, tests/pr401b.test, tests/pr401c.test,
+ tests/pr72.test, tests/pr87.test, tests/pr9.test,
+ tests/prefix.test, tests/primary.test, tests/primary2.test,
+ tests/primary3.test, tests/proginst.test, tests/python.test,
+ tests/python10.test, tests/python11.test, tests/python12.test,
+ tests/python2.test, tests/python3.test, tests/python4.test,
+ tests/python5.test, tests/python6.test, tests/python7.test,
+ tests/python8.test, tests/python9.test, tests/recurs.test,
+ tests/recurs2.test, tests/regex.test, tests/remake.test,
+ tests/remake2.test, tests/remake3.test, tests/remake4.test,
+ tests/remake5.test, tests/remake6.test, tests/remake7.test,
+ tests/req.test, tests/reqd.test, tests/reqd2.test,
+ tests/rulepat.test, tests/scripts.test, tests/seenc.test,
+ tests/sinclude.test, tests/space.test, tests/specflg.test,
+ tests/specflg2.test, tests/specflg3.test, tests/specflg6.test,
+ tests/specflg7.test, tests/specflg8.test, tests/specflg9.test,
+ tests/spell.test, tests/spell2.test, tests/spell3.test,
+ tests/spelling.test, tests/spy.test, tests/srcsub.test,
+ tests/srcsub2.test, tests/stamph2.test, tests/stdinc.test,
+ tests/stdlib.test, tests/stdlib2.test, tests/strip.test,
+ tests/subcond.test, tests/subcond2.test, tests/subcond3.test,
+ tests/subdir.test, tests/subdir2.test, tests/subdir3.test,
+ tests/subdir4.test, tests/subdir5.test, tests/subdir6.test,
+ tests/subdir7.test, tests/subdir8.test, tests/subdir9.test,
+ tests/subdirbuiltsources.test, tests/subobj.test,
+ tests/subobj10.test, tests/subobj2.test, tests/subobj3.test,
+ tests/subobj4.test, tests/subobj5.test, tests/subobj6.test,
+ tests/subobj7.test, tests/subobj8.test, tests/subobj9.test,
+ tests/subobjname.test, tests/subpkg.test, tests/subpkg2.test,
+ tests/subpkg3.test, tests/subst.test, tests/subst2.test,
+ tests/subst3.test, tests/substre2.test, tests/substref.test,
+ tests/substtarg.test, tests/suffix.test, tests/suffix10.test,
+ tests/suffix11.test, tests/suffix12.test, tests/suffix2.test,
+ tests/suffix3.test, tests/suffix4.test, tests/suffix5.test,
+ tests/suffix6.test, tests/suffix7.test, tests/suffix8.test,
+ tests/suffix9.test, tests/symlink.test, tests/symlink2.test,
+ tests/symlink3.test, tests/syntax.test, tests/tags.test,
+ tests/tagsub.test, tests/tar.test, tests/tar2.test,
+ tests/tar3.test, tests/target-cflags.test,
+ tests/targetclash.test, tests/transform.test, tests/txinfo.test,
+ tests/txinfo10.test, tests/txinfo13.test, tests/txinfo16.test,
+ tests/txinfo17.test, tests/txinfo18.test, tests/txinfo19.test,
+ tests/txinfo2.test, tests/txinfo20.test, tests/txinfo21.test,
+ tests/txinfo22.test, tests/txinfo23.test, tests/txinfo24.test,
+ tests/txinfo25.test, tests/txinfo26.test, tests/txinfo27.test,
+ tests/txinfo28.test, tests/txinfo29.test, tests/txinfo3.test,
+ tests/txinfo30.test, tests/txinfo31.test, tests/txinfo4.test,
+ tests/txinfo5.test, tests/txinfo6.test, tests/txinfo7.test,
+ tests/txinfo8.test, tests/txinfo9.test, tests/unused.test,
+ tests/upc.test, tests/upc2.test, tests/upc3.test,
+ tests/vars.test, tests/vars3.test, tests/vartar.test,
+ tests/version.test, tests/version2.test, tests/version3.test,
+ tests/version4.test, tests/version6.test, tests/version7.test,
+ tests/version8.test, tests/vpath.test, tests/vtexi.test,
+ tests/vtexi2.test, tests/warnopts.test, tests/werror.test,
+ tests/werror2.test, tests/whoami.test, tests/xsource.test,
+ tests/yacc.test, tests/yacc2.test, tests/yacc3.test,
+ tests/yacc4.test, tests/yacc5.test, tests/yacc6.test,
+ tests/yacc7.test, tests/yacc8.test, tests/yaccpp.test,
+ tests/yaccvpath.test: Use `Exit $arg' instead of `exit $arg'
+ throughout, except inside created files.
+
2008-09-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Avoid Heisenbug with verbose testing on HP-UX.
echo 'Do not run "automake" in the above tests. Use "$$AUTOMAKE" instead.' 1>&2; \
exit 1; \
fi
+## Tests should only use END and EOF for here documents
+## (so that the next test is effective).
+ @if grep '<<' $(srcdir)/tests/*.test | grep -v 'END' | grep -v 'EOF'; then \
+ echo 'Use here documents with "END" and "EOF" only, for greppability.' 1>&2; \
+ exit 1; \
+ fi
+## Tests should never call exit directly, but use Exit.
+## This is so that the exit status is transported correctly across the 0 trap.
+## Ignore comments, and ignore one perl line in ext2.test.
+ @found=false; for file in $(srcdir)/tests/*.test; do \
+ res=`sed -n '/^#/d; /^\$$PERL/d; /<<.*END/,/^END/{b;}; /<<.*EOF/,/^EOF/{b;}; /exit [$$0-9]/p' $$file`; \
+ if test -n "$$res"; then \
+ echo "$$file:$$res"; \
+ found=true; \
+ fi; \
+ done; \
+ if $$found; then \
+ echo 'Do not call plain "exit", use "Exit" instead, in above tests.' 1>&2; \
+ exit 1; \
+ fi
## Use AUTOMAKE_fails when appropriate
- @if grep -v '^#' $(srcdir)/tests/*.test | grep '\$$AUTOMAKE.*&&.*exit'; then \
+ @if grep -v '^#' $(srcdir)/tests/*.test | grep '\$$AUTOMAKE.*&&.*[eE]xit'; then \
echo 'Use AUTOMAKE_fails + grep to catch automake failures in the above tests.' 1>&2; \
exit 1; \
fi
echo 'Do not run "automake" in the above tests. Use "$$AUTOMAKE" instead.' 1>&2; \
exit 1; \
fi
- @if grep -v '^#' $(srcdir)/tests/*.test | grep '\$$AUTOMAKE.*&&.*exit'; then \
+ @if grep '<<' $(srcdir)/tests/*.test | grep -v 'END' | grep -v 'EOF'; then \
+ echo 'Use here documents with "END" and "EOF" only, for greppability.' 1>&2; \
+ exit 1; \
+ fi
+ @found=false; for file in $(srcdir)/tests/*.test; do \
+ res=`sed -n '/^#/d; /^\$$PERL/d; /<<.*END/,/^END/{b;}; /<<.*EOF/,/^EOF/{b;}; /exit [$$0-9]/p' $$file`; \
+ if test -n "$$res"; then \
+ echo "$$file:$$res"; \
+ found=true; \
+ fi; \
+ done; \
+ if $$found; then \
+ echo 'Do not call plain "exit", use "Exit" instead, in above tests.' 1>&2; \
+ exit 1; \
+ fi
+ @if grep -v '^#' $(srcdir)/tests/*.test | grep '\$$AUTOMAKE.*&&.*[eE]xit'; then \
echo 'Use AUTOMAKE_fails + grep to catch automake failures in the above tests.' 1>&2; \
exit 1; \
fi
# Make sure AC_LIBOBJ and friends work.
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_PROG_CC
#
# Also check for --install.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
grep macro11 foo
grep macro21 foo
grep macro3 foo
-grep MACRO3 aclocal.m4 && exit 1
+grep MACRO3 aclocal.m4 && Exit 1
test -f m4_1/macro.m4
test ! -f m4_2/macro.m4
cp aclocal.m4 copy.m4
grep macro11 foo
grep macro21 foo
grep macro3 foo
-grep MACRO3 aclocal.m4 && exit 1
-grep GREPME m4_1/macro.m4 && exit 1
+grep MACRO3 aclocal.m4 && Exit 1
+grep GREPME m4_1/macro.m4 && Exit 1
test -f m4_1/macro.m4
test ! -f m4_2/macro.m4
diff aclocal.m4 copy.m4
# Make sure that when two files define the same macro in the same
# directory, the macro from the lexically greatest file is used.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# directory, the macro from the lexically greatest file is used.
# Same as acloca11.test, but without calling MACRO2.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
$ACLOCAL --verbose -I m4
$AUTOCONF
./configure
-grep macro11 foo && exit 1
-grep macro21 foo && exit 1
+grep macro11 foo && Exit 1
+grep macro21 foo && Exit 1
grep macro12 foo
# Make sure changes to m4_included files also cause aclocal.m4 to change.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
$ACLOCAL -I m4
grep version2 aclocal.m4
-grep version1 aclocal.m4 && exit 1
+grep version1 aclocal.m4 && Exit 1
$sleep
echo MACRO2 >somefile.m4
$ACLOCAL -I m4
-grep version2 aclocal.m4 && exit 1
+grep version2 aclocal.m4 && Exit 1
grep version1 aclocal.m4
$sleep
# Report from Phil Edwards.
required=GNUmake
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
$FGREP acinclude.m4 aclocal.m4
# None of the following macro should be included. acinclude.m4
# includes the first four, and the last two are not needed at all.
-$FGREP a.m4 aclocal.m4 && exit 1
-$FGREP b.m4 aclocal.m4 && exit 1
-$FGREP c.m4 aclocal.m4 && exit 1
-$FGREP d.m4 aclocal.m4 && exit 1
-$FGREP defs/e.m4 aclocal.m4 && exit 1
-$FGREP defs/f.m4 aclocal.m4 && exit 1
+$FGREP a.m4 aclocal.m4 && Exit 1
+$FGREP b.m4 aclocal.m4 && Exit 1
+$FGREP c.m4 aclocal.m4 && Exit 1
+$FGREP d.m4 aclocal.m4 && Exit 1
+$FGREP defs/e.m4 aclocal.m4 && Exit 1
+$FGREP defs/f.m4 aclocal.m4 && Exit 1
$AUTOCONF
$AUTOMAKE
# Make sure aclocal diagnose missing included files with correct `file:line:'.
rm -f b.m4
-$ACLOCAL 2>stderr && exit 1
+$ACLOCAL 2>stderr && Exit 1
grep 'a.m4:1:.*b.m4.*does not exist' stderr
# Make sure aclocal scans configure.in for macro definitions.
# PR/319.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
echo 'AC_DEFUN([AM_MORE_MACRO], [AC_REQUIRE([AM_SOME_DEF])])' > m4/more.m4
$ACLOCAL -I m4
-$FGREP AM_SOME_MACRO aclocal.m4 && exit 1
-$FGREP AM_MORE_MACRO aclocal.m4 && exit 1
+$FGREP AM_SOME_MACRO aclocal.m4 && Exit 1
+$FGREP AM_MORE_MACRO aclocal.m4 && Exit 1
$FGREP 'm4_include([m4/more.m4])' aclocal.m4
test 1 = `grep m4_include aclocal.m4 | wc -l`
# Make sure aclocal does not include definitions that are not actually
# evaluated.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
EOF
$ACLOCAL -I m4
-grep m4/some.m4 aclocal.m4 && exit 1
+grep m4/some.m4 aclocal.m4 && Exit 1
:
# Make sure aclocal report unused required macros.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# FIXME: We want autom4te's 'undefined required macro' warning to be fatal,
# but have no means to say so to aclocal. We use WARNINGS=error instead.
-WARNINGS=error $ACLOCAL -I m4 2>stderr && exit 1
+WARNINGS=error $ACLOCAL -I m4 2>stderr && Exit 1
cat stderr
grep 'configure.in:4:.*UNDEFINED_MACRO' stderr
# Test for --install with #serial numbers.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
ACLOCAL_TESTSUITE_FLAGS='-I 4 -I 1 -I 2'
rm -f foo
-$ACLOCAL --install 2>stderr && exit 1
+$ACLOCAL --install 2>stderr && Exit 1
grep AM_MACRO2 stderr
ACLOCAL_TESTSUITE_FLAGS='-I 4 -I 1'
# more than just variable definitions.
# Report from Peter Breitenlohner (PR/450).
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
./configure >stdout
cat stdout
grep GREPME stdout
-grep 'aconfig\.ac' aclocal.m4 && exit 1
-grep 'bconfig\.ac' aclocal.m4 && exit 1
+grep 'aconfig\.ac' aclocal.m4 && Exit 1
+grep 'bconfig\.ac' aclocal.m4 && Exit 1
grep with-grepme configure
# Make sure aclocal does not write into symlinked aclocal.m4.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Also make sure aclocal does not think 'include' is
# an Autoconf macro.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Make sure the "deleted header file" issue is fixed wrt. aclocal.m4
# dependencies.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
./configure
$MAKE
grep GREPFOO Makefile
-grep GREPBAR Makefile && exit 1
+grep GREPBAR Makefile && Exit 1
sed 's/FOO/BAR/' < configure.in > t
mv -f t configure.in
rm -f foo.m4
$MAKE
-grep GREPFOO Makefile && exit 1
+grep GREPFOO Makefile && Exit 1
grep GREPBAR Makefile
# Test to make sure that aclocal --output works. Report from
# Alexandre Oliva.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
$ACLOCAL --output=fred
test -f fred
-$ACLOCAL --output 2>stderr && exit 1
+$ACLOCAL --output 2>stderr && Exit 1
grep 'option.*--output.*an argument' stderr
grep help stderr
-$ACLOCAL --unknown-option 2>stderr && exit 1
+$ACLOCAL --unknown-option 2>stderr && Exit 1
grep 'unrecognized.*--unknown-option' stderr
grep help stderr
-$ACLOCAL --ver 2>stderr && exit 1
+$ACLOCAL --ver 2>stderr && Exit 1
grep 'unrecognized.*--ver' stderr
grep help stderr
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Test to make sure include of include detects missing macros
-. ./defs || exit 1
+. ./defs || Exit 1
echo GNOME_X_CHECKS >> configure.in
# We need GNU make for the `rebuild rules' to be triggered.
required=GNUmake
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# This test assumes that the `make' utility is able to start
# over and reload Makefiles which have been remade (a non-POSIX feature).
required='GNUmake'
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# dependency changes. Test for acinclude.m4 and VPATH too.
required='GNUmake'
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Make sure aclocal does not overwrite aclocal.m4 needlessly.
# Also make sure automake --no-force does not overwrite Makefile.in needlessly.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
test `ls -1t Makefile.in foo | sed 1q` = Makefile.in
test `ls -1t sub/Makefile.in foo | sed 1q` = foo
-grep README Makefile.in && exit 1
+grep README Makefile.in && Exit 1
: > README
$sleep
# Make sure aclocal does not require unused macros.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
cat output
test 0 = `wc -l <output`
grep macro1.m4 aclocal.m4
-grep macro2.m4 aclocal.m4 && exit 1
+grep macro2.m4 aclocal.m4 && Exit 1
:
# Make sure aclocal define macros in the same order as -I's.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test for bug reported by François Pinard.
# If \ is in AC_OUTPUT, automake barfs.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT
: > Makefile.am
: > zot.in
-$ACLOCAL || exit 1
+$ACLOCAL || Exit 1
$AUTOMAKE
# Test for bug reported by David A. Swierczek.
# Another bug with \ in AC_OUTPUT (this time with whitespace).
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
PACKAGE=nonesuch
# automake is not happy:
# [ ... ]
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT
: > Makefile.am
-$ACLOCAL || exit 1
+$ACLOCAL || Exit 1
$AUTOMAKE
# Test for bug when AC_OUTPUT has 2 args on the same line, eg:
# AC_OUTPUT([Makefile automake tests/Makefile],[chmod +x automake])
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT
: > Makefile.am
-$ACLOCAL || exit 1
+$ACLOCAL || Exit 1
$AUTOMAKE
# Test for bug reported by Eric Magnien.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT
: > foo.in
: > subdir/foo.in
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
count=`$FGREP foo.in Makefile.in | wc -l`
-test $count -eq 2 || exit 1
+test $count -eq 2 || Exit 1
# This ought to work as well.
-$ACLOCAL || exit 1
+$ACLOCAL || Exit 1
$AUTOMAKE --add-missing --force-missing
# Test for bug reported by François Pinard.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT
: > Makefile.am
-$ACLOCAL || exit 1
+$ACLOCAL || Exit 1
$AUTOMAKE
# Test to make sure there are no spurious acinclude warnings.
-. ./defs || exit 1
+. ./defs || Exit 1
cat >configure.in <<EOF
AC_INIT
AC_SUBST(module)])
END
-$ACLOCAL > output 2>&1 || exit 1
+$ACLOCAL > output 2>&1 || Exit 1
test -z "`cat output`"
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test to make sure all-local and other -local targets work correctly.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
targets='all install-exec install-data uninstall'
$ACLOCAL
$AUTOMAKE
- $FGREP "${target}-local ${target}-local" Makefile.in && exit 1
+ $FGREP "${target}-local ${target}-local" Makefile.in && Exit 1
done
# Several *-local's in a single rule.
$EGREP "${target}-am:.*${target}-local" Makefile.in
done
-exit 0
+Exit 0
# Make sure we complain if @ALLOCA@ is used without being set in configure.in
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Make sure we complain if @LTALLOCA@ is used without being set in configure.in
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Make sure README-alpha is distributed when appropriate. Report from
# Jim Meyering.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
./configure
# make distdir should fail because NEWS does not mention 1.0a
-$MAKE check 2>stderr && exit 1
+$MAKE check 2>stderr && Exit 1
cat stderr
grep 'NEWS not updated' stderr
test ! -f works
# Another check for README-alpha support. This time it is requested
# from configure.in. Report from Akim Demaille.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test to see if AM_ name can be assigned to in configure.in.
# Report from Steve Robbins.
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AM_CFLAGS=foo
# Test to see if aclocal correctly reports missing AM_ macro.
-. ./defs || exit 1
+. ./defs || Exit 1
echo AM_ZARDOZ >> configure.in
# Make Automake diagnose a conditional AUTOMAKE_OPTIONS.
# Report from Bas Wijnen.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Check for _AM_SUBST_NOTMAKE.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test for bug where ansi2knr.c is not included in distribution.
# From François Pinard.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > Makefile.am << 'END'
AUTOMAKE_OPTIONS = ansi2knr
: > ansi2knr.c
: > ansi2knr.1
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
$FGREP -v @SET_MAKE@ Makefile.in > Makefile.sed
$MAKE -s -f Makefile.sed SHELL=$SHELL magic | grep 'ansi2knr\.c'
# Make sure ansi2knr works with $(LIBOBJS).
required=gcc
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test to make sure ansi2knr built at the right time.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > Makefile.am << 'END'
AUTOMAKE_OPTIONS = ansi2knr
: > ansi2knr.c
: > ansi2knr.1
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
grep '^all[-a-z]*:.*ANSI2KNR' Makefile.in
# of working gcc.
required=gcc
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# defined in configure.in.
required=gcc
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Quoting regression. Test from Thomas Gagne.
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_PROG_CC
: > ansi2knr.c
: > hello.c
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
-$FGREP 'ansi2knr.$(' Makefile.in || exit 1
+$FGREP 'ansi2knr.$(' Makefile.in || Exit 1
# Test for ansi2knr in another directory.
required=gcc
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT(one/joe.c)
# From Kevin Ryde.
required=gcc
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT(ansi6, 1.0)
# From Kevin Ryde.
required=gcc
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT(ansi6, 1.0)
# Check that AM_C_PROTOTYPES is required by ansi2knr
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Report from Paul D. Smith.
required=gcc
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
$FGREP 'loadavg-loadavg$U.o: loadavg$U.c' Makefile.in
# The following rule should not exist, because the
# default .o.c: inference rule is enough.
-$FGREP 'sub/sub$U.o: sub/sub$U.c' Makefile.in && exit 1
+$FGREP 'sub/sub$U.o: sub/sub$U.c' Makefile.in && Exit 1
# Force ansi2knr's use, regardless of the compiler.
./configure ac_cv_prog_cc_stdc=no
$MAKE sub/sub_.c
# Make sure that AR, ARFLAGS, and RANLIB can be substituted from configure.in.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Make sure AR and ARFLAGS are defined for EXTRA_LIBRARIES.
# Report from Kevin Ryde.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test of basic assembly functionality
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
$ACLOCAL
$AUTOMAKE
-exit 0
+Exit 0
# Test of basic preprocessed assembly functionality
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
$ACLOCAL
$AUTOMAKE
-exit 0
+Exit 0
# Test of basic preprocessed assembly functionality with extension .sx.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
$ACLOCAL
$AUTOMAKE
-exit 0
+Exit 0
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Test Automake's command-line options.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test to make sure AC_CONFIG_AUX_DIR works correctly.
-. ./defs || exit 1
+. ./defs || Exit 1
# The "./." is here so we don't have to mess with subdirs.
cat > configure.in << 'END'
# The "././" prefix confuses Automake into thinking it is doing a
# subdir build. Yes, this is hacky.
-$ACLOCAL || exit 1
-$AUTOMAKE ././Makefile || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE ././Makefile || Exit 1
grep '/\./\./mkinstalldirs' Makefile.in
# It should be possible to use a computed auxdir. This might seem
# bizarre, but it is actually used in multilib builds.
-. ./defs || exit 1
+. ./defs || Exit 1
# The "./." is here so we don't have to mess with subdirs.
cat > configure.in << 'END'
: > Makefile.am
-$ACLOCAL || exit 1
+$ACLOCAL || Exit 1
$AUTOMAKE
# Test to make sure we diagnose misplaced AC_CONFIG_AUX_DIR.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Make sure we diagnose dangerous AC_CONFIG_AUX_DIR names.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test for "\" problems. Bug report from Joerg-Martin Schwarz.
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_PROG_CC
frob
END
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
-grep '^_SOURCE' Makefile.in && exit 1
-exit 0
+grep '^_SOURCE' Makefile.in && Exit 1
+Exit 0
# We must skip the backslash, not complain about `./\' not existing.
# Reported by Rick Scott <rwscott@omnisig.com>
-. ./defs || exit 1
+. ./defs || Exit 1
cat > Makefile.am << 'END'
SUBDIRS = \
.
END
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
-exit 0
+Exit 0
# Make sure we diagnose trailing backslash at the end of a file.
# Report from Akim Demaile <akim@epita.fr>
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Make sure we diagnose and fix white spaces following backslash.
# Report from Peter Muir.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test to make sure that line number and file name in error message
# referring to variable is always correct.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
: > Makefile.am
-$ACLOCAL || exit 1
+$ACLOCAL || Exit 1
AUTOMAKE_fails
grep 'configure.in:3:.*info_TEXINFOS' stderr
# Test to make sure bad options cause error.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > Makefile.am << 'END'
AUTOMAKE_OPTIONS = zardoz
# Test to make sure that programs with bad names are properly
# transformed.
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_PROG_CC
a_b_SOURCES = ab.c
END
-$ACLOCAL || exit 1
+$ACLOCAL || Exit 1
$AUTOMAKE
# Make sure block comments are not double-spaced.
# Report from François Pinard.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > Makefile.am << 'END'
#START
#END
END
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
-(sed -e '/^#START/,/^#END/ !d' Makefile.in | grep -v '^#') && exit 1
-exit 0
+(sed -e '/^#START/,/^#END/ !d' Makefile.in | grep -v '^#') && Exit 1
+Exit 0
# Regression test for install-recursive appearing in a non recursive Makefile.
# Report from Bruno Haible.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
$ACLOCAL
$AUTOMAKE
-grep 'install-recursive' Makefile.in && exit 1
+grep 'install-recursive' Makefile.in && Exit 1
:
# PR 511: Make sure we warn about AC_CONFIG_FILES([./makefile]).
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT([canon-name], [1.0])
# Test to make sure that name canonicalization error works.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test to make sure name canonicalization happens for texinfo.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > Makefile.am << 'END'
info_TEXINFOS = zar-doz.texi
echo '@setfilename zar-doz.info' > zar-doz.texi
echo '@setfilename frob' > frob.texi
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
-grep zar-doz_TEXINFOS Makefile.in && exit 1
-exit 0
+grep zar-doz_TEXINFOS Makefile.in && Exit 1
+Exit 0
# Yet another canonicalization test.
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_PROG_CC
: > perm-number.c
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
-grep 'perm_number\.c' Makefile.in && exit 1
-exit 0
+grep 'perm_number\.c' Makefile.in && Exit 1
+Exit 0
# Test to make sure name canonicalization happens for libraries.
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_PROG_CC
libx_y_a_SOURCES = xy.c
END
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
-grep '^libx-y.*=' Makefile.in && exit 1
-exit 0
+grep '^libx-y.*=' Makefile.in && Exit 1
+Exit 0
# Test to make sure that we allow variable names starting in
# non-letters. Whatever that might mean.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
END
$ACLOCAL
-$AUTOMAKE || exit 1
+$AUTOMAKE || Exit 1
cat > Makefile.am << 'END'
bin_PROGRAMS = _foo
# understand `-c -o'.
required=gcc
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.1 << 'END'
AC_INIT(a.c)
# Make sure Automake requires AM_PROG_CC_C_O when either per-targets
# flags or subdir-objects are used.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test Automake style tests.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
$AUTOMAKE
grep '^check-TESTS:' Makefile.in
-grep '^check-DEJAGNU' Makefile.in && exit 1
+grep '^check-DEJAGNU' Makefile.in && Exit 1
# check-TESTS is phony.
sed -n '/^\.PHONY:/,/^$/p' Makefile.in | grep check-TESTS
# Test Automake style tests.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Make sure `check:' and `install:' honor $(BUILT_SOURCES).
# PR/359.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Make sure `make -k check' processes all directories.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
$AUTOCONF
$AUTOMAKE
./configure --prefix "`pwd`/inst"
-$MAKE check >stdout && exit 1
+$MAKE check >stdout && Exit 1
cat stdout
grep 'FAIL: fail.sh' stdout
-grep 'PASS: ok.sh' stdout && exit 1
+grep 'PASS: ok.sh' stdout && Exit 1
# The exit status of `make -k' can be anything
# (depending on the Make implementation)
# Use --version AND -v, because SGI Make doesn't fail on --version.
# Also grep for GNU because newer versions of FreeBSD make do
# not complain about `--version' (they seem to silently ignore it).
-($MAKE --version -v | grep GNU) || exit 0
+($MAKE --version -v | grep GNU) || Exit 0
# Try with a long-option that do not have a short option equivalent
# (here, --no-print-directory). That should cause all options to
# Test TESTS = $(check_PROGRAMS)
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
EXEEXT=.bin $MAKE -e print-tests >output
cat output
# No am__EXEEXT_* variable is needed.
-grep '_EXEEXT' Makefile.in && exit 1
+grep '_EXEEXT' Makefile.in && Exit 1
grep 'BEG: one.bin two.bin :END' output
$FGREP 'TESTS = $(check_PROGRAMS)' Makefile.in
# Test for PR 400: XFAIL_TESTS delimited by TABs.
# Also test that Solaris make VPATH rewriting is honored
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Check EXEEXT extension for XFAIL_TESTS.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test for bug where check target doesn't depend on all.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > Makefile.am << 'END'
bin_SCRIPTS = derived
true
END
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
-grep '^check-am:.*all-am' Makefile.in || exit 1
+grep '^check-am:.*all-am' Makefile.in || Exit 1
grep 'MAKE.*check-local' Makefile.in
# Test to make sure a clean target depends on previous one.
-. ./defs || exit 1
+. ./defs || Exit 1
: > Makefile.am
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
grep '^clean-am:.*mostlyclean-am' Makefile.in
# Make sure distclean works in cygnus mode.
# Report from Daniel Jacobowitz
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test that := definitions produce warnings, but otherwise work.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test that := in var substitutions works.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > Makefile.am << 'END'
t = a b c
: > b.test
: > c.test
-$ACLOCAL || exit 1
+$ACLOCAL || Exit 1
$AUTOMAKE
# Test for bug reported by Nyul Laszlo. When using the ":" syntax in
# AC_OUTPUT, Automake fails to find the correct file.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT
: > foo.hin
: > stamp-h.in
-$ACLOCAL || exit 1
+$ACLOCAL || Exit 1
$AUTOMAKE
# Make sure ":" works with files automake generates.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT
: > zardoz.am
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
# We actually check several things here.
-test -f zardoz.in || exit 1
-grep '^zardoz:' zardoz.in && exit 1
-exit 0
+test -f zardoz.in || Exit 1
+grep '^zardoz:' zardoz.in && Exit 1
+Exit 0
# Make sure ":" works with files automake generates.
# This test is for multiple ":"s.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# This test is for multiple ":"s.
# Test from Maciej W. Rozycki.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT
: > two
: > three
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
# The rule should regenerate the file "zardoz".
-grep '^zardoz:one:two' Makefile.in && exit 1
-exit 0
+grep '^zardoz:one:two' Makefile.in && Exit 1
+Exit 0
# Another multi-":" test, this time from Doug Evans.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT
: > Makefile.am
: > Makefile.dep
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
grep 'Makefile:Makefile.in' Makefile.in
# Yet another multi-":" test, this time from Ken Pizzini.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT
: > demo/Makefile.am
: > demo/version.gin
-$ACLOCAL || exit 1
+$ACLOCAL || Exit 1
$AUTOMAKE
# Another test for a failing ":" in AC_OUTPUT. Report from Maciej
# Stachowiak.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT
: > subdir/Makefile.am
: > subdir/foo
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
# shouldn't have any bar.in
-grep 'bar.in' subdir/Makefile.in && exit 1
+grep 'bar.in' subdir/Makefile.in && Exit 1
# DIST_COMMON should have foo, not subdir/foo
-grep 'DIST_COMMON.*subdir/foo' subdir/Makefile.in && exit 1
+grep 'DIST_COMMON.*subdir/foo' subdir/Makefile.in && Exit 1
-exit 0
+Exit 0
# Test Automake TESTS color output.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# GNU or BSD 'grep -a' works on files, but is not portable.
case `echo "$std" | grep .` in
$std) ;;
- *) exit 77 ;;
+ *) Exit 77 ;;
esac
cat >>configure.in <<END
test_no_color ()
{
# Not a useless use of cat; see above comments about grep.
- cat stdout | grep ": pass" | $FGREP "$grn" && exit 1
- cat stdout | grep ": fail" | $FGREP "$red" && exit 1
- cat stdout | grep ": xfail" | $FGREP "$lgn" && exit 1
- cat stdout | grep ": xpass" | $FGREP "$red" && exit 1
- cat stdout | grep ": skip" | $FGREP "$blu" && exit 1
+ cat stdout | grep ": pass" | $FGREP "$grn" && Exit 1
+ cat stdout | grep ": fail" | $FGREP "$red" && Exit 1
+ cat stdout | grep ": xfail" | $FGREP "$lgn" && Exit 1
+ cat stdout | grep ": xpass" | $FGREP "$red" && Exit 1
+ cat stdout | grep ": skip" | $FGREP "$blu" && Exit 1
:
}
unset TESTS || :
-AM_COLOR_TESTS=always $MAKE -e check >stdout && { cat stdout; exit 1; }
+AM_COLOR_TESTS=always $MAKE -e check >stdout && { cat stdout; Exit 1; }
cat stdout
test_color
-MAKE=$MAKE expect -f expect-make >stdout || exit 77
+MAKE=$MAKE expect -f expect-make >stdout || Exit 77
cat stdout
test_color
-AM_COLOR_TESTS=no MAKE=$MAKE expect -f expect-make >stdout || exit 77
+AM_COLOR_TESTS=no MAKE=$MAKE expect -f expect-make >stdout || Exit 77
cat stdout
test_no_color
:
# Make sure comments following trailing backslashes are diagnosed.
# Report from Harald Dunkel.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Make sure that `#' as start of word in AUTOMAKE_OPTIONS means
# comment.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > Makefile.am << 'END'
AUTOMAKE_OPTIONS = #no such option
END
-$ACLOCAL || exit 1
+$ACLOCAL || Exit 1
$AUTOMAKE
# Make sure comment recognition works in PROGRAMS. Report from Mark
# Galassi.
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_PROG_CC
bin_PROGRAMS = sim_products receive_th receive_pos # image_proc
END
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
-grep '^image_proc' Makefile.in && exit 1
-exit 0
+grep '^image_proc' Makefile.in && Exit 1
+Exit 0
# shell, which in turn can't find `#' as a command.
# Sigh. Some vendors must be destroyed.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Make sure commented variables are output near their comments.
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in <<'EOF'
AC_OUTPUT
# Test for PR/280.
# (Automake should complain about trailing backslashes in comments.)
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test for PR/322.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Make sure comment for conditional variables are output near the
# corresponding conditional definitions.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Make sure += does not append to a comment.
# Report from Stepan Kasal.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Make sure ##-comments are ignored in variable definitions.
# Report from Julien Sopena.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
}' -e '/^TESTS =/ p' Makefile.in > tests
grep '3\.test' tests
-grep '##' tests && exit 1
-grep '4\.test' tests && exit 1
+grep '##' tests && Exit 1
+grep '4\.test' tests && Exit 1
grep '5\.test' tests
# Make sure `compile' preserves spaces in its arguments.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# mixed source objects.
# (copied from compile_f_c_cxx.test) Mike Nolta <mrnolta@princeton.edu>
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_PROG_CC
: > bar.c
: > baz.cc
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
# Look for the macros at the beginning of rules. Be careful, as there
# are literal tabs at the beginning of the search strings.
-grep ' \$(COMPILE)' Makefile.in || exit 1
-grep ' \$(CXXCOMPILE)' Makefile.in || exit 1
-grep ' \$(FCCOMPILE)' Makefile.in || exit 1
+grep ' \$(COMPILE)' Makefile.in || Exit 1
+grep ' \$(CXXCOMPILE)' Makefile.in || Exit 1
+grep ' \$(FCCOMPILE)' Makefile.in || Exit 1
-exit 0
+Exit 0
# mixed source objects.
# Matthew D. Langston <langston@SLAC.Stanford.EDU>
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_PROG_CC
: > bar.c
: > baz.cc
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
# Look for the macros at the beginning of rules. Be careful, as there
# are literal tabs at the beginning of the search strings.
-grep ' \$(COMPILE)' Makefile.in || exit 1
-grep ' \$(CXXCOMPILE)' Makefile.in || exit 1
-grep ' \$(F77COMPILE)' Makefile.in || exit 1
+grep ' \$(COMPILE)' Makefile.in || Exit 1
+grep ' \$(CXXCOMPILE)' Makefile.in || Exit 1
+grep ' \$(F77COMPILE)' Makefile.in || Exit 1
-exit 0
+Exit 0
# Check basic use of conditionals.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
$ACLOCAL
$AUTOMAKE
-grep '^TEST_FALSE' Makefile.in && exit 1
-grep '^TEST_TRUE' Makefile.in && exit 1
+grep '^TEST_FALSE' Makefile.in && Exit 1
+grep '^TEST_TRUE' Makefile.in && Exit 1
grep '^@TEST_TRUE@VAR = true$' Makefile.in
grep '^@TEST_FALSE@VAR = false$' Makefile.in
# Test for bug in conditionals. From Raja R Harinath.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT(Makefile.am)
# This checks that, if LDADD is set from a conditional variable
# and an AC_SUBST, the _DEPENDENCIES variable is set correctly.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test for bug in conditionals.
# Report from Lars J. Aas.
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_PROG_CC
libtest_a_SOURCES = $(TESTSOURCES)
END
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
grep 'am_libtest_a_OBJECTS = .*$' Makefile.in
# Test for bug in conditionals.
# Report from Robert Boehne
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_PROG_CC
bin_PROGRAMS = $(BUILD_helldl)
END
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
num=`grep 'helldl$(EXEEXT):' Makefile.in | wc -l`
test $num -eq 2
# Regression test for conditionally defined overriding of automatic rules.
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_PROG_CC
bin_PROGRAMS = helldl
END
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
num1=`grep 'helldl$(EXEEXT):' Makefile.in | wc -l`
num2=`grep '@COND1_FALSE@@COND2_TRUE@helldl$(EXEEXT):' Makefile.in | wc -l`
-test $num1 -eq 4 || exit 1
-test $num2 -eq 1 || exit 1
+test $num1 -eq 4 || Exit 1
+test $num2 -eq 1 || Exit 1
# Report from Richard Boulton
required=gcc
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT(hello.c)
# according to a conditional.
# Report from Richard Boulton
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT(Makefile.am)
# Report from Richard Boulton
required='GNUmake gcc'
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT(Makefile.am)
# Report from Richard Boulton
required='GNUmake gcc'
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT(Makefile.am)
echo $valb
echo $valc
echo $vald
-test "x$vala" = "xdlmaina1.c dlmainb2.c dlmaina1.o dlmainb2.o" || exit 1
-test "x$valb" = "xdlmainb1.c dlmaina2.c dlmainb1.o dlmaina2.o" || exit 1
-test "x$valc" = "xdlmaina1.c dlmainb2.c dlmaina1.o dlmainb2.o" || exit 1
-test "x$vald" = "xdlmainb1.c dlmaina2.c dlmainb1.o dlmaina2.o" || exit 1
+test "x$vala" = "xdlmaina1.c dlmainb2.c dlmaina1.o dlmainb2.o" || Exit 1
+test "x$valb" = "xdlmainb1.c dlmaina2.c dlmainb1.o dlmaina2.o" || Exit 1
+test "x$valc" = "xdlmaina1.c dlmainb2.c dlmaina1.o dlmainb2.o" || Exit 1
+test "x$vald" = "xdlmainb1.c dlmaina2.c dlmainb1.o dlmaina2.o" || Exit 1
# Check SUBDIRS set based on conditionals.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Regression test for recursion handling in substitution references to
# conditional variables.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT(Makefile.am)
# Check for use of = and += in different conditions.
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_PROG_CC
# Regression test for bug when sources listed in conditional.
# Report from Richard Boulton. PR/326.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
$ACLOCAL
AUTOMAKE_fails
-grep ' USE_FOO' stderr && exit 1
+grep ' USE_FOO' stderr && Exit 1
grep '!USE_FOO' stderr
# Test sources listed in conditional.
# Report from Rob Savoye <rob@cygnus.com>, and Lars J. Aas.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT
targ_SOURCES = $(SONE) $(STWO) $(STHREE)
END
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
# `b top' so that
sed -n '
targ_OBJECTS = $(am_targ_OBJECTS)
EOF
-diff expected produced || exit 1
+diff expected produced || Exit 1
./configure
$MAKE check >stdout
cat stdout
-grep GrepMe1 stdout && exit 1
+grep GrepMe1 stdout && Exit 1
$MAKE install >stdout
cat stdout
grep GrepMe2 stdout
grep GrepMe1 stdout
$MAKE install >stdout
cat stdout
-grep GrepMe2 stdout && exit 1
+grep GrepMe2 stdout && Exit 1
:
./configure COND=true
$MAKE 2>stderr
cat stderr
-grep 'overriding commands' stderr && exit 1
+grep 'overriding commands' stderr && Exit 1
$MAKE sure-exist
-./prog1 && exit 1
-./sub/prog2 && exit 1
+./prog1 && Exit 1
+./sub/prog2 && Exit 1
$MAKE clean
$MAKE sure-not-exist
$MAKE
$MAKE sure-exist
-./prog1 && exit 1
-./sub/prog2 && exit 1
+./prog1 && Exit 1
+./sub/prog2 && Exit 1
$MAKE distclean
./configure COND=false
$MAKE 2>stderr
cat stderr
-grep 'overriding commands' stderr && exit 1
+grep 'overriding commands' stderr && Exit 1
./prog1
./sub/prog2
$MAKE clean
# Another sources-in-conditional test. Report from Tim Goodwin.
required='GNUmake gcc'
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT(Makefile.am)
@echo $(targ_OBJECTS)
END
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
# We should not output useless definitions.
-test "`grep '^@TWO_FALSE@' Makefile.in | wc -l`" -eq 0 || exit 1
+test "`grep '^@TWO_FALSE@' Makefile.in | wc -l`" -eq 0 || Exit 1
-$AUTOCONF || exit 1
+$AUTOCONF || Exit 1
# Ignore user CFLAGS.
CFLAGS=
export CFLAGS
-CONDITION1=true CONDITION2=true ./configure || exit 1
+CONDITION1=true CONDITION2=true ./configure || Exit 1
msgtt=`$MAKE --no-print-directory echo-objects`
-CONDITION1=true CONDITION2=false ./configure || exit 1
+CONDITION1=true CONDITION2=false ./configure || Exit 1
msgtf=`$MAKE --no-print-directory echo-objects`
-CONDITION1=false CONDITION2=true ./configure || exit 1
+CONDITION1=false CONDITION2=true ./configure || Exit 1
msgft=`$MAKE --no-print-directory echo-objects`
-CONDITION1=false CONDITION2=false ./configure || exit 1
+CONDITION1=false CONDITION2=false ./configure || Exit 1
msgff=`$MAKE --no-print-directory echo-objects`
echo $msgtt
echo $msgft
echo $msgff
-test "$msgtt" = "main.o one.o two.o" || exit 1
-test "$msgtf" = "main.o one.o" || exit 1
-test "$msgft" = "main.o two.o" || exit 1
-test "$msgff" = "main.o" || exit 1
+test "$msgtt" = "main.o one.o two.o" || Exit 1
+test "$msgtf" = "main.o one.o" || Exit 1
+test "$msgft" = "main.o two.o" || Exit 1
+test "$msgff" = "main.o" || Exit 1
test -f file3
rm -f file1 file3
$MAKE file1 file3
-$MAKE file2 && exit 1
+$MAKE file2 && Exit 1
test -f file1
test ! -f file2
test -f file3
test -f file2
test ! -f file3
rm -f file2
-$MAKE file1 && exit 1
+$MAKE file1 && Exit 1
$MAKE file2
-$MAKE file3 && exit 1
+$MAKE file3 && Exit 1
test ! -f file1
test -f file2
test ! -f file3
AC_OUTPUT
END
-$ACLOCAL && exit 1
+$ACLOCAL && Exit 1
:
# Yet another sources-in-conditional test. Report from Tim Goodwin.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT
# The bug is that automake hangs. So we give it a few seconds and
# then kill it.
-$ACLOCAL || exit 1
+$ACLOCAL || Exit 1
$AUTOMAKE &
pid=$!
sleep 60
kill -0 $pid && {
kill $pid
- exit 1
+ Exit 1
}
-exit 0
+Exit 0
# Test for an odd conditional bug. Report from Matt Leach.
-. ./defs || exit 1
+. ./defs || Exit 1
echo 'AM_CONDITIONAL(FOO, true)' >> configure.in
endif
END
-$ACLOCAL || exit 1
+$ACLOCAL || Exit 1
$AUTOMAKE
# Test for an odd conditional bug. Report from Pavel Roskin.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT()
endif
END
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
-grep '^[^#].*002' Makefile.in && exit 1
-exit 0
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
+grep '^[^#].*002' Makefile.in && Exit 1
+Exit 0
# Test to make sure _PROGRAMS conditionals can be written in a useful
# way.
-. ./defs || exit 1
+. ./defs || Exit 1
echo 'AC_PROG_CC' >> configure.in
echo 'AM_CONDITIONAL(X, false)' >> configure.in
endif
END
-$ACLOCAL || exit 1
+$ACLOCAL || Exit 1
$AUTOMAKE
# Test for bug in conditionals. From Raja R Harinath.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT(Makefile.am)
# Test for bug in conditionals.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
$ACLOCAL
$AUTOCONF
-grep "meaningless;characters" configure && exit 1
+grep "meaningless;characters" configure && Exit 1
$AUTOMAKE
./configure
$MAKE test
# Test install when a conditional install-*-hook is not defined.
# Report by Nik A. Melchior (PR/428).
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Make sure a conditional include statement is handled properly.
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AM_CONDITIONAL(TOBE, false)
rule
END
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
-grep '^target:' Makefile.in && exit 1
+grep '^target:' Makefile.in && Exit 1
-grep '^@TOBE_TRUE@target:' Makefile.in || exit 1
+grep '^@TOBE_TRUE@target:' Makefile.in || Exit 1
-exit 0
+Exit 0
# Another test of conditional include statements.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test for bug with conditional library.
# From Harlan Stenn
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_PROG_RANLIB
BUILT_SOURCES = $(nodist_librsaref_a_SOURCES)
END
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
-$FGREP librsaref.a.c Makefile.in && exit 1
-exit 0
+$FGREP librsaref.a.c Makefile.in && Exit 1
+Exit 0
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Make sure conditionals work with man pages.
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AM_CONDITIONAL(FRED, true)
: > foo.1
: > joe.1
-$ACLOCAL || exit 1
+$ACLOCAL || Exit 1
$AUTOMAKE
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Make sure appropriate man install targets generated in all cases.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > Makefile.am << 'END'
man_MANS = foo.1 foo.2
man5_MANS = foo.5
END
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
-grep '^install-man1:' Makefile.in || exit 1
-grep '^install-man2:' Makefile.in || exit 1
-grep '^install-man5:' Makefile.in || exit 1
+grep '^install-man1:' Makefile.in || Exit 1
+grep '^install-man2:' Makefile.in || Exit 1
+grep '^install-man5:' Makefile.in || Exit 1
# Test to make sure several config headers are allowed.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT
: > config.h.in
: > two.h.in
-$ACLOCAL || exit 1
+$ACLOCAL || Exit 1
$AUTOMAKE
# Make sure that config* files are properly regenerated.
-. ./defs || exit 1
+. ./defs || Exit 1
echo "FOO = foo" > Makefile.am
set -e
sed -n '3,$p' aclocal.m4 >aclocal.m4t
mv aclocal.m4t aclocal.m4
$AUTOMAKE
-grep '^\$(ACLOCAL_M4):' Makefile.in && exit 1
+grep '^\$(ACLOCAL_M4):' Makefile.in && Exit 1
-exit 0
+Exit 0
# Report from Alexander Turbov.
required=GNUmake
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Make sure empty calls to AC_CONFIG_FILES or AC_CONFIG_HEADERS are diagnosed.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test to make sure config.h works in a subdir.
# Report from Alexandre Oliva.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT
: > include/Makefile.am
: > include/config.h.in
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
(sed -n -e '/^DIST_COMMON =.*\\$/ {
:loop
t loop
p
n
- }' -e '/^DIST_COMMON =/ p' Makefile.in | grep acconfig.h) || exit 1
+ }' -e '/^DIST_COMMON =/ p' Makefile.in | grep acconfig.h) || Exit 1
# Make sure re-running automake in a different way generates same
# Makefile.in.
mv Makefile.in save
-$ACLOCAL || exit 1
-$AUTOMAKE Makefile || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE Makefile || Exit 1
cmp Makefile.in save
# Test for PR 34.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT
: > include/Makefile.am
: > include/config.h.in
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
$EGREP '^DEFAULT_INCLUDES =.* -I(\.|\$\(top_builddir\))/include' Makefile.in
# Make sure we do not distribute header sources when they are built.
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_SUBST([FOO], [name])
# that subdir, then we want to build config.h as the top level.
required=GNUmake
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# If config.h is not used, @CONFIG_INCLUDE_SPEC@ should not appear
# in Makefile.in.
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_PROG_CC
bin_PROGRAMS = fred
EOF
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
if grep '@CONFIG_INCLUDE_SPEC@' Makefile.in; then
- exit 1
+ Exit 1
fi
-exit 0
+Exit 0
# Test to make sure links created by AC_CONFIG_LINKS get removed with
# `make distclean'
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
test -f src
test -f sdir/src2
-test -r dest && exit 1
-test -r dest2 && exit 1
-test -r sdir/dest3 && exit 1
-test -r dest4 && exit 1
-test -r sdir/dest5 && exit 1
-test -r sdir-no-make/dest6 && exit 1
+test -r dest && Exit 1
+test -r dest2 && Exit 1
+test -r sdir/dest3 && Exit 1
+test -r dest4 && Exit 1
+test -r sdir/dest5 && Exit 1
+test -r sdir-no-make/dest6 && Exit 1
:
# Test to make sure that sources for links created by AC_CONFIG_LINKS
# are distributed.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test to make sure that AC_CONFIG_LINKS using a variable source
# is not broken.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Skip platforms where `test -e' does not work. (Note that Changing
# all `test -e' into `test -h' will not work when AC_CONFIG_LINKS
# copies or hardlinks files.)
-(test -e configure.in) >/dev/null 2>&1 || exit 77
+(test -e configure.in) >/dev/null 2>&1 || Exit 77
cat > Makefile.am << 'END'
SUBDIRS = sdir
# $my_src_dir and $my_dest are variables local to configure, they should
# not appear in Makefile.
-grep my_src_dir Makefile.in && exit 1
-grep my_dest Makefile.in && exit 1
+grep my_src_dir Makefile.in && Exit 1
+grep my_dest Makefile.in && Exit 1
./configure
test -e sdir/dest2
# Test to make sure links to _identical files_ created by AC_CONFIG_LINKS get
# removed with `make distclean' only if doing a VPATH build.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
test -f ../nonmk-subdir/src3
test -f ../sdir/mk-subdir/src4
-test -r src && exit 1
-test -r sdir/src2 && exit 1
-test -r nonmk-subdir/src3 && exit 1
-test -r sdir/mk-subdir/src4 && exit 1
+test -r src && Exit 1
+test -r sdir/src2 && Exit 1
+test -r nonmk-subdir/src3 && Exit 1
+test -r sdir/mk-subdir/src4 && Exit 1
cd ..
./configure
# Test to make sure config.h can be in subdir.
# Also, make sure config.h is properly rebuilt.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT
echo 'Before.' > subdir/config.hin
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
# Make sure subdir Makefile.in doesn't itself look in the subdir.
# One line is allowed though:
#
# cd $(top_builddir) && $(SHELL) ./config.status subdir/config.h
($FGREP 'subdir/config.h' subdir/Makefile.in |
- $FGREP -v 'cd $(top_builddir)') && exit 1
+ $FGREP -v 'cd $(top_builddir)') && Exit 1
-$AUTOCONF || exit 1
-./configure || exit 1
+$AUTOCONF || Exit 1
+./configure || Exit 1
$FGREP 'Before.' subdir/config.h
$sleep
echo 'After.' > subdir/config.hin
-$MAKE || exit 1
-$FGREP 'After.' subdir/config.h || exit 1
+$MAKE || Exit 1
+$FGREP 'After.' subdir/config.h || Exit 1
-exit 0
+Exit 0
# Test to make sure configure_vars stuff works.
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_SUBST(QBERT)
: > Makefile.am
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
grep '^QBERT' Makefile.in
# Test for bug reported by Jim Meyering.
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_SUBST(OTHER_SCRIPTS)
bin_SCRIPTS = foo
END
-$ACLOCAL || exit 1
+$ACLOCAL || Exit 1
$AUTOMAKE
# Test to make sure `-c' works. Report from Andris Pavenis.
-. ./defs || exit 1
+. ./defs || Exit 1
: > Makefile.am
rm -f install-sh
-$ACLOCAL || exit 1
+$ACLOCAL || Exit 1
$AUTOMAKE -c -a
# Check basic use of conditionals.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT
set -e
-$ACLOCAL || exit 1
+$ACLOCAL || Exit 1
$AUTOMAKE
grep '^@TEST_TRUE@target: true' Makefile.in
grep '^@TEST_TRUE@ action' Makefile.in
grep '^@TEST_FALSE@target: false' Makefile.in
-exit 0
+Exit 0
# Test that `.c++' extension works.
# From Ralf Corsepius.
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_PROG_CXX
hello_SOURCES = hello.c++
END
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
grep '^\.SUFFIXES:.*c[+][+]' Makefile.in
# Test that Automake suggests using AC_PROG_CXX if C++ sources are used.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test to make sure ansi2knr doesn't use `$U' for C++.
# Report from Robert Boehne.
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_PROG_CXX
: > doe.C
: > jane.C
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
-$FGREP 'jane$U' Makefile.in && exit 1
-$FGREP 'doe$U' Makefile.in || exit 1
+$FGREP 'jane$U' Makefile.in && Exit 1
+$FGREP 'doe$U' Makefile.in || Exit 1
-exit 0
+Exit 0
# Make sure automake sees AC_PROG_CXXCPP. From Garth Corral.
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_PROG_CXXCPP
: > Makefile.am
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
grep '^CXXCPP' Makefile.in
# Test to make sure LIBOBJS and C++ sources work right.
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_PROG_CXX
: > doe.C
: > jane.C
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
grep CC Makefile.in
# Test to make sure C++ linker is used when appropriate.
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_PROG_CC
: > lava.c
: > lamp.cxx
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
# Look for this macro not at the beginning of any line; that will have
# to be good enough for now.
# Test to make sure pure C++ sources don't include C-specific code.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
$ACLOCAL
$AUTOMAKE
-$FGREP '(CC)' Makefile.in && exit 1
-exit 0
+$FGREP '(CC)' Makefile.in && Exit 1
+Exit 0
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Make sure C++ files are rewritten to ".o" and not just "o".
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_PROG_CXX
: > doe.C
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
$FGREP 'doe.$(OBJEXT)' Makefile.in
# Test basic Cygwin32 functionality.
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_PROG_CC
: > www.c
: > xtra.c
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
-grep '^CYGWIN' Makefile.in && exit 1
+grep '^CYGWIN' Makefile.in && Exit 1
grep 'EXEEXT' Makefile.in
# Test to make sure `-' can be used in path.
# Report from Matthew D. Langston.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > Makefile.am << 'END'
include Make-lang
: > Make-lang
-$ACLOCAL || exit 1
+$ACLOCAL || Exit 1
$AUTOMAKE
;;
esac
+# We use a trap below for cleanup. This requires us to go through
+# hoops to get the right exit status transported through the signal.
+# So use `Exit STATUS' instead of `exit STATUS' inside of the tests.
+# Turn off errexit here so that we don't trip the bug with OSF1/Tru64
+# sh inside this function.
+Exit ()
+{
+ set +e
+ (exit $1)
+ exit $1
+}
+
curdir=`pwd`
testSubDir=$me.dir
chmod -R u+rwx $testSubDir > /dev/null 2>&1
exit $exit_status
' 0
for signal in 1 2 13 15; do
- trap 'signal='$signal'; { (exit 1); exit 1; }' $signal
+ trap 'signal='$signal'; { Exit 1; }' $signal
done
signal=0
# Copy in some files we need.
for file in install-sh missing depcomp; do
- cp "$srcdir/../lib/$file" "$testSubDir/$file" || exit 1
+ cp "$srcdir/../lib/$file" "$testSubDir/$file" || Exit 1
done
cd ./$testSubDir
fi
done
case $required in
- *libtool* ) test $libtool_found = yes || exit 77 ;;
- *gettext* ) test $gettext_found = yes || exit 77 ;;
+ *libtool* ) test $libtool_found = yes || Exit 77 ;;
+ *gettext* ) test $gettext_found = yes || Exit 77 ;;
esac
# Libtool cannot cope with spaces in the build tree. Our testsuite setup
# cannot cope with spaces in the source tree name for Libtool and gettext
# tests.
case $srcdir,`pwd` in
- *\ * | *\ *) exit 77 ;;
+ *\ * | *\ *) Exit 77 ;;
esac
ACLOCAL="$ACLOCAL -Wno-syntax -I $srcdir/../m4 $extra_includes -I $aclocaldir"
;;
$AUTOMAKE ${1+"$@"} >stdout 2>stderr || exitcode=$?
cat stderr
cat stdout
- test $exitcode = $expected_exitcode || exit 1
+ test $exitcode = $expected_exitcode || Exit 1
}
# AUTOMAKE_fails [options...]
# Make sure aclocal picks up on all macro definitions.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > acinclude.m4 << 'END'
AC_DEFUN([AM_FUNC_TWO])
# Make sure we don't mistake a macro definition for an invocation.
# From Jim Meyering.
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
dnl if buggy this will require getloadavg.c
: > memcmp.c
-$ACLOCAL || exit 1
+$ACLOCAL || Exit 1
$AUTOMAKE
# Test to make sure dejagnu tests and automake-style tests can coexist.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > Makefile.am << 'END'
AUTOMAKE_OPTIONS = dejagnu
: > frob.test
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
grep '^check-TESTS' Makefile.in
grep '^check-DEJAGNU' Makefile.in
# Make sure we don't override the user's site.exp rule.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Check that the DejaGnu rules work for a simple program and test case.
required=runtest
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Ensure that the envvar RUNTESTFLAGS is used.
# Report from Mark Mitchell.
-RUNTESTFLAGS=--unknown-option $MAKE check && exit 1
-exit 0
+RUNTESTFLAGS=--unknown-option $MAKE check && Exit 1
+Exit 0
# Also check PR 488: Failure of the first of several tools tested.
required=runtest
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
mv thammer hammer
chmod +x hammer
-$MAKE check && exit 1
+$MAKE check && Exit 1
:
# the package by default.
required=runtest
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Check that "make check" fails, when a DejaGnu test fails.
required=runtest
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
./configure
-$MAKE check && exit 1
+$MAKE check && Exit 1
test -f faildeja.log
test -f faildeja.sum
$FGREP 'FAIL: test' faildeja.sum
# (to detect TCL errors) on a file with TCL errors.
required=runtest
-. ./defs || exit 1
+. ./defs || Exit 1
# Check whether DejaGnu supports --status
-runtest --help | $FGREP -e --status || exit 77
+runtest --help | $FGREP -e --status || Exit 77
cat > failtcl << 'END'
#! /bin/sh
./configure
-$MAKE check && exit 1
+$MAKE check && Exit 1
test -f failtcl.log
test -f failtcl.sum
$FGREP 'missing close-brace' failtcl.sum
# Test to make sure dependencies work when required macro is part of
# autoconf.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test to make sure depcomp is installed and found properly
# when required for multiple directories
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT
: > subdir/foo.c
: > subdir2/foo.c
-$ACLOCAL || exit 1
-$AUTOMAKE --add-missing || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE --add-missing || Exit 1
# There used to be a bug where this was created in the first subdir with C
# sources in it instead of in $top_srcdir or $ac_auxdir
-test -f depcomp || exit 1
+test -f depcomp || Exit 1
# From Pavel Roskin.
required=gcc
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT(subdir/foo.c)
CFLAGS=
export CFLAGS
-$ACLOCAL || exit 1
-$AUTOMAKE --add-missing || exit 1
-$AUTOCONF || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE --add-missing || Exit 1
+$AUTOCONF || Exit 1
./configure CC='gcc' 2>error.log
test -z "`cat error.log`"
# Make sure dashmstdout generates dependencies.
required='gcc'
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test for PR 385: makedepend doesn't work with Libtool.
required='libtoolize gcc makedepend'
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
./configure am_cv_CC_dependencies_compiler_type=makedepend
$MAKE >output 2>&1
cat output
-grep 'unknown directive' output && exit 1
+grep 'unknown directive' output && Exit 1
$MAKE grepdeps
# Check icc's dependency mode.
required='icc'
-. ./defs || exit 1
+. ./defs || Exit 1
# Automake supports icc since version 7.0 through a dedicated depcomp mode.
# icc 8.0 and greater understand gcc options, so depmode is set to gcc.
# Check dependency generation (non libtool case).
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
cd sub2
$sleep
echo 'choke me' > sub3/ba3.h
- if $MAKE; then exit 1; fi
+ if $MAKE; then Exit 1; fi
fi
:
# Check dependency generation (libtool case).
required='libtoolize'
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
cd sub2
$sleep
echo 'choke me' > sub3/ba3.h
- if $MAKE; then exit 1; fi
+ if $MAKE; then Exit 1; fi
cd ..
fi
# Make sure depcomp is found for the distribution.
# From Eric Magnien.
-. ./defs || exit 1
+. ./defs || Exit 1
rm -f configure.in
# In some cases the auto-dependency can get confused and try
# to `-include' a directory (if a backslash-newline appears in _SOURCES).
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Report from Robert Boehne
required=gcc
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT(hello.c)
# Test _DEPENDENCIES variable. From Lee Iverson.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT
TerraVision_DEPENDENCIES = $(DEPS)
END
-$ACLOCAL || exit 1
+$ACLOCAL || Exit 1
$AUTOMAKE
# Check that dependencies are included when there are many header files.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# It will only work for non-root users.
required='ro-dir'
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
$AUTOCONF
$AUTOMAKE -a
./configure
-$MAKE distcheck && exit 1
+$MAKE distcheck && Exit 1
:
# Automake should flag them as errors.
# For PR/294
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Check dirlist support.
# This test relies on m4/dirlist
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# there should be no m4_include in aclocal.m4, even tho m4/dirlist contains
# `./dirlist-test' as a relative directory. Only -I directories are subject
# to file inclusion.
-grep m4_include aclocal.m4 && exit 1
+grep m4_include aclocal.m4 && Exit 1
grep 'GUILE-VERSION' configure
# This bug can occur only when we do a VPATH build of Automake
# (because of the `-I' passed to aclocal in tests/defs/aclocal.in) but
# it's OK because VPATH builds are done by `make distcheck'.
-grep 'I should not be included' configure && exit 1
+grep 'I should not be included' configure && Exit 1
:
# Check dirlist globbing support.
# This test relies on m4/dirlist
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# there should be no m4_include in aclocal.m4, even tho m4/dirlist contains
# `./dirlist-test' as a relative directory. Only -I directories are subject
# to file inclusion.
-grep m4_include aclocal.m4 && exit 1
+grep m4_include aclocal.m4 && Exit 1
grep 'GUILE-VERSION' configure
grep 'foo bar baz' configure
# Test to make sure LIBOBJS file cannot be mentioned explicitly.
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_PROG_RANLIB
: > fsusage.c
-$ACLOCAL || exit 1
-$AUTOMAKE 2>&1 | $FGREP fsusage.c || exit 1
-exit 0
+$ACLOCAL || Exit 1
+$AUTOMAKE 2>&1 | $FGREP fsusage.c || Exit 1
+Exit 0
# Test to make sure that depcomp and compile are added to DIST_COMMON
# From Pavel Roskin.
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_PROG_CC
rm -f compile depcomp
-$ACLOCAL || exit 1
-$AUTOMAKE --add-missing || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE --add-missing || Exit 1
-test -f compile || exit 1
-test -f depcomp || exit 1
+test -f compile || Exit 1
+test -f depcomp || Exit 1
sed -n -e '/^DIST_COMMON =.*\\$/ {
:loop
t loop
p
n
- }' -e '/^DIST_COMMON =/ p' Makefile.in | grep compile || exit 1
+ }' -e '/^DIST_COMMON =/ p' Makefile.in | grep compile || Exit 1
sed -n -e '/^DIST_COMMON =.*\\$/ {
:loop
t loop
p
n
- }' -e '/^DIST_COMMON =/ p' Makefile.in | grep depcomp || exit 1
+ }' -e '/^DIST_COMMON =/ p' Makefile.in | grep depcomp || Exit 1
# Test to make sure that non-existing common files are distributed
# if they are buildable.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Should not warn about missing README, since it is a target.
$AUTOMAKE --add-missing --gnu >stdout 2>&1
cat stdout
-grep README stdout && exit 1
+grep README stdout && Exit 1
sed -n -e '/^DIST_COMMON =.*\\$/ {
:loop
# test with a Makefile in the directory.
# Also make sure that README appears first in DIST_COMMON.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# a Makefile in that directory. distcom4.test performs the same
# test without Makefile in the directory.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# This is similar to distcom2.test, but with --no-force added.
# Report from Scott James Remnant (Debian #206299).
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test to make sure that Automake complains when an auxfile (here depcomp)
# is installed, but the Makefile tht distributes it is not processed.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT(subdir/foo.c)
# EXTRA_DIST = ./joe
# does not work portably: it fails with HP-UX and Tru64 make.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
../configure
$MAKE distdir
# Check to make sure `foo' isn't made in build directory.
-test -d foo && exit 1
+test -d foo && Exit 1
rm -rf distdir-1.0
# Remove the dot from VERSION for the next grep.
# Make sure no `./' appear in the directory names. srcdir is `..', so
# this also checks that no directory is created in the source tree.
-grep 'MKDIR_P.*\.' make.log && exit 1
+grep 'MKDIR_P.*\.' make.log && Exit 1
cd ..
./configure --prefix "`pwd`"
$MAKE distcheck
-exit 0
+Exit 0
# Test of names in tar file.
# From Rainer Orth
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT(a.c)
$MAKE dist
gunzip nonesuch-0.23.tar.gz
-(tar tf nonesuch-0.23.tar | $FGREP './nonesuch-0.23/a.c') && exit 1
-exit 0
+(tar tf nonesuch-0.23.tar | $FGREP './nonesuch-0.23/a.c') && Exit 1
+Exit 0
# Require GNU make for this test. SunOS Make does not support
# `$$' in a target or a dependency (it outputs the empty string instead).
required=GNUmake
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test to make sure listing a program twice is ok.
# Report from Manu Rouat.
-. ./defs || exit 1
+. ./defs || Exit 1
echo AC_PROG_CC >> configure.in
bin_PROGRAMS = spice nutmeg help sconvert multidec nutmeg
END
-$ACLOCAL || exit 1
+$ACLOCAL || Exit 1
$AUTOMAKE
# Make sure aclocal only warns about definitions overridden by acinclude.m4.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test to make sure line numbers are correct in some error reports.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test for bug where if the list of installables is empty, invalid sh
# code is generated.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test to make sure empty _SOURCES suppresses assumption about default
# name. Report from Pavel Roskin.
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_PROG_CC
pavel_SOURCES =
END
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
-grep 'pavel\.[co]' Makefile.in && exit 1
-exit 0
+grep 'pavel\.[co]' Makefile.in && Exit 1
+Exit 0
# A test for missing _SOURCES variable.
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_PROG_CC
bin_PROGRAMS = pavel
END
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
grep 'pavel\.[co]' Makefile.in
# Test to make sure empty _SOURCES works.
# From Paul Berrevoets.
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_PROG_CC
zoo_LDADD = $(zoo_DEPENDENCIES)
END
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
-$FGREP zoo. Makefile.in && exit 1
-exit 0
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
+$FGREP zoo. Makefile.in && Exit 1
+Exit 0
# Check to make sure new extended directory mechanism works.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > Makefile.am << 'EOF'
htmldir = $(prefix)/html
pkgdata_DATA = qbert
EOF
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
grep '^DATA' Makefile.in | grep html
# Test to make sure undefined directories are invalid.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
$ACLOCAL
AUTOMAKE_fails
-grep 'pkgdatadir' stderr && exit 1
+grep 'pkgdatadir' stderr && Exit 1
grep 'Makefile.am:1:.*quuzdir.*undefined' stderr
# Test to make sure pkgdatadir can be overridden via AC_SUBST.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Also make sure the old definitions of bin_PROGRAMS and friend
# aren't left around. Report from Jim Meyering.
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_PROG_CC
test `grep '^bin_PROGRAMS =' Makefile.in | wc -l` = 1
# Make sure $(EXEEXT) gets stripped before canonicalization.
-grep 'maude3__EXEEXT__OBJECTS' Makefile.in && exit 1
+grep 'maude3__EXEEXT__OBJECTS' Makefile.in && Exit 1
./configure
# Make sure no-exeext option works.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Make sure we can override a program rule.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Make sure $(EXEEXT) is appended to programs and to tests that are
# programs, but not to @substitutions@.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test to make sure EXTRA_..._SOURCES actually works.
# Bug report from Henrik Frystyk Nielsen.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test to make sure extensions are set correctly for various languages.
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_PROG_F77
foo_SOURCES = 1.f 2.for 3.f90 4.f95 5.F 6.F90 7.F95 8.r 9.m 10.upc
END
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
for ext in f for f90 f95 F F90 F95 r m upc
do
- grep "^$ext\.o:" Makefile.in && exit 1
+ grep "^$ext\.o:" Makefile.in && Exit 1
done
-exit 0
+Exit 0
# targets should always be generated. However, they should not be
# built by default.
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_PROG_CC
EXTRA_PROGRAMS = zardoz
END
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
-grep "^zardoz" Makefile.in || exit 1
+grep "^zardoz" Makefile.in || Exit 1
# Can't have EXTRA clean rules.
-grep 'clean.*EXTRA' Makefile.in && exit 1
-exit 0
+grep 'clean.*EXTRA' Makefile.in && Exit 1
+Exit 0
# Check to make sure EXTRA_foo_SOURCES not defined unnecessarily.
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_PROG_CC
bin_PROGRAMS = foo
END
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
-grep EXTRA_foo_SOURCES Makefile.in && exit 1
-exit 0
+grep EXTRA_foo_SOURCES Makefile.in && Exit 1
+Exit 0
# Check to make sure EXTRA_DATA not required.
-. ./defs || exit 1
+. ./defs || Exit 1
echo 'AC_SUBST(CODICIL)' >> configure.in
sysconf_DATA = @CODICIL@
END
-$ACLOCAL || exit 1
+$ACLOCAL || Exit 1
$AUTOMAKE
# Check to make sure EXTRA_DATA can be specified.
-. ./defs || exit 1
+. ./defs || Exit 1
echo 'AC_SUBST(CODICIL)' >> configure.in
EXTRA_DATA = codicil.txt
END
-$ACLOCAL || exit 1
+$ACLOCAL || Exit 1
$AUTOMAKE
# Check to make sure EXTRA_DIST can contain a directory from $buildir.
# From Dean Povey.
-. ./defs || exit 1
+. ./defs || Exit 1
echo AC_OUTPUT >> configure.in
# Check to make sure EXTRA_DIST can contain a directory or
# a subdirectory, in $(builddir) or $(srcdir).
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# $(srcdir)/X and ./X, with the files from the later overriding the
# files from the former.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Make sure programs with only Fortran 90 source are handled properly.
# (copied from fonly.test) Mike Nolta <mrnolta@princeton.edu>
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_PROG_FC
: > zardoz.f90
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
grep 'zardoz.f90' Makefile.in
# Make sure `AC_F77_LIBRARY_LDFLAGS' works properly.
# Matthew D. Langston <langston@SLAC.Stanford.EDU>
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_PROG_F77
: > zardoz.f
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
grep '@FLIBS@' Makefile.in
# Check the filename-length-max=99 option.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
(for i in 1 2 3 4 5 6 7 8 9
do
- mkdir -p 12345678 || exit 77
+ mkdir -p 12345678 || Exit 77
cd 12345678
touch x
-done) || exit 77
+done) || Exit 77
$ACLOCAL
$AUTOCONF
(for i in 1 2 3 4 5 6 7 8 9 10 11
do
- mkdir -p 12345678 || exit 77
+ mkdir -p 12345678 || Exit 77
cd 12345678
touch x
-done) || exit 77
+done) || Exit 77
-$MAKE dist 2>stderr && exit 1
+$MAKE dist 2>stderr && Exit 1
cat stderr
grep 'filenames are too long' stderr
test 2 = `grep 12345678 stderr | wc -l`
# PR 507: Check the filename-length-max=99 option
# in conjunction with AC_CONFIG_SUBDIRS.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
SUBDIRS = ${subdirname}
END
-mkdir ${subdirname} || exit 1
+mkdir ${subdirname} || Exit 1
cat >> ${subdirname}/configure.in <<EOF
AC_INIT([${subdirname}], [1.0])
(cd ${subdirname}; for i in 1 2 3 4 5 6 7 8
do
- mkdir -p 12345678 || exit 77
+ mkdir -p 12345678 || Exit 77
cd 12345678
touch x
done)
for init_dir in ${subdirname} .; do
(
- cd ${init_dir} || exit 1
+ cd ${init_dir} || Exit 1
$ACLOCAL
$AUTOCONF
$AUTOMAKE
- ) || exit 1
+ ) || Exit 1
done
./configure
$MAKE distcheck
(cd ${subdirname}; for i in 1 2 3 4 5 6 7 8 9
do
- mkdir -p 12345678 || exit 77
+ mkdir -p 12345678 || Exit 77
cd 12345678
touch x
done)
-$MAKE dist 2>stderr && exit 1
+$MAKE dist 2>stderr && Exit 1
cat stderr
grep 'filenames are too long' stderr
test 1 = `grep 12345678 stderr | wc -l`
# C-specific code.
# Matthew D. Langston <langston@SLAC.Stanford.EDU>
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_PROG_F77
: > doe.f
: > jane.f
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
-grep '[^F]CC' Makefile.in | grep -v MKDEP && exit 1
-exit 0
+grep '[^F]CC' Makefile.in | grep -v MKDEP && Exit 1
+Exit 0
# Make sure Fortran 77 files are rewritten to ".o" and not just "o".
# Matthew D. Langston <langston@SLAC.Stanford.EDU>
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_PROG_F77
: > doe.f
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
$FGREP 'doe.$(OBJEXT)' Makefile.in
# Make sure programs with only Fortran 77 source are handled properly.
# Matthew D. Langston <langston@SLAC.Stanford.EDU>
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_PROG_F77
: > zardoz.f
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
grep 'zardoz.f' Makefile.in
# Test that Automake suggests using AC_PROG_F77/FC if Fortran sources
# are used.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Cf. fort1.test and link_f90_only.test.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
$AUTOMAKE
# The following tests aren't fool-proof, but they don't
# need a Fortran compiler.
-grep '.\$(LINK)' Makefile.in && exit 1
+grep '.\$(LINK)' Makefile.in && Exit 1
grep '.\$(FCLINK)' Makefile.in
grep '.\$(FCCOMPILE)' Makefile.in > stdout
-grep -v '\$(FCFLAGS_f' stdout && exit 1
-grep '.\$(FC.*\$(FCFLAGS_blabla' Makefile.in && exit 1
+grep -v '\$(FCFLAGS_f' stdout && Exit 1
+grep '.\$(FC.*\$(FCFLAGS_blabla' Makefile.in && Exit 1
# Notice the TAB:
grep '^[ ].*\$(FC.*\$(FCFLAGS_f90).*\.f90' Makefile.in
grep '^[ ].*\$(FC.*\$(FCFLAGS_f95).*\.f95' Makefile.in
grep '^[ ].*\$(FC.*\$(FCFLAGS_f03).*\.f03' Makefile.in
grep '^[ ].*\$(FC.*\$(FCFLAGS_f08).*\.f08' Makefile.in
-grep '^[ ].*\$(FC.*\$(FCFLAGS_f90).*\.f95' Makefile.in && exit 1
-grep '^[ ].*\$(FC.*\$(FCFLAGS_f95).*\.f90' Makefile.in && exit 1
-grep '^[ ].*\$(FC.*\$(FCFLAGS_f90).*\.f03' Makefile.in && exit 1
-grep '^[ ].*\$(FC.*\$(FCFLAGS_f08).*\.f90' Makefile.in && exit 1
+grep '^[ ].*\$(FC.*\$(FCFLAGS_f90).*\.f95' Makefile.in && Exit 1
+grep '^[ ].*\$(FC.*\$(FCFLAGS_f95).*\.f90' Makefile.in && Exit 1
+grep '^[ ].*\$(FC.*\$(FCFLAGS_f90).*\.f03' Makefile.in && Exit 1
+grep '^[ ].*\$(FC.*\$(FCFLAGS_f08).*\.f90' Makefile.in && Exit 1
:
# For now, require the GNU compilers (to avoid some Libtool/Autoconf
# issues).
required='g77 gfortran'
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
$ACLOCAL
$AUTOMAKE
# The Fortran 77 linker should be preferred:
-grep '.\$(FCLINK)' Makefile.in && exit 1
+grep '.\$(FCLINK)' Makefile.in && Exit 1
$AUTOCONF
-# configure may exit 77 if no compiler is found,
+# configure may Exit 77 if no compiler is found,
# or if the compiler cannot compile Fortran 90 files).
./configure
$MAKE
# For now, require the GNU compilers (to avoid some Libtool/Autoconf
# issues).
required='libtoolize g77 gfortran'
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# This test requires Libtool >= 2.0. Earlier Libtool does not
# have the LT_PREREQ macro to cause autoconf failure, so let's
# skip in this case:
-grep LT_PREREQ configure && exit 77
+grep LT_PREREQ configure && Exit 77
-# configure may exit 77 if no compiler is found,
+# configure may Exit 77 if no compiler is found,
# or if the compiler cannot compile Fortran 90 files).
./configure
$MAKE
# Test to make sure dependency tracking doesn't interfere with Fortran.
# For PR 75.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT(foo, 1.0, martin@tropos.de)
: > foo.f
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
-grep 'foo\.Po' Makefile.in && exit 1
-exit 0
+grep 'foo\.Po' Makefile.in && Exit 1
+Exit 0
# Test to make sure "reversed" order of AC_PROG_INSTALL and
# AC_PROG_INSTALL is not buggy.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT
bin_SCRIPTS = zot
END
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
# Test for bug reported by Thomas Morgan. If both AC_PROG_INSTALL and
# AC_PROG_INSTALL appear in configure.in, bad error results.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT
bin_SCRIPTS = zot
END
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
# Test of compiled java.
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
_AM_DEPENDENCIES(GCJ)
convert_SOURCES = x/y/convert.java
END
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
grep '^x/y/convert' Makefile.in
# Make sure `..' invalid in subdir .o's.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Make sure dependency tracking works for java.
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
_AM_DEPENDENCIES(GCJ)
convert_SOURCES = x/y/convert.java
END
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
num=`grep depcomp Makefile.in | wc -l`
test $num -gt 1
# Make sure dependency tracking works for Java.
required=gcj
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AM_PROG_GCJ
# Make sure Automake suggests AM_PROG_GCJ when GCJ is needed.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Automake --help, and --version should have priority over any other option
-# so that their `exit 0' is coherent.
+# so that their `Exit 0' is coherent.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# ... but this should not.
AUTOMAKE_run 0 -Wnonexistent --help
-grep ':.*nonexistent' stderr && exit 1
+grep ':.*nonexistent' stderr && Exit 1
# Similarly, this should fail ...
# ... but this should not.
AUTOMAKE_run 0 --nonexistent --help
-grep ':.*nonexistent' stderr && exit 1
+grep ':.*nonexistent' stderr && Exit 1
:
# Check gettext support.
required='gettext'
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# PR/338, reported by Charles Wilson.
required='gettext'
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Don't try running ./configure --with-included-gettext if the
# user is using AM_GNU_GETTEXT([external]).
-grep 'with-included-gettext' Makefile.in && exit 1
+grep 'with-included-gettext' Makefile.in && Exit 1
:
# intl/ isn't wanted with AM_GNU_GETTEXT([external]).
# Check gettext `AM_GNU_GETTEXT_INTL_SUBDIR' support.
required='gettext'
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# if aclocal fails, assume the gettext macros are too old and do not
# define AM_GNU_GETTEXT_INTL_SUBDIR.
-$ACLOCAL || exit 77
+$ACLOCAL || Exit 77
# config.rpath is required.
: >config.rpath
# Test to ensure --gnits version checking is correct.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test to ensure std-options checking is correct.
required=gcc
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_PROG_CC
$AUTOCONF
$AUTOMAKE -a
-grep README-alpha Makefile.in && exit 1
+grep README-alpha Makefile.in && Exit 1
mkdir build
cd build
# Check that AM_INSTALLCHECK_STD_OPTIONS_EXEMPT works.
required=gcc
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_PROG_CC
# Report from Braden McDaniel.
required=GNUmake
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Check that Automake warns about user variables being overridden.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
grep 'Makefile.am:1:.*CFLAGS' stderr
grep 'Makefile.am:2:.*LDFLAGS' stderr
# No reason to warn about CXXFLAGS since it's not used.
-grep CXXFLAGS stderr && exit 1
+grep CXXFLAGS stderr && Exit 1
# Don't warn if -Wno-gnu.
$AUTOMAKE -Wnone --gnu -Wno-gnu
# Check diagnostics about no-installman being disallowed in `gnu'.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test for PR 68.
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_SUBST(MY_HEADERS)
: > joe.c
: > qq.h
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
-grep '[^@]MY_HEADERS' Makefile.in && exit 1
-exit 0
+grep '[^@]MY_HEADERS' Makefile.in && Exit 1
+Exit 0
# Make sure --help and --version work, even when no configure.ac
# is in the current directory.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
$AUTOMAKE --help
# aclocal and automake cannot work without configure.ac or configure.in
-$ACLOCAL 2>stderr && exit 1
+$ACLOCAL 2>stderr && Exit 1
grep configure.ac stderr
grep configure.in stderr
AUTOMAKE_fails
# those cases.
# From Norman Gray.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test to make sure implicit .o's are listed as appropriate. Report
# from Henrik Frystyk Nielsen.
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_PROG_CC
noinst_PROGRAMS = libapp_1
END
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
grep '^libapp_1_OBJECTS' Makefile.in | $FGREP '.$(OBJEXT)'
# Test to make sure header vars defined only once when including.
# Report from Marcus G. Daniels.
-. ./defs || exit 1
+. ./defs || Exit 1
echo AC_OUTPUT >> configure.in
: > foo
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
len="`grep '^srcdir' Makefile.in | wc -l`"
echo "len = $len"
-test $len -eq 1 || exit 1
+test $len -eq 1 || Exit 1
# Also make sure include file is distributed.
(sed -n -e '/^DIST_COMMON =.*\\$/ {
# Make sure included files in parent directory are distributed.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test to make sure info files are distributed correctly.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > Makefile.am << 'END'
info_TEXINFOS = foo.texi
echo '@setfilename foo.info' > foo.texi
: > texinfo.tex
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
for i in `grep '^INFOS =' Makefile.in | sed -e 's/^INFOS = //'`; do
echo $i
foo*)
;;
*)
- exit 1
+ Exit 1
;;
esac
done
# Make sure we give a sensible error message when neither AC_INIT nor
# AM_INIT_AUTOMAKE are given arguments.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
END
# The error message should mension AC_INIT, not AC_PACKAGE_VERSION.
-($ACLOCAL && $AUTOCONF) 2>stderr && exit 1
+($ACLOCAL && $AUTOCONF) 2>stderr && Exit 1
cat stderr
-grep AC_PACKAGE_VERSION stderr && exit 1
+grep AC_PACKAGE_VERSION stderr && Exit 1
grep AC_INIT stderr
# Test for bug where install-sh not included in distribution.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > Makefile.am << 'END'
pkgdata_DATA =
@echo $(DISTFILES)
END
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
$FGREP -v @SET_MAKE@ Makefile.in > Makefile.sed
$MAKE -s -f Makefile.sed SHELL=$SHELL magic | grep install-sh
# From Pavel Roskin.
required=gzip
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
cat > configure.in << 'END'
chmod 000 Makefile.am
# On some systems (like DOS and Windows), files are always readable.
-test ! -r Makefile.am || exit 77
+test ! -r Makefile.am || Exit 77
./configure
# `dist' should fail because we can't copy Makefile.am.
if $MAKE dist; then
- exit 1
+ Exit 1
else
- exit 0
+ Exit 0
fi
# Test for PR 203.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test to see if defining INSTALL_DATA causes problems. From EGCS
# list.
-. ./defs || exit 1
+. ./defs || Exit 1
echo 'AC_SUBST(INSTALL_DATA)' >> configure.in
: > Makefile.am
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
-(grep '^DATA =' Makefile.in | grep INSTALL_DATA) && exit 1
-exit 0
+(grep '^DATA =' Makefile.in | grep INSTALL_DATA) && Exit 1
+Exit 0
# Test that installing under $exec_prefix is handled by install-exec.
# Testing with headers for instance.
-. ./defs || exit 1
+. ./defs || Exit 1
cat >Makefile.am << 'EOF'
# User directories.
EOF
set -e
-$ACLOCAL || exit 1
+$ACLOCAL || Exit 1
$AUTOMAKE
# install-SCRIPTS targets.
diff expected produced
-exit 0
+Exit 0
# Test for this bug: when a Makefile.am builds nothing, no
# install-exec target is generated.
-. ./defs || exit 1
+. ./defs || Exit 1
: > Makefile.am
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
grep '^install-exec:' Makefile.in
# Make sure the install-exec-hook example we give in the manual works.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Make sure the MKDIR_P invocation is correct in install-man
# target. Bug reported by Gordon Irlam <gordoni@cygnus.com>.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test to make sure mkinstalldirs invocation correct in install-man
# target. Bug reported by Gordon Irlam <gordoni@cygnus.com>.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > Makefile.am << 'EOF'
man8_MANS = frob.8
: > frob.8
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
grep '^install-man' Makefile.in
# automake: Makefile.am: required file "../../install-sh" not found; installing
# This also makes sure that install-sh is created in the correct directory.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Only one `/' should appear in the output.
cat output
-grep '/.*/' output && exit 1
+grep '/.*/' output && Exit 1
test -f install-sh
# Various install-sh checks
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Basic errors
-./install-sh && exit 1
-./install-sh -m 644 dest && exit 1
+./install-sh && Exit 1
+./install-sh -m 644 dest && Exit 1
# Directories
./install-sh -T x d3/y
test -f x
test -f d3/y
-./install-sh -T x d3 && exit 1
-./install-sh -T x d4// && exit 1
+./install-sh -T x d3 && Exit 1
+./install-sh -T x d4// && Exit 1
# Ensure that install-sh works with names that include spaces
touch 'a b'
# More install-sh checks: check -C.
required=non-root
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Solaris /usr/ucb/touch does not accept -t.
-touch -t $old_timestamp foo || exit 77
+touch -t $old_timestamp foo || Exit 77
./install-sh -d d1
required='gcc'
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
esac
# Make sure this system supports this character in file names.
- mkdir sub1 "./$file" || exit 77
+ mkdir sub1 "./$file" || Exit 77
cd "$build"
esac
done
-exit $fail
+Exit $fail
# Test to make sure variable interpolation works.
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_PROG_CC
qqq_SOURCES = $(s1)
END
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
$FGREP 'z.$(OBJEXT)' Makefile.in
# Test to make sure variable interpolation doesn't break other
# features. Report from Joel N. Weber, II.
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_PROG_CC
x_LDADD = $(X_EXTRA_LIBS)
END
-$ACLOCAL || exit 1
+$ACLOCAL || Exit 1
$AUTOMAKE
# Minimal test of Java functionality.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# no classes to compile.
# Report from Braden McDaniel.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# there are none.
# Report from Johannes Nicolai (PR/441).
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test to make sure JAVA variable can be defined.
-. ./defs || exit 1
+. ./defs || Exit 1
echo 'AC_SUBST(JAVA)' >> configure.in
java_JAVA = a.java b.java c.java
END
-$ACLOCAL || exit 1
+$ACLOCAL || Exit 1
$AUTOMAKE
# Test to make sure redefining JAVAC works.
-. ./defs || exit 1
+. ./defs || Exit 1
echo 'AC_SUBST(JAVAC)' >> configure.in
java_JAVA = a.java b.java c.java
END
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
grep 'JAVAC.*@JAVAC@' Makefile.in
# Check to make sure incorrect LDADD usage is diagnosed.
required=libtool
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_PROG_CC
: > config.sub
: > q.c
-$ACLOCAL || exit 1
-$AUTOMAKE 2>&1 | grep LDADD || exit 1
-exit 0
+$ACLOCAL || Exit 1
+$AUTOMAKE 2>&1 | grep LDADD || Exit 1
+Exit 0
# Check for LDFLAGS in conditional.
# PR 77.
required=libtool
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_PROG_CC
: > config.sub
: > q.c
-$ACLOCAL || exit 1
+$ACLOCAL || Exit 1
$AUTOMAKE
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test to make sure that lex source generates correct clean rule.
# From Ralf Corsepius.
-$FGREP joel Makefile.in && exit 1
+$FGREP joel Makefile.in && Exit 1
:
# Make sure that Automake suggest using AM_PROG_LEX when a lexer is used.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# From Matthew D. Langston.
required='gcc gzip flex GNUmake'
-. ./defs || exit 1
+. ./defs || Exit 1
# Ignore user CFLAGS.
CFLAGS=
# Test to make sure dependencies work with .ll files.
# Test synthesized from PR automake/6.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test for subdir lexers.
required='gcc GNUmake gzip flex'
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
test -f foo/foo2.c
test -f foo/foo2.o
-exit 0
+Exit 0
# PROGRAMS and LIBRARIES can be installed in (pkg)libexecdir.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Do not complain about the nonexistence of a source for LIBOBJS if
# it's in BUILT_SOURCES. Reported by Erez Zadok.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# AC_LIBOBJ must allow [] around its argument.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT
: > mountlist.c
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
# Test if a file can be mentioned in LIBOBJS and explicitly.
# (See libobj13.test for the LTLIBRARIES check.)
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
cat >> configure.in << 'END'
# (Like libobj12.test, but for Libtool libraries.)
required='libtoolize'
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
cat >> configure.in << 'END'
# Test to make sure LIBOBJS works in subdirs.
# Bug from Josh MacDonald.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT
: > subdir/fsusage.c
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
grep 'fsusage\.c' subdir/Makefile.in
# Make sure we complain if @LIBOBJS@ is used without being set in configure.in
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test to make sure LIBOBJS error only occurs if LIBOBJS seen. Report
# from Jim Meyering.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > Makefile.am << 'END'
bin_PROGRAMS = foo
AC_REPLACE_FUNCS(foo)
END
-$ACLOCAL || exit 1
+$ACLOCAL || Exit 1
$AUTOMAKE
# Test to make sure AC_REPLACE_FUNCS works across lines. Report from
# Jim Meyering.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > Makefile.am << 'END'
bin_PROGRAMS = joe
: > foo.c
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
$FGREP foo.c Makefile.in
# Test for multiple replacement functions.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT
: > dirname.c
: > strsignal.c
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
sed -n -e ': again
/^DIST_COMMON.*[^\]$/ p
# Test to make sure `_.c' dependencies are generated for LIBOBJS
# objects.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT
: > ansi2knr.1
: > ansi2knr.c
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
grep 'strsignal_.c:' Makefile.in
# Test for _DEPENDENCIES with libraries.
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_PROG_RANLIB
libfoo_a_DEPENDENCIES = libzot.a
END
-$ACLOCAL || exit 1
+$ACLOCAL || Exit 1
$AUTOMAKE
# Make sure Automake suggest using AC_PROG_RANLIB when *_LIBRARIES is used.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Make sure Automake simplify conditions in diagnostics.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
AUTOMAKE_fails
grep '^Makefile.am:.*: !A and !C and !D$' stderr
# Is there only one missing condition?
-test `grep ': !' stderr | wc -l` = 1 || exit 1
+test `grep ': !' stderr | wc -l` = 1 || Exit 1
# Report from Guillermo Ontañón.
required=libtoolize
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
cat >> configure.in << 'END'
# Make sure libtool is removed.
# Report from Kevin Dalley
required=libtool
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_LIBTOOL_DLOPEN
: > config.guess
: > config.sub
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
grep 'rm -f libtool' Makefile.in
# Make sure libtool clean targets exist.
# Report from Eric Magnien.
required=libtoolize
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT
libfoo_la_SOURCES = foo.c
END
-$ACLOCAL || exit 1
+$ACLOCAL || Exit 1
: > ltmain.sh
-$AUTOMAKE -a || exit 1
+$AUTOMAKE -a || Exit 1
grep 'rm -f .*\.lo' sub/Makefile.in
# Also make sure we do not bloat the Makefile with unneeded rules.
required='libtoolize gcc'
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# We need explicit rules to build 1.o and a.lo. Make sure
# Automake did not output additional rules for 1.lo and and a.lo.
$FGREP '1.o:' Makefile.in
-$FGREP '1.lo:' Makefile.in && exit 1
-$FGREP 'a.o:' Makefile.in && exit 1
+$FGREP '1.lo:' Makefile.in && Exit 1
+$FGREP 'a.o:' Makefile.in && Exit 1
$FGREP 'a.lo:' Makefile.in
./configure
# Make sure Automake suggests AC_PROG_LIBTOOL when *_LTLIBRARIES is used.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Report from Harlan Stenn.
required='libtoolize'
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# in different directories. PR/285.
required='libtoolize'
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Also check basic support for AM_LIBTOOLFLAGS/LIBTOOLFLAGS
required='libtoolize gcc'
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Make sure Automake diagnoses conflicting installations.
required='libtoolize'
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
libtoolize
$ACLOCAL
AUTOMAKE_fails --add-missing
-grep libb stderr && exit 1
+grep libb stderr && Exit 1
grep 'Makefile.am:3:.*libc.la.*multiply defined' stderr
grep 'Makefile.am:9:.*`pkglib' stderr
grep 'Makefile.am:2:.*`lib' stderr
# Quite similar to libtool7.test, using AM_LDFLAGS in addition to xxx_LDFLAGS.
required='libtoolize gcc'
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
grep '1BEG: libmod1.la mod2.la :END1' output
grep '2BEG: mod2.la :END2' output
grep '3BEG:.* am_cflags cflags .*lm1_la_ldflags ldflags.* :END3' output
-grep '3BEG: .*am_ldflags.* :END3' output && exit 1
+grep '3BEG: .*am_ldflags.* :END3' output && Exit 1
grep '4BEG: :END4' output
grep '5BEG: :END5' output
grep '6BEG:.* prg2_cflags cflags .*am_ldflags ldflags.* :END6' output
-grep '6BEG: .*am_cflags.* :END6' output && exit 1
+grep '6BEG: .*am_cflags.* :END6' output && Exit 1
$MAKE
# Make sure COPYING is not overwritten, even with -a -f.
required=makeinfo
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test to make sure the C++ linker is used when appropriate.
# Matthew D. Langston <langston@SLAC.Stanford.EDU>
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_PROG_CC
: > lava.c
: > lamp.cxx
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
# We should only see the C++ linker in the rules of `Makefile.in'.
# Look for this macro not at the beginning of any line; that will have
# to be good enough for now.
-grep '.\$(CXXLINK)' Makefile.in || exit 1
+grep '.\$(CXXLINK)' Makefile.in || Exit 1
# We should not see these patterns:
-grep '.\$(FLINK)' Makefile.in && exit 1
-grep '.\$(LINK)' Makefile.in && exit 1
+grep '.\$(FLINK)' Makefile.in && Exit 1
+grep '.\$(LINK)' Makefile.in && Exit 1
-exit 0
+Exit 0
# *_SOURCES
# Richard Boulton <richard@tartarus.org>
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_PROG_CC
: > lava.c
: > lamp.cxx
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
# We should only see the C++ linker in the rules of `Makefile.in'.
# Look for this macro not at the beginning of any line; that will have
# to be good enough for now.
-grep '.\$(CXXLINK)' Makefile.in || exit 1
+grep '.\$(CXXLINK)' Makefile.in || Exit 1
# We should not see these patterns:
-grep '.\$(FLINK)' Makefile.in && exit 1
-grep '.\$(LINK)' Makefile.in && exit 1
+grep '.\$(FLINK)' Makefile.in && Exit 1
+grep '.\$(LINK)' Makefile.in && Exit 1
-exit 0
+Exit 0
# Test to make sure the Fortran 90 linker is used when appropriate.
# (copied from link_f_only.test) Mike Nolta <mrnolta@princeton.edu>
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_PROG_FC
: > lamp.f90
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
# We should only see the Fortran linker in the rules of `Makefile.in'.
# Look for this macro not at the beginning of any line; that will have
# to be good enough for now.
-grep '.\$(FCLINK)' Makefile.in || exit 1
+grep '.\$(FCLINK)' Makefile.in || Exit 1
# We should not see these patterns:
-grep '.\$(CXXLINK)' Makefile.in && exit 1
-grep '.\$(LINK)' Makefile.in && exit 1
+grep '.\$(CXXLINK)' Makefile.in && Exit 1
+grep '.\$(LINK)' Makefile.in && Exit 1
-exit 0
+Exit 0
# Test to make sure the Fortran 77 linker is used when appropriate.
# Matthew D. Langston <langston@SLAC.Stanford.EDU>
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_PROG_F77
: > lamp.f
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
# We should only see the Fortran linker in the rules of `Makefile.in'.
# Look for this macro not at the beginning of any line; that will have
# to be good enough for now.
-grep '.\$(F77LINK)' Makefile.in || exit 1
+grep '.\$(F77LINK)' Makefile.in || Exit 1
# We should not see these patterns:
-grep '.\$(CXXLINK)' Makefile.in && exit 1
-grep '.\$(LINK)' Makefile.in && exit 1
+grep '.\$(CXXLINK)' Makefile.in && Exit 1
+grep '.\$(LINK)' Makefile.in && Exit 1
-exit 0
+Exit 0
# Test to make sure the Fortran 77 linker is used when appropriate.
# Matthew D. Langston <langston@SLAC.Stanford.EDU>
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_PROG_CC
: > lava.c
: > lamp.f
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
# We should only see the Fortran 77 linker in the rules of
# Look for this macro not at the beginning of any line; that will have
# to be good enough for now.
-grep '.\$(F77LINK)' Makefile.in || exit 1
+grep '.\$(F77LINK)' Makefile.in || Exit 1
# We should not see these patterns:
-grep '.\$(LINK)' Makefile.in && exit 1
-grep '.\$(CXXLINK)' Makefile.in && exit 1
+grep '.\$(LINK)' Makefile.in && Exit 1
+grep '.\$(CXXLINK)' Makefile.in && Exit 1
-exit 0
+Exit 0
# Test to make sure the C++ linker is used when appropriate.
# Matthew D. Langston <langston@SLAC.Stanford.EDU>
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_PROG_CC
: > lamp.cxx
: > lamp2.f
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
# We should only see the C++ linker in the rules of `Makefile.in'.
# Look for this macro not at the beginning of any line; that will have
# to be good enough for now.
-grep '.\$(CXXLINK)' Makefile.in || exit 1
+grep '.\$(CXXLINK)' Makefile.in || Exit 1
# We should not see these patterns:
-grep '.\$(F77LINK)' Makefile.in && exit 1
-grep '.\$(LINK)' Makefile.in && exit 1
+grep '.\$(F77LINK)' Makefile.in && Exit 1
+grep '.\$(LINK)' Makefile.in && Exit 1
-exit 0
+Exit 0
# Test to make sure the C++ linker is used when appropriate.
# Matthew D. Langston <langston@SLAC.Stanford.EDU>
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_PROG_CXX
: > lava.cxx
: > lamp.f
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
# We should only see the C++ linker in the rules of `Makefile.in'.
# Look for this macro not at the beginning of any line; that will have
# to be good enough for now.
-grep '.\$(CXXLINK)' Makefile.in || exit 1
+grep '.\$(CXXLINK)' Makefile.in || Exit 1
# We should not see these patterns:
-grep '.\$(F77LINK)' Makefile.in && exit 1
-grep '.\$(LINK)' Makefile.in && exit 1
+grep '.\$(F77LINK)' Makefile.in && Exit 1
+grep '.\$(LINK)' Makefile.in && Exit 1
-exit 0
+Exit 0
# Make sure that Automake suggest using AM_PATH_LISPDIR to define lispdir.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test that compiling interdependent elisp files works.
required=emacs
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Report from Simon Josefsson.
required=emacs
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# non-bytecompiled *.el files.
required=emacs
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test for conditional _LISP.
required=emacs
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Make sure that lisp_LISP also works when emacs is not installed.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Check the recover rule of lisp_LISP with parallel make.
required='GNUmake emacs'
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test to make sure variable is expanded properly.
# From Adam J. Richter.
required=libtool
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_SUBST(LTLIBOBJS)
: > config.guess
: > config.sub
-$ACLOCAL || exit 1
+$ACLOCAL || Exit 1
$AUTOMAKE
# Test for locations in error messages.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
Makefile.am:6: while processing program `ctags'
EOF
-diff expected observed || exit 1
+diff expected observed || Exit 1
# Long lines should be wrapped.
# Report from Albert Chin.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
$ACLOCAL
$AUTOMAKE
-grep $match Makefile.in && exit 1
+grep $match Makefile.in && Exit 1
grep 'filenameb100 grepme' Makefile.in
# Long lines of += should be wrapped.
# Report from Simon Josefsson.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# This combines two examples from the manual.
required='libtoolize gcc'
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test for bug in conditionals.
required='libtoolize gcc'
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# This example is taken from the manual.
required='libtoolize gcc'
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test to make sure libtool library dependencies are correct.
# Report from Lars J. Aas.
required=libtool
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_PROG_LIBTOOL
: > config.guess
: > config.sub
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
-grep 'OBJECTS =$' Makefile.in && exit 1
-exit 0
+grep 'OBJECTS =$' Makefile.in && Exit 1
+Exit 0
# Test to make sure LTLIBOBJS alone works ok.
# Report from Vadim Zeitlin.
required=libtool
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_SUBST(LTLIBOBJS)
: > config.guess
: > config.sub
-$ACLOCAL || exit 1
+$ACLOCAL || Exit 1
$AUTOMAKE
# Test to make sure a sensible default source for libraries is used.
required='libtool gcc'
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Check support for no-dist-gzip with lzma
required=lzma
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Make sure distclean and maintainer-clean erase the right files.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# From Ralf Corsepius.
required=GNUmake
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT(Makefile.am)
rm -f config.cache
done
-exit 0
+Exit 0
# via autom4te.
required=GNUmake
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test to make sure that automake includes the needed variables,
# but not too many.
-. ./defs || exit 1
+. ./defs || Exit 1
# Find the macros wanted by Automake.
-$ACLOCAL || exit 1
+$ACLOCAL || Exit 1
# Create some dummy Makefile.in.
: > Makefile.am
-$AUTOMAKE || exit 1
+$AUTOMAKE || Exit 1
# We are definitely not needing a compiler or preprocessor.
-$EGREP '^(CC|CPP|CXX|CXXCPP) =' Makefile.in && exit 1
+$EGREP '^(CC|CPP|CXX|CXXCPP) =' Makefile.in && Exit 1
-exit 0
+Exit 0
# Test to make sure `dist' prefix works with man pages.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > Makefile.am << 'END'
dist_man_MANS = foo.1
: > foo.1
: > bar.man
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
grep '^MANS ' Makefile.in
# Make sure that man pages listed in man_MANS are installed and
# renamed as documented.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# PR 516: Prefer generated manpages to distributed ones.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Make sure MAINTAINERCLEANFILES works.
# Report from Paul D. Smith.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > Makefile.am << 'END'
MAINTAINERCLEANFILES = foo
: > FOO
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
grep 'rm -f .*MAINTAINERCLEANFILES' Makefile.in
# Test that mdate-sh is required when Texinfo used and version.texi needed.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > Makefile.am << 'END'
info_TEXINFOS = textutils.texi
# Required when using Texinfo.
: > texinfo.tex
-$ACLOCAL || exit 1
+$ACLOCAL || Exit 1
$AUTOMAKE 2>&1 > /dev/null | grep 'required file.*mdate-sh'
# Test to make sure mdate-sh is included in distribution.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > Makefile.am << 'END'
info_TEXINFOS = textutils.texi
echo '@setfilename textutils' > textutils.texi
# Use "././" to confuse Automake into thinking this is a subdir build.
-$ACLOCAL || exit 1
-$AUTOMAKE ././Makefile || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE ././Makefile || Exit 1
grep 'mdate-sh' Makefile.in | grep -v SHELL
# Test to make sure mdate-sh run correctly.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT([mdate3], [1.0])
mv mkinstalldirs foo
mv depcomp foo
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
-grep '[^/]mdate-sh' Makefile.in && exit 1
-exit 0
+grep '[^/]mdate-sh' Makefile.in && Exit 1
+Exit 0
# Test to make sure that mdate-sh is added to the right directory.
# Report from Kevin Dalley
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT
@setfilename textutils.info
END
-$ACLOCAL || exit 1
-$AUTOMAKE -a || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE -a || Exit 1
test -f sub/mdate-sh
# Test to make sure mdate-sh works correctly.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
cat >> configure.in << 'END'
shift
# Check that mdate output looks like a date:
test $# = 3
-case $1$3 in *[!0-9]*) exit 1;; esac
+case $1$3 in *[!0-9]*) Exit 1;; esac
test $1 -lt 32
# Test missing with version mismatches.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Make sure $MAKE fails when timestamps aren't updated and missing is not used.
$sleep
touch aclocal.m4
-$MAKE && exit 1
+$MAKE && Exit 1
:
# Test missing with version mismatches.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Make sure $MAKE fail when timestamps aren't updated and missing is not used.
$sleep
touch v.m4
-$MAKE && exit 1
+$MAKE && Exit 1
:
# Test missing when running a tool's --version.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# b7cb8259 assumed not to exist.
-./missing b7cb8259 --version 2>stderr && exit 1
-grep . stderr && exit 1
-./missing b7cb8259 --grep 2>stderr && exit 1
+./missing b7cb8259 --version 2>stderr && Exit 1
+grep . stderr && Exit 1
+./missing b7cb8259 --grep 2>stderr && Exit 1
grep WARNING stderr
-./missing --run b7cb8259 --version && exit 1
-./missing --run b7cb8259 --grep 2>stderr && exit 1
+./missing --run b7cb8259 --version && Exit 1
+./missing --run b7cb8259 --grep 2>stderr && Exit 1
grep WARNING stderr
# missing itself it known to exist :)
-./missing ./missing --version 2>stderr && exit 1
-grep . stderr && exit 1
-./missing ./missing --grep 2>stderr && exit 1
+./missing ./missing --version 2>stderr && Exit 1
+grep . stderr && Exit 1
+./missing ./missing --grep 2>stderr && Exit 1
grep WARNING stderr
./missing --run ./missing --version 2>stderr
-grep . stderr && exit 1
-./missing --run ./missing --grep 2>stderr && exit 1
-grep WARNING stderr && exit 1
+grep . stderr && Exit 1
+./missing --run ./missing --grep 2>stderr && Exit 1
+grep WARNING stderr && Exit 1
grep Unknown stderr
# See how well the rebuild rule handles an aclocal.m4 that was
# generated for another version of autoconf.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
$MAKE
sed '1,20 s/m4_defn(\[AC_AUTOCONF_VERSION\]),/9999,/' < aclocal.m4 > aclocal.tmp
-cmp aclocal.m4 aclocal.tmp && exit 1
+cmp aclocal.m4 aclocal.tmp && Exit 1
mv aclocal.tmp aclocal.m4
$MAKE 2>stderr
cat stderr
-grep 'You have another version of autoconf' stderr && exit 1
-grep 'aclocal.m4:.*this file was generated for' stderr && exit 1
+grep 'You have another version of autoconf' stderr && Exit 1
+grep 'aclocal.m4:.*this file was generated for' stderr && Exit 1
:
# test how well `missing' finds output file names of various tools.
# PR automake/483.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Make sure autoconf version checks in aclocal.m4 are robust.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
$MAKE
sed 's/\[b\]/[a]/' < configure.ac > configure.tmp
-cmp configure.ac configure.tmp && exit 1
+cmp configure.ac configure.tmp && Exit 1
mv configure.tmp configure.ac
# Test to make sure no-installman suppresses man dir creation.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test mkinstalldirs with spaces in directory names.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Make sure the directory we will create can be created...
-mkdir '~a b' || exit 77
-mkdir '~a b/-x y' || exit 77
+mkdir '~a b' || Exit 77
+mkdir '~a b/-x y' || Exit 77
rm -rf '~a b'
cp "$testsrcdir/../lib/mkinstalldirs" .
# Test for bug where mkinstalldirs variable can be set incorrectly.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > Makefile.am << 'END'
pkgdata_DATA =
# The "././" prefix confuses Automake into thinking it is doing a
# subdir build. Yes, this is hacky.
-$ACLOCAL || exit 1
-$AUTOMAKE ././Makefile || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE ././Makefile || Exit 1
-grep ' /mkinstalldirs' Makefile.in && exit 1
-exit 0
+grep ' /mkinstalldirs' Makefile.in && Exit 1
+Exit 0
# Check for AM_MAINTAINER_MODE defaults.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
grep '^MAINT.*#' Makefile
./configure --enable-maintainer-mode
-grep '^MAINT.*#' Makefile && exit 1
+grep '^MAINT.*#' Makefile && Exit 1
sed 's/\(AM_MAINTAINER_MODE\).*/\1([disable])/' configure.in > configure.int
mv -f configure.int configure.in
./configure --help | grep 'disable-maintainer-mode.*disable make rules'
./configure
-grep '^MAINT.*#' Makefile && exit 1
+grep '^MAINT.*#' Makefile && Exit 1
./configure --enable-maintainer-mode
-grep '^MAINT.*#' Makefile && exit 1
+grep '^MAINT.*#' Makefile && Exit 1
./configure --disable-maintainer-mode
grep '^MAINT.*#' Makefile
sed 's/\(AM_MAINTAINER_MODE\).*/\1([foo])/' configure.in > configure.int
mv -f configure.int configure.in
-$AUTOCONF --force -Werror && exit 1
+$AUTOCONF --force -Werror && Exit 1
:
# From Derek R. Price.
required=gcc
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Based on a test case from Ralf Corsepius.
required='gcc GNUmake'
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# up for greater exposure of nobase.test.
required='libtoolize gcc'
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Make sure nobase_* works for python files.
required=python
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Make sure nobase_* works.
required='gcc'
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Make sure that PACKAGE and VERSION are AC_DEFINEd when requested.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
$AUTOCONF
./configure
-grep 'DEFS.*-DVERSION=\\"UnIqUe' output && exit 1
+grep 'DEFS.*-DVERSION=\\"UnIqUe' output && Exit 1
:
# Make sure that PACKAGE and VERSION are AC_DEFINEd when requested.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
$AUTOMAKE # Dummy call to make sure Automake grok `no-define' silently.
./configure
-grep 'DEFS.*-DVERSION=\\"UnIqUe' output && exit 1
+grep 'DEFS.*-DVERSION=\\"UnIqUe' output && Exit 1
:
# Test to make sure no-dependencies option does the right thing.
# Bug report from Greg A. Woods.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > Makefile.am << 'END'
AUTOMAKE_OPTIONS = no-dependencies
: > y.c
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
-grep '%' Makefile.in && exit 1
-exit 0
+grep '%' Makefile.in && Exit 1
+Exit 0
# Another test to make sure no-dependencies option does the right thing.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
$ACLOCAL
$AUTOMAKE
-grep DEPMODE Makefile.in && exit 1
+grep DEPMODE Makefile.in && Exit 1
:
# Test to make sure depcomp isn't always required.
-. ./defs || exit 1
+. ./defs || Exit 1
rm -f depcomp
: > Makefile.am
-$ACLOCAL || exit 1
+$ACLOCAL || Exit 1
$AUTOMAKE
# Test to make sure dist_*_SOURCES and nodist_*_SOURCES work.
-. ./defs || exit 1
+. ./defs || Exit 1
echo AC_PROG_CC >> configure.in
: > b.c
: > c.c
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
-grep '^am_eyeball_OBJECTS' Makefile.in || exit 1
-grep '^DIST_SOURCES =' Makefile.in || exit 1
-grep '^DIST_SOURCES =.*nodist' Makefile.in && exit 1
+grep '^am_eyeball_OBJECTS' Makefile.in || Exit 1
+grep '^DIST_SOURCES =' Makefile.in || Exit 1
+grep '^DIST_SOURCES =.*nodist' Makefile.in && Exit 1
-exit 0
+Exit 0
# Test to make sure nodist_noinst_HEADERS work.
# For PR 249.
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in <<'EOF'
AC_OUTPUT
# Test to make sure no-dist option works.
-. ./defs || exit 1
+. ./defs || Exit 1
echo AC_PROG_CC >> configure.in
: > a.c
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
-grep '^dist:' Makefile.in && exit 1
-grep '^DIST_SOURCES =' Makefile.in && exit 1
+grep '^dist:' Makefile.in && Exit 1
+grep '^DIST_SOURCES =' Makefile.in && Exit 1
-exit 0
+Exit 0
# Check support for no-dist-gzip
required=bzip2
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Check diagnostic for no-dist-gzip without dist-*.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Check to make sure "make install" will build all in directory with
# nothing to install.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > Makefile.am << 'END'
all-local:
exit 1
END
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
grep '^install[-a-z]*:.* all' Makefile.in
# Test to make sure that noinst_* and check_* are not installed.
# From Pavel Roskin.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > Makefile.am << 'END'
noinst_SCRIPTS = foo.sh
AC_PROG_RANLIB
END
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
-grep 'noinstdir' Makefile.in && exit 1
-grep 'checkdir' Makefile.in && exit 1
-exit 0
+grep 'noinstdir' Makefile.in && Exit 1
+grep 'checkdir' Makefile.in && Exit 1
+Exit 0
# Make sure Automake does not emit a link rule for unknown languages.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
$ACLOCAL
$AUTOMAKE -Wno-override
-grep '^meal.*:' Makefile.in | grep -v beef.meat && exit 1
+grep '^meal.*:' Makefile.in | grep -v beef.meat && Exit 1
-exit 0
+Exit 0
# Test to make sure nostdinc option works correctly.
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_PROG_CC
foo_SOURCES = foo.c
END
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
-$FGREP -e '-I.' Makefile.in && exit 1
-exit 0
+$FGREP -e '-I.' Makefile.in && Exit 1
+Exit 0
# Check all notrans_, dist_, nodist_ prefix combinations for MANS
# primary and install-man dependencies.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
grep '^install-man5:' Makefile.in | grep '\$(notrans_dist_man_MANS)'
grep '^install-man6:' Makefile.in | grep '\$(notrans_nodist_man_MANS)'
-if grep '^install-man8:' Makefile.in; then exit 1; else :; fi
-if grep '^install-man9:' Makefile.in; then exit 1; else :; fi
+if grep '^install-man8:' Makefile.in; then Exit 1; else :; fi
+if grep '^install-man9:' Makefile.in; then Exit 1; else :; fi
./configure --program-prefix=gnu- --prefix "`pwd`"/inst --mandir "`pwd`"/inst/man
$MAKE
test -d inst/man/man5
test -d inst/man/man6
test -d inst/man/man7
-if test -d inst/man/man8; then exit 1; else :; fi
-if test -d inst/man/man9; then exit 1; else :; fi
+if test -d inst/man/man8; then Exit 1; else :; fi
+if test -d inst/man/man9; then Exit 1; else :; fi
# Test to make sure _OBJECTS only generated once. Bug reported by
# Joerg-Martin Schwarz.
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_PROG_CC
bin_PROGRAMS = zardoz
END
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
count=`grep -c '^zardoz_OBJECTS' Makefile.in`
test $count -eq 1
# Test that `.m' extension works.
# From Ralf Corsepius (for C++).
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_PROG_OBJC
hello_SOURCES = hello.m
END
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
grep '^\.SUFFIXES:.*\.m' Makefile.in
# Test that Automake suggests using AC_PROG_OBJC if Objective C sources
# are used.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
set x ${AUTOUPDATE-autoupdate}
required=$2
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT
$PERL -ne '/AU_DEFUN\(\[(\w+)\]/ && print "$1\n"' \
"$testsrcdir/../m4/obsolete.m4" >> obs
cat obs >> configure.in
-$PERL -ne 'chomp; print "grep $_ stderr || exit 1\n"; ' obs > obs.1
-$PERL -ne 'chomp; print "grep $_ configure.in && exit 1\n"; ' obs > obs.2
+$PERL -ne 'chomp; print "grep $_ stderr || Exit 1\n"; ' obs > obs.1
+$PERL -ne 'chomp; print "grep $_ configure.in && Exit 1\n"; ' obs > obs.2
# Sanity check. Make sure we have added something to configure.in.
-test `cat configure.in | wc -l` -gt 1 || exit 1
+test `cat configure.in | wc -l` -gt 1 || Exit 1
-$ACLOCAL || exit 1
+$ACLOCAL || Exit 1
# Expect Autoconf to complain about each of the macros in obs.
$AUTOCONF -Wobsolete >stderr 2>&1
. ./obs.1
# Make sure Autoupdate remove each of these macros.
-$AUTOUPDATE || exit 1
+$AUTOUPDATE || Exit 1
. ./obs.2
# Autoconf should be able to grok the updated configure.in.
-$AUTOCONF || exit 1
+$AUTOCONF || Exit 1
-exit 0
+Exit 0
# Make sure AC_DEFUN is handled correctly. This test isn't named very
# well. Report from Jim Meyering.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test to ensure that --output-dir works. Bug report from Joshua
# Cowan.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > Makefile.am <<'END'
pkgdata_DATA =
mkdir zardir
-$ACLOCAL || exit 1
-$AUTOMAKE -Wno-obsolete --output-dir=zardir || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE -Wno-obsolete --output-dir=zardir || Exit 1
-test -f Makefile.in && exit 1
+test -f Makefile.in && Exit 1
test -f zardir/Makefile.in
# Test that `automake -a' output order is stable.
# From report by Bruno Haible.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test to make sure files listed in AC_OUTPUT are found.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT
mkdir frob
: > frob/zardoz.in
-$ACLOCAL || exit 1
+$ACLOCAL || Exit 1
$AUTOMAKE
# This is comparable to output9.test, but testing Makefile rules.
# PR/411
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Make sure an AC_CONFIG_FILES ignore filenames with shell variables.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
$AUTOCONF
$AUTOMAKE
-$FGREP ' $file' Makefile.in sub/Makefile.in && exit 1
+$FGREP ' $file' Makefile.in sub/Makefile.in && Exit 1
./configure
$MAKE distcheck
# Make sure an AC_CONFIG_FILES process filenames with AC_SUBST variables.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Make sure an AC_CONFIG_FILES, AC_CONFIG_LINKS, and AC_CONFIG_COMMANDS
# are not prerequisites of `all'.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Another AC_OUTPUT test. From report by Ulrich Drepper.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT
: > po/Makefile.in.am
: > misc/gettextize.in
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
-grep '^gettextize' Makefile.in && exit 1
-exit 0
+grep '^gettextize' Makefile.in && Exit 1
+Exit 0
# Yet another AC_OUTPUT test.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT
: > tests/Makefile.am
: > tests/defs.in
-$ACLOCAL || exit 1
+$ACLOCAL || Exit 1
$AUTOMAKE
# It's hard to believe there are so many AC_OUTPUT-related bugs.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT
: > tests/defs.in
: > tests/Makefile.am
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
-grep tests/defs.in tests/Makefile.in && exit 1
-exit 0
+grep tests/defs.in tests/Makefile.in && Exit 1
+Exit 0
# Make sure Automake complains when there is no Makefile specified.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Check for support for colon separated input files in AC_CONFIG_FILES
required=GNUmake
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Check for support for colon separated input files in AC_CONFIG_FILES,
# with sources in sub directories.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Check AC_CONFIG_FILES support for files starting with `../'.
# Report from Bruno Haible.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Make sure an AC_CONFIG_FILES can have an AC_CONFIG_FILES output as input.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Make sure automake -Woverride suggests using TARGET-local instead
# of TARGET when possible.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
$ACLOCAL
$AUTOMAKE -Wno-override
AUTOMAKE_fails
-grep ':.*install-local' stderr && exit 1 # There is no such thing as install-local
+grep ':.*install-local' stderr && Exit 1 # There is no such thing as install-local
grep ':.*installcheck-local' stderr
grep ':.*html-local' stderr
# Make sure overriding *-am targets suggest using *-local, not *-am.
-grep ':.*clean-am-local' stderr && exit 1
+grep ':.*clean-am-local' stderr && Exit 1
grep ':.*clean-local' stderr
# Conditional overrides ought to be diagnosed, but it can't be done yet.
# See the FIXME in Automake::Rule::define. Once this is fixed, the grep below
# will fail. If you see the failure, it means you fixed Automake. Well done!
-# Just strip out the next '&& exit 1' and this comment.
-grep ':.*overrides.*ps' stderr && exit 1
+# Just strip out the next '&& Exit 1' and this comment.
+grep ':.*overrides.*ps' stderr && Exit 1
# Test for another issue. Overriding html: should cause only one
# html: rule to be output.
# Test to make sure backslash-newline is treated as whitespace.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT
doz.c
END
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
-$FGREP zar.cdoz Makefile.in && exit 1
-exit 0
+$FGREP zar.cdoz Makefile.in && Exit 1
+Exit 0
# Test `+=' functionality.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > Makefile.am << 'END'
data_DATA = zar
: > zar
: > doz
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
$FGREP 'zar doz' Makefile.in
# Test for += and backslashes.
# Reported by Ralf Corsepius.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test `+=' with conditionals.
-. ./defs || exit 1
+. ./defs || Exit 1
echo 'AM_CONDITIONAL(CHECK, true)' >> configure.in
: > doz
: > dog
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
-grep 'CHECK_TRUE.*zar doz' Makefile.in || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
+grep 'CHECK_TRUE.*zar doz' Makefile.in || Exit 1
grep 'CHECK_FALSE.*dog' Makefile.in
# Another `+=' test with conditionals.
-. ./defs || exit 1
+. ./defs || Exit 1
echo 'AM_CONDITIONAL(CHECK, true)' >> configure.in
set -e
-$ACLOCAL || exit 1
+$ACLOCAL || Exit 1
$AUTOMAKE
grep '^@CHECK_TRUE@data_DATA = zarrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr \\$' Makefile.in
grep '^@CHECK_FALSE@data_DATA = dog$' Makefile.in
-exit 0
+Exit 0
# Yet another `+=' test.
-. ./defs || exit 1
+. ./defs || Exit 1
echo AC_PROG_CC >> configure.in
: > foo.c
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
$FGREP '@CC@ -Dwhatever' Makefile.in
# Test for another `+=' problem. Report from Brian Jones.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# -Wno-obsolete:
echo 'AUTOMAKE_OPTIONS = -Wno-obsolete' >> Makefile.am
AUTOMAKE_fails
-grep AM_CPPFLAGS stderr && exit 1
+grep AM_CPPFLAGS stderr && Exit 1
# !CHECK should still be mentioned.
grep ':.*!CHECK$' stderr
# Test that `+=' works with standard header-vars.
-. ./defs || exit 1
+. ./defs || Exit 1
echo 'AC_SUBST(ZZZ)' >> configure.in
zq = zzz
END
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
-$FGREP '@mandir@ foo' Makefile.in || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
+$FGREP '@mandir@ foo' Makefile.in || Exit 1
num=`grep '^mandir =' Makefile.in | wc -l`
test $num -eq 1
# Test that `+=' fails when required.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Another `+=' test. From Paul Berrevoets.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > Makefile.am << 'END'
VAR = \
VAR += three
END
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
sed -n -e '/^VAR =/ {
:loop
# Test the += diagnostics.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Check to make sure we recognize a Makefile.in, even if post-processed
# and renamed.
-. ./defs || exit 1
+. ./defs || Exit 1
cat >configure.in <<'END'
AC_INIT([mumble], [0.1])
fred_SOURCES = fred.c
END
-$ACLOCAL || exit 1
-$AUTOCONF || exit 1
-$AUTOMAKE -- myMakefile || exit 1
+$ACLOCAL || Exit 1
+$AUTOCONF || Exit 1
+$AUTOMAKE -- myMakefile || Exit 1
mv myMakefile.in myMakefile.old
echo '# Post-processed by post-processor 3.14.' > myMakefile.in
cat myMakefile.old >> myMakefile.in
-./configure || exit 1
+./configure || Exit 1
-test -f .deps/fred.Po || test -f _deps/fred.Po || exit 1
+test -f .deps/fred.Po || test -f _deps/fred.Po || Exit 1
:
# Test to make sure preprocessed F77 works.
# Report from Jochen Kuepper.
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_PROG_F77
: > foo.F
: > q.r
-$ACLOCAL || exit 1
+$ACLOCAL || Exit 1
$AUTOMAKE
# Test for bug reported in PR 2.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Sources derived from nodist_ sources should not be distributed.
required='bison gcc'
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test for PR 211.
required=libtoolize
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test for PR automake/220.
required=gcc
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
cd build
# configure should fail since we've done something invalid.
-../configure 2>stderr && exit 1
+../configure 2>stderr && Exit 1
cat stderr
grep NEVER_TRUE stderr
# Test for $(top_srcdir) with dependencies.
required=gcc
-. ./defs || exit 1
+. ./defs || Exit 1
mkdir foo
test -d foo/.deps
$MAKE distclean
-test -d foo/.deps && exit 1
+test -d foo/.deps && Exit 1
:
# Make sure AC_CYGWIN requires config.{sub,guess}.
# Reported by James Youngman.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test for PR 243.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT(foo, 0.1, dev@null)
fxmisc_SOURCES = fx64.c fximg.c fxos.c linutil.c
END
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
-$AUTOCONF || exit 1
-./configure || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
+$AUTOCONF || Exit 1
+./configure || Exit 1
test -f .deps/fx64.Po
# Test for PR 266.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT(foo, 0.1, dev@null)
fxmisc_SOURCES = fx64.c fximg.c fxos.c linutil.c
END
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
-$AUTOCONF || exit 1
-./configure || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
+$AUTOCONF || Exit 1
+./configure || Exit 1
test -f .deps/fx64.Po
# Another test related to PR 279.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT(foo, 0.1, dev@null)
bin_PROGRAMS = foo
END
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
-grep '@foo_DEPENDENCIES = zardoz' Makefile.in || exit 1
-grep '@foo_DEPENDENCIES = maude' Makefile.in || exit 1
+grep '@foo_DEPENDENCIES = zardoz' Makefile.in || Exit 1
+grep '@foo_DEPENDENCIES = maude' Makefile.in || Exit 1
# Test for PR 279.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT(foo, 0.1, dev@null)
foo_DEPENDENCIES =
END
-$ACLOCAL || exit 1
+$ACLOCAL || Exit 1
$AUTOMAKE
# Test for PR 287: empty SUBDIRS.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT(foo, 0.1, dev@null)
# PR/300
required=gcc
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
$MAKE uninstall
-test -f inst/lib/liba.a && exit 1
-test -f inst/lib/subdir/libb.a && exit 1
+test -f inst/lib/liba.a && Exit 1
+test -f inst/lib/subdir/libb.a && Exit 1
$MAKE install-strip
# PR/300
required='libtoolize gcc'
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
$MAKE uninstall
-test -f inst/lib/liba.la && exit 1
-test -f inst/lib/subdir/libb.la && exit 1
+test -f inst/lib/liba.la && Exit 1
+test -f inst/lib/subdir/libb.la && Exit 1
$MAKE install-strip
# PR/300
required=gcc
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# (Also exercises check_LTLIBRARIES.)
required='libtoolize gcc'
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_PROG_CC
./configure am_cv_CC_dependencies_compiler_type=dashmstdout
$MAKE
-test -f librace.la && exit 1
+test -f librace.la && Exit 1
$MAKE check
# The failure we check usually occurs during the above build,
# (pr401b.test and pr401c.test do the same for LTLIBOBJS and ALLOCA)
required=gcc
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# (pr401.test and pr401c.test do the same for LIBOBJS and ALLOCA)
required='gcc libtoolize'
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# (pr401.test and pr401b.test do the same for LIBOBJS and LTLIBOBJS)
required=gcc
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test for PR 72
required=libtool
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_PROG_CC
: > config.guess
: > config.sub
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
grep '^LINK ' Makefile.in
# Test for PR automake/87.
required=gcc
-. ./defs || exit 1
+. ./defs || Exit 1
subdirs="foo bar"
# Linux boxes (Red Hat 5.1 in particular).
$ACLOCAL \
&& $AUTOCONF \
- && $AUTOMAKE -a || exit 1
+ && $AUTOMAKE -a || Exit 1
# Regression test for bug where `.c.o:' is followed by blank line.
(while read line; do
if test "$line" = ".c.o:"; then
read next
if test -z "$next"; then
- exit 1
+ Exit 1
fi
break
fi
- done) < foo/Makefile.in || exit 1
+ done) < foo/Makefile.in || Exit 1
cd build \
&& ../configure \
- && $MAKE distcheck || exit 1
+ && $MAKE distcheck || Exit 1
# Test for bug in PR 9.
required=gzip
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT(Makefile.am)
mkdir support
-$ACLOCAL || exit 1
+$ACLOCAL || Exit 1
-$AUTOCONF || exit 1
-$AUTOMAKE -a -c || exit 1
-./configure || exit 1
-$MAKE || exit 1
-$MAKE distcheck || exit 1
+$AUTOCONF || Exit 1
+$AUTOMAKE -a -c || Exit 1
+./configure || Exit 1
+$MAKE || Exit 1
+$MAKE distcheck || Exit 1
-gunzip pr9-0.tar.gz || exit 1
+gunzip pr9-0.tar.gz || Exit 1
tar tf pr9-0.tar | $FGREP support
# Test to make sure range of prefixes can be extended
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_PROG_CC
bni_PROGRAMS = zardoz
EOF
-$ACLOCAL || exit 1
+$ACLOCAL || Exit 1
$AUTOMAKE
# Test to make sure errors in am_install_var work.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test to make sure errors in am_install_var work.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Make sure we can build programs ending in `.la'
required=gcc
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test for bug where when multiple scripts are installed,
# the check for AC_PROG_INSTALL fails.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > Makefile.am << 'END'
bin_SCRIPTS = zardoz qbert brownie
END
-$ACLOCAL || exit 1
+$ACLOCAL || Exit 1
$AUTOMAKE
# Test to make sure py_compile is defined.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test _PYTHON with conditionals.
required=python
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test missing python.
# Python is not required for this test.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
$ACLOCAL
$AUTOCONF
-./configure >stdout 2>stderr && exit 1
+./configure >stdout 2>stderr && Exit 1
cat stdout
cat stderr
grep 'checking for IShouldNotExist1' stdout
./configure
# Any user setting should be used.
-./configure PYTHON=foo >stdout && exit 1
+./configure PYTHON=foo >stdout && Exit 1
cat stdout
grep 'PYTHON = foo' stdout
# Ensure DESTDIR is not included in byte-compiled files.
required=python
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# If DESTDIR has made it into the byte compiled files, fail the test
$FGREP "$instdir" "$instdir/usr/share/my/my.pyo" \
- "$instdir/usr/share/my/my.pyc" && exit 1
+ "$instdir/usr/share/my/my.pyc" && Exit 1
:
# Make sure that Automake suggests using AM_PATH_PYTHON.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Make sure we install built python files.
required=python
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test detection of missing Python.
# Python is not required for this test.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
$AUTOMAKE --add-missing
# Simulate no Python
-./configure PYTHON=: 2>stderr && exit 1
+./configure PYTHON=: 2>stderr && Exit 1
cat stderr
grep 'no suitable Python interpreter found' stderr
# Same as python4.test, but requiring a version.
# Python is not required for this test.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
$AUTOCONF
$AUTOMAKE --add-missing
-./configure 2>stderr && exit 1
+./configure 2>stderr && Exit 1
cat stderr
grep 'no suitable Python interpreter found' stderr
# Same as python4.test, but using a custom ACTION-IF-NOT-FOUND.
# Python is not required for this test.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Same as python6.test, but requiring a version.
# Python is not required for this test.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test ACTION-IF-TRUE in AM_PATH_PYTHON.
required=python
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Same as python8.test, but requiring a version.
required=python
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test to make sure recursive variable definitions die.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test to make sure recursive variable definitions die.
# From Jim Meyering.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT
> chgrp.1
> chgrp.x
-$ACLOCAL || exit 1
+$ACLOCAL || Exit 1
$AUTOMAKE
# Make sure AM_WITH_REGEX compiles and runs.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Make sure remaking rules in subdir are correctly generated.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT
mkdir sub
: > sub/Makefile.am
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
grep '^Makefile' sub/Makefile.in
# Make sure remaking rules in subdir are correct.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT
mkdir sub
: > sub/Makefile.am
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
grep 'AUTOMAKE.*sub/Makefile' sub/Makefile.in
# Make sure remaking rules work when there is no subdir Makefile.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT
mkdir sub
: > sub/foo.in
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
grep '^sub/foo' Makefile.in
#
# Report from Akim Demaille.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Report from Ralf Corsepius.
required=GNUmake
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
: > rebuild_ok
./configure --no-create
$MAKE
-grep 'AUTOCONF.*=.*false' Makefile && exit 1
+grep 'AUTOCONF.*=.*false' Makefile && Exit 1
# Make sure rebuild rules do work if --enable-maintainer-mode is given.
./configure --enable-maintainer-mode
# Make sure remaking rules work when subdir Makefile.in has been removed.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
cat > configure.in << 'END'
# Make sure remaking rules fail when they should.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
cat > configure.in << 'END'
# Fail for broken input files.
echo "if FOO" > sub/Makefile.am
-$MAKE && exit 1
+$MAKE && Exit 1
: >sub/Makefile.am
$MAKE
mv Makefile.am backup
echo "if FOO" > Makefile.am
-$MAKE && exit 1
+$MAKE && Exit 1
# Fail for missing input files, with or without missing
# Makefile.in files.
cp backup Makefile.am
mv sub/Makefile.am sub/backup
-$MAKE && exit 1
+$MAKE && Exit 1
rm -f sub/Makefile.in
-$MAKE && exit 1
+$MAKE && Exit 1
mv sub/backup sub/Makefile.am
rm -f Makefile.am
-$MAKE && exit 1
+$MAKE && Exit 1
rm -f Makefile.in
-$MAKE && exit 1
+$MAKE && Exit 1
:
# Test to make sure macro used in m4 file is included.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in <<EOF
AC_INIT
AC_SUBST(module)])
END
-$ACLOCAL || exit 1
+$ACLOCAL || Exit 1
grep 'DEFUN.*INIT_AUTOMAKE' aclocal.m4
# Make sure Automake will install several copies of required files if needed.
# Reported by Marius Vollmer.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# to fix the Makefiles.)
required='libtoolize'
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test to make sure RULE_PATTERN catches strange targets.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > Makefile.am << 'END'
$(srcdir)/Makefile.am:
END
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
grep '^$(srcdir)/Makefile\.am' Makefile.in
# Test for bug reported by Jim Meyering.
# AC_PROG_INSTALL was required when only noinst_SCRIPTS was defined.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT
noinst_SCRIPTS = foo
END
-$ACLOCAL || exit 1
+$ACLOCAL || Exit 1
$AUTOMAKE
# Test to make sure C-but-not-CC error works.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test to see if `m4_sinclude' and `m4_include' works.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
$AUTOMAKE
-grep doesntexist Makefile.in && exit 1
+grep doesntexist Makefile.in && Exit 1
grep MAGICALPIG Makefile.in
grep MAGICALHOG Makefile.in
grep GREPME Makefile.in
# Test leading space on macro assignment.
-. ./defs || exit 1
+. ./defs || Exit 1
echo AC_PROG_CC >> configure.in
foo_SOURCES = foo.c
END
-$ACLOCAL || exit 1
+$ACLOCAL || Exit 1
$AUTOMAKE
# Test of flags specific to executable.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
$AUTOMAKE
# Look for $(COMPILE) -c in .c.o rule.
-grep 'COMPILE. [^-]' Makefile.in && exit 1
+grep 'COMPILE. [^-]' Makefile.in && Exit 1
# Look for foo-foo.o.
-grep '[^-]foo\.o' Makefile.in && exit 1
+grep '[^-]foo\.o' Makefile.in && Exit 1
# Regression test for missing space.
-$FGREP ')-c' Makefile.in && exit 1
+$FGREP ')-c' Makefile.in && Exit 1
-exit 0
+Exit 0
# Test library-specific flags.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
$AUTOMAKE
# Look for $(COMPILE) -c in .c.o rule.
-grep 'COMPILE. [^-]' Makefile.in && exit 1
+grep 'COMPILE. [^-]' Makefile.in && Exit 1
# Look for libfoo_a-foo.o.
grep foo Makefile.in
-grep '[^-]foo\.o' Makefile.in && exit 1
+grep '[^-]foo\.o' Makefile.in && Exit 1
# Look for libfoo_a-bar.o.
grep bar Makefile.in
-grep '[^-]bar\.o' Makefile.in && exit 1
+grep '[^-]bar\.o' Makefile.in && Exit 1
-exit 0
+Exit 0
# Test exe-specific flags with dependency tracking.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT
: > compile
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
-$FGREP -e '-o foo-foo' Makefile.in || exit 1
+$FGREP -e '-o foo-foo' Makefile.in || Exit 1
-$FGREP 'foo.o.o' Makefile.in && exit 1
-$FGREP 'foo.$(OBJEXT).$(OBJEXT)' Makefile.in && exit 1
+$FGREP 'foo.o.o' Makefile.in && Exit 1
+$FGREP 'foo.$(OBJEXT).$(OBJEXT)' Makefile.in && Exit 1
-$FGREP '$(foo_CFLAGS)' Makefile.in || exit 1
+$FGREP '$(foo_CFLAGS)' Makefile.in || Exit 1
-exit 0
+Exit 0
# conditionals are present.
# From Richard Boulton
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_PROG_CC
: > compile
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
uncondval=`$FGREP 'foo-foo.o: foo.c' Makefile.in`
foo_SOURCES += $(BAR_SRCS)
END
-$AUTOMAKE || exit 1
+$AUTOMAKE || Exit 1
condval=`$FGREP 'foo-foo.o: foo.c' Makefile.in`
# The true/false example from the manual, plus a check for _SHORTNAME.
required=gcc
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# use of _CPPFLAGS (PR/337).
required=gcc
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Another check for per-target flag substitutions.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
$FGREP '$(AM_CFLAGS)' Makefile.in
-$FGREP '$(zzfoo_CFLAGS)' Makefile.in && exit 1
-$FGREP '$(zzfoo_CPPFLAGS)' Makefile.in && exit 1
+$FGREP '$(zzfoo_CFLAGS)' Makefile.in && Exit 1
+$FGREP '$(zzfoo_CPPFLAGS)' Makefile.in && Exit 1
-$FGREP '$(zzbar_CFLAGS)' Makefile.in && exit 1
+$FGREP '$(zzbar_CFLAGS)' Makefile.in && Exit 1
$FGREP '$(zzbar_CPPFLAGS)' Makefile.in
:
# Test to make sure misspellings in _SOURCES variables cause failure.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test to make sure misspellings in _SOURCES variables cause failure.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test to make sure some internal _DEPENDENCIES variables don't cause
# errors.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > Makefile.am << 'END'
TAGS_DEPENDENCIES = joe
ETAGS_ARGS = joe
END
-$ACLOCAL || exit 1
+$ACLOCAL || Exit 1
$AUTOMAKE
# Test to make sure that misspelled prefixes actually cause error.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > Makefile.am << 'EOF'
bni_PROGRAMS = zot
EOF
-if $ACLOCAL || exit 1
+if $ACLOCAL || Exit 1
$AUTOMAKE; then
- exit 1
+ Exit 1
fi
-exit 0
+Exit 0
# So it seems only non-overlapping ::-rule may be portable. This is
# what we check now.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test to make sure config sub in _SOURCES fails.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test to make sure config sub in _SOURCES fails.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Make sure stamp-h* files are created where we expect
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
test ! -f sdir1/stamp-h6
test -f sdir1/stamp-h7
-exit 0
+Exit 0
# Test to make sure the standard include order is stable.
# Report by Kent Boortz.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test "not a standard library" error.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Check for AM_LDFLAGS = -module
# Report from Kevin P. Fleming.
required=libtool
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test for install-strip.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT(foo, 0.1, dev@null)
# It is ok to have a conditional SUBDIRS when using gettext.
required=gettext
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AM_GNU_GETTEXT
endif
END
-$ACLOCAL || exit 1
+$ACLOCAL || Exit 1
# Gettext wants config.guess etc.
$AUTOMAKE --add-missing
# SUBDIRS + AM_CONDITIONAL setup from the manual.
# Lots of lines here are duplicated in subcond3.test.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# SUBDIRS + AC_SUBST setup from the manual.
# Lots of lines here are duplicated in subcond2.test.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test to make sure install-sh and mkinstalldirs correctly found in
# subdirs.
-. ./defs || exit 1
+. ./defs || Exit 1
mkdir zot
pkgdata_DATA =
END
-$ACLOCAL || exit 1
+$ACLOCAL || Exit 1
$AUTOMAKE
# Test to make sure sub-sub-dirs work correctly.
-. ./defs || exit 1
+. ./defs || Exit 1
mkdir one
mkdir one/two
pkgdata_DATA =
END
-$ACLOCAL || exit 1
+$ACLOCAL || Exit 1
$AUTOMAKE --gnu
# Test to make sure subdir source file generates explicit dependency.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > Makefile.am << 'END'
bin_PROGRAMS = zardoz widdershins
: > y.c
: > x/z.c
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
grep '^z\.o: x/z\.c$' Makefile.in
# Make sure a top-level depcomp file is found when
# AC_CONFIG_AUX_DIR is not specified.
-. ./defs || exit 1
+. ./defs || Exit 1
mkdir lib src
pkgdata_DATA =
END
-$ACLOCAL || exit 1
-$AUTOMAKE --gnu || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE --gnu || Exit 1
# Make sure that depcomp is *not* included in the definition
# of DIST_COMMON in lib/Makefile.in. If you change this test
# so that more files are included in lib's DIST_COMMON definition,
# then you must handle the case in which depcomp is listed on a
# continued line.
-grep '^DIST_COMMON.*depcomp' lib/Makefile.in && exit 1
+grep '^DIST_COMMON.*depcomp' lib/Makefile.in && Exit 1
-exit 0
+Exit 0
# This test assumes that the `make' utility is able to start
# over and reload Makefiles which have been remade (a non-POSIX feature).
required='GNUmake gcc'
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test to make sure config headers in subdirectories are cleaned.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
$MAKE clean
test -f sub/stamp-h1
$MAKE distclean
-test -f sub/stamp-h1 && exit 1
+test -f sub/stamp-h1 && Exit 1
:
# Naming a subdirectory `obj/' is a bad idea. Automake should say so.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# This test assumes that the `make' utility is able to start
# over and reload Makefiles which have been remade (a non-POSIX feature).
required='GNUmake gcc'
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test SUDBIRS with /.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# A bug occurred where subdirs do not have all-recursive or
# all-recursive-am which depended on BUILT_SOURCES.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# $MAKE -C lib foo.h
$MAKE
-exit 0
+Exit 0
# Test of subdir objects with C.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
test -f compile
$FGREP 'generic/a.$(OBJEXT)' Makefile.in
-grep '[^/]a\.\$(OBJEXT)' Makefile.in && exit 1
+grep '[^/]a\.\$(OBJEXT)' Makefile.in && Exit 1
# Opportunistically test for a different bug.
grep '^generic/b.\$(OBJEXT):.*dirstamp' Makefile.in
# PR 492: Test asm subdir-objects.
required=gcc # avoid compiler errors.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test of subdir objects with C++.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
$AUTOMAKE
$FGREP 'generic/a.$(OBJEXT)' Makefile.in
-grep '[^/]a\.\$(OBJEXT)' Makefile.in && exit 1
+grep '[^/]a\.\$(OBJEXT)' Makefile.in && Exit 1
$FGREP -e '-c -o' Makefile.in
# Test of subdir objects with C++.
required=gcc
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Make sure `../foo/foo.cpp' generates a rule.
# Report from Dave Brolley.
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_PROG_CC
: > compile
: > d2/z.c
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
grep 'CC.*z' d1/Makefile.in
# Test of subdir make dist rules.
# From Robert Collins
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT(generic/a.c)
# From Robert Collins
required=gcc
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AM_PROG_CC_C_O
# Test to make sure AM_CFLAGS appears in subdir compilation rule.
# Report from Steve M. Robbins.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
$ACLOCAL
$AUTOMAKE --add-missing
-grep wish_CFLAGS Makefile.in && exit 1
+grep wish_CFLAGS Makefile.in && Exit 1
:
# Make sure `compile' is included when subdir-objects is used in a subdir.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT(Makefile.am)
mumble_SOURCES = bar/a.c
EOF
-$ACLOCAL || exit 1
-$AUTOMAKE --add-missing || exit 1
-test -f tools/compile || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE --add-missing || Exit 1
+test -f tools/compile || Exit 1
# Test for PR 312.
required='libtoolize g++'
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT(x, 0, x)
$AUTOMAKE -a
# Skip this test on configure errors (e.g., broken C++ compilers).
-./configure || exit 77
+./configure || Exit 77
# opportunistically check that --tag=CXX is used when supported
if test -n "`./libtool --help | grep tag=TAG`"; then
$MAKE distcheck 2>&1 | tee out
# GNU Make used to complain that the Makefile contained two rules
# for `src/.dirstamp' and `.//src/.dirstamp'.
-grep 'overriding commands' out && exit 1
+grep 'overriding commands' out && Exit 1
:
# combinational explosion. (This test is named after the &subobjname
# sub in Automake).
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Check subpackage handling.
required='gcc bison'
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Try a DIST_SUBDIRS subpackage with no SUBDIRS.
# Report from Gary V. Vaughan.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# make sure different subpackages may share files and directories.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test that AC_SUBST($1) does something sensible. From Ulrich
# Drepper.
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
dnl This test used to have the following lines, which cannot have
: > Makefile.am
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
-grep '^\$1' Makefile.in && exit 1
-exit 0
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
+grep '^\$1' Makefile.in && Exit 1
+Exit 0
# Make sure a multi-line definition cannot be terminated by an empty
# line (when there are @substitutions@ inside).
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test installation with substitutions. This test is based on nobase.test.
required='gcc'
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# undefined variables break later substitutions.
required=gcc
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Report from Richard Boulton
required=gcc
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT(hello.c)
# This is unrelated to the rest of this test. But while we are
# at it, make sure we don't use am__helldl_SOURCES_DIST here, since
# it's not needed. DIST_SOURCES should contains $(helldl_SOURCES).
-grep am__helldl_SOURCES_DIST Makefile && exit 1
+grep am__helldl_SOURCES_DIST Makefile && Exit 1
grep 'DIST_SOURCES.*\(helldl_SOURCES\)' Makefile
# Test that substitutions in variables work.
# From Lars J. Aas.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Make sure a suffix rule for C compilation is produced.
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_PROG_CC
noinst_PROGRAMS = foo
END
-$ACLOCAL || exit 1
-$AUTOMAKE -i || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE -i || Exit 1
-grep '^\.c\.o' Makefile.in > /dev/null || exit 1
+grep '^\.c\.o' Makefile.in > /dev/null || Exit 1
-$AUTOMAKE || exit 1
-grep '^\.c\.o' Makefile.in > /dev/null || exit 1
+$AUTOMAKE || Exit 1
+grep '^\.c\.o' Makefile.in > /dev/null || Exit 1
# (related to PR/37)
required='libtoolize bison'
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# PR/371 and PR/372: Reported by Duncan Gibson.
# We also check for suffixes containing `-'.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Tests that Automake understands suffix rules with subdir objects.
# Reported by John Ratliff.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test to make sure .c.o rule is only included once.
required=libtoolize
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_PROG_CC
set -e
-$ACLOCAL || exit 1
+$ACLOCAL || Exit 1
$AUTOMAKE -a
grep -c '^\.c\.o:' Makefile.in | grep '^1$'
grep -c '^\.c\.obj:' Makefile.in | grep '^1$'
-exit 0
+Exit 0
# Test to make sure that suffix rules chain.
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_PROG_CXX
foo_SOURCES = foo.zoo
END
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
# The foo.cc intermediate step is implicit, it's a mistake if
# Automake requires this file somewhere.
-$FGREP foo.cc Makefile.in && exit 1
+$FGREP foo.cc Makefile.in && Exit 1
# However Automake must figure that foo.zoo is eventually
# transformed into foo.o, and use this latter file (to link foo).
-$FGREP 'foo.$(OBJEXT)' Makefile.in || exit 1
-exit 0
+$FGREP 'foo.$(OBJEXT)' Makefile.in || Exit 1
+Exit 0
# Also make sure that .SUFFIXES is automatically adjusted with
# extensions from implicit rules.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > Makefile.am << 'END'
.k.o:
foo_SOURCES = foo.k
END
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
-grep '.SUFFIXES:.*\.k' Makefile.in || exit 1
-exit 0
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
+grep '.SUFFIXES:.*\.k' Makefile.in || Exit 1
+Exit 0
# from user-defined implicit rules.
# Based on a report from Arkadiusz Miskiewicz <misiek@pld.ORG.PL>.
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_PROG_LIBTOOL
: > config.guess
: > config.sub
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
-grep '_OBJECTS.*foo.lo' Makefile.in || exit 1
-exit 0
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
+grep '_OBJECTS.*foo.lo' Makefile.in || Exit 1
+Exit 0
# Test to make sure Automake supports implicit rules with dot-less
# extensions. Also make sure that `.o' is handled like `.$(OBJEXT)'.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > Makefile.am << 'END'
SUFFIXES = a b .$(OBJEXT) c .o
: > fooa
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
# Automake must figure that fooa translates to foo.$(OBJEXT) and
# foo.$(OBJEXT) using the following rules:
# fooa --[ab]--> foob --[b.$(OBJEXT)]--> foo.$(OBJEXT)
-grep '_OBJECTS.* foo\.$(OBJEXT)' Makefile.in || exit 1
+grep '_OBJECTS.* foo\.$(OBJEXT)' Makefile.in || Exit 1
# fuc --[c.o]--> fu.$(OBJEXT) ## This is really meant !
-grep '_OBJECTS.* fu\.$(OBJEXT)' Makefile.in || exit 1
+grep '_OBJECTS.* fu\.$(OBJEXT)' Makefile.in || Exit 1
# Test to make sure Automake supports implicit rules "confusing"
# extensions. Inspired by a mail from Alex Hornby.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > Makefile.am << 'END'
SUFFIXES = .idl S.cpp C.h
: > fooa
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
# Make sure Automake has NOT recognized .cpp and .idlC as two new
# extensions.
-grep 'SUFFIXES.* \.cpp' Makefile.in && exit 1
-grep 'SUFFIXES.* \.idlC' Makefile.in && exit 1
+grep 'SUFFIXES.* \.cpp' Makefile.in && Exit 1
+grep 'SUFFIXES.* \.idlC' Makefile.in && Exit 1
-exit 0
+Exit 0
# PR/37
required='gcc libtoolize'
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Make sure that Automake choose the shorter route between suffixes
# (related to PR/37)
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Make sure we get an error if symlink creation fails.
# Reported by Joerg-Martin Schwarz
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test to make sure that `automake -a' redirects dangling symlinks.
-. ./defs || exit 1
+. ./defs || Exit 1
rm -f install-sh
rm -f mkinstalldirs
: > Makefile.am
-$ACLOCAL || exit 1
+$ACLOCAL || Exit 1
$AUTOMAKE --add-missing
# Test to make sure that `automake --force-missing' works.
-. ./defs || exit 1
+. ./defs || Exit 1
rm -f install-sh
rm -f mkinstalldirs
: > Makefile.am
-$ACLOCAL || exit 1
-$AUTOMAKE --add-missing --force-missing || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE --add-missing --force-missing || Exit 1
-grep zot mkinstalldirs && exit 1
-exit 0
+grep zot mkinstalldirs && Exit 1
+Exit 0
# Test for error for bad syntax.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test for bug reported by Harlan Stenn: the tags target doesn't work
# when there are only headers in a directory.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > Makefile.am << 'END'
noinst_HEADERS = iguana.h
: > iguana.h
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
grep '^ID:' Makefile.in
# François Pinard, and later by Akim Demaille.
required=etags
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Check the tar-ustar option.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
$AUTOMAKE
./configure
-grep 'am__tar.*false' Makefile && exit 77
+grep 'am__tar.*false' Makefile && Exit 77
$MAKE distcheck
test -f tar-1.0.tar.gz
# Check the tar-pax option.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
$AUTOMAKE
./configure
-grep 'am__tar.*false' Makefile && exit 77
+grep 'am__tar.*false' Makefile && Exit 77
$MAKE distcheck
test -f tar2-1.0.tar.gz
# Check the tar options diagnostics.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Assar Westerlund <assar@sics.se>
required=gcc
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT(foo.c)
# Check that target clashes are diagnosed.
required=gcc
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Make sure that --program-transform works.
required=gcc
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test to ensure texinfo.tex included in distribution. Bug report by
# Jim Meyering.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > Makefile.am << 'END'
info_TEXINFOS = textutils.texi
echo '@setfilename textutils.info' > textutils.texi
: > texinfo.tex
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
$FGREP -v @SET_MAKE@ Makefile.in > Makefile.sed
$MAKE -s -f Makefile.sed SHELL=$SHELL magic | grep 'texinfo\.tex'
# Make sure dvi target recurses into subdir.
# Reported by Pavel Roskin
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# from Vincent Lefevre)
required='makeinfo tex texi2dvi-o'
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Check that info files are not built in $(srcdir).
required='makeinfo tex'
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Make sure Automake uses the _first_ @setfilname it sees.
# Report from Karl Berry.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
$ACLOCAL
$AUTOMAKE --add-missing
-grep 'example' Makefile.in && exit 1
+grep 'example' Makefile.in && Exit 1
grep 'texinfo:' Makefile.in
# PR/375.
required='makeinfo tex'
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test support for DJGPP's .iNN info files.
required='makeinfo tex'
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test to ensure that a ".info~" file doesn't end up in the
# distribution. Bug report from Greg McGary.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
./configure
$MAKE magic >stdout
cat stdout
-grep '~' stdout && exit 1
-exit 0
+grep '~' stdout && Exit 1
+Exit 0
# Make sure info files survive makeinfo errors.
required=makeinfo
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
END
# makeinfo will bail out, but we should conserve the old info files.
-$MAKE && exit 1
+$MAKE && Exit 1
test -f main
test -f main-1
# Restore main.texi, and break sub/main.texi
cp main.texi sub/main.texi
mv main.old main.texi
-$MAKE && exit 1
+$MAKE && Exit 1
test -f main
test ! -f main-1
test -f sub/main
# install-DOC flavors.
required='makeinfo-html tex'
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
test ! -f share/txinfo21/dvi/main2.dvi
test ! -f share/txinfo21/dvi/main3.dvi
-(dvips --help 2>/dev/null >/dev/null) || exit 77
+(dvips --help 2>/dev/null >/dev/null) || Exit 77
$MAKE install-ps
test -f share/txinfo21/ps/main.ps
test ! -f share/txinfo21/ps/main3.ps
(pdfetex --help 2>/dev/null >/dev/null) ||
- (pdftex --help 2>/dev/null >/dev/null) || exit 77
+ (pdftex --help 2>/dev/null >/dev/null) || Exit 77
$MAKE install-pdf
test -f share/txinfo21/pdf/main.pdf
# Also make sure TEXINFO_TEX is not distributed.
required='makeinfo tex'
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# (Similar to txinfo13.test, plus DISTCLEANFILES.)
required='makeinfo tex texi2dvi-o'
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# (Similar to txinfo16.test, plus CLEANFILES.)
required='makeinfo tex texi2dvi-o'
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# which being cleaned.
required='makeinfo tex texi2dvi-o'
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# PR/408
required='makeinfo'
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# We do not require this to work with a directory that contains white space.
case `pwd` in
- *\ * | *\ *) exit 77;;
+ *\ * | *\ *) Exit 77;;
esac
mkdir build
# Make sure install-info works even if no-installinfo is given.
required='makeinfo'
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Report from Ralf Corsepius.
required='makeinfo tex texi2dvi-o'
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Make sure that INFO_DEPS can be overridden.
# Report from Bruce Korb.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test to make sure .info-less @setfilename works.
required='makeinfo tex'
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# We should not use single suffix inference rules (with separate
# dependencies), this confuses Solaris make.
-grep '^.texi:$' Makefile.in && exit 1
+grep '^.texi:$' Makefile.in && Exit 1
grep 'textutils: textutils.texi' Makefile.in
./configure
# Make sure `missing texinfo' does not create empty files.
# Report from Bob Proulx.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# We should not create a missing bar.info.
rm -f bar.info
-$MAKE && exit 1
+$MAKE && Exit 1
test ! -f bar.info
# Make sure file extensions are matched correctly.
# Report from Eric Dorland.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Make sure non-empty, non-info suffixes are diagnosed.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test to make sure that texinfo.tex is not required by --cygnus.
# Report from Ian Taylor.
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AM_MAINTAINER_MODE
echo '@setfilename ian.info' > ian.texi
-$ACLOCAL || exit 1
+$ACLOCAL || Exit 1
$AUTOMAKE --cygnus
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Test to make sure `.txi' extension works.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > Makefile.am << 'END'
info_TEXINFOS = foo.txi
echo '@setfilename foo.info' > foo.txi
: > texinfo.tex
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
$FGREP '.txi.info' Makefile.in
# Test to make sure texinfo.tex correctly installed by -a. Bug report
# by Per Cederqvist.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > Makefile.am << 'END'
info_TEXINFOS = textutils.texi
echo '@setfilename textutils.info' > textutils.texi
-$ACLOCAL || exit 1
-$AUTOMAKE -a || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE -a || Exit 1
test -f texinfo.tex
# -a when we're using AC_CONFIG_AUX_DIR. Bug report by by Per
# Cederqvist.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT
@echo $(DISTFILES)
END
-$ACLOCAL || exit 1
-$AUTOMAKE -a || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE -a || Exit 1
$FGREP -v @SET_MAKE@ sub/Makefile.in > sub/Makefile.sed
test -f sub/texinfo.tex &&
$MAKE -s -f sub/Makefile.sed SHELL=$SHELL magic | grep 'texinfo\.tex'
stat=$?
-exit $stat
+Exit $stat
# This is just an example -- basically for many targets in texinfos.am
# we only want them to appear once.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > Makefile.am << 'END'
info_TEXINFOS = maude.texi liver.txi heart.texinfo
echo '@setfilename heart.info' > heart.texinfo
: > texinfo.tex
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
test `grep '^dist-info:' Makefile.in | wc -l` -eq 1
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Test for failing check for unused macros. From Johan Danielsson.
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
MACRO_1
AC_DEFUN([MACRO_1_2_3], echo 123)
END
-$ACLOCAL 2> output || exit 1
+$ACLOCAL 2> output || Exit 1
test -z "`cat output`"
# A simple Hello World for UPC.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
cat >> configure.in << 'END'
# Test that Automake suggests using AM_PROG_UPC if Unified Parallel C
# sources are used.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test that C and Unified Parallel C link safely.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
cat >> configure.in << 'END'
# Test various variable definitions that include an '=' sign
# From Raja R Harinath
-. ./defs || exit 1
+. ./defs || Exit 1
cat > Makefile.am << 'END'
MY_FLAGS_1=-DABC=345
MY_FLAGS_4 = -DABC=345
END
-$ACLOCAL || exit 1
+$ACLOCAL || Exit 1
$AUTOMAKE
# Check that Automake warns about variables containing spaces
# and other non-POSIX characters.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# No error expected for these lines.
grep 1: stderr
-grep 2: stderr && exit 1
-grep 3: stderr && exit 1
+grep 2: stderr && Exit 1
+grep 3: stderr && Exit 1
grep 4: stderr
grep 5: stderr
-grep 6: stderr && exit 1
+grep 6: stderr && Exit 1
grep 7: stderr
grep 8: stderr
grep 9: stderr
-grep 10: stderr && exit 1
-grep 11: stderr && exit 1
-grep 12: stderr && exit 1
+grep 10: stderr && Exit 1
+grep 11: stderr && Exit 1
+grep 12: stderr && Exit 1
# Now check some individual values.
grep 'shell echo' stderr
-grep 'nextvariableisbad' stderr && exit 1
+grep 'nextvariableisbad' stderr && Exit 1
grep 'addsuffix' stderr
grep 'bad boy' stderr
-grep 'ok' stderr && exit 1
+grep 'ok' stderr && Exit 1
grep 'three errors' stderr
grep 'on this' stderr
grep 'long line' stderr
grep 'o u c h' stderr
grep 'wildcard' stderr
grep 'another error' stderr
-grep 'thisis' stderr && exit 1
-grep 'here' stderr && exit 1
+grep 'thisis' stderr && Exit 1
+grep 'here' stderr && Exit 1
# None of these errors be diagnosed with -Wno-portability
$AUTOMAKE -Wno-portability
# Targets and macros are two different name spaces.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test to make sure [...] is ok in version number. Report from Jim
# Meyering.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT
: > ChangeLog
: > THANKS
-$ACLOCAL || exit 1
+$ACLOCAL || Exit 1
$AUTOMAKE --gnits
# Test to make sure 3rd arg to AM_INIT_AUTOMAKE not picked up in
# version. From Joel Weber.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT
: > ChangeLog
: > THANKS
-$ACLOCAL || exit 1
+$ACLOCAL || Exit 1
$AUTOMAKE --gnits
# Test to make sure version in AUTOMAKE_OPTIONS works.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test to make sure we are compatible with the 1.4-p1 series.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > Makefile.am << 'END'
AUTOMAKE_OPTIONS = 1.4-p3
END
-$ACLOCAL || exit 1
+$ACLOCAL || Exit 1
$AUTOMAKE
# Make sure the current version can be required.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# changes -- we don't support this feature on non-GNU Makes).
required='makeinfo tex GNUmake'
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Calling AM_AUTOMAKE_VERSION by hand is a bug.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
echo 'AM_AUTOMAKE_VERSION([1.9])' >>configure.in
-$ACLOCAL 2>stderr && exit 0
+$ACLOCAL 2>stderr && Exit 0
$FGREP 'AM_INIT_AUTOMAKE([1.9])' stderr
# Test to make sure VPATH can be overridden.
# Report from Anthony Green.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > Makefile.am << 'END'
VPATH = zardoz
END
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
-grep 'VPATH.*@srcdir@' Makefile.in && exit 1
-exit 0
+grep 'VPATH.*@srcdir@' Makefile.in && Exit 1
+Exit 0
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > Makefile.am << 'END'
info_TEXINFOS = textutils.texi
set -e
-$ACLOCAL || exit 1
+$ACLOCAL || Exit 1
$AUTOMAKE
# Test for bug reported by Jim Meyering:
# Filter out '$(srcdir)/mdate-sh'; output occurrences of `SOMETHING/mdate-sh'
sed -n 's,\$(srcdir)/mdate-sh,,g;s,.* \([^ ]*/mdate-sh\) .*,\1,gp' Makefile.in|
# There must remain nothing.
- grep . && exit 1
+ grep . && Exit 1
-exit 0
+Exit 0
# version.texi gets listed as a dependency for the .info file but
# not the .dvi file.
-. ./defs || exit 1
+. ./defs || Exit 1
cat > Makefile.am << 'END'
info_TEXINFOS = zardoz.texi
: > mdate-sh
: > texinfo.tex
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE || Exit 1
grep '^zardoz\.dvi:' Makefile.in
# Make sure that we can enable or disable warnings on a per-file basis.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# sub/Makefile.am:2: `INCLUDES' is the old name for `AM_CPPFLAGS'
grep '^Makefile.am:.*foo_SOURCES' stderr
grep '^sub/Makefile.am:.*INCLUDES' stderr
-grep '^sub/Makefile.am:.*foo_SOURCES' stderr && exit 1
-grep '^Makefile.am:.*INCLUDES' stderr && exit 1
+grep '^sub/Makefile.am:.*foo_SOURCES' stderr && Exit 1
+grep '^Makefile.am:.*INCLUDES' stderr && Exit 1
# Only three lines of warnings.
test `wc -l < stderr` = 3
# Test to make sure --Werror and --add-missing work together.
-. ./defs || exit 1
+. ./defs || Exit 1
: > Makefile.am
rm -f install-sh depcomp missing mkinstalldirs
-$ACLOCAL || exit 1
+$ACLOCAL || Exit 1
$AUTOMAKE --Werror --add-missing
# Report from Harlan Stenn.
required=GNUmake
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
foo_SOURCES = unused
END
-$MAKE && exit 1
+$MAKE && Exit 1
-$MAKE && exit 1
+$MAKE && Exit 1
:
# Test to make sure aclocal doesn't barf on "WHO_AM_I=...". Report
# from Johan Danielsson (and a very nice bug report, too, I might
# add).
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
WHO_AM_I=17
# Test to make sure multiple source files with the same object
# file causes error.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test to make sure intermediate .c file is built from yacc source.
# Bug from Thomas Morgan.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# Test to make sure intermediate .h file is not generated nor removed
# if (AM_)?YFLAGS do not contain -d. Requested by Jim Meyering.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
$AUTOMAKE -a
# If zardoz.h IS mentioned, fail
-grep 'zardoz.h' Makefile.in > /dev/null && exit 1
+grep 'zardoz.h' Makefile.in > /dev/null && Exit 1
$AUTOMAKE
# If zardoz.h IS mentioned, fail
-grep 'zardoz.h' Makefile.in > /dev/null && exit 1
+grep 'zardoz.h' Makefile.in > /dev/null && Exit 1
$AUTOMAKE -Wno-gnu
# If zardoz.h IS mentioned, fail
-grep 'zardoz.h' Makefile.in > /dev/null && exit 1
+grep 'zardoz.h' Makefile.in > /dev/null && Exit 1
:
# Ensure that generated .h file is distributed iff we have -d in
# (AM_)?YFLAGS.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
$FGREP -v @SET_MAKE@ Makefile.in > Makefile.sed
# It should not be disted here
-grep 'zardoz.h' Makefile.in && exit 1
+grep 'zardoz.h' Makefile.in && Exit 1
cp Makefile.am Save
# Test all available flags to make sure header is distributed with
# Some simple tests of ylwrap functionality.
required='bison gcc'
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT
../configure
$MAKE
-grep '^#.*/sub/\.\./' bar.c && exit 1
-grep '^#.*/sub/\.\./' parse.c && exit 1
+grep '^#.*/sub/\.\./' bar.c && Exit 1
+grep '^#.*/sub/\.\./' parse.c && Exit 1
# Make distclean must not erase bar.c nor parse.c (by GNU standards) ...
$MAKE distclean
test ! -f parse.c
:
-exit 0
+Exit 0
# Test of yacc functionality, derived from GNU binutils
# by Tim Van Holder.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
$AUTOMAKE -a
# No rule needed, the default .y.c: inference rule is enough.
-grep '^sub/maude\.c:' Makefile.in && exit 1
+grep '^sub/maude\.c:' Makefile.in && Exit 1
## Try again with per-exe flags.
maude_YFLAGS = -d
END
-$ACLOCAL || exit 1
-$AUTOMAKE -a || exit 1
+$ACLOCAL || Exit 1
+$AUTOMAKE -a || Exit 1
# Rule should use maude_YFLAGS.
-grep 'AM_YFLAGS.*maude' Makefile.in && exit 1
+grep 'AM_YFLAGS.*maude' Makefile.in && Exit 1
# Silly regression.
-grep 'maudec' Makefile.in && exit 1
+grep 'maudec' Makefile.in && Exit 1
# Make sure the .o file is required.
grep '^am_maude_OBJECTS.*maude' Makefile.in
# Report from Paolo Bonzini.
required='gcc bison GNUmake'
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# PR/47.
required=bison
-. ./defs || exit 1
+. ./defs || Exit 1
cat >> configure.in << 'END'
AC_PROG_CC
test -f foo.h
# Make sure `#line ... y.tab.h' gets replaced.
-$FGREP 'y.tab.h' foo.h && exit 1
+$FGREP 'y.tab.h' foo.h && Exit 1
# Make distclean must not erase foo.c nor foo.h (by GNU standards) ...
$MAKE foo.c
required="gcc bison"
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
END
$AUTOMAKE -a
-test -f ./ylwrap || exit 1
+test -f ./ylwrap || Exit 1
cd sub
# Regenerate Makefile (automatic in GNU Make, but not in other Makes)
# Test to make sure yacc + c++ works.
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
# to be distributed is up to date.
required='gcc bison'
-. ./defs || exit 1
+. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT