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

1.1       parser      1: dnl Process this file with autoconf to produce a configure script.
                      2: AC_INIT(parser3oracle.C)
1.8       paf         3: AM_INIT_AUTOMAKE(parser3oracle, 3.0b, nodefine)
1.1       parser      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: 
                     39: dnl Enable building of the convenience library
                     40: dnl and set LIBLTDL accordingly
                     41: AC_LIBLTDL_CONVENIENCE
                     42: dnl Substitute INCLTDL and LIBLTDL in the Makefiles
                     43: AC_SUBST(INCLTDL)
                     44: AC_SUBST(LIBLTDL)
                     45: AC_SUBST(LIBADD_DL)
                     46: dnl Check for dlopen support
                     47: AC_LIBTOOL_DLOPEN
                     48: dnl Configure libtool
1.7       paf        49: AC_DISABLE_STATIC
1.9     ! paf        50: AC_LIBTOOL_WIN32_DLL
1.1       parser     51: AM_PROG_LIBTOOL
                     52: dnl Configure libltdl
                     53: AC_CONFIG_SUBDIRS(libltdl)
                     54: 
                     55: dnl Checks for libraries.
                     56: 
                     57: dnl Checks for header files.
                     58: 
                     59: AC_CHECK_HEADERS(
                     60: stdio.h \
                     61: stdlib.h \
                     62: string.h \
                     63: setjmp.h \
1.4       paf        64: ctype.h \
                     65: setjmp.h
1.1       parser     66: )
                     67: 
1.6       paf        68: AC_MSG_CHECKING(for BSD setenv/getenv/unsetenv)
                     69: AC_TRY_COMPILE(
                     70: #ifdef HAVE_STDLIB_H
                     71: #      include <stdlib.h>
                     72: #endif
                     73: #ifdef HAVE_STRING_H
                     74: #      include <string.h>
                     75: #endif
                     76: ,
                     77: #define TEST_NAME "oracle-configure-test-var"
                     78: #define TEST_VALUE "oracle-configure-test-value"
                     79: int result=setenv(TEST_NAME, TEST_VALUE, 1/*overwrite*/);
                     80: char *getenv_value=getenv(TEST_NAME);
                     81: if(!getenv_value)
                     82:        return 1;
                     83: if(strcmp(getenv_value, TEST_VALUE)!=0)
                     84:        return 2;
                     85: unsetenv(TEST_NAME);
                     86: ,[
                     87:     AC_MSG_RESULT(yes)
                     88:        AC_DEFINE(HAVE_SETENV,,library has BSD setenv/unsetenv)
                     89: ],             
                     90:     AC_MSG_RESULT(no)
                     91: 
                     92:     AC_MSG_CHECKING(for POSIX putenv/getenv)
                     93:     AC_TRY_COMPILE(
                     94:     #ifdef HAVE_STDLIB_H
                     95:     #  include <stdlib.h>
                     96:     #endif
                     97:     #ifdef HAVE_STRING_H
                     98:     #  include <string.h>
                     99:     #endif
                    100:     ,
                    101:     #define TEST_NAME "oracle-configure-test-var"
                    102:     #define TEST_VALUE "oracle-configure-test-value"
                    103:     int result=putenv(TEST_NAME"="TEST_VALUE);
                    104:     char *getenv_value=getenv(TEST_NAME);
                    105:     if(!getenv_value)
                    106:        return 1;
                    107:     if(strcmp(getenv_value, TEST_NAME)!=0)
                    108:        return 2;
                    109:     ,[
                    110:         AC_MSG_RESULT(yes)
                    111:        AC_DEFINE(HAVE_PUTENV,,library has POSIX putenv)
                    112:     ],         
                    113:         AC_MSG_RESULT(no)
                    114:         AC_MSG_ERROR("there must be some function to modify environment")
                    115:     )
                    116: )
                    117: 
1.1       parser    118: dnl Checks for typedefs, structures, and compiler characteristics.
                    119: 
                    120: AC_TYPE_SIZE_T
                    121: 
                    122: dnl Checks for library functions.
                    123: 
                    124: dnl Output makefiles
                    125: 
                    126: AC_OUTPUT(libltdl/Makefile Makefile)

E-mail: