PageRenderTime 48ms CodeModel.GetById 21ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 1ms

/testlibs/gtest/m4/libtool.m4

https://github.com/deltaforge/nebu-app-hadoop
m4 | 7377 lines | 5349 code | 727 blank | 1301 comment | 0 complexity | 68fe61a1c267bdd1a7a0f0aa7efedaa5 MD5 | raw file

Large files files are truncated, but you can click here to view the full file

   1# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
   2#
   3#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
   4#                 2006, 2007, 2008 Free Software Foundation, Inc.
   5#   Written by Gordon Matzigkeit, 1996
   6#
   7# This file is free software; the Free Software Foundation gives
   8# unlimited permission to copy and/or distribute it, with or without
   9# modifications, as long as this notice is preserved.
  10
  11m4_define([_LT_COPYING], [dnl
  12#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  13#                 2006, 2007, 2008 Free Software Foundation, Inc.
  14#   Written by Gordon Matzigkeit, 1996
  15#
  16#   This file is part of GNU Libtool.
  17#
  18# GNU Libtool is free software; you can redistribute it and/or
  19# modify it under the terms of the GNU General Public License as
  20# published by the Free Software Foundation; either version 2 of
  21# the License, or (at your option) any later version.
  22#
  23# As a special exception to the GNU General Public License,
  24# if you distribute this file as part of a program or library that
  25# is built using GNU Libtool, you may include this file under the
  26# same distribution terms that you use for the rest of that program.
  27#
  28# GNU Libtool is distributed in the hope that it will be useful,
  29# but WITHOUT ANY WARRANTY; without even the implied warranty of
  30# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  31# GNU General Public License for more details.
  32#
  33# You should have received a copy of the GNU General Public License
  34# along with GNU Libtool; see the file COPYING.  If not, a copy
  35# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  36# obtained by writing to the Free Software Foundation, Inc.,
  37# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  38])
  39
  40# serial 56 LT_INIT
  41
  42
  43# LT_PREREQ(VERSION)
  44# ------------------
  45# Complain and exit if this libtool version is less that VERSION.
  46m4_defun([LT_PREREQ],
  47[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
  48       [m4_default([$3],
  49		   [m4_fatal([Libtool version $1 or higher is required],
  50		             63)])],
  51       [$2])])
  52
  53
  54# _LT_CHECK_BUILDDIR
  55# ------------------
  56# Complain if the absolute build directory name contains unusual characters
  57m4_defun([_LT_CHECK_BUILDDIR],
  58[case `pwd` in
  59  *\ * | *\	*)
  60    AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
  61esac
  62])
  63
  64
  65# LT_INIT([OPTIONS])
  66# ------------------
  67AC_DEFUN([LT_INIT],
  68[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
  69AC_BEFORE([$0], [LT_LANG])dnl
  70AC_BEFORE([$0], [LT_OUTPUT])dnl
  71AC_BEFORE([$0], [LTDL_INIT])dnl
  72m4_require([_LT_CHECK_BUILDDIR])dnl
  73
  74dnl Autoconf doesn't catch unexpanded LT_ macros by default:
  75m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
  76m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
  77dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
  78dnl unless we require an AC_DEFUNed macro:
  79AC_REQUIRE([LTOPTIONS_VERSION])dnl
  80AC_REQUIRE([LTSUGAR_VERSION])dnl
  81AC_REQUIRE([LTVERSION_VERSION])dnl
  82AC_REQUIRE([LTOBSOLETE_VERSION])dnl
  83m4_require([_LT_PROG_LTMAIN])dnl
  84
  85dnl Parse OPTIONS
  86_LT_SET_OPTIONS([$0], [$1])
  87
  88# This can be used to rebuild libtool when needed
  89LIBTOOL_DEPS="$ltmain"
  90
  91# Always use our own libtool.
  92LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  93AC_SUBST(LIBTOOL)dnl
  94
  95_LT_SETUP
  96
  97# Only expand once:
  98m4_define([LT_INIT])
  99])# LT_INIT
 100
 101# Old names:
 102AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
 103AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
 104dnl aclocal-1.4 backwards compatibility:
 105dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
 106dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
 107
 108
 109# _LT_CC_BASENAME(CC)
 110# -------------------
 111# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
 112m4_defun([_LT_CC_BASENAME],
 113[for cc_temp in $1""; do
 114  case $cc_temp in
 115    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
 116    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
 117    \-*) ;;
 118    *) break;;
 119  esac
 120done
 121cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 122])
 123
 124
 125# _LT_FILEUTILS_DEFAULTS
 126# ----------------------
 127# It is okay to use these file commands and assume they have been set
 128# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
 129m4_defun([_LT_FILEUTILS_DEFAULTS],
 130[: ${CP="cp -f"}
 131: ${MV="mv -f"}
 132: ${RM="rm -f"}
 133])# _LT_FILEUTILS_DEFAULTS
 134
 135
 136# _LT_SETUP
 137# ---------
 138m4_defun([_LT_SETUP],
 139[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 140AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 141_LT_DECL([], [host_alias], [0], [The host system])dnl
 142_LT_DECL([], [host], [0])dnl
 143_LT_DECL([], [host_os], [0])dnl
 144dnl
 145_LT_DECL([], [build_alias], [0], [The build system])dnl
 146_LT_DECL([], [build], [0])dnl
 147_LT_DECL([], [build_os], [0])dnl
 148dnl
 149AC_REQUIRE([AC_PROG_CC])dnl
 150AC_REQUIRE([LT_PATH_LD])dnl
 151AC_REQUIRE([LT_PATH_NM])dnl
 152dnl
 153AC_REQUIRE([AC_PROG_LN_S])dnl
 154test -z "$LN_S" && LN_S="ln -s"
 155_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
 156dnl
 157AC_REQUIRE([LT_CMD_MAX_LEN])dnl
 158_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
 159_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
 160dnl
 161m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 162m4_require([_LT_CHECK_SHELL_FEATURES])dnl
 163m4_require([_LT_CMD_RELOAD])dnl
 164m4_require([_LT_CHECK_MAGIC_METHOD])dnl
 165m4_require([_LT_CMD_OLD_ARCHIVE])dnl
 166m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
 167
 168_LT_CONFIG_LIBTOOL_INIT([
 169# See if we are running on zsh, and set the options which allow our
 170# commands through without removal of \ escapes INIT.
 171if test -n "\${ZSH_VERSION+set}" ; then
 172   setopt NO_GLOB_SUBST
 173fi
 174])
 175if test -n "${ZSH_VERSION+set}" ; then
 176   setopt NO_GLOB_SUBST
 177fi
 178
 179_LT_CHECK_OBJDIR
 180
 181m4_require([_LT_TAG_COMPILER])dnl
 182_LT_PROG_ECHO_BACKSLASH
 183
 184case $host_os in
 185aix3*)
 186  # AIX sometimes has problems with the GCC collect2 program.  For some
 187  # reason, if we set the COLLECT_NAMES environment variable, the problems
 188  # vanish in a puff of smoke.
 189  if test "X${COLLECT_NAMES+set}" != Xset; then
 190    COLLECT_NAMES=
 191    export COLLECT_NAMES
 192  fi
 193  ;;
 194esac
 195
 196# Sed substitution that helps us do robust quoting.  It backslashifies
 197# metacharacters that are still active within double-quoted strings.
 198sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
 199
 200# Same as above, but do not quote variable references.
 201double_quote_subst='s/\([["`\\]]\)/\\\1/g'
 202
 203# Sed substitution to delay expansion of an escaped shell variable in a
 204# double_quote_subst'ed string.
 205delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 206
 207# Sed substitution to delay expansion of an escaped single quote.
 208delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 209
 210# Sed substitution to avoid accidental globbing in evaled expressions
 211no_glob_subst='s/\*/\\\*/g'
 212
 213# Global variables:
 214ofile=libtool
 215can_build_shared=yes
 216
 217# All known linkers require a `.a' archive for static linking (except MSVC,
 218# which needs '.lib').
 219libext=a
 220
 221with_gnu_ld="$lt_cv_prog_gnu_ld"
 222
 223old_CC="$CC"
 224old_CFLAGS="$CFLAGS"
 225
 226# Set sane defaults for various variables
 227test -z "$CC" && CC=cc
 228test -z "$LTCC" && LTCC=$CC
 229test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 230test -z "$LD" && LD=ld
 231test -z "$ac_objext" && ac_objext=o
 232
 233_LT_CC_BASENAME([$compiler])
 234
 235# Only perform the check for file, if the check method requires it
 236test -z "$MAGIC_CMD" && MAGIC_CMD=file
 237case $deplibs_check_method in
 238file_magic*)
 239  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 240    _LT_PATH_MAGIC
 241  fi
 242  ;;
 243esac
 244
 245# Use C for the default configuration in the libtool script
 246LT_SUPPORTED_TAG([CC])
 247_LT_LANG_C_CONFIG
 248_LT_LANG_DEFAULT_CONFIG
 249_LT_CONFIG_COMMANDS
 250])# _LT_SETUP
 251
 252
 253# _LT_PROG_LTMAIN
 254# ---------------
 255# Note that this code is called both from `configure', and `config.status'
 256# now that we use AC_CONFIG_COMMANDS to generate libtool.  Notably,
 257# `config.status' has no value for ac_aux_dir unless we are using Automake,
 258# so we pass a copy along to make sure it has a sensible value anyway.
 259m4_defun([_LT_PROG_LTMAIN],
 260[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
 261_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
 262ltmain="$ac_aux_dir/ltmain.sh"
 263])# _LT_PROG_LTMAIN
 264
 265
 266## ------------------------------------- ##
 267## Accumulate code for creating libtool. ##
 268## ------------------------------------- ##
 269
 270# So that we can recreate a full libtool script including additional
 271# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
 272# in macros and then make a single call at the end using the `libtool'
 273# label.
 274
 275
 276# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
 277# ----------------------------------------
 278# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
 279m4_define([_LT_CONFIG_LIBTOOL_INIT],
 280[m4_ifval([$1],
 281          [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
 282                     [$1
 283])])])
 284
 285# Initialize.
 286m4_define([_LT_OUTPUT_LIBTOOL_INIT])
 287
 288
 289# _LT_CONFIG_LIBTOOL([COMMANDS])
 290# ------------------------------
 291# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
 292m4_define([_LT_CONFIG_LIBTOOL],
 293[m4_ifval([$1],
 294          [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
 295                     [$1
 296])])])
 297
 298# Initialize.
 299m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
 300
 301
 302# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
 303# -----------------------------------------------------
 304m4_defun([_LT_CONFIG_SAVE_COMMANDS],
 305[_LT_CONFIG_LIBTOOL([$1])
 306_LT_CONFIG_LIBTOOL_INIT([$2])
 307])
 308
 309
 310# _LT_FORMAT_COMMENT([COMMENT])
 311# -----------------------------
 312# Add leading comment marks to the start of each line, and a trailing
 313# full-stop to the whole comment if one is not present already.
 314m4_define([_LT_FORMAT_COMMENT],
 315[m4_ifval([$1], [
 316m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
 317              [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
 318)])
 319
 320
 321
 322## ------------------------ ##
 323## FIXME: Eliminate VARNAME ##
 324## ------------------------ ##
 325
 326
 327# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
 328# -------------------------------------------------------------------
 329# CONFIGNAME is the name given to the value in the libtool script.
 330# VARNAME is the (base) name used in the configure script.
 331# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
 332# VARNAME.  Any other value will be used directly.
 333m4_define([_LT_DECL],
 334[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
 335    [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
 336	[m4_ifval([$1], [$1], [$2])])
 337    lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
 338    m4_ifval([$4],
 339	[lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
 340    lt_dict_add_subkey([lt_decl_dict], [$2],
 341	[tagged?], [m4_ifval([$5], [yes], [no])])])
 342])
 343
 344
 345# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
 346# --------------------------------------------------------
 347m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
 348
 349
 350# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
 351# ------------------------------------------------
 352m4_define([lt_decl_tag_varnames],
 353[_lt_decl_filter([tagged?], [yes], $@)])
 354
 355
 356# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
 357# ---------------------------------------------------------
 358m4_define([_lt_decl_filter],
 359[m4_case([$#],
 360  [0], [m4_fatal([$0: too few arguments: $#])],
 361  [1], [m4_fatal([$0: too few arguments: $#: $1])],
 362  [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
 363  [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
 364  [lt_dict_filter([lt_decl_dict], $@)])[]dnl
 365])
 366
 367
 368# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
 369# --------------------------------------------------
 370m4_define([lt_decl_quote_varnames],
 371[_lt_decl_filter([value], [1], $@)])
 372
 373
 374# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
 375# ---------------------------------------------------
 376m4_define([lt_decl_dquote_varnames],
 377[_lt_decl_filter([value], [2], $@)])
 378
 379
 380# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
 381# ---------------------------------------------------
 382m4_define([lt_decl_varnames_tagged],
 383[m4_assert([$# <= 2])dnl
 384_$0(m4_quote(m4_default([$1], [[, ]])),
 385    m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
 386    m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
 387m4_define([_lt_decl_varnames_tagged],
 388[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
 389
 390
 391# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
 392# ------------------------------------------------
 393m4_define([lt_decl_all_varnames],
 394[_$0(m4_quote(m4_default([$1], [[, ]])),
 395     m4_if([$2], [],
 396	   m4_quote(lt_decl_varnames),
 397	m4_quote(m4_shift($@))))[]dnl
 398])
 399m4_define([_lt_decl_all_varnames],
 400[lt_join($@, lt_decl_varnames_tagged([$1],
 401			lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
 402])
 403
 404
 405# _LT_CONFIG_STATUS_DECLARE([VARNAME])
 406# ------------------------------------
 407# Quote a variable value, and forward it to `config.status' so that its
 408# declaration there will have the same value as in `configure'.  VARNAME
 409# must have a single quote delimited value for this to work.
 410m4_define([_LT_CONFIG_STATUS_DECLARE],
 411[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
 412
 413
 414# _LT_CONFIG_STATUS_DECLARATIONS
 415# ------------------------------
 416# We delimit libtool config variables with single quotes, so when
 417# we write them to config.status, we have to be sure to quote all
 418# embedded single quotes properly.  In configure, this macro expands
 419# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
 420#
 421#    <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
 422m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
 423[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
 424    [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
 425
 426
 427# _LT_LIBTOOL_TAGS
 428# ----------------
 429# Output comment and list of tags supported by the script
 430m4_defun([_LT_LIBTOOL_TAGS],
 431[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
 432available_tags="_LT_TAGS"dnl
 433])
 434
 435
 436# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
 437# -----------------------------------
 438# Extract the dictionary values for VARNAME (optionally with TAG) and
 439# expand to a commented shell variable setting:
 440#
 441#    # Some comment about what VAR is for.
 442#    visible_name=$lt_internal_name
 443m4_define([_LT_LIBTOOL_DECLARE],
 444[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
 445					   [description])))[]dnl
 446m4_pushdef([_libtool_name],
 447    m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
 448m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
 449    [0], [_libtool_name=[$]$1],
 450    [1], [_libtool_name=$lt_[]$1],
 451    [2], [_libtool_name=$lt_[]$1],
 452    [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
 453m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
 454])
 455
 456
 457# _LT_LIBTOOL_CONFIG_VARS
 458# -----------------------
 459# Produce commented declarations of non-tagged libtool config variables
 460# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
 461# script.  Tagged libtool config variables (even for the LIBTOOL CONFIG
 462# section) are produced by _LT_LIBTOOL_TAG_VARS.
 463m4_defun([_LT_LIBTOOL_CONFIG_VARS],
 464[m4_foreach([_lt_var],
 465    m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
 466    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
 467
 468
 469# _LT_LIBTOOL_TAG_VARS(TAG)
 470# -------------------------
 471m4_define([_LT_LIBTOOL_TAG_VARS],
 472[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
 473    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
 474
 475
 476# _LT_TAGVAR(VARNAME, [TAGNAME])
 477# ------------------------------
 478m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
 479
 480
 481# _LT_CONFIG_COMMANDS
 482# -------------------
 483# Send accumulated output to $CONFIG_STATUS.  Thanks to the lists of
 484# variables for single and double quote escaping we saved from calls
 485# to _LT_DECL, we can put quote escaped variables declarations
 486# into `config.status', and then the shell code to quote escape them in
 487# for loops in `config.status'.  Finally, any additional code accumulated
 488# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
 489m4_defun([_LT_CONFIG_COMMANDS],
 490[AC_PROVIDE_IFELSE([LT_OUTPUT],
 491	dnl If the libtool generation code has been placed in $CONFIG_LT,
 492	dnl instead of duplicating it all over again into config.status,
 493	dnl then we will have config.status run $CONFIG_LT later, so it
 494	dnl needs to know what name is stored there:
 495        [AC_CONFIG_COMMANDS([libtool],
 496            [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
 497    dnl If the libtool generation code is destined for config.status,
 498    dnl expand the accumulated commands and init code now:
 499    [AC_CONFIG_COMMANDS([libtool],
 500        [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
 501])#_LT_CONFIG_COMMANDS
 502
 503
 504# Initialize.
 505m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
 506[
 507
 508# The HP-UX ksh and POSIX shell print the target directory to stdout
 509# if CDPATH is set.
 510(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 511
 512sed_quote_subst='$sed_quote_subst'
 513double_quote_subst='$double_quote_subst'
 514delay_variable_subst='$delay_variable_subst'
 515_LT_CONFIG_STATUS_DECLARATIONS
 516LTCC='$LTCC'
 517LTCFLAGS='$LTCFLAGS'
 518compiler='$compiler_DEFAULT'
 519
 520# Quote evaled strings.
 521for var in lt_decl_all_varnames([[ \
 522]], lt_decl_quote_varnames); do
 523    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 524    *[[\\\\\\\`\\"\\\$]]*)
 525      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 526      ;;
 527    *)
 528      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 529      ;;
 530    esac
 531done
 532
 533# Double-quote double-evaled strings.
 534for var in lt_decl_all_varnames([[ \
 535]], lt_decl_dquote_varnames); do
 536    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 537    *[[\\\\\\\`\\"\\\$]]*)
 538      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 539      ;;
 540    *)
 541      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 542      ;;
 543    esac
 544done
 545
 546# Fix-up fallback echo if it was mangled by the above quoting rules.
 547case \$lt_ECHO in
 548*'\\\[$]0 --fallback-echo"')dnl "
 549  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
 550  ;;
 551esac
 552
 553_LT_OUTPUT_LIBTOOL_INIT
 554])
 555
 556
 557# LT_OUTPUT
 558# ---------
 559# This macro allows early generation of the libtool script (before
 560# AC_OUTPUT is called), incase it is used in configure for compilation
 561# tests.
 562AC_DEFUN([LT_OUTPUT],
 563[: ${CONFIG_LT=./config.lt}
 564AC_MSG_NOTICE([creating $CONFIG_LT])
 565cat >"$CONFIG_LT" <<_LTEOF
 566#! $SHELL
 567# Generated by $as_me.
 568# Run this file to recreate a libtool stub with the current configuration.
 569
 570lt_cl_silent=false
 571SHELL=\${CONFIG_SHELL-$SHELL}
 572_LTEOF
 573
 574cat >>"$CONFIG_LT" <<\_LTEOF
 575AS_SHELL_SANITIZE
 576_AS_PREPARE
 577
 578exec AS_MESSAGE_FD>&1
 579exec AS_MESSAGE_LOG_FD>>config.log
 580{
 581  echo
 582  AS_BOX([Running $as_me.])
 583} >&AS_MESSAGE_LOG_FD
 584
 585lt_cl_help="\
 586\`$as_me' creates a local libtool stub from the current configuration,
 587for use in further configure time tests before the real libtool is
 588generated.
 589
 590Usage: $[0] [[OPTIONS]]
 591
 592  -h, --help      print this help, then exit
 593  -V, --version   print version number, then exit
 594  -q, --quiet     do not print progress messages
 595  -d, --debug     don't remove temporary files
 596
 597Report bugs to <bug-libtool@gnu.org>."
 598
 599lt_cl_version="\
 600m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
 601m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
 602configured by $[0], generated by m4_PACKAGE_STRING.
 603
 604Copyright (C) 2008 Free Software Foundation, Inc.
 605This config.lt script is free software; the Free Software Foundation
 606gives unlimited permision to copy, distribute and modify it."
 607
 608while test $[#] != 0
 609do
 610  case $[1] in
 611    --version | --v* | -V )
 612      echo "$lt_cl_version"; exit 0 ;;
 613    --help | --h* | -h )
 614      echo "$lt_cl_help"; exit 0 ;;
 615    --debug | --d* | -d )
 616      debug=: ;;
 617    --quiet | --q* | --silent | --s* | -q )
 618      lt_cl_silent=: ;;
 619
 620    -*) AC_MSG_ERROR([unrecognized option: $[1]
 621Try \`$[0] --help' for more information.]) ;;
 622
 623    *) AC_MSG_ERROR([unrecognized argument: $[1]
 624Try \`$[0] --help' for more information.]) ;;
 625  esac
 626  shift
 627done
 628
 629if $lt_cl_silent; then
 630  exec AS_MESSAGE_FD>/dev/null
 631fi
 632_LTEOF
 633
 634cat >>"$CONFIG_LT" <<_LTEOF
 635_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
 636_LTEOF
 637
 638cat >>"$CONFIG_LT" <<\_LTEOF
 639AC_MSG_NOTICE([creating $ofile])
 640_LT_OUTPUT_LIBTOOL_COMMANDS
 641AS_EXIT(0)
 642_LTEOF
 643chmod +x "$CONFIG_LT"
 644
 645# configure is writing to config.log, but config.lt does its own redirection,
 646# appending to config.log, which fails on DOS, as config.log is still kept
 647# open by configure.  Here we exec the FD to /dev/null, effectively closing
 648# config.log, so it can be properly (re)opened and appended to by config.lt.
 649if test "$no_create" != yes; then
 650  lt_cl_success=:
 651  test "$silent" = yes &&
 652    lt_config_lt_args="$lt_config_lt_args --quiet"
 653  exec AS_MESSAGE_LOG_FD>/dev/null
 654  $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
 655  exec AS_MESSAGE_LOG_FD>>config.log
 656  $lt_cl_success || AS_EXIT(1)
 657fi
 658])# LT_OUTPUT
 659
 660
 661# _LT_CONFIG(TAG)
 662# ---------------
 663# If TAG is the built-in tag, create an initial libtool script with a
 664# default configuration from the untagged config vars.  Otherwise add code
 665# to config.status for appending the configuration named by TAG from the
 666# matching tagged config vars.
 667m4_defun([_LT_CONFIG],
 668[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 669_LT_CONFIG_SAVE_COMMANDS([
 670  m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
 671  m4_if(_LT_TAG, [C], [
 672    # See if we are running on zsh, and set the options which allow our
 673    # commands through without removal of \ escapes.
 674    if test -n "${ZSH_VERSION+set}" ; then
 675      setopt NO_GLOB_SUBST
 676    fi
 677
 678    cfgfile="${ofile}T"
 679    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
 680    $RM "$cfgfile"
 681
 682    cat <<_LT_EOF >> "$cfgfile"
 683#! $SHELL
 684
 685# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 686# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
 687# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 688# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 689#
 690_LT_COPYING
 691_LT_LIBTOOL_TAGS
 692
 693# ### BEGIN LIBTOOL CONFIG
 694_LT_LIBTOOL_CONFIG_VARS
 695_LT_LIBTOOL_TAG_VARS
 696# ### END LIBTOOL CONFIG
 697
 698_LT_EOF
 699
 700  case $host_os in
 701  aix3*)
 702    cat <<\_LT_EOF >> "$cfgfile"
 703# AIX sometimes has problems with the GCC collect2 program.  For some
 704# reason, if we set the COLLECT_NAMES environment variable, the problems
 705# vanish in a puff of smoke.
 706if test "X${COLLECT_NAMES+set}" != Xset; then
 707  COLLECT_NAMES=
 708  export COLLECT_NAMES
 709fi
 710_LT_EOF
 711    ;;
 712  esac
 713
 714  _LT_PROG_LTMAIN
 715
 716  # We use sed instead of cat because bash on DJGPP gets confused if
 717  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 718  # text mode, it properly converts lines to CR/LF.  This bash problem
 719  # is reportedly fixed, but why not run on old versions too?
 720  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
 721    || (rm -f "$cfgfile"; exit 1)
 722
 723  _LT_PROG_XSI_SHELLFNS
 724
 725  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
 726    || (rm -f "$cfgfile"; exit 1)
 727
 728  mv -f "$cfgfile" "$ofile" ||
 729    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 730  chmod +x "$ofile"
 731],
 732[cat <<_LT_EOF >> "$ofile"
 733
 734dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
 735dnl in a comment (ie after a #).
 736# ### BEGIN LIBTOOL TAG CONFIG: $1
 737_LT_LIBTOOL_TAG_VARS(_LT_TAG)
 738# ### END LIBTOOL TAG CONFIG: $1
 739_LT_EOF
 740])dnl /m4_if
 741],
 742[m4_if([$1], [], [
 743    PACKAGE='$PACKAGE'
 744    VERSION='$VERSION'
 745    TIMESTAMP='$TIMESTAMP'
 746    RM='$RM'
 747    ofile='$ofile'], [])
 748])dnl /_LT_CONFIG_SAVE_COMMANDS
 749])# _LT_CONFIG
 750
 751
 752# LT_SUPPORTED_TAG(TAG)
 753# ---------------------
 754# Trace this macro to discover what tags are supported by the libtool
 755# --tag option, using:
 756#    autoconf --trace 'LT_SUPPORTED_TAG:$1'
 757AC_DEFUN([LT_SUPPORTED_TAG], [])
 758
 759
 760# C support is built-in for now
 761m4_define([_LT_LANG_C_enabled], [])
 762m4_define([_LT_TAGS], [])
 763
 764
 765# LT_LANG(LANG)
 766# -------------
 767# Enable libtool support for the given language if not already enabled.
 768AC_DEFUN([LT_LANG],
 769[AC_BEFORE([$0], [LT_OUTPUT])dnl
 770m4_case([$1],
 771  [C],			[_LT_LANG(C)],
 772  [C++],		[_LT_LANG(CXX)],
 773  [Java],		[_LT_LANG(GCJ)],
 774  [Fortran 77],		[_LT_LANG(F77)],
 775  [Fortran],		[_LT_LANG(FC)],
 776  [Windows Resource],	[_LT_LANG(RC)],
 777  [m4_ifdef([_LT_LANG_]$1[_CONFIG],
 778    [_LT_LANG($1)],
 779    [m4_fatal([$0: unsupported language: "$1"])])])dnl
 780])# LT_LANG
 781
 782
 783# _LT_LANG(LANGNAME)
 784# ------------------
 785m4_defun([_LT_LANG],
 786[m4_ifdef([_LT_LANG_]$1[_enabled], [],
 787  [LT_SUPPORTED_TAG([$1])dnl
 788  m4_append([_LT_TAGS], [$1 ])dnl
 789  m4_define([_LT_LANG_]$1[_enabled], [])dnl
 790  _LT_LANG_$1_CONFIG($1)])dnl
 791])# _LT_LANG
 792
 793
 794# _LT_LANG_DEFAULT_CONFIG
 795# -----------------------
 796m4_defun([_LT_LANG_DEFAULT_CONFIG],
 797[AC_PROVIDE_IFELSE([AC_PROG_CXX],
 798  [LT_LANG(CXX)],
 799  [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
 800
 801AC_PROVIDE_IFELSE([AC_PROG_F77],
 802  [LT_LANG(F77)],
 803  [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
 804
 805AC_PROVIDE_IFELSE([AC_PROG_FC],
 806  [LT_LANG(FC)],
 807  [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
 808
 809dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
 810dnl pulling things in needlessly.
 811AC_PROVIDE_IFELSE([AC_PROG_GCJ],
 812  [LT_LANG(GCJ)],
 813  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
 814    [LT_LANG(GCJ)],
 815    [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
 816      [LT_LANG(GCJ)],
 817      [m4_ifdef([AC_PROG_GCJ],
 818	[m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
 819       m4_ifdef([A][M_PROG_GCJ],
 820	[m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
 821       m4_ifdef([LT_PROG_GCJ],
 822	[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
 823
 824AC_PROVIDE_IFELSE([LT_PROG_RC],
 825  [LT_LANG(RC)],
 826  [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
 827])# _LT_LANG_DEFAULT_CONFIG
 828
 829# Obsolete macros:
 830AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
 831AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
 832AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
 833AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
 834dnl aclocal-1.4 backwards compatibility:
 835dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
 836dnl AC_DEFUN([AC_LIBTOOL_F77], [])
 837dnl AC_DEFUN([AC_LIBTOOL_FC], [])
 838dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
 839
 840
 841# _LT_TAG_COMPILER
 842# ----------------
 843m4_defun([_LT_TAG_COMPILER],
 844[AC_REQUIRE([AC_PROG_CC])dnl
 845
 846_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
 847_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
 848_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
 849_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
 850
 851# If no C compiler was specified, use CC.
 852LTCC=${LTCC-"$CC"}
 853
 854# If no C compiler flags were specified, use CFLAGS.
 855LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 856
 857# Allow CC to be a program name with arguments.
 858compiler=$CC
 859])# _LT_TAG_COMPILER
 860
 861
 862# _LT_COMPILER_BOILERPLATE
 863# ------------------------
 864# Check for compiler boilerplate output or warnings with
 865# the simple compiler test code.
 866m4_defun([_LT_COMPILER_BOILERPLATE],
 867[m4_require([_LT_DECL_SED])dnl
 868ac_outfile=conftest.$ac_objext
 869echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 870eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 871_lt_compiler_boilerplate=`cat conftest.err`
 872$RM conftest*
 873])# _LT_COMPILER_BOILERPLATE
 874
 875
 876# _LT_LINKER_BOILERPLATE
 877# ----------------------
 878# Check for linker boilerplate output or warnings with
 879# the simple link test code.
 880m4_defun([_LT_LINKER_BOILERPLATE],
 881[m4_require([_LT_DECL_SED])dnl
 882ac_outfile=conftest.$ac_objext
 883echo "$lt_simple_link_test_code" >conftest.$ac_ext
 884eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 885_lt_linker_boilerplate=`cat conftest.err`
 886$RM -r conftest*
 887])# _LT_LINKER_BOILERPLATE
 888
 889# _LT_REQUIRED_DARWIN_CHECKS
 890# -------------------------
 891m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
 892  case $host_os in
 893    rhapsody* | darwin*)
 894    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
 895    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
 896    AC_CHECK_TOOL([LIPO], [lipo], [:])
 897    AC_CHECK_TOOL([OTOOL], [otool], [:])
 898    AC_CHECK_TOOL([OTOOL64], [otool64], [:])
 899    _LT_DECL([], [DSYMUTIL], [1],
 900      [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
 901    _LT_DECL([], [NMEDIT], [1],
 902      [Tool to change global to local symbols on Mac OS X])
 903    _LT_DECL([], [LIPO], [1],
 904      [Tool to manipulate fat objects and archives on Mac OS X])
 905    _LT_DECL([], [OTOOL], [1],
 906      [ldd/readelf like tool for Mach-O binaries on Mac OS X])
 907    _LT_DECL([], [OTOOL64], [1],
 908      [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
 909
 910    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
 911      [lt_cv_apple_cc_single_mod=no
 912      if test -z "${LT_MULTI_MODULE}"; then
 913	# By default we will add the -single_module flag. You can override
 914	# by either setting the environment variable LT_MULTI_MODULE
 915	# non-empty at configure time, or by adding -multi_module to the
 916	# link flags.
 917	rm -rf libconftest.dylib*
 918	echo "int foo(void){return 1;}" > conftest.c
 919	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 920-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
 921	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 922	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 923        _lt_result=$?
 924	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
 925	  lt_cv_apple_cc_single_mod=yes
 926	else
 927	  cat conftest.err >&AS_MESSAGE_LOG_FD
 928	fi
 929	rm -rf libconftest.dylib*
 930	rm -f conftest.*
 931      fi])
 932    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
 933      [lt_cv_ld_exported_symbols_list],
 934      [lt_cv_ld_exported_symbols_list=no
 935      save_LDFLAGS=$LDFLAGS
 936      echo "_main" > conftest.sym
 937      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 938      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
 939	[lt_cv_ld_exported_symbols_list=yes],
 940	[lt_cv_ld_exported_symbols_list=no])
 941	LDFLAGS="$save_LDFLAGS"
 942    ])
 943    case $host_os in
 944    rhapsody* | darwin1.[[012]])
 945      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 946    darwin1.*)
 947      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 948    darwin*) # darwin 5.x on
 949      # if running on 10.5 or later, the deployment target defaults
 950      # to the OS version, if on x86, and 10.4, the deployment
 951      # target defaults to 10.4. Don't you love it?
 952      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 953	10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
 954	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 955	10.[[012]]*)
 956	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 957	10.*)
 958	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 959      esac
 960    ;;
 961  esac
 962    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 963      _lt_dar_single_mod='$single_module'
 964    fi
 965    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 966      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 967    else
 968      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
 969    fi
 970    if test "$DSYMUTIL" != ":"; then
 971      _lt_dsymutil='~$DSYMUTIL $lib || :'
 972    else
 973      _lt_dsymutil=
 974    fi
 975    ;;
 976  esac
 977])
 978
 979
 980# _LT_DARWIN_LINKER_FEATURES
 981# --------------------------
 982# Checks for linker and compiler features on darwin
 983m4_defun([_LT_DARWIN_LINKER_FEATURES],
 984[
 985  m4_require([_LT_REQUIRED_DARWIN_CHECKS])
 986  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 987  _LT_TAGVAR(hardcode_direct, $1)=no
 988  _LT_TAGVAR(hardcode_automatic, $1)=yes
 989  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 990  _LT_TAGVAR(whole_archive_flag_spec, $1)=''
 991  _LT_TAGVAR(link_all_deplibs, $1)=yes
 992  _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
 993  case $cc_basename in
 994     ifort*) _lt_dar_can_shared=yes ;;
 995     *) _lt_dar_can_shared=$GCC ;;
 996  esac
 997  if test "$_lt_dar_can_shared" = "yes"; then
 998    output_verbose_link_cmd=echo
 999    _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
1000    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1001    _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
1002    _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
1003    m4_if([$1], [CXX],
1004[   if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1005      _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
1006      _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
1007    fi
1008],[])
1009  else
1010  _LT_TAGVAR(ld_shlibs, $1)=no
1011  fi
1012])
1013
1014# _LT_SYS_MODULE_PATH_AIX
1015# -----------------------
1016# Links a minimal program and checks the executable
1017# for the system default hardcoded library path. In most cases,
1018# this is /usr/lib:/lib, but when the MPI compilers are used
1019# the location of the communication and MPI libs are included too.
1020# If we don't find anything, use the default library path according
1021# to the aix ld manual.
1022m4_defun([_LT_SYS_MODULE_PATH_AIX],
1023[m4_require([_LT_DECL_SED])dnl
1024AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1025lt_aix_libpath_sed='
1026    /Import File Strings/,/^$/ {
1027	/^0/ {
1028	    s/^0  *\(.*\)$/\1/
1029	    p
1030	}
1031    }'
1032aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1033# Check for a 64-bit object if we didn't find anything.
1034if test -z "$aix_libpath"; then
1035  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1036fi],[])
1037if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1038])# _LT_SYS_MODULE_PATH_AIX
1039
1040
1041# _LT_SHELL_INIT(ARG)
1042# -------------------
1043m4_define([_LT_SHELL_INIT],
1044[ifdef([AC_DIVERSION_NOTICE],
1045	     [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1046	 [AC_DIVERT_PUSH(NOTICE)])
1047$1
1048AC_DIVERT_POP
1049])# _LT_SHELL_INIT
1050
1051
1052# _LT_PROG_ECHO_BACKSLASH
1053# -----------------------
1054# Add some code to the start of the generated configure script which
1055# will find an echo command which doesn't interpret backslashes.
1056m4_defun([_LT_PROG_ECHO_BACKSLASH],
1057[_LT_SHELL_INIT([
1058# Check that we are running under the correct shell.
1059SHELL=${CONFIG_SHELL-/bin/sh}
1060
1061case X$lt_ECHO in
1062X*--fallback-echo)
1063  # Remove one level of quotation (which was required for Make).
1064  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1065  ;;
1066esac
1067
1068ECHO=${lt_ECHO-echo}
1069if test "X[$]1" = X--no-reexec; then
1070  # Discard the --no-reexec flag, and continue.
1071  shift
1072elif test "X[$]1" = X--fallback-echo; then
1073  # Avoid inline document here, it may be left over
1074  :
1075elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
1076  # Yippee, $ECHO works!
1077  :
1078else
1079  # Restart under the correct shell.
1080  exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1081fi
1082
1083if test "X[$]1" = X--fallback-echo; then
1084  # used as fallback echo
1085  shift
1086  cat <<_LT_EOF
1087[$]*
1088_LT_EOF
1089  exit 0
1090fi
1091
1092# The HP-UX ksh and POSIX shell print the target directory to stdout
1093# if CDPATH is set.
1094(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1095
1096if test -z "$lt_ECHO"; then
1097  if test "X${echo_test_string+set}" != Xset; then
1098    # find a string as large as possible, as long as the shell can cope with it
1099    for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1100      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1101      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
1102	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
1103      then
1104        break
1105      fi
1106    done
1107  fi
1108
1109  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1110     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1111     test "X$echo_testing_string" = "X$echo_test_string"; then
1112    :
1113  else
1114    # The Solaris, AIX, and Digital Unix default echo programs unquote
1115    # backslashes.  This makes it impossible to quote backslashes using
1116    #   echo "$something" | sed 's/\\/\\\\/g'
1117    #
1118    # So, first we look for a working echo in the user's PATH.
1119
1120    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1121    for dir in $PATH /usr/ucb; do
1122      IFS="$lt_save_ifs"
1123      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1124         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1125         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1126         test "X$echo_testing_string" = "X$echo_test_string"; then
1127        ECHO="$dir/echo"
1128        break
1129      fi
1130    done
1131    IFS="$lt_save_ifs"
1132
1133    if test "X$ECHO" = Xecho; then
1134      # We didn't find a better echo, so look for alternatives.
1135      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
1136         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
1137         test "X$echo_testing_string" = "X$echo_test_string"; then
1138        # This shell has a builtin print -r that does the trick.
1139        ECHO='print -r'
1140      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
1141	   test "X$CONFIG_SHELL" != X/bin/ksh; then
1142        # If we have ksh, try running configure again with it.
1143        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1144        export ORIGINAL_CONFIG_SHELL
1145        CONFIG_SHELL=/bin/ksh
1146        export CONFIG_SHELL
1147        exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1148      else
1149        # Try using printf.
1150        ECHO='printf %s\n'
1151        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1152	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1153	   test "X$echo_testing_string" = "X$echo_test_string"; then
1154	  # Cool, printf works
1155	  :
1156        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1157	     test "X$echo_testing_string" = 'X\t' &&
1158	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1159	     test "X$echo_testing_string" = "X$echo_test_string"; then
1160	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1161	  export CONFIG_SHELL
1162	  SHELL="$CONFIG_SHELL"
1163	  export SHELL
1164	  ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1165        elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1166	     test "X$echo_testing_string" = 'X\t' &&
1167	     echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1168	     test "X$echo_testing_string" = "X$echo_test_string"; then
1169	  ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1170        else
1171	  # maybe with a smaller string...
1172	  prev=:
1173
1174	  for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1175	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
1176	    then
1177	      break
1178	    fi
1179	    prev="$cmd"
1180	  done
1181
1182	  if test "$prev" != 'sed 50q "[$]0"'; then
1183	    echo_test_string=`eval $prev`
1184	    export echo_test_string
1185	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1186	  else
1187	    # Oops.  We lost completely, so just stick with echo.
1188	    ECHO=echo
1189	  fi
1190        fi
1191      fi
1192    fi
1193  fi
1194fi
1195
1196# Copy echo and quote the copy suitably for passing to libtool from
1197# the Makefile, instead of quoting the original, which is used later.
1198lt_ECHO=$ECHO
1199if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1200   lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1201fi
1202
1203AC_SUBST(lt_ECHO)
1204])
1205_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1206_LT_DECL([], [ECHO], [1],
1207    [An echo program that does not interpret backslashes])
1208])# _LT_PROG_ECHO_BACKSLASH
1209
1210
1211# _LT_ENABLE_LOCK
1212# ---------------
1213m4_defun([_LT_ENABLE_LOCK],
1214[AC_ARG_ENABLE([libtool-lock],
1215  [AS_HELP_STRING([--disable-libtool-lock],
1216    [avoid locking (might break parallel builds)])])
1217test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1218
1219# Some flags need to be propagated to the compiler or linker for good
1220# libtool support.
1221case $host in
1222ia64-*-hpux*)
1223  # Find out which ABI we are using.
1224  echo 'int i;' > conftest.$ac_ext
1225  if AC_TRY_EVAL(ac_compile); then
1226    case `/usr/bin/file conftest.$ac_objext` in
1227      *ELF-32*)
1228	HPUX_IA64_MODE="32"
1229	;;
1230      *ELF-64*)
1231	HPUX_IA64_MODE="64"
1232	;;
1233    esac
1234  fi
1235  rm -rf conftest*
1236  ;;
1237*-*-irix6*)
1238  # Find out which ABI we are using.
1239  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1240  if AC_TRY_EVAL(ac_compile); then
1241    if test "$lt_cv_prog_gnu_ld" = yes; then
1242      case `/usr/bin/file conftest.$ac_objext` in
1243	*32-bit*)
1244	  LD="${LD-ld} -melf32bsmip"
1245	  ;;
1246	*N32*)
1247	  LD="${LD-ld} -melf32bmipn32"
1248	  ;;
1249	*64-bit*)
1250	  LD="${LD-ld} -melf64bmip"
1251	;;
1252      esac
1253    else
1254      case `/usr/bin/file conftest.$ac_objext` in
1255	*32-bit*)
1256	  LD="${LD-ld} -32"
1257	  ;;
1258	*N32*)
1259	  LD="${LD-ld} -n32"
1260	  ;;
1261	*64-bit*)
1262	  LD="${LD-ld} -64"
1263	  ;;
1264      esac
1265    fi
1266  fi
1267  rm -rf conftest*
1268  ;;
1269
1270x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
1271s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1272  # Find out which ABI we are using.
1273  echo 'int i;' > conftest.$ac_ext
1274  if AC_TRY_EVAL(ac_compile); then
1275    case `/usr/bin/file conftest.o` in
1276      *32-bit*)
1277	case $host in
1278	  x86_64-*kfreebsd*-gnu)
1279	    LD="${LD-ld} -m elf_i386_fbsd"
1280	    ;;
1281	  x86_64-*linux*)
1282	    LD="${LD-ld} -m elf_i386"
1283	    ;;
1284	  ppc64-*linux*|powerpc64-*linux*)
1285	    LD="${LD-ld} -m elf32ppclinux"
1286	    ;;
1287	  s390x-*linux*)
1288	    LD="${LD-ld} -m elf_s390"
1289	    ;;
1290	  sparc64-*linux*)
1291	    LD="${LD-ld} -m elf32_sparc"
1292	    ;;
1293	esac
1294	;;
1295      *64-bit*)
1296	case $host in
1297	  x86_64-*kfreebsd*-gnu)
1298	    LD="${LD-ld} -m elf_x86_64_fbsd"
1299	    ;;
1300	  x86_64-*linux*)
1301	    LD="${LD-ld} -m elf_x86_64"
1302	    ;;
1303	  ppc*-*linux*|powerpc*-*linux*)
1304	    LD="${LD-ld} -m elf64ppc"
1305	    ;;
1306	  s390*-*linux*|s390*-*tpf*)
1307	    LD="${LD-ld} -m elf64_s390"
1308	    ;;
1309	  sparc*-*linux*)
1310	    LD="${LD-ld} -m elf64_sparc"
1311	    ;;
1312	esac
1313	;;
1314    esac
1315  fi
1316  rm -rf conftest*
1317  ;;
1318
1319*-*-sco3.2v5*)
1320  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1321  SAVE_CFLAGS="$CFLAGS"
1322  CFLAGS="$CFLAGS -belf"
1323  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1324    [AC_LANG_PUSH(C)
1325     AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1326     AC_LANG_POP])
1327  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1328    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1329    CFLAGS="$SAVE_CFLAGS"
1330  fi
1331  ;;
1332sparc*-*solaris*)
1333  # Find out which ABI we are using.
1334  echo 'int i;' > conftest.$ac_ext
1335  if AC_TRY_EVAL(ac_compile); then
1336    case `/usr/bin/file conftest.o` in
1337    *64-bit*)
1338      case $lt_cv_prog_gnu_ld in
1339      yes*) LD="${LD-ld} -m elf64_sparc" ;;
1340      *)
1341	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1342	  LD="${LD-ld} -64"
1343	fi
1344	;;
1345      esac
1346      ;;
1347    esac
1348  fi
1349  rm -rf conftest*
1350  ;;
1351esac
1352
1353need_locks="$enable_libtool_lock"
1354])# _LT_ENABLE_LOCK
1355
1356
1357# _LT_CMD_OLD_ARCHIVE
1358# -------------------
1359m4_defun([_LT_CMD_OLD_ARCHIVE],
1360[AC_CHECK_TOOL(AR, ar, false)
1361test -z "$AR" && AR=ar
1362test -z "$AR_FLAGS" && AR_FLAGS=cru
1363_LT_DECL([], [AR], [1], [The archiver])
1364_LT_DECL([], [AR_FLAGS], [1])
1365
1366AC_CHECK_TOOL(STRIP, strip, :)
1367test -z "$STRIP" && STRIP=:
1368_LT_DECL([], [STRIP], [1], [A symbol stripping program])
1369
1370AC_CHECK_TOOL(RANLIB, ranlib, :)
1371test -z "$RANLIB" && RANLIB=:
1372_LT_DECL([], [RANLIB], [1],
1373    [Commands used to install an old-style archive])
1374
1375# Determine commands to create old-style static archives.
1376old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1377old_postinstall_cmds='chmod 644 $oldlib'
1378old_postuninstall_cmds=
1379
1380if test -n "$RANLIB"; then
1381  case $host_os in
1382  openbsd*)
1383    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
1384    ;;
1385  *)
1386    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
1387    ;;
1388  esac
1389  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1390fi
1391_LT_DECL([], [old_postinstall_cmds], [2])
1392_LT_DECL([], [old_postuninstall_cmds], [2])
1393_LT_TAGDECL([], [old_archive_cmds], [2],
1394    [Commands used to build an old-style archive])
1395])# _LT_CMD_OLD_ARCHIVE
1396
1397
1398# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1399#		[OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1400# ----------------------------------------------------------------
1401# Check whether the given compiler option works
1402AC_DEFUN([_LT_COMPILER_OPTION],
1403[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1404m4_require([_LT_DECL_SED])dnl
1405AC_CACHE_CHECK([$1], [$2],
1406  [$2=no
1407   m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1408   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1409   lt_compiler_flag="$3"
1410   # Insert the option either (1) after the last *FLAGS variable, or
1411   # (2) before a word containing "conftest.", or (3) at the end.
1412   # Note that $ac_compile itself does not contain backslashes and begins
1413   # with a dollar sign (not a hyphen), so the echo should work correctly.
1414   # The option is referenced via a variable to avoid confusing sed.
1415   lt_compile=`echo "$ac_compile" | $SED \
1416   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1417   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1418   -e 's:$: $lt_compiler_flag:'`
1419   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1420   (eval "$lt_compile" 2>conftest.err)
1421   ac_status=$?
1422   cat conftest.err >&AS_MESSAGE_LOG_FD
1423   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1424   if (exit $ac_status) && test -s "$ac_outfile"; then
1425     # The compiler can only warn and ignore the option if not recognized
1426     # So say no if there are warnings other than the usual output.
1427     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
1428     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1429     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1430       $2=yes
1431     fi
1432   fi
1433   $RM conftest*
1434])
1435
1436if test x"[$]$2" = xyes; then
1437    m4_if([$5], , :, [$5])
1438else
1439    m4_if([$6], , :, [$6])
1440fi
1441])# _LT_COMPILER_OPTION
1442
1443# Old name:
1444AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
1445dnl aclocal-1.4 backwards compatibility:
1446dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
1447
1448
1449# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1450#                  [ACTION-SUCCESS], [ACTION-FAILURE])
1451# ----------------------------------------------------
1452# Check whether the given linker option works
1453AC_DEFUN([_LT_LINKER_OPTION],
1454[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1455m4_require([_LT_DECL_SED])dnl
1456AC_CACHE_CHECK([$1], [$2],
1457  [$2=no
1458   save_LDFLAGS="$LDFLAGS"
1459   LDFLAGS="$LDFLAGS $3"
1460   echo "$lt_simple_link_test_code" > conftest.$ac_ext
1461   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1462     # The linker can only warn and ignore the option if not recognized
1463     # So say no if there are warnings
1464     if test -s conftest.err; then
1465       # Append any errors to the config.log.
1466       cat conftest.err 1>&AS_MESSAGE_LOG_FD
1467       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
1468       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1469       if diff conftest.exp conftest.er2 >/dev/null; then
1470         $2=yes
1471       fi
1472     else
1473       $2=yes
1474     fi
1475   fi
1476   $RM -r conftest*
1477   LDFLAGS="$save_LDFLAGS"
1478])
1479
1480if test x"[$]$2" = xyes; then
1481    m4_if([$4], , :, [$4])
1482else
1483    m4_if([$5], , :, [$5])
1484fi
1485])# _LT_LINKER_OPTION
1486
1487# Old name:
1488AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
1489dnl aclocal-1.4 backwards compatibility:
1490dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
1491
1492
1493# LT_CMD_MAX_LEN
1494#---------------
1495AC_DEFUN([LT_CMD_MAX_LEN],
1496[AC_REQUIRE([AC_CANONICAL_HOST])dnl
1497# find the maximum length of command line arguments
1498AC_MSG_CHECKING([the maximum length of command line arguments])
1499AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1500  i=0
1501  teststring="ABCD"
1502
1503  case $build_os in
1504  msdosdjgpp*)
1505    # On DJGPP, this test can blow up pretty badly due to problems in libc
1506    # (any single argument exceeding 2000 bytes causes a buffer overrun
1507    # during glob expansion).  Even if it were fixed, the result of this
1508    # check would be larger than it should be.
1509    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
1510    ;;
1511
1512  gnu*)
1513    # Under GNU Hurd, this test is not required because there is
1514    # no limit to the length of command line arguments.
1515    # Libtool will interpret -1 as no limit whatsoever
1516    lt_cv_sys_max_cmd_len=-1;
1517    ;;
1518
1519  cygwin* | mingw* | cegcc*)
1520    # On Win9x/ME, this test blows up -- it succeeds, but takes
1521    # about 5 minutes as the teststring grows exponentially.
1522    # Worse, since 9x/ME are not pre-emptively multitasking,
1523    # you end up with a "frozen" computer, even though with patience
1524    # the test eventually succeeds (with a max line length of 256k).
1525    # Instead, let's just punt: use the minimum linelength reported by
1526    # all of the supported platforms: 8192 (on NT/2K/XP).
1527    lt_cv_sys_max_cmd_len=8192;
1528    ;;
1529
1530  amigaos*)
1531    # On AmigaOS with pdksh, this test takes hours, literally.
1532    # So we just punt and use a minimum line length of 8192.
1533    lt_cv_sys_max_cmd_len=8192;
1534    ;;
1535
1536  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
1537    # This has been around since 386BSD, at least.  Likely further.
1538    if test -x /sbin/sysctl; then
1539      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1540    elif test -x /usr/sbin/sysctl; then
1541      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1542    else
1543      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
1544    fi
1545    # And add a safety zone
1546    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1547    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1548    ;;
1549
1550  interix*)
1551    # We know the value 262144 and hardcode it with a safety zone (like BSD)
1552    lt_…

Large files files are truncated, but you can click here to view the full file