AC_DEFUN(JAVA_FIND_C, [
AC_MSG_CHECKING([Java C location])
JAVA_C=`which javac`
+ if test -z "$JAVA_C"; then
+ dnl
+ dnl we will auto assume that the bin directory is underneath
+ dnl the user provided directory, and it includes the javac
+ dnl directory.
+ dnl
+ if test -z "$PHP_JAVA" != "yes"; then
+ if test -z $PHP_JAVA/bin; then
+ JAVA_C=$PHP_JAVA/bin/javac
+ else
+ AC_MSG_ERROR([Unable to locate $PHP_JAVA/bin])
+ fi
+ fi
+ fi
if test -z "$JAVA_C"; then
AC_MSG_ERROR([Unable to locate the javac binary in your system path
Either adjust your Java installation or provide the Java installation path,
AC_DEFUN(JAVA_FIND_C, [
AC_MSG_CHECKING([Java C location])
JAVA_C=`which javac`
+ if test -z "$JAVA_C"; then
+ dnl
+ dnl we will auto assume that the bin directory is underneath
+ dnl the user provided directory, and it includes the javac
+ dnl directory.
+ dnl
+ if test -z "$PHP_JAVA" != "yes"; then
+ if test -z $PHP_JAVA/bin; then
+ JAVA_C=$PHP_JAVA/bin/javac
+ else
+ AC_MSG_ERROR([Unable to locate $PHP_JAVA/bin])
+ fi
+ fi
+ fi
if test -z "$JAVA_C"; then
AC_MSG_ERROR([Unable to locate the javac binary in your system path
Either adjust your Java installation or provide the Java installation path,