Annotation of sql/oracle/configure.in, revision 1.4

1.1       parser      1: dnl Process this file with autoconf to produce a configure script.
                      2: AC_INIT(parser3oracle.C)
                      3: AM_INIT_AUTOMAKE(parser3oracleclient, 3.0g, nodefine)
                      4: 
                      5: AM_CONFIG_HEADER(config_auto.h)
                      6: 
                      7: dnl Arguments
                      8: 
1.2       parser      9: AC_ARG_WITH(oracleoci-inc,[  --with-oracleoci-inc[=DIR]      DIR is the Oracle OCI includes directory],,
1.1       parser     10:        withval="$ORACLE_HOME/rdbms/demo"
                     11: )
1.2       parser     12: ORACLE_OCI_INC=$withval
                     13: AC_SUBST(ORACLE_OCI_INC)
1.1       parser     14: 
1.2       parser     15: if test \! -f "$ORACLE_OCI_INC/oci.h"; then
                     16:        AC_MSG_ERROR($ORACLE_OCI_INC does not seem to be valid Oracle OCI includes directory)
                     17: fi
                     18: 
                     19: 
                     20: AC_ARG_WITH(oraclepublic-inc,[  --with-oraclepublic-inc[=DIR]      DIR is the Oracle public includes directory],,
1.1       parser     21:        withval="$ORACLE_HOME/network/public"
                     22: )
1.2       parser     23: ORACLE_PUBLIC_INC=$withval
                     24: AC_SUBST(ORACLE_PUBLIC_INC)
                     25: 
                     26: if test \! -f "$ORACLE_PUBLIC_INC/nzt.h"; then
                     27:        AC_MSG_ERROR($ORACLE_PUBLIC_INC does not seem to be valid Oracle public includes directory)
                     28: fi
1.1       parser     29: 
                     30: 
                     31: dnl Checks for programs.
                     32: AC_PROG_INSTALL
                     33: AC_PROG_MAKE_SET
                     34: AC_PROG_AWK
                     35: 
                     36: AC_LANG_CPLUSPLUS 
                     37: AC_PROG_CXX
                     38: 
1.3       paf        39: AC_DEFUN(GCC_OPTION,
                     40: [
                     41:     AC_MSG_CHECKING(whether gcc accepts $1)
                     42:     save_CXXFLAGS=$CXXFLAGS
                     43:     CXXFLAGS="$save_CXXFLAGS $1"
                     44:     AC_TRY_COMPILE(,,
                     45:         AC_MSG_RESULT(yes)
                     46:         dnl leave CXXFLAGS
                     47:     ,          
                     48:         AC_MSG_RESULT(no)
                     49:         CXXFLAGS=$save_CXXFLAGS
                     50:     )
                     51: ])
                     52: 
                     53: if test "z$GXX" = "zyes"; then
                     54:        dnl Versions of GCC up to 2.8.0 required -fhandle-exceptions, but it is
                     55:        dnl the default in versions 2.8.0 and after.
                     56:     dnl GCC_OPTION(-fhandle-exceptions)
                     57:     GCC_OPTION(-fno-rtti)
                     58: fi
                     59: 
1.1       parser     60: dnl Enable building of the convenience library
                     61: dnl and set LIBLTDL accordingly
                     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 Check for dlopen support
                     68: AC_LIBTOOL_DLOPEN
                     69: dnl Configure libtool
                     70: AM_PROG_LIBTOOL
                     71: dnl Configure libltdl
                     72: AC_CONFIG_SUBDIRS(libltdl)
                     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 \
1.4     ! paf        83: ctype.h \
        !            84: setjmp.h
1.1       parser     85: )
                     86: 
                     87: dnl Checks for typedefs, structures, and compiler characteristics.
                     88: 
                     89: AC_TYPE_SIZE_T
                     90: 
                     91: dnl Checks for library functions.
                     92: 
                     93: dnl Output makefiles
                     94: 
                     95: AC_OUTPUT(libltdl/Makefile Makefile)

E-mail: