[PATCH] Use Jikes as default compiler if installed (autoconf version.)
Niels Kristian Bech Jensen
nkbj at image.dk
Sat Apr 24 23:35:36 PDT 1999
Hi,
This patch makes kaffe use Jikes as its default compiler rather than
pizza if Jikes is installed when "configure" is executed:
diff -urN kaffe-1.0b4.orig/configure.in kaffe-1.0b4/configure.in
--- kaffe-1.0b4.orig/configure.in Fri Apr 9 21:17:45 1999
+++ kaffe-1.0b4/configure.in Sun Apr 25 08:00:58 1999
@@ -348,7 +348,7 @@
AC_PROG_INSTALL
AC_PROG_MAKE_SET
-AC_CHECK_PROG(JIKES, jikes, jikes)
+AC_PATH_PROG(JIKES, jikes)
AC_CHECK_PROG(ZIP, zip, zip)
dnl If symlink is overridden then don't bother with the test.
diff -urN kaffe-1.0b4.orig/kaffe/scripts/compat/javac.in kaffe-1.0b4/kaffe/scripts/compat/javac.in
--- kaffe-1.0b4.orig/kaffe/scripts/compat/javac.in Sat Feb 20 22:51:13 1999
+++ kaffe-1.0b4/kaffe/scripts/compat/javac.in Sun Apr 25 08:05:40 1999
@@ -1,6 +1,12 @@
#! /bin/sh
-# We use Pizza compiler rather than Sun's.
+# We use one of the Jikes or Pizza compilers rather than Sun's.
prefix=@prefix@
exec_prefix=@exec_prefix@
-exec @bindir@/@kaffe_TRANSF@ pizza.compiler.Main ${1+"$@"}
+JIKES=@JIKES@
+if [ -x "$JIKES" ]; then
+ JIKESPATH=@datadir@/kaffe/Klasses.jar
+ exec $JIKES ${1+"$@"}
+else
+ exec @bindir@/@kaffe_TRANSF@ pizza.compiler.Main ${1+"$@"}
+fi
--
Niels Kristian Bech Jensen -- nkbj at image.dk -- http://www.image.dk/~nkbj/
----------->> Stop software piracy --- use free software! <<-----------
More information about the kaffe
mailing list