From 5e77bdeb2559a2f456ac09b48029e551c1e6a319 Mon Sep 17 00:00:00 2001 From: Gabriel Pichot Date: Sat, 28 Nov 2015 17:54:43 +0100 Subject: [PATCH] Adds darwin headers directory with Darwin JDK --- config/opal_setup_java.m4 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/opal_setup_java.m4 b/config/opal_setup_java.m4 index 7de58260e7..ace116026a 100644 --- a/config/opal_setup_java.m4 +++ b/config/opal_setup_java.m4 @@ -186,6 +186,11 @@ AC_DEFUN([OPAL_SETUP_JAVA],[ # too. Ugh. AS_IF([test -d "$with_jdk_headers/solaris"], [OPAL_JDK_CPPFLAGS="$OPAL_JDK_CPPFLAGS -I$with_jdk_headers/solaris"]) + # Darwin JDK also require -I/darwin. + # See if that's there, and if so, add a -I for that, + # too. Ugh. + AS_IF([test -d "$with_jdk_headers/darwin"], + [OPAL_JDK_CPPFLAGS="$OPAL_JDK_CPPFLAGS -I$with_jdk_headers/darwin"]) CPPFLAGS="$CPPFLAGS $OPAL_JDK_CPPFLAGS"]) AC_CHECK_HEADER([jni.h], [],