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

📄 aclocal.m4

📁 UNIX/LINUX下面的用户文件系统
💻 M4
📖 第 1 页 / 共 5 页
字号:
# generated automatically by aclocal 1.9.6 -*- Autoconf -*-# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,# 2005  Free Software Foundation, Inc.# This file is free software; the Free Software Foundation# gives unlimited permission to copy and/or distribute it,# with or without modifications, as long as this notice is preserved.# This program is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY, to the extent permitted by law; without# even the implied warranty of MERCHANTABILITY or FITNESS FOR A# PARTICULAR PURPOSE.# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-m4_define([_LT_COPYING], [dnl# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004# Free Software Foundation, Inc.## This file is part of GNU Libtool:# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996## This program is free software; you can redistribute it and/or modify# it under the terms of the GNU General Public License as published by# the Free Software Foundation; either version 2 of the License, or# (at your option) any later version.## This program is distributed in the hope that it will be useful, but# WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU# General Public License for more details.## You should have received a copy of the GNU General Public License# along with this program; if not, write to the Free Software# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.## As a special exception to the GNU General Public License, if you# distribute this file as part of a program that contains a# configuration script generated by Autoconf, you may include it under# the same distribution terms that you use for the rest of that program.])# serial 49 LT_INIT# LT_PREREQ(VERSION)# ------------------# Complain and exit if this libtool version is less that VERSION.m4_define([LT_PREREQ],[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,       [m4_default([$3],		   [m4_fatal([Libtool version $1 or higher is required],		             63)])],       [$2])])# LT_INIT([OPTIONS])# --------------------------AC_DEFUN([LT_INIT],[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULTdnl Autoconf doesn't catch unexpanded LT_ macros by default:m4_pattern_forbid([^_?LT_[A-Z_]+$])dnlm4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW)$])dnldnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4dnl unless we require an AC_DEFUNed macro:AC_REQUIRE([LTOPTIONS_VERSION])dnlAC_REQUIRE([LTSUGAR_VERSION])dnlAC_REQUIRE([LTVERSION_VERSION])dnlAC_REQUIRE([_LT_PROG_LTMAIN])dnlAC_BEFORE([$0], [LT_LANG])dnl# This can be used to rebuild libtool when neededLIBTOOL_DEPS="$ltmain"# Always use our own libtool.LIBTOOL='$(SHELL) $(top_builddir)/libtool'AC_SUBST(LIBTOOL)dnl# Set options_LT_SET_OPTIONS([$1])dnl_LT_SETUP# Only expand once:m4_define([LT_INIT])])# _LT_INIT# Old names:AU_DEFUN([AC_PROG_LIBTOOL],	    [LT_INIT])AU_DEFUN([AM_PROG_LIBTOOL],	    [LT_INIT])# _LT_SETUP# ---------m4_define([_LT_SETUP],[AC_REQUIRE([AC_CANONICAL_HOST])dnlAC_REQUIRE([AC_CANONICAL_BUILD])dnl_LT_DECL([], [host_alias], [0], [The host system])dnl_LT_DECL([], [host], [0])dnldnlAC_REQUIRE([AC_PROG_CC])dnlAC_REQUIRE([AC_PROG_LD])dnlAC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnlAC_REQUIRE([AC_PROG_NM])dnldnlAC_REQUIRE([AC_PROG_LN_S])dnltest -z "$LN_S" && LN_S="ln -s"_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnldnlAC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnlAC_REQUIRE([AC_LIBTOOL_SYS_OLD_ARCHIVE])dnlAC_REQUIRE([AC_LIBTOOL_SYS_MAX_CMD_LEN])dnlAC_REQUIRE([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])dnlAC_REQUIRE([AC_OBJEXT])dnl_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnlAC_REQUIRE([AC_EXEEXT])dnl_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnldnl_LT_CONFIG_LIBTOOL_INIT([# See if we are running on zsh, and set the options which allow our# commands through without removal of \ escapes INIT.if test -n "\${ZSH_VERSION+set}" ; then   setopt NO_GLOB_SUBSTfi])if test -n "${ZSH_VERSION+set}" ; then   setopt NO_GLOB_SUBSTfiAC_LIBTOOL_OBJDIRAC_REQUIRE([_LT_AC_SYS_COMPILER])dnl_LT_AC_PROG_ECHO_BACKSLASHcase $host_os inaix3*)  # 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_NAMES  fi  ;;esac# Sed substitution that helps us do robust quoting.  It backslashifies# metacharacters that are still active within double-quoted strings.Xsed='sed -e s/^X//'[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']# Same as above, but do not quote variable references.[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']# Sed substitution to delay expansion of an escaped shell variable in a# double_quote_subst'ed string.delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'# Sed substitution to delay expansion of an escaped single quote.delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'# Sed substitution to avoid accidental globbing in evaled expressionsno_glob_subst='s/\*/\\\*/g'# Constants:rm="rm -f"# Global variables:default_ofile=libtoolofile="$default_ofile"can_build_shared=yes# All known linkers require a `.a' archive for static linking (except M$VC,# which needs '.lib').libext=awith_gnu_ld="$lt_cv_prog_gnu_ld"old_CC="$CC"old_CFLAGS="$CFLAGS"# Set sane defaults for various variablestest -z "$CC" && CC=cctest -z "$LTCC" && LTCC=$CCtest -z "$LD" && LD=ldtest -z "$ac_objext" && ac_objext=occ_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`# Only perform the check for file, if the check method requires ittest -z "$MAGIC_CMD" && MAGIC_CMD=filecase $deplibs_check_method infile_magic*)  if test "$file_magic_cmd" = '$MAGIC_CMD'; then    AC_PATH_MAGIC  fi  ;;esacAC_ARG_ENABLE([libtool-lock],    [AC_HELP_STRING([--disable-libtool-lock],	[avoid locking (might break parallel builds)])])test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes# Use C for the default configuration in the libtool script_LT_LANG_C_CONFIG_LT_LANG_DEFAULT_CONFIG_LT_CONFIG_COMMANDS])# _LT_SETUP# _LT_PROG_LTMAIN# ---------------# In libtool itself `ltmain.sh' is in the build tree, but everything else# ships it in the source tree, for completeness, if we find a copy in the# build tree use that before falling back to auxdir.## Note that this code is called both from `configure', and `config.status'# now that we use AC_CONFIG_COMMANDS to generate libtool.  Notably,# `config.status' has no value for ac_aux_dir unless we are using Automake,# so we pass a copy along to make sure it has a sensible value anyway.AC_DEFUN([_LT_PROG_LTMAIN],[_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])case $ac_aux_dir in  $srcdir)   ltmain=./ltmain.sh ;;  $srcdir/*) ltmain=`expr "$ac_aux_dir" : "$srcdir/\(.*\)"`/ltmain.sh ;;esactest -f "$ltmain" || ltmain="$ac_aux_dir/ltmain.sh"])# _LT_PROG_LTMAIN# So that we can recreate a full libtool script including additional# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS# in macros and then make a single call at the end using the `libtool'# label.# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])# ----------------------------------------# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.m4_define([_LT_CONFIG_LIBTOOL_INIT],[m4_ifval([$1],          [m4_append([_LT_OUTPUT_LIBTOOL_INIT],                     [$1])])])# Initialize.m4_define([_LT_OUTPUT_LIBTOOL_INIT])# _LT_CONFIG_LIBTOOL([COMMANDS])# ------------------------------# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.m4_define([_LT_CONFIG_LIBTOOL],[m4_ifval([$1],          [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],                     [$1])])])# Initialize.m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])# ---------------------------------------------------m4_define([_LT_CONFIG_SAVE_COMMANDS],[_LT_CONFIG_LIBTOOL([$1])_LT_CONFIG_LIBTOOL_INIT([$2])])# _LT_FORMAT_COMMENT([COMMENT])# -----------------------------# Add leading comment marks to the start of each line, and a trailing# full-stop to the whole comment if one is not present already.m4_define([_LT_FORMAT_COMMENT],[m4_ifval([$1], [m4_bpatsubst([$1], [^ *], [# ])]m4_bmatch([$1], [[!?.]$], [], [.]))])# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])# -------------------------------------------------------------------# CONFIGNAME is the name given to the value in the libtool script.# VARNAME is the (base) name used in the configure script.# VALUE may be 0, 1 or 2 for a computed quote escaped value based on# VARNAME.  Any other value will be used directly.m4_define([_LT_DECL],[lt_if_append_uniq([lt_decl_varnames], [$2], [[, ]],    [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],	[m4_ifval([$1], [$1], [$2])])    lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])    m4_ifval([$4],	[lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])    lt_dict_add_subkey([lt_decl_dict], [$2],	[tagged?], [m4_ifval([$5], [yes], [no])])])])# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])# --------------------------------------------------------m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])# -------------------------------------------------m4_define([lt_decl_tag_varnames],[_lt_decl_filter([tagged?], [yes], $@)])m4_define([_lt_decl_filter],[m4_case([$#],  [0], [m4_fatal([$0: too few arguments: $#])],  [1], [m4_fatal([$0: too few arguments: $#: $1])],  [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],  [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],  [lt_dict_filter([lt_decl_dict], $@)])[]dnl])# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])# ---------------------------------------------------m4_define([lt_decl_quote_varnames],[_lt_decl_filter([value], [1], $@)])# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])# ----------------------------------------------------m4_define([lt_decl_dquote_varnames],[_lt_decl_filter([value], [2], $@)])# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])# ----------------------------------------------------m4_define([lt_decl_varnames_tagged],[_$0(m4_quote(m4_default([$1], [[, ]])),     m4_quote(m4_if([$2], [],		     m4_quote(lt_decl_tag_varnames),		  m4_quote(m4_shift($@)))),     m4_split(m4_normalize(m4_quote(_LT_TAGS))))])m4_define([_lt_decl_varnames_tagged], [lt_combine([$1], [$2], [_], $3)])# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])# ------------------------------------------------m4_define([lt_decl_all_varnames],[_$0(m4_quote(m4_default([$1], [[, ]])),     m4_if([$2], [],	   m4_quote(lt_decl_varnames),	m4_quote(m4_shift($@))))[]dnl])m4_define([_lt_decl_all_varnames],[lt_join($@, lt_decl_varnames_tagged([$1],			lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl])# _LT_CONFIG_STATUS_DECLARE([VARNAME])# ------------------------------------# Quote a variable value, and forward it to `config.status' so that its# declaration there will have the same value as in `configure'.  VARNAME# must have a single quote delimited value for this to work.m4_define([_LT_CONFIG_STATUS_DECLARE],[$1='`$echo "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])# _LT_CONFIG_STATUS_DECLARATIONS# ------------------------------# We delimit libtool config variables with single quotes, so when# we write them to config.status, we have to be sure to quote all# embedded single quotes properly.  In configure, this macro expands# each variable declared with _LT_DECL (and _LT_TAGDECL) into:##    <var>='`$echo "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'m4_define([_LT_CONFIG_STATUS_DECLARATIONS],[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),    [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])# _LT_LIBTOOL_TAGS# ----------------# Output comment and list of tags supported by the scriptm4_define([_LT_LIBTOOL_TAGS],[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnlavailable_tags="[]_LT_TAGS[]"dnl])# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])# -----------------------------------# Extract the dictionary values for VARNAME (optionally with TAG) and# expand to a commented shell variable setting:##    # Some comment about what VAR is for.#    visible_name=$lt_internal_namem4_define([_LT_LIBTOOL_DECLARE],[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],					   [description])))[]dnlm4_pushdef([_libtool_name],    m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnlm4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),    [0], [_libtool_name=[$]$1],    [1], [_libtool_name=$lt_[]$1],

⌨️ 快捷键说明

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