Hi,

If you don't have an antlr binary and also no antlr.jar installed
configure should detect that instead of the build failing during the
tools compilation.

2009-03-29  Mark Wielaard  <m...@klomp.org>

    * m4/ac_prog_antlr.m4: Check whether ANTLR_JAR is empty.

Committed,

Mark
--- m4/ac_prog_antlr.m4	20 Oct 2008 22:07:21 -0000	1.6
+++ m4/ac_prog_antlr.m4	29 Mar 2009 19:31:41 -0000
@@ -24,7 +24,11 @@
       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)

Reply via email to