📄 aclocal.m4
字号:
;; esacdone# Fix-up fallback echo if it was mangled by the above quoting rules.case \$lt_ECHO in*'\\\[$]0 --fallback-echo"')dnl " lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\` ;;esac_LT_OUTPUT_LIBTOOL_INIT])# LT_OUTPUT# ---------# This macro allows early generation of the libtool script (before# AC_OUTPUT is called), incase it is used in configure for compilation# tests.AC_DEFUN([LT_OUTPUT],[: ${CONFIG_LT=./config.lt}AC_MSG_NOTICE([creating $CONFIG_LT])cat >"$CONFIG_LT" <<_LTEOF#! $SHELL# Generated by $as_me.# Run this file to recreate a libtool stub with the current configuration.lt_cl_silent=falseSHELL=\${CONFIG_SHELL-$SHELL}_LTEOFcat >>"$CONFIG_LT" <<\_LTEOFAS_SHELL_SANITIZE_AS_PREPAREexec AS_MESSAGE_FD>&1exec AS_MESSAGE_LOG_FD>>config.log{ echo AS_BOX([Running $as_me.])} >&AS_MESSAGE_LOG_FDlt_cl_help="\\`$as_me' creates a local libtool stub from the current configuration,for use in further configure time tests before the real libtool isgenerated.Usage: $[0] [[OPTIONS]] -h, --help print this help, then exit -V, --version print version number, then exit -q, --quiet do not print progress messages -d, --debug don't remove temporary filesReport bugs to <bug-libtool@gnu.org>."lt_cl_version="\m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnlm4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])configured by $[0], generated by m4_PACKAGE_STRING.Copyright (C) 2008 Free Software Foundation, Inc.This config.lt script is free software; the Free Software Foundationgives unlimited permision to copy, distribute and modify it."while test $[#] != 0do case $[1] in --version | --v* | -V ) echo "$lt_cl_version"; exit 0 ;; --help | --h* | -h ) echo "$lt_cl_help"; exit 0 ;; --debug | --d* | -d ) debug=: ;; --quiet | --q* | --silent | --s* | -q ) lt_cl_silent=: ;; -*) AC_MSG_ERROR([unrecognized option: $[1]Try \`$[0] --help' for more information.]) ;; *) AC_MSG_ERROR([unrecognized argument: $[1]Try \`$[0] --help' for more information.]) ;; esac shiftdoneif $lt_cl_silent; then exec AS_MESSAGE_FD>/dev/nullfi_LTEOFcat >>"$CONFIG_LT" <<_LTEOF_LT_OUTPUT_LIBTOOL_COMMANDS_INIT_LTEOFcat >>"$CONFIG_LT" <<\_LTEOFAC_MSG_NOTICE([creating $ofile])_LT_OUTPUT_LIBTOOL_COMMANDSAS_EXIT(0)_LTEOFchmod +x "$CONFIG_LT"# configure is writing to config.log, but config.lt does its own redirection,# appending to config.log, which fails on DOS, as config.log is still kept# open by configure. Here we exec the FD to /dev/null, effectively closing# config.log, so it can be properly (re)opened and appended to by config.lt.if test "$no_create" != yes; then lt_cl_success=: test "$silent" = yes && lt_config_lt_args="$lt_config_lt_args --quiet" exec AS_MESSAGE_LOG_FD>/dev/null $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false exec AS_MESSAGE_LOG_FD>>config.log $lt_cl_success || AS_EXIT(1)fi])# LT_OUTPUT# _LT_CONFIG(TAG)# ---------------# If TAG is the built-in tag, create an initial libtool script with a# default configuration from the untagged config vars. Otherwise add code# to config.status for appending the configuration named by TAG from the# matching tagged config vars.m4_defun([_LT_CONFIG],[m4_require([_LT_FILEUTILS_DEFAULTS])dnl_LT_CONFIG_SAVE_COMMANDS([ m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl m4_if(_LT_TAG, [C], [ # See if we are running on zsh, and set the options which allow our # commands through without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi cfgfile="${ofile}T" trap "$RM \"$cfgfile\"; exit 1" 1 2 15 $RM "$cfgfile" cat <<_LT_EOF >> "$cfgfile"#! $SHELL# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:# NOTE: Changes made to this file will be lost: look at ltmain.sh.#_LT_COPYING_LT_LIBTOOL_TAGS# ### BEGIN LIBTOOL CONFIG_LT_LIBTOOL_CONFIG_VARS_LT_LIBTOOL_TAG_VARS# ### END LIBTOOL CONFIG_LT_EOF case $host_os in aix3*) cat <<\_LT_EOF >> "$cfgfile"# AIX sometimes has problems with the GCC collect2 program. For some# reason, if we set the COLLECT_NAMES environment variable, the problems# vanish in a puff of smoke.if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMESfi_LT_EOF ;; esac _LT_PROG_LTMAIN # We use sed instead of cat because bash on DJGPP gets confused if # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ || (rm -f "$cfgfile"; exit 1) _LT_PROG_XSI_SHELLFNS sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ || (rm -f "$cfgfile"; exit 1) mv -f "$cfgfile" "$ofile" || (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile"],[cat <<_LT_EOF >> "$ofile"dnl Unfortunately we have to use $1 here, since _LT_TAG is not expandeddnl in a comment (ie after a #).# ### BEGIN LIBTOOL TAG CONFIG: $1_LT_LIBTOOL_TAG_VARS(_LT_TAG)# ### END LIBTOOL TAG CONFIG: $1_LT_EOF])dnl /m4_if],[m4_if([$1], [], [ PACKAGE='$PACKAGE' VERSION='$VERSION' TIMESTAMP='$TIMESTAMP' RM='$RM' ofile='$ofile'], [])])dnl /_LT_CONFIG_SAVE_COMMANDS])# _LT_CONFIG# LT_SUPPORTED_TAG(TAG)# ---------------------# Trace this macro to discover what tags are supported by the libtool# --tag option, using:# autoconf --trace 'LT_SUPPORTED_TAG:$1'AC_DEFUN([LT_SUPPORTED_TAG], [])# C support is built-in for nowm4_define([_LT_LANG_C_enabled], [])m4_define([_LT_TAGS], [])# LT_LANG(LANG)# -------------# Enable libtool support for the given language if not already enabled.AC_DEFUN([LT_LANG],[AC_BEFORE([$0], [LT_OUTPUT])dnlm4_case([$1], [C], [_LT_LANG(C)], [C++], [_LT_LANG(CXX)], [Java], [_LT_LANG(GCJ)], [Fortran 77], [_LT_LANG(F77)], [Fortran], [_LT_LANG(FC)], [Windows Resource], [_LT_LANG(RC)], [m4_ifdef([_LT_LANG_]$1[_CONFIG], [_LT_LANG($1)], [m4_fatal([$0: unsupported language: "$1"])])])dnl])# LT_LANG# _LT_LANG(LANGNAME)# ------------------m4_defun([_LT_LANG],[m4_ifdef([_LT_LANG_]$1[_enabled], [], [LT_SUPPORTED_TAG([$1])dnl m4_append([_LT_TAGS], [$1 ])dnl m4_define([_LT_LANG_]$1[_enabled], [])dnl _LT_LANG_$1_CONFIG($1)])dnl])# _LT_LANG# _LT_LANG_DEFAULT_CONFIG# -----------------------m4_defun([_LT_LANG_DEFAULT_CONFIG],[AC_PROVIDE_IFELSE([AC_PROG_CXX], [LT_LANG(CXX)], [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])AC_PROVIDE_IFELSE([AC_PROG_F77], [LT_LANG(F77)], [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])AC_PROVIDE_IFELSE([AC_PROG_FC], [LT_LANG(FC)], [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocaldnl pulling things in needlessly.AC_PROVIDE_IFELSE([AC_PROG_GCJ], [LT_LANG(GCJ)], [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], [LT_LANG(GCJ)], [AC_PROVIDE_IFELSE([LT_PROG_GCJ], [LT_LANG(GCJ)], [m4_ifdef([AC_PROG_GCJ], [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) m4_ifdef([A][M_PROG_GCJ], [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) m4_ifdef([LT_PROG_GCJ], [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])AC_PROVIDE_IFELSE([LT_PROG_RC], [LT_LANG(RC)], [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])])# _LT_LANG_DEFAULT_CONFIG# Obsolete macros:AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])dnl aclocal-1.4 backwards compatibility:dnl AC_DEFUN([AC_LIBTOOL_CXX], [])dnl AC_DEFUN([AC_LIBTOOL_F77], [])dnl AC_DEFUN([AC_LIBTOOL_FC], [])dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])# _LT_TAG_COMPILER# ----------------m4_defun([_LT_TAG_COMPILER],[AC_REQUIRE([AC_PROG_CC])dnl_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl# If no C compiler was specified, use CC.LTCC=${LTCC-"$CC"}# If no C compiler flags were specified, use CFLAGS.LTCFLAGS=${LTCFLAGS-"$CFLAGS"}# Allow CC to be a program name with arguments.compiler=$CC])# _LT_TAG_COMPILER# _LT_COMPILER_BOILERPLATE# ------------------------# Check for compiler boilerplate output or warnings with# the simple compiler test code.m4_defun([_LT_COMPILER_BOILERPLATE],[m4_require([_LT_DECL_SED])dnlac_outfile=conftest.$ac_objextecho "$lt_simple_compile_test_code" >conftest.$ac_exteval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err_lt_compiler_boilerplate=`cat conftest.err`$RM conftest*])# _LT_COMPILER_BOILERPLATE# _LT_LINKER_BOILERPLATE# ----------------------# Check for linker boilerplate output or warnings with# the simple link test code.m4_defun([_LT_LINKER_BOILERPLATE],[m4_require([_LT_DECL_SED])dnlac_outfile=conftest.$ac_objextecho "$lt_simple_link_test_code" >conftest.$ac_exteval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err_lt_linker_boilerplate=`cat conftest.err`$RM -r conftest*])# _LT_LINKER_BOILERPLATE# _LT_REQUIRED_DARWIN_CHECKS# -------------------------m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ case $host_os in rhapsody* | darwin*) AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) AC_CHECK_TOOL([LIPO], [lipo], [:]) AC_CHECK_TOOL([OTOOL], [otool], [:]) AC_CHECK_TOOL([OTOOL64], [otool64], [:]) _LT_DECL([], [DSYMUTIL], [1], [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) _LT_DECL([], [NMEDIT], [1], [Tool to change global to local symbols on Mac OS X]) _LT_DECL([], [LIPO], [1], [Tool to manipulate fat objects and archives on Mac OS X]) _LT_DECL([], [OTOOL], [1], [ldd/readelf like tool for Mach-O binaries on Mac OS X]) _LT_DECL([], [OTOOL64], [1], [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], [lt_cv_apple_cc_single_mod=no if test -z "${LT_MULTI_MODULE}"; then # By default we will add the -single_module flag. You can override # by either setting the environment variable LT_MULTI_MODULE # non-empty at configure time, or by adding -multi_module to the # link flags. rm -rf libconftest.dylib* echo "int foo(void){return 1;}" > conftest.c echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c 2>conftest.err _lt_result=$? if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then lt_cv_apple_cc_single_mod=yes else cat conftest.err >&AS_MESSAGE_LOG_FD fi rm -rf libconftest.dylib* rm -f conftest.*
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -