2020-12-22 15:52:24 -08:00
|
|
|
# generated automatically by aclocal 1.16.3 -*- Autoconf -*-
|
2014-05-02 11:32:12 -07:00
|
|
|
|
2020-05-04 15:11:05 -07:00
|
|
|
# Copyright (C) 1996-2020 Free Software Foundation, Inc.
|
2010-07-08 23:26:52 +00:00
|
|
|
|
|
|
|
# This file is free software; the Free Software Foundation
|
|
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
|
|
# with or without modifications, as long as this notice is preserved.
|
|
|
|
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
|
|
|
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
|
|
|
# PARTICULAR PURPOSE.
|
|
|
|
|
2014-05-02 11:32:12 -07:00
|
|
|
m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
|
2014-02-14 11:52:16 -08:00
|
|
|
m4_ifndef([AC_AUTOCONF_VERSION],
|
|
|
|
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
|
2021-05-21 15:18:39 -07:00
|
|
|
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.71],,
|
|
|
|
[m4_warning([this file was generated for autoconf 2.71.
|
2014-02-14 11:52:16 -08:00
|
|
|
You have another version of autoconf. It may work, but is not guaranteed to.
|
|
|
|
If you have problems, you may need to regenerate the build system entirely.
|
2014-05-02 11:32:12 -07:00
|
|
|
To do so, use the procedure documented by the package, typically 'autoreconf'.])])
|
2013-11-26 10:07:32 -08:00
|
|
|
|
2010-07-19 20:38:40 +00:00
|
|
|
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
|
2013-11-26 10:07:32 -08:00
|
|
|
#
|
2015-05-11 10:42:44 -07:00
|
|
|
# Copyright (C) 1996-2001, 2003-2015 Free Software Foundation, Inc.
|
2013-11-26 10:07:32 -08:00
|
|
|
# Written by Gordon Matzigkeit, 1996
|
|
|
|
#
|
|
|
|
# This file is free software; the Free Software Foundation gives
|
|
|
|
# unlimited permission to copy and/or distribute it, with or without
|
|
|
|
# modifications, as long as this notice is preserved.
|
|
|
|
|
|
|
|
m4_define([_LT_COPYING], [dnl
|
2015-01-05 15:23:07 -08:00
|
|
|
# Copyright (C) 2014 Free Software Foundation, Inc.
|
|
|
|
# This is free software; see the source for copying conditions. There is NO
|
|
|
|
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
|
|
|
|
# GNU Libtool is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 2 of of the License, or
|
|
|
|
# (at your option) any later version.
|
2013-11-26 10:07:32 -08:00
|
|
|
#
|
2015-01-05 15:23:07 -08:00
|
|
|
# As a special exception to the GNU General Public License, if you
|
|
|
|
# distribute this file as part of a program or library that is built
|
|
|
|
# using GNU Libtool, you may include this file under the same
|
|
|
|
# distribution terms that you use for the rest of that program.
|
2013-11-26 10:07:32 -08:00
|
|
|
#
|
2015-01-05 15:23:07 -08:00
|
|
|
# GNU Libtool is distributed in the hope that it will be useful, but
|
|
|
|
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
2013-11-26 10:07:32 -08:00
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
2015-01-05 15:23:07 -08:00
|
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2013-11-26 10:07:32 -08:00
|
|
|
])
|
2010-07-08 23:26:52 +00:00
|
|
|
|
2015-01-05 15:23:07 -08:00
|
|
|
# serial 58 LT_INIT
|
2010-07-08 23:26:52 +00:00
|
|
|
|
|
|
|
|
2013-11-26 10:07:32 -08:00
|
|
|
# LT_PREREQ(VERSION)
|
|
|
|
# ------------------
|
|
|
|
# Complain and exit if this libtool version is less that VERSION.
|
|
|
|
m4_defun([LT_PREREQ],
|
|
|
|
[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
|
|
|
|
[m4_default([$3],
|
|
|
|
[m4_fatal([Libtool version $1 or higher is required],
|
|
|
|
63)])],
|
|
|
|
[$2])])
|
2010-07-08 23:26:52 +00:00
|
|
|
|
|
|
|
|
2013-11-26 10:07:32 -08:00
|
|
|
# _LT_CHECK_BUILDDIR
|
|
|
|
# ------------------
|
|
|
|
# Complain if the absolute build directory name contains unusual characters
|
|
|
|
m4_defun([_LT_CHECK_BUILDDIR],
|
|
|
|
[case `pwd` in
|
|
|
|
*\ * | *\ *)
|
|
|
|
AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
|
|
|
|
esac
|
|
|
|
])
|
|
|
|
|
|
|
|
|
|
|
|
# LT_INIT([OPTIONS])
|
|
|
|
# ------------------
|
|
|
|
AC_DEFUN([LT_INIT],
|
2015-01-05 15:23:07 -08:00
|
|
|
[AC_PREREQ([2.62])dnl We use AC_PATH_PROGS_FEATURE_CHECK
|
2014-05-02 11:32:12 -07:00
|
|
|
AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
|
2013-11-26 10:07:32 -08:00
|
|
|
AC_BEFORE([$0], [LT_LANG])dnl
|
|
|
|
AC_BEFORE([$0], [LT_OUTPUT])dnl
|
|
|
|
AC_BEFORE([$0], [LTDL_INIT])dnl
|
|
|
|
m4_require([_LT_CHECK_BUILDDIR])dnl
|
|
|
|
|
|
|
|
dnl Autoconf doesn't catch unexpanded LT_ macros by default:
|
|
|
|
m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
|
|
|
|
m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
|
|
|
|
dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
|
|
|
|
dnl unless we require an AC_DEFUNed macro:
|
|
|
|
AC_REQUIRE([LTOPTIONS_VERSION])dnl
|
|
|
|
AC_REQUIRE([LTSUGAR_VERSION])dnl
|
|
|
|
AC_REQUIRE([LTVERSION_VERSION])dnl
|
|
|
|
AC_REQUIRE([LTOBSOLETE_VERSION])dnl
|
|
|
|
m4_require([_LT_PROG_LTMAIN])dnl
|
|
|
|
|
2014-05-02 11:32:12 -07:00
|
|
|
_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
|
|
|
|
|
2013-11-26 10:07:32 -08:00
|
|
|
dnl Parse OPTIONS
|
|
|
|
_LT_SET_OPTIONS([$0], [$1])
|
2010-07-08 23:26:52 +00:00
|
|
|
|
2010-07-19 20:38:40 +00:00
|
|
|
# This can be used to rebuild libtool when needed
|
2015-01-05 15:23:07 -08:00
|
|
|
LIBTOOL_DEPS=$ltmain
|
2010-07-08 23:26:52 +00:00
|
|
|
|
2010-07-19 20:38:40 +00:00
|
|
|
# Always use our own libtool.
|
|
|
|
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
|
|
|
|
AC_SUBST(LIBTOOL)dnl
|
2010-07-08 23:26:52 +00:00
|
|
|
|
2013-11-26 10:07:32 -08:00
|
|
|
_LT_SETUP
|
2010-07-08 23:26:52 +00:00
|
|
|
|
2013-11-26 10:07:32 -08:00
|
|
|
# Only expand once:
|
|
|
|
m4_define([LT_INIT])
|
|
|
|
])# LT_INIT
|
2010-07-08 23:26:52 +00:00
|
|
|
|
2013-11-26 10:07:32 -08:00
|
|
|
# Old names:
|
|
|
|
AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
|
|
|
|
AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
|
|
|
|
dnl aclocal-1.4 backwards compatibility:
|
|
|
|
dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
|
|
|
|
dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
|
|
|
|
|
|
|
|
|
2015-05-11 10:42:44 -07:00
|
|
|
# _LT_PREPARE_CC_BASENAME
|
|
|
|
# -----------------------
|
|
|
|
m4_defun([_LT_PREPARE_CC_BASENAME], [
|
|
|
|
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
|
|
|
|
func_cc_basename ()
|
|
|
|
{
|
|
|
|
for cc_temp in @S|@*""; do
|
|
|
|
case $cc_temp in
|
|
|
|
compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
|
|
|
|
distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
|
|
|
|
\-*) ;;
|
|
|
|
*) break;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
|
|
|
|
}
|
|
|
|
])# _LT_PREPARE_CC_BASENAME
|
|
|
|
|
|
|
|
|
2013-11-26 10:07:32 -08:00
|
|
|
# _LT_CC_BASENAME(CC)
|
|
|
|
# -------------------
|
2015-05-11 10:42:44 -07:00
|
|
|
# It would be clearer to call AC_REQUIREs from _LT_PREPARE_CC_BASENAME,
|
|
|
|
# but that macro is also expanded into generated libtool script, which
|
|
|
|
# arranges for $SED and $ECHO to be set by different means.
|
2013-11-26 10:07:32 -08:00
|
|
|
m4_defun([_LT_CC_BASENAME],
|
2015-05-11 10:42:44 -07:00
|
|
|
[m4_require([_LT_PREPARE_CC_BASENAME])dnl
|
|
|
|
AC_REQUIRE([_LT_DECL_SED])dnl
|
|
|
|
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
|
|
|
|
func_cc_basename $1
|
|
|
|
cc_basename=$func_cc_basename_result
|
2013-11-26 10:07:32 -08:00
|
|
|
])
|
|
|
|
|
|
|
|
|
|
|
|
# _LT_FILEUTILS_DEFAULTS
|
|
|
|
# ----------------------
|
|
|
|
# It is okay to use these file commands and assume they have been set
|
2015-01-05 15:23:07 -08:00
|
|
|
# sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'.
|
2013-11-26 10:07:32 -08:00
|
|
|
m4_defun([_LT_FILEUTILS_DEFAULTS],
|
|
|
|
[: ${CP="cp -f"}
|
|
|
|
: ${MV="mv -f"}
|
|
|
|
: ${RM="rm -f"}
|
|
|
|
])# _LT_FILEUTILS_DEFAULTS
|
|
|
|
|
|
|
|
|
|
|
|
# _LT_SETUP
|
|
|
|
# ---------
|
|
|
|
m4_defun([_LT_SETUP],
|
|
|
|
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
2010-07-19 20:38:40 +00:00
|
|
|
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
|
2014-05-02 11:32:12 -07:00
|
|
|
AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
|
|
|
|
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
|
|
|
|
|
|
|
|
_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
|
|
|
|
dnl
|
2013-11-26 10:07:32 -08:00
|
|
|
_LT_DECL([], [host_alias], [0], [The host system])dnl
|
|
|
|
_LT_DECL([], [host], [0])dnl
|
|
|
|
_LT_DECL([], [host_os], [0])dnl
|
|
|
|
dnl
|
|
|
|
_LT_DECL([], [build_alias], [0], [The build system])dnl
|
|
|
|
_LT_DECL([], [build], [0])dnl
|
|
|
|
_LT_DECL([], [build_os], [0])dnl
|
|
|
|
dnl
|
2010-07-19 20:38:40 +00:00
|
|
|
AC_REQUIRE([AC_PROG_CC])dnl
|
2013-11-26 10:07:32 -08:00
|
|
|
AC_REQUIRE([LT_PATH_LD])dnl
|
|
|
|
AC_REQUIRE([LT_PATH_NM])dnl
|
|
|
|
dnl
|
2010-07-19 20:38:40 +00:00
|
|
|
AC_REQUIRE([AC_PROG_LN_S])dnl
|
2013-11-26 10:07:32 -08:00
|
|
|
test -z "$LN_S" && LN_S="ln -s"
|
|
|
|
_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
|
2010-07-19 20:38:40 +00:00
|
|
|
dnl
|
2013-11-26 10:07:32 -08:00
|
|
|
AC_REQUIRE([LT_CMD_MAX_LEN])dnl
|
|
|
|
_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
|
|
|
|
_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
|
|
|
|
dnl
|
|
|
|
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
|
|
|
|
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
|
2014-05-02 11:32:12 -07:00
|
|
|
m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
|
2013-11-26 10:07:32 -08:00
|
|
|
m4_require([_LT_CMD_RELOAD])dnl
|
|
|
|
m4_require([_LT_CHECK_MAGIC_METHOD])dnl
|
2014-05-02 11:32:12 -07:00
|
|
|
m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
|
2013-11-26 10:07:32 -08:00
|
|
|
m4_require([_LT_CMD_OLD_ARCHIVE])dnl
|
|
|
|
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
|
2014-05-02 11:32:12 -07:00
|
|
|
m4_require([_LT_WITH_SYSROOT])dnl
|
2015-01-05 15:23:07 -08:00
|
|
|
m4_require([_LT_CMD_TRUNCATE])dnl
|
2013-11-26 10:07:32 -08:00
|
|
|
|
|
|
|
_LT_CONFIG_LIBTOOL_INIT([
|
2015-01-05 15:23:07 -08:00
|
|
|
# See if we are running on zsh, and set the options that allow our
|
2013-11-26 10:07:32 -08:00
|
|
|
# commands through without removal of \ escapes INIT.
|
2015-01-05 15:23:07 -08:00
|
|
|
if test -n "\${ZSH_VERSION+set}"; then
|
2013-11-26 10:07:32 -08:00
|
|
|
setopt NO_GLOB_SUBST
|
|
|
|
fi
|
|
|
|
])
|
2015-01-05 15:23:07 -08:00
|
|
|
if test -n "${ZSH_VERSION+set}"; then
|
2013-11-26 10:07:32 -08:00
|
|
|
setopt NO_GLOB_SUBST
|
|
|
|
fi
|
2010-07-08 23:26:52 +00:00
|
|
|
|
2013-11-26 10:07:32 -08:00
|
|
|
_LT_CHECK_OBJDIR
|
2010-07-08 23:26:52 +00:00
|
|
|
|
2013-11-26 10:07:32 -08:00
|
|
|
m4_require([_LT_TAG_COMPILER])dnl
|
2010-07-08 23:26:52 +00:00
|
|
|
|
2010-07-19 20:38:40 +00:00
|
|
|
case $host_os in
|
|
|
|
aix3*)
|
|
|
|
# AIX sometimes has problems with the GCC collect2 program. For some
|
|
|
|
# reason, if we set the COLLECT_NAMES environment variable, the problems
|
|
|
|
# vanish in a puff of smoke.
|
2015-01-05 15:23:07 -08:00
|
|
|
if test set != "${COLLECT_NAMES+set}"; then
|
2010-07-19 20:38:40 +00:00
|
|
|
COLLECT_NAMES=
|
|
|
|
export COLLECT_NAMES
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
esac
|
2010-07-08 23:26:52 +00:00
|
|
|
|
2010-07-19 20:38:40 +00:00
|
|
|
# Global variables:
|
2013-11-26 10:07:32 -08:00
|
|
|
ofile=libtool
|
2010-07-19 20:38:40 +00:00
|
|
|
can_build_shared=yes
|
2010-07-08 23:26:52 +00:00
|
|
|
|
2015-01-05 15:23:07 -08:00
|
|
|
# All known linkers require a '.a' archive for static linking (except MSVC,
|
2010-07-19 20:38:40 +00:00
|
|
|
# which needs '.lib').
|
|
|
|
libext=a
|
2010-07-08 23:26:52 +00:00
|
|
|
|
2015-01-05 15:23:07 -08:00
|
|
|
with_gnu_ld=$lt_cv_prog_gnu_ld
|
2012-08-20 14:35:58 -07:00
|
|
|
|
2015-01-05 15:23:07 -08:00
|
|
|
old_CC=$CC
|
|
|
|
old_CFLAGS=$CFLAGS
|
2010-07-08 23:26:52 +00:00
|
|
|
|
2010-07-19 20:38:40 +00:00
|
|
|
# Set sane defaults for various variables
|
|
|
|
test -z "$CC" && CC=cc
|
|
|
|
test -z "$LTCC" && LTCC=$CC
|
|
|
|
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
|
|
|
|
test -z "$LD" && LD=ld
|
|
|
|
test -z "$ac_objext" && ac_objext=o
|
2010-07-08 23:26:52 +00:00
|
|
|
|
2010-07-19 20:38:40 +00:00
|
|
|
_LT_CC_BASENAME([$compiler])
|
2010-07-08 23:26:52 +00:00
|
|
|
|
2010-07-19 20:38:40 +00:00
|
|
|
# Only perform the check for file, if the check method requires it
|
2013-11-26 10:07:32 -08:00
|
|
|
test -z "$MAGIC_CMD" && MAGIC_CMD=file
|
2010-07-19 20:38:40 +00:00
|
|
|
case $deplibs_check_method in
|
|
|
|
file_magic*)
|
|
|
|
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
|
2013-11-26 10:07:32 -08:00
|
|
|
_LT_PATH_MAGIC
|
2010-07-19 20:38:40 +00:00
|
|
|
fi
|
|
|
|
;;
|
|
|
|
esac
|
2010-07-08 23:26:52 +00:00
|
|
|
|
2013-11-26 10:07:32 -08:00
|
|
|
# Use C for the default configuration in the libtool script
|
|
|
|
LT_SUPPORTED_TAG([CC])
|
|
|
|
_LT_LANG_C_CONFIG
|
|
|
|
_LT_LANG_DEFAULT_CONFIG
|
|
|
|
_LT_CONFIG_COMMANDS
|
|
|
|
])# _LT_SETUP
|
2010-07-08 23:26:52 +00:00
|
|
|
|
|
|
|
|
2014-05-02 11:32:12 -07:00
|
|
|
# _LT_PREPARE_SED_QUOTE_VARS
|
|
|
|
# --------------------------
|
|
|
|
# Define a few sed substitution that help us do robust quoting.
|
|
|
|
m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
|
|
|
|
[# Backslashify metacharacters that are still active within
|
|
|
|
# double-quoted strings.
|
|
|
|
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
|
|
|
|
|
|
|
|
# Same as above, but do not quote variable references.
|
|
|
|
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
|
|
|
|
|
|
|
|
# Sed substitution to delay expansion of an escaped shell variable in a
|
|
|
|
# double_quote_subst'ed string.
|
|
|
|
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
|
|
|
|
|
|
|
|
# Sed substitution to delay expansion of an escaped single quote.
|
|
|
|
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
|
|
|
|
|
|
|
|
# Sed substitution to avoid accidental globbing in evaled expressions
|
|
|
|
no_glob_subst='s/\*/\\\*/g'
|
|
|
|
])
|
|
|
|
|
2013-11-26 10:07:32 -08:00
|
|
|
# _LT_PROG_LTMAIN
|
|
|
|
# ---------------
|
2015-01-05 15:23:07 -08:00
|
|
|
# Note that this code is called both from 'configure', and 'config.status'
|
2013-11-26 10:07:32 -08:00
|
|
|
# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
|
2015-01-05 15:23:07 -08:00
|
|
|
# 'config.status' has no value for ac_aux_dir unless we are using Automake,
|
2013-11-26 10:07:32 -08:00
|
|
|
# so we pass a copy along to make sure it has a sensible value anyway.
|
|
|
|
m4_defun([_LT_PROG_LTMAIN],
|
|
|
|
[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
|
|
|
|
_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
|
2015-01-05 15:23:07 -08:00
|
|
|
ltmain=$ac_aux_dir/ltmain.sh
|
2013-11-26 10:07:32 -08:00
|
|
|
])# _LT_PROG_LTMAIN
|
2010-07-08 23:26:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2013-11-26 10:07:32 -08:00
|
|
|
# So that we can recreate a full libtool script including additional
|
|
|
|
# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
|
2015-01-05 15:23:07 -08:00
|
|
|
# in macros and then make a single call at the end using the 'libtool'
|
2013-11-26 10:07:32 -08:00
|
|
|
# label.
|
2010-07-08 23:26:52 +00:00
|
|
|
|
|
|
|
|
2013-11-26 10:07:32 -08:00
|
|
|
# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
|
|
|
|
# ----------------------------------------
|
|
|
|
# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
|
|
|
|
m4_define([_LT_CONFIG_LIBTOOL_INIT],
|
|
|
|
[m4_ifval([$1],
|
|
|
|
[m4_append([_LT_OUTPUT_LIBTOOL_INIT],
|
|
|
|
[$1
|
|
|
|
])])])
|
2010-07-08 23:26:52 +00:00
|
|
|
|
2013-11-26 10:07:32 -08:00
|
|
|
# Initialize.
|
|
|
|
m4_define([_LT_OUTPUT_LIBTOOL_INIT])
|
2010-07-08 23:26:52 +00:00
|
|
|
|
|
|
|
|
2013-11-26 10:07:32 -08:00
|
|
|
# _LT_CONFIG_LIBTOOL([COMMANDS])
|
|
|
|
# ------------------------------
|
|
|
|
# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
|
|
|
|
m4_define([_LT_CONFIG_LIBTOOL],
|
|
|
|
[m4_ifval([$1],
|
|
|
|
[m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
|
|
|
|
[$1
|
|
|
|
])])])
|
|
|
|
|
|
|
|
# Initialize.
|
|
|
|
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
|
|
|
|
|
|
|
|
|
|
|
|
# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
|
|
|
|
# -----------------------------------------------------
|
|
|
|
m4_defun([_LT_CONFIG_SAVE_COMMANDS],
|
|
|
|
[_LT_CONFIG_LIBTOOL([$1])
|
|
|
|
_LT_CONFIG_LIBTOOL_INIT([$2])
|
2010-07-19 20:38:40 +00:00
|
|
|
])
|
2010-07-08 23:26:52 +00:00
|
|
|
|
|
|
|
|
2013-11-26 10:07:32 -08:00
|
|
|
# _LT_FORMAT_COMMENT([COMMENT])
|
|
|
|
# -----------------------------
|
|
|
|
# Add leading comment marks to the start of each line, and a trailing
|
|
|
|
# full-stop to the whole comment if one is not present already.
|
|
|
|
m4_define([_LT_FORMAT_COMMENT],
|
|
|
|
[m4_ifval([$1], [
|
|
|
|
m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
|
|
|
|
[['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
|
|
|
|
)])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
|
|
|
|
# -------------------------------------------------------------------
|
|
|
|
# CONFIGNAME is the name given to the value in the libtool script.
|
|
|
|
# VARNAME is the (base) name used in the configure script.
|
|
|
|
# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
|
|
|
|
# VARNAME. Any other value will be used directly.
|
|
|
|
m4_define([_LT_DECL],
|
|
|
|
[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
|
|
|
|
[lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
|
|
|
|
[m4_ifval([$1], [$1], [$2])])
|
|
|
|
lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
|
|
|
|
m4_ifval([$4],
|
|
|
|
[lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
|
|
|
|
lt_dict_add_subkey([lt_decl_dict], [$2],
|
|
|
|
[tagged?], [m4_ifval([$5], [yes], [no])])])
|
|
|
|
])
|
2010-07-08 23:26:52 +00:00
|
|
|
|
|
|
|
|
2013-11-26 10:07:32 -08:00
|
|
|
# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
|
|
|
|
# --------------------------------------------------------
|
|
|
|
m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
|
2010-07-08 23:26:52 +00:00
|
|
|
|
|
|
|
|
2013-11-26 10:07:32 -08:00
|
|
|
# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
|
|
|
|
# ------------------------------------------------
|
|
|
|
m4_define([lt_decl_tag_varnames],
|
|
|
|
[_lt_decl_filter([tagged?], [yes], $@)])
|
2010-07-08 23:26:52 +00:00
|
|
|
|
|
|
|
|
2013-11-26 10:07:32 -08:00
|
|
|
# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
|
|
|
|
# ---------------------------------------------------------
|
|
|
|
m4_define([_lt_decl_filter],
|
|
|
|
[m4_case([$#],
|
|
|
|
[0], [m4_fatal([$0: too few arguments: $#])],
|
|
|
|
[1], [m4_fatal([$0: too few arguments: $#: $1])],
|
|
|
|
[2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
|
|
|
|
[3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
|
|
|
|
[lt_dict_filter([lt_decl_dict], $@)])[]dnl
|
|
|
|
])
|
2010-07-08 23:26:52 +00:00
|
|
|
|
|
|
|
|
2013-11-26 10:07:32 -08:00
|
|
|
# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
|
|
|
|
# --------------------------------------------------
|
|
|
|
m4_define([lt_decl_quote_varnames],
|
|
|
|
[_lt_decl_filter([value], [1], $@)])
|
2012-08-20 14:35:58 -07:00
|
|
|
|
2010-07-08 23:26:52 +00:00
|
|
|
|
2013-11-26 10:07:32 -08:00
|
|
|
# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
|
|
|
|
# ---------------------------------------------------
|
|
|
|
m4_define([lt_decl_dquote_varnames],
|
|
|
|
[_lt_decl_filter([value], [2], $@)])
|
2010-07-08 23:26:52 +00:00
|
|
|
|
|
|
|
|
2013-11-26 10:07:32 -08:00
|
|
|
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
|
|
|
|
# ---------------------------------------------------
|
|
|
|
m4_define([lt_decl_varnames_tagged],
|
2014-02-14 11:52:16 -08:00
|
|
|
[m4_assert([$# <= 2])dnl
|
|
|
|
_$0(m4_quote(m4_default([$1], [[, ]])),
|
|
|
|
m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
|
|
|
|
m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
|
|
|
|
m4_define([_lt_decl_varnames_tagged],
|
|
|
|
[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
|
2010-07-08 23:26:52 +00:00
|
|
|
|
|
|
|
|
2013-11-26 10:07:32 -08:00
|
|
|
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
|
|
|
|
# ------------------------------------------------
|
|
|
|
m4_define([lt_decl_all_varnames],
|
|
|
|
[_$0(m4_quote(m4_default([$1], [[, ]])),
|
|
|
|
m4_if([$2], [],
|
|
|
|
m4_quote(lt_decl_varnames),
|
|
|
|
m4_quote(m4_shift($@))))[]dnl
|
|
|
|
])
|
|
|
|
m4_define([_lt_decl_all_varnames],
|
|
|
|
[lt_join($@, lt_decl_varnames_tagged([$1],
|
|
|
|
lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
|
|
|
|
])
|
2010-07-08 23:26:52 +00:00
|
|
|
|
|
|
|
|
2013-11-26 10:07:32 -08:00
|
|
|
# _LT_CONFIG_STATUS_DECLARE([VARNAME])
|
|
|
|
# ------------------------------------
|
2015-01-05 15:23:07 -08:00
|
|
|
# Quote a variable value, and forward it to 'config.status' so that its
|
|
|
|
# declaration there will have the same value as in 'configure'. VARNAME
|
2013-11-26 10:07:32 -08:00
|
|
|
# must have a single quote delimited value for this to work.
|
|
|
|
m4_define([_LT_CONFIG_STATUS_DECLARE],
|
2014-05-02 11:32:12 -07:00
|
|
|
[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
|
2010-07-08 23:26:52 +00:00
|
|
|
|
|
|
|
|
2013-11-26 10:07:32 -08:00
|
|
|
# _LT_CONFIG_STATUS_DECLARATIONS
|
|
|
|
# ------------------------------
|
|
|
|
# We delimit libtool config variables with single quotes, so when
|
|
|
|
# we write them to config.status, we have to be sure to quote all
|
|
|
|
# embedded single quotes properly. In configure, this macro expands
|
|
|
|
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
|
|
|
|
#
|
2014-05-02 11:32:12 -07:00
|
|
|
# <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
|
2013-11-26 10:07:32 -08:00
|
|
|
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
|
|
|
|
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
|
|
|
|
[m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
|
2010-07-08 23:26:52 +00:00
|
|
|
|
|
|
|
|
2013-11-26 10:07:32 -08:00
|
|
|
# _LT_LIBTOOL_TAGS
|
|
|
|
# ----------------
|
|
|
|
# Output comment and list of tags supported by the script
|
|
|
|
m4_defun([_LT_LIBTOOL_TAGS],
|
|
|
|
[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
|
2015-01-05 15:23:07 -08:00
|
|
|
available_tags='_LT_TAGS'dnl
|
2013-11-26 10:07:32 -08:00
|
|
|
])
|
2010-07-08 23:26:52 +00:00
|
|
|
|
|
|
|
|
2013-11-26 10:07:32 -08:00
|
|
|
# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
|
|
|
|
# -----------------------------------
|
|
|
|
# Extract the dictionary values for VARNAME (optionally with TAG) and
|
|
|
|
# expand to a commented shell variable setting:
|
|
|
|
#
|
|
|
|
# # Some comment about what VAR is for.
|
|
|
|
# visible_name=$lt_internal_name
|
|
|
|
m4_define([_LT_LIBTOOL_DECLARE],
|
|
|
|
[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
|
|
|
|
[description])))[]dnl
|
|
|
|
m4_pushdef([_libtool_name],
|
|
|
|
m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
|
|
|
|
m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
|
|
|
|
[0], [_libtool_name=[$]$1],
|
|
|
|
[1], [_libtool_name=$lt_[]$1],
|
|
|
|
[2], [_libtool_name=$lt_[]$1],
|
|
|
|
[_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
|
|
|
|
m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
|
|
|
|
])
|
2010-09-20 21:50:12 +00:00
|
|
|
|
2013-11-26 10:07:32 -08:00
|
|
|
|
|
|
|
# _LT_LIBTOOL_CONFIG_VARS
|
|
|
|
# -----------------------
|
|
|
|
# Produce commented declarations of non-tagged libtool config variables
|
2015-01-05 15:23:07 -08:00
|
|
|
# suitable for insertion in the LIBTOOL CONFIG section of the 'libtool'
|
2013-11-26 10:07:32 -08:00
|
|
|
# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
|
|
|
|
# section) are produced by _LT_LIBTOOL_TAG_VARS.
|
|
|
|
m4_defun([_LT_LIBTOOL_CONFIG_VARS],
|
|
|
|
[m4_foreach([_lt_var],
|
|
|
|
m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
|
|
|
|
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
|
|
|
|
|
|
|
|
|
|
|
|
# _LT_LIBTOOL_TAG_VARS(TAG)
|
|
|
|
# -------------------------
|
|
|
|
m4_define([_LT_LIBTOOL_TAG_VARS],
|
|
|
|
[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
|
|
|
|
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
|
|
|
|
|
|
|
|
|
|
|
|
# _LT_TAGVAR(VARNAME, [TAGNAME])
|
|
|
|
# ------------------------------
|
|
|
|
m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
|
|
|
|
|
|
|
|
|
|
|
|
# _LT_CONFIG_COMMANDS
|
|
|
|
# -------------------
|
|
|
|
# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
|
|
|
|
# variables for single and double quote escaping we saved from calls
|
|
|
|
# to _LT_DECL, we can put quote escaped variables declarations
|
2015-01-05 15:23:07 -08:00
|
|
|
# into 'config.status', and then the shell code to quote escape them in
|
|
|
|
# for loops in 'config.status'. Finally, any additional code accumulated
|
2013-11-26 10:07:32 -08:00
|
|
|
# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
|
|
|
|
m4_defun([_LT_CONFIG_COMMANDS],
|
|
|
|
[AC_PROVIDE_IFELSE([LT_OUTPUT],
|
|
|
|
dnl If the libtool generation code has been placed in $CONFIG_LT,
|
|
|
|
dnl instead of duplicating it all over again into config.status,
|
|
|
|
dnl then we will have config.status run $CONFIG_LT later, so it
|
|
|
|
dnl needs to know what name is stored there:
|
|
|
|
[AC_CONFIG_COMMANDS([libtool],
|
|
|
|
[$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
|
|
|
|
dnl If the libtool generation code is destined for config.status,
|
|
|
|
dnl expand the accumulated commands and init code now:
|
|
|
|
[AC_CONFIG_COMMANDS([libtool],
|
|
|
|
[_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
|
|
|
|
])#_LT_CONFIG_COMMANDS
|
|
|
|
|
|
|
|
|
|
|
|
# Initialize.
|
|
|
|
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
|
|
|
|
[
|
|
|
|
|
|
|
|
# The HP-UX ksh and POSIX shell print the target directory to stdout
|
|
|
|
# if CDPATH is set.
|
|
|
|
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
|
|
|
|
|
|
|
sed_quote_subst='$sed_quote_subst'
|
|
|
|
double_quote_subst='$double_quote_subst'
|
|
|
|
delay_variable_subst='$delay_variable_subst'
|
|
|
|
_LT_CONFIG_STATUS_DECLARATIONS
|
|
|
|
LTCC='$LTCC'
|
|
|
|
LTCFLAGS='$LTCFLAGS'
|
|
|
|
compiler='$compiler_DEFAULT'
|
|
|
|
|
2014-05-02 11:32:12 -07:00
|
|
|
# A function that is used when there is no print builtin or printf.
|
|
|
|
func_fallback_echo ()
|
|
|
|
{
|
|
|
|
eval 'cat <<_LTECHO_EOF
|
|
|
|
\$[]1
|
|
|
|
_LTECHO_EOF'
|
|
|
|
}
|
|
|
|
|
2013-11-26 10:07:32 -08:00
|
|
|
# Quote evaled strings.
|
|
|
|
for var in lt_decl_all_varnames([[ \
|
|
|
|
]], lt_decl_quote_varnames); do
|
2014-05-02 11:32:12 -07:00
|
|
|
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
|
2013-11-26 10:07:32 -08:00
|
|
|
*[[\\\\\\\`\\"\\\$]]*)
|
2015-01-05 15:23:07 -08:00
|
|
|
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
|
2010-07-19 20:38:40 +00:00
|
|
|
;;
|
2013-11-26 10:07:32 -08:00
|
|
|
*)
|
|
|
|
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
|
2010-07-19 20:38:40 +00:00
|
|
|
;;
|
|
|
|
esac
|
2013-11-26 10:07:32 -08:00
|
|
|
done
|
|
|
|
|
|
|
|
# Double-quote double-evaled strings.
|
|
|
|
for var in lt_decl_all_varnames([[ \
|
|
|
|
]], lt_decl_dquote_varnames); do
|
2014-05-02 11:32:12 -07:00
|
|
|
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
|
2013-11-26 10:07:32 -08:00
|
|
|
*[[\\\\\\\`\\"\\\$]]*)
|
2015-01-05 15:23:07 -08:00
|
|
|
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
|
2012-08-20 14:35:58 -07:00
|
|
|
;;
|
2013-11-26 10:07:32 -08:00
|
|
|
*)
|
|
|
|
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
|
2010-07-19 20:38:40 +00:00
|
|
|
;;
|
|
|
|
esac
|
2013-11-26 10:07:32 -08:00
|
|
|
done
|
2010-07-08 23:26:52 +00:00
|
|
|
|
2013-11-26 10:07:32 -08:00
|
|
|
_LT_OUTPUT_LIBTOOL_INIT
|
|
|
|
])
|
2010-07-08 23:26:52 +00:00
|
|
|
|
2014-05-02 11:32:12 -07:00
|
|
|
# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
|
|
|
|
# ------------------------------------
|
|
|
|
# Generate a child script FILE with all initialization necessary to
|
|
|
|
# reuse the environment learned by the parent script, and make the
|
|
|
|
# file executable. If COMMENT is supplied, it is inserted after the
|
2015-01-05 15:23:07 -08:00
|
|
|
# '#!' sequence but before initialization text begins. After this
|
2014-05-02 11:32:12 -07:00
|
|
|
# macro, additional text can be appended to FILE to form the body of
|
|
|
|
# the child script. The macro ends with non-zero status if the
|
|
|
|
# file could not be fully written (such as if the disk is full).
|
|
|
|
m4_ifdef([AS_INIT_GENERATED],
|
|
|
|
[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
|
|
|
|
[m4_defun([_LT_GENERATED_FILE_INIT],
|
|
|
|
[m4_require([AS_PREPARE])]dnl
|
|
|
|
[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
|
|
|
|
[lt_write_fail=0
|
|
|
|
cat >$1 <<_ASEOF || lt_write_fail=1
|
|
|
|
#! $SHELL
|
|
|
|
# Generated by $as_me.
|
|
|
|
$2
|
|
|
|
SHELL=\${CONFIG_SHELL-$SHELL}
|
|
|
|
export SHELL
|
|
|
|
_ASEOF
|
|
|
|
cat >>$1 <<\_ASEOF || lt_write_fail=1
|
|
|
|
AS_SHELL_SANITIZE
|
|
|
|
_AS_PREPARE
|
|
|
|
exec AS_MESSAGE_FD>&1
|
|
|
|
_ASEOF
|
2015-01-05 15:23:07 -08:00
|
|
|
test 0 = "$lt_write_fail" && chmod +x $1[]dnl
|
2014-05-02 11:32:12 -07:00
|
|
|
m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
|
2012-08-10 12:43:50 -07:00
|
|
|
|
2013-11-26 10:07:32 -08:00
|
|
|
# LT_OUTPUT
|
|
|
|
# ---------
|
|
|
|
# This macro allows early generation of the libtool script (before
|
|
|
|
# AC_OUTPUT is called), incase it is used in configure for compilation
|
|
|
|
# tests.
|
|
|
|
AC_DEFUN([LT_OUTPUT],
|
|
|
|
[: ${CONFIG_LT=./config.lt}
|
|
|
|
AC_MSG_NOTICE([creating $CONFIG_LT])
|
2014-05-02 11:32:12 -07:00
|
|
|
_LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
|
|
|
|
[# Run this file to recreate a libtool stub with the current configuration.])
|
2014-03-20 09:58:27 -07:00
|
|
|
|
|
|
|
cat >>"$CONFIG_LT" <<\_LTEOF
|
2014-05-02 11:32:12 -07:00
|
|
|
lt_cl_silent=false
|
2013-11-26 10:07:32 -08:00
|
|
|
exec AS_MESSAGE_LOG_FD>>config.log
|
|
|
|
{
|
|
|
|
echo
|
|
|
|
AS_BOX([Running $as_me.])
|
|
|
|
} >&AS_MESSAGE_LOG_FD
|
2010-07-08 23:26:52 +00:00
|
|
|
|
2013-11-26 10:07:32 -08:00
|
|
|
lt_cl_help="\
|
2015-01-05 15:23:07 -08:00
|
|
|
'$as_me' creates a local libtool stub from the current configuration,
|
2013-11-26 10:07:32 -08:00
|
|
|
for use in further configure time tests before the real libtool is
|
|
|
|
generated.
|
2010-07-08 23:26:52 +00:00
|
|
|
|
2013-11-26 10:07:32 -08:00
|
|
|
Usage: $[0] [[OPTIONS]]
|
2010-07-08 23:26:52 +00:00
|
|
|
|
2013-11-26 10:07:32 -08:00
|
|
|
-h, --help print this help, then exit
|
|
|
|
-V, --version print version number, then exit
|
|
|
|
-q, --quiet do not print progress messages
|
|
|
|
-d, --debug don't remove temporary files
|
2010-07-08 23:26:52 +00:00
|
|
|
|
2013-11-26 10:07:32 -08:00
|
|
|
Report bugs to <bug-libtool@gnu.org>."
|
2010-07-08 23:26:52 +00:00
|
|
|
|
2013-11-26 10:07:32 -08:00
|
|
|
lt_cl_version="\
|
|
|
|
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
|
|
|
|
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
|
|
|
|
configured by $[0], generated by m4_PACKAGE_STRING.
|
2010-07-08 23:26:52 +00:00
|
|
|
|
2014-05-02 11:32:12 -07:00
|
|
|
Copyright (C) 2011 Free Software Foundation, Inc.
|
2013-11-26 10:07:32 -08:00
|
|
|
This config.lt script is free software; the Free Software Foundation
|
|
|
|
gives unlimited permision to copy, distribute and modify it."
|
2010-07-08 23:26:52 +00:00
|
|
|
|
2015-01-05 15:23:07 -08:00
|
|
|
while test 0 != $[#]
|
2013-11-26 10:07:32 -08:00
|
|
|
do
|
|
|
|
case $[1] in
|
|
|
|
--version | --v* | -V )
|
|
|
|
echo "$lt_cl_version"; exit 0 ;;
|
|
|
|
--help | --h* | -h )
|
|
|
|
echo "$lt_cl_help"; exit 0 ;;
|
|
|
|
--debug | --d* | -d )
|
|
|
|
debug=: ;;
|
|
|
|
--quiet | --q* | --silent | --s* | -q )
|
|
|
|
lt_cl_silent=: ;;
|
|
|
|
|
|
|
|
-*) AC_MSG_ERROR([unrecognized option: $[1]
|
2015-01-05 15:23:07 -08:00
|
|
|
Try '$[0] --help' for more information.]) ;;
|
2013-11-26 10:07:32 -08:00
|
|
|
|
|
|
|
*) AC_MSG_ERROR([unrecognized argument: $[1]
|
2015-01-05 15:23:07 -08:00
|
|
|
Try '$[0] --help' for more information.]) ;;
|
2013-11-26 10:07:32 -08:00
|
|
|
esac
|
|
|
|
shift
|
|
|
|
done
|
2010-07-08 23:26:52 +00:00
|
|
|
|
2013-11-26 10:07:32 -08:00
|
|
|
if $lt_cl_silent; then
|
|
|
|
exec AS_MESSAGE_FD>/dev/null
|
|
|
|
fi
|
|
|
|
_LTEOF
|
|
|
|
|
|
|
|
cat >>"$CONFIG_LT" <<_LTEOF
|
|
|
|
_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
|
|
|
|
_LTEOF
|
|
|
|
|
|
|
|
cat >>"$CONFIG_LT" <<\_LTEOF
|
|
|
|
AC_MSG_NOTICE([creating $ofile])
|
|
|
|
_LT_OUTPUT_LIBTOOL_COMMANDS
|
|
|
|
AS_EXIT(0)
|
|
|
|
_LTEOF
|
|
|
|
chmod +x "$CONFIG_LT"
|
|
|
|
|
|
|
|
# configure is writing to config.log, but config.lt does its own redirection,
|
|
|
|
# appending to config.log, which fails on DOS, as config.log is still kept
|
|
|
|
# open by configure. Here we exec the FD to /dev/null, effectively closing
|
|
|
|
# config.log, so it can be properly (re)opened and appended to by config.lt.
|
2014-05-02 11:32:12 -07:00
|
|
|
lt_cl_success=:
|
2015-01-05 15:23:07 -08:00
|
|
|
test yes = "$silent" &&
|
2014-05-02 11:32:12 -07:00
|
|
|
lt_config_lt_args="$lt_config_lt_args --quiet"
|
|
|
|
exec AS_MESSAGE_LOG_FD>/dev/null
|
|
|
|
$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
|
|
|
|
exec AS_MESSAGE_LOG_FD>>config.log
|
|
|
|
$lt_cl_success || AS_EXIT(1)
|
2013-11-26 10:07:32 -08:00
|
|
|
])# LT_OUTPUT
|
2010-07-08 23:26:52 +00:00
|
|
|
|
|
|
|
|
2013-11-26 10:07:32 -08:00
|
|
|
# _LT_CONFIG(TAG)
|
|
|
|
# ---------------
|
|
|
|
# If TAG is the built-in tag, create an initial libtool script with a
|
|
|
|
# default configuration from the untagged config vars. Otherwise add code
|
|
|
|
# to config.status for appending the configuration named by TAG from the
|
|
|
|
# matching tagged config vars.
|
|
|
|
m4_defun([_LT_CONFIG],
|
|
|
|
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
|
|
|
|
_LT_CONFIG_SAVE_COMMANDS([
|
|
|
|
m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
|
|
|
|
m4_if(_LT_TAG, [C], [
|
2015-01-05 15:23:07 -08:00
|
|
|
# See if we are running on zsh, and set the options that allow our
|
2013-11-26 10:07:32 -08:00
|
|
|
# commands through without removal of \ escapes.
|
2015-01-05 15:23:07 -08:00
|
|
|
if test -n "${ZSH_VERSION+set}"; then
|
2013-11-26 10:07:32 -08:00
|
|
|
setopt NO_GLOB_SUBST
|
|
|
|
fi
|
2010-07-08 23:26:52 +00:00
|
|
|
|
2015-01-05 15:23:07 -08:00
|
|
|
cfgfile=${ofile}T
|
2014-02-14 11:52:16 -08:00
|
|
|
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
|
|
|
|
$RM "$cfgfile"
|
2010-07-08 23:26:52 +00:00
|
|
|
|
2013-11-26 10:07:32 -08:00
|
|
|
cat <<_LT_EOF >> "$cfgfile"
|
|
|
|
#! $SHELL
|
2015-01-05 15:23:07 -08:00
|
|
|
# Generated automatically by $as_me ($PACKAGE) $VERSION
|
2013-11-26 10:07:32 -08:00
|
|
|
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
|
|
|
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
|
2015-01-05 15:23:07 -08:00
|
|
|
|
|
|
|
# Provide generalized library-building support services.
|
|
|
|
# Written by Gordon Matzigkeit, 1996
|
|
|
|
|
2013-11-26 10:07:32 -08:00
|
|
|
_LT_COPYING
|
|
|
|
_LT_LIBTOOL_TAGS
|
2010-07-08 23:26:52 +00:00
|
|
|
|
2015-05-11 10:42:44 -07:00
|
|
|
# Configured defaults for sys_lib_dlsearch_path munging.
|
|
|
|
: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
|
|
|
|
|
2013-11-26 10:07:32 -08:00
|
|
|
# ### BEGIN LIBTOOL CONFIG
|
|
|
|
_LT_LIBTOOL_CONFIG_VARS
|
|
|
|
_LT_LIBTOOL_TAG_VARS
|
|
|
|
# ### END LIBTOOL CONFIG
|
2010-07-08 23:26:52 +00:00
|
|
|
|
2015-05-11 10:42:44 -07:00
|
|
|
_LT_EOF
|
|
|
|
|
|
|
|
cat <<'_LT_EOF' >> "$cfgfile"
|
|
|
|
|
|
|
|
# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
|
|
|
|
|
|
|
|
_LT_PREPARE_MUNGE_PATH_LIST
|
|
|
|
_LT_PREPARE_CC_BASENAME
|
|
|
|
|
|
|
|
# ### END FUNCTIONS SHARED WITH CONFIGURE
|
|
|
|
|
2013-11-26 10:07:32 -08:00
|
|
|
_LT_EOF
|
2010-07-08 23:26:52 +00:00
|
|
|
|
2013-11-26 10:07:32 -08:00
|
|
|
case $host_os in
|
|
|
|
aix3*)
|
|
|
|
cat <<\_LT_EOF >> "$cfgfile"
|
|
|
|
# AIX sometimes has problems with the GCC collect2 program. For some
|
|
|
|
# reason, if we set the COLLECT_NAMES environment variable, the problems
|
|
|
|
# vanish in a puff of smoke.
|
2015-01-05 15:23:07 -08:00
|
|
|
if test set != "${COLLECT_NAMES+set}"; then
|
2013-11-26 10:07:32 -08:00
|
|
|
COLLECT_NAMES=
|
|
|
|
export COLLECT_NAMES
|
|
|
|
fi
|
|
|
|
_LT_EOF
|
2010-07-08 23:26:52 +00:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2013-11-26 10:07:32 -08:00
|
|
|
_LT_PROG_LTMAIN
|
2010-07-08 23:26:52 +00:00
|
|
|
|
2013-11-26 10:07:32 -08:00
|
|
|
# We use sed instead of cat because bash on DJGPP gets confused if
|
|
|
|
# if finds mixed CR/LF and LF-only lines. Since sed operates in
|
|
|
|
# text mode, it properly converts lines to CR/LF. This bash problem
|
|
|
|
# is reportedly fixed, but why not run on old versions too?
|
2014-05-02 11:32:12 -07:00
|
|
|
sed '$q' "$ltmain" >> "$cfgfile" \
|
|
|
|
|| (rm -f "$cfgfile"; exit 1)
|
2010-07-08 23:26:52 +00:00
|
|
|
|
2014-05-02 11:32:12 -07:00
|
|
|
mv -f "$cfgfile" "$ofile" ||
|
2013-11-26 10:07:32 -08:00
|
|
|
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
|
|
|
|
chmod +x "$ofile"
|
|
|
|
],
|
|
|
|
[cat <<_LT_EOF >> "$ofile"
|
2010-07-08 23:26:52 +00:00
|
|
|
|
2013-11-26 10:07:32 -08:00
|
|
|
dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
|
|
|
|
dnl in a comment (ie after a #).
|
|
|
|
# ### BEGIN LIBTOOL TAG CONFIG: $1
|
|
|
|
_LT_LIBTOOL_TAG_VARS(_LT_TAG)
|
|
|
|
# ### END LIBTOOL TAG CONFIG: $1
|
|
|
|
_LT_EOF
|
|
|
|
])dnl /m4_if
|
|
|
|
],
|
|
|
|
[m4_if([$1], [], [
|
|
|
|
PACKAGE='$PACKAGE'
|
|
|
|
VERSION='$VERSION'
|
|
|
|
RM='$RM'
|
|
|
|
ofile='$ofile'], [])
|
|
|
|
])dnl /_LT_CONFIG_SAVE_COMMANDS
|
|
|
|
])# _LT_CONFIG
|
2010-07-08 23:26:52 +00:00
|
|
|
|
|
|
|
|
2013-11-26 10:07:32 -08:00
|
|
|
# LT_SUPPORTED_TAG(TAG)
|
|
|
|
# ---------------------
|
|
|
|
# Trace this macro to discover what tags are supported by the libtool
|
|
|
|
# --tag option, using:
|
|
|
|
# autoconf --trace 'LT_SUPPORTED_TAG:$1'
|
|
|
|
AC_DEFUN([LT_SUPPORTED_TAG], [])
|
2010-07-08 23:26:52 +00:00
|
|
|
|
|
|
|
|
2013-11-26 10:07:32 -08:00
|
|
|
# C support is built-in for now
|
|
|
|
m4_define([_LT_LANG_C_enabled], [])
|
|
|
|
m4_define([_LT_TAGS], [])
|
2010-07-08 23:26:52 +00:00
|
|
|
|
|
|
|
|
2013-11-26 10:07:32 -08:00
|
|
|
# LT_LANG(LANG)
|
|
|
|
# -------------
|
|
|
|
# Enable libtool support for the given language if not already enabled.
|
|
|
|
AC_DEFUN([LT_LANG],
|
|
|
|
[AC_BEFORE([$0], [LT_OUTPUT])dnl
|
|
|
|
m4_case([$1],
|
|
|
|
[C], [_LT_LANG(C)],
|
|
|
|
[C++], [_LT_LANG(CXX)],
|
2014-05-02 11:32:12 -07:00
|
|
|
[Go], [_LT_LANG(GO)],
|
2013-11-26 10:07:32 -08:00
|
|
|
[Java], [_LT_LANG(GCJ)],
|
|
|
|
[Fortran 77], [_LT_LANG(F77)],
|
|
|
|
[Fortran], [_LT_LANG(FC)],
|
|
|
|
[Windows Resource], [_LT_LANG(RC)],
|
|
|
|
[m4_ifdef([_LT_LANG_]$1[_CONFIG],
|
|
|
|
[_LT_LANG($1)],
|
|
|
|
[m4_fatal([$0: unsupported language: "$1"])])])dnl
|
|
|
|
])# LT_LANG
|
|
|
|
|
|
|
|
|
|