Annotation of sql/sqlite/configure.in, revision 1.8.2.1
1.1 misha 1: dnl Process this file with autoconf to produce a configure script.
2: AC_INIT(parser3sqlite.C)
3: AC_PREREQ(2.57)
4:
1.8.2.1 ! misha 5: AM_INIT_AUTOMAKE(parser3sqlite, 10.1, nodefine)
1.1 misha 6:
7: AM_CONFIG_HEADER(config_auto.h)
8:
9:
10: AC_DEFUN([SQLITE_INC_CHK],[
1.2 misha 11: if test -r "$1/sqlite3.h"; then
1.1 misha 12: SQLITE_INC=$1
13: fi
14: ])
15:
16:
17: dnl Arguments
18:
19: AC_ARG_WITH(sqlite-inc,[ --with-sqlite-inc=DIR DIR is the SQLite includes directory],
20: SQLITE_INC_CHK($withval)
21:
1.5 misha 22: if test -z "$SQLITE_INC"; then
1.1 misha 23: AC_MSG_ERROR($SQLITE_INC does not seem to be valid SQLite includes directory)
1.5 misha 24: fi
1.1 misha 25: ,
26: AC_MSG_CHECKING(for SQLITE_INC directory)
27: for d in \
28: /usr/local/include/sqlite \
29: /usr/include/sqlite ; do
30: SQLITE_INC_CHK($d)
31: done
32:
1.5 misha 33: if test -z "$SQLITE_INC"; then
34: AC_MSG_ERROR(use --with-sqlite-inc=DIR to specify SQLite includes directory)
35: fi
1.1 misha 36:
37: AC_MSG_RESULT($SQLITE_INC)
38: )
39:
40: AC_SUBST(SQLITE_INC)
41:
42:
43:
1.7 misha 44: AC_ARG_WITH(dynamic-stdcpp, [ --with-dynamic-stdcpp link libstdc++ dynamically
45: by default, libstdc++ is linked statically],[
46: LDFLAGS="-lstdc++"
47: ],[
48: LDFLAGS="-Wl,-Bstatic -Wl,-lstdc++ -Wl,-Bdynamic"
49: ])
50:
51: AC_SUBST(LDFLAGS)
52:
53:
1.1 misha 54: dnl Checks for programs.
55: AC_PROG_INSTALL
56: AC_PROG_MAKE_SET
57: AC_PROG_AWK
58: AC_PROG_CXX
59: AC_PROG_CC
60:
61: dnl most tests should be compiled with C compiler [especially qsort test]
62: AC_LANG_C
63:
64: dnl Enable building of the convenience library
65: dnl and set LIBLTDL accordingly
66: AC_LIBLTDL_CONVENIENCE
67: dnl Substitute INCLTDL and LIBLTDL in the Makefiles
68: AC_SUBST(INCLTDL)
69: AC_SUBST(LIBLTDL)
70: AC_SUBST(LIBADD_DL)
71: dnl Configure libtool
72: AC_DISABLE_STATIC
73: AC_LIBTOOL_WIN32_DLL
74: AC_PROG_LIBTOOL
75: dnl Configure libltdl
76: AC_CONFIG_SUBDIRS(libltdl)
77:
78: dnl Checks for libraries.
79:
80: dnl Checks for header files.
81:
82: AC_CHECK_HEADERS(
83: stdio.h \
84: stdlib.h \
85: string.h \
86: setjmp.h \
87: ctype.h
88: )
89:
90: dnl Checks for typedefs, structures, and compiler characteristics.
91:
92: AC_TYPE_SIZE_T
93:
94: dnl Checks for library functions.
95:
96: dnl Output makefiles
97:
98: AC_OUTPUT(Makefile)
E-mail: