⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 configure.ac

📁 最新的sqlite3.6.2源代码
💻 AC
📖 第 1 页 / 共 2 页
字号:
    SQLITE_OS_WIN=0    SQLITE_OS_OS2=1    CFLAGS="$CFLAGS -DSQLITE_OS_OS2=1"  else    SQLITE_OS_UNIX=0    SQLITE_OS_WIN=1    SQLITE_OS_OS2=0    CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1"  fielse  SQLITE_OS_UNIX=1  SQLITE_OS_WIN=0  SQLITE_OS_OS2=0  CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1"fiAC_SUBST(BUILD_EXEEXT)AC_SUBST(SQLITE_OS_UNIX)AC_SUBST(SQLITE_OS_WIN)AC_SUBST(SQLITE_OS_OS2)AC_SUBST(TARGET_EXEEXT)########### Figure out all the parameters needed to compile against Tcl.## This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG# macros in the in the tcl.m4 file of the standard TCL distribution.# Those macros could not be used directly since we have to make some# minor changes to accomodate systems that do not have TCL installed.#AC_ARG_ENABLE(tcl, AC_HELP_STRING([--disable-tcl],[do not build TCL extension]),      [use_tcl=$enableval],[use_tcl=yes])if test "${use_tcl}" = "yes" ; then  AC_ARG_WITH(tcl, AC_HELP_STRING([--with-tcl=DIR],[directory containing tcl configuration (tclConfig.sh)]), with_tclconfig=${withval})  AC_MSG_CHECKING([for Tcl configuration])  AC_CACHE_VAL(ac_cv_c_tclconfig,[    # First check to see if --with-tcl was specified.    if test x"${with_tclconfig}" != x ; then      if test -f "${with_tclconfig}/tclConfig.sh" ; then        ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`      else        AC_MSG_ERROR([${with_tclconfig} directory doesn't contain tclConfig.sh])      fi    fi    # then check for a private Tcl installation    if test x"${ac_cv_c_tclconfig}" = x ; then      for i in \            ../tcl \            `ls -dr ../tcl[[8-9]].[[0-9]].[[0-9]]* 2>/dev/null` \            `ls -dr ../tcl[[8-9]].[[0-9]] 2>/dev/null` \            `ls -dr ../tcl[[8-9]].[[0-9]]* 2>/dev/null` \            ../../tcl \            `ls -dr ../../tcl[[8-9]].[[0-9]].[[0-9]]* 2>/dev/null` \            `ls -dr ../../tcl[[8-9]].[[0-9]] 2>/dev/null` \            `ls -dr ../../tcl[[8-9]].[[0-9]]* 2>/dev/null` \            ../../../tcl \            `ls -dr ../../../tcl[[8-9]].[[0-9]].[[0-9]]* 2>/dev/null` \            `ls -dr ../../../tcl[[8-9]].[[0-9]] 2>/dev/null` \            `ls -dr ../../../tcl[[8-9]].[[0-9]]* 2>/dev/null`      do        if test -f "$i/unix/tclConfig.sh" ; then          ac_cv_c_tclconfig=`(cd $i/unix; pwd)`          break        fi      done    fi    # check in a few common install locations    if test x"${ac_cv_c_tclconfig}" = x ; then      for i in \            `ls -d ${libdir} 2>/dev/null` \            `ls -d /usr/local/lib 2>/dev/null` \            `ls -d /usr/contrib/lib 2>/dev/null` \            `ls -d /usr/lib 2>/dev/null`      do        if test -f "$i/tclConfig.sh" ; then           ac_cv_c_tclconfig=`(cd $i; pwd)`           break        fi      done    fi    # check in a few other private locations    if test x"${ac_cv_c_tclconfig}" = x ; then      for i in \         ${srcdir}/../tcl \         `ls -dr ${srcdir}/../tcl[[8-9]].[[0-9]].[[0-9]]* 2>/dev/null` \         `ls -dr ${srcdir}/../tcl[[8-9]].[[0-9]] 2>/dev/null` \         `ls -dr ${srcdir}/../tcl[[8-9]].[[0-9]]* 2>/dev/null`      do        if test -f "$i/unix/tclConfig.sh" ; then          ac_cv_c_tclconfig=`(cd $i/unix; pwd)`          break        fi      done    fi  ])  if test x"${ac_cv_c_tclconfig}" = x ; then    use_tcl=no    AC_MSG_WARN(Can't find Tcl configuration definitions)    AC_MSG_WARN(*** Without Tcl the regression tests cannot be executed ***)    AC_MSG_WARN(*** Consider using --with-tcl=... to define location of Tcl ***)  else    TCL_BIN_DIR=${ac_cv_c_tclconfig}    AC_MSG_RESULT(found $TCL_BIN_DIR/tclConfig.sh)    AC_MSG_CHECKING([for existence of $TCL_BIN_DIR/tclConfig.sh])    if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then      AC_MSG_RESULT([loading])      . $TCL_BIN_DIR/tclConfig.sh    else      AC_MSG_RESULT([file not found])    fi        #    # If the TCL_BIN_DIR is the build directory (not the install directory),    # then set the common variable name to the value of the build variables.    # For example, the variable TCL_LIB_SPEC will be set to the value    # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC    # instead of TCL_BUILD_LIB_SPEC since it will work with both an    # installed and uninstalled version of Tcl.    #        if test -f $TCL_BIN_DIR/Makefile ; then      TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}      TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}      TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}    fi        #    # eval is required to do the TCL_DBGX substitution    #        eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""    eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""    eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""        eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""    eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""    eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""        AC_SUBST(TCL_VERSION)    AC_SUBST(TCL_BIN_DIR)    AC_SUBST(TCL_SRC_DIR)    AC_SUBST(TCL_LIBS)    AC_SUBST(TCL_INCLUDE_SPEC)        AC_SUBST(TCL_LIB_FILE)    AC_SUBST(TCL_LIB_FLAG)    AC_SUBST(TCL_LIB_SPEC)        AC_SUBST(TCL_STUB_LIB_FILE)    AC_SUBST(TCL_STUB_LIB_FLAG)    AC_SUBST(TCL_STUB_LIB_SPEC)  fifiif test "${use_tcl}" = "no" ; then  HAVE_TCL=""else  HAVE_TCL=1fiAC_SUBST(HAVE_TCL)########### Figure out what C libraries are required to compile programs# that use "readline()" library.#TARGET_READLINE_LIBS=""TARGET_READLINE_INC=""TARGET_HAVE_READLINE=0AC_ARG_ENABLE([readline],	[AC_HELP_STRING([--disable-readline],[disable readline support [default=detect]])],	[with_readline=$enableval],	[with_readline=auto])if test x"$with_readline" != xno; then	found="yes"	AC_ARG_WITH([readline-lib],		[AC_HELP_STRING([--with-readline-lib],[specify readline library])],		[with_readline_lib=$withval],		[with_readline_lib="auto"])	if test "x$with_readline_lib" = xauto; then		save_LIBS="$LIBS"		LIBS=""		AC_SEARCH_LIBS(tgetent, [readline ncurses curses termcap], [term_LIBS="$LIBS"], [term_LIBS=""])		AC_CHECK_LIB([readline], [readline], [TARGET_READLINE_LIBS="-lreadline"], [found="no"])		TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"		LIBS="$save_LIBS"	else		TARGET_READLINE_LIBS="$with_readline_lib"	fi	AC_ARG_WITH([readline-inc],		[AC_HELP_STRING([--with-readline-inc],[specify readline include paths])],		[with_readline_inc=$withval],		[with_readline_inc="auto"])	if test "x$with_readline_inc" = xauto; then		AC_CHECK_HEADER(readline.h, [found="yes"], [			found="no"			if test "$cross_compiling" != yes; then				for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do					for subdir in include include/readline; do						AC_CHECK_FILE($dir/$subdir/readline.h, found=yes)						if test "$found" = "yes"; then							TARGET_READLINE_INC="-I$dir/$subdir"							break						fi					done					test "$found" = "yes" && break				done			fi		])	else		TARGET_READLINE_INC="$with_readline_inc"	fi	if test x"$found" = xno; then		TARGET_READLINE_LIBS=""		TARGET_READLINE_INC=""		TARGET_HAVE_READLINE=0	else		TARGET_HAVE_READLINE=1	fifiAC_SUBST(TARGET_READLINE_LIBS)AC_SUBST(TARGET_READLINE_INC)AC_SUBST(TARGET_HAVE_READLINE)########### Figure out what C libraries are required to compile programs# that use "fdatasync()" function.#AC_SEARCH_LIBS(fdatasync, [rt])########## check for debug enabledAC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug],[enable debugging & verbose explain]),      [use_debug=$enableval],[use_debug=no])if test "${use_debug}" = "yes" ; then  TARGET_DEBUG="-DSQLITE_DEBUG=1"else  TARGET_DEBUG="-DNDEBUG"fiAC_SUBST(TARGET_DEBUG)########## See whether we should use the amalgamation to buildAC_ARG_ENABLE(amalgamation, AC_HELP_STRING([--disable-amalgamation],      [Disable the amalgamation and instead build all files separately]),      [use_amalgamation=$enableval],[use_amalgamation=yes])if test "${use_amalgamation}" != "yes" ; then  USE_AMALGAMATION=0fiAC_SUBST(USE_AMALGAMATION)########## See whether we should allow loadable extensionsAC_ARG_ENABLE(load-extension, AC_HELP_STRING([--enable-load-extension],      [Enable loading of external extensions]),      [use_loadextension=$enableval],[use_loadextension=no])if test "${use_loadextension}" = "yes" ; then  OPT_FEATURE_FLAGS=""else  OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"fi########## attempt to duplicate any OMITS into the $(OPT_FEATURE_FLAGS) parameterfor option in $CFLAGS $CPPFLAGSdo  case $option in    -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;  esacdoneAC_SUBST(OPT_FEATURE_FLAGS)# attempt to remove any OMITS from the $(CFLAGS) parameterac_temp_CFLAGS=""for option in $CFLAGSdo  case $option in    -DSQLITE_OMIT*) ;;    *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";;  esacdoneCFLAGS=$ac_temp_CFLAGS# attempt to remove any OMITS from the $(CPPFLAGS) parameterac_temp_CPPFLAGS=""for option in $CPPFLAGSdo  case $option in    -DSQLITE_OMIT*) ;;    *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";;  esacdoneCPPFLAGS=$ac_temp_CPPFLAGS# attempt to remove any OMITS from the $(BUILD_CFLAGS) parameterac_temp_BUILD_CFLAGS=""for option in $BUILD_CFLAGSdo  case $option in    -DSQLITE_OMIT*) ;;    *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";;  esacdoneBUILD_CFLAGS=$ac_temp_BUILD_CFLAGS########## See whether we should use GCOVAC_ARG_ENABLE(gcov, AC_HELP_STRING([--enable-gcov],      [Enable coverage testing using gcov]),      [use_gcov=$enableval],[use_gcov=no])if test "${use_gcov}" = "yes" ; then  USE_GCOV=1else  USE_GCOV=0fiAC_SUBST(USE_GCOV)########## Output the config headerAC_CONFIG_HEADERS(config.h)########## Generate the output files.#AC_SUBST(BUILD_CFLAGS)AC_OUTPUT([Makefilesqlite3.pc])

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -