diff options
author | Markus Fischer <mfischer@php.net> | 2002-05-11 03:11:46 +0000 |
---|---|---|
committer | Markus Fischer <mfischer@php.net> | 2002-05-11 03:11:46 +0000 |
commit | c7a15e63886fdf7f189e79a4efc4c0d6e4e28be9 (patch) | |
tree | f8a34cba7cbc6de2c99e499665c360e38777caa8 /ext/rpc/java | |
parent | f314d24d030dca3d1dd815d8ac4dad7d85f28ac3 (diff) | |
download | php-git-c7a15e63886fdf7f189e79a4efc4c0d6e4e28be9.tar.gz |
- Fail gracefully and not just bail out with an error message from dirname
because no argument was given.
Diffstat (limited to 'ext/rpc/java')
-rw-r--r-- | ext/rpc/java/config.m4 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/rpc/java/config.m4 b/ext/rpc/java/config.m4 index fba422696a..6ad4afbed4 100644 --- a/ext/rpc/java/config.m4 +++ b/ext/rpc/java/config.m4 @@ -21,6 +21,12 @@ if test "$PHP_JAVA" != "no"; then else JAVA_JAR= fi + PHP_JAVAC=`which javac` + if test -z "$PHP_JAVAC"; 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]) + fi PHP_JAVA=`cd \`dirname \\\`which javac\\\`\`/..;pwd` else test -x $PHP_JAVA/bin/jar && JAVA_JAR="$PHP_JAVA/bin/jar cf" |