AC_JNI_INCLUDE_DIR finds include directories needed
for compiling programs using the JNI interface.
JNI include directories are usually in the java distribution
This is deduced from the value of JAVAC. When this macro
completes, a list of directories is left in the variable
JNI_INCLUDE_DIRS.
Example usage follows:
AC_JNI_INCLUDE_DIR
for JNI_INCLUDE_DIR in $JNI_INCLUDE_DIRS
do
CPPFLAGS="$CPPFLAGS -I$JNI_INCLUDE_DIR"
done
If you want to force a specific compiler:
- at the configure.in level, set JAVAC=yourcompiler before calling
AC_JNI_INCLUDE_DIR
- at the configure level, setenv JAVAC
Note: This macro can work with the autoconf M4 macros for Java programs.
This particular macro is not part of the original set of macros.