Diff for /sql/oracle/Attic/configure.in between versions 1.1 and 1.24

version 1.1, 2001/09/21 15:43:55 version 1.24, 2008/07/07 13:25:26
Line 1 Line 1
 dnl Process this file with autoconf to produce a configure script.  dnl Process this file with autoconf to produce a configure script.
 AC_INIT(parser3oracle.C)  AC_INIT(parser3oracle.C)
 AM_INIT_AUTOMAKE(parser3oracleclient, 3.0g, nodefine)  AM_INIT_AUTOMAKE(parser3oracle, 10.0, nodefine)
   
 AM_CONFIG_HEADER(config_auto.h)  AM_CONFIG_HEADER(config_auto.h)
   
 dnl Arguments  dnl Arguments
   
 AC_ARG_WITH(oracleoci_inc,[  --with-oracleoci_inc[=DIR]      DIR is the Oracle OCI includes directory],,  AC_ARG_WITH(oracleoci-inc,[  --with-oracleoci-inc[=DIR]      DIR is the Oracle OCI includes directory],,
         withval="$ORACLE_HOME/rdbms/demo"          withval="$ORACLE_HOME/rdbms/demo"
 )  )
 ORACLEOCI_INC=$withval  ORACLE_OCI_INC=$withval
 AC_SUBST(ORACLEOCI_INC)  AC_SUBST(ORACLE_OCI_INC)
   
 AC_ARG_WITH(oraclepublic_inc,[  --with-oraclepublic_inc[=DIR]      DIR is the Oracle public includes directory],,  if test \! -f "$ORACLE_OCI_INC/oci.h"; then
           AC_MSG_ERROR($ORACLE_OCI_INC does not seem to be valid Oracle OCI includes directory)
   fi
   
   
   AC_ARG_WITH(oraclepublic-inc,[  --with-oraclepublic-inc[=DIR]      DIR is the Oracle public includes directory],,
         withval="$ORACLE_HOME/network/public"          withval="$ORACLE_HOME/network/public"
 )  )
 ORACLEPUBLIC_INC=$withval  ORACLE_PUBLIC_INC=$withval
 AC_SUBST(ORACLEPUBLIC_INC)  AC_SUBST(ORACLE_PUBLIC_INC)
   
   if test \! -f "$ORACLE_PUBLIC_INC/nzt.h"; then
           AC_MSG_ERROR($ORACLE_PUBLIC_INC does not seem to be valid Oracle public includes directory)
   fi
   
   
 dnl Checks for programs.  dnl Checks for programs.
 AC_PROG_INSTALL  AC_PROG_INSTALL
 AC_PROG_MAKE_SET  AC_PROG_MAKE_SET
 AC_PROG_AWK  AC_PROG_AWK
   
 AC_LANG_CPLUSPLUS   
 AC_PROG_CXX  AC_PROG_CXX
   AC_PROG_CC
   
   dnl most tests should be compiled with C compiler [especially qsort test]
   AC_LANG_C 
   
   
 dnl Enable building of the convenience library  dnl Enable building of the convenience library
 dnl and set LIBLTDL accordingly  dnl and set LIBLTDL accordingly
Line 34  dnl Substitute INCLTDL and LIBLTDL in th Line 46  dnl Substitute INCLTDL and LIBLTDL in th
 AC_SUBST(INCLTDL)  AC_SUBST(INCLTDL)
 AC_SUBST(LIBLTDL)  AC_SUBST(LIBLTDL)
 AC_SUBST(LIBADD_DL)  AC_SUBST(LIBADD_DL)
 dnl Check for dlopen support  
 AC_LIBTOOL_DLOPEN  
 dnl Configure libtool  dnl Configure libtool
 AM_PROG_LIBTOOL  AC_DISABLE_STATIC
   AC_LIBTOOL_WIN32_DLL
   AC_PROG_LIBTOOL
 dnl Configure libltdl  dnl Configure libltdl
 AC_CONFIG_SUBDIRS(libltdl)  AC_CONFIG_SUBDIRS(libltdl)
   
Line 50  stdio.h \ Line 62  stdio.h \
 stdlib.h \  stdlib.h \
 string.h \  string.h \
 setjmp.h \  setjmp.h \
 ctype.h  ctype.h \
   setjmp.h
   )
   
   AC_MSG_CHECKING(for BSD setenv/getenv/unsetenv)
   AC_TRY_LINK(
   #ifdef HAVE_STDLIB_H
   #       include <stdlib.h>
   #endif
   #ifdef HAVE_STRING_H
   #       include <string.h>
   #endif
   ,
   #define TEST_NAME "oracle-configure-test-var"
   #define TEST_VALUE "oracle-configure-test-value"
   int result=setenv(TEST_NAME, TEST_VALUE, 1/*overwrite*/);
   char *getenv_value=getenv(TEST_NAME);
   if(!getenv_value)
           return 1;
   if(strcmp(getenv_value, TEST_VALUE)!=0)
           return 2;
   unsetenv(TEST_NAME);
   ,[
       AC_MSG_RESULT(yes)
           AC_DEFINE(HAVE_SETENV,,library has BSD setenv/unsetenv)
   ],              
       AC_MSG_RESULT(no)
   
       AC_MSG_CHECKING(for POSIX putenv/getenv)
       AC_TRY_LINK(
       #ifdef HAVE_STDLIB_H
       #   include <stdlib.h>
       #endif
       #ifdef HAVE_STRING_H
       #   include <string.h>
       #endif
       ,
       #define TEST_NAME "oracle-configure-test-var"
       #define TEST_VALUE "oracle-configure-test-value"
       int result=putenv(TEST_NAME"="TEST_VALUE);
       char *getenv_value=getenv(TEST_NAME);
       if(!getenv_value)
           return 1;
       if(strcmp(getenv_value, TEST_NAME)!=0)
           return 2;
       ,[
           AC_MSG_RESULT(yes)
           AC_DEFINE(HAVE_PUTENV,,library has POSIX putenv)
       ],          
           AC_MSG_RESULT(no)
           AC_MSG_ERROR("there must be some function to modify environment")
       )
 )  )
   
 dnl Checks for typedefs, structures, and compiler characteristics.  dnl Checks for typedefs, structures, and compiler characteristics.
Line 61  dnl Checks for library functions. Line 124  dnl Checks for library functions.
   
 dnl Output makefiles  dnl Output makefiles
   
 AC_OUTPUT(libltdl/Makefile Makefile)  AC_OUTPUT(Makefile)

Removed from v.1.1  
changed lines
  Added in v.1.24


E-mail: