* tests/defs.in (for tool in $required): New requirement 'javac'.
* tests/java.test: Use it instead of ad-hoc configure check.
* tests/java-check.test: Likewise.
* tests/instfail-java.test: Likewise.
* tests/instdir-java.test: Likewise.
+2011-04-10 Stefano Lattarini <stefano.lattarini@gmail.com>
+
+ test defs: new requirement for the default java compiler
+ * tests/defs.in (for tool in $required): New requirement 'javac'.
+ * tests/java.test: Use it instead of ad-hoc configure check.
+ * tests/java-check.test: Likewise.
+ * tests/instfail-java.test: Likewise.
+ * tests/instdir-java.test: Likewise.
+
2011-04-09 Stefano Lattarini <stefano.lattarini@gmail.com>
java: check_JAVA does not cause compilation by "make all" anymore
echo "$me: running $CC -V -help"
( $CC -V -help ) || exit 77
;;
+ javac)
+ echo "$me: running javac -version"
+ javac -version || exit 77
+ ;;
makedepend)
echo "$me: running makedepend -f-"
( makedepend -f- ) || exit 77
# If $(javadir) is the empty string, then nothing should be installed there.
+required=javac
. ./defs || Exit 1
set -e
cat >>configure.in <<'END'
-AC_CHECK_PROG([HAS_JAVAC], [javac], [:], [exit])
-($HAS_JAVAC 77); $HAS_JAVAC 77
AC_OUTPUT
END
# This is the java sister test of instfail.test.
+required=javac
. ./defs || Exit 1
set -e
cat >>configure.in <<'END'
-AC_CHECK_PROG([HAS_JAVAC], [javac], [:], [exit])
-($HAS_JAVAC 77); $HAS_JAVAC 77
AC_OUTPUT
END
# "make check", and not also with "make all".
# See automake bug#8234.
+required=javac
. ./defs || Exit 1
set -e
cat >> configure.in << 'END'
-AC_CHECK_PROG([HAS_JAVAC], [javac], [:], [exit])
-($HAS_JAVAC 77); $HAS_JAVAC 77
AC_OUTPUT
END
# Minimal test of Java functionality.
+required=javac
. ./defs || Exit 1
set -e
cat >>configure.in <<'EOF'
-AC_CHECK_PROG([HAS_JAVAC], [javac], [:], [exit])
-($HAS_JAVAC 77); $HAS_JAVAC 77
AC_OUTPUT
EOF