diff options
Diffstat (limited to 'ext/java/config.m4')
| -rw-r--r-- | ext/java/config.m4 | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ext/java/config.m4 b/ext/java/config.m4 index 925ae40f64..af691ca3d1 100644 --- a/ext/java/config.m4 +++ b/ext/java/config.m4 @@ -26,6 +26,20 @@ 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, e.g. --with-java=/java expecting /java/bin/ to contain the binaries]) |
