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

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.10      moko        5: AM_INIT_AUTOMAKE(parser3sqlite, 10.2, nodefine)
1.1       misha       6: 
                      7: AM_CONFIG_HEADER(config_auto.h)
                      8: 
                      9: AC_DEFUN([SQLITE_INC_CHK],[
1.2       misha      10:        if test -r "$1/sqlite3.h"; then
1.1       misha      11:                SQLITE_INC=$1
                     12:        fi
                     13: ])
                     14:        
                     15: dnl Arguments
                     16: 
                     17: AC_ARG_WITH(sqlite-inc,[  --with-sqlite-inc=DIR        DIR is the SQLite includes directory],
                     18:        SQLITE_INC_CHK($withval)
                     19: 
1.5       misha      20:        if test -z "$SQLITE_INC"; then
1.1       misha      21:                AC_MSG_ERROR($SQLITE_INC does not seem to be valid SQLite includes directory)
1.5       misha      22:        fi
1.1       misha      23: ,
                     24:        AC_MSG_CHECKING(for SQLITE_INC directory)
                     25:        for d in \
1.11      moko       26:                /usr/local/include \
                     27:                /usr/include \
1.1       misha      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: 
1.7       misha      42: AC_ARG_WITH(dynamic-stdcpp, [  --with-dynamic-stdcpp   link libstdc++ dynamically
                     43:                           by default, libstdc++ is linked statically],[
                     44:                LDFLAGS="-lstdc++"
                     45: ],[
                     46:                LDFLAGS="-Wl,-Bstatic -Wl,-lstdc++ -Wl,-Bdynamic"
                     47: ])
                     48: 
                     49: AC_SUBST(LDFLAGS)
                     50: 
1.1       misha      51: dnl Checks for programs.
                     52: AC_PROG_INSTALL
                     53: AC_PROG_CXX
                     54: AC_PROG_CC
                     55: 
                     56: dnl Enable building of the convenience library
                     57: dnl and set LIBLTDL accordingly
1.10      moko       58: 
                     59: LT_INIT([dlopen])
                     60: 
                     61: AC_CONFIG_MACRO_DIR([libltdl/m4])
                     62: LT_CONFIG_LTDL_DIR([libltdl])
                     63: 
1.1       misha      64: AC_LIBLTDL_CONVENIENCE
                     65: dnl Substitute INCLTDL and LIBLTDL in the Makefiles
                     66: AC_SUBST(INCLTDL)
                     67: AC_SUBST(LIBLTDL)
                     68: AC_SUBST(LIBADD_DL)
                     69: dnl Configure libtool
                     70: AC_DISABLE_STATIC
                     71: AC_LIBTOOL_WIN32_DLL
                     72: AC_PROG_LIBTOOL
1.10      moko       73: 
                     74: LTDL_INIT
1.1       misha      75: 
                     76: dnl Checks for libraries.
                     77: 
                     78: dnl Checks for header files.
                     79: 
                     80: AC_CHECK_HEADERS(
                     81: stdio.h \
                     82: stdlib.h \
                     83: string.h \
                     84: setjmp.h \
                     85: ctype.h
                     86: )
                     87: 
                     88: dnl Checks for typedefs, structures, and compiler characteristics.
                     89: 
                     90: AC_TYPE_SIZE_T
                     91: 
                     92: dnl Checks for library functions.
                     93: 
                     94: dnl Output makefiles
                     95: 
                     96: AC_OUTPUT(Makefile)

E-mail: