12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- #! /bin/sh
- required='gcc libtoolize'
- . test-init.sh
- cat >> configure.ac << 'END'
- AC_PROG_CC
- AM_PROG_AR
- LT_INIT
- $CC --version
- $CC -v
- AC_OUTPUT
- END
- cat > Makefile.am << 'END'
- lib_LTLIBRARIES = libwish.la
- END
- cat > libwish.c << 'END'
- int wish_granted (void)
- {
- return 0;
- }
- END
- CC=$am_testaux_builddir/cc-no-c-o; export CC
- libtoolize --verbose --install
- $ACLOCAL
- $AUTOCONF
- $AUTOMAKE --copy --add-missing
- for vpath in : false; do
- if $vpath; then
- srcdir=..
- mkdir build
- cd build
- else
- srcdir=.
- fi
- $srcdir/configure >stdout || { cat stdout; exit 1; }
- cat stdout
- $EGREP 'understands? -c and -o together.* no$' stdout
-
- test $(grep ".*-c['\" ].*-o['\" ]" stdout \
- | $FGREP -v ' -c -o file.o' | wc -l) -eq 1
-
-
-
- grep '^checking if .*/compile .*supports -c -o file\.o\.\.\. yes' stdout
-
- $MAKE
- cd $srcdir
- done
- $MAKE distcheck
- :
|