[libgda] Handle JDK 1.7 for java detection
- From: Vivien Malerba <vivien src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] Handle JDK 1.7 for java detection
- Date: Sun, 13 Nov 2011 20:00:14 +0000 (UTC)
commit 9c9fc5a434752218aa29ee2c6ecdb372ad5b4a6d
Author: Vivien Malerba <malerba gnome-db org>
Date: Sun Nov 13 20:59:25 2011 +0100
Handle JDK 1.7 for java detection
m4/java.m4 | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/m4/java.m4 b/m4/java.m4
index c1f5e66..7f8e264 100644
--- a/m4/java.m4
+++ b/m4/java.m4
@@ -170,6 +170,11 @@ m4_define([_JAVA_CHECK_INTERNAL],
JTYPE="Sun JRE 1.6"
JFLAGS="-Xlint:unchecked -Xlint:deprecation"
;;
+ JRE1.7.*)
+ try_java=true
+ JTYPE="Sun JRE 1.7"
+ JFLAGS="-Xlint:unchecked -Xlint:deprecation"
+ ;;
JREgcj-4*)
try_java=true
JTYPE="GCJ"
@@ -281,6 +286,7 @@ m4_define([_JAVA_CHECK_INTERNAL],
#include <jni.h>
int main(void) {
jobject o;
+ o = NULL;
return 0;
}])],
[AC_MSG_RESULT(yes)],
@@ -294,6 +300,7 @@ int main(void) {
#include <jni.h>
int main(void) {
jobject o;
+ o = NULL;
return 0;
}])],
[AC_MSG_RESULT(yes)],
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]