# Check for Java compiler.
# For now we only handle the GNU compiler.

AC_DEFUN([AM_PROG_GCJ],[
AC_CHECK_PROGS(GCJ, gcj, gcj)
test -z "$GCJ" && AC_MSG_ERROR([no acceptable gcj found in \$PATH])
if test "x${GCJFLAGS+set}" = xset; then
   GCJFLAGS="-g -O2"
fi
AC_SUBST(GCJFLAGS)
])


syntax highlighted by Code2HTML, v. 0.9.1