Skip to content
This repository was archived by the owner on Apr 12, 2026. It is now read-only.

Commit 1cf5858

Browse files
jdedebradjc
authored andcommitted
tools: copy jar files into $prefix/lib/java
Only if requested by ./configure --prefix=...
1 parent 389aa8e commit 1cf5858

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

tools/configure.ac

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,13 @@ JDK=`dirname "$JAVAC_DIR"`
111111
AC_MSG_RESULT($JDK)
112112

113113
AC_MSG_CHECKING(for location to put JARs)
114-
JAR_DIR=`/bin/sh tinyos/misc/tos-locate-jre --jni`/../ext
114+
115+
if test "$prefix" != "NONE"; then
116+
JAR_DIR="$prefix/lib/java"
117+
else
118+
JAR_DIR=`/bin/sh tinyos/misc/tos-locate-jre --jni`/../ext
119+
fi
120+
115121
AC_MSG_RESULT($JAR_DIR)
116122

117123
function jnimap {

0 commit comments

Comments
 (0)