[libgda/LIBGDA_5.2: 4/5] JDBC: Fix Sun JRE 1.8 detection



commit f59192a3e0f551071bc26a95b42738d955fc8e36
Author: Kalev Lember <klember redhat com>
Date:   Tue Dec 4 16:34:48 2018 +0100

    JDBC: Fix Sun JRE 1.8 detection
    
    Backport a portion of commit 0111e14 from master that added JRE 1.8
    detection.

 m4/java.m4 | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/m4/java.m4 b/m4/java.m4
index e659a1bec..f036e4c79 100644
--- a/m4/java.m4
+++ b/m4/java.m4
@@ -173,6 +173,11 @@ m4_define([_JAVA_CHECK_INTERNAL],
                    JTYPE="Sun JRE 1.7"
                    JFLAGS="-Xlint:unchecked -Xlint:deprecation"
                    ;;
+                JRE1.8.*)
+                   try_java=true
+                   JTYPE="Sun JRE 1.8"
+                   JFLAGS="-Xlint:unchecked -Xlint:deprecation"
+                   ;;
                 JREgcj-4*)
                    try_java=true
                    JTYPE="GCJ"
@@ -224,7 +229,7 @@ m4_define([_JAVA_CHECK_INTERNAL],
            fi
        else
            AC_MSG_RESULT([no])
-           AC_MSG_WARN([Java not found. Please install JDK 1.4 or later, make sure that the binaries are on 
the PATH and re-try. If that doesn't work, set JAVA_HOME correspondingly.])
+           AC_MSG_WARN([Java not found. Please install JDK 1.5 or later, make sure that the binaries are on 
the PATH and re-try. If that doesn't work, set JAVA_HOME correspondingly.])
            try_java=false
        fi
     fi


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