From cbc6ec3ea459f896730ea71de4f49bca898e8d9b Mon Sep 17 00:00:00 2001 From: Julien Fischer Date: Mon, 21 Oct 2019 21:44:42 +1100 Subject: [PATCH] Drop support for older alternative Java compilers. m4/mercury.m4: Do not check for jikes or gcj. Neither supports Java 1.8 or is updated anymore. --- m4/mercury.m4 | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/m4/mercury.m4 b/m4/mercury.m4 index 3dcd92570..a3c17ccc6 100644 --- a/m4/mercury.m4 +++ b/m4/mercury.m4 @@ -497,25 +497,17 @@ AC_SUBST([CLI_INTERPRETER]) # AC_DEFUN([MERCURY_CHECK_JAVA], [ -# jikes requires the usual Java SDK to run, so if we checked for javac first, -# then that is what we would get. If the user has jikes installed, then that -# probably means that they want to use it, so we check for jikes before javac. # On Windows, the Java SDK has a high chance of being installed in a path # containing spaces. The simplest solution is to keep only the basename. # Everything will still work so long as the executables can be found on the # PATH later. -AC_PATH_PROGS(JAVAC, jikes javac gcj) +AC_PATH_PROGS(JAVAC, javac) case "$JAVAC" in *" "*) JAVAC=`basename "$JAVAC"` ;; esac -case "$JAVAC" in - *gcj) - JAVAC="$JAVAC -C" - ;; -esac -AC_PATH_PROG(JAVA_INTERPRETER, java gij) +AC_PATH_PROG(JAVA_INTERPRETER, java) case "$JAVA_INTERPRETER" in *" "*) JAVA_INTERPRETER=`basename "$JAVA_INTERPRETER"`