* automake.texi (Java Support): Added index, @section.
[automake.git] / m4 / gcj.m4
blob359733bd7521bb3dc0d6261d72de3ad8c346fbb2
1 # Check for Java compiler.
2 # For now we only handle the GNU compiler.
4 AC_DEFUN([AM_PROG_GCJ],[
5 AC_CHECK_PROGS(GCJ, gcj, gcj)
6 test -z "$GCJ" && AC_MSG_ERROR([no acceptable gcj found in \$PATH])
7 if test "x${GCJFLAGS+set}" = xset; then
8    GCJFLAGS="-g -O2"
9 fi
10 AC_SUBST(GCJFLAGS)