adding in PATH check for JavaJar as well...

This commit is contained in:
Dan Kalowsky 2002-08-14 14:36:08 +00:00
parent 63874f9017
commit ba07aa06d8
2 changed files with 20 additions and 4 deletions

View file

@ -16,9 +16,17 @@ AC_DEFUN(JAVA_FIND_JAR, [
if test -z "$JAVA_JAR"; then if test -z "$JAVA_JAR"; then
JAVA_JAR='zip -q0' JAVA_JAR='zip -q0'
fi fi
else
PHP_SUBST(JAVA_JAR) dnl
dnl we have a custom path defined so use it
dnl
if test -d $PHP_JAVA/bin; then
JAVA_JAR=$PHP_JAVA/bin/javac
else
AC_MSG_ERROR([Unable to locate $PHP_JAVA/bin])
fi fi
fi
PHP_SUBST(JAVA_JAR)
AC_MSG_RESULT(`echo $JAVA_JAR`) AC_MSG_RESULT(`echo $JAVA_JAR`)
]) ])

View file

@ -16,9 +16,17 @@ AC_DEFUN(JAVA_FIND_JAR, [
if test -z "$JAVA_JAR"; then if test -z "$JAVA_JAR"; then
JAVA_JAR='zip -q0' JAVA_JAR='zip -q0'
fi fi
else
PHP_SUBST(JAVA_JAR) dnl
dnl we have a custom path defined so use it
dnl
if test -d $PHP_JAVA/bin; then
JAVA_JAR=$PHP_JAVA/bin/javac
else
AC_MSG_ERROR([Unable to locate $PHP_JAVA/bin])
fi fi
fi
PHP_SUBST(JAVA_JAR)
AC_MSG_RESULT(`echo $JAVA_JAR`) AC_MSG_RESULT(`echo $JAVA_JAR`)
]) ])