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

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 \
                     26:                /usr/local/include/sqlite \
                     27:                /usr/include/sqlite ; do
                     28:                SQLITE_INC_CHK($d)
                     29:        done
                     30: 
1.5       misha      31:        if test -z "$SQLITE_INC"; then
                     32:                AC_MSG_ERROR(use --with-sqlite-inc=DIR to specify SQLite includes directory)
                     33:        fi
1.1       misha      34: 
                     35:        AC_MSG_RESULT($SQLITE_INC)
                     36: )
                     37: 
                     38: AC_SUBST(SQLITE_INC)
                     39: 
1.7       misha      40: AC_ARG_WITH(dynamic-stdcpp, [  --with-dynamic-stdcpp   link libstdc++ dynamically
                     41:                           by default, libstdc++ is linked statically],[
                     42:                LDFLAGS="-lstdc++"
                     43: ],[
                     44:                LDFLAGS="-Wl,-Bstatic -Wl,-lstdc++ -Wl,-Bdynamic"
                     45: ])
                     46: 
                     47: AC_SUBST(LDFLAGS)
                     48: 
1.1       misha      49: dnl Checks for programs.
                     50: AC_PROG_INSTALL
                     51: AC_PROG_CXX
                     52: AC_PROG_CC
                     53: 
                     54: dnl Enable building of the convenience library
                     55: dnl and set LIBLTDL accordingly
1.10    ! moko       56: 
        !            57: LT_INIT([dlopen])
        !            58: 
        !            59: AC_CONFIG_MACRO_DIR([libltdl/m4])
        !            60: LT_CONFIG_LTDL_DIR([libltdl])
        !            61: 
1.1       misha      62: AC_LIBLTDL_CONVENIENCE
                     63: dnl Substitute INCLTDL and LIBLTDL in the Makefiles
                     64: AC_SUBST(INCLTDL)
                     65: AC_SUBST(LIBLTDL)
                     66: AC_SUBST(LIBADD_DL)
                     67: dnl Configure libtool
                     68: AC_DISABLE_STATIC
                     69: AC_LIBTOOL_WIN32_DLL
                     70: AC_PROG_LIBTOOL
1.10    ! moko       71: 
        !            72: LTDL_INIT
1.1       misha      73: 
                     74: dnl Checks for libraries.
                     75: 
                     76: dnl Checks for header files.
                     77: 
                     78: AC_CHECK_HEADERS(
                     79: stdio.h \
                     80: stdlib.h \
                     81: string.h \
                     82: setjmp.h \
                     83: ctype.h
                     84: )
                     85: 
                     86: dnl Checks for typedefs, structures, and compiler characteristics.
                     87: 
                     88: AC_TYPE_SIZE_T
                     89: 
                     90: dnl Checks for library functions.
                     91: 
                     92: dnl Output makefiles
                     93: 
                     94: AC_OUTPUT(Makefile)

E-mail: