[Libguestfs] [PATCH] configure: look for "default-java" as directory for Java

Pino Toscano ptoscano at redhat.com
Thu Jul 17 14:28:27 UTC 2014


In Debian-based systems, /usr/lib/jvm/default-java is a symlink
pointing to the location of the default Java version.
---
 configure.ac | 1 +
 1 file changed, 1 insertion(+)

diff --git a/configure.ac b/configure.ac
index ec98e4b..932bad1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1250,6 +1250,7 @@ if test "x$with_java" != "xno"; then
         # Look for Java in some likely locations.
         for d in \
             /usr/lib/jvm/java \
+            /usr/lib/jvm/default-java \
             /usr/lib/jvm/java-6-openjdk
         do
             if test -d $d && test -f $d/bin/java; then
-- 
1.9.3




More information about the Libguestfs mailing list