Tag
Hash :
5117f01d
Author :
Date :
2002-05-24T10:36:20
For PR automake/323: * m4/depend.m4: Missing comma. * tests/gcj4.test: New file. * tests/Makefile.am (TESTS): Add gcj4.test. Reported by David Pashley.
#! /bin/sh
# Make sure dependency tracking works for Java.
required=gcj
. $srcdir/defs || exit 1
cat >> configure.in << 'END'
AM_PROG_GCJ
AC_OUTPUT
END
cat > Makefile.am << 'END'
bin_PROGRAMS = convert
convert_SOURCES = convert.java
END
set -e
$ACLOCAL
$AUTOCONF
$AUTOMAKE
./configure GCJ=gcj >stdout
cat stdout
# Configure must be checking the dependency style of gcj ...
grep 'dependency style of gcj' stdout >filt
cat filt
# ... only once.
test `wc -l < filt` = 1
# Accept any outcome but `none'
# (at the time of writing it should be gcc or gcc3).
grep -v none filt