Blame m4/libtool.m4

Packit Service 5bcba8
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
Packit Service 5bcba8
#
Packit Service d78141
#   Copyright (C) 1996-2001, 2003-2015 Free Software Foundation, Inc.
Packit Service 5bcba8
#   Written by Gordon Matzigkeit, 1996
Packit Service 5bcba8
#
Packit Service 5bcba8
# This file is free software; the Free Software Foundation gives
Packit Service 5bcba8
# unlimited permission to copy and/or distribute it, with or without
Packit Service 5bcba8
# modifications, as long as this notice is preserved.
Packit Service 5bcba8
Packit Service 5bcba8
m4_define([_LT_COPYING], [dnl
Packit Service d78141
# Copyright (C) 2014 Free Software Foundation, Inc.
Packit Service d78141
# This is free software; see the source for copying conditions.  There is NO
Packit Service d78141
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Packit Service d78141
Packit Service d78141
# GNU Libtool is free software; you can redistribute it and/or modify
Packit Service d78141
# it under the terms of the GNU General Public License as published by
Packit Service d78141
# the Free Software Foundation; either version 2 of of the License, or
Packit Service d78141
# (at your option) any later version.
Packit Service 5bcba8
#
Packit Service d78141
# As a special exception to the GNU General Public License, if you
Packit Service d78141
# distribute this file as part of a program or library that is built
Packit Service d78141
# using GNU Libtool, you may include this file under the  same
Packit Service d78141
# distribution terms that you use for the rest of that program.
Packit Service 5bcba8
#
Packit Service d78141
# GNU Libtool is distributed in the hope that it will be useful, but
Packit Service d78141
# WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 5bcba8
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit Service 5bcba8
# GNU General Public License for more details.
Packit Service 5bcba8
#
Packit Service 5bcba8
# You should have received a copy of the GNU General Public License
Packit Service d78141
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
Packit Service 5bcba8
])
Packit Service 5bcba8
Packit Service d78141
# serial 58 LT_INIT
Packit Service 5bcba8
Packit Service 5bcba8
Packit Service 5bcba8
# LT_PREREQ(VERSION)
Packit Service 5bcba8
# ------------------
Packit Service 5bcba8
# Complain and exit if this libtool version is less that VERSION.
Packit Service 5bcba8
m4_defun([LT_PREREQ],
Packit Service 5bcba8
[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
Packit Service 5bcba8
       [m4_default([$3],
Packit Service 5bcba8
		   [m4_fatal([Libtool version $1 or higher is required],
Packit Service 5bcba8
		             63)])],
Packit Service 5bcba8
       [$2])])
Packit Service 5bcba8
Packit Service 5bcba8
Packit Service 5bcba8
# _LT_CHECK_BUILDDIR
Packit Service 5bcba8
# ------------------
Packit Service 5bcba8
# Complain if the absolute build directory name contains unusual characters
Packit Service 5bcba8
m4_defun([_LT_CHECK_BUILDDIR],
Packit Service 5bcba8
[case `pwd` in
Packit Service 5bcba8
  *\ * | *\	*)
Packit Service 5bcba8
    AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
Packit Service 5bcba8
esac
Packit Service 5bcba8
])
Packit Service 5bcba8
Packit Service 5bcba8
Packit Service 5bcba8
# LT_INIT([OPTIONS])
Packit Service 5bcba8
# ------------------
Packit Service 5bcba8
AC_DEFUN([LT_INIT],
Packit Service d78141
[AC_PREREQ([2.62])dnl We use AC_PATH_PROGS_FEATURE_CHECK
Packit Service 5bcba8
AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
Packit Service 5bcba8
AC_BEFORE([$0], [LT_LANG])dnl
Packit Service 5bcba8
AC_BEFORE([$0], [LT_OUTPUT])dnl
Packit Service 5bcba8
AC_BEFORE([$0], [LTDL_INIT])dnl
Packit Service 5bcba8
m4_require([_LT_CHECK_BUILDDIR])dnl
Packit Service 5bcba8
Packit Service 5bcba8
dnl Autoconf doesn't catch unexpanded LT_ macros by default:
Packit Service 5bcba8
m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
Packit Service 5bcba8
m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
Packit Service 5bcba8
dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
Packit Service 5bcba8
dnl unless we require an AC_DEFUNed macro:
Packit Service 5bcba8
AC_REQUIRE([LTOPTIONS_VERSION])dnl
Packit Service 5bcba8
AC_REQUIRE([LTSUGAR_VERSION])dnl
Packit Service 5bcba8
AC_REQUIRE([LTVERSION_VERSION])dnl
Packit Service 5bcba8
AC_REQUIRE([LTOBSOLETE_VERSION])dnl
Packit Service 5bcba8
m4_require([_LT_PROG_LTMAIN])dnl
Packit Service 5bcba8
Packit Service 5bcba8
_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
Packit Service 5bcba8
Packit Service 5bcba8
dnl Parse OPTIONS
Packit Service 5bcba8
_LT_SET_OPTIONS([$0], [$1])
Packit Service 5bcba8
Packit Service 5bcba8
# This can be used to rebuild libtool when needed
Packit Service d78141
LIBTOOL_DEPS=$ltmain
Packit Service 5bcba8
Packit Service 5bcba8
# Always use our own libtool.
Packit Service 5bcba8
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
Packit Service 5bcba8
AC_SUBST(LIBTOOL)dnl
Packit Service 5bcba8
Packit Service 5bcba8
_LT_SETUP
Packit Service 5bcba8
Packit Service 5bcba8
# Only expand once:
Packit Service 5bcba8
m4_define([LT_INIT])
Packit Service 5bcba8
])# LT_INIT
Packit Service 5bcba8
Packit Service 5bcba8
# Old names:
Packit Service 5bcba8
AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
Packit Service 5bcba8
AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
Packit Service 5bcba8
dnl aclocal-1.4 backwards compatibility:
Packit Service 5bcba8
dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
Packit Service 5bcba8
dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
Packit Service 5bcba8
Packit Service 5bcba8
Packit Service d78141
# _LT_PREPARE_CC_BASENAME
Packit Service d78141
# -----------------------
Packit Service d78141
m4_defun([_LT_PREPARE_CC_BASENAME], [
Packit Service d78141
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
Packit Service d78141
func_cc_basename ()
Packit Service d78141
{
Packit Service d78141
    for cc_temp in @S|@*""; do
Packit Service d78141
      case $cc_temp in
Packit Service d78141
        compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
Packit Service d78141
        distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
Packit Service d78141
        \-*) ;;
Packit Service d78141
        *) break;;
Packit Service d78141
      esac
Packit Service d78141
    done
Packit Service d78141
    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
Packit Service d78141
}
Packit Service d78141
])# _LT_PREPARE_CC_BASENAME
Packit Service d78141
Packit Service d78141
Packit Service 5bcba8
# _LT_CC_BASENAME(CC)
Packit Service 5bcba8
# -------------------
Packit Service d78141
# It would be clearer to call AC_REQUIREs from _LT_PREPARE_CC_BASENAME,
Packit Service d78141
# but that macro is also expanded into generated libtool script, which
Packit Service d78141
# arranges for $SED and $ECHO to be set by different means.
Packit Service 5bcba8
m4_defun([_LT_CC_BASENAME],
Packit Service d78141
[m4_require([_LT_PREPARE_CC_BASENAME])dnl
Packit Service d78141
AC_REQUIRE([_LT_DECL_SED])dnl
Packit Service d78141
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
Packit Service d78141
func_cc_basename $1
Packit Service d78141
cc_basename=$func_cc_basename_result
Packit Service 5bcba8
])
Packit Service 5bcba8
Packit Service 5bcba8
Packit Service 5bcba8
# _LT_FILEUTILS_DEFAULTS
Packit Service 5bcba8
# ----------------------
Packit Service 5bcba8
# It is okay to use these file commands and assume they have been set
Packit Service d78141
# sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'.
Packit Service 5bcba8
m4_defun([_LT_FILEUTILS_DEFAULTS],
Packit Service 5bcba8
[: ${CP="cp -f"}
Packit Service 5bcba8
: ${MV="mv -f"}
Packit Service 5bcba8
: ${RM="rm -f"}
Packit Service 5bcba8
])# _LT_FILEUTILS_DEFAULTS
Packit Service 5bcba8
Packit Service 5bcba8
Packit Service 5bcba8
# _LT_SETUP
Packit Service 5bcba8
# ---------
Packit Service 5bcba8
m4_defun([_LT_SETUP],
Packit Service 5bcba8
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
Packit Service 5bcba8
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
Packit Service 5bcba8
AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
Packit Service 5bcba8
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
Packit Service 5bcba8
Packit Service 5bcba8
_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
Packit Service 5bcba8
dnl
Packit Service 5bcba8
_LT_DECL([], [host_alias], [0], [The host system])dnl
Packit Service 5bcba8
_LT_DECL([], [host], [0])dnl
Packit Service 5bcba8
_LT_DECL([], [host_os], [0])dnl
Packit Service 5bcba8
dnl
Packit Service 5bcba8
_LT_DECL([], [build_alias], [0], [The build system])dnl
Packit Service 5bcba8
_LT_DECL([], [build], [0])dnl
Packit Service 5bcba8
_LT_DECL([], [build_os], [0])dnl
Packit Service 5bcba8
dnl
Packit Service 5bcba8
AC_REQUIRE([AC_PROG_CC])dnl
Packit Service 5bcba8
AC_REQUIRE([LT_PATH_LD])dnl
Packit Service 5bcba8
AC_REQUIRE([LT_PATH_NM])dnl
Packit Service 5bcba8
dnl
Packit Service 5bcba8
AC_REQUIRE([AC_PROG_LN_S])dnl
Packit Service 5bcba8
test -z "$LN_S" && LN_S="ln -s"
Packit Service 5bcba8
_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
Packit Service 5bcba8
dnl
Packit Service 5bcba8
AC_REQUIRE([LT_CMD_MAX_LEN])dnl
Packit Service 5bcba8
_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
Packit Service 5bcba8
_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
Packit Service 5bcba8
dnl
Packit Service 5bcba8
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
Packit Service 5bcba8
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
Packit Service 5bcba8
m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
Packit Service 5bcba8
m4_require([_LT_CMD_RELOAD])dnl
Packit Service 5bcba8
m4_require([_LT_CHECK_MAGIC_METHOD])dnl
Packit Service 5bcba8
m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
Packit Service 5bcba8
m4_require([_LT_CMD_OLD_ARCHIVE])dnl
Packit Service 5bcba8
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
Packit Service 5bcba8
m4_require([_LT_WITH_SYSROOT])dnl
Packit Service d78141
m4_require([_LT_CMD_TRUNCATE])dnl
Packit Service 5bcba8
Packit Service 5bcba8
_LT_CONFIG_LIBTOOL_INIT([
Packit Service d78141
# See if we are running on zsh, and set the options that allow our
Packit Service 5bcba8
# commands through without removal of \ escapes INIT.
Packit Service d78141
if test -n "\${ZSH_VERSION+set}"; then
Packit Service 5bcba8
   setopt NO_GLOB_SUBST
Packit Service 5bcba8
fi
Packit Service 5bcba8
])
Packit Service d78141
if test -n "${ZSH_VERSION+set}"; then
Packit Service 5bcba8
   setopt NO_GLOB_SUBST
Packit Service 5bcba8
fi
Packit Service 5bcba8
Packit Service 5bcba8
_LT_CHECK_OBJDIR
Packit Service 5bcba8
Packit Service 5bcba8
m4_require([_LT_TAG_COMPILER])dnl
Packit Service 5bcba8
Packit Service 5bcba8
case $host_os in
Packit Service 5bcba8
aix3*)
Packit Service 5bcba8
  # AIX sometimes has problems with the GCC collect2 program.  For some
Packit Service 5bcba8
  # reason, if we set the COLLECT_NAMES environment variable, the problems
Packit Service 5bcba8
  # vanish in a puff of smoke.
Packit Service d78141
  if test set != "${COLLECT_NAMES+set}"; then
Packit Service 5bcba8
    COLLECT_NAMES=
Packit Service 5bcba8
    export COLLECT_NAMES
Packit Service 5bcba8
  fi
Packit Service 5bcba8
  ;;
Packit Service 5bcba8
esac
Packit Service 5bcba8
Packit Service 5bcba8
# Global variables:
Packit Service 5bcba8
ofile=libtool
Packit Service 5bcba8
can_build_shared=yes
Packit Service 5bcba8
Packit Service d78141
# All known linkers require a '.a' archive for static linking (except MSVC,
Packit Service 5bcba8
# which needs '.lib').
Packit Service 5bcba8
libext=a
Packit Service 5bcba8
Packit Service d78141
with_gnu_ld=$lt_cv_prog_gnu_ld
Packit Service 5bcba8
Packit Service d78141
old_CC=$CC
Packit Service d78141
old_CFLAGS=$CFLAGS
Packit Service 5bcba8
Packit Service 5bcba8
# Set sane defaults for various variables
Packit Service 5bcba8
test -z "$CC" && CC=cc
Packit Service 5bcba8
test -z "$LTCC" && LTCC=$CC
Packit Service 5bcba8
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
Packit Service 5bcba8
test -z "$LD" && LD=ld
Packit Service 5bcba8
test -z "$ac_objext" && ac_objext=o
Packit Service 5bcba8
Packit Service 5bcba8
_LT_CC_BASENAME([$compiler])
Packit Service 5bcba8
Packit Service 5bcba8
# Only perform the check for file, if the check method requires it
Packit Service 5bcba8
test -z "$MAGIC_CMD" && MAGIC_CMD=file
Packit Service 5bcba8
case $deplibs_check_method in
Packit Service 5bcba8
file_magic*)
Packit Service 5bcba8
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Packit Service 5bcba8
    _LT_PATH_MAGIC
Packit Service 5bcba8
  fi
Packit Service 5bcba8
  ;;
Packit Service 5bcba8
esac
Packit Service 5bcba8
Packit Service 5bcba8
# Use C for the default configuration in the libtool script
Packit Service 5bcba8
LT_SUPPORTED_TAG([CC])
Packit Service 5bcba8
_LT_LANG_C_CONFIG
Packit Service 5bcba8
_LT_LANG_DEFAULT_CONFIG
Packit Service 5bcba8
_LT_CONFIG_COMMANDS
Packit Service 5bcba8
])# _LT_SETUP
Packit Service 5bcba8
Packit Service 5bcba8
Packit Service 5bcba8
# _LT_PREPARE_SED_QUOTE_VARS
Packit Service 5bcba8
# --------------------------
Packit Service 5bcba8
# Define a few sed substitution that help us do robust quoting.
Packit Service 5bcba8
m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
Packit Service 5bcba8
[# Backslashify metacharacters that are still active within
Packit Service 5bcba8
# double-quoted strings.
Packit Service 5bcba8
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
Packit Service 5bcba8
Packit Service 5bcba8
# Same as above, but do not quote variable references.
Packit Service 5bcba8
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
Packit Service 5bcba8
Packit Service 5bcba8
# Sed substitution to delay expansion of an escaped shell variable in a
Packit Service 5bcba8
# double_quote_subst'ed string.
Packit Service 5bcba8
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
Packit Service 5bcba8
Packit Service 5bcba8
# Sed substitution to delay expansion of an escaped single quote.
Packit Service 5bcba8
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
Packit Service 5bcba8
Packit Service 5bcba8
# Sed substitution to avoid accidental globbing in evaled expressions
Packit Service 5bcba8
no_glob_subst='s/\*/\\\*/g'
Packit Service 5bcba8
])
Packit Service 5bcba8
Packit Service 5bcba8
# _LT_PROG_LTMAIN
Packit Service 5bcba8
# ---------------
Packit Service d78141
# Note that this code is called both from 'configure', and 'config.status'
Packit Service 5bcba8
# now that we use AC_CONFIG_COMMANDS to generate libtool.  Notably,
Packit Service d78141
# 'config.status' has no value for ac_aux_dir unless we are using Automake,
Packit Service 5bcba8
# so we pass a copy along to make sure it has a sensible value anyway.
Packit Service 5bcba8
m4_defun([_LT_PROG_LTMAIN],
Packit Service 5bcba8
[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
Packit Service 5bcba8
_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
Packit Service d78141
ltmain=$ac_aux_dir/ltmain.sh
Packit Service 5bcba8
])# _LT_PROG_LTMAIN
Packit Service 5bcba8
Packit Service 5bcba8
Packit Service 5bcba8
## ------------------------------------- ##
Packit Service 5bcba8
## Accumulate code for creating libtool. ##
Packit Service 5bcba8
## ------------------------------------- ##
Packit Service 5bcba8
Packit Service 5bcba8
# So that we can recreate a full libtool script including additional
Packit Service 5bcba8
# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
Packit Service d78141
# in macros and then make a single call at the end using the 'libtool'
Packit Service 5bcba8
# label.
Packit Service 5bcba8
Packit Service 5bcba8
Packit Service 5bcba8
# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
Packit Service 5bcba8
# ----------------------------------------
Packit Service 5bcba8
# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
Packit Service 5bcba8
m4_define([_LT_CONFIG_LIBTOOL_INIT],
Packit Service 5bcba8
[m4_ifval([$1],
Packit Service 5bcba8
          [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
Packit Service 5bcba8
                     [$1
Packit Service 5bcba8
])])])
Packit Service 5bcba8
Packit Service 5bcba8
# Initialize.
Packit Service 5bcba8
m4_define([_LT_OUTPUT_LIBTOOL_INIT])
Packit Service 5bcba8
Packit Service 5bcba8
Packit Service 5bcba8
# _LT_CONFIG_LIBTOOL([COMMANDS])
Packit Service 5bcba8
# ------------------------------
Packit Service 5bcba8
# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
Packit Service 5bcba8
m4_define([_LT_CONFIG_LIBTOOL],
Packit Service 5bcba8
[m4_ifval([$1],
Packit Service 5bcba8
          [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
Packit Service 5bcba8
                     [$1
Packit Service 5bcba8
])])])
Packit Service 5bcba8
Packit Service 5bcba8
# Initialize.
Packit Service 5bcba8
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
Packit Service 5bcba8
Packit Service 5bcba8
Packit Service 5bcba8
# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
Packit Service 5bcba8
# -----------------------------------------------------
Packit Service 5bcba8
m4_defun([_LT_CONFIG_SAVE_COMMANDS],
Packit Service 5bcba8
[_LT_CONFIG_LIBTOOL([$1])
Packit Service 5bcba8
_LT_CONFIG_LIBTOOL_INIT([$2])
Packit Service 5bcba8
])
Packit Service 5bcba8
Packit Service 5bcba8
Packit Service 5bcba8
# _LT_FORMAT_COMMENT([COMMENT])
Packit Service 5bcba8
# -----------------------------
Packit Service 5bcba8
# Add leading comment marks to the start of each line, and a trailing
Packit Service 5bcba8
# full-stop to the whole comment if one is not present already.
Packit Service 5bcba8
m4_define([_LT_FORMAT_COMMENT],
Packit Service 5bcba8
[m4_ifval([$1], [
Packit Service 5bcba8
m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
Packit Service 5bcba8
              [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
Packit Service 5bcba8
)])
Packit Service 5bcba8
Packit Service 5bcba8
Packit Service 5bcba8
Packit Service 5bcba8
## ------------------------ ##
Packit Service 5bcba8
## FIXME: Eliminate VARNAME ##
Packit Service 5bcba8
## ------------------------ ##
Packit Service 5bcba8
Packit Service 5bcba8
Packit Service 5bcba8
# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
Packit Service 5bcba8
# -------------------------------------------------------------------
Packit Service 5bcba8
# CONFIGNAME is the name given to the value in the libtool script.
Packit Service 5bcba8
# VARNAME is the (base) name used in the configure script.
Packit Service 5bcba8
# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
Packit Service 5bcba8
# VARNAME.  Any other value will be used directly.
Packit Service 5bcba8
m4_define([_LT_DECL],
Packit Service 5bcba8
[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
Packit Service 5bcba8
    [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
Packit Service 5bcba8
	[m4_ifval([$1], [$1], [$2])])
Packit Service 5bcba8
    lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
Packit Service 5bcba8
    m4_ifval([$4],
Packit Service 5bcba8
	[lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
Packit Service 5bcba8
    lt_dict_add_subkey([lt_decl_dict], [$2],
Packit Service 5bcba8
	[tagged?], [m4_ifval([$5], [yes], [no])])])
Packit Service 5bcba8
])
Packit Service 5bcba8
Packit Service 5bcba8
Packit Service 5bcba8
# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
Packit Service 5bcba8
# --------------------------------------------------------
Packit Service 5bcba8
m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
Packit Service 5bcba8
Packit Service 5bcba8
Packit Service 5bcba8
# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
Packit Service 5bcba8
# ------------------------------------------------
Packit Service 5bcba8
m4_define([lt_decl_tag_varnames],
Packit Service 5bcba8
[_lt_decl_filter([tagged?], [yes], $@)])
Packit Service 5bcba8
Packit Service 5bcba8
Packit Service 5bcba8
# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
Packit Service 5bcba8
# ---------------------------------------------------------
Packit Service 5bcba8
m4_define([_lt_decl_filter],
Packit Service 5bcba8
[m4_case([$#],
Packit Service 5bcba8
  [0], [m4_fatal([$0: too few arguments: $#])],
Packit Service 5bcba8
  [1], [m4_fatal([$0: too few arguments: $#: $1])],
Packit Service 5bcba8
  [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
Packit Service 5bcba8
  [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
Packit Service 5bcba8
  [lt_dict_filter([lt_decl_dict], $@)])[]dnl
Packit Service 5bcba8
])
Packit Service 5bcba8
Packit Service 5bcba8
Packit Service 5bcba8
# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
Packit Service 5bcba8
# --------------------------------------------------
Packit Service 5bcba8
m4_define([lt_decl_quote_varnames],
Packit Service 5bcba8
[_lt_decl_filter([value], [1], $@)])
Packit Service 5bcba8
Packit Service 5bcba8
Packit Service 5bcba8
# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
Packit Service 5bcba8
# ---------------------------------------------------
Packit Service 5bcba8
m4_define([lt_decl_dquote_varnames],
Packit Service 5bcba8
[_lt_decl_filter([value], [2], $@)])
Packit Service 5bcba8
Packit Service 5bcba8
Packit Service 5bcba8
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
Packit Service 5bcba8
# ---------------------------------------------------
Packit Service 5bcba8
m4_define([lt_decl_varnames_tagged],
Packit Service 5bcba8
[m4_assert([$# <= 2])dnl
Packit Service 5bcba8
_$0(m4_quote(m4_default([$1], [[, ]])),
Packit Service 5bcba8
    m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
Packit Service 5bcba8
    m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
Packit Service 5bcba8
m4_define([_lt_decl_varnames_tagged],
Packit Service 5bcba8
[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
Packit Service 5bcba8
Packit Service 5bcba8
Packit Service 5bcba8
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
Packit Service 5bcba8
# ------------------------------------------------
Packit Service 5bcba8
m4_define([lt_decl_all_varnames],
Packit Service 5bcba8
[_$0(m4_quote(m4_default([$1], [[, ]])),
Packit Service 5bcba8
     m4_if([$2], [],
Packit Service 5bcba8
	   m4_quote(lt_decl_varnames),
Packit Service 5bcba8
	m4_quote(m4_shift($@))))[]dnl
Packit Service 5bcba8
])
Packit Service 5bcba8
m4_define([_lt_decl_all_varnames],
Packit Service 5bcba8
[lt_join($@, lt_decl_varnames_tagged([$1],
Packit Service 5bcba8
			lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
Packit Service 5bcba8
])
Packit Service 5bcba8
Packit Service 5bcba8
Packit Service 5bcba8
# _LT_CONFIG_STATUS_DECLARE([VARNAME])
Packit Service 5bcba8
# ------------------------------------
Packit Service d78141
# Quote a variable value, and forward it to 'config.status' so that its
Packit Service d78141
# declaration there will have the same value as in 'configure'.  VARNAME
Packit Service 5bcba8
# must have a single quote delimited value for this to work.
Packit Service 5bcba8
m4_define([_LT_CONFIG_STATUS_DECLARE],
Packit Service 5bcba8
[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
Packit Service 5bcba8
Packit Service 5bcba8
Packit Service 5bcba8
# _LT_CONFIG_STATUS_DECLARATIONS
Packit Service 5bcba8
# ------------------------------
Packit Service 5bcba8
# We delimit libtool config variables with single quotes, so when
Packit Service 5bcba8
# we write them to config.status, we have to be sure to quote all
Packit Service 5bcba8
# embedded single quotes properly.  In configure, this macro expands
Packit Service 5bcba8
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
Packit Service 5bcba8
#
Packit Service 5bcba8
#    ='`$ECHO "$" | $SED "$delay_single_quote_subst"`'
Packit Service 5bcba8
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
Packit Service 5bcba8
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
Packit Service 5bcba8
    [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
Packit Service 5bcba8
Packit Service 5bcba8
Packit Service 5bcba8
# _LT_LIBTOOL_TAGS
Packit Service 5bcba8
# ----------------
Packit Service 5bcba8
# Output comment and list of tags supported by the script
Packit Service 5bcba8
m4_defun([_LT_LIBTOOL_TAGS],
Packit Service 5bcba8
[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
Packit Service d78141
available_tags='_LT_TAGS'dnl
Packit Service 5bcba8
])
Packit Service 5bcba8
Packit Service 5bcba8
Packit Service 5bcba8
# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
Packit Service 5bcba8
# -----------------------------------
Packit Service 5bcba8
# Extract the dictionary values for VARNAME (optionally with TAG) and
Packit Service 5bcba8
# expand to a commented shell variable setting:
Packit Service 5bcba8
#
Packit Service 5bcba8
#    # Some comment about what VAR is for.
Packit Service 5bcba8
#    visible_name=$lt_internal_name
Packit Service 5bcba8
m4_define([_LT_LIBTOOL_DECLARE],
Packit Service 5bcba8
[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
Packit Service 5bcba8
					   [description])))[]dnl
Packit Service 5bcba8
m4_pushdef([_libtool_name],
Packit Service 5bcba8
    m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
Packit Service 5bcba8
m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
Packit Service 5bcba8
    [0], [_libtool_name=[$]$1],
Packit Service 5bcba8
    [1], [_libtool_name=$lt_[]$1],
Packit Service 5bcba8
    [2], [_libtool_name=$lt_[]$1],
Packit Service 5bcba8
    [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
Packit Service 5bcba8
m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
Packit Service 5bcba8
])
Packit Service 5bcba8
Packit Service 5bcba8
Packit Service 5bcba8
# _LT_LIBTOOL_CONFIG_VARS
Packit Service 5bcba8
# -----------------------
Packit Service 5bcba8
# Produce commented declarations of non-tagged libtool config variables
Packit Service d78141
# suitable for insertion in the LIBTOOL CONFIG section of the 'libtool'
Packit Service 5bcba8
# script.  Tagged libtool config variables (even for the LIBTOOL CONFIG
Packit Service 5bcba8
# section) are produced by _LT_LIBTOOL_TAG_VARS.
Packit Service 5bcba8
m4_defun([_LT_LIBTOOL_CONFIG_VARS],
Packit Service 5bcba8
[m4_foreach([_lt_var],
Packit Service 5bcba8
    m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
Packit Service 5bcba8
    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
Packit Service 5bcba8
Packit Service 5bcba8
Packit Service 5bcba8
# _LT_LIBTOOL_TAG_VARS(TAG)
Packit Service 5bcba8
# -------------------------
Packit Service 5bcba8
m4_define([_LT_LIBTOOL_TAG_VARS],
Packit Service 5bcba8
[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
Packit Service 5bcba8
    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
Packit Service 5bcba8
Packit Service 5bcba8
Packit Service 5bcba8
# _LT_TAGVAR(VARNAME, [TAGNAME])
Packit Service 5bcba8
# ------------------------------
Packit Service 5bcba8
m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
Packit Service 5bcba8
Packit Service 5bcba8
Packit Service 5bcba8
# _LT_CONFIG_COMMANDS
Packit Service 5bcba8
# -------------------
Packit Service 5bcba8
# Send accumulated output to $CONFIG_STATUS.  Thanks to the lists of
Packit Service 5bcba8
# variables for single and double quote escaping we saved from calls
Packit Service 5bcba8
# to _LT_DECL, we can put quote escaped variables declarations
Packit Service d78141
# into 'config.status', and then the shell code to quote escape them in
Packit Service d78141
# for loops in 'config.status'.  Finally, any additional code accumulated
Packit Service 5bcba8
# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
Packit Service 5bcba8
m4_defun([_LT_CONFIG_COMMANDS],
Packit Service 5bcba8
[AC_PROVIDE_IFELSE([LT_OUTPUT],
Packit Service 5bcba8
	dnl If the libtool generation code has been placed in $CONFIG_LT,
Packit Service 5bcba8
	dnl instead of duplicating it all over again into config.status,
Packit Service 5bcba8
	dnl then we will have config.status run $CONFIG_LT later, so it
Packit Service 5bcba8
	dnl needs to know what name is stored there:
Packit Service 5bcba8
        [AC_CONFIG_COMMANDS([libtool],
Packit Service 5bcba8
            [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
Packit Service 5bcba8
    dnl If the libtool generation code is destined for config.status,
Packit Service 5bcba8
    dnl expand the accumulated commands and init code now:
Packit Service 5bcba8
    [AC_CONFIG_COMMANDS([libtool],
Packit Service 5bcba8
        [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
Packit Service 5bcba8
])#_LT_CONFIG_COMMANDS
Packit Service 5bcba8
Packit Service 5bcba8
Packit Service 5bcba8
# Initialize.
Packit Service 5bcba8
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
Packit Service 5bcba8
[
Packit Service 5bcba8
Packit Service 5bcba8
# The HP-UX ksh and POSIX shell print the target directory to stdout
Packit Service 5bcba8
# if CDPATH is set.
Packit Service 5bcba8
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
Packit Service 5bcba8
Packit Service 5bcba8
sed_quote_subst='$sed_quote_subst'
Packit Service 5bcba8
double_quote_subst='$double_quote_subst'
Packit Service 5bcba8
delay_variable_subst='$delay_variable_subst'
Packit Service 5bcba8
_LT_CONFIG_STATUS_DECLARATIONS
Packit Service 5bcba8
LTCC='$LTCC'
Packit Service 5bcba8
LTCFLAGS='$LTCFLAGS'
Packit Service 5bcba8
compiler='$compiler_DEFAULT'
Packit Service 5bcba8
Packit Service 5bcba8
# A function that is used when there is no print builtin or printf.
Packit Service 5bcba8
func_fallback_echo ()
Packit Service 5bcba8
{
Packit Service 5bcba8
  eval 'cat <<_LTECHO_EOF
Packit Service 5bcba8
\$[]1
Packit Service 5bcba8
_LTECHO_EOF'
Packit Service 5bcba8
}
Packit Service 5bcba8
Packit Service 5bcba8
# Quote evaled strings.
Packit Service 5bcba8
for var in lt_decl_all_varnames([[ \
Packit Service 5bcba8
]], lt_decl_quote_varnames); do
Packit Service 5bcba8
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
Packit Service 5bcba8
    *[[\\\\\\\`\\"\\\$]]*)
Packit Service d78141
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
Packit Service 5bcba8
      ;;
Packit Service 5bcba8
    *)
Packit Service 5bcba8
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
Packit Service 5bcba8
      ;;
Packit Service 5bcba8
    esac
Packit Service 5bcba8
done
Packit Service 5bcba8
Packit Service 5bcba8
# Double-quote double-evaled strings.
Packit Service 5bcba8
for var in lt_decl_all_varnames([[ \
Packit Service 5bcba8
]], lt_decl_dquote_varnames); do
Packit Service 5bcba8
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
Packit Service 5bcba8
    *[[\\\\\\\`\\"\\\$]]*)
Packit Service d78141
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
Packit Service 5bcba8
      ;;
Packit Service 5bcba8
    *)
Packit Service 5bcba8
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
Packit Service 5bcba8
      ;;
Packit Service 5bcba8
    esac
Packit Service 5bcba8
done
Packit Service 5bcba8
Packit Service 5bcba8
_LT_OUTPUT_LIBTOOL_INIT
Packit Service 5bcba8
])
Packit Service 5bcba8
Packit Service 5bcba8
# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
Packit Service 5bcba8
# ------------------------------------
Packit Service 5bcba8
# Generate a child script FILE with all initialization necessary to
Packit Service 5bcba8
# reuse the environment learned by the parent script, and make the
Packit Service 5bcba8
# file executable.  If COMMENT is supplied, it is inserted after the
Packit Service d78141
# '#!' sequence but before initialization text begins.  After this
Packit Service 5bcba8
# macro, additional text can be appended to FILE to form the body of
Packit Service 5bcba8
# the child script.  The macro ends with non-zero status if the
Packit Service 5bcba8
# file could not be fully written (such as if the disk is full).
Packit Service 5bcba8
m4_ifdef([AS_INIT_GENERATED],
Packit Service 5bcba8
[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
Packit Service 5bcba8
[m4_defun([_LT_GENERATED_FILE_INIT],
Packit Service 5bcba8
[m4_require([AS_PREPARE])]dnl
Packit Service 5bcba8
[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
Packit Service 5bcba8
[lt_write_fail=0
Packit Service 5bcba8
cat >$1 <<_ASEOF || lt_write_fail=1
Packit Service 5bcba8
#! $SHELL
Packit Service 5bcba8
# Generated by $as_me.
Packit Service 5bcba8
$2
Packit Service 5bcba8
SHELL=\${CONFIG_SHELL-$SHELL}
Packit Service 5bcba8
export SHELL
Packit Service 5bcba8
_ASEOF
Packit Service 5bcba8
cat >>$1 <<\_ASEOF || lt_write_fail=1
Packit Service 5bcba8
AS_SHELL_SANITIZE
Packit Service 5bcba8
_AS_PREPARE
Packit Service 5bcba8
exec AS_MESSAGE_FD>&1
Packit Service 5bcba8
_ASEOF
Packit Service d78141
test 0 = "$lt_write_fail" && chmod +x $1[]dnl
Packit Service 5bcba8
m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
Packit Service 5bcba8
Packit Service 5bcba8
# LT_OUTPUT
Packit Service 5bcba8
# ---------
Packit Service 5bcba8
# This macro allows early generation of the libtool script (before
Packit Service 5bcba8
# AC_OUTPUT is called), incase it is used in configure for compilation
Packit Service 5bcba8
# tests.
Packit Service 5bcba8
AC_DEFUN([LT_OUTPUT],
Packit Service 5bcba8
[: ${CONFIG_LT=./config.lt}
Packit Service 5bcba8
AC_MSG_NOTICE([creating $CONFIG_LT])
Packit Service 5bcba8
_LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
Packit Service 5bcba8
[# Run this file to recreate a libtool stub with the current configuration.])
Packit Service 5bcba8
Packit Service 5bcba8
cat >>"$CONFIG_LT" <<\_LTEOF
Packit Service 5bcba8
lt_cl_silent=false
Packit Service 5bcba8
exec AS_MESSAGE_LOG_FD>>config.log
Packit Service 5bcba8
{
Packit Service 5bcba8
  echo
Packit Service 5bcba8
  AS_BOX([Running $as_me.])
Packit Service 5bcba8
} >&AS_MESSAGE_LOG_FD
Packit Service 5bcba8
Packit Service 5bcba8
lt_cl_help="\
Packit Service d78141
'$as_me' creates a local libtool stub from the current configuration,
Packit Service 5bcba8
for use in further configure time tests before the real libtool is
Packit Service 5bcba8
generated.
Packit Service 5bcba8
Packit Service 5bcba8
Usage: $[0] [[OPTIONS]]
Packit Service 5bcba8
Packit Service 5bcba8
  -h, --help      print this help, then exit
Packit Service 5bcba8
  -V, --version   print version number, then exit
Packit Service 5bcba8
  -q, --quiet     do not print progress messages
Packit Service 5bcba8
  -d, --debug     don't remove temporary files
Packit Service 5bcba8
Packit Service 5bcba8
Report bugs to <bug-libtool@gnu.org>."
Packit Service 5bcba8
Packit Service 5bcba8
lt_cl_version="\
Packit Service 5bcba8
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
Packit Service 5bcba8
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
Packit Service 5bcba8
configured by $[0], generated by m4_PACKAGE_STRING.
Packit Service 5bcba8
Packit Service 5bcba8
Copyright (C) 2011 Free Software Foundation, Inc.
Packit Service 5bcba8
This config.lt script is free software; the Free Software Foundation
Packit Service 5bcba8
gives unlimited permision to copy, distribute and modify it."
Packit Service 5bcba8
Packit Service d78141
while test 0 != $[#]
Packit Service 5bcba8
do
Packit Service 5bcba8
  case $[1] in
Packit Service 5bcba8
    --version | --v* | -V )
Packit Service 5bcba8
      echo "$lt_cl_version"; exit 0 ;;
Packit Service 5bcba8
    --help | --h* | -h )
Packit Service 5bcba8
      echo "$lt_cl_help"; exit 0 ;;
Packit Service 5bcba8
    --debug | --d* | -d )
Packit Service 5bcba8
      debug=: ;;
Packit Service 5bcba8
    --quiet | --q* | --silent | --s* | -q )
Packit Service 5bcba8
      lt_cl_silent=: ;;
Packit Service 5bcba8
Packit Service 5bcba8
    -*) AC_MSG_ERROR([unrecognized option: $[1]
Packit Service d78141
Try '$[0] --help' for more information.]) ;;
Packit Service 5bcba8
Packit Service 5bcba8
    *) AC_MSG_ERROR([unrecognized argument: $[1]
Packit Service d78141
Try '$[0] --help' for more information.]) ;;
Packit Service 5bcba8
  esac
Packit Service 5bcba8
  shift
Packit Service 5bcba8
done
Packit Service 5bcba8
Packit Service 5bcba8
if $lt_cl_silent; then
Packit Service 5bcba8
  exec AS_MESSAGE_FD>/dev/null
Packit Service 5bcba8
fi
Packit Service 5bcba8
_LTEOF
Packit Service 5bcba8
Packit Service 5bcba8
cat >>"$CONFIG_LT" <<_LTEOF
Packit Service 5bcba8
_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
Packit Service 5bcba8
_LTEOF
Packit Service 5bcba8
Packit Service 5bcba8
cat >>"$CONFIG_LT" <<\_LTEOF
Packit Service 5bcba8
AC_MSG_NOTICE([creating $ofile])
Packit Service 5bcba8
_LT_OUTPUT_LIBTOOL_COMMANDS
Packit Service 5bcba8
AS_EXIT(0)
Packit Service 5bcba8
_LTEOF
Packit Service 5bcba8
chmod +x "$CONFIG_LT"
Packit Service 5bcba8
Packit Service 5bcba8
# configure is writing to config.log, but config.lt does its own redirection,
Packit Service 5bcba8
# appending to config.log, which fails on DOS, as config.log is still kept
Packit Service 5bcba8
# open by configure.  Here we exec the FD to /dev/null, effectively closing
Packit Service 5bcba8
# config.log, so it can be properly (re)opened and appended to by config.lt.
Packit Service 5bcba8
lt_cl_success=:
Packit Service d78141
test yes = "$silent" &&
Packit Service 5bcba8
  lt_config_lt_args="$lt_config_lt_args --quiet"
Packit Service 5bcba8
exec AS_MESSAGE_LOG_FD>/dev/null
Packit Service 5bcba8
$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
Packit Service 5bcba8
exec AS_MESSAGE_LOG_FD>>config.log
Packit Service 5bcba8
$lt_cl_success || AS_EXIT(1)
Packit Service 5bcba8
])# LT_OUTPUT
Packit Service 5bcba8
Packit Service 5bcba8
Packit Service 5bcba8
# _LT_CONFIG(TAG)
Packit Service 5bcba8
# ---------------
Packit Service 5bcba8
# If TAG is the built-in tag, create an initial libtool script with a
Packit Service 5bcba8
# default configuration from the untagged config vars.  Otherwise add code
Packit Service 5bcba8
# to config.status for appending the configuration named by TAG from the
Packit Service 5bcba8
# matching tagged config vars.
Packit Service 5bcba8
m4_defun([_LT_CONFIG],
Packit Service 5bcba8
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
Packit Service 5bcba8
_LT_CONFIG_SAVE_COMMANDS([
Packit Service 5bcba8
  m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
Packit Service 5bcba8
  m4_if(_LT_TAG, [C], [
Packit Service d78141
    # See if we are running on zsh, and set the options that allow our
Packit Service 5bcba8
    # commands through without removal of \ escapes.
Packit Service d78141
    if test -n "${ZSH_VERSION+set}"; then
Packit Service 5bcba8
      setopt NO_GLOB_SUBST
Packit Service 5bcba8
    fi
Packit Service 5bcba8
Packit Service d78141
    cfgfile=${ofile}T
Packit Service 5bcba8
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
Packit Service 5bcba8
    $RM "$cfgfile"
Packit Service 5bcba8
Packit Service 5bcba8
    cat <<_LT_EOF >> "$cfgfile"
Packit Service 5bcba8
#! $SHELL
Packit Service d78141
# Generated automatically by $as_me ($PACKAGE) $VERSION
Packit Service 5bcba8
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
Packit Service 5bcba8
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
Packit Service d78141
Packit Service d78141
# Provide generalized library-building support services.
Packit Service d78141
# Written by Gordon Matzigkeit, 1996
Packit Service d78141
Packit Service 5bcba8
_LT_COPYING
Packit Service 5bcba8
_LT_LIBTOOL_TAGS
Packit Service 5bcba8
Packit Service d78141
# Configured defaults for sys_lib_dlsearch_path munging.
Packit Service d78141
: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
Packit Service d78141
Packit Service 5bcba8
# ### BEGIN LIBTOOL CONFIG
Packit Service 5bcba8
_LT_LIBTOOL_CONFIG_VARS
Packit Service 5bcba8
_LT_LIBTOOL_TAG_VARS
Packit Service 5bcba8
# ### END LIBTOOL CONFIG
Packit Service 5bcba8
Packit Service 5bcba8
_LT_EOF
Packit Service 5bcba8
Packit Service d78141
    cat <<'_LT_EOF' >> "$cfgfile"
Packit Service d78141
Packit Service d78141
# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
Packit Service d78141
Packit Service d78141
_LT_PREPARE_MUNGE_PATH_LIST
Packit Service d78141
_LT_PREPARE_CC_BASENAME
Packit Service d78141
Packit Service d78141
# ### END FUNCTIONS SHARED WITH CONFIGURE
Packit Service d78141
Packit Service d78141
_LT_EOF
Packit Service d78141
Packit Service 5bcba8
  case $host_os in
Packit Service 5bcba8
  aix3*)
Packit Service 5bcba8
    cat <<\_LT_EOF >> "$cfgfile"
Packit Service 5bcba8
# AIX sometimes has problems with the GCC collect2 program.  For some
Packit Service 5bcba8
# reason, if we set the COLLECT_NAMES environment variable, the problems
Packit Service 5bcba8
# vanish in a puff of smoke.
Packit Service d78141
if test set != "${COLLECT_NAMES+set}"; then
Packit Service 5bcba8
  COLLECT_NAMES=
Packit Service 5bcba8
  export COLLECT_NAMES
Packit Service 5bcba8
fi
Packit Service 5bcba8
_LT_EOF
Packit Service 5bcba8
    ;;
Packit Service 5bcba8
  esac
Packit Service 5bcba8
Packit Service 5bcba8
  _LT_PROG_LTMAIN
Packit Service 5bcba8
Packit Service 5bcba8
  # We use sed instead of cat because bash on DJGPP gets confused if
Packit Service 5bcba8
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
Packit Service 5bcba8
  # text mode, it properly converts lines to CR/LF.  This bash problem
Packit Service 5bcba8
  # is reportedly fixed, but why not run on old versions too?
Packit Service 5bcba8
  sed '$q' "$ltmain" >> "$cfgfile" \
Packit Service 5bcba8
     || (rm -f "$cfgfile"; exit 1)
Packit Service 5bcba8
Packit Service 5bcba8
   mv -f "$cfgfile" "$ofile" ||
Packit Service 5bcba8
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
Packit Service 5bcba8
  chmod +x "$ofile"
Packit Service 5bcba8
],
Packit Service 5bcba8
[cat <<_LT_EOF >> "$ofile"
Packit Service 5bcba8
Packit Service 5bcba8
dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
Packit Service 5bcba8
dnl in a comment (ie after a #).
Packit Service 5bcba8
# ### BEGIN LIBTOOL TAG CONFIG: $1
Packit Service 5bcba8
_LT_LIBTOOL_TAG_VARS(_LT_TAG)
Packit Service 5bcba8
# ### END LIBTOOL TAG CONFIG: $1
Packit Service 5bcba8
_LT_EOF
Packit Service 5bcba8
])dnl /m4_if
Packit Service 5bcba8
],
Packit Service 5bcba8
[m4_if([$1], [], [
Packit Service 5bcba8
    PACKAGE='$PACKAGE'
Packit Service 5bcba8
    VERSION='$VERSION'
Packit Service 5bcba8
    RM='$RM'
Packit Service 5bcba8
    ofile='$ofile'], [])
Packit Service 5bcba8
])dnl /_LT_CONFIG_SAVE_COMMANDS
Packit Service 5bcba8
])# _LT_CONFIG
Packit Service 5bcba8
Packit Service 5bcba8
Packit Service 5bcba8
# LT_SUPPORTED_TAG(TAG)
Packit Service 5bcba8
# ---------------------
Packit Service 5bcba8
# Trace this macro to discover what tags are supported by the libtool
Packit Service 5bcba8
# --tag option, using:
Packit Service 5bcba8
#    autoconf --trace 'LT_SUPPORTED_TAG:$1'
Packit Service 5bcba8
AC_DEFUN([LT_SUPPORTED_TAG], [])
Packit Service 5bcba8
Packit Service 5bcba8
Packit Service 5bcba8
# C support is built-in for now
Packit Service 5bcba8
m4_define([_LT_LANG_C_enabled], [])
Packit Service 5bcba8
m4_define([_LT_TAGS], [])
Packit Service 5bcba8
Packit Service 5bcba8
Packit Service 5bcba8
# LT_LANG(LANG)
Packit Service 5bcba8
# -------------
Packit Service 5bcba8
# Enable libtool support for the given language if not already enabled.
Packit Service 5bcba8
AC_DEFUN([LT_LANG],
Packit Service 5bcba8
[AC_BEFORE([$0], [LT_OUTPUT])dnl
Packit Service 5bcba8
m4_case([$1],
Packit Service 5bcba8
  [C],			[_LT_LANG(C)],
Packit Service 5bcba8
  [C++],		[_LT_LANG(CXX)],
Packit Service 5bcba8
  [Go],			[_LT_LANG(GO)],
Packit Service 5bcba8
  [Java],		[_LT_LANG(GCJ)],
Packit Service 5bcba8
  [Fortran 77],		[_LT_LANG(F77)],
Packit Service 5bcba8
  [Fortran],		[_LT_LANG(FC)],
Packit Service 5bcba8
  [Windows Resource],	[_LT_LANG(RC)],
Packit Service 5bcba8
  [m4_ifdef([_LT_LANG_]$1[_CONFIG],
Packit Service 5bcba8
    [_LT_LANG($1)],
Packit Service 5bcba8
    [m4_fatal([$0: unsupported language: "$1"])])])dnl
Packit Service 5bcba8
])# LT_LANG
Packit Service 5bcba8
Packit Service 5bcba8
Packit Service 5bcba8
# _LT_LANG(LANGNAME)
Packit Service 5bcba8
# ------------------
Packit Service 5bcba8
m4_defun([_LT_LANG],
Packit Service 5bcba8
[m4_ifdef([_LT_LANG_]$1[_enabled], [],
Packit Service 5bcba8
  [LT_SUPPORTED_TAG([$1])dnl
Packit Service 5bcba8
  m4_append([_LT_TAGS], [$1 ])dnl
Packit Service 5bcba8
  m4_define([_LT_LANG_]$1[_enabled], [])dnl
Packit Service 5bcba8
  _LT_LANG_$1_CONFIG($1)])dnl
Packit Service 5bcba8
])# _LT_LANG
Packit Service 5bcba8
Packit Service 5bcba8
Packit Service 5bcba8
m4_ifndef([AC_PROG_GO], [
Packit Service 5bcba8
############################################################
Packit Service 5bcba8
# NOTE: This macro has been submitted for inclusion into   #
Packit Service 5bcba8
#  GNU Autoconf as AC_PROG_GO.  When it is available in    #
Packit Service 5bcba8
#  a released version of Autoconf we should remove this    #
Packit Service 5bcba8
#  macro and use it instead.                               #
Packit Service 5bcba8
############################################################
Packit Service 5bcba8
m4_defun([AC_PROG_GO],
Packit Service 5bcba8
[AC_LANG_PUSH(Go)dnl
Packit Service 5bcba8
AC_ARG_VAR([GOC],     [Go compiler command])dnl
Packit Service 5bcba8
AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
Packit Service 5bcba8
_AC_ARG_VAR_LDFLAGS()dnl
Packit Service 5bcba8
AC_CHECK_TOOL(GOC, gccgo)
Packit Service 5bcba8
if test -z "$GOC"; then
Packit Service 5bcba8
  if test -n "$ac_tool_prefix"; then
Packit Service 5bcba8
    AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
Packit Service 5bcba8
  fi
Packit Service 5bcba8
fi
Packit Service 5bcba8
if test -z "$GOC"; then
Packit Service 5bcba8
  AC_CHECK_PROG(GOC, gccgo, gccgo, false)
Packit Service 5bcba8
fi
Packit Service 5bcba8
])#m4_defun
Packit Service 5bcba8
])#m4_ifndef
Packit Service 5bcba8
Packit Service 5bcba8
Packit Service 5bcba8
# _LT_LANG_DEFAULT_CONFIG
Packit Service 5bcba8
# -----------------------
Packit Service 5bcba8
m4_defun([_LT_LANG_DEFAULT_CONFIG],
Packit Service 5bcba8
[AC_PROVIDE_IFELSE([AC_PROG_CXX],
Packit Service 5bcba8
  [LT_LANG(CXX)],
Packit Service 5bcba8
  [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
Packit Service 5bcba8
Packit Service 5bcba8
AC_PROVIDE_IFELSE([AC_PROG_F77],
Packit Service 5bcba8
  [LT_LANG(F77)],
Packit Service 5bcba8
  [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
Packit Service 5bcba8
Packit Service 5bcba8
AC_PROVIDE_IFELSE([AC_PROG_FC],
Packit Service 5bcba8
  [LT_LANG(FC)],
Packit Service 5bcba8
  [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
Packit Service 5bcba8
Packit Service 5bcba8
dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
Packit Service 5bcba8
dnl pulling things in needlessly.
Packit Service 5bcba8
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
Packit Service 5bcba8
  [LT_LANG(GCJ)],
Packit Service 5bcba8
  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
Packit Service 5bcba8
    [LT_LANG(GCJ)],
Packit Service 5bcba8
    [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
Packit Service 5bcba8
      [LT_LANG(GCJ)],
Packit Service 5bcba8
      [m4_ifdef([AC_PROG_GCJ],
Packit Service 5bcba8
	[m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
Packit Service 5bcba8
       m4_ifdef([A][M_PROG_GCJ],
Packit Service 5bcba8
	[m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
Packit Service 5bcba8
       m4_ifdef([LT_PROG_GCJ],
Packit Service 5bcba8
	[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
Packit Service 5bcba8
Packit Service 5bcba8
AC_PROVIDE_IFELSE([AC_PROG_GO],
Packit Service 5bcba8
  [LT_LANG(GO)],
Packit Service 5bcba8
  [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
Packit Service 5bcba8
Packit Service 5bcba8
AC_PROVIDE_IFELSE([LT_PROG_RC],
Packit Service 5bcba8
  [LT_LANG(RC)],
Packit Service 5bcba8
  [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
Packit Service 5bcba8
])# _LT_LANG_DEFAULT_CONFIG
Packit Service 5bcba8
Packit Service 5bcba8
# Obsolete macros:
Packit Service 5bcba8
AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
Packit Service 5bcba8
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
Packit Service 5bcba8
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
Packit Service 5bcba8
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
Packit Service 5bcba8
AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
Packit Service 5bcba8
dnl aclocal-1.4 backwards compatibility:
Packit Service 5bcba8
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
Packit Service 5bcba8
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
Packit Service 5bcba8
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
Packit Service 5bcba8
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
Packit Service 5bcba8
dnl AC_DEFUN([AC_LIBTOOL_RC], [])
Packit Service 5bcba8
Packit Service 5bcba8
Packit Service 5bcba8
# _LT_TAG_COMPILER
Packit Service 5bcba8
# ----------------
Packit Service 5bcba8
m4_defun([_LT_TAG_COMPILER],
Packit Service 5bcba8
[AC_REQUIRE([AC_PROG_CC])dnl
Packit Service 5bcba8
Packit Service 5bcba8
_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
Packit Service 5bcba8
_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
Packit Service 5bcba8
_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
Packit Service 5bcba8
_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
Packit Service 5bcba8
Packit Service 5bcba8
# If no C compiler was specified, use CC.
Packit Service 5bcba8
LTCC=${LTCC-"$CC"}
Packit Service 5bcba8
Packit Service 5bcba8
# If no C compiler flags were specified, use CFLAGS.
Packit Service 5bcba8
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
Packit Service 5bcba8
Packit Service 5bcba8
# Allow CC to be a program name with arguments.
Packit Service 5bcba8
compiler=$CC
Packit Service 5bcba8
])# _LT_TAG_COMPILER
Packit Service 5bcba8
Packit Service 5bcba8
Packit Service 5bcba8
# _LT_COMPILER_BOILERPLATE
Packit Service 5bcba8
# ------------------------
Packit Service 5bcba8
# Check for compiler boilerplate output or warnings with
Packit Service 5bcba8
# the simple compiler test code.
Packit Service 5bcba8
m4_defun([_LT_COMPILER_BOILERPLATE],
Packit Service 5bcba8
[m4_require([_LT_DECL_SED])dnl
Packit Service 5bcba8
ac_outfile=conftest.$ac_objext
Packit Service 5bcba8
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
Packit Service 5bcba8
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
Packit Service 5bcba8
_lt_compiler_boilerplate=`cat conftest.err`
Packit Service 5bcba8
$RM conftest*
Packit Service 5bcba8
])# _LT_COMPILER_BOILERPLATE
Packit Service 5bcba8
Packit Service 5bcba8
Packit Service 5bcba8
# _LT_LINKER_BOILERPLATE
Packit Service 5bcba8
# ----------------------
Packit Service 5bcba8
# Check for linker boilerplate output or warnings with
Packit Service 5bcba8
# the simple link test code.
Packit Service 5bcba8
m4_defun([_LT_LINKER_BOILERPLATE],
Packit Service 5bcba8
[m4_require([_LT_DECL_SED])dnl
Packit Service 5bcba8
ac_outfile=conftest.$ac_objext
Packit Service 5bcba8
echo "$lt_simple_link_test_code" >conftest.$ac_ext
Packit Service 5bcba8
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
Packit Service 5bcba8
_lt_linker_boilerplate=`cat conftest.err`
Packit Service 5bcba8
$RM -r conftest*
Packit Service 5bcba8
])# _LT_LINKER_BOILERPLATE
Packit Service 5bcba8
Packit Service 5bcba8
# _LT_REQUIRED_DARWIN_CHECKS
Packit Service 5bcba8
# -------------------------
Packit Service 5bcba8
m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
Packit Service 5bcba8
  case $host_os in
Packit Service 5bcba8
    rhapsody* | darwin*)
Packit Service 5bcba8
    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
Packit Service 5bcba8
    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
Packit Service 5bcba8
    AC_CHECK_TOOL([LIPO], [lipo], [:])
Packit Service 5bcba8
    AC_CHECK_TOOL([OTOOL], [otool], [:])
Packit Service 5bcba8
    AC_CHECK_TOOL([OTOOL64], [otool64], [:])
Packit Service 5bcba8
    _LT_DECL([], [DSYMUTIL], [1],
Packit Service 5bcba8
      [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
Packit Service 5bcba8
    _LT_DECL([], [NMEDIT], [1],
Packit Service 5bcba8
      [Tool to change global to local symbols on Mac OS X])
Packit Service 5bcba8
    _LT_DECL([], [LIPO], [1],
Packit Service 5bcba8
      [Tool to manipulate fat objects and archives on Mac OS X])
Packit Service 5bcba8
    _LT_DECL([], [OTOOL], [1],
Packit Service 5bcba8
      [ldd/readelf like tool for Mach-O binaries on Mac OS X])
Packit Service 5bcba8
    _LT_DECL([], [OTOOL64], [1],
Packit Service 5bcba8
      [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
Packit Service 5bcba8
Packit Service 5bcba8
    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
Packit Service 5bcba8
      [lt_cv_apple_cc_single_mod=no
Packit Service d78141
      if test -z "$LT_MULTI_MODULE"; then
Packit Service 5bcba8
	# By default we will add the -single_module flag. You can override
Packit Service 5bcba8
	# by either setting the environment variable LT_MULTI_MODULE
Packit Service 5bcba8
	# non-empty at configure time, or by adding -multi_module to the
Packit Service 5bcba8
	# link flags.
Packit Service 5bcba8
	rm -rf libconftest.dylib*
Packit Service 5bcba8
	echo "int foo(void){return 1;}" > conftest.c
Packit Service 5bcba8
	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
Packit Service 5bcba8
-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
Packit Service 5bcba8
	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
Packit Service 5bcba8
	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
Packit Service 5bcba8
        _lt_result=$?
Packit Service 5bcba8
	# If there is a non-empty error log, and "single_module"
Packit Service 5bcba8
	# appears in it, assume the flag caused a linker warning
Packit Service 5bcba8
        if test -s conftest.err && $GREP single_module conftest.err; then
Packit Service 5bcba8
	  cat conftest.err >&AS_MESSAGE_LOG_FD
Packit Service 5bcba8
	# Otherwise, if the output was created with a 0 exit code from
Packit Service 5bcba8
	# the compiler, it worked.
Packit Service d78141
	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
Packit Service 5bcba8
	  lt_cv_apple_cc_single_mod=yes
Packit Service 5bcba8
	else
Packit Service 5bcba8
	  cat conftest.err >&AS_MESSAGE_LOG_FD
Packit Service 5bcba8
	fi
Packit Service 5bcba8
	rm -rf libconftest.dylib*
Packit Service 5bcba8
	rm -f conftest.*
Packit Service 5bcba8
      fi])
Packit Service 5bcba8
Packit Service 5bcba8
    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
Packit Service 5bcba8
      [lt_cv_ld_exported_symbols_list],
Packit Service 5bcba8
      [lt_cv_ld_exported_symbols_list=no
Packit Service 5bcba8
      save_LDFLAGS=$LDFLAGS
Packit Service 5bcba8
      echo "_main" > conftest.sym
Packit Service 5bcba8
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
Packit Service 5bcba8
      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
Packit Service 5bcba8
	[lt_cv_ld_exported_symbols_list=yes],
Packit Service 5bcba8
	[lt_cv_ld_exported_symbols_list=no])
Packit Service d78141
	LDFLAGS=$save_LDFLAGS
Packit Service 5bcba8
    ])
Packit Service 5bcba8
Packit Service 5bcba8
    AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
Packit Service 5bcba8
      [lt_cv_ld_force_load=no
Packit Service 5bcba8
      cat > conftest.c << _LT_EOF
Packit Service 5bcba8
int forced_loaded() { return 2;}
Packit Service 5bcba8
_LT_EOF
Packit Service 5bcba8
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
Packit Service 5bcba8
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
Packit Service 5bcba8
      echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
Packit Service 5bcba8
      $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
Packit Service 5bcba8
      echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
Packit Service 5bcba8
      $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
Packit Service 5bcba8
      cat > conftest.c << _LT_EOF
Packit Service 5bcba8
int main() { return 0;}
Packit Service 5bcba8
_LT_EOF
Packit Service 5bcba8
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
Packit Service 5bcba8
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
Packit Service 5bcba8
      _lt_result=$?
Packit Service 5bcba8
      if test -s conftest.err && $GREP force_load conftest.err; then
Packit Service 5bcba8
	cat conftest.err >&AS_MESSAGE_LOG_FD
Packit Service d78141
      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
Packit Service 5bcba8
	lt_cv_ld_force_load=yes
Packit Service 5bcba8
      else
Packit Service 5bcba8
	cat conftest.err >&AS_MESSAGE_LOG_FD
Packit Service 5bcba8
      fi
Packit Service 5bcba8
        rm -f conftest.err libconftest.a conftest conftest.c
Packit Service 5bcba8
        rm -rf conftest.dSYM
Packit Service 5bcba8
    ])
Packit Service 5bcba8
    case $host_os in
Packit Service 5bcba8
    rhapsody* | darwin1.[[012]])
Packit Service d78141
      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
Packit Service 5bcba8
    darwin1.*)
Packit Service d78141
      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
Packit Service 5bcba8
    darwin*) # darwin 5.x on
Packit Service 5bcba8
      # if running on 10.5 or later, the deployment target defaults
Packit Service 5bcba8
      # to the OS version, if on x86, and 10.4, the deployment
Packit Service 5bcba8
      # target defaults to 10.4. Don't you love it?
Packit Service 5bcba8
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
Packit Service 5bcba8
	10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
Packit Service d78141
	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
Packit Service d78141
	10.[[012]][[,.]]*)
Packit Service d78141
	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
Packit Service 5bcba8
	10.*)
Packit Service d78141
	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
Packit Service 5bcba8
      esac
Packit Service 5bcba8
    ;;
Packit Service 5bcba8
  esac
Packit Service d78141
    if test yes = "$lt_cv_apple_cc_single_mod"; then
Packit Service 5bcba8
      _lt_dar_single_mod='$single_module'
Packit Service 5bcba8
    fi
Packit Service d78141
    if test yes = "$lt_cv_ld_exported_symbols_list"; then
Packit Service d78141
      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
Packit Service 5bcba8
    else
Packit Service d78141
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
Packit Service 5bcba8
    fi
Packit Service d78141
    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
Packit Service 5bcba8
      _lt_dsymutil='~$DSYMUTIL $lib || :'
Packit Service 5bcba8
    else
Packit Service 5bcba8
      _lt_dsymutil=
Packit Service 5bcba8
    fi
Packit Service 5bcba8
    ;;
Packit Service 5bcba8
  esac
Packit Service 5bcba8
])
Packit Service 5bcba8
Packit Service 5bcba8
Packit Service 5bcba8
# _LT_DARWIN_LINKER_FEATURES([TAG])
Packit Service 5bcba8
# ---------------------------------
Packit Service 5bcba8
# Checks for linker and compiler features on darwin
Packit Service 5bcba8
m4_defun([_LT_DARWIN_LINKER_FEATURES],
Packit Service 5bcba8
[
Packit Service 5bcba8
  m4_require([_LT_REQUIRED_DARWIN_CHECKS])
Packit Service 5bcba8
  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
Packit Service 5bcba8
  _LT_TAGVAR(hardcode_direct, $1)=no
Packit Service 5bcba8
  _LT_TAGVAR(hardcode_automatic, $1)=yes
Packit Service 5bcba8
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
Packit Service d78141
  if test yes = "$lt_cv_ld_force_load"; then
Packit Service d78141
    _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
Packit Service 5bcba8
    m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
Packit Service 5bcba8
                  [FC],  [_LT_TAGVAR(compiler_needs_object, $1)=yes])
Packit Service 5bcba8
  else
Packit Service 5bcba8
    _LT_TAGVAR(whole_archive_flag_spec, $1)=''
Packit Service 5bcba8
  fi
Packit Service 5bcba8
  _LT_TAGVAR(link_all_deplibs, $1)=yes
Packit Service d78141
  _LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined
Packit Service 5bcba8
  case $cc_basename in
Packit Service d78141
     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
Packit Service 5bcba8
     *) _lt_dar_can_shared=$GCC ;;
Packit Service 5bcba8
  esac
Packit Service d78141
  if test yes = "$_lt_dar_can_shared"; then
Packit Service 5bcba8
    output_verbose_link_cmd=func_echo_all
Packit Service d78141
    _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"
Packit Service d78141
    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
Packit Service d78141
    _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"
Packit Service d78141
    _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"
Packit Service 5bcba8
    m4_if([$1], [CXX],
Packit Service d78141
[   if test yes != "$lt_cv_apple_cc_single_mod"; then
Packit Service d78141
      _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"
Packit Service d78141
      _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"
Packit Service 5bcba8
    fi
Packit Service 5bcba8
],[])
Packit Service 5bcba8
  else
Packit Service 5bcba8
  _LT_TAGVAR(ld_shlibs, $1)=no
Packit Service 5bcba8
  fi
Packit Service 5bcba8
])
Packit Service 5bcba8
Packit Service 5bcba8
# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
Packit Service 5bcba8
# ----------------------------------
Packit Service 5bcba8
# Links a minimal program and checks the executable
Packit Service 5bcba8
# for the system default hardcoded library path. In most cases,
Packit Service 5bcba8
# this is /usr/lib:/lib, but when the MPI compilers are used
Packit Service 5bcba8
# the location of the communication and MPI libs are included too.
Packit Service 5bcba8
# If we don't find anything, use the default library path according
Packit Service 5bcba8
# to the aix ld manual.
Packit Service 5bcba8
# Store the results from the different compilers for each TAGNAME.
Packit Service 5bcba8
# Allow to override them for all tags through lt_cv_aix_libpath.
Packit Service 5bcba8
m4_defun([_LT_SYS_MODULE_PATH_AIX],
Packit Service 5bcba8
[m4_require([_LT_DECL_SED])dnl
Packit Service d78141
if test set = "${lt_cv_aix_libpath+set}"; then
Packit Service 5bcba8
  aix_libpath=$lt_cv_aix_libpath
Packit Service 5bcba8
else
Packit Service 5bcba8
  AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
Packit Service 5bcba8
  [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
Packit Service 5bcba8
  lt_aix_libpath_sed='[
Packit Service 5bcba8
      /Import File Strings/,/^$/ {
Packit Service 5bcba8
	  /^0/ {
Packit Service 5bcba8
	      s/^0  *\([^ ]*\) *$/\1/
Packit Service 5bcba8
	      p
Packit Service 5bcba8
	  }
Packit Service 5bcba8
      }]'
Packit Service 5bcba8
  _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Packit Service 5bcba8
  # Check for a 64-bit object if we didn't find anything.
Packit Service 5bcba8
  if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
Packit Service 5bcba8
    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Packit Service 5bcba8
  fi],[])
Packit Service 5bcba8
  if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
Packit Service d78141
    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=/usr/lib:/lib
Packit Service 5bcba8
  fi
Packit Service 5bcba8
  ])
Packit Service 5bcba8
  aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
Packit Service 5bcba8
fi
Packit Service 5bcba8
])# _LT_SYS_MODULE_PATH_AIX
Packit Service 5bcba8
Packit Service 5bcba8
Packit Service 5bcba8
# _LT_SHELL_INIT(ARG)
Packit Service 5bcba8
# -------------------
Packit Service 5bcba8
m4_define([_LT_SHELL_INIT],
Packit Service 5bcba8
[m4_divert_text([M4SH-INIT], [$1
Packit Service 5bcba8
])])# _LT_SHELL_INIT
Packit Service 5bcba8
Packit Service 5bcba8
Packit Service 5bcba8
Packit Service 5bcba8
# _LT_PROG_ECHO_BACKSLASH
Packit Service 5bcba8
# -----------------------
Packit Service 5bcba8
# Find how we can fake an echo command that does not interpret backslash.
Packit Service 5bcba8
# In particular, with Autoconf 2.60 or later we add some code to the start
Packit Service d78141
# of the generated configure script that will find a shell with a builtin
Packit Service d78141
# printf (that we can use as an echo command).
Packit Service 5bcba8
m4_defun([_LT_PROG_ECHO_BACKSLASH],
Packit Service 5bcba8
[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
Packit Service 5bcba8
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
Packit Service 5bcba8
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
Packit Service 5bcba8
Packit Service 5bcba8
AC_MSG_CHECKING([how to print strings])
Packit Service 5bcba8
# Test print first, because it will be a builtin if present.
Packit Service 5bcba8
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
Packit Service 5bcba8
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
Packit Service 5bcba8
  ECHO='print -r --'
Packit Service 5bcba8
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
Packit Service 5bcba8
  ECHO='printf %s\n'
Packit Service 5bcba8
else
Packit Service 5bcba8
  # Use this function as a fallback that always works.
Packit Service 5bcba8
  func_fallback_echo ()
Packit Service 5bcba8
  {
Packit Service 5bcba8
    eval 'cat <<_LTECHO_EOF
Packit Service 5bcba8
$[]1
Packit Service 5bcba8
_LTECHO_EOF'
Packit Service 5bcba8
  }
Packit Service 5bcba8
  ECHO='func_fallback_echo'
Packit Service 5bcba8
fi
Packit Service 5bcba8
Packit Service 5bcba8
# func_echo_all arg...
Packit Service 5bcba8
# Invoke $ECHO with all args, space-separated.
Packit Service 5bcba8
func_echo_all ()
Packit Service 5bcba8
{
Packit Service d78141
    $ECHO "$*"
Packit Service 5bcba8
}
Packit Service 5bcba8
Packit Service d78141
case $ECHO in
Packit Service 5bcba8
  printf*) AC_MSG_RESULT([printf]) ;;
Packit Service 5bcba8
  print*) AC_MSG_RESULT([print -r]) ;;
Packit Service 5bcba8
  *) AC_MSG_RESULT([cat]) ;;
Packit Service 5bcba8
esac
Packit Service 5bcba8
Packit Service 5bcba8
m4_ifdef([_AS_DETECT_SUGGESTED],
Packit Service 5bcba8
[_AS_DETECT_SUGGESTED([
Packit Service 5bcba8
  test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
Packit Service 5bcba8
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
Packit Service 5bcba8
    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
Packit Service 5bcba8
    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
Packit Service 5bcba8
    PATH=/empty FPATH=/empty; export PATH FPATH
Packit Service 5bcba8
    test "X`printf %s $ECHO`" = "X$ECHO" \
Packit Service 5bcba8
      || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
Packit Service 5bcba8
Packit Service 5bcba8
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
Packit Service 5bcba8
_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
Packit Service 5bcba8
])# _LT_PROG_ECHO_BACKSLASH
Packit Service 5bcba8
Packit Service 5bcba8
Packit Service 5bcba8
# _LT_WITH_SYSROOT
Packit Service 5bcba8
# ----------------
Packit Service 5bcba8
AC_DEFUN([_LT_WITH_SYSROOT],
Packit Service 5bcba8
[AC_MSG_CHECKING([for sysroot])
Packit Service 5bcba8
AC_ARG_WITH([sysroot],
Packit Service d78141
[AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@],
Packit Service d78141
  [Search for dependent libraries within DIR (or the compiler's sysroot
Packit Service d78141
   if not specified).])],
Packit Service 5bcba8
[], [with_sysroot=no])
Packit Service 5bcba8
Packit Service 5bcba8
dnl lt_sysroot will always be passed unquoted.  We quote it here
Packit Service 5bcba8
dnl in case the user passed a directory name.
Packit Service 5bcba8
lt_sysroot=
Packit Service d78141
case $with_sysroot in #(
Packit Service 5bcba8
 yes)
Packit Service d78141
   if test yes = "$GCC"; then
Packit Service 5bcba8
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
Packit Service 5bcba8
   fi
Packit Service 5bcba8
   ;; #(
Packit Service 5bcba8
 /*)
Packit Service 5bcba8
   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
Packit Service 5bcba8
   ;; #(
Packit Service 5bcba8
 no|'')
Packit Service 5bcba8
   ;; #(
Packit Service 5bcba8
 *)
Packit Service d78141
   AC_MSG_RESULT([$with_sysroot])
Packit Service 5bcba8
   AC_MSG_ERROR([The sysroot must be an absolute path.])
Packit Service 5bcba8
   ;;
Packit Service 5bcba8
esac
Packit Service 5bcba8
Packit Service 5bcba8
 AC_MSG_RESULT([${lt_sysroot:-no}])
Packit Service 5bcba8
_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
Packit Service d78141
[dependent libraries, and where our libraries should be installed.])])
Packit Service 5bcba8
Packit Service 5bcba8
# _LT_ENABLE_LOCK
Packit Service 5bcba8
# ---------------
Packit Service 5bcba8
m4_defun([_LT_ENABLE_LOCK],
Packit Service 5bcba8
[AC_ARG_ENABLE([libtool-lock],
Packit Service 5bcba8
  [AS_HELP_STRING([--disable-libtool-lock],
Packit Service 5bcba8
    [avoid locking (might break parallel builds)])])
Packit Service d78141
test no = "$enable_libtool_lock" || enable_libtool_lock=yes
Packit Service 5bcba8
Packit Service 5bcba8
# Some flags need to be propagated to the compiler or linker for good
Packit Service 5bcba8
# libtool support.
Packit Service 5bcba8
case $host in
Packit Service 5bcba8
ia64-*-hpux*)
Packit Service d78141
  # Find out what ABI is being produced by ac_compile, and set mode
Packit Service d78141
  # options accordingly.
Packit Service 5bcba8
  echo 'int i;' > conftest.$ac_ext
Packit Service 5bcba8
  if AC_TRY_EVAL(ac_compile); then
Packit Service 5bcba8
    case `/usr/bin/file conftest.$ac_objext` in
Packit Service 5bcba8
      *ELF-32*)
Packit Service d78141
	HPUX_IA64_MODE=32
Packit Service 5bcba8
	;;
Packit Service 5bcba8
      *ELF-64*)
Packit Service d78141
	HPUX_IA64_MODE=64
Packit Service 5bcba8
	;;
Packit Service 5bcba8
    esac
Packit Service 5bcba8
  fi
Packit Service 5bcba8
  rm -rf conftest*
Packit Service 5bcba8
  ;;
Packit Service 5bcba8
*-*-irix6*)
Packit Service d78141
  # Find out what ABI is being produced by ac_compile, and set linker
Packit Service d78141
  # options accordingly.
Packit Service 5bcba8
  echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
Packit Service 5bcba8
  if AC_TRY_EVAL(ac_compile); then
Packit Service d78141
    if test yes = "$lt_cv_prog_gnu_ld"; then
Packit Service 5bcba8
      case `/usr/bin/file conftest.$ac_objext` in
Packit Service 5bcba8
	*32-bit*)
Packit Service 5bcba8
	  LD="${LD-ld} -melf32bsmip"
Packit Service 5bcba8
	  ;;
Packit Service 5bcba8
	*N32*)
Packit Service 5bcba8
	  LD="${LD-ld} -melf32bmipn32"
Packit Service 5bcba8
	  ;;
Packit Service 5bcba8
	*64-bit*)
Packit Service 5bcba8
	  LD="${LD-ld} -melf64bmip"
Packit Service 5bcba8
	;;
Packit Service 5bcba8
      esac
Packit Service 5bcba8
    else
Packit Service 5bcba8
      case `/usr/bin/file conftest.$ac_objext` in
Packit Service 5bcba8
	*32-bit*)
Packit Service 5bcba8
	  LD="${LD-ld} -32"
Packit Service 5bcba8
	  ;;
Packit Service 5bcba8
	*N32*)
Packit Service 5bcba8
	  LD="${LD-ld} -n32"
Packit Service 5bcba8
	  ;;
Packit Service 5bcba8
	*64-bit*)
Packit Service 5bcba8
	  LD="${LD-ld} -64"
Packit Service 5bcba8
	  ;;
Packit Service 5bcba8
      esac
Packit Service 5bcba8
    fi
Packit Service 5bcba8
  fi
Packit Service 5bcba8
  rm -rf conftest*
Packit Service 5bcba8
  ;;
Packit Service 5bcba8
Packit Service d78141
mips64*-*linux*)
Packit Service d78141
  # Find out what ABI is being produced by ac_compile, and set linker
Packit Service d78141
  # options accordingly.
Packit Service d78141
  echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
Packit Service d78141
  if AC_TRY_EVAL(ac_compile); then
Packit Service d78141
    emul=elf
Packit Service d78141
    case `/usr/bin/file conftest.$ac_objext` in
Packit Service d78141
      *32-bit*)
Packit Service d78141
	emul="${emul}32"
Packit Service d78141
	;;
Packit Service d78141
      *64-bit*)
Packit Service d78141
	emul="${emul}64"
Packit Service d78141
	;;
Packit Service d78141
    esac
Packit Service d78141
    case `/usr/bin/file conftest.$ac_objext` in
Packit Service d78141
      *MSB*)
Packit Service d78141
	emul="${emul}btsmip"
Packit Service d78141
	;;
Packit Service d78141
      *LSB*)
Packit Service d78141
	emul="${emul}ltsmip"
Packit Service d78141
	;;
Packit Service d78141
    esac
Packit Service d78141
    case `/usr/bin/file conftest.$ac_objext` in
Packit Service d78141
      *N32*)
Packit Service d78141
	emul="${emul}n32"
Packit Service d78141
	;;
Packit Service d78141
    esac
Packit Service d78141
    LD="${LD-ld} -m $emul"
Packit Service d78141
  fi
Packit Service d78141
  rm -rf conftest*
Packit Service d78141
  ;;
Packit Service d78141
Packit Service 5bcba8
x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
Packit Service 5bcba8
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
Packit Service d78141
  # Find out what ABI is being produced by ac_compile, and set linker
Packit Service d78141
  # options accordingly.  Note that the listed cases only cover the
Packit Service d78141
  # situations where additional linker options are needed (such as when
Packit Service d78141
  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
Packit Service d78141
  # vice versa); the common cases where no linker options are needed do
Packit Service d78141
  # not appear in the list.
Packit Service 5bcba8
  echo 'int i;' > conftest.$ac_ext
Packit Service 5bcba8
  if AC_TRY_EVAL(ac_compile); then
Packit Service 5bcba8
    case `/usr/bin/file conftest.o` in
Packit Service 5bcba8
      *32-bit*)
Packit Service 5bcba8
	case $host in
Packit Service 5bcba8
	  x86_64-*kfreebsd*-gnu)
Packit Service 5bcba8
	    LD="${LD-ld} -m elf_i386_fbsd"
Packit Service 5bcba8
	    ;;
Packit Service 5bcba8
	  x86_64-*linux*)
Packit Service 5bcba8
	    case `/usr/bin/file conftest.o` in
Packit Service 5bcba8
	      *x86-64*)
Packit Service 5bcba8
		LD="${LD-ld} -m elf32_x86_64"
Packit Service 5bcba8
		;;
Packit Service 5bcba8
	      *)
Packit Service 5bcba8
		LD="${LD-ld} -m elf_i386"
Packit Service 5bcba8
		;;
Packit Service 5bcba8
	    esac
Packit Service 5bcba8
	    ;;
Packit Service d78141
	  powerpc64le-*linux*)
Packit Service 5bcba8
	    LD="${LD-ld} -m elf32lppclinux"
Packit Service 5bcba8
	    ;;
Packit Service d78141
	  powerpc64-*linux*)
Packit Service 5bcba8
	    LD="${LD-ld} -m elf32ppclinux"
Packit Service 5bcba8
	    ;;
Packit Service 5bcba8
	  s390x-*linux*)
Packit Service 5bcba8
	    LD="${LD-ld} -m elf_s390"
Packit Service 5bcba8
	    ;;
Packit Service 5bcba8
	  sparc64-*linux*)
Packit Service 5bcba8
	    LD="${LD-ld} -m elf32_sparc"
Packit Service 5bcba8
	    ;;
Packit Service 5bcba8
	esac
Packit Service 5bcba8
	;;
Packit Service 5bcba8
      *64-bit*)
Packit Service 5bcba8
	case $host in
Packit Service 5bcba8
	  x86_64-*kfreebsd*-gnu)
Packit Service 5bcba8
	    LD="${LD-ld} -m elf_x86_64_fbsd"
Packit Service 5bcba8
	    ;;
Packit Service 5bcba8
	  x86_64-*linux*)
Packit Service 5bcba8
	    LD="${LD-ld} -m elf_x86_64"
Packit Service 5bcba8
	    ;;
Packit Service d78141
	  powerpcle-*linux*)
Packit Service 5bcba8
	    LD="${LD-ld} -m elf64lppc"
Packit Service 5bcba8
	    ;;
Packit Service d78141
	  powerpc-*linux*)
Packit Service 5bcba8
	    LD="${LD-ld} -m elf64ppc"
Packit Service 5bcba8
	    ;;
Packit Service 5bcba8
	  s390*-*linux*|s390*-*tpf*)
Packit Service 5bcba8
	    LD="${LD-ld} -m elf64_s390"
Packit Service 5bcba8
	    ;;
Packit Service 5bcba8
	  sparc*-*linux*)
Packit Service 5bcba8
	    LD="${LD-ld} -m elf64_sparc"
Packit Service 5bcba8
	    ;;
Packit Service 5bcba8
	esac
Packit Service 5bcba8
	;;
Packit Service 5bcba8
    esac
Packit Service 5bcba8
  fi
Packit Service 5bcba8
  rm -rf conftest*
Packit Service 5bcba8
  ;;
Packit Service 5bcba8
Packit Service 5bcba8
*-*-sco3.2v5*)
Packit Service 5bcba8
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
Packit Service d78141
  SAVE_CFLAGS=$CFLAGS
Packit Service 5bcba8
  CFLAGS="$CFLAGS -belf"
Packit Service 5bcba8
  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
Packit Service 5bcba8
    [AC_LANG_PUSH(C)
Packit Service 5bcba8
     AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
Packit Service 5bcba8
     AC_LANG_POP])
Packit Service d78141
  if test yes != "$lt_cv_cc_needs_belf"; then
Packit Service 5bcba8
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
Packit Service d78141
    CFLAGS=$SAVE_CFLAGS
Packit Service 5bcba8
  fi
Packit Service 5bcba8
  ;;
Packit Service 5bcba8
*-*solaris*)
Packit Service d78141
  # Find out what ABI is being produced by ac_compile, and set linker
Packit Service d78141
  # options accordingly.
Packit Service 5bcba8
  echo 'int i;' > conftest.$ac_ext
Packit Service 5bcba8
  if AC_TRY_EVAL(ac_compile); then
Packit Service 5bcba8
    case `/usr/bin/file conftest.o` in
Packit Service 5bcba8
    *64-bit*)
Packit Service 5bcba8
      case $lt_cv_prog_gnu_ld in
Packit Service 5bcba8
      yes*)
Packit Service 5bcba8
        case $host in
Packit Service d78141
        i?86-*-solaris*|x86_64-*-solaris*)
Packit Service 5bcba8
          LD="${LD-ld} -m elf_x86_64"
Packit Service 5bcba8
          ;;
Packit Service 5bcba8
        sparc*-*-solaris*)
Packit Service 5bcba8
          LD="${LD-ld} -m elf64_sparc"
Packit Service 5bcba8
          ;;
Packit Service 5bcba8
        esac
Packit Service 5bcba8
        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
Packit Service 5bcba8
        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
Packit Service d78141
          LD=${LD-ld}_sol2
Packit Service 5bcba8
        fi
Packit Service 5bcba8
        ;;
Packit Service 5bcba8
      *)
Packit Service 5bcba8
	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
Packit Service 5bcba8
	  LD="${LD-ld} -64"
Packit Service 5bcba8
	fi
Packit Service 5bcba8
	;;
Packit Service 5bcba8
      esac
Packit Service 5bcba8
      ;;
Packit Service 5bcba8
    esac
Packit Service 5bcba8
  fi
Packit Service 5bcba8
  rm -rf conftest*
Packit Service 5bcba8
  ;;
Packit Service 5bcba8
esac
Packit Service 5bcba8
Packit Service d78141
need_locks=$enable_libtool_lock
Packit Service 5bcba8
])# _LT_ENABLE_LOCK
Packit Service 5bcba8
Packit Service 5bcba8
Packit Service 5bcba8
# _LT_PROG_AR
Packit Service 5bcba8
# -----------
Packit Service 5bcba8
m4_defun([_LT_PROG_AR],
Packit Service 5bcba8
[AC_CHECK_TOOLS(AR, [ar], false)
Packit Service 5bcba8
: ${AR=ar}
Packit Service 5bcba8
: ${AR_FLAGS=cru}
Packit Service 5bcba8
_LT_DECL([], [AR], [1], [The archiver])
Packit Service 5bcba8
_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
Packit Service 5bcba8
Packit Service 5bcba8
AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
Packit Service 5bcba8
  [lt_cv_ar_at_file=no
Packit Service 5bcba8
   AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
Packit Service 5bcba8
     [echo conftest.$ac_objext > conftest.lst
Packit Service 5bcba8
      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
Packit Service 5bcba8
      AC_TRY_EVAL([lt_ar_try])
Packit Service d78141
      if test 0 -eq "$ac_status"; then
Packit Service 5bcba8
	# Ensure the archiver fails upon bogus file names.
Packit Service 5bcba8
	rm -f conftest.$ac_objext libconftest.a
Packit Service 5bcba8
	AC_TRY_EVAL([lt_ar_try])
Packit Service d78141
	if test 0 -ne "$ac_status"; then
Packit Service 5bcba8
          lt_cv_ar_at_file=@
Packit Service 5bcba8
        fi
Packit Service 5bcba8
      fi
Packit Service 5bcba8
      rm -f conftest.* libconftest.a
Packit Service 5bcba8
     ])
Packit Service 5bcba8
  ])
Packit Service 5bcba8
Packit Service d78141
if test no = "$lt_cv_ar_at_file"; then
Packit Service 5bcba8
  archiver_list_spec=
Packit Service 5bcba8
else
Packit Service 5bcba8
  archiver_list_spec=$lt_cv_ar_at_file
Packit Service 5bcba8
fi
Packit Service 5bcba8
_LT_DECL([], [archiver_list_spec], [1],
Packit Service 5bcba8
  [How to feed a file listing to the archiver])
Packit Service 5bcba8
])# _LT_PROG_AR
Packit Service 5bcba8
Packit Service 5bcba8
Packit Service 5bcba8
# _LT_CMD_OLD_ARCHIVE
Packit Service 5bcba8
# -------------------
Packit Service 5bcba8
m4_defun([_LT_CMD_OLD_ARCHIVE],
Packit Service 5bcba8
[_LT_PROG_AR
Packit Service 5bcba8
Packit Service 5bcba8
AC_CHECK_TOOL(STRIP, strip, :)
Packit Service 5bcba8
test -z "$STRIP" && STRIP=:
Packit Service 5bcba8
_LT_DECL([], [STRIP], [1], [A symbol stripping program])
Packit Service 5bcba8
Packit Service 5bcba8
AC_CHECK_TOOL(RANLIB, ranlib, :)
Packit Service 5bcba8
test -z "$RANLIB" && RANLIB=:
Packit Service 5bcba8
_LT_DECL([], [RANLIB], [1],
Packit Service 5bcba8
    [Commands used to install an old-style archive])
Packit Service 5bcba8
Packit Service 5bcba8
# Determine commands to create old-style static archives.
Packit Service 5bcba8
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
Packit Service 5bcba8
old_postinstall_cmds='chmod 644 $oldlib'
Packit Service 5bcba8
old_postuninstall_cmds=
Packit Service 5bcba8
Packit Service 5bcba8
if test -n "$RANLIB"; then
Packit Service 5bcba8
  case $host_os in
Packit Service d78141
  bitrig* | openbsd*)
Packit Service 5bcba8
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
Packit Service 5bcba8
    ;;
Packit Service 5bcba8
  *)
Packit Service 5bcba8
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
Packit Service 5bcba8
    ;;
Packit Service 5bcba8
  esac
Packit Service 5bcba8
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
Packit Service 5bcba8
fi
Packit Service 5bcba8
Packit Service 5bcba8
case $host_os in
Packit Service 5bcba8
  darwin*)
Packit Service 5bcba8
    lock_old_archive_extraction=yes ;;
Packit Service 5bcba8
  *)
Packit Service 5bcba8
    lock_old_archive_extraction=no ;;
Packit Service 5bcba8
esac
Packit Service 5bcba8
_LT_DECL([], [old_postinstall_cmds], [2])
Packit Service 5bcba8
_LT_DECL([], [old_postuninstall_cmds], [2])
Packit Service 5bcba8
_LT_TAGDECL([], [old_archive_cmds], [2],
Packit Service 5bcba8
    [Commands used to build an old-style archive])
Packit Service 5bcba8
_LT_DECL([], [lock_old_archive_extraction], [0],
Packit Service 5bcba8
    [Whether to use a lock for old archive extraction])
Packit Service 5bcba8
])# _LT_CMD_OLD_ARCHIVE
Packit Service 5bcba8
Packit Service 5bcba8
Packit Service 5bcba8
# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
Packit Service 5bcba8
#		[OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
Packit Service 5bcba8
# ----------------------------------------------------------------
Packit Service 5bcba8
# Check whether the given compiler option works
Packit Service 5bcba8
AC_DEFUN([_LT_COMPILER_OPTION],
Packit Service 5bcba8
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
Packit Service 5bcba8
m4_require([_LT_DECL_SED])dnl
Packit Service 5bcba8
AC_CACHE_CHECK([$1], [$2],
Packit Service 5bcba8
  [$2=no
Packit Service 5bcba8
   m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
Packit Service 5bcba8
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Packit Service d78141
   lt_compiler_flag="$3"  ## exclude from sc_useless_quotes_in_assignment
Packit Service 5bcba8
   # Insert the option either (1) after the last *FLAGS variable, or
Packit Service 5bcba8
   # (2) before a word containing "conftest.", or (3) at the end.
Packit Service 5bcba8
   # Note that $ac_compile itself does not contain backslashes and begins
Packit Service 5bcba8
   # with a dollar sign (not a hyphen), so the echo should work correctly.
Packit Service 5bcba8
   # The option is referenced via a variable to avoid confusing sed.
Packit Service 5bcba8
   lt_compile=`echo "$ac_compile" | $SED \
Packit Service 5bcba8
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Packit Service 5bcba8
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
Packit Service 5bcba8
   -e 's:$: $lt_compiler_flag:'`
Packit Service 5bcba8
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
Packit Service 5bcba8
   (eval "$lt_compile" 2>conftest.err)
Packit Service 5bcba8
   ac_status=$?
Packit Service 5bcba8
   cat conftest.err >&AS_MESSAGE_LOG_FD
Packit Service 5bcba8
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
Packit Service 5bcba8
   if (exit $ac_status) && test -s "$ac_outfile"; then
Packit Service 5bcba8
     # The compiler can only warn and ignore the option if not recognized
Packit Service 5bcba8
     # So say no if there are warnings other than the usual output.
Packit Service 5bcba8
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Packit Service 5bcba8
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
Packit Service 5bcba8
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
Packit Service 5bcba8
       $2=yes
Packit Service 5bcba8
     fi
Packit Service 5bcba8
   fi
Packit Service 5bcba8
   $RM conftest*
Packit Service 5bcba8
])
Packit Service 5bcba8
Packit Service d78141
if test yes = "[$]$2"; then
Packit Service 5bcba8
    m4_if([$5], , :, [$5])
Packit Service 5bcba8
else
Packit Service 5bcba8
    m4_if([$6], , :, [$6])
Packit Service 5bcba8
fi
Packit Service 5bcba8
])# _LT_COMPILER_OPTION
Packit Service 5bcba8
Packit Service 5bcba8
# Old name:
Packit Service 5bcba8
AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
Packit Service 5bcba8
dnl aclocal-1.4 backwards compatibility:
Packit Service 5bcba8
dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
Packit Service 5bcba8
Packit Service 5bcba8
Packit Service 5bcba8
# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
Packit Service 5bcba8
#                  [ACTION-SUCCESS], [ACTION-FAILURE])
Packit Service 5bcba8
# ----------------------------------------------------
Packit Service 5bcba8
# Check whether the given linker option works
Packit Service 5bcba8
AC_DEFUN([_LT_LINKER_OPTION],
Packit Service 5bcba8
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
Packit Service 5bcba8
m4_require([_LT_DECL_SED])dnl
Packit Service 5bcba8
AC_CACHE_CHECK([$1], [$2],
Packit Service 5bcba8
  [$2=no
Packit Service d78141
   save_LDFLAGS=$LDFLAGS
Packit Service 5bcba8
   LDFLAGS="$LDFLAGS $3"
Packit Service 5bcba8
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
Packit Service 5bcba8
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
Packit Service 5bcba8
     # The linker can only warn and ignore the option if not recognized
Packit Service 5bcba8
     # So say no if there are warnings
Packit Service 5bcba8
     if test -s conftest.err; then
Packit Service 5bcba8
       # Append any errors to the config.log.
Packit Service 5bcba8
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
Packit Service 5bcba8
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
Packit Service 5bcba8
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
Packit Service 5bcba8
       if diff conftest.exp conftest.er2 >/dev/null; then
Packit Service 5bcba8
         $2=yes
Packit Service 5bcba8
       fi
Packit Service 5bcba8
     else
Packit Service 5bcba8
       $2=yes
Packit Service 5bcba8
     fi
Packit Service 5bcba8
   fi
Packit Service 5bcba8
   $RM -r conftest*
Packit Service d78141
   LDFLAGS=$save_LDFLAGS
Packit Service 5bcba8
])
Packit Service 5bcba8
Packit Service d78141
if test yes = "[$]$2"; then
Packit Service 5bcba8
    m4_if([$4], , :, [$4])
Packit Service 5bcba8
else
Packit Service 5bcba8
    m4_if([$5], , :, [$5])
Packit Service 5bcba8
fi
Packit Service 5bcba8
])# _LT_LINKER_OPTION
Packit Service 5bcba8
Packit Service 5bcba8
# Old name:
Packit Service 5bcba8
AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
Packit Service 5bcba8
dnl aclocal-1.4 backwards compatibility:
Packit Service 5bcba8
dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
Packit Service 5bcba8
Packit Service 5bcba8
Packit Service 5bcba8
# LT_CMD_MAX_LEN
Packit Service 5bcba8
#---------------
Packit Service 5bcba8
AC_DEFUN([LT_CMD_MAX_LEN],
Packit Service 5bcba8
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
Packit Service 5bcba8
# find the maximum length of command line arguments
Packit Service 5bcba8
AC_MSG_CHECKING([the maximum length of command line arguments])
Packit Service 5bcba8
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
Packit Service 5bcba8
  i=0
Packit Service d78141
  teststring=ABCD
Packit Service 5bcba8
Packit Service 5bcba8
  case $build_os in
Packit Service 5bcba8
  msdosdjgpp*)
Packit Service 5bcba8
    # On DJGPP, this test can blow up pretty badly due to problems in libc
Packit Service 5bcba8
    # (any single argument exceeding 2000 bytes causes a buffer overrun
Packit Service 5bcba8
    # during glob expansion).  Even if it were fixed, the result of this
Packit Service 5bcba8
    # check would be larger than it should be.
Packit Service 5bcba8
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
Packit Service 5bcba8
    ;;
Packit Service 5bcba8
Packit Service 5bcba8
  gnu*)
Packit Service 5bcba8
    # Under GNU Hurd, this test is not required because there is
Packit Service 5bcba8
    # no limit to the length of command line arguments.
Packit Service 5bcba8
    # Libtool will interpret -1 as no limit whatsoever
Packit Service 5bcba8
    lt_cv_sys_max_cmd_len=-1;
Packit Service 5bcba8
    ;;
Packit Service 5bcba8
Packit Service 5bcba8
  cygwin* | mingw* | cegcc*)
Packit Service 5bcba8
    # On Win9x/ME, this test blows up -- it succeeds, but takes
Packit Service 5bcba8
    # about 5 minutes as the teststring grows exponentially.
Packit Service 5bcba8
    # Worse, since 9x/ME are not pre-emptively multitasking,
Packit Service 5bcba8
    # you end up with a "frozen" computer, even though with patience
Packit Service 5bcba8
    # the test eventually succeeds (with a max line length of 256k).
Packit Service 5bcba8
    # Instead, let's just punt: use the minimum linelength reported by
Packit Service 5bcba8
    # all of the supported platforms: 8192 (on NT/2K/XP).
Packit Service 5bcba8
    lt_cv_sys_max_cmd_len=8192;
Packit Service 5bcba8
    ;;
Packit Service 5bcba8
Packit Service 5bcba8
  mint*)
Packit Service 5bcba8
    # On MiNT this can take a long time and run out of memory.
Packit Service 5bcba8
    lt_cv_sys_max_cmd_len=8192;
Packit Service 5bcba8
    ;;
Packit Service 5bcba8
Packit Service 5bcba8
  amigaos*)
Packit Service 5bcba8
    # On AmigaOS with pdksh, this test takes hours, literally.
Packit Service 5bcba8
    # So we just punt and use a minimum line length of 8192.
Packit Service 5bcba8
    lt_cv_sys_max_cmd_len=8192;
Packit Service 5bcba8
    ;;
Packit Service 5bcba8
Packit Service d78141
  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
Packit Service 5bcba8
    # This has been around since 386BSD, at least.  Likely further.
Packit Service 5bcba8
    if test -x /sbin/sysctl; then
Packit Service 5bcba8
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
Packit Service 5bcba8
    elif test -x /usr/sbin/sysctl; then
Packit Service 5bcba8
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
Packit Service 5bcba8
    else
Packit Service 5bcba8
      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
Packit Service 5bcba8
    fi
Packit Service 5bcba8
    # And add a safety zone
Packit Service 5bcba8
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Packit Service 5bcba8
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Packit Service 5bcba8
    ;;
Packit Service 5bcba8
Packit Service 5bcba8
  interix*)
Packit Service 5bcba8
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
Packit Service 5bcba8
    lt_cv_sys_max_cmd_len=196608
Packit Service 5bcba8
    ;;
Packit Service 5bcba8
Packit Service 5bcba8
  os2*)
Packit Service 5bcba8
    # The test takes a long time on OS/2.
Packit Service 5bcba8
    lt_cv_sys_max_cmd_len=8192
Packit Service 5bcba8
    ;;
Packit Service 5bcba8
Packit Service 5bcba8
  osf*)
Packit Service 5bcba8
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
Packit Service 5bcba8
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
Packit Service 5bcba8
    # nice to cause kernel panics so lets avoid the loop below.
Packit Service 5bcba8
    # First set a reasonable default.
Packit Service 5bcba8
    lt_cv_sys_max_cmd_len=16384
Packit Service 5bcba8
    #
Packit Service 5bcba8
    if test -x /sbin/sysconfig; then
Packit Service 5bcba8
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
Packit Service 5bcba8
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
Packit Service 5bcba8
      esac
Packit Service 5bcba8
    fi
Packit Service 5bcba8
    ;;
Packit Service 5bcba8
  sco3.2v5*)
Packit Service 5bcba8
    lt_cv_sys_max_cmd_len=102400
Packit Service 5bcba8
    ;;
Packit Service 5bcba8
  sysv5* | sco5v6* | sysv4.2uw2*)
Packit Service 5bcba8
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
Packit Service 5bcba8
    if test -n "$kargmax"; then
Packit Service 5bcba8
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[	 ]]//'`
Packit Service 5bcba8
    else
Packit Service 5bcba8
      lt_cv_sys_max_cmd_len=32768
Packit Service 5bcba8
    fi
Packit Service 5bcba8
    ;;
Packit Service 5bcba8
  *)
Packit Service 5bcba8
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
Packit Service 5bcba8
    if test -n "$lt_cv_sys_max_cmd_len" && \
Packit Service d78141
       test undefined != "$lt_cv_sys_max_cmd_len"; then
Packit Service 5bcba8
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Packit Service 5bcba8
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Packit Service 5bcba8
    else
Packit Service 5bcba8
      # Make teststring a little bigger before we do anything with it.
Packit Service 5bcba8
      # a 1K string should be a reasonable start.
Packit Service d78141
      for i in 1 2 3 4 5 6 7 8; do
Packit Service 5bcba8
        teststring=$teststring$teststring
Packit Service 5bcba8
      done
Packit Service 5bcba8
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
Packit Service 5bcba8
      # If test is not a shell built-in, we'll probably end up computing a
Packit Service 5bcba8
      # maximum length that is only half of the actual maximum length, but
Packit Service 5bcba8
      # we can't tell.
Packit Service d78141
      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
Packit Service 5bcba8
	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
Packit Service d78141
	      test 17 != "$i" # 1/2 MB should be enough
Packit Service 5bcba8
      do
Packit Service 5bcba8
        i=`expr $i + 1`
Packit Service 5bcba8
        teststring=$teststring$teststring
Packit Service 5bcba8
      done
Packit Service 5bcba8
      # Only check the string length outside the loop.
Packit Service 5bcba8
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
Packit Service 5bcba8
      teststring=
Packit Service 5bcba8
      # Add a significant safety factor because C++ compilers can tack on
Packit Service 5bcba8
      # massive amounts of additional arguments before passing them to the
Packit Service 5bcba8
      # linker.  It appears as though 1/2 is a usable value.
Packit Service 5bcba8
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
Packit Service 5bcba8
    fi
Packit Service 5bcba8
    ;;
Packit Service 5bcba8
  esac
Packit Service 5bcba8
])
Packit Service d78141
if test -n "$lt_cv_sys_max_cmd_len"; then
Packit Service 5bcba8
  AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
Packit Service 5bcba8
else
Packit Service 5bcba8
  AC_MSG_RESULT(none)
Packit Service 5bcba8
fi
Packit Service 5bcba8
max_cmd_len=$lt_cv_sys_max_cmd_len
Packit Service 5bcba8
_LT_DECL([], [max_cmd_len], [0],
Packit Service 5bcba8
    [What is the maximum length of a command?])
Packit Service 5bcba8
])# LT_CMD_MAX_LEN
Packit Service 5bcba8
Packit Service 5bcba8
# Old name:
Packit Service 5bcba8
AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
Packit Service 5bcba8
dnl aclocal-1.4 backwards compatibility:
Packit Service 5bcba8
dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
Packit Service 5bcba8
Packit Service 5bcba8
Packit Service 5bcba8
# _LT_HEADER_DLFCN
Packit Service 5bcba8
# ----------------
Packit Service 5bcba8
m4_defun([_LT_HEADER_DLFCN],
Packit Service 5bcba8
[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
Packit Service 5bcba8
])# _LT_HEADER_DLFCN
Packit Service 5bcba8
Packit Service 5bcba8
Packit Service 5bcba8
# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
Packit Service 5bcba8
#                      ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
Packit Service 5bcba8
# ----------------------------------------------------------------
Packit Service 5bcba8
m4_defun([_LT_TRY_DLOPEN_SELF],
Packit Service 5bcba8
[m4_require([_LT_HEADER_DLFCN])dnl
Packit Service d78141
if test yes = "$cross_compiling"; then :
Packit Service 5bcba8
  [$4]
Packit Service 5bcba8
else
Packit Service 5bcba8
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
Packit Service 5bcba8
  lt_status=$lt_dlunknown
Packit Service 5bcba8
  cat > conftest.$ac_ext <<_LT_EOF
Packit Service 5bcba8
[#line $LINENO "configure"
Packit Service 5bcba8
#include "confdefs.h"
Packit Service 5bcba8
Packit Service 5bcba8
#if HAVE_DLFCN_H
Packit Service 5bcba8
#include <dlfcn.h>
Packit Service 5bcba8
#endif
Packit Service 5bcba8
Packit Service 5bcba8
#include <stdio.h>
Packit Service 5bcba8
Packit Service 5bcba8
#ifdef RTLD_GLOBAL
Packit Service 5bcba8
#  define LT_DLGLOBAL		RTLD_GLOBAL
Packit Service 5bcba8
#else
Packit Service 5bcba8
#  ifdef DL_GLOBAL
Packit Service 5bcba8
#    define LT_DLGLOBAL		DL_GLOBAL
Packit Service 5bcba8
#  else
Packit Service 5bcba8
#    define LT_DLGLOBAL		0
Packit Service 5bcba8
#  endif
Packit Service 5bcba8
#endif
Packit Service 5bcba8
Packit Service 5bcba8
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
Packit Service 5bcba8
   find out it does not work in some platform. */
Packit Service 5bcba8
#ifndef LT_DLLAZY_OR_NOW
Packit Service 5bcba8
#  ifdef RTLD_LAZY
Packit Service 5bcba8
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
Packit Service 5bcba8
#  else
Packit Service 5bcba8
#    ifdef DL_LAZY
Packit Service 5bcba8
#      define LT_DLLAZY_OR_NOW		DL_LAZY
Packit Service 5bcba8
#    else
Packit Service 5bcba8
#      ifdef RTLD_NOW
Packit Service 5bcba8
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
Packit Service 5bcba8
#      else
Packit Service 5bcba8
#        ifdef DL_NOW
Packit Service 5bcba8
#          define LT_DLLAZY_OR_NOW	DL_NOW
Packit Service 5bcba8
#        else
Packit Service 5bcba8
#          define LT_DLLAZY_OR_NOW	0
Packit Service 5bcba8
#        endif
Packit Service 5bcba8
#      endif
Packit Service 5bcba8
#    endif
Packit Service 5bcba8
#  endif
Packit Service 5bcba8
#endif
Packit Service 5bcba8
Packit Service d78141
/* When -fvisibility=hidden is used, assume the code has been annotated
Packit Service 5bcba8
   correspondingly for the symbols needed.  */
Packit Service d78141
#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
Packit Service 5bcba8
int fnord () __attribute__((visibility("default")));
Packit Service 5bcba8
#endif
Packit Service 5bcba8
Packit Service 5bcba8
int fnord () { return 42; }
Packit Service 5bcba8
int main ()
Packit Service 5bcba8
{
Packit Service 5bcba8
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
Packit Service 5bcba8
  int status = $lt_dlunknown;
Packit Service 5bcba8
Packit Service 5bcba8
  if (self)
Packit Service 5bcba8
    {
Packit Service 5bcba8
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
Packit Service 5bcba8
      else
Packit Service 5bcba8
        {
Packit Service 5bcba8
	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
Packit Service 5bcba8
          else puts (dlerror ());
Packit Service 5bcba8
	}
Packit Service 5bcba8
      /* dlclose (self); */
Packit Service 5bcba8
    }
Packit Service 5bcba8
  else
Packit Service 5bcba8
    puts (dlerror ());
Packit Service 5bcba8
Packit Service 5bcba8
  return status;
Packit Service 5bcba8
}]
Packit Service 5bcba8
_LT_EOF
Packit Service d78141
  if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then
Packit Service 5bcba8
    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
Packit Service 5bcba8
    lt_status=$?
Packit Service 5bcba8
    case x$lt_status in
Packit Service 5bcba8
      x$lt_dlno_uscore) $1 ;;
Packit Service 5bcba8
      x$lt_dlneed_uscore) $2 ;;
Packit Service 5bcba8
      x$lt_dlunknown|x*) $3 ;;
Packit Service 5bcba8
    esac
Packit Service 5bcba8
  else :
Packit Service 5bcba8
    # compilation failed
Packit Service 5bcba8
    $3
Packit Service 5bcba8
  fi
Packit Service 5bcba8
fi
Packit Service 5bcba8
rm -fr conftest*
Packit Service 5bcba8
])# _LT_TRY_DLOPEN_SELF
Packit Service 5bcba8
Packit Service 5bcba8
Packit Service 5bcba8
# LT_SYS_DLOPEN_SELF
Packit Service 5bcba8
# ------------------
Packit Service 5bcba8
AC_DEFUN([LT_SYS_DLOPEN_SELF],
Packit Service 5bcba8
[m4_require([_LT_HEADER_DLFCN])dnl
Packit Service d78141
if test yes != "$enable_dlopen"; then
Packit Service 5bcba8
  enable_dlopen=unknown
Packit Service 5bcba8
  enable_dlopen_self=unknown
Packit Service 5bcba8
  enable_dlopen_self_static=unknown
Packit Service 5bcba8
else
Packit Service 5bcba8
  lt_cv_dlopen=no
Packit Service 5bcba8
  lt_cv_dlopen_libs=
Packit Service 5bcba8
Packit Service 5bcba8
  case $host_os in
Packit Service 5bcba8
  beos*)
Packit Service d78141
    lt_cv_dlopen=load_add_on
Packit Service 5bcba8
    lt_cv_dlopen_libs=
Packit Service 5bcba8
    lt_cv_dlopen_self=yes
Packit Service 5bcba8
    ;;
Packit Service 5bcba8
Packit Service 5bcba8
  mingw* | pw32* | cegcc*)
Packit Service d78141
    lt_cv_dlopen=LoadLibrary
Packit Service 5bcba8
    lt_cv_dlopen_libs=
Packit Service 5bcba8
    ;;
Packit Service 5bcba8
Packit Service 5bcba8
  cygwin*)
Packit Service d78141
    lt_cv_dlopen=dlopen
Packit Service 5bcba8
    lt_cv_dlopen_libs=
Packit Service 5bcba8
    ;;
Packit Service 5bcba8
Packit Service 5bcba8
  darwin*)
Packit Service d78141
    # if libdl is installed we need to link against it
Packit Service 5bcba8
    AC_CHECK_LIB([dl], [dlopen],
Packit Service d78141
		[lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[
Packit Service d78141
    lt_cv_dlopen=dyld
Packit Service 5bcba8
    lt_cv_dlopen_libs=
Packit Service 5bcba8
    lt_cv_dlopen_self=yes
Packit Service 5bcba8
    ])
Packit Service 5bcba8
    ;;
Packit Service 5bcba8
Packit Service d78141
  tpf*)
Packit Service d78141
    # Don't try to run any link tests for TPF.  We know it's impossible
Packit Service d78141
    # because TPF is a cross-compiler, and we know how we open DSOs.
Packit Service d78141
    lt_cv_dlopen=dlopen
Packit Service d78141
    lt_cv_dlopen_libs=
Packit Service d78141
    lt_cv_dlopen_self=no
Packit Service d78141
    ;;
Packit Service d78141
Packit Service 5bcba8
  *)
Packit Service 5bcba8
    AC_CHECK_FUNC([shl_load],
Packit Service d78141
	  [lt_cv_dlopen=shl_load],
Packit Service 5bcba8
      [AC_CHECK_LIB([dld], [shl_load],
Packit Service d78141
	    [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld],
Packit Service 5bcba8
	[AC_CHECK_FUNC([dlopen],
Packit Service d78141
	      [lt_cv_dlopen=dlopen],
Packit Service 5bcba8
	  [AC_CHECK_LIB([dl], [dlopen],
Packit Service d78141
		[lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],
Packit Service 5bcba8
	    [AC_CHECK_LIB([svld], [dlopen],
Packit Service d78141
		  [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld],
Packit Service 5bcba8
	      [AC_CHECK_LIB([dld], [dld_link],
Packit Service d78141
		    [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld])
Packit Service 5bcba8
	      ])
Packit Service 5bcba8
	    ])
Packit Service 5bcba8
	  ])
Packit Service 5bcba8
	])
Packit Service 5bcba8
      ])
Packit Service 5bcba8
    ;;
Packit Service 5bcba8
  esac
Packit Service 5bcba8
Packit Service d78141
  if test no = "$lt_cv_dlopen"; then
Packit Service 5bcba8
    enable_dlopen=no
Packit Service d78141
  else
Packit Service d78141
    enable_dlopen=yes
Packit Service 5bcba8
  fi
Packit Service 5bcba8
Packit Service 5bcba8
  case $lt_cv_dlopen in
Packit Service 5bcba8
  dlopen)
Packit Service d78141
    save_CPPFLAGS=$CPPFLAGS
Packit Service d78141
    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
Packit Service 5bcba8
Packit Service d78141
    save_LDFLAGS=$LDFLAGS
Packit Service 5bcba8
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
Packit Service 5bcba8
Packit Service d78141
    save_LIBS=$LIBS
Packit Service 5bcba8
    LIBS="$lt_cv_dlopen_libs $LIBS"
Packit Service 5bcba8
Packit Service 5bcba8
    AC_CACHE_CHECK([whether a program can dlopen itself],
Packit Service 5bcba8
	  lt_cv_dlopen_self, [dnl
Packit Service 5bcba8
	  _LT_TRY_DLOPEN_SELF(
Packit Service 5bcba8
	    lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
Packit Service 5bcba8
	    lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
Packit Service 5bcba8
    ])
Packit Service 5bcba8
Packit Service d78141
    if test yes = "$lt_cv_dlopen_self"; then
Packit Service 5bcba8
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
Packit Service 5bcba8
      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
Packit Service 5bcba8
	  lt_cv_dlopen_self_static, [dnl
Packit Service 5bcba8
	  _LT_TRY_DLOPEN_SELF(
Packit Service 5bcba8
	    lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
Packit Service 5bcba8
	    lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
Packit Service 5bcba8
      ])
Packit Service 5bcba8
    fi
Packit Service 5bcba8
Packit Service d78141
    CPPFLAGS=$save_CPPFLAGS
Packit Service d78141
    LDFLAGS=$save_LDFLAGS
Packit Service d78141
    LIBS=$save_LIBS
Packit Service 5bcba8
    ;;
Packit Service 5bcba8
  esac
Packit Service 5bcba8
Packit Service 5bcba8
  case $lt_cv_dlopen_self in
Packit Service 5bcba8
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
Packit Service 5bcba8
  *) enable_dlopen_self=unknown ;;
Packit Service 5bcba8
  esac
Packit Service 5bcba8
Packit Service 5bcba8
  case $lt_cv_dlopen_self_static in
Packit Service 5bcba8
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
Packit Service 5bcba8
  *) enable_dlopen_self_static=unknown ;;
Packit Service 5bcba8
  esac
Packit Service 5bcba8
fi
Packit Service 5bcba8
_LT_DECL([dlopen_support], [enable_dlopen], [0],
Packit Service 5bcba8
	 [Whether dlopen is supported])
Packit Service 5bcba8
_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
Packit Service 5bcba8
	 [Whether dlopen of programs is supported])
Packit Service 5bcba8
_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
Packit Service 5bcba8
	 [Whether dlopen of statically linked programs is supported])
Packit Service 5bcba8
])# LT_SYS_DLOPEN_SELF
Packit Service 5bcba8
Packit Service 5bcba8
# Old name:
Packit Service 5bcba8
AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
Packit Service 5bcba8
dnl aclocal-1.4 backwards compatibility:
Packit Service 5bcba8
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
Packit Service 5bcba8
Packit Service 5bcba8
Packit Service 5bcba8
# _LT_COMPILER_C_O([TAGNAME])
Packit Service 5bcba8
# ---------------------------
Packit Service 5bcba8
# Check to see if options -c and -o are simultaneously supported by compiler.
Packit Service 5bcba8
# This macro does not hard code the compiler like AC_PROG_CC_C_O.
Packit Service 5bcba8
m4_defun([_LT_COMPILER_C_O],
Packit Service 5bcba8
[m4_require([_LT_DECL_SED])dnl
Packit Service 5bcba8
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
Packit Service 5bcba8
m4_require([_LT_TAG_COMPILER])dnl
Packit Service 5bcba8
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
Packit Service 5bcba8
  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
Packit Service 5bcba8
  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
Packit Service 5bcba8
   $RM -r conftest 2>/dev/null
Packit Service 5bcba8
   mkdir conftest
Packit Service 5bcba8
   cd conftest
Packit Service 5bcba8
   mkdir out
Packit Service 5bcba8
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Packit Service 5bcba8
Packit Service 5bcba8
   lt_compiler_flag="-o out/conftest2.$ac_objext"
Packit Service 5bcba8
   # Insert the option either (1) after the last *FLAGS variable, or
Packit Service 5bcba8
   # (2) before a word containing "conftest.", or (3) at the end.
Packit Service 5bcba8
   # Note that $ac_compile itself does not contain backslashes and begins
Packit Service 5bcba8
   # with a dollar sign (not a hyphen), so the echo should work correctly.
Packit Service 5bcba8
   lt_compile=`echo "$ac_compile" | $SED \
Packit Service 5bcba8
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Packit Service 5bcba8
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
Packit Service 5bcba8
   -e 's:$: $lt_compiler_flag:'`
Packit Service 5bcba8
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
Packit Service 5bcba8
   (eval "$lt_compile" 2>out/conftest.err)
Packit Service 5bcba8
   ac_status=$?
Packit Service 5bcba8
   cat out/conftest.err >&AS_MESSAGE_LOG_FD
Packit Service 5bcba8
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
Packit Service 5bcba8
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
Packit Service 5bcba8
   then
Packit Service 5bcba8
     # The compiler can only warn and ignore the option if not recognized
Packit Service 5bcba8
     # So say no if there are warnings
Packit Service 5bcba8
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Packit Service 5bcba8
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
Packit Service 5bcba8
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
Packit Service 5bcba8
       _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
Packit Service 5bcba8
     fi
Packit Service 5bcba8
   fi
Packit Service 5bcba8
   chmod u+w . 2>&AS_MESSAGE_LOG_FD
Packit Service 5bcba8
   $RM conftest*
Packit Service 5bcba8
   # SGI C++ compiler will create directory out/ii_files/ for
Packit Service 5bcba8
   # template instantiation
Packit Service 5bcba8
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
Packit Service 5bcba8
   $RM out/* && rmdir out
Packit Service 5bcba8
   cd ..
Packit Service 5bcba8
   $RM -r conftest
Packit Service 5bcba8
   $RM conftest*
Packit Service 5bcba8
])
Packit Service 5bcba8
_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
Packit Service 5bcba8
	[Does compiler simultaneously support -c and -o options?])
Packit Service 5bcba8
])# _LT_COMPILER_C_O
Packit Service 5bcba8
Packit Service 5bcba8
Packit Service 5bcba8
# _LT_COMPILER_FILE_LOCKS([TAGNAME])
Packit Service 5bcba8
# ----------------------------------
Packit Service 5bcba8
# Check to see if we can do hard links to lock some files if needed
Packit Service 5bcba8
m4_defun([_LT_COMPILER_FILE_LOCKS],
Packit Service 5bcba8
[m4_require([_LT_ENABLE_LOCK])dnl
Packit Service 5bcba8
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
Packit Service 5bcba8
_LT_COMPILER_C_O([$1])
Packit Service 5bcba8
Packit Service d78141
hard_links=nottested
Packit Service d78141
if test no = "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" && test no != "$need_locks"; then
Packit Service 5bcba8
  # do not overwrite the value of need_locks provided by the user
Packit Service 5bcba8
  AC_MSG_CHECKING([if we can lock with hard links])
Packit Service 5bcba8
  hard_links=yes
Packit Service 5bcba8
  $RM conftest*
Packit Service 5bcba8
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
Packit Service 5bcba8
  touch conftest.a
Packit Service 5bcba8
  ln conftest.a conftest.b 2>&5 || hard_links=no
Packit Service 5bcba8
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
Packit Service 5bcba8
  AC_MSG_RESULT([$hard_links])
Packit Service d78141
  if test no = "$hard_links"; then
Packit Service d78141
    AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe])
Packit Service 5bcba8
    need_locks=warn
Packit Service 5bcba8
  fi
Packit Service 5bcba8
else
Packit Service 5bcba8
  need_locks=no
Packit Service 5bcba8
fi
Packit Service 5bcba8
_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
Packit Service 5bcba8
])# _LT_COMPILER_FILE_LOCKS
Packit Service 5bcba8
Packit Service 5bcba8
Packit Service 5bcba8
# _LT_CHECK_OBJDIR
Packit Service 5bcba8
# ----------------
Packit Service 5bcba8
m4_defun([_LT_CHECK_OBJDIR],
Packit Service 5bcba8
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
Packit Service 5bcba8
[rm -f .libs 2>/dev/null
Packit Service 5bcba8
mkdir .libs 2>/dev/null
Packit Service 5bcba8
if test -d .libs; then
Packit Service 5bcba8
  lt_cv_objdir=.libs
Packit Service 5bcba8
else
Packit Service 5bcba8
  # MS-DOS does not allow filenames that begin with a dot.
Packit Service 5bcba8
  lt_cv_objdir=_libs
Packit Service 5bcba8
fi
Packit Service 5bcba8
rmdir .libs 2>/dev/null])
Packit Service 5bcba8
objdir=$lt_cv_objdir
Packit Service 5bcba8
_LT_DECL([], [objdir], [0],
Packit Service 5bcba8
         [The name of the directory that contains temporary libtool files])dnl
Packit Service 5bcba8
m4_pattern_allow([LT_OBJDIR])dnl
Packit Service d78141
AC_DEFINE_UNQUOTED([LT_OBJDIR], "$lt_cv_objdir/",
Packit Service d78141
  [Define to the sub-directory where libtool stores uninstalled libraries.])
Packit Service 5bcba8
])# _LT_CHECK_OBJDIR
Packit Service 5bcba8
Packit Service 5bcba8
Packit Service 5bcba8
# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
Packit Service 5bcba8
# --------------------------------------
Packit Service 5bcba8
# Check hardcoding attributes.
Packit Service 5bcba8
m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
Packit Service 5bcba8
[AC_MSG_CHECKING([how to hardcode library paths into programs])
Packit Service 5bcba8
_LT_TAGVAR(hardcode_action, $1)=
Packit Service 5bcba8
if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
Packit Service 5bcba8
   test -n "$_LT_TAGVAR(runpath_var, $1)" ||
Packit Service d78141
   test yes = "$_LT_TAGVAR(hardcode_automatic, $1)"; then
Packit Service 5bcba8
Packit Service 5bcba8
  # We can hardcode non-existent directories.
Packit Service d78141
  if test no != "$_LT_TAGVAR(hardcode_direct, $1)" &&
Packit Service 5bcba8
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
Packit Service 5bcba8
     # have to relink, otherwise we might link with an installed library
Packit Service 5bcba8
     # when we should be linking with a yet-to-be-installed one
Packit Service d78141
     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" &&
Packit Service d78141
     test no != "$_LT_TAGVAR(hardcode_minus_L, $1)"; then
Packit Service 5bcba8
    # Linking always hardcodes the temporary library directory.
Packit Service 5bcba8
    _LT_TAGVAR(hardcode_action, $1)=relink
Packit Service 5bcba8
  else
Packit Service 5bcba8
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
Packit Service 5bcba8
    _LT_TAGVAR(hardcode_action, $1)=immediate
Packit Service 5bcba8
  fi
Packit Service 5bcba8
else
Packit Service 5bcba8
  # We cannot hardcode anything, or else we can only hardcode existing
Packit Service 5bcba8
  # directories.
Packit Service 5bcba8
  _LT_TAGVAR(hardcode_action, $1)=unsupported
Packit Service 5bcba8
fi
Packit Service 5bcba8
AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
Packit Service 5bcba8
Packit Service d78141
if test relink = "$_LT_TAGVAR(hardcode_action, $1)" ||
Packit Service d78141
   test yes = "$_LT_TAGVAR(inherit_rpath, $1)"; then
Packit Service 5bcba8
  # Fast installation is not supported
Packit Service 5bcba8
  enable_fast_install=no
Packit Service d78141
elif test yes = "$shlibpath_overrides_runpath" ||
Packit Service d78141
     test no = "$enable_shared"; then
Packit Service 5bcba8
  # Fast installation is not necessary
Packit Service 5bcba8
  enable_fast_install=needless
Packit Service 5bcba8
fi
Packit Service 5bcba8
_LT_TAGDECL([], [hardcode_action], [0],
Packit Service 5bcba8
    [How to hardcode a shared library path into an executable])
Packit Service 5bcba8
])# _LT_LINKER_HARDCODE_LIBPATH
Packit Service 5bcba8
Packit Service 5bcba8
Packit Service 5bcba8
# _LT_CMD_STRIPLIB
Packit Service 5bcba8
# ----------------
Packit Service 5bcba8
m4_defun([_LT_CMD_STRIPLIB],
Packit Service 5bcba8
[m4_require([_LT_DECL_EGREP])
Packit Service 5bcba8
striplib=
Packit Service 5bcba8
old_striplib=
Packit Service 5bcba8
AC_MSG_CHECKING([whether stripping libraries is possible])
Packit Service 5bcba8
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
Packit Service 5bcba8
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
Packit Service 5bcba8
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Packit Service 5bcba8
  AC_MSG_RESULT([yes])
Packit Service 5bcba8
else
Packit Service 5bcba8
# FIXME - insert some real tests, host_os isn't really good enough
Packit Service 5bcba8
  case $host_os in
Packit Service 5bcba8
  darwin*)
Packit Service d78141
    if test -n "$STRIP"; then
Packit Service 5bcba8
      striplib="$STRIP -x"
Packit Service 5bcba8
      old_striplib="$STRIP -S"
Packit Service 5bcba8
      AC_MSG_RESULT([yes])
Packit Service 5bcba8
    else
Packit Service 5bcba8
      AC_MSG_RESULT([no])
Packit Service 5bcba8
    fi
Packit Service 5bcba8
    ;;
Packit Service 5bcba8
  *)
Packit Service 5bcba8
    AC_MSG_RESULT([no])
Packit Service 5bcba8
    ;;
Packit Service 5bcba8
  esac
Packit Service 5bcba8
fi
Packit Service 5bcba8
_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
Packit Service 5bcba8
_LT_DECL([], [striplib], [1])
Packit Service 5bcba8
])# _LT_CMD_STRIPLIB
Packit Service 5bcba8
Packit Service 5bcba8
Packit Service d78141
# _LT_PREPARE_MUNGE_PATH_LIST
Packit Service d78141
# ---------------------------
Packit Service d78141
# Make sure func_munge_path_list() is defined correctly.
Packit Service d78141
m4_defun([_LT_PREPARE_MUNGE_PATH_LIST],
Packit Service d78141
[[# func_munge_path_list VARIABLE PATH
Packit Service d78141
# -----------------------------------
Packit Service d78141
# VARIABLE is name of variable containing _space_ separated list of
Packit Service d78141
# directories to be munged by the contents of PATH, which is string
Packit Service d78141
# having a format:
Packit Service d78141
# "DIR[:DIR]:"
Packit Service d78141
#       string "DIR[ DIR]" will be prepended to VARIABLE
Packit Service d78141
# ":DIR[:DIR]"
Packit Service d78141
#       string "DIR[ DIR]" will be appended to VARIABLE
Packit Service d78141
# "DIRP[:DIRP]::[DIRA:]DIRA"
Packit Service d78141
#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
Packit Service d78141
#       "DIRA[ DIRA]" will be appended to VARIABLE
Packit Service d78141
# "DIR[:DIR]"
Packit Service d78141
#       VARIABLE will be replaced by "DIR[ DIR]"
Packit Service d78141
func_munge_path_list ()
Packit Service d78141
{
Packit Service d78141
    case x@S|@2 in
Packit Service d78141
    x)
Packit Service d78141
        ;;
Packit Service d78141
    *:)
Packit Service d78141
        eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\"
Packit Service d78141
        ;;
Packit Service d78141
    x:*)
Packit Service d78141
        eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\"
Packit Service d78141
        ;;
Packit Service d78141
    *::*)
Packit Service d78141
        eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
Packit Service d78141
        eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\"
Packit Service d78141
        ;;
Packit Service d78141
    *)
Packit Service d78141
        eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\"
Packit Service d78141
        ;;
Packit Service d78141
    esac
Packit Service d78141
}
Packit Service d78141
]])# _LT_PREPARE_PATH_LIST
Packit Service d78141
Packit Service d78141
Packit Service 5bcba8
# _LT_SYS_DYNAMIC_LINKER([TAG])
Packit Service 5bcba8
# -----------------------------
Packit Service 5bcba8
# PORTME Fill in your ld.so characteristics
Packit Service 5bcba8
m4_defun([_LT_SYS_DYNAMIC_LINKER],
Packit Service 5bcba8
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
Packit Service 5bcba8
m4_require([_LT_DECL_EGREP])dnl
Packit Service 5bcba8
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
Packit Service 5bcba8
m4_require([_LT_DECL_OBJDUMP])dnl
Packit Service 5bcba8
m4_require([_LT_DECL_SED])dnl
Packit Service 5bcba8
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
Packit Service d78141
m4_require([_LT_PREPARE_MUNGE_PATH_LIST])dnl
Packit Service 5bcba8
AC_MSG_CHECKING([dynamic linker characteristics])
Packit Service 5bcba8
m4_if([$1],
Packit Service 5bcba8
	[], [
Packit Service d78141
if test yes = "$GCC"; then
Packit Service 5bcba8
  case $host_os in
Packit Service d78141
    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
Packit Service d78141
    *) lt_awk_arg='/^libraries:/' ;;
Packit Service 5bcba8
  esac
Packit Service 5bcba8
  case $host_os in
Packit Service d78141
    mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;;
Packit Service d78141
    *) lt_sed_strip_eq='s|=/|/|g' ;;
Packit Service 5bcba8
  esac
Packit Service 5bcba8
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
Packit Service 5bcba8
  case $lt_search_path_spec in
Packit Service 5bcba8
  *\;*)
Packit Service 5bcba8
    # if the path contains ";" then we assume it to be the separator
Packit Service 5bcba8
    # otherwise default to the standard path separator (i.e. ":") - it is
Packit Service 5bcba8
    # assumed that no part of a normal pathname contains ";" but that should
Packit Service 5bcba8
    # okay in the real world where ";" in dirpaths is itself problematic.
Packit Service 5bcba8
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
Packit Service 5bcba8
    ;;
Packit Service 5bcba8
  *)
Packit Service 5bcba8
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
Packit Service 5bcba8
    ;;
Packit Service 5bcba8
  esac
Packit Service 5bcba8
  # Ok, now we have the path, separated by spaces, we can step through it
Packit Service d78141
  # and add multilib dir if necessary...
Packit Service 5bcba8
  lt_tmp_lt_search_path_spec=
Packit Service d78141
  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
Packit Service d78141
  # ...but if some path component already ends with the multilib dir we assume
Packit Service d78141
  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
Packit Service d78141
  case "$lt_multi_os_dir; $lt_search_path_spec " in
Packit Service d78141
  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
Packit Service d78141
    lt_multi_os_dir=
Packit Service d78141
    ;;
Packit Service d78141
  esac
Packit Service 5bcba8
  for lt_sys_path in $lt_search_path_spec; do
Packit Service d78141
    if test -d "$lt_sys_path$lt_multi_os_dir"; then
Packit Service d78141
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
Packit Service d78141
    elif test -n "$lt_multi_os_dir"; then
Packit Service 5bcba8
      test -d "$lt_sys_path" && \
Packit Service 5bcba8
	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
Packit Service 5bcba8
    fi
Packit Service 5bcba8
  done
Packit Service 5bcba8
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
Packit Service d78141
BEGIN {RS = " "; FS = "/|\n";} {
Packit Service d78141
  lt_foo = "";
Packit Service d78141
  lt_count = 0;
Packit Service 5bcba8
  for (lt_i = NF; lt_i > 0; lt_i--) {
Packit Service 5bcba8
    if ($lt_i != "" && $lt_i != ".") {
Packit Service 5bcba8
      if ($lt_i == "..") {
Packit Service 5bcba8
        lt_count++;
Packit Service 5bcba8
      } else {
Packit Service 5bcba8
        if (lt_count == 0) {
Packit Service d78141
          lt_foo = "/" $lt_i lt_foo;
Packit Service 5bcba8
        } else {
Packit Service 5bcba8
          lt_count--;
Packit Service 5bcba8
        }
Packit Service 5bcba8
      }
Packit Service 5bcba8
    }
Packit Service 5bcba8
  }
Packit Service 5bcba8
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
Packit Service 5bcba8
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
Packit Service 5bcba8
}'`
Packit Service 5bcba8
  # AWK program above erroneously prepends '/' to C:/dos/paths
Packit Service 5bcba8
  # for these hosts.
Packit Service 5bcba8
  case $host_os in
Packit Service 5bcba8
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
Packit Service d78141
      $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;;
Packit Service 5bcba8
  esac
Packit Service 5bcba8
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
Packit Service 5bcba8
else
Packit Service 5bcba8
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
Packit Service 5bcba8
fi])
Packit Service 5bcba8
library_names_spec=
Packit Service 5bcba8
libname_spec='lib$name'
Packit Service 5bcba8
soname_spec=
Packit Service d78141
shrext_cmds=.so
Packit Service 5bcba8
postinstall_cmds=
Packit Service 5bcba8
postuninstall_cmds=
Packit Service 5bcba8
finish_cmds=
Packit Service 5bcba8
finish_eval=
Packit Service 5bcba8
shlibpath_var=
Packit Service 5bcba8
shlibpath_overrides_runpath=unknown
Packit Service 5bcba8
version_type=none
Packit Service 5bcba8
dynamic_linker="$host_os ld.so"
Packit Service 5bcba8
sys_lib_dlsearch_path_spec="/lib /usr/lib"
Packit Service 5bcba8
need_lib_prefix=unknown
Packit Service 5bcba8
hardcode_into_libs=no
Packit Service 5bcba8
Packit Service 5bcba8
# when you set need_version to no, make sure it does not cause -set_version
Packit Service 5bcba8
# flags to be left without arguments
Packit Service 5bcba8
need_version=unknown
Packit Service 5bcba8
Packit Service d78141
AC_ARG_VAR([LT_SYS_LIBRARY_PATH],
Packit Service d78141
[User-defined run-time library search path.])
Packit Service d78141
Packit Service 5bcba8
case $host_os in
Packit Service 5bcba8
aix3*)
Packit Service 5bcba8
  version_type=linux # correct to gnu/linux during the next big refactor
Packit Service d78141
  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
Packit Service 5bcba8
  shlibpath_var=LIBPATH
Packit Service 5bcba8
Packit Service 5bcba8
  # AIX 3 has no versioning support, so we append a major version to the name.
Packit Service d78141
  soname_spec='$libname$release$shared_ext$major'
Packit Service 5bcba8
  ;;
Packit Service 5bcba8
Packit Service 5bcba8
aix[[4-9]]*)
Packit Service 5bcba8
  version_type=linux # correct to gnu/linux during the next big refactor
Packit Service 5bcba8
  need_lib_prefix=no
Packit Service 5bcba8
  need_version=no
Packit Service 5bcba8
  hardcode_into_libs=yes
Packit Service d78141
  if test ia64 = "$host_cpu"; then
Packit Service 5bcba8
    # AIX 5 supports IA64
Packit Service d78141
    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
Packit Service 5bcba8
    shlibpath_var=LD_LIBRARY_PATH
Packit Service 5bcba8
  else
Packit Service 5bcba8
    # With GCC up to 2.95.x, collect2 would create an import file
Packit Service 5bcba8
    # for dependence libraries.  The import file would start with
Packit Service d78141
    # the line '#! .'.  This would cause the generated library to
Packit Service d78141
    # depend on '.', always an invalid library.  This was fixed in
Packit Service 5bcba8
    # development snapshots of GCC prior to 3.0.
Packit Service 5bcba8
    case $host_os in
Packit Service 5bcba8
      aix4 | aix4.[[01]] | aix4.[[01]].*)
Packit Service 5bcba8
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
Packit Service 5bcba8
	   echo ' yes '
Packit Service d78141
	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
Packit Service 5bcba8
	:
Packit Service 5bcba8
      else
Packit Service 5bcba8
	can_build_shared=no
Packit Service 5bcba8
      fi
Packit Service 5bcba8
      ;;
Packit Service 5bcba8
    esac
Packit Service d78141
    # Using Import Files as archive members, it is possible to support
Packit Service d78141
    # filename-based versioning of shared library archives on AIX. While
Packit Service d78141
    # this would work for both with and without runtime linking, it will
Packit Service d78141
    # prevent static linking of such archives. So we do filename-based
Packit Service d78141
    # shared library versioning with .so extension only, which is used
Packit Service d78141
    # when both runtime linking and shared linking is enabled.
Packit Service d78141
    # Unfortunately, runtime linking may impact performance, so we do
Packit Service d78141
    # not want this to be the default eventually. Also, we use the
Packit Service d78141
    # versioned .so libs for executables only if there is the -brtl
Packit Service d78141
    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
Packit Service d78141
    # To allow for filename-based versioning support, we need to create
Packit Service d78141
    # libNAME.so.V as an archive file, containing:
Packit Service d78141
    # *) an Import File, referring to the versioned filename of the
Packit Service d78141
    #    archive as well as the shared archive member, telling the
Packit Service d78141
    #    bitwidth (32 or 64) of that shared object, and providing the
Packit Service d78141
    #    list of exported symbols of that shared object, eventually
Packit Service d78141
    #    decorated with the 'weak' keyword
Packit Service d78141
    # *) the shared object with the F_LOADONLY flag set, to really avoid
Packit Service d78141
    #    it being seen by the linker.
Packit Service d78141
    # At run time we better use the real file rather than another symlink,
Packit Service d78141
    # but for link time we create the symlink libNAME.so -> libNAME.so.V
Packit Service d78141
Packit Service d78141
    case $with_aix_soname,$aix_use_runtimelinking in
Packit Service d78141
    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
Packit Service 5bcba8
    # soname into executable. Probably we can add versioning support to
Packit Service 5bcba8
    # collect2, so additional links can be useful in future.
Packit Service d78141
    aix,yes) # traditional libtool
Packit Service d78141
      dynamic_linker='AIX unversionable lib.so'
Packit Service 5bcba8
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
Packit Service 5bcba8
      # instead of lib<name>.a to let people know that these are not
Packit Service 5bcba8
      # typical AIX shared libraries.
Packit Service d78141
      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Packit Service d78141
      ;;
Packit Service d78141
    aix,no) # traditional AIX only
Packit Service d78141
      dynamic_linker='AIX lib.a[(]lib.so.V[)]'
Packit Service 5bcba8
      # We preserve .a as extension for shared libraries through AIX4.2
Packit Service 5bcba8
      # and later when we are not doing run time linking.
Packit Service d78141
      library_names_spec='$libname$release.a $libname.a'
Packit Service d78141
      soname_spec='$libname$release$shared_ext$major'
Packit Service d78141
      ;;
Packit Service d78141
    svr4,*) # full svr4 only
Packit Service d78141
      dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)]"
Packit Service d78141
      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
Packit Service d78141
      # We do not specify a path in Import Files, so LIBPATH fires.
Packit Service d78141
      shlibpath_overrides_runpath=yes
Packit Service d78141
      ;;
Packit Service d78141
    *,yes) # both, prefer svr4
Packit Service d78141
      dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)], lib.a[(]lib.so.V[)]"
Packit Service d78141
      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
Packit Service d78141
      # unpreferred sharedlib libNAME.a needs extra handling
Packit Service d78141
      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
Packit Service d78141
      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
Packit Service d78141
      # We do not specify a path in Import Files, so LIBPATH fires.
Packit Service d78141
      shlibpath_overrides_runpath=yes
Packit Service d78141
      ;;
Packit Service d78141
    *,no) # both, prefer aix
Packit Service d78141
      dynamic_linker="AIX lib.a[(]lib.so.V[)], lib.so.V[(]$shared_archive_member_spec.o[)]"
Packit Service d78141
      library_names_spec='$libname$release.a $libname.a'
Packit Service d78141
      soname_spec='$libname$release$shared_ext$major'
Packit Service d78141
      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
Packit Service d78141
      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
Packit Service d78141
      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
Packit Service d78141
      ;;
Packit Service d78141
    esac
Packit Service 5bcba8
    shlibpath_var=LIBPATH
Packit Service 5bcba8
  fi
Packit Service 5bcba8
  ;;
Packit Service 5bcba8
Packit Service 5bcba8
amigaos*)
Packit Service 5bcba8
  case $host_cpu in
Packit Service 5bcba8
  powerpc)
Packit Service 5bcba8
    # Since July 2007 AmigaOS4 officially supports .so libraries.
Packit Service 5bcba8
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
Packit Service d78141
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Packit Service 5bcba8
    ;;
Packit Service 5bcba8
  m68k)
Packit Service 5bcba8
    library_names_spec='$libname.ixlibrary $libname.a'
Packit Service 5bcba8
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
Packit Service d78141
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
Packit Service 5bcba8
    ;;
Packit Service 5bcba8
  esac
Packit Service 5bcba8
  ;;
Packit Service 5bcba8
Packit Service 5bcba8
beos*)
Packit Service d78141
  library_names_spec='$libname$shared_ext'
Packit Service 5bcba8
  dynamic_linker="$host_os ld.so"
Packit Service 5bcba8
  shlibpath_var=LIBRARY_PATH
Packit Service 5bcba8
  ;;
Packit Service 5bcba8
Packit Service 5bcba8
bsdi[[45]]*)
Packit Service 5bcba8
  version_type=linux # correct to gnu/linux during the next big refactor
Packit Service 5bcba8
  need_version=no
Packit Service d78141
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Packit Service d78141
  soname_spec='$libname$release$shared_ext$major'
Packit Service 5bcba8
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
Packit Service 5bcba8
  shlibpath_var=LD_LIBRARY_PATH
Packit Service 5bcba8
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
Packit Service 5bcba8
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
Packit Service 5bcba8
  # the default ld.so.conf also contains /usr/contrib/lib and
Packit Service 5bcba8
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
Packit Service 5bcba8
  # libtool to hard-code these into programs
Packit Service 5bcba8
  ;;
Packit Service 5bcba8
Packit Service 5bcba8
cygwin* | mingw* | pw32* | cegcc*)
Packit Service 5bcba8
  version_type=windows
Packit Service d78141
  shrext_cmds=.dll
Packit Service 5bcba8
  need_version=no
Packit Service 5bcba8
  need_lib_prefix=no
Packit Service 5bcba8
Packit Service 5bcba8
  case $GCC,$cc_basename in
Packit Service 5bcba8
  yes,*)
Packit Service 5bcba8
    # gcc
Packit Service 5bcba8
    library_names_spec='$libname.dll.a'
Packit Service 5bcba8
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
Packit Service d78141
    postinstall_cmds='base_file=`basename \$file`~
Packit Service d78141
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
Packit Service 5bcba8
      dldir=$destdir/`dirname \$dlpath`~
Packit Service 5bcba8
      test -d \$dldir || mkdir -p \$dldir~
Packit Service 5bcba8
      $install_prog $dir/$dlname \$dldir/$dlname~
Packit Service 5bcba8
      chmod a+x \$dldir/$dlname~
Packit Service 5bcba8
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
Packit Service 5bcba8
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
Packit Service 5bcba8
      fi'
Packit Service 5bcba8
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
Packit Service 5bcba8
      dlpath=$dir/\$dldll~
Packit Service 5bcba8
       $RM \$dlpath'
Packit Service 5bcba8
    shlibpath_overrides_runpath=yes
Packit Service 5bcba8
Packit Service 5bcba8
    case $host_os in
Packit Service 5bcba8
    cygwin*)
Packit Service 5bcba8
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
Packit Service d78141
      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
Packit Service 5bcba8
m4_if([$1], [],[
Packit Service 5bcba8
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
Packit Service 5bcba8
      ;;
Packit Service 5bcba8
    mingw* | cegcc*)
Packit Service 5bcba8
      # MinGW DLLs use traditional 'lib' prefix
Packit Service d78141
      soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
Packit Service 5bcba8
      ;;
Packit Service 5bcba8
    pw32*)
Packit Service 5bcba8
      # pw32 DLLs use 'pw' prefix rather than 'lib'
Packit Service d78141
      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
Packit Service 5bcba8
      ;;
Packit Service 5bcba8
    esac
Packit Service 5bcba8
    dynamic_linker='Win32 ld.exe'
Packit Service 5bcba8
    ;;
Packit Service 5bcba8
Packit Service 5bcba8
  *,cl*)
Packit Service 5bcba8
    # Native MSVC
Packit Service 5bcba8
    libname_spec='$name'
Packit Service d78141
    soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
Packit Service d78141
    library_names_spec='$libname.dll.lib'
Packit Service 5bcba8
Packit Service 5bcba8
    case $build_os in
Packit Service 5bcba8
    mingw*)
Packit Service 5bcba8
      sys_lib_search_path_spec=
Packit Service 5bcba8
      lt_save_ifs=$IFS
Packit Service 5bcba8
      IFS=';'
Packit Service 5bcba8
      for lt_path in $LIB
Packit Service 5bcba8
      do
Packit Service 5bcba8
        IFS=$lt_save_ifs
Packit Service 5bcba8
        # Let DOS variable expansion print the short 8.3 style file name.
Packit Service 5bcba8
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
Packit Service 5bcba8
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
Packit Service 5bcba8
      done
Packit Service 5bcba8
      IFS=$lt_save_ifs
Packit Service 5bcba8
      # Convert to MSYS style.
Packit Service 5bcba8
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
Packit Service 5bcba8
      ;;
Packit Service 5bcba8
    cygwin*)
Packit Service 5bcba8
      # Convert to unix form, then to dos form, then back to unix form
Packit Service 5bcba8
      # but this time dos style (no spaces!) so that the unix form looks
Packit Service 5bcba8
      # like /cygdrive/c/PROGRA~1:/cygdr...
Packit Service 5bcba8
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
Packit Service 5bcba8
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
Packit Service 5bcba8
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
Packit Service 5bcba8
      ;;
Packit Service 5bcba8
    *)
Packit Service d78141
      sys_lib_search_path_spec=$LIB
Packit Service 5bcba8
      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
Packit Service 5bcba8
        # It is most probably a Windows format PATH.
Packit Service 5bcba8
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
Packit Service 5bcba8
      else
Packit Service 5bcba8
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
Packit Service 5bcba8
      fi
Packit Service 5bcba8
      # FIXME: find the short name or the path components, as spaces are
Packit Service 5bcba8
      # common. (e.g. "Program Files" -> "PROGRA~1")
Packit Service 5bcba8
      ;;
Packit Service 5bcba8
    esac
Packit Service 5bcba8
Packit Service 5bcba8
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
Packit Service d78141
    postinstall_cmds='base_file=`basename \$file`~
Packit Service d78141
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
Packit Service 5bcba8
      dldir=$destdir/`dirname \$dlpath`~
Packit Service 5bcba8
      test -d \$dldir || mkdir -p \$dldir~
Packit Service 5bcba8
      $install_prog $dir/$dlname \$dldir/$dlname'
Packit Service 5bcba8
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
Packit Service 5bcba8
      dlpath=$dir/\$dldll~
Packit Service 5bcba8
       $RM \$dlpath'
Packit Service 5bcba8
    shlibpath_overrides_runpath=yes
Packit Service 5bcba8
    dynamic_linker='Win32 link.exe'
Packit Service 5bcba8
    ;;
Packit Service 5bcba8
Packit Service 5bcba8
  *)
Packit Service 5bcba8
    # Assume MSVC wrapper
Packit Service d78141
    library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib'
Packit Service 5bcba8
    dynamic_linker='Win32 ld.exe'
Packit Service 5bcba8
    ;;
Packit Service 5bcba8
  esac
Packit Service 5bcba8
  # FIXME: first we should search . and the directory the executable is in
Packit Service 5bcba8
  shlibpath_var=PATH
Packit Service 5bcba8
  ;;
Packit Service 5bcba8
Packit Service 5bcba8
darwin* | rhapsody*)
Packit Service 5bcba8
  dynamic_linker="$host_os dyld"
Packit Service 5bcba8
  version_type=darwin
Packit Service 5bcba8
  need_lib_prefix=no
Packit Service 5bcba8
  need_version=no
Packit Service d78141
  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
Packit Service d78141
  soname_spec='$libname$release$major$shared_ext'
Packit Service 5bcba8
  shlibpath_overrides_runpath=yes
Packit Service 5bcba8
  shlibpath_var=DYLD_LIBRARY_PATH
Packit Service 5bcba8
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
Packit Service 5bcba8
m4_if([$1], [],[
Packit Service 5bcba8
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
Packit Service 5bcba8
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
Packit Service 5bcba8
  ;;
Packit Service 5bcba8
Packit Service 5bcba8
dgux*)
Packit Service 5bcba8
  version_type=linux # correct to gnu/linux during the next big refactor
Packit Service 5bcba8
  need_lib_prefix=no
Packit Service 5bcba8
  need_version=no
Packit Service d78141
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Packit Service d78141
  soname_spec='$libname$release$shared_ext$major'
Packit Service 5bcba8
  shlibpath_var=LD_LIBRARY_PATH
Packit Service 5bcba8
  ;;
Packit Service 5bcba8
Packit Service 5bcba8
freebsd* | dragonfly*)
Packit Service 5bcba8
  # DragonFly does not have aout.  When/if they implement a new
Packit Service 5bcba8
  # versioning mechanism, adjust this.
Packit Service 5bcba8
  if test -x /usr/bin/objformat; then
Packit Service 5bcba8
    objformat=`/usr/bin/objformat`
Packit Service 5bcba8
  else
Packit Service 5bcba8
    case $host_os in
Packit Service 5bcba8
    freebsd[[23]].*) objformat=aout ;;
Packit Service 5bcba8
    *) objformat=elf ;;
Packit Service 5bcba8
    esac
Packit Service 5bcba8
  fi
Packit Service 5bcba8
  version_type=freebsd-$objformat
Packit Service 5bcba8
  case $version_type in
Packit Service 5bcba8
    freebsd-elf*)
Packit Service d78141
      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Packit Service d78141
      soname_spec='$libname$release$shared_ext$major'
Packit Service 5bcba8
      need_version=no
Packit Service 5bcba8
      need_lib_prefix=no
Packit Service 5bcba8
      ;;
Packit Service 5bcba8
    freebsd-*)
Packit Service d78141
      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Packit Service 5bcba8
      need_version=yes
Packit Service 5bcba8
      ;;
Packit Service 5bcba8
  esac
Packit Service 5bcba8
  shlibpath_var=LD_LIBRARY_PATH
Packit Service 5bcba8
  case $host_os in
Packit Service 5bcba8
  freebsd2.*)
Packit Service 5bcba8
    shlibpath_overrides_runpath=yes
Packit Service 5bcba8
    ;;
Packit Service 5bcba8
  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
Packit Service 5bcba8
    shlibpath_overrides_runpath=yes
Packit Service 5bcba8
    hardcode_into_libs=yes
Packit Service 5bcba8
    ;;
Packit Service 5bcba8
  freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
Packit Service 5bcba8
  freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
Packit Service 5bcba8
    shlibpath_overrides_runpath=no
Packit Service 5bcba8
    hardcode_into_libs=yes
Packit Service 5bcba8
    ;;
Packit Service 5bcba8
  *) # from 4.6 on, and DragonFly
Packit Service 5bcba8
    shlibpath_overrides_runpath=yes
Packit Service 5bcba8
    hardcode_into_libs=yes
Packit Service 5bcba8
    ;;
Packit Service 5bcba8
  esac
Packit Service 5bcba8
  ;;
Packit Service 5bcba8
Packit Service 5bcba8
haiku*)
Packit Service 5bcba8
  version_type=linux # correct to gnu/linux during the next big refactor
Packit Service 5bcba8
  need_lib_prefix=no
Packit Service 5bcba8
  need_version=no
Packit Service 5bcba8
  dynamic_linker="$host_os runtime_loader"
Packit Service d78141
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Packit Service d78141
  soname_spec='$libname$release$shared_ext$major'
Packit Service 5bcba8
  shlibpath_var=LIBRARY_PATH
Packit Service d78141
  shlibpath_overrides_runpath=no
Packit Service 5bcba8
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
Packit Service 5bcba8
  hardcode_into_libs=yes
Packit Service 5bcba8
  ;;
Packit Service 5bcba8
Packit Service 5bcba8
hpux9* | hpux10* | hpux11*)
Packit Service 5bcba8
  # Give a soname corresponding to the major version so that dld.sl refuses to
Packit Service 5bcba8
  # link against other versions.
Packit Service 5bcba8
  version_type=sunos
Packit Service 5bcba8
  need_lib_prefix=no
Packit Service 5bcba8
  need_version=no
Packit Service 5bcba8
  case $host_cpu in
Packit Service 5bcba8
  ia64*)
Packit Service 5bcba8
    shrext_cmds='.so'
Packit Service 5bcba8
    hardcode_into_libs=yes
Packit Service 5bcba8
    dynamic_linker="$host_os dld.so"
Packit Service 5bcba8
    shlibpath_var=LD_LIBRARY_PATH
Packit Service 5bcba8
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Packit Service d78141
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Packit Service d78141
    soname_spec='$libname$release$shared_ext$major'
Packit Service d78141
    if test 32 = "$HPUX_IA64_MODE"; then
Packit Service 5bcba8
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
Packit Service d78141
      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
Packit Service 5bcba8
    else
Packit Service 5bcba8
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
Packit Service d78141
      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
Packit Service 5bcba8
    fi
Packit Service 5bcba8
    ;;
Packit Service 5bcba8
  hppa*64*)
Packit Service 5bcba8
    shrext_cmds='.sl'
Packit Service 5bcba8
    hardcode_into_libs=yes
Packit Service 5bcba8
    dynamic_linker="$host_os dld.sl"
Packit Service 5bcba8
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
Packit Service 5bcba8
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Packit Service d78141
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Packit Service d78141
    soname_spec='$libname$release$shared_ext$major'
Packit Service 5bcba8
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
Packit Service 5bcba8
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
Packit Service 5bcba8
    ;;
Packit Service 5bcba8
  *)
Packit Service 5bcba8
    shrext_cmds='.sl'
Packit Service 5bcba8
    dynamic_linker="$host_os dld.sl"
Packit Service 5bcba8
    shlibpath_var=SHLIB_PATH
Packit Service 5bcba8
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
Packit Service d78141
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Packit Service d78141
    soname_spec='$libname$release$shared_ext$major'
Packit Service 5bcba8
    ;;
Packit Service 5bcba8
  esac
Packit Service 5bcba8
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
Packit Service 5bcba8
  postinstall_cmds='chmod 555 $lib'
Packit Service 5bcba8
  # or fails outright, so override atomically:
Packit Service 5bcba8
  install_override_mode=555
Packit Service 5bcba8
  ;;
Packit Service 5bcba8
Packit Service 5bcba8
interix[[3-9]]*)
Packit Service 5bcba8
  version_type=linux # correct to gnu/linux during the next big refactor
Packit Service 5bcba8
  need_lib_prefix=no
Packit Service 5bcba8
  need_version=no
Packit Service d78141
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Packit Service d78141
  soname_spec='$libname$release$shared_ext$major'
Packit Service 5bcba8
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
Packit Service 5bcba8
  shlibpath_var=LD_LIBRARY_PATH
Packit Service 5bcba8
  shlibpath_overrides_runpath=no
Packit Service 5bcba8
  hardcode_into_libs=yes
Packit Service 5bcba8
  ;;
Packit Service 5bcba8
Packit Service 5bcba8
irix5* | irix6* | nonstopux*)
Packit Service 5bcba8
  case $host_os in
Packit Service 5bcba8
    nonstopux*) version_type=nonstopux ;;
Packit Service 5bcba8
    *)
Packit Service d78141
	if test yes = "$lt_cv_prog_gnu_ld"; then
Packit Service 5bcba8
		version_type=linux # correct to gnu/linux during the next big refactor
Packit Service 5bcba8
	else
Packit Service 5bcba8
		version_type=irix
Packit Service 5bcba8
	fi ;;
Packit Service 5bcba8
  esac
Packit Service 5bcba8
  need_lib_prefix=no
Packit Service 5bcba8
  need_version=no
Packit Service d78141
  soname_spec='$libname$release$shared_ext$major'
Packit Service d78141
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
Packit Service 5bcba8
  case $host_os in
Packit Service 5bcba8
  irix5* | nonstopux*)
Packit Service 5bcba8
    libsuff= shlibsuff=
Packit Service 5bcba8
    ;;
Packit Service 5bcba8
  *)
Packit Service 5bcba8
    case $LD in # libtool.m4 will add one of these switches to LD
Packit Service 5bcba8
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
Packit Service 5bcba8
      libsuff= shlibsuff= libmagic=32-bit;;
Packit Service 5bcba8
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
Packit Service 5bcba8
      libsuff=32 shlibsuff=N32 libmagic=N32;;
Packit Service 5bcba8
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
Packit Service 5bcba8
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
Packit Service 5bcba8
    *) libsuff= shlibsuff= libmagic=never-match;;
Packit Service 5bcba8
    esac
Packit Service 5bcba8
    ;;
Packit Service 5bcba8
  esac
Packit Service 5bcba8
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
Packit Service 5bcba8
  shlibpath_overrides_runpath=no
Packit Service d78141
  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
Packit Service d78141
  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
Packit Service 5bcba8
  hardcode_into_libs=yes
Packit Service 5bcba8
  ;;
Packit Service 5bcba8
Packit Service 5bcba8
# No shared lib support for Linux oldld, aout, or coff.
Packit Service 5bcba8
linux*oldld* | linux*aout* | linux*coff*)
Packit Service 5bcba8
  dynamic_linker=no
Packit Service 5bcba8
  ;;
Packit Service 5bcba8
Packit Service d78141
linux*android*)
Packit Service d78141
  version_type=none # Android doesn't support versioned libraries.
Packit Service d78141
  need_lib_prefix=no
Packit Service d78141
  need_version=no
Packit Service d78141
  library_names_spec='$libname$release$shared_ext'
Packit Service d78141
  soname_spec='$libname$release$shared_ext'
Packit Service d78141
  finish_cmds=
Packit Service d78141
  shlibpath_var=LD_LIBRARY_PATH
Packit Service d78141
  shlibpath_overrides_runpath=yes
Packit Service d78141
Packit Service d78141
  # This implies no fast_install, which is unacceptable.
Packit Service d78141
  # Some rework will be needed to allow for fast_install
Packit Service d78141
  # before this can be enabled.
Packit Service d78141
  hardcode_into_libs=yes
Packit Service d78141
Packit Service d78141
  dynamic_linker='Android linker'
Packit Service d78141
  # Don't embed -rpath directories since the linker doesn't support them.
Packit Service d78141
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
Packit Service d78141
  ;;
Packit Service d78141
Packit Service 5bcba8
# This must be glibc/ELF.
Packit Service 5bcba8
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
Packit Service 5bcba8
  version_type=linux # correct to gnu/linux during the next big refactor
Packit Service 5bcba8
  need_lib_prefix=no
Packit Service 5bcba8
  need_version=no
Packit Service d78141
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Packit Service d78141
  soname_spec='$libname$release$shared_ext$major'
Packit Service 5bcba8
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
Packit Service 5bcba8
  shlibpath_var=LD_LIBRARY_PATH
Packit Service 5bcba8
  shlibpath_overrides_runpath=no
Packit Service 5bcba8
Packit Service 5bcba8
  # Some binutils ld are patched to set DT_RUNPATH
Packit Service 5bcba8
  AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
Packit Service 5bcba8
    [lt_cv_shlibpath_overrides_runpath=no
Packit Service 5bcba8
    save_LDFLAGS=$LDFLAGS
Packit Service 5bcba8
    save_libdir=$libdir
Packit Service 5bcba8
    eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
Packit Service 5bcba8
	 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
Packit Service 5bcba8
    AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
Packit Service 5bcba8
      [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
Packit Service 5bcba8
	 [lt_cv_shlibpath_overrides_runpath=yes])])
Packit Service 5bcba8
    LDFLAGS=$save_LDFLAGS
Packit Service 5bcba8
    libdir=$save_libdir
Packit Service 5bcba8
    ])
Packit Service 5bcba8
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
Packit Service 5bcba8
Packit Service 5bcba8
  # This implies no fast_install, which is unacceptable.
Packit Service 5bcba8
  # Some rework will be needed to allow for fast_install
Packit Service 5bcba8
  # before this can be enabled.
Packit Service 5bcba8
  hardcode_into_libs=yes
Packit Service 5bcba8
Packit Service d78141
  # Add ABI-specific directories to the system library path.
Packit Service d78141
  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
Packit Service d78141
Packit Service d78141
  # Ideally, we could use ldconfig to report *all* directores which are
Packit Service d78141
  # searched for libraries, however this is still not possible.  Aside from not
Packit Service d78141
  # being certain /sbin/ldconfig is available, command
Packit Service d78141
  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
Packit Service d78141
  # even though it is searched at run-time.  Try to do the best guess by
Packit Service d78141
  # appending ld.so.conf contents (and includes) to the search path.
Packit Service 5bcba8
  if test -f /etc/ld.so.conf; then
Packit Service 5bcba8
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
Packit Service d78141
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
Packit Service 5bcba8
  fi
Packit Service 5bcba8
Packit Service 5bcba8
  # We used to test for /lib/ld.so.1 and disable shared libraries on
Packit Service 5bcba8
  # powerpc, because MkLinux only supported shared libraries with the
Packit Service 5bcba8
  # GNU dynamic linker.  Since this was broken with cross compilers,
Packit Service 5bcba8
  # most powerpc-linux boxes support dynamic linking these days and
Packit Service 5bcba8
  # people can always --disable-shared, the test was removed, and we
Packit Service 5bcba8
  # assume the GNU/Linux dynamic linker is in use.
Packit Service 5bcba8
  dynamic_linker='GNU/Linux ld.so'
Packit Service 5bcba8
  ;;
Packit Service 5bcba8
Packit Service 5bcba8
netbsd*)
Packit Service 5bcba8
  version_type=sunos
Packit Service 5bcba8
  need_lib_prefix=no
Packit Service 5bcba8
  need_version=no
Packit Service 5bcba8
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Packit Service d78141
    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Packit Service 5bcba8
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
Packit Service 5bcba8
    dynamic_linker='NetBSD (a.out) ld.so'
Packit Service 5bcba8
  else
Packit Service d78141
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Packit Service d78141
    soname_spec='$libname$release$shared_ext$major'
Packit Service 5bcba8
    dynamic_linker='NetBSD ld.elf_so'
Packit Service 5bcba8
  fi
Packit Service 5bcba8
  shlibpath_var=LD_LIBRARY_PATH
Packit Service 5bcba8
  shlibpath_overrides_runpath=yes
Packit Service 5bcba8
  hardcode_into_libs=yes
Packit Service 5bcba8
  ;;
Packit Service 5bcba8
Packit Service 5bcba8
newsos6)
Packit Service 5bcba8
  version_type=linux # correct to gnu/linux during the next big refactor
Packit Service d78141
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Packit Service 5bcba8
  shlibpath_var=LD_LIBRARY_PATH
Packit Service 5bcba8
  shlibpath_overrides_runpath=yes
Packit Service 5bcba8
  ;;
Packit Service 5bcba8
Packit Service 5bcba8
*nto* | *qnx*)
Packit Service 5bcba8
  version_type=qnx
Packit Service 5bcba8
  need_lib_prefix=no
Packit Service 5bcba8
  need_version=no
Packit Service d78141
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Packit Service d78141
  soname_spec='$libname$release$shared_ext$major'
Packit Service 5bcba8
  shlibpath_var=LD_LIBRARY_PATH
Packit Service 5bcba8
  shlibpath_overrides_runpath=no
Packit Service 5bcba8
  hardcode_into_libs=yes
Packit Service 5bcba8
  dynamic_linker='ldqnx.so'
Packit Service 5bcba8
  ;;
Packit Service 5bcba8
Packit Service d78141
openbsd* | bitrig*)
Packit Service 5bcba8
  version_type=sunos
Packit Service d78141
  sys_lib_dlsearch_path_spec=/usr/lib
Packit Service 5bcba8
  need_lib_prefix=no
Packit Service d78141
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
Packit Service d78141
    need_version=no
Packit Service 5bcba8
  else
Packit Service d78141
    need_version=yes
Packit Service 5bcba8
  fi
Packit Service d78141
  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Packit Service d78141
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
Packit Service d78141
  shlibpath_var=LD_LIBRARY_PATH
Packit Service d78141
  shlibpath_overrides_runpath=yes
Packit Service 5bcba8
  ;;
Packit Service 5bcba8
Packit Service 5bcba8
os2*)
Packit Service 5bcba8
  libname_spec='$name'
Packit Service d78141
  version_type=windows
Packit Service d78141
  shrext_cmds=.dll
Packit Service d78141
  need_version=no
Packit Service 5bcba8
  need_lib_prefix=no
Packit Service d78141
  # OS/2 can only load a DLL with a base name of 8 characters or less.
Packit Service d78141
  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
Packit Service d78141
    v=$($ECHO $release$versuffix | tr -d .-);
Packit Service d78141
    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
Packit Service d78141
    $ECHO $n$v`$shared_ext'
Packit Service d78141
  library_names_spec='${libname}_dll.$libext'
Packit Service 5bcba8
  dynamic_linker='OS/2 ld.exe'
Packit Service d78141
  shlibpath_var=BEGINLIBPATH
Packit Service d78141
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
Packit Service d78141
  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
Packit Service d78141
  postinstall_cmds='base_file=`basename \$file`~
Packit Service d78141
    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
Packit Service d78141
    dldir=$destdir/`dirname \$dlpath`~
Packit Service d78141
    test -d \$dldir || mkdir -p \$dldir~
Packit Service d78141
    $install_prog $dir/$dlname \$dldir/$dlname~
Packit Service d78141
    chmod a+x \$dldir/$dlname~
Packit Service d78141
    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
Packit Service d78141
      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
Packit Service d78141
    fi'
Packit Service d78141
  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
Packit Service d78141
    dlpath=$dir/\$dldll~
Packit Service d78141
    $RM \$dlpath'
Packit Service 5bcba8
  ;;
Packit Service 5bcba8
Packit Service 5bcba8
osf3* | osf4* | osf5*)
Packit Service 5bcba8
  version_type=osf
Packit Service 5bcba8
  need_lib_prefix=no
Packit Service 5bcba8
  need_version=no
Packit Service d78141
  soname_spec='$libname$release$shared_ext$major'
Packit Service d78141
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Packit Service 5bcba8
  shlibpath_var=LD_LIBRARY_PATH
Packit Service 5bcba8
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
Packit Service d78141
  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
Packit Service 5bcba8
  ;;
Packit Service 5bcba8
Packit Service 5bcba8
rdos*)
Packit Service 5bcba8
  dynamic_linker=no
Packit Service 5bcba8
  ;;
Packit Service 5bcba8
Packit Service 5bcba8
solaris*)
Packit Service 5bcba8
  version_type=linux # correct to gnu/linux during the next big refactor
Packit Service 5bcba8
  need_lib_prefix=no
Packit Service 5bcba8
  need_version=no
Packit Service d78141
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Packit Service d78141
  soname_spec='$libname$release$shared_ext$major'
Packit Service 5bcba8
  shlibpath_var=LD_LIBRARY_PATH
Packit Service 5bcba8
  shlibpath_overrides_runpath=yes
Packit Service 5bcba8
  hardcode_into_libs=yes
Packit Service 5bcba8
  # ldd complains unless libraries are executable
Packit Service 5bcba8
  postinstall_cmds='chmod +x $lib'
Packit Service 5bcba8
  ;;
Packit Service 5bcba8
Packit Service 5bcba8
sunos4*)
Packit Service 5bcba8
  version_type=sunos
Packit Service d78141
  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Packit Service 5bcba8
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
Packit Service 5bcba8
  shlibpath_var=LD_LIBRARY_PATH
Packit Service 5bcba8
  shlibpath_overrides_runpath=yes
Packit Service d78141
  if test yes = "$with_gnu_ld"; then
Packit Service 5bcba8
    need_lib_prefix=no
Packit Service 5bcba8
  fi
Packit Service 5bcba8
  need_version=yes
Packit Service 5bcba8
  ;;
Packit Service 5bcba8
Packit Service 5bcba8
sysv4 | sysv4.3*)
Packit Service 5bcba8
  version_type=linux # correct to gnu/linux during the next big refactor
Packit Service d78141
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Packit Service d78141
  soname_spec='$libname$release$shared_ext$major'
Packit Service 5bcba8
  shlibpath_var=LD_LIBRARY_PATH
Packit Service 5bcba8
  case $host_vendor in
Packit Service 5bcba8
    sni)
Packit Service 5bcba8
      shlibpath_overrides_runpath=no
Packit Service 5bcba8
      need_lib_prefix=no
Packit Service 5bcba8
      runpath_var=LD_RUN_PATH
Packit Service 5bcba8
      ;;
Packit Service 5bcba8
    siemens)
Packit Service 5bcba8
      need_lib_prefix=no
Packit Service 5bcba8
      ;;
Packit Service 5bcba8
    motorola)
Packit Service 5bcba8
      need_lib_prefix=no
Packit Service 5bcba8
      need_version=no
Packit Service 5bcba8
      shlibpath_overrides_runpath=no
Packit Service 5bcba8
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
Packit Service 5bcba8
      ;;
Packit Service 5bcba8
  esac
Packit Service 5bcba8
  ;;
Packit Service 5bcba8
Packit Service 5bcba8
sysv4*MP*)
Packit Service d78141
  if test -d /usr/nec; then
Packit Service 5bcba8
    version_type=linux # correct to gnu/linux during the next big refactor
Packit Service d78141
    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
Packit Service d78141
    soname_spec='$libname$shared_ext.$major'
Packit Service 5bcba8
    shlibpath_var=LD_LIBRARY_PATH
Packit Service 5bcba8
  fi
Packit Service 5bcba8
  ;;
Packit Service 5bcba8
Packit Service 5bcba8
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Packit Service d78141
  version_type=sco
Packit Service 5bcba8
  need_lib_prefix=no
Packit Service 5bcba8
  need_version=no
Packit Service d78141
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
Packit Service d78141
  soname_spec='$libname$release$shared_ext$major'
Packit Service 5bcba8
  shlibpath_var=LD_LIBRARY_PATH
Packit Service 5bcba8
  shlibpath_overrides_runpath=yes
Packit Service 5bcba8
  hardcode_into_libs=yes
Packit Service d78141
  if test yes = "$with_gnu_ld"; then
Packit Service 5bcba8
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
Packit Service 5bcba8
  else
Packit Service 5bcba8
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
Packit Service 5bcba8
    case $host_os in
Packit Service 5bcba8
      sco3.2v5*)
Packit Service 5bcba8
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
Packit Service 5bcba8
	;;
Packit Service 5bcba8
    esac
Packit Service 5bcba8
  fi
Packit Service 5bcba8
  sys_lib_dlsearch_path_spec='/usr/lib'
Packit Service 5bcba8
  ;;
Packit Service 5bcba8
Packit Service 5bcba8
tpf*)
Packit Service 5bcba8
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
Packit Service 5bcba8
  version_type=linux # correct to gnu/linux during the next big refactor
Packit Service 5bcba8
  need_lib_prefix=no
Packit Service 5bcba8
  need_version=no
Packit Service d78141
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Packit Service 5bcba8
  shlibpath_var=LD_LIBRARY_PATH
Packit Service 5bcba8
  shlibpath_overrides_runpath=no
Packit Service 5bcba8
  hardcode_into_libs=yes
Packit Service 5bcba8
  ;;
Packit Service 5bcba8
Packit Service 5bcba8
uts4*)
Packit Service 5bcba8
  version_type=linux # correct to gnu/linux during the next big refactor
Packit Service d78141
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Packit Service d78141
  soname_spec='$libname$release$shared_ext$major'
Packit Service 5bcba8
  shlibpath_var=LD_LIBRARY_PATH
Packit Service 5bcba8
  ;;
Packit Service 5bcba8
Packit Service 5bcba8
*)
Packit Service 5bcba8
  dynamic_linker=no
Packit Service 5bcba8
  ;;
Packit Service 5bcba8
esac
Packit Service 5bcba8
AC_MSG_RESULT([$dynamic_linker])
Packit Service d78141
test no = "$dynamic_linker" && can_build_shared=no
Packit Service 5bcba8
Packit Service 5bcba8
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
Packit Service d78141
if test yes = "$GCC"; then
Packit Service 5bcba8
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
Packit Service 5bcba8
fi
Packit Service 5bcba8
Packit Service d78141
if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
Packit Service d78141
  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
Packit Service 5bcba8
fi
Packit Service d78141
Packit Service d78141
if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
Packit Service d78141
  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
Packit Service 5bcba8
fi
Packit Service 5bcba8
Packit Service d78141
# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
Packit Service d78141
configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
Packit Service d78141
Packit Service d78141
# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
Packit Service d78141
func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
Packit Service d78141
Packit Service d78141
# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
Packit Service d78141
configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
Packit Service d78141
Packit Service 5bcba8
_LT_DECL([], [variables_saved_for_relink], [1],
Packit Service 5bcba8
    [Variables whose values should be saved in libtool wrapper scripts and
Packit Service 5bcba8
    restored at link time])
Packit Service 5bcba8
_LT_DECL([], [need_lib_prefix], [0],
Packit Service 5bcba8
    [Do we need the "lib" prefix for modules?])
Packit Service 5bcba8
_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
Packit Service 5bcba8
_LT_DECL([], [version_type], [0], [Library versioning type])
Packit Service 5bcba8
_LT_DECL([], [runpath_var], [0],  [Shared library runtime path variable])
Packit Service 5bcba8
_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
Packit Service 5bcba8
_LT_DECL([], [shlibpath_overrides_runpath], [0],
Packit Service 5bcba8
    [Is shlibpath searched before the hard-coded library search path?])
Packit Service 5bcba8
_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
Packit Service 5bcba8
_LT_DECL([], [library_names_spec], [1],
Packit Service 5bcba8
    [[List of archive names.  First name is the real one, the rest are links.
Packit Service 5bcba8
    The last name is the one that the linker finds with -lNAME]])
Packit Service 5bcba8
_LT_DECL([], [soname_spec], [1],
Packit Service 5bcba8
    [[The coded name of the library, if different from the real name]])
Packit Service 5bcba8
_LT_DECL([], [install_override_mode], [1],
Packit Service 5bcba8
    [Permission mode override for installation of shared libraries])
Packit Service 5bcba8
_LT_DECL([], [postinstall_cmds], [2],
Packit Service 5bcba8
    [Command to use after installation of a shared archive])
Packit Service 5bcba8
_LT_DECL([], [postuninstall_cmds], [2],
Packit Service 5bcba8
    [Command to use after uninstallation of a shared archive])
Packit Service 5bcba8
_LT_DECL([], [finish_cmds], [2],
Packit Service 5bcba8
    [Commands used to finish a libtool library installation in a directory])
Packit Service 5bcba8
_LT_DECL([], [finish_eval], [1],
Packit Service 5bcba8
    [[As "finish_cmds", except a single script fragment to be evaled but
Packit Service 5bcba8
    not shown]])
Packit Service 5bcba8
_LT_DECL([], [hardcode_into_libs], [0],
Packit Service 5bcba8
    [Whether we should hardcode library paths into libraries])
Packit Service 5bcba8
_LT_DECL([], [sys_lib_search_path_spec], [2],
Packit Service 5bcba8
    [Compile-time system search path for libraries])
Packit Service d78141
_LT_DECL([sys_lib_dlsearch_path_spec], [configure_time_dlsearch_path], [2],
Packit Service d78141
    [Detected run-time system search path for libraries])
Packit Service d78141
_LT_DECL([], [configure_time_lt_sys_library_path], [2],
Packit Service d78141
    [Explicit LT_SYS_LIBRARY_PATH set during ./configure time])
Packit Service 5bcba8
])# _LT_SYS_DYNAMIC_LINKER
Packit Service 5bcba8
Packit Service 5bcba8
Packit Service 5bcba8
# _LT_PATH_TOOL_PREFIX(TOOL)
Packit Service 5bcba8
# --------------------------
Packit Service d78141
# find a file program that can recognize share