source: gs2-extensions/tdb/trunk/src/jni/configure.ac@ 30211

Last change on this file since 30211 was 30211, checked in by jmt12, 9 years ago

Extended configuration template with tests for Java, JNI, and TDB (header and library). The last of these depends upon CPPFLAGS and LDFLAGS being passed into the call to configure to correctly find TDB.

File size: 976 bytes
Line 
1# -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3
4AC_PREREQ(2.59)
5AC_INIT([tdbjava], [1.0], [[email protected]])
6AM_INIT_AUTOMAKE
7AC_CANONICAL_HOST
8AC_CONFIG_SRCDIR([org_greenstone_tdbjava_TDBJava.c])
9AC_CONFIG_HEADER([config.h])
10AC_CONFIG_MACRO_DIR([m4])
11LT_INIT
12
13# Checks for programs.
14AC_PROG_CC
15AC_PROG_JAVAC
16AC_PROG_JAVA
17AX_JNI_INCLUDE_DIR
18for JNI_INCLUDE_DIR in $JNI_INCLUDE_DIRS
19do
20 JNI_CFLAGS="$JNI_CFLAGS -I$JNI_INCLUDE_DIR"
21done
22AC_SUBST([JNI_INCLUDE_DIRS], $JNI_CFLAGS)
23
24# Checks for typedefs, structures, and compiler characteristics.
25AC_CHECK_HEADER_STDBOOL
26
27# Checks for header files.
28AC_CHECK_HEADERS([fcntl.h limits.h stdlib.h string.h])
29AC_CHECK_HEADER([tdb.h], , [AC_MSG_ERROR([Couldn't find tdb.h])])
30
31# Checks for libraries.
32AC_CHECK_LIB([tdb], [tdb_open])
33
34# Checks for library functions.
35AC_CHECK_FUNCS([strerror])
36
37# Completion
38AC_CONFIG_FILES([Makefile])
39AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.