File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,9 @@ AC_DEFUN([OPAL_SETUP_JAVA],[
95
95
[ # OS X Snow Leopard and Lion (10.6 and 10.7 -- did not
96
96
# check prior versions)
97
97
opal_java_found= 0
98
- opal_java_dir= /System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers
98
+ AS_IF([test -x /usr/libexec/java_home],
99
+ [opal_java_dir= ` /usr/libexec/java_home` /include],
100
+ [opal_java_dir= /System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers])
99
101
AC_MSG_CHECKING([OSX locations])
100
102
AS_IF([test -d $opal_java_dir ],
101
103
[AC_MSG_RESULT([found ($opal_java_dir )])
@@ -186,6 +188,11 @@ AC_DEFUN([OPAL_SETUP_JAVA],[
186
188
# too. Ugh.
187
189
AS_IF([test -d " $with_jdk_headers /solaris" ],
188
190
[OPAL_JDK_CPPFLAGS= " $OPAL_JDK_CPPFLAGS -I$with_jdk_headers /solaris" ])
191
+ # Darwin JDK also require -I<blah>/darwin.
192
+ # See if that's there, and if so, add a -I for that,
193
+ # too. Ugh.
194
+ AS_IF([test -d " $with_jdk_headers /darwin" ],
195
+ [OPAL_JDK_CPPFLAGS= " $OPAL_JDK_CPPFLAGS -I$with_jdk_headers /darwin" ])
189
196
190
197
CPPFLAGS= " $CPPFLAGS $OPAL_JDK_CPPFLAGS " ])
191
198
AC_CHECK_HEADER([jni.h], [],
You can’t perform that action at this time.
0 commit comments