aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank Warmerdam <warmerdam@pobox.com>2004-10-25 14:02:56 +0000
committerFrank Warmerdam <warmerdam@pobox.com>2004-10-25 14:02:56 +0000
commite22d4059d84c8870b3601b91423fb6a212218a47 (patch)
treefe6e1c8bfc7c3ff3d40c51b5aa3636444015769d
parentbc4aafbde6fa24f4f627bb432c068a4733cec4e8 (diff)
downloadPROJ-e22d4059d84c8870b3601b91423fb6a212218a47.tar.gz
PROJ-e22d4059d84c8870b3601b91423fb6a212218a47.zip
added --with-jni
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1240 4e78687f-474d-0410-85f9-8d5e500ac6b2
-rw-r--r--configure.in29
1 files changed, 29 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 0cc906a5..02cbda3c 100644
--- a/configure.in
+++ b/configure.in
@@ -16,5 +16,34 @@ AC_CHECK_LIB(m,exp,,,)
dnl We check for headers
AC_HEADER_STDC
+dnl ---------------------------------------------------------------------------
+dnl Check for JNI support.
+dnl ---------------------------------------------------------------------------
+
+AC_CHECKING(whether to enable Java/JNI support)
+
+AC_ARG_WITH(jni,
+[ --with-jni Include Java/JNI support],,)
+
+if test "$with_jni" = "yes" ; then
+
+ JNI_ENABLED=1
+
+ AC_DEFINE(JNI_ENABLED,1,[Enabled for Java/JNI Support])
+
+ AC_MSG_RESULT([enabled])
+
+elif test -n "$with_jni" -a "$with_jni" != "no" ; then
+
+ THREAD_FLAG=-DCPL_MULTIPROC_PTHREAD
+ THREAD_LIB="$with_threads"
+
+ AC_MSG_RESULT([disabled])
+
+else
+ AC_MSG_RESULT([disabled])
+fi
+
+
AC_OUTPUT(Makefile src/Makefile man/Makefile man/man1/Makefile \
man/man3/Makefile nad/Makefile)