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

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

E-mail: