Mercurial > hg > octave-lyh
changeset 15761:9f3656ada658
configure.ac: Add warning message if JAVA_HOME variable is not set.
* configure.ac: Add warning message if JAVA_HOME variable is not set.
author | Rik <rik@octave.org> |
---|---|
date | Sun, 09 Dec 2012 15:07:24 -0800 |
parents | 1ac3c906990a |
children | a5475ba0d199 |
files | configure.ac |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/configure.ac +++ b/configure.ac @@ -2220,7 +2220,7 @@ HAVE_JAVA=no ## Grab JAVA_HOME from environment variable if it exists -AC_ARG_VAR([JAVA_HOME], [path to Java installation]) +AC_ARG_VAR([JAVA_HOME], [path to Java JDK installation]) JAVA_ARCH= JAVAC= JAR= @@ -2232,6 +2232,11 @@ warn_java= if test -z "$JAVA_HOME"; then + AC_MSG_WARN([JAVA_HOME environment variable not initialized.]) + AC_MSG_WARN([Auto-detection will proceed but is unreliable.]) + fi + + if test -z "$JAVA_HOME"; then AC_CHECK_PROG(JAVA, java, java) AC_CHECK_PROG(JAVAC, javac, javac) AC_CHECK_PROG(JAR, jar, jar)