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