summaryrefslogtreecommitdiffstats
path: root/libjava/classpath/m4/ac_prog_antlr.m4
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/classpath/m4/ac_prog_antlr.m4')
-rw-r--r--libjava/classpath/m4/ac_prog_antlr.m46
1 files changed, 5 insertions, 1 deletions
diff --git a/libjava/classpath/m4/ac_prog_antlr.m4 b/libjava/classpath/m4/ac_prog_antlr.m4
index e2c10780ae3..df377e8b6e6 100644
--- a/libjava/classpath/m4/ac_prog_antlr.m4
+++ b/libjava/classpath/m4/ac_prog_antlr.m4
@@ -24,7 +24,11 @@ AC_DEFUN([AC_PROG_ANTLR],[
if test -z "$JAVA"; then
AC_MSG_ERROR(Failed to find either an antlr binary or a suitable Java runtime for ANTLR.)
else
- ANTLR="$JAVA -classpath $ANTLR_JAR antlr.Tool"
+ if test -z "$ANTLR_JAR"; then
+ AC_MSG_ERROR(Failed to find either an antlr binary or a suitable antlr jar file.)
+ else
+ ANTLR="$JAVA -classpath $ANTLR_JAR antlr.Tool"
+ fi
fi
fi
AC_SUBST(ANTLR)
OpenPOWER on IntegriCloud