summaryrefslogtreecommitdiff
path: root/m4/gcj.m4
blob: 359733bd7521bb3dc0d6261d72de3ad8c346fbb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
# 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)
])