[kaffe] About KAFFEHOME

Fabien Renaud renaud at nentec.de
Fri Jul 9 05:02:58 PDT 2004


Hi,

When I cross compiled I had some problems because there is my native 
dirs in scripts (kaffe, jdb, jar, ...)

I did this and that works :

 > diff -u configure_ configure
--- configure_  2004-07-09 13:57:12.000000000 +0200
+++ configure   2004-07-09 11:44:37.000000000 +0200
@@ -56457,6 +56457,7 @@
 s, at jrebindir@,$jrebindir,;t t
 s, at jrelibdir@,$jrelibdir,;t t
 s, at nativedir@,$nativedir,;t t
+s, at Khost_cpu@,$Khost_cpu,;t t
 s, at securitydir@,$securitydir,;t t
 s, at PATHSEP@,$PATHSEP,;t t
 s, at DIRSEP@,$DIRSEP,;t t



 > diff -u kaffe/scripts/kaffe.in_ kaffe/scripts/kaffe.in
--- kaffe/scripts/kaffe.in_     2004-07-09 13:59:22.000000000 +0200
+++ kaffe/scripts/kaffe.in      2004-07-09 11:38:08.000000000 +0200
@@ -32,11 +32,19 @@
 exec_prefix="@exec_prefix@"
 PATHSEP='@PATHSEP@'
 DIRSEP='@DIRSEP@'
-: ${KAFFE_LIBDIR="@libdir@"}
-: ${KAFFE_JREDIR="@jredir@"}
-: ${KAFFE_JREBINDIR="@jrebindir@"}
-: ${KAFFE_JRELIBDIR="@jrelibdir@"}
-: ${KAFFE_NATIVE_LIBRARY_DIR="@nativedir@"}
+if test x"${KAFFEHOME+set}"x != x"set"x; then
+  : ${KAFFE_LIBDIR="@libdir@"}
+  : ${KAFFE_JREDIR="@jredir@"}
+  : ${KAFFE_JREBINDIR="@jrebindir@"}
+  : ${KAFFE_JRELIBDIR="@jrelibdir@"}
+  : ${KAFFE_NATIVE_LIBRARY_DIR="@nativedir@"}
+else
+  : ${KAFFE_LIBDIR="$KAFFEHOME/lib"}
+  : ${KAFFE_JREDIR="$KAFFEHOME/jre"}
+  : ${KAFFE_JREBINDIR="$KAFFEHOME/jre/bin"}
+  : ${KAFFE_JRELIBDIR="$KAFFEHOME/jre/lib"}
+  : ${KAFFE_NATIVE_LIBRARY_DIR="$KAFEHOME/jre/lib/@Khost_cpu@"}
+fi
 
 
 if test x"$(uname -m)"x = x"ia64"x; then


 > diff -u kaffe/scripts/jdb.in_ kaffe/scripts/jdb.in
--- kaffe/scripts/jdb.in_       2004-07-09 14:00:33.000000000 +0200
+++ kaffe/scripts/jdb.in        2004-07-09 11:44:04.000000000 +0200
@@ -1,6 +1,10 @@
 #! /bin/sh
 prefix=@prefix@
-exec_prefix=@exec_prefix@
+if test x"${KAFFEHOME+set}"x != x"set"x; then
+  exec_prefix=@exec_prefix@
+else
+  exec_prefix=$KAFFEHOME
+fi
 exec @bindir@/@kaffe_TRANSF@ $JAVA_OPTS sun.tools.ttydebug.TTY ${1+"$@"}
 exit $?
 

If someone has a better idea ...

Cheers,

Fabien





More information about the kaffe mailing list