12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- #! /bin/sh
- required=c++
- . test-init.sh
- plan_ 10
- cat >> configure.ac << 'END'
- AC_PROG_CXX
- AC_OUTPUT
- END
- cat > Makefile.am << 'END'
- SUFFIXES = .zoo
- .zoo.cc:
- sed 's/INTEGER/int/g' `test -f '$<' || echo $(srcdir)/`$< >$@
- bin_PROGRAMS = foo
- foo_SOURCES = foo.zoo
- FOO = foo
- CLEANFILES = $(FOO).cc
- END
- command_ok_ "aclocal" $ACLOCAL
- command_ok_ "automake" $AUTOMAKE
- command_ok_ "intermediate files not mentioned" \
- not $FGREP foo.c Makefile.in
- command_ok_ "final object file figured out" \
- $FGREP 'foo.$(OBJEXT)' Makefile.in
- command_ok_ "autoconf" $AUTOCONF
- command_ok_ "configure" ./configure
- cat > foo.zoo <<'END'
- using namespace std;
- INTEGER main (void)
- {
- return 0;
- }
- END
- directive=''; make_can_chain_suffix_rules || directive=TODO
- for target in all distcheck; do
- command_ok_ "make $target" \
- -D "$directive" -r "suffix rules not chained" \
- $MAKE $target
- done
- command_ok_ "make distdir" $MAKE distdir
- command_ok_ "intermediate file not distributed" test ! -e $me-1.0/foo.cc
- :
|