This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[cp 0.98 merge branch] check for antlr binary
- From: Matthias Klose <doko at ubuntu dot com>
- To: Java Patches <java-patches at gcc dot gnu dot org>
- Date: Mon, 29 Sep 2008 20:49:50 +0200
- Subject: [cp 0.98 merge branch] check for antlr binary
some distributors do ship an antlr binary, the upstream source does have a shell
script. debian/ubuntu ships it as 'runantlr', because the pccts package has an
antlr binary as well). so best thing to check first for 'runantlr', then 'antlr'.
distributors do package antlr 2.7.x; I didn't check if antlr3 works as well.
Matthias
2008-09-29 Matthias Klose <doko@ubuntu.com>
* m4/ac_prog_antlr.m4: Check for antlr binary as well.
Index: m4/ac_prog_antlr.m4
===================================================================
--- m4/ac_prog_antlr.m4 (revision 140730)
+++ m4/ac_prog_antlr.m4 (working copy)
@@ -34,10 +34,10 @@
test -f $ANTLR_JAR || AC_MSG_ERROR([specified ANTLR jar file $ANTLR_JAR not found.]) \
&& AC_MSG_NOTICE([using ANTLR parser generator in $ANTLR_JAR])
fi
- AC_CHECK_TOOLS([ANTLR], [runantlr])
+ AC_CHECK_TOOLS([ANTLR], [runantlr antlr])
if test "x$ANTLR" = x; then
if test -z "$JAVA"; then
- AC_MSG_ERROR(no suitable runantlr found and no suitable java runtime found.)
+ AC_MSG_ERROR(no suitable antlr binary found and no suitable java runtime found.)
else
ANTLR="$JAVA -classpath $ANTLR_JAR antlr.Tool"
fi