summaryrefslogtreecommitdiff
path: root/math/octave/files/patch-configure
blob: b595f2e1dc5ff99d2255178f70d23c12ad3b9c65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- configure.orig	2019-03-10 01:37:34 UTC
+++ configure
@@ -78809,6 +78809,13 @@ $as_echo_n "checking for include file <jni.h>... " >&6
         JAVA_CPPFLAGS="-I${JAVA_HOME}/include -I${JAVA_HOME}/include/darwin"
       fi
     ;;
+    freebsd*)
+      if test -n "$JAVA_CPPFLAGS"; then
+        JAVA_CPPFLAGS="-I${JAVA_CPPFLAGS} -I${JAVA_CPPFLAGS}/freebsd"
+      else
+        JAVA_CPPFLAGS="-I${JAVA_HOME}/include -I${JAVA_HOME}/include/freebsd"
+      fi
+    ;;
     *)
       if test -n "$JAVA_CPPFLAGS"; then
         JAVA_CPPFLAGS="-I${JAVA_CPPFLAGS} -I${JAVA_CPPFLAGS}/linux"