Alien-SVN
view release on metacpan or search on metacpan
src/subversion/build/ac-macros/java.m4 view on Meta::CPAN
if test "$where" != "check"; then
AC_MSG_WARN([no JNI header files found.])
if test "$os_arch" = "Darwin"; then
AC_MSG_WARN([You may need to install the latest Java Development package from http://connect.apple.com/. Apple no longer includes the JNI header files by default on Java updates.])
fi
fi
fi
if test "$JDK_SUITABLE" = "yes"; then
JAVA_BIN='$(JDK)/bin'
JAVA="$JAVA_BIN/java"
JAVAC="$JAVA_BIN/javac"
JAVAH="$JAVA_BIN/javah"
JAVADOC="$JAVA_BIN/javadoc"
JAR="$JAVA_BIN/jar"
dnl Prefer Jikes (for speed) if available.
jikes_options="/usr/local/bin/jikes /usr/bin/jikes"
AC_ARG_WITH(jikes,
AS_HELP_STRING([--with-jikes=PATH],
[Specify the path to a jikes binary to use
it as your Java compiler. The default is to
look for jikes (PATH optional). This behavior
can be switched off by supplying 'no'.]),
[
if test "$withval" != "no" && test "$withval" != "yes"; then
dnl Assume a path was provided.
jikes_options="$withval $jikes_options"
fi
requested_jikes="$withval" # will be 'yes' if path unspecified
])
if test "$requested_jikes" != "no"; then
dnl Look for a usable jikes binary.
for jikes in $jikes_options; do
if test -z "$jikes_found" && test -x "$jikes"; then
jikes_found="yes"
JAVAC="$jikes"
JAVA_CLASSPATH="$JRE_LIB_DIR"
for jar in $JRE_LIB_DIR/*.jar; do
JAVA_CLASSPATH="$JAVA_CLASSPATH:$jar"
done
fi
done
fi
if test -n "$requested_jikes" && test "$requested_jikes" != "no"; then
dnl Jikes was explicitly requested. Verify that it was provided.
if test -z "$jikes_found"; then
AC_MSG_ERROR([Could not find a usable version of Jikes])
elif test -n "$jikes_found" && test "$requested_jikes" != "yes" &&
test "$JAVAC" != "$requested_jikes"; then
AC_MSG_WARN([--with-jikes PATH was invalid, substitute found])
fi
fi
dnl Add javac flags.
# The release for "-source" could actually be greater than that
# of "-target", if we want to cross-compile for lesser JVMs.
if test -z "$JAVAC_FLAGS"; then
JAVAC_FLAGS="-target $JAVA_OLDEST_WORKING_VER -source 1.5"
if test "$enable_debugging" = "yes"; then
JAVAC_FLAGS="-g -Xlint:unchecked $JAVAC_FLAGS"
fi
fi
JNI_INCLUDES="-I$JNI_INCLUDEDIR"
list="`find "$JNI_INCLUDEDIR" -type d -print`"
for dir in $list; do
JNI_INCLUDES="$JNI_INCLUDES -I$dir"
done
fi
dnl We use JDK in the Makefile
AC_SUBST(JDK)
AC_SUBST(JAVA)
AC_SUBST(JAVAC)
AC_SUBST(JAVAC_FLAGS)
AC_SUBST(JAVADOC)
AC_SUBST(JAVAH)
AC_SUBST(JAR)
AC_SUBST(JNI_INCLUDES)
])
( run in 0.580 second using v1.01-cache-2.11-cpan-02777c243ea )