Well over a year ago, I sent in a patch to fix a problem Justin
Erenkrantz noted on OS X when building with Jikes. (Possibly to do
with finding his Java runtime JARs? He didn't specify.) At the time,
I didn't receive any feedback regarding whether the patch fixed the
problem, and it's still sitting in a WC on my workstation.
http://svn.haxx.se/dev/archive-2004-04/1428.shtml
If anyone on OS X could read the thread, and let me know whether this
fixes the problem noted by Justin, I'd appreciate it.
--- build/ac-macros/java.m4 (revision 17597)
+++ build/ac-macros/java.m4 (working copy)
@@ -63,6 +63,9 @@
os_arch="`uname`"
if test "$os_arch" = "Darwin" -a "$JDK" = "/usr" -a -d "/Library/Java/Home"; then
JDK="/Library/Java/Home"
+ JRE_LIB_DIR="/System/Library/Frameworks/JavaVM.framework/Classes"
+ else
+ JRE_LIB_DIR="$JDK/jre/lib"
fi
if test -f "$JDK/include/jni.h"; then
dnl This *must* be fully expanded, or we'll have problems later in find.
@@ -106,8 +109,8 @@
if test -z "$jikes_found" -a -x "$jikes"; then
jikes_found="yes"
JAVAC="$jikes"
- JAVA_CLASSPATH="$JDK/jre/lib"
- for jar in $JDK/jre/lib/*.jar; do
+ JAVA_CLASSPATH="$JRE_LIB_DIR"
+ for jar in $JRE_LIB_DIR/*.jar; do
JAVA_CLASSPATH="$JAVA_CLASSPATH:$jar"
done
fi
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Dec 2 20:37:31 2005