[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Libguestfs] [PATCH 2/2] configure: output paths where java is searched in



Output each path where we attempt to find 'java', so it is easier to
spot whether the location for the current OS is missing.  This also
removes the need to print the location next to the version, since the
location was already printed above.
---
 m4/guestfs_java.m4 | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/m4/guestfs_java.m4 b/m4/guestfs_java.m4
index 347cab6da..b86f0c423 100644
--- a/m4/guestfs_java.m4
+++ b/m4/guestfs_java.m4
@@ -50,9 +50,13 @@ if test "x$with_java" != "xno"; then
             /usr/lib/jvm/java-7-openjdk \
             /usr/lib/jvm/java-6-openjdk
         do
+            AC_MSG_CHECKING([for 'java' in $d])
             if test -d $d && test -f $d/bin/java; then
+                AC_MSG_RESULT([found])
                 JAVA=$d
                 break
+            else
+                AC_MSG_RESULT([not found])
             fi
         done
     fi
@@ -85,7 +89,7 @@ if test "x$with_java" != "xno"; then
             JAR="$JAVA/bin/jar"
         fi
         java_version=`$JAVA_EXE -version 2>&1 | $AWK -F '"' '/^(java|openjdk) version/ {print $2;}'`
-        AC_MSG_RESULT(found $java_version in $JAVA)
+        AC_MSG_RESULT(found $java_version)
 
         dnl Find jni.h.
         AC_MSG_CHECKING([for jni.h])
-- 
2.13.4


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]