Annotation of sql/pgsql/configure.in, revision 1.28

1.27      moko        1: dnl Autoconf initialisation
1.24      misha       2: 
1.27      moko        3: AC_PREREQ(2.59)
                      4: AC_INIT(parser3pgsql.C, 10.3)
                      5: AC_CONFIG_SRCDIR(parser3pgsql.C)
1.24      misha       6: AM_CONFIG_HEADER(config_auto.h)
                      7: 
1.27      moko        8: dnl Automake Initialisation
                      9: 
                     10: AM_INIT_AUTOMAKE
                     11: 
                     12: dnl Checks for argumenrs
                     13: 
                     14: AC_DEFUN([PGSQL_INC_CHK],[
                     15:        if test -r "$1/libpq-fe.h"; then
                     16:                PGSQL_INC=$1
                     17:        fi
                     18: ])
                     19: 
1.24      misha      20: dnl Arguments
                     21: 
1.27      moko       22: AC_ARG_WITH(pgsql-inc,[  --with-pgsql-inc=DIR        DIR is the PgSql includes directory],
                     23:        PGSQL_INC_CHK($withval)
                     24: 
                     25:        if test -z "$PGSQL_INC"; then
                     26:                AC_MSG_ERROR($PGSQL_INC does not seem to be valid PgSql includes directory)
                     27:        fi
                     28: ,
                     29:        AC_MSG_CHECKING(for PGSQL_INC directory)
                     30:        for d in \
                     31:                /usr/local/include/postgresql \
                     32:                /usr/include/postgresql \
                     33:                /usr/local/pgsql/include ; do
                     34:                PGSQL_INC_CHK($d)
                     35:        done
                     36: 
                     37:        if test -z "$PGSQL_INC"; then
                     38:                AC_MSG_ERROR(use --with-pgsql-inc=DIR to specify PgSql includes directory)
                     39:        fi
                     40: 
                     41:        AC_MSG_RESULT($PGSQL_INC)
1.24      misha      42: )
1.27      moko       43: 
1.24      misha      44: AC_SUBST(PGSQL_INC)
                     45: 
                     46: AC_ARG_WITH(dynamic-stdcpp, [  --with-dynamic-stdcpp   link libstdc++ dynamically
                     47:                           by default, libstdc++ is linked statically],[
                     48:                LDFLAGS="-lstdc++"
                     49: ],[
                     50:                LDFLAGS="-Wl,-Bstatic -Wl,-lstdc++ -Wl,-Bdynamic"
                     51: ])
                     52: 
                     53: AC_SUBST(LDFLAGS)
                     54: 
1.27      moko       55: dnl Checks for programs
1.24      misha      56: 
                     57: AC_PROG_INSTALL
                     58: AC_PROG_CXX
                     59: AC_PROG_CC
                     60: 
                     61: dnl Enable building of the convenience library
                     62: dnl and set LIBLTDL accordingly
1.27      moko       63: 
                     64: LT_CONFIG_LTDL_DIR(libltdl)
                     65: LT_INIT(dlopen win32-dll)
                     66: LTDL_INIT
                     67: 
1.24      misha      68: dnl Configure libtool
1.27      moko       69: 
1.24      misha      70: AC_DISABLE_STATIC
                     71: 
1.27      moko       72: dnl Checks for libraries
1.24      misha      73: 
1.27      moko       74: dnl Checks for header files
1.24      misha      75: 
                     76: AC_CHECK_HEADERS(
                     77: stdio.h \
                     78: stdlib.h \
                     79: string.h \
                     80: setjmp.h \
                     81: ctype.h
                     82: )
                     83: 
1.27      moko       84: dnl Checks for typedefs, structures, and compiler characteristics
1.24      misha      85: 
                     86: AC_TYPE_SIZE_T
                     87: 
1.27      moko       88: dnl Checks for library functions
1.24      misha      89: 
                     90: dnl Output makefiles
                     91: 
                     92: AC_OUTPUT(Makefile)

E-mail: