Annotation of sql/sqlite/configure.in, revision 1.24

1.14      moko        1: dnl Autoconf initialisation
                      2: AC_PREREQ(2.59)
                      3: AC_INIT(parser3sqlite.C, 10.2)
                      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
1.1       misha      11: AC_DEFUN([SQLITE_INC_CHK],[
1.2       misha      12:        if test -r "$1/sqlite3.h"; then
1.1       misha      13:                SQLITE_INC=$1
                     14:        fi
                     15: ])
1.14      moko       16: 
1.1       misha      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: 
1.5       misha      21:        if test -z "$SQLITE_INC"; then
1.1       misha      22:                AC_MSG_ERROR($SQLITE_INC does not seem to be valid SQLite includes directory)
1.5       misha      23:        fi
1.1       misha      24: ,
                     25:        AC_MSG_CHECKING(for SQLITE_INC directory)
                     26:        for d in \
1.11      moko       27:                /usr/local/include \
                     28:                /usr/include \
1.1       misha      29:                /usr/local/include/sqlite \
                     30:                /usr/include/sqlite ; do
                     31:                SQLITE_INC_CHK($d)
                     32:        done
                     33: 
1.5       misha      34:        if test -z "$SQLITE_INC"; then
                     35:                AC_MSG_ERROR(use --with-sqlite-inc=DIR to specify SQLite includes directory)
                     36:        fi
1.1       misha      37: 
                     38:        AC_MSG_RESULT($SQLITE_INC)
                     39: )
                     40: 
                     41: AC_SUBST(SQLITE_INC)
                     42: 
1.14      moko       43: dnl Checks for programs
1.1       misha      44: AC_PROG_INSTALL
                     45: AC_PROG_CXX
                     46: AC_PROG_CC
                     47: 
                     48: dnl Enable building of the convenience library
1.15      moko       49: LT_CONFIG_LTDL_DIR(libltdl)
1.22      moko       50: LT_INIT(disable-static dlopen win32-dll)
1.14      moko       51: LTDL_INIT
1.10      moko       52: 
1.14      moko       53: dnl Checks for libraries
1.1       misha      54: 
1.14      moko       55: dnl Checks for header files
1.1       misha      56: AC_CHECK_HEADERS(
                     57: stdio.h \
                     58: stdlib.h \
                     59: string.h \
                     60: setjmp.h \
                     61: ctype.h
                     62: )
                     63: 
1.14      moko       64: dnl Checks for typedefs, structures, and compiler characteristics
1.1       misha      65: AC_TYPE_SIZE_T
                     66: 
1.14      moko       67: dnl Checks for library functions
1.1       misha      68: 
                     69: dnl Output makefiles
                     70: AC_OUTPUT(Makefile)

E-mail: