📄 aclocal.m4
字号:
dnl aclocal.m4 generated automatically by aclocal 1.4dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.dnl This file is free software; the Free Software Foundationdnl gives unlimited permission to copy and/or distribute it,dnl with or without modifications, as long as this notice is preserved.dnl This program is distributed in the hope that it will be useful,dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; withoutdnl even the implied warranty of MERCHANTABILITY or FITNESS FOR Adnl PARTICULAR PURPOSE.dnl ------------------------------------------------------------------------dnl Find a file (or one of more files in a list of dirs)dnl ------------------------------------------------------------------------dnlAC_DEFUN(AC_FIND_FILE,[$3=NOfor i in $2;do for j in $1; do if test -r "$i/$j"; then $3=$i break 2 fi donedone]) dnl ------------------------------------------------------------------------dnl OCICPPLIB_PATH([minimum_version])dnl Try to find the ocicpplib headers and libraries.dnl $(ocicpp_libraries) will be the ocicpplib library location (if needed)dnl $(ocicpp_includes) will be the ocicpplib header location (if needed)dnl $(OCICPP_LDFLAGS) will be the -L$(ocicpp_libraries) (if needed)dnl $(OCICPP_INCLUDES) will be the -I$(ocicpp_includes) (if needed)dnl ------------------------------------------------------------------------dnlAC_DEFUN(OCICPPLIB_PATH,[NEED_OCICPPLIB=$1ocicpp_major_version=`echo $NEED_OCICPPLIB | sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`ocicpp_minor_version=`echo $NEED_OCICPPLIB | sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`ocicpp_micro_version=`echo $NEED_OCICPPLIB | sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`ac_ocicpp_includes=NO ac_ocicpp_libraries=NOAC_MSG_CHECKING([for ocicpplib >= $NEED_OCICPPLIB])ocicpp_libraries=""ocicpp_includes=""AC_ARG_WITH(ocicpp-includes, [ --with-ocicpp-includes=DIR where the ocicpplib includes are.], [ ac_ocicpp_includes="$withval" ]) AC_ARG_WITH(ocicpp-libs, [ --with-ocicpp-libs=DIR where the ocicpplib library is installed.], [ ac_ocicpp_libraries="$withval" ])if test "$ac_ocicpp_includes" = NO || test "$ac_ocicpp_libraries" = NO; thenAC_CACHE_VAL(ac_cv_have_ocicpp,[#try to guess ocicpplib locationsocicpp_incdirs="/usr/local/include /usr/include /usr/lib/ocicpplib/include /usr/local/ocicpplib/include /usr/include/ocicpplib /usr/local/lib/ocicpplib/include"AC_FIND_FILE(ocicpp.h, $ocicpp_incdirs, ocicpp_incdir)ac_ocicpp_includes=$ocicpp_incdirocicpp_libdirs="/usr/local/lib /usr/lib /usr/lib/ocicpplib/lib /usr/local/ocicpplib/lib /usr/lib/ocicpplib"AC_FIND_FILE(libocicpp.so libocicpp.so.$ocicpp_major_version , $ocicpp_libdirs, ocicpp_libdir)ac_ocicpp_libraries=$ocicpp_libdirac_cxxflags_safe=$CXXFLAGSac_ldflags_safe=$LDFLAGSac_libs_safe=$LIBSCXXFLAGS="$CXXFLAGS -I$ocicpp_incdir $ORACLE_INCLUDES"LDFLAGS="$LDFLAGS -L$ocicpp_libdir"LIBS="-locicpp"AC_TRY_LINK([#include "config.h"#include <ocicpp.h>#if !defined(OCICPPLIBMAJOR) || !defined(OCICPPLIBMINOR) || !defined(OCICPPLIBMICRO)#error "You need ocicpplib $NEED_OCICPPLIB or greater. "#endif#if !((OCICPPLIBMAJOR>$ocicpp_major_version) || (OCICPPLIBMAJOR==$ocicpp_major_version && OCICPPLIBMINOR>$ocicpp_minor_version) || (OCICPPLIBMAJOR==$ocicpp_major_version && OCICPPLIBMINOR==$ocicpp_minor_version && OCICPPLIBMICRO>=$ocicpp_micro_version))#error "You need ocicpplib $NEED_OCICPPLIB or greater. "#endif],[version();return 0;],,[ ac_ocicpp_libraries="NO" ])CXXFLAGS=$ac_cxxflags_safeLDFLAGS=$ac_ldflags_safeLIBS=$ac_libs_safeif test "$ac_ocicpp_includes" = NO || test "$ac_ocicpp_libraries" = NO; then ac_cv_have_ocicpp="have_ocicpp=no" ac_ocicpp_notfound="" if test "$ac_ocicpp_includes" = NO; then if test "$ac_ocicpp_libraries" = NO; then ac_ocicpp_notfound="(headers and libraries)"; else ac_ocicpp_notfound="(headers)"; fi else ac_ocicpp_notfound="(libraries)"; fi AC_MSG_ERROR([ocicpplib >= $NEED_OCICPPLIB not found. Please check your installation! ]);else have_ocicpp="yes"fi])else have_ocicpp="yes"fieval "$ac_cv_have_ocicpp"if test "$have_ocicpp" != yes; then AC_MSG_RESULT([$have_ocicpp]);else ac_cv_have_ocicpp="have_ocicpp=yes \ ac_ocicpp_includes=$ac_ocicpp_includes ac_ocicpp_libraries=$ac_ocicpp_libraries" AC_MSG_RESULT([libraries $ac_ocicpp_libraries, headers $ac_ocicpp_includes]) ocicpp_libraries=$ac_ocicpp_libraries ocicpp_includes=$ac_ocicpp_includesfiAC_SUBST(ocicpp_libraries)AC_SUBST(ocicpp_includes)OCICPP_INCLUDES="-I$ocicpp_includes"all_includes="$OCICPP_INCLUDES $all_includes"OCICPP_LDFLAGS="-L$ocicpp_libraries"all_libraries="$OCICPP_LDFLAGS $all_libraries"AC_SUBST(OCICPP_INCLUDES)AC_SUBST(OCICPP_LDFLAGS)])dnl ------------------------------------------------------------------------dnl OCICPPLIB_VERSION()dnl Generates OCICPPLIBVER, OCICPPLIBMAJOR, OCICPPLIBMINOR and OCICPPLIBMICRO constantsdnl ------------------------------------------------------------------------dnlAC_DEFUN(OCICPPLIB_VERSION,[OCICPPLIBV=`cat VERSION`OCICPPLIBMAJOR=`echo $OCICPPLIBV | sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`OCICPPLIBMINOR=`echo $OCICPPLIBV | sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`OCICPPLIBMICRO=`echo $OCICPPLIBV | sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`OCICPPLIBVER=`printf "0x%02i%02i%02i" $OCICPPLIBMAJOR $OCICPPLIBMINOR $OCICPPLIBMICRO`AC_SUBST(OCICPPLIBMAJOR)AC_SUBST(OCICPPLIBMINOR)AC_SUBST(OCICPPLIBMICRO)AC_SUBST(OCICPPLIBVER)])dnl ------------------------------------------------------------------------dnl ORACLE_PATH()dnl Try to find the Oracle headers and libsdnl ------------------------------------------------------------------------dnlAC_DEFUN(ORACLE_PATH,[AC_MSG_CHECKING([for Oracle home])oracle_includes=""oracle_home=""AC_ARG_WITH(oracle_home,[ --with-oracle-home=DIR where the oracle installed.],[ ac_oracle_home="$withval" ], [ ac_oracle_home="NO" ])if test "$ac_oracle_home" = NO; then ac_oracle_home=`echo $ORACLE_HOME` if test -z "$ac_oracle_home"; then AC_MSG_ERROR([ Oracle 8.x.x or greater installation needed.]) fi oracle_inc_dirs="$ac_oracle_home/rdbms/demo $ac_oracle_home/rdbms/public $ac_oracle_home/network/public $ac_oracle_home/plsql/public"# AC_FIND_FILE(oci.h , $oracle_inc_dirs , oracle_inc_dirs ) if test "$oracle_inc_dirs" = NO; then AC_MSG_ERROR([ Oracle 8.x.x or greater installation needed.]) fifiORACLE_HOME="$ac_oracle_home"oracle_includes="$ORACLE_HOME/rdbms/demo $ORACLE_HOME/rdbms/public $ORACLE_HOME/plsql/public $ORACLE_HOME/network/public"ORACLE_INCLUDES="-I$ORACLE_HOME/rdbms/demo -I$ORACLE_HOME/rdbms/public -I$ORACLE_HOME/plsql/public -I$ORACLE_HOME/network/public"all_includes="$ORACLE_INCLUDES $all_includes"AC_FIND_FILE(libclntsh.so.8.0, "$ORACLE_HOME/lib" ,ora_lib)if test x"$ora_lib" = x"NO"; then AC_FIND_FILE(libclntsh.so.1.0, "$ORACLE_HOME/lib" ,ora_lib) if test $ora_lib = NO; then AC_MSG_ERROR([ Cannot determine Oracle version only supported are 8.0.x and 8.1.x ]) else ORACLE_VER="8.0" ORACLE_LIBDIR="$ORACLE_HOME/lib" ORACLE_LIBS="-lclntsh -lcommon -lcore4 -lnlsrtl3" ORACLE_VER_MAJOR="8"; ORACLE_VER_MINOR="0"; fielse ORACLE_VER="8.1" ORACLE_LIBDIR="$ORACLE_HOME/lib" ORACLE_LIBS="-lclntsh" ORACLE_VER_MAJOR="8"; ORACLE_VER_MINOR="1";fiAC_MSG_RESULT([ Oracle Location: $ORACLE_HOME , Version: $ORACLE_VER. ])AC_SUBST(ORACLE_HOME)AC_SUBST(ORACLE_VER)AC_SUBST(ORACLE_INCLUDES)AC_SUBST(ORACLE_LIBS)AC_SUBST(ORACLE_LIBDIR)AC_SUBST(ORACLE_VER_MAJOR)AC_SUBST(ORACLE_VER_MINOR)])AC_DEFUN(OCICPP_DEBUG_LEVEL,[AC_MSG_CHECKING([for debug level])AC_ARG_WITH(debug_level,[ --with-debug_level=level Debug level.],[ ac_debug_level="$withval" ],[ ac_debug_level="DLEV_FATAL"])DEBUG_LEVEL="$ac_debug_level"AC_MSG_RESULT([ Debug level is $DEBUG_LEVEL. ])AC_SUBST(DEBUG_LEVEL)])# Do all the work for Automake. This macro actually does too much --# some checks are only needed if your package does certain things.# But this isn't really a big deal.# serial 1dnl Usage:dnl AM_INIT_AUTOMAKE(package,version, [no-define])AC_DEFUN(AM_INIT_AUTOMAKE,[AC_REQUIRE([AC_PROG_INSTALL])PACKAGE=[$1]AC_SUBST(PACKAGE)VERSION=[$2]AC_SUBST(VERSION)dnl test to see if srcdir already configuredif test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then AC_MSG_ERROR([source directory already configured; run "make distclean" there first])fiifelse([$3],,AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))AC_REQUIRE([AM_SANITY_CHECK])AC_REQUIRE([AC_ARG_PROGRAM])dnl FIXME This is truly gross.missing_dir=`cd $ac_aux_dir && pwd`AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)AC_REQUIRE([AC_PROG_MAKE_SET])])## Check to make sure that the build environment is sane.#AC_DEFUN(AM_SANITY_CHECK,[AC_MSG_CHECKING([whether build environment is sane])# Just in casesleep 1echo timestamp > conftestfile# Do `set' in a subshell so we don't clobber the current shell's# arguments. Must try -L first in case configure is actually a# symlink; some systems play weird games with the mod time of symlinks# (eg FreeBSD returns the mod time of the symlink's containing# directory).if ( set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` if test "[$]*" = "X"; then # -L didn't work. set X `ls -t $srcdir/configure conftestfile` fi if test "[$]*" != "X $srcdir/configure conftestfile" \ && test "[$]*" != "X conftestfile $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a brokenalias in your environment]) fi test "[$]2" = conftestfile )then # Ok. :else AC_MSG_ERROR([newly created file is older than distributed files!Check your system clock])firm -f conftest*AC_MSG_RESULT(yes)])dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)dnl The program must properly implement --version.AC_DEFUN(AM_MISSING_PROG,[AC_MSG_CHECKING(for working $2)# Run test in a subshell; some versions of sh will print an error if# an executable is not found, even if stderr is redirected.# Redirect stdin to placate older versions of autoconf. Sigh.if ($2 --version) < /dev/null > /dev/null 2>&1; then $1=$2 AC_MSG_RESULT(found)else $1="$3/missing $2" AC_MSG_RESULT(missing)fiAC_SUBST($1)])# serial 40 AC_PROG_LIBTOOLAC_DEFUN(AC_PROG_LIBTOOL,[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl# Save cache, so that ltconfig can load itAC_CACHE_SAVE# Actually configure libtool. ac_aux_dir is where install-sh is found.CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \|| AC_MSG_ERROR([libtool configure failed])# Reload cache, that may have been modified by ltconfigAC_CACHE_LOAD# This can be used to rebuild libtool when neededLIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"# Always use our own libtool.LIBTOOL='$(SHELL) $(top_builddir)/libtool'AC_SUBST(LIBTOOL)dnl# Redirect the config.log output again, so that the ltconfig log is not# clobbered by the next message.exec 5>>./config.log])AC_DEFUN(AC_LIBTOOL_SETUP,[AC_PREREQ(2.13)dnlAC_REQUIRE([AC_ENABLE_SHARED])dnlAC_REQUIRE([AC_ENABLE_STATIC])dnlAC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnlAC_REQUIRE([AC_CANONICAL_HOST])dnlAC_REQUIRE([AC_CANONICAL_BUILD])dnlAC_REQUIRE([AC_PROG_RANLIB])dnlAC_REQUIRE([AC_PROG_CC])dnlAC_REQUIRE([AC_PROG_LD])dnlAC_REQUIRE([AC_PROG_NM])dnlAC_REQUIRE([AC_PROG_LN_S])dnldnl
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -