|
|
| version 1.28, 2012/06/09 07:36:19 | version 1.38, 2013/10/30 16:17:22 |
|---|---|
| Line 1 | Line 1 |
| dnl Autoconf initialisation | dnl Autoconf initialisation |
| AC_PREREQ(2.59) | AC_PREREQ(2.59) |
| AC_INIT(parser3, 10.2) | AC_INIT(parser3oracle, 10.4) |
| AC_CONFIG_SRCDIR(parser3oracle.C) | AC_CONFIG_SRCDIR(parser3oracle.C) |
| AM_CONFIG_HEADER(config_auto.h) | AM_CONFIG_HEADER(config_auto.h) |
| dnl Automake Initialisation | dnl Automake Initialisation |
| AM_INIT_AUTOMAKE | AM_INIT_AUTOMAKE |
| 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" |
| ) | ) |
| Line 33 if test \! -f "$ORACLE_PUBLIC_INC/nzt.h" | Line 30 if test \! -f "$ORACLE_PUBLIC_INC/nzt.h" |
| AC_MSG_ERROR($ORACLE_PUBLIC_INC does not seem to be valid Oracle public includes directory) | AC_MSG_ERROR($ORACLE_PUBLIC_INC does not seem to be valid Oracle public includes directory) |
| fi | 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_INSTALL |
| AC_PROG_CXX | AC_PROG_CXX |
| AC_PROG_CC | AC_PROG_CC |
| dnl Enable building of the convenience library | dnl Enable building of the convenience library |
| LT_CONFIG_LTDL_DIR(libltdl) | LT_CONFIG_LTDL_DIR(libltdl) |
| LT_INIT(dlopen win32-dll) | LT_INIT(disable-static dlopen win32-dll) |
| LTDL_INIT | LTDL_INIT |
| dnl Configure libtool | |
| AC_DISABLE_STATIC | |
| dnl Checks for libraries | dnl Checks for libraries |
| dnl Checks for header files | dnl Checks for header files |
| AC_CHECK_HEADERS( | AC_CHECK_HEADERS( |
| stdio.h \ | stdio.h \ |
| stdlib.h \ | stdlib.h \ |
| Line 122 unsetenv(TEST_NAME); | Line 103 unsetenv(TEST_NAME); |
| ) | ) |
| dnl Checks for typedefs, structures, and compiler characteristics | dnl Checks for typedefs, structures, and compiler characteristics |
| AC_TYPE_SIZE_T | AC_TYPE_SIZE_T |
| dnl Checks for library functions | dnl Checks for library functions |
| dnl Output makefiles | dnl Output makefiles |
| AC_OUTPUT(Makefile) | AC_OUTPUT(Makefile) |