PageRenderTime 208ms CodeModel.GetById 159ms app.highlight 11ms RepoModel.GetById 1ms app.codeStats 3ms

/src/libev/aclocal.m4

http://github.com/jacksonh/manos
m4 | 8789 lines | 6060 code | 919 blank | 1810 comment | 0 complexity | ef5db044074ba2ec7fddae566a8c70f4 MD5 | raw file

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

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

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