--- sql/oracle/Attic/configure.in 2009/08/23 05:56:21 1.26.2.1 +++ sql/oracle/Attic/configure.in 2012/06/11 20:56:04 1.32 @@ -1,14 +1,17 @@ -dnl Process this file with autoconf to produce a configure script. -AC_INIT(parser3oracle.C) -AM_INIT_AUTOMAKE(parser3oracle, 10.1, nodefine) - +dnl Autoconf initialisation +AC_PREREQ(2.59) +AC_INIT(parser3, 10.2) +AC_CONFIG_SRCDIR(parser3oracle.C) AM_CONFIG_HEADER(config_auto.h) -dnl Arguments +dnl Automake Initialisation +AM_INIT_AUTOMAKE +dnl Arguments AC_ARG_WITH(oracleoci-inc,[ --with-oracleoci-inc[=DIR] DIR is the Oracle OCI includes directory],, withval="$ORACLE_HOME/rdbms/demo" ) + ORACLE_OCI_INC=$withval AC_SUBST(ORACLE_OCI_INC) @@ -16,10 +19,10 @@ if test \! -f "$ORACLE_OCI_INC/oci.h"; t 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" ) + ORACLE_PUBLIC_INC=$withval AC_SUBST(ORACLE_PUBLIC_INC) @@ -27,46 +30,22 @@ if test \! -f "$ORACLE_PUBLIC_INC/nzt.h" AC_MSG_ERROR($ORACLE_PUBLIC_INC does not seem to be valid Oracle public includes directory) fi - -AC_ARG_WITH(dynamic-stdcpp, [ --with-dynamic-stdcpp link libstdc++ dynamically - by default, libstdc++ is linked statically],[ - LDFLAGS="-lstdc++" -],[ - LDFLAGS="-Wl,-Bstatic -Wl,-lstdc++ -Wl,-Bdynamic" -]) - -AC_SUBST(LDFLAGS) - - -dnl Checks for programs. +dnl Checks for programs AC_PROG_INSTALL -AC_PROG_MAKE_SET -AC_PROG_AWK 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 and set LIBLTDL accordingly -AC_LIBLTDL_CONVENIENCE -dnl Substitute INCLTDL and LIBLTDL in the Makefiles -AC_SUBST(INCLTDL) -AC_SUBST(LIBLTDL) -AC_SUBST(LIBADD_DL) +LT_CONFIG_LTDL_DIR(libltdl) +LT_INIT(dlopen win32-dll) +LTDL_INIT + dnl Configure libtool AC_DISABLE_STATIC -AC_LIBTOOL_WIN32_DLL -AC_PROG_LIBTOOL -dnl Configure libltdl -AC_CONFIG_SUBDIRS(libltdl) - -dnl Checks for libraries. -dnl Checks for header files. +dnl Checks for libraries +dnl Checks for header files AC_CHECK_HEADERS( stdio.h \ stdlib.h \ @@ -126,12 +105,10 @@ unsetenv(TEST_NAME); ) ) -dnl Checks for typedefs, structures, and compiler characteristics. - +dnl Checks for typedefs, structures, and compiler characteristics AC_TYPE_SIZE_T -dnl Checks for library functions. +dnl Checks for library functions dnl Output makefiles - AC_OUTPUT(Makefile)