diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 06398bfa99a7..c5ab4159e17f 100644 --- a/configure.ac +++ b/configure.ac @@ -7901,7 +7901,7 @@ fi AC_SUBST(JAVADOC) AC_SUBST(JAVADOCISGJDOC) -if test "$ENABLE_JAVA" != ""; then +if test "$ENABLE_JAVA" != "" -a \( "$cross_compiling" != "yes" -o -n "$with_jdk_home" \); then # check if JAVA_HOME was (maybe incorrectly?) set automatically to /usr if test "$JAVA_HOME" = "/usr" -a "x$with_jdk_home" = "x"; then if basename $(readlink $(readlink $JAVACOMPILER)) >/dev/null 2>/dev/null; then |