autoconf-archive-maintainers
[Top][All Lists]
Advanced

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

AX_JNI_INCLUDE_DIR and FreeBSD


From: Antoine Brodin
Subject: AX_JNI_INCLUDE_DIR and FreeBSD
Date: Mon, 4 Feb 2013 22:22:39 +0000

Hello,

The AX_JNI_INCLUDE_DIR macro does not seem to work on FreeBSD.

I see 2 problems.

1) _JTOPDIR and _JINC are not set correctly
On freebsd,  /usr/local/bin/javac is a symlink to /usr/local/bin/javavm
javavm is a shell script which parses /usr/local/etc/javavms and
/usr/local/etc/javavm_opts.conf to determine what to launch
For instance I have this is my /usr/local/etc/javavms  file:
/usr/local/openjdk6/bin/java # OpenJDK6

So my jni.h header is located here:
/usr/local/openjdk6/include/jni.h
I don't know how to fix this.

2) This one is easy to fix,  freebsd is not listed as possible host_os line 83.
Just adding this line does the trick:
freebsd*)          _JNI_INC_SUBDIRS="freebsd";;

Cheers,

Antoine



reply via email to

[Prev in Thread] Current Thread [Next in Thread]