Skip to content
Snippets Groups Projects
Commit d5fb28c5 authored by Brian Carrier's avatar Brian Carrier
Browse files

WARN instead of ERROR if java does not run. Caused issue on OS X w/out real java installed

parent f8bd8d29
No related branches found
No related tags found
No related merge requests found
...@@ -57,7 +57,7 @@ if test x$ac_cv_prog_uudecode_base64 != xyes; then ...@@ -57,7 +57,7 @@ if test x$ac_cv_prog_uudecode_base64 != xyes; then
rm -f Test.class rm -f Test.class
AC_MSG_WARN([I have to compile Test.class from scratch]) AC_MSG_WARN([I have to compile Test.class from scratch])
if test x$ac_cv_prog_javac_works = xno; then if test x$ac_cv_prog_javac_works = xno; then
AC_MSG_ERROR([Cannot compile java source. $JAVAC does not work properly]) AC_MSG_WARN([Cannot compile java source. $JAVAC does not work properly])
fi fi
if test x$ac_cv_prog_javac_works = x; then if test x$ac_cv_prog_javac_works = x; then
AC_PROG_JAVAC AC_PROG_JAVAC
...@@ -83,7 +83,7 @@ if test x$ac_cv_prog_uudecode_base64 != xyes; then ...@@ -83,7 +83,7 @@ if test x$ac_cv_prog_uudecode_base64 != xyes; then
else else
echo "configure: failed program was:" >&AC_FD_CC echo "configure: failed program was:" >&AC_FD_CC
cat $JAVA_TEST >&AC_FD_CC cat $JAVA_TEST >&AC_FD_CC
AC_MSG_ERROR(The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)) AC_MSG_WARN(The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?))
fi fi
fi fi
if AC_TRY_COMMAND($JAVA $JAVAFLAGS $TEST) >/dev/null 2>&1; then if AC_TRY_COMMAND($JAVA $JAVAFLAGS $TEST) >/dev/null 2>&1; then
...@@ -91,7 +91,7 @@ fi ...@@ -91,7 +91,7 @@ fi
else else
echo "configure: failed program was:" >&AC_FD_CC echo "configure: failed program was:" >&AC_FD_CC
cat $JAVA_TEST >&AC_FD_CC cat $JAVA_TEST >&AC_FD_CC
AC_MSG_ERROR(The Java VM $JAVA failed (see config.log, check the CLASSPATH?)) AC_MSG_WARN(The Java VM $JAVA failed (see config.log, check the CLASSPATH?))
fi fi
rm -fr $JAVA_TEST $CLASS_TEST Test.uue]) rm -fr $JAVA_TEST $CLASS_TEST Test.uue])
AC_PROVIDE([$0])dnl AC_PROVIDE([$0])dnl
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment