Annotation of sql/sqlite/configure.in, revision 1.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:
! 5: AM_INIT_AUTOMAKE(parser3sqlite, 9.0, nodefine)
! 6:
! 7: AM_CONFIG_HEADER(config_auto.h)
! 8:
! 9:
! 10: AC_DEFUN([SQLITE_INC_CHK],[
! 11: if test -r "$1/sqlite.h"; then
! 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:
! 22: if test -z "$SQLITE_INC"; then
! 23: AC_MSG_ERROR($SQLITE_INC does not seem to be valid SQLite includes directory)
! 24: fi
! 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:
! 33: if test -z "$SQLITE_INC"; then
! 34: AC_MSG_ERROR(use --with-sqlite-inc=DIR to specify SQLite includes directory)
! 35: fi
! 36:
! 37: AC_MSG_RESULT($SQLITE_INC)
! 38: )
! 39:
! 40: AC_SUBST(SQLITE_INC)
! 41:
! 42:
! 43:
! 44: dnl Checks for programs.
! 45: AC_PROG_INSTALL
! 46: AC_PROG_MAKE_SET
! 47: AC_PROG_AWK
! 48: AC_PROG_CXX
! 49: AC_PROG_CC
! 50:
! 51: dnl most tests should be compiled with C compiler [especially qsort test]
! 52: AC_LANG_C
! 53:
! 54: dnl Enable building of the convenience library
! 55: dnl and set LIBLTDL accordingly
! 56: AC_LIBLTDL_CONVENIENCE
! 57: dnl Substitute INCLTDL and LIBLTDL in the Makefiles
! 58: AC_SUBST(INCLTDL)
! 59: AC_SUBST(LIBLTDL)
! 60: AC_SUBST(LIBADD_DL)
! 61: dnl Configure libtool
! 62: AC_DISABLE_STATIC
! 63: AC_LIBTOOL_WIN32_DLL
! 64: AC_PROG_LIBTOOL
! 65: dnl Configure libltdl
! 66: AC_CONFIG_SUBDIRS(libltdl)
! 67:
! 68: dnl Checks for libraries.
! 69:
! 70: dnl Checks for header files.
! 71:
! 72: AC_CHECK_HEADERS(
! 73: stdio.h \
! 74: stdlib.h \
! 75: string.h \
! 76: setjmp.h \
! 77: ctype.h
! 78: )
! 79:
! 80: dnl Checks for typedefs, structures, and compiler characteristics.
! 81:
! 82: AC_TYPE_SIZE_T
! 83:
! 84: dnl Checks for library functions.
! 85:
! 86: dnl Output makefiles
! 87:
! 88: AC_OUTPUT(Makefile)
E-mail: