123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- #! /bin/sh
- required='libtoolize gcc'
- . test-init.sh
- cat >> configure.ac << 'END'
- AC_PROG_CC
- AM_PROG_AR
- AC_PROG_LIBTOOL
- AC_OUTPUT
- END
- cat > Makefile.am << 'END'
- check_LTLIBRARIES = librace.la
- librace_la_SOURCES = a.c b.c c.c d.c e.c f.c g.c h.c
- check-local:
- for i in $(librace_la_SOURCES:.c=.Plo); do \
- echo "checking ./$(DEPDIR)/$$i"; \
- grep 'foo\.h' ./$(DEPDIR)/$$i >tst || exit 1; \
- test `wc -l <tst` -eq 2 || exit 1; \
- done
- END
- : >foo.h
- for i in a b c d e f g h; do
- unindent >$i.c <<EOF
-
- int $i () { return 0; }
- EOF
- done
- libtoolize --force
- $ACLOCAL
- $AUTOCONF
- $AUTOMAKE -a
- grep am_cv_CC_dependencies_compiler_type configure
- ./configure am_cv_CC_dependencies_compiler_type=dashmstdout
- $MAKE
- test -f librace.la && exit 1
- $MAKE check
- test -f librace.la
- test -f tst
- :
|