Annotation of sql/sqlite/configure.ac, revision 1.6
1.1 moko 1: dnl Autoconf initialisation
2: AC_PREREQ(2.59)
1.6 ! moko 3: AC_INIT(parser3sqlite, 10.5)
1.1 moko 4: AC_CONFIG_SRCDIR(parser3sqlite.C)
5: AM_CONFIG_HEADER(config_auto.h)
6:
7: dnl Automake Initialisation
8: AM_INIT_AUTOMAKE
9:
10: dnl Checks for argumenrs
11: AC_DEFUN([SQLITE_INC_CHK],[
12: if test -r "$1/sqlite3.h"; then
13: SQLITE_INC=$1
14: fi
15: ])
16:
17: dnl Arguments
18: AC_ARG_WITH(sqlite-inc,[ --with-sqlite-inc=DIR DIR is the SQLite includes directory],
19: SQLITE_INC_CHK($withval)
20:
21: if test -z "$SQLITE_INC"; then
22: AC_MSG_ERROR($SQLITE_INC does not seem to be valid SQLite includes directory)
23: fi
24: ,
25: AC_MSG_CHECKING(for SQLITE_INC directory)
26: for d in \
27: /usr/local/include \
28: /usr/include \
29: /usr/local/include/sqlite \
30: /usr/include/sqlite ; do
31: SQLITE_INC_CHK($d)
32: done
33:
34: if test -z "$SQLITE_INC"; then
35: AC_MSG_ERROR(use --with-sqlite-inc=DIR to specify SQLite includes directory)
36: fi
37:
38: AC_MSG_RESULT($SQLITE_INC)
39: )
40:
41: AC_SUBST(SQLITE_INC)
42:
43: dnl Checks for programs
44: AC_PROG_INSTALL
45: AC_PROG_CXX
46: AC_PROG_CC
47:
48: dnl Enable building of the convenience library
49: LT_CONFIG_LTDL_DIR(libltdl)
50: LT_INIT(disable-static dlopen win32-dll)
51: LTDL_INIT
52:
53: dnl Checks for libraries
54:
55: dnl Checks for header files
56: AC_CHECK_HEADERS(
57: stdio.h \
58: stdlib.h \
59: string.h \
60: setjmp.h \
61: ctype.h
62: )
63:
64: dnl Checks for typedefs, structures, and compiler characteristics
65: AC_TYPE_SIZE_T
66:
67: dnl Checks for library functions
68:
69: dnl Output makefiles
70: AC_OUTPUT(Makefile)
E-mail: