📄 configure
字号:
# AC_LIBTOOL_PICMODE - implement the --with-pic flag# Usage: AC_LIBTOOL_PICMODE[(MODE)]# Where MODE is either `yes' or `no'. If omitted, it defaults to# `both'.# AC_PATH_TOOL_PREFIX - find a file program which can recognise shared library# AC_PATH_MAGIC - find a file program which can recognise a shared library# AC_PROG_LD - find the path to the GNU or non-GNU linker# AC_PROG_LD_GNU -# AC_PROG_LD_RELOAD_FLAG - find reload flag for linker# -- PORTME Some linkers may need a different reload flag.# AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies# -- PORTME fill in with the dynamic library characteristics# AC_PROG_NM - find the path to a BSD-compatible name lister# AC_CHECK_LIBM - check for math library# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for# the libltdl convenience library and LTDLINCL to the include flags for# the libltdl header and adds --enable-ltdl-convenience to the# configure arguments. Note that LIBLTDL and LTDLINCL are not# AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If DIR is not# provided, it is assumed to be `libltdl'. LIBLTDL will be prefixed# with '${top_builddir}/' and LTDLINCL will be prefixed with# '${top_srcdir}/' (note the single quotes!). If your package is not# flat and you're not using automake, define top_builddir and# top_srcdir appropriately in the Makefiles.# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for# the libltdl installable library and LTDLINCL to the include flags for# the libltdl header and adds --enable-ltdl-install to the configure# arguments. Note that LIBLTDL and LTDLINCL are not AC_SUBSTed, nor is# AC_CONFIG_SUBDIRS called. If DIR is not provided and an installed# libltdl is not found, it is assumed to be `libltdl'. LIBLTDL will# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed# with '${top_srcdir}/' (note the single quotes!). If your package is# not flat and you're not using automake, define top_builddir and# top_srcdir appropriately in the Makefiles.# In the future, this macro may have to be called after AC_PROG_LIBTOOL.# old names# This is just to silence aclocal about the macro not being used############################################################# NOTE: This macro has been submitted for inclusion into ## GNU Autoconf as AC_PROG_SED. When it is available in ## a released version of Autoconf we should remove this ## macro and use it instead. ############################################################## LT_AC_PROG_SED# --------------# Check for a fully-functional sed program, that truncates# as few characters as possible. Prefer GNU sed if found. apr_ste_save_CPPFLAGS="$CPPFLAGS" apr_ste_save_CFLAGS="$CFLAGS" apr_ste_save_LDFLAGS="$LDFLAGS" apr_ste_save_LIBS="$LIBS" apr_ste_save_INCLUDES="$INCLUDES" rm -f config.nice cat >config.nice<<EOF#! /bin/sh## Created by configureEOF if test -n "$CC"; then echo "CC=\"$CC\"; export CC" >> config.nice fi if test -n "$CFLAGS"; then echo "CFLAGS=\"$CFLAGS\"; export CFLAGS" >> config.nice fi if test -n "$CPPFLAGS"; then echo "CPPFLAGS=\"$CPPFLAGS\"; export CPPFLAGS" >> config.nice fi if test -n "$LDFLAGS"; then echo "LDFLAGS=\"$LDFLAGS\"; export LDFLAGS" >> config.nice fi if test -n "$LIBS"; then echo "LIBS=\"$LIBS\"; export LIBS" >> config.nice fi if test -n "$INCLUDES"; then echo "INCLUDES=\"$INCLUDES\"; export INCLUDES" >> config.nice fi if test -n "$NOTEST_CFLAGS"; then echo "NOTEST_CFLAGS=\"$NOTEST_CFLAGS\"; export NOTEST_CFLAGS" >> config.nice fi if test -n "$NOTEST_CPPFLAGS"; then echo "NOTEST_CPPFLAGS=\"$NOTEST_CPPFLAGS\"; export NOTEST_CPPFLAGS" >> config.nice fi if test -n "$NOTEST_LDFLAGS"; then echo "NOTEST_LDFLAGS=\"$NOTEST_LDFLAGS\"; export NOTEST_LDFLAGS" >> config.nice fi if test -n "$NOTEST_LIBS"; then echo "NOTEST_LIBS=\"$NOTEST_LIBS\"; export NOTEST_LIBS" >> config.nice fi for arg in $0 "$@"; doap_last=ap_cur="$arg"while test "x${ap_cur}" != "x${ap_last}";do ap_last="${ap_cur}" ap_cur=`eval "echo ${ap_cur}"`donearg="${ap_cur}" echo "\"$arg\" \\" >> config.nice done echo '"$@"' >> config.nice chmod +x config.nice# Make sure we can run config.sub.$ac_config_sub sun4 >/dev/null 2>&1 || { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5echo "$as_me: error: cannot run $ac_config_sub" >&2;} { (exit 1); exit 1; }; }echo "$as_me:$LINENO: checking build system type" >&5echo $ECHO_N "checking build system type... $ECHO_C" >&6if test "${ac_cv_build+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6else ac_cv_build_alias=$build_aliastest -z "$ac_cv_build_alias" && ac_cv_build_alias=`$ac_config_guess`test -z "$ac_cv_build_alias" && { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5echo "$as_me: error: cannot guess build type; you must specify one" >&2;} { (exit 1); exit 1; }; }ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} { (exit 1); exit 1; }; }fiecho "$as_me:$LINENO: result: $ac_cv_build" >&5echo "${ECHO_T}$ac_cv_build" >&6build=$ac_cv_buildbuild_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`echo "$as_me:$LINENO: checking host system type" >&5echo $ECHO_N "checking host system type... $ECHO_C" >&6if test "${ac_cv_host+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6else ac_cv_host_alias=$host_aliastest -z "$ac_cv_host_alias" && ac_cv_host_alias=$ac_cv_build_aliasac_cv_host=`$ac_config_sub $ac_cv_host_alias` || { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} { (exit 1); exit 1; }; }fiecho "$as_me:$LINENO: result: $ac_cv_host" >&5echo "${ECHO_T}$ac_cv_host" >&6host=$ac_cv_hosthost_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`echo "$as_me:$LINENO: checking target system type" >&5echo $ECHO_N "checking target system type... $ECHO_C" >&6if test "${ac_cv_target+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6else ac_cv_target_alias=$target_aliastest "x$ac_cv_target_alias" = "x" && ac_cv_target_alias=$ac_cv_host_aliasac_cv_target=`$ac_config_sub $ac_cv_target_alias` || { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} { (exit 1); exit 1; }; }fiecho "$as_me:$LINENO: result: $ac_cv_target" >&5echo "${ECHO_T}$ac_cv_target" >&6target=$ac_cv_targettarget_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`# The aliases save the names the user supplied, while $host etc.# will get canonicalized.test -n "$target_alias" && test "$program_prefix$program_suffix$program_transform_name" = \ NONENONEs,x,x, && program_prefix=${target_alias}-echo "Configuring APR library"echo "Platform: $host"# Absolute source/build directoryapr_srcdir=`(cd $srcdir && pwd)`apr_builddir=`pwd`if test "$apr_builddir" != "$apr_srcdir"; then USE_VPATH=1 APR_CONFIG_LOCATION=buildelse APR_CONFIG_LOCATION=sourcefi# Libtool might need this symbol -- it must point to the location of# the generated libtool script (not necessarily the "top" build dir).#top_builddir="$apr_builddir"# Directory containing apr build macros, helpers, and make rules# NOTE: make rules (apr_rules.mk) will be in the builddir for vpath#apr_buildout=$apr_builddir/buildapr_builders=$apr_srcdir/buildMKDIR=$apr_builders/mkdir.sh echo "$as_me:$LINENO: checking for working mkdir -p" >&5echo $ECHO_N "checking for working mkdir -p... $ECHO_C" >&6if test "${ac_cv_mkdir_p+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6else test -d conftestdir && rm -rf conftestdir mkdir -p conftestdir/somedir >/dev/null 2>&1 if test -d conftestdir/somedir; then ac_cv_mkdir_p=yes else ac_cv_mkdir_p=no fi rm -rf conftestdirfiecho "$as_me:$LINENO: result: $ac_cv_mkdir_p" >&5echo "${ECHO_T}$ac_cv_mkdir_p" >&6 if test "$ac_cv_mkdir_p" = "yes"; then mkdir_p="mkdir -p" else mkdir_p="$apr_builders/mkdir.sh" fi# get our version informationget_version="$apr_builders/get-version.sh"version_hdr="$apr_srcdir/include/apr_version.h"APR_MAJOR_VERSION="`$get_version major $version_hdr APR`"APR_DOTTED_VERSION="`$get_version all $version_hdr APR`"echo "APR Version: ${APR_DOTTED_VERSION}"# Check whether --enable-layout or --disable-layout was given.if test "${enable_layout+set}" = set; then enableval="$enable_layout" LAYOUT=$enablevalfi;if test -z "$LAYOUT"; then LAYOUT="apr"fi if test ! -f $srcdir/config.layout; then echo "** Error: Layout file $srcdir/config.layout not found" echo "** Error: Cannot use undefined layout '$LAYOUT'" exit 1 fi pldconf=./config.pld sed -e "1s/[ ]*<[lL]ayout[ ]*$LAYOUT[ ]*>[ ]*//;1t" \ -e "1,/[ ]*<[lL]ayout[ ]*$LAYOUT[ ]*>[ ]*/d" \ -e '/[ ]*<\/Layout>[ ]*/,$d' \ -e "s/^[ ]*//g" \ -e "s/:[ ]*/=\'/g" \ -e "s/[ ]*$/'/g" \ $srcdir/config.layout > $pldconf layout_name=$LAYOUT if test ! -s $pldconf; then echo "** Error: unable to find layout $layout_name" exit 1 fi . $pldconf rm $pldconf for var in prefix exec_prefix bindir sbindir libexecdir mandir \ sysconfdir datadir includedir localstatedir runtimedir \ logfiledir libdir installbuilddir libsuffix ; do eval "val=\"\$$var\"" case $val in *+) val=`echo $val | sed -e 's;\+$;;'` eval "$var=\"\$val\"" autosuffix=yes ;; *) autosuffix=no ;; esac val=`echo $val | sed -e 's:\(.\)/*$:\1:'` val=`echo $val | sed -e 's:[\$]\([a-z_]*\):$\1:g'` if test "$autosuffix" = "yes"; then if echo $val | grep apache >/dev/null; then addtarget=no else addtarget=yes fi if test "$addtarget" = "yes"; then val="$val/apache2" fi fi eval "$var='$val'" doneecho "$as_me:$LINENO: checking for chosen layout" >&5echo $ECHO_N "checking for chosen layout... $ECHO_C" >&6echo "$as_me:$LINENO: result: $layout_name" >&5echo "${ECHO_T}$layout_name" >&6ac_prev=for ac_optiondo # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval "$ac_prev=\$ac_option" ac_prev= continue fi ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` case $ac_option in -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir="$ac_optarg" ;; -datadir | --datadir | --datadi | --datad | --data | --dat | --da) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | --da=*) datadir="$ac_optarg" ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix="$ac_optarg" ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir="$ac_optarg" ;; -infodir |
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -