868b2b66 (kx 2024-12-20 16:11:07 +0300 1) # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
868b2b66 (kx 2024-12-20 16:11:07 +0300 2) #
868b2b66 (kx 2024-12-20 16:11:07 +0300 3) # Copyright (C) 1996-2001, 2003-2015 Free Software Foundation, Inc.
868b2b66 (kx 2024-12-20 16:11:07 +0300 4) # Written by Gordon Matzigkeit, 1996
868b2b66 (kx 2024-12-20 16:11:07 +0300 5) #
868b2b66 (kx 2024-12-20 16:11:07 +0300 6) # This file is free software; the Free Software Foundation gives
868b2b66 (kx 2024-12-20 16:11:07 +0300 7) # unlimited permission to copy and/or distribute it, with or without
868b2b66 (kx 2024-12-20 16:11:07 +0300 8) # modifications, as long as this notice is preserved.
868b2b66 (kx 2024-12-20 16:11:07 +0300 9)
868b2b66 (kx 2024-12-20 16:11:07 +0300 10) m4_define([_LT_COPYING], [dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 11) # Copyright (C) 2014 Free Software Foundation, Inc.
868b2b66 (kx 2024-12-20 16:11:07 +0300 12) # This is free software; see the source for copying conditions. There is NO
868b2b66 (kx 2024-12-20 16:11:07 +0300 13) # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
868b2b66 (kx 2024-12-20 16:11:07 +0300 14)
868b2b66 (kx 2024-12-20 16:11:07 +0300 15) # GNU Libtool is free software; you can redistribute it and/or modify
868b2b66 (kx 2024-12-20 16:11:07 +0300 16) # it under the terms of the GNU General Public License as published by
868b2b66 (kx 2024-12-20 16:11:07 +0300 17) # the Free Software Foundation; either version 2 of of the License, or
868b2b66 (kx 2024-12-20 16:11:07 +0300 18) # (at your option) any later version.
868b2b66 (kx 2024-12-20 16:11:07 +0300 19) #
868b2b66 (kx 2024-12-20 16:11:07 +0300 20) # As a special exception to the GNU General Public License, if you
868b2b66 (kx 2024-12-20 16:11:07 +0300 21) # distribute this file as part of a program or library that is built
868b2b66 (kx 2024-12-20 16:11:07 +0300 22) # using GNU Libtool, you may include this file under the same
868b2b66 (kx 2024-12-20 16:11:07 +0300 23) # distribution terms that you use for the rest of that program.
868b2b66 (kx 2024-12-20 16:11:07 +0300 24) #
868b2b66 (kx 2024-12-20 16:11:07 +0300 25) # GNU Libtool is distributed in the hope that it will be useful, but
868b2b66 (kx 2024-12-20 16:11:07 +0300 26) # WITHOUT ANY WARRANTY; without even the implied warranty of
868b2b66 (kx 2024-12-20 16:11:07 +0300 27) # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
868b2b66 (kx 2024-12-20 16:11:07 +0300 28) # GNU General Public License for more details.
868b2b66 (kx 2024-12-20 16:11:07 +0300 29) #
868b2b66 (kx 2024-12-20 16:11:07 +0300 30) # You should have received a copy of the GNU General Public License
868b2b66 (kx 2024-12-20 16:11:07 +0300 31) # along with this program. If not, see <http://www.gnu.org/licenses/>.
868b2b66 (kx 2024-12-20 16:11:07 +0300 32) ])
868b2b66 (kx 2024-12-20 16:11:07 +0300 33)
868b2b66 (kx 2024-12-20 16:11:07 +0300 34) # serial 58 LT_INIT
868b2b66 (kx 2024-12-20 16:11:07 +0300 35)
868b2b66 (kx 2024-12-20 16:11:07 +0300 36)
868b2b66 (kx 2024-12-20 16:11:07 +0300 37) # LT_PREREQ(VERSION)
868b2b66 (kx 2024-12-20 16:11:07 +0300 38) # ------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 39) # Complain and exit if this libtool version is less that VERSION.
868b2b66 (kx 2024-12-20 16:11:07 +0300 40) m4_defun([LT_PREREQ],
868b2b66 (kx 2024-12-20 16:11:07 +0300 41) [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
868b2b66 (kx 2024-12-20 16:11:07 +0300 42) [m4_default([$3],
868b2b66 (kx 2024-12-20 16:11:07 +0300 43) [m4_fatal([Libtool version $1 or higher is required],
868b2b66 (kx 2024-12-20 16:11:07 +0300 44) 63)])],
868b2b66 (kx 2024-12-20 16:11:07 +0300 45) [$2])])
868b2b66 (kx 2024-12-20 16:11:07 +0300 46)
868b2b66 (kx 2024-12-20 16:11:07 +0300 47)
868b2b66 (kx 2024-12-20 16:11:07 +0300 48) # _LT_CHECK_BUILDDIR
868b2b66 (kx 2024-12-20 16:11:07 +0300 49) # ------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 50) # Complain if the absolute build directory name contains unusual characters
868b2b66 (kx 2024-12-20 16:11:07 +0300 51) m4_defun([_LT_CHECK_BUILDDIR],
868b2b66 (kx 2024-12-20 16:11:07 +0300 52) [case `pwd` in
868b2b66 (kx 2024-12-20 16:11:07 +0300 53) *\ * | *\ *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 54) AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 55) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 56) ])
868b2b66 (kx 2024-12-20 16:11:07 +0300 57)
868b2b66 (kx 2024-12-20 16:11:07 +0300 58)
868b2b66 (kx 2024-12-20 16:11:07 +0300 59) # LT_INIT([OPTIONS])
868b2b66 (kx 2024-12-20 16:11:07 +0300 60) # ------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 61) AC_DEFUN([LT_INIT],
868b2b66 (kx 2024-12-20 16:11:07 +0300 62) [AC_PREREQ([2.62])dnl We use AC_PATH_PROGS_FEATURE_CHECK
868b2b66 (kx 2024-12-20 16:11:07 +0300 63) AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 64) AC_BEFORE([$0], [LT_LANG])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 65) AC_BEFORE([$0], [LT_OUTPUT])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 66) AC_BEFORE([$0], [LTDL_INIT])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 67) m4_require([_LT_CHECK_BUILDDIR])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 68)
868b2b66 (kx 2024-12-20 16:11:07 +0300 69) dnl Autoconf doesn't catch unexpanded LT_ macros by default:
868b2b66 (kx 2024-12-20 16:11:07 +0300 70) m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 71) m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 72) dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
868b2b66 (kx 2024-12-20 16:11:07 +0300 73) dnl unless we require an AC_DEFUNed macro:
868b2b66 (kx 2024-12-20 16:11:07 +0300 74) AC_REQUIRE([LTOPTIONS_VERSION])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 75) AC_REQUIRE([LTSUGAR_VERSION])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 76) AC_REQUIRE([LTVERSION_VERSION])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 77) AC_REQUIRE([LTOBSOLETE_VERSION])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 78) m4_require([_LT_PROG_LTMAIN])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 79)
868b2b66 (kx 2024-12-20 16:11:07 +0300 80) _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
868b2b66 (kx 2024-12-20 16:11:07 +0300 81)
868b2b66 (kx 2024-12-20 16:11:07 +0300 82) dnl Parse OPTIONS
868b2b66 (kx 2024-12-20 16:11:07 +0300 83) _LT_SET_OPTIONS([$0], [$1])
868b2b66 (kx 2024-12-20 16:11:07 +0300 84)
868b2b66 (kx 2024-12-20 16:11:07 +0300 85) # This can be used to rebuild libtool when needed
868b2b66 (kx 2024-12-20 16:11:07 +0300 86) LIBTOOL_DEPS=$ltmain
868b2b66 (kx 2024-12-20 16:11:07 +0300 87)
868b2b66 (kx 2024-12-20 16:11:07 +0300 88) # Always use our own libtool.
868b2b66 (kx 2024-12-20 16:11:07 +0300 89) LIBTOOL='$(SHELL) $(top_builddir)/libtool'
868b2b66 (kx 2024-12-20 16:11:07 +0300 90) AC_SUBST(LIBTOOL)dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 91)
868b2b66 (kx 2024-12-20 16:11:07 +0300 92) _LT_SETUP
868b2b66 (kx 2024-12-20 16:11:07 +0300 93)
868b2b66 (kx 2024-12-20 16:11:07 +0300 94) # Only expand once:
868b2b66 (kx 2024-12-20 16:11:07 +0300 95) m4_define([LT_INIT])
868b2b66 (kx 2024-12-20 16:11:07 +0300 96) ])# LT_INIT
868b2b66 (kx 2024-12-20 16:11:07 +0300 97)
868b2b66 (kx 2024-12-20 16:11:07 +0300 98) # Old names:
868b2b66 (kx 2024-12-20 16:11:07 +0300 99) AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
868b2b66 (kx 2024-12-20 16:11:07 +0300 100) AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
868b2b66 (kx 2024-12-20 16:11:07 +0300 101) dnl aclocal-1.4 backwards compatibility:
868b2b66 (kx 2024-12-20 16:11:07 +0300 102) dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
868b2b66 (kx 2024-12-20 16:11:07 +0300 103) dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
868b2b66 (kx 2024-12-20 16:11:07 +0300 104)
868b2b66 (kx 2024-12-20 16:11:07 +0300 105)
868b2b66 (kx 2024-12-20 16:11:07 +0300 106) # _LT_PREPARE_CC_BASENAME
868b2b66 (kx 2024-12-20 16:11:07 +0300 107) # -----------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 108) m4_defun([_LT_PREPARE_CC_BASENAME], [
868b2b66 (kx 2024-12-20 16:11:07 +0300 109) # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
868b2b66 (kx 2024-12-20 16:11:07 +0300 110) func_cc_basename ()
868b2b66 (kx 2024-12-20 16:11:07 +0300 111) {
868b2b66 (kx 2024-12-20 16:11:07 +0300 112) for cc_temp in @S|@*""; do
868b2b66 (kx 2024-12-20 16:11:07 +0300 113) case $cc_temp in
868b2b66 (kx 2024-12-20 16:11:07 +0300 114) compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 115) distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 116) \-*) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 117) *) break;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 118) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 119) done
868b2b66 (kx 2024-12-20 16:11:07 +0300 120) func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
868b2b66 (kx 2024-12-20 16:11:07 +0300 121) }
868b2b66 (kx 2024-12-20 16:11:07 +0300 122) ])# _LT_PREPARE_CC_BASENAME
868b2b66 (kx 2024-12-20 16:11:07 +0300 123)
868b2b66 (kx 2024-12-20 16:11:07 +0300 124)
868b2b66 (kx 2024-12-20 16:11:07 +0300 125) # _LT_CC_BASENAME(CC)
868b2b66 (kx 2024-12-20 16:11:07 +0300 126) # -------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 127) # It would be clearer to call AC_REQUIREs from _LT_PREPARE_CC_BASENAME,
868b2b66 (kx 2024-12-20 16:11:07 +0300 128) # but that macro is also expanded into generated libtool script, which
868b2b66 (kx 2024-12-20 16:11:07 +0300 129) # arranges for $SED and $ECHO to be set by different means.
868b2b66 (kx 2024-12-20 16:11:07 +0300 130) m4_defun([_LT_CC_BASENAME],
868b2b66 (kx 2024-12-20 16:11:07 +0300 131) [m4_require([_LT_PREPARE_CC_BASENAME])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 132) AC_REQUIRE([_LT_DECL_SED])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 133) AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 134) func_cc_basename $1
868b2b66 (kx 2024-12-20 16:11:07 +0300 135) cc_basename=$func_cc_basename_result
868b2b66 (kx 2024-12-20 16:11:07 +0300 136) ])
868b2b66 (kx 2024-12-20 16:11:07 +0300 137)
868b2b66 (kx 2024-12-20 16:11:07 +0300 138)
868b2b66 (kx 2024-12-20 16:11:07 +0300 139) # _LT_FILEUTILS_DEFAULTS
868b2b66 (kx 2024-12-20 16:11:07 +0300 140) # ----------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 141) # It is okay to use these file commands and assume they have been set
868b2b66 (kx 2024-12-20 16:11:07 +0300 142) # sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'.
868b2b66 (kx 2024-12-20 16:11:07 +0300 143) m4_defun([_LT_FILEUTILS_DEFAULTS],
868b2b66 (kx 2024-12-20 16:11:07 +0300 144) [: ${CP="cp -f"}
868b2b66 (kx 2024-12-20 16:11:07 +0300 145) : ${MV="mv -f"}
868b2b66 (kx 2024-12-20 16:11:07 +0300 146) : ${RM="rm -f"}
868b2b66 (kx 2024-12-20 16:11:07 +0300 147) ])# _LT_FILEUTILS_DEFAULTS
868b2b66 (kx 2024-12-20 16:11:07 +0300 148)
868b2b66 (kx 2024-12-20 16:11:07 +0300 149)
868b2b66 (kx 2024-12-20 16:11:07 +0300 150) # _LT_SETUP
868b2b66 (kx 2024-12-20 16:11:07 +0300 151) # ---------
868b2b66 (kx 2024-12-20 16:11:07 +0300 152) m4_defun([_LT_SETUP],
868b2b66 (kx 2024-12-20 16:11:07 +0300 153) [AC_REQUIRE([AC_CANONICAL_HOST])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 154) AC_REQUIRE([AC_CANONICAL_BUILD])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 155) AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 156) AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 157)
868b2b66 (kx 2024-12-20 16:11:07 +0300 158) _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 159) dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 160) _LT_DECL([], [host_alias], [0], [The host system])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 161) _LT_DECL([], [host], [0])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 162) _LT_DECL([], [host_os], [0])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 163) dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 164) _LT_DECL([], [build_alias], [0], [The build system])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 165) _LT_DECL([], [build], [0])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 166) _LT_DECL([], [build_os], [0])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 167) dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 168) AC_REQUIRE([AC_PROG_CC])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 169) AC_REQUIRE([LT_PATH_LD])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 170) AC_REQUIRE([LT_PATH_NM])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 171) dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 172) AC_REQUIRE([AC_PROG_LN_S])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 173) test -z "$LN_S" && LN_S="ln -s"
868b2b66 (kx 2024-12-20 16:11:07 +0300 174) _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 175) dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 176) AC_REQUIRE([LT_CMD_MAX_LEN])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 177) _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 178) _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 179) dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 180) m4_require([_LT_FILEUTILS_DEFAULTS])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 181) m4_require([_LT_CHECK_SHELL_FEATURES])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 182) m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 183) m4_require([_LT_CMD_RELOAD])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 184) m4_require([_LT_CHECK_MAGIC_METHOD])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 185) m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 186) m4_require([_LT_CMD_OLD_ARCHIVE])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 187) m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 188) m4_require([_LT_WITH_SYSROOT])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 189) m4_require([_LT_CMD_TRUNCATE])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 190)
868b2b66 (kx 2024-12-20 16:11:07 +0300 191) _LT_CONFIG_LIBTOOL_INIT([
868b2b66 (kx 2024-12-20 16:11:07 +0300 192) # See if we are running on zsh, and set the options that allow our
868b2b66 (kx 2024-12-20 16:11:07 +0300 193) # commands through without removal of \ escapes INIT.
868b2b66 (kx 2024-12-20 16:11:07 +0300 194) if test -n "\${ZSH_VERSION+set}"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 195) setopt NO_GLOB_SUBST
868b2b66 (kx 2024-12-20 16:11:07 +0300 196) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 197) ])
868b2b66 (kx 2024-12-20 16:11:07 +0300 198) if test -n "${ZSH_VERSION+set}"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 199) setopt NO_GLOB_SUBST
868b2b66 (kx 2024-12-20 16:11:07 +0300 200) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 201)
868b2b66 (kx 2024-12-20 16:11:07 +0300 202) _LT_CHECK_OBJDIR
868b2b66 (kx 2024-12-20 16:11:07 +0300 203)
868b2b66 (kx 2024-12-20 16:11:07 +0300 204) m4_require([_LT_TAG_COMPILER])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 205)
868b2b66 (kx 2024-12-20 16:11:07 +0300 206) case $host_os in
868b2b66 (kx 2024-12-20 16:11:07 +0300 207) aix3*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 208) # AIX sometimes has problems with the GCC collect2 program. For some
868b2b66 (kx 2024-12-20 16:11:07 +0300 209) # reason, if we set the COLLECT_NAMES environment variable, the problems
868b2b66 (kx 2024-12-20 16:11:07 +0300 210) # vanish in a puff of smoke.
868b2b66 (kx 2024-12-20 16:11:07 +0300 211) if test set != "${COLLECT_NAMES+set}"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 212) COLLECT_NAMES=
868b2b66 (kx 2024-12-20 16:11:07 +0300 213) export COLLECT_NAMES
868b2b66 (kx 2024-12-20 16:11:07 +0300 214) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 215) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 216) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 217)
868b2b66 (kx 2024-12-20 16:11:07 +0300 218) # Global variables:
868b2b66 (kx 2024-12-20 16:11:07 +0300 219) ofile=libtool
868b2b66 (kx 2024-12-20 16:11:07 +0300 220) can_build_shared=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 221)
868b2b66 (kx 2024-12-20 16:11:07 +0300 222) # All known linkers require a '.a' archive for static linking (except MSVC,
868b2b66 (kx 2024-12-20 16:11:07 +0300 223) # which needs '.lib').
868b2b66 (kx 2024-12-20 16:11:07 +0300 224) libext=a
868b2b66 (kx 2024-12-20 16:11:07 +0300 225)
868b2b66 (kx 2024-12-20 16:11:07 +0300 226) with_gnu_ld=$lt_cv_prog_gnu_ld
868b2b66 (kx 2024-12-20 16:11:07 +0300 227)
868b2b66 (kx 2024-12-20 16:11:07 +0300 228) old_CC=$CC
868b2b66 (kx 2024-12-20 16:11:07 +0300 229) old_CFLAGS=$CFLAGS
868b2b66 (kx 2024-12-20 16:11:07 +0300 230)
868b2b66 (kx 2024-12-20 16:11:07 +0300 231) # Set sane defaults for various variables
868b2b66 (kx 2024-12-20 16:11:07 +0300 232) test -z "$CC" && CC=cc
868b2b66 (kx 2024-12-20 16:11:07 +0300 233) test -z "$LTCC" && LTCC=$CC
868b2b66 (kx 2024-12-20 16:11:07 +0300 234) test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
868b2b66 (kx 2024-12-20 16:11:07 +0300 235) test -z "$LD" && LD=ld
868b2b66 (kx 2024-12-20 16:11:07 +0300 236) test -z "$ac_objext" && ac_objext=o
868b2b66 (kx 2024-12-20 16:11:07 +0300 237)
868b2b66 (kx 2024-12-20 16:11:07 +0300 238) _LT_CC_BASENAME([$compiler])
868b2b66 (kx 2024-12-20 16:11:07 +0300 239)
868b2b66 (kx 2024-12-20 16:11:07 +0300 240) # Only perform the check for file, if the check method requires it
868b2b66 (kx 2024-12-20 16:11:07 +0300 241) test -z "$MAGIC_CMD" && MAGIC_CMD=file
868b2b66 (kx 2024-12-20 16:11:07 +0300 242) case $deplibs_check_method in
868b2b66 (kx 2024-12-20 16:11:07 +0300 243) file_magic*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 244) if test "$file_magic_cmd" = '$MAGIC_CMD'; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 245) _LT_PATH_MAGIC
868b2b66 (kx 2024-12-20 16:11:07 +0300 246) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 247) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 248) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 249)
868b2b66 (kx 2024-12-20 16:11:07 +0300 250) # Use C for the default configuration in the libtool script
868b2b66 (kx 2024-12-20 16:11:07 +0300 251) LT_SUPPORTED_TAG([CC])
868b2b66 (kx 2024-12-20 16:11:07 +0300 252) _LT_LANG_C_CONFIG
868b2b66 (kx 2024-12-20 16:11:07 +0300 253) _LT_LANG_DEFAULT_CONFIG
868b2b66 (kx 2024-12-20 16:11:07 +0300 254) _LT_CONFIG_COMMANDS
868b2b66 (kx 2024-12-20 16:11:07 +0300 255) ])# _LT_SETUP
868b2b66 (kx 2024-12-20 16:11:07 +0300 256)
868b2b66 (kx 2024-12-20 16:11:07 +0300 257)
868b2b66 (kx 2024-12-20 16:11:07 +0300 258) # _LT_PREPARE_SED_QUOTE_VARS
868b2b66 (kx 2024-12-20 16:11:07 +0300 259) # --------------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 260) # Define a few sed substitution that help us do robust quoting.
868b2b66 (kx 2024-12-20 16:11:07 +0300 261) m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
868b2b66 (kx 2024-12-20 16:11:07 +0300 262) [# Backslashify metacharacters that are still active within
868b2b66 (kx 2024-12-20 16:11:07 +0300 263) # double-quoted strings.
868b2b66 (kx 2024-12-20 16:11:07 +0300 264) sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
868b2b66 (kx 2024-12-20 16:11:07 +0300 265)
868b2b66 (kx 2024-12-20 16:11:07 +0300 266) # Same as above, but do not quote variable references.
868b2b66 (kx 2024-12-20 16:11:07 +0300 267) double_quote_subst='s/\([["`\\]]\)/\\\1/g'
868b2b66 (kx 2024-12-20 16:11:07 +0300 268)
868b2b66 (kx 2024-12-20 16:11:07 +0300 269) # Sed substitution to delay expansion of an escaped shell variable in a
868b2b66 (kx 2024-12-20 16:11:07 +0300 270) # double_quote_subst'ed string.
868b2b66 (kx 2024-12-20 16:11:07 +0300 271) delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
868b2b66 (kx 2024-12-20 16:11:07 +0300 272)
868b2b66 (kx 2024-12-20 16:11:07 +0300 273) # Sed substitution to delay expansion of an escaped single quote.
868b2b66 (kx 2024-12-20 16:11:07 +0300 274) delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
868b2b66 (kx 2024-12-20 16:11:07 +0300 275)
868b2b66 (kx 2024-12-20 16:11:07 +0300 276) # Sed substitution to avoid accidental globbing in evaled expressions
868b2b66 (kx 2024-12-20 16:11:07 +0300 277) no_glob_subst='s/\*/\\\*/g'
868b2b66 (kx 2024-12-20 16:11:07 +0300 278) ])
868b2b66 (kx 2024-12-20 16:11:07 +0300 279)
868b2b66 (kx 2024-12-20 16:11:07 +0300 280) # _LT_PROG_LTMAIN
868b2b66 (kx 2024-12-20 16:11:07 +0300 281) # ---------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 282) # Note that this code is called both from 'configure', and 'config.status'
868b2b66 (kx 2024-12-20 16:11:07 +0300 283) # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
868b2b66 (kx 2024-12-20 16:11:07 +0300 284) # 'config.status' has no value for ac_aux_dir unless we are using Automake,
868b2b66 (kx 2024-12-20 16:11:07 +0300 285) # so we pass a copy along to make sure it has a sensible value anyway.
868b2b66 (kx 2024-12-20 16:11:07 +0300 286) m4_defun([_LT_PROG_LTMAIN],
868b2b66 (kx 2024-12-20 16:11:07 +0300 287) [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 288) _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
868b2b66 (kx 2024-12-20 16:11:07 +0300 289) ltmain=$ac_aux_dir/ltmain.sh
868b2b66 (kx 2024-12-20 16:11:07 +0300 290) ])# _LT_PROG_LTMAIN
868b2b66 (kx 2024-12-20 16:11:07 +0300 291)
868b2b66 (kx 2024-12-20 16:11:07 +0300 292)
868b2b66 (kx 2024-12-20 16:11:07 +0300 293) ## ------------------------------------- ##
868b2b66 (kx 2024-12-20 16:11:07 +0300 294) ## Accumulate code for creating libtool. ##
868b2b66 (kx 2024-12-20 16:11:07 +0300 295) ## ------------------------------------- ##
868b2b66 (kx 2024-12-20 16:11:07 +0300 296)
868b2b66 (kx 2024-12-20 16:11:07 +0300 297) # So that we can recreate a full libtool script including additional
868b2b66 (kx 2024-12-20 16:11:07 +0300 298) # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
868b2b66 (kx 2024-12-20 16:11:07 +0300 299) # in macros and then make a single call at the end using the 'libtool'
868b2b66 (kx 2024-12-20 16:11:07 +0300 300) # label.
868b2b66 (kx 2024-12-20 16:11:07 +0300 301)
868b2b66 (kx 2024-12-20 16:11:07 +0300 302)
868b2b66 (kx 2024-12-20 16:11:07 +0300 303) # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
868b2b66 (kx 2024-12-20 16:11:07 +0300 304) # ----------------------------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 305) # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
868b2b66 (kx 2024-12-20 16:11:07 +0300 306) m4_define([_LT_CONFIG_LIBTOOL_INIT],
868b2b66 (kx 2024-12-20 16:11:07 +0300 307) [m4_ifval([$1],
868b2b66 (kx 2024-12-20 16:11:07 +0300 308) [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
868b2b66 (kx 2024-12-20 16:11:07 +0300 309) [$1
868b2b66 (kx 2024-12-20 16:11:07 +0300 310) ])])])
868b2b66 (kx 2024-12-20 16:11:07 +0300 311)
868b2b66 (kx 2024-12-20 16:11:07 +0300 312) # Initialize.
868b2b66 (kx 2024-12-20 16:11:07 +0300 313) m4_define([_LT_OUTPUT_LIBTOOL_INIT])
868b2b66 (kx 2024-12-20 16:11:07 +0300 314)
868b2b66 (kx 2024-12-20 16:11:07 +0300 315)
868b2b66 (kx 2024-12-20 16:11:07 +0300 316) # _LT_CONFIG_LIBTOOL([COMMANDS])
868b2b66 (kx 2024-12-20 16:11:07 +0300 317) # ------------------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 318) # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
868b2b66 (kx 2024-12-20 16:11:07 +0300 319) m4_define([_LT_CONFIG_LIBTOOL],
868b2b66 (kx 2024-12-20 16:11:07 +0300 320) [m4_ifval([$1],
868b2b66 (kx 2024-12-20 16:11:07 +0300 321) [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
868b2b66 (kx 2024-12-20 16:11:07 +0300 322) [$1
868b2b66 (kx 2024-12-20 16:11:07 +0300 323) ])])])
868b2b66 (kx 2024-12-20 16:11:07 +0300 324)
868b2b66 (kx 2024-12-20 16:11:07 +0300 325) # Initialize.
868b2b66 (kx 2024-12-20 16:11:07 +0300 326) m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
868b2b66 (kx 2024-12-20 16:11:07 +0300 327)
868b2b66 (kx 2024-12-20 16:11:07 +0300 328)
868b2b66 (kx 2024-12-20 16:11:07 +0300 329) # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
868b2b66 (kx 2024-12-20 16:11:07 +0300 330) # -----------------------------------------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 331) m4_defun([_LT_CONFIG_SAVE_COMMANDS],
868b2b66 (kx 2024-12-20 16:11:07 +0300 332) [_LT_CONFIG_LIBTOOL([$1])
868b2b66 (kx 2024-12-20 16:11:07 +0300 333) _LT_CONFIG_LIBTOOL_INIT([$2])
868b2b66 (kx 2024-12-20 16:11:07 +0300 334) ])
868b2b66 (kx 2024-12-20 16:11:07 +0300 335)
868b2b66 (kx 2024-12-20 16:11:07 +0300 336)
868b2b66 (kx 2024-12-20 16:11:07 +0300 337) # _LT_FORMAT_COMMENT([COMMENT])
868b2b66 (kx 2024-12-20 16:11:07 +0300 338) # -----------------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 339) # Add leading comment marks to the start of each line, and a trailing
868b2b66 (kx 2024-12-20 16:11:07 +0300 340) # full-stop to the whole comment if one is not present already.
868b2b66 (kx 2024-12-20 16:11:07 +0300 341) m4_define([_LT_FORMAT_COMMENT],
868b2b66 (kx 2024-12-20 16:11:07 +0300 342) [m4_ifval([$1], [
868b2b66 (kx 2024-12-20 16:11:07 +0300 343) m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
868b2b66 (kx 2024-12-20 16:11:07 +0300 344) [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
868b2b66 (kx 2024-12-20 16:11:07 +0300 345) )])
868b2b66 (kx 2024-12-20 16:11:07 +0300 346)
868b2b66 (kx 2024-12-20 16:11:07 +0300 347)
868b2b66 (kx 2024-12-20 16:11:07 +0300 348)
868b2b66 (kx 2024-12-20 16:11:07 +0300 349) ## ------------------------ ##
868b2b66 (kx 2024-12-20 16:11:07 +0300 350) ## FIXME: Eliminate VARNAME ##
868b2b66 (kx 2024-12-20 16:11:07 +0300 351) ## ------------------------ ##
868b2b66 (kx 2024-12-20 16:11:07 +0300 352)
868b2b66 (kx 2024-12-20 16:11:07 +0300 353)
868b2b66 (kx 2024-12-20 16:11:07 +0300 354) # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
868b2b66 (kx 2024-12-20 16:11:07 +0300 355) # -------------------------------------------------------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 356) # CONFIGNAME is the name given to the value in the libtool script.
868b2b66 (kx 2024-12-20 16:11:07 +0300 357) # VARNAME is the (base) name used in the configure script.
868b2b66 (kx 2024-12-20 16:11:07 +0300 358) # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
868b2b66 (kx 2024-12-20 16:11:07 +0300 359) # VARNAME. Any other value will be used directly.
868b2b66 (kx 2024-12-20 16:11:07 +0300 360) m4_define([_LT_DECL],
868b2b66 (kx 2024-12-20 16:11:07 +0300 361) [lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
868b2b66 (kx 2024-12-20 16:11:07 +0300 362) [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
868b2b66 (kx 2024-12-20 16:11:07 +0300 363) [m4_ifval([$1], [$1], [$2])])
868b2b66 (kx 2024-12-20 16:11:07 +0300 364) lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
868b2b66 (kx 2024-12-20 16:11:07 +0300 365) m4_ifval([$4],
868b2b66 (kx 2024-12-20 16:11:07 +0300 366) [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
868b2b66 (kx 2024-12-20 16:11:07 +0300 367) lt_dict_add_subkey([lt_decl_dict], [$2],
868b2b66 (kx 2024-12-20 16:11:07 +0300 368) [tagged?], [m4_ifval([$5], [yes], [no])])])
868b2b66 (kx 2024-12-20 16:11:07 +0300 369) ])
868b2b66 (kx 2024-12-20 16:11:07 +0300 370)
868b2b66 (kx 2024-12-20 16:11:07 +0300 371)
868b2b66 (kx 2024-12-20 16:11:07 +0300 372) # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
868b2b66 (kx 2024-12-20 16:11:07 +0300 373) # --------------------------------------------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 374) m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
868b2b66 (kx 2024-12-20 16:11:07 +0300 375)
868b2b66 (kx 2024-12-20 16:11:07 +0300 376)
868b2b66 (kx 2024-12-20 16:11:07 +0300 377) # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
868b2b66 (kx 2024-12-20 16:11:07 +0300 378) # ------------------------------------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 379) m4_define([lt_decl_tag_varnames],
868b2b66 (kx 2024-12-20 16:11:07 +0300 380) [_lt_decl_filter([tagged?], [yes], $@)])
868b2b66 (kx 2024-12-20 16:11:07 +0300 381)
868b2b66 (kx 2024-12-20 16:11:07 +0300 382)
868b2b66 (kx 2024-12-20 16:11:07 +0300 383) # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
868b2b66 (kx 2024-12-20 16:11:07 +0300 384) # ---------------------------------------------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 385) m4_define([_lt_decl_filter],
868b2b66 (kx 2024-12-20 16:11:07 +0300 386) [m4_case([$#],
868b2b66 (kx 2024-12-20 16:11:07 +0300 387) [0], [m4_fatal([$0: too few arguments: $#])],
868b2b66 (kx 2024-12-20 16:11:07 +0300 388) [1], [m4_fatal([$0: too few arguments: $#: $1])],
868b2b66 (kx 2024-12-20 16:11:07 +0300 389) [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
868b2b66 (kx 2024-12-20 16:11:07 +0300 390) [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
868b2b66 (kx 2024-12-20 16:11:07 +0300 391) [lt_dict_filter([lt_decl_dict], $@)])[]dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 392) ])
868b2b66 (kx 2024-12-20 16:11:07 +0300 393)
868b2b66 (kx 2024-12-20 16:11:07 +0300 394)
868b2b66 (kx 2024-12-20 16:11:07 +0300 395) # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
868b2b66 (kx 2024-12-20 16:11:07 +0300 396) # --------------------------------------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 397) m4_define([lt_decl_quote_varnames],
868b2b66 (kx 2024-12-20 16:11:07 +0300 398) [_lt_decl_filter([value], [1], $@)])
868b2b66 (kx 2024-12-20 16:11:07 +0300 399)
868b2b66 (kx 2024-12-20 16:11:07 +0300 400)
868b2b66 (kx 2024-12-20 16:11:07 +0300 401) # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
868b2b66 (kx 2024-12-20 16:11:07 +0300 402) # ---------------------------------------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 403) m4_define([lt_decl_dquote_varnames],
868b2b66 (kx 2024-12-20 16:11:07 +0300 404) [_lt_decl_filter([value], [2], $@)])
868b2b66 (kx 2024-12-20 16:11:07 +0300 405)
868b2b66 (kx 2024-12-20 16:11:07 +0300 406)
868b2b66 (kx 2024-12-20 16:11:07 +0300 407) # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
868b2b66 (kx 2024-12-20 16:11:07 +0300 408) # ---------------------------------------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 409) m4_define([lt_decl_varnames_tagged],
868b2b66 (kx 2024-12-20 16:11:07 +0300 410) [m4_assert([$# <= 2])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 411) _$0(m4_quote(m4_default([$1], [[, ]])),
868b2b66 (kx 2024-12-20 16:11:07 +0300 412) m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
868b2b66 (kx 2024-12-20 16:11:07 +0300 413) m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
868b2b66 (kx 2024-12-20 16:11:07 +0300 414) m4_define([_lt_decl_varnames_tagged],
868b2b66 (kx 2024-12-20 16:11:07 +0300 415) [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
868b2b66 (kx 2024-12-20 16:11:07 +0300 416)
868b2b66 (kx 2024-12-20 16:11:07 +0300 417)
868b2b66 (kx 2024-12-20 16:11:07 +0300 418) # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
868b2b66 (kx 2024-12-20 16:11:07 +0300 419) # ------------------------------------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 420) m4_define([lt_decl_all_varnames],
868b2b66 (kx 2024-12-20 16:11:07 +0300 421) [_$0(m4_quote(m4_default([$1], [[, ]])),
868b2b66 (kx 2024-12-20 16:11:07 +0300 422) m4_if([$2], [],
868b2b66 (kx 2024-12-20 16:11:07 +0300 423) m4_quote(lt_decl_varnames),
868b2b66 (kx 2024-12-20 16:11:07 +0300 424) m4_quote(m4_shift($@))))[]dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 425) ])
868b2b66 (kx 2024-12-20 16:11:07 +0300 426) m4_define([_lt_decl_all_varnames],
868b2b66 (kx 2024-12-20 16:11:07 +0300 427) [lt_join($@, lt_decl_varnames_tagged([$1],
868b2b66 (kx 2024-12-20 16:11:07 +0300 428) lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 429) ])
868b2b66 (kx 2024-12-20 16:11:07 +0300 430)
868b2b66 (kx 2024-12-20 16:11:07 +0300 431)
868b2b66 (kx 2024-12-20 16:11:07 +0300 432) # _LT_CONFIG_STATUS_DECLARE([VARNAME])
868b2b66 (kx 2024-12-20 16:11:07 +0300 433) # ------------------------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 434) # Quote a variable value, and forward it to 'config.status' so that its
868b2b66 (kx 2024-12-20 16:11:07 +0300 435) # declaration there will have the same value as in 'configure'. VARNAME
868b2b66 (kx 2024-12-20 16:11:07 +0300 436) # must have a single quote delimited value for this to work.
868b2b66 (kx 2024-12-20 16:11:07 +0300 437) m4_define([_LT_CONFIG_STATUS_DECLARE],
868b2b66 (kx 2024-12-20 16:11:07 +0300 438) [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
868b2b66 (kx 2024-12-20 16:11:07 +0300 439)
868b2b66 (kx 2024-12-20 16:11:07 +0300 440)
868b2b66 (kx 2024-12-20 16:11:07 +0300 441) # _LT_CONFIG_STATUS_DECLARATIONS
868b2b66 (kx 2024-12-20 16:11:07 +0300 442) # ------------------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 443) # We delimit libtool config variables with single quotes, so when
868b2b66 (kx 2024-12-20 16:11:07 +0300 444) # we write them to config.status, we have to be sure to quote all
868b2b66 (kx 2024-12-20 16:11:07 +0300 445) # embedded single quotes properly. In configure, this macro expands
868b2b66 (kx 2024-12-20 16:11:07 +0300 446) # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
868b2b66 (kx 2024-12-20 16:11:07 +0300 447) #
868b2b66 (kx 2024-12-20 16:11:07 +0300 448) # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
868b2b66 (kx 2024-12-20 16:11:07 +0300 449) m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
868b2b66 (kx 2024-12-20 16:11:07 +0300 450) [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
868b2b66 (kx 2024-12-20 16:11:07 +0300 451) [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
868b2b66 (kx 2024-12-20 16:11:07 +0300 452)
868b2b66 (kx 2024-12-20 16:11:07 +0300 453)
868b2b66 (kx 2024-12-20 16:11:07 +0300 454) # _LT_LIBTOOL_TAGS
868b2b66 (kx 2024-12-20 16:11:07 +0300 455) # ----------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 456) # Output comment and list of tags supported by the script
868b2b66 (kx 2024-12-20 16:11:07 +0300 457) m4_defun([_LT_LIBTOOL_TAGS],
868b2b66 (kx 2024-12-20 16:11:07 +0300 458) [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 459) available_tags='_LT_TAGS'dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 460) ])
868b2b66 (kx 2024-12-20 16:11:07 +0300 461)
868b2b66 (kx 2024-12-20 16:11:07 +0300 462)
868b2b66 (kx 2024-12-20 16:11:07 +0300 463) # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
868b2b66 (kx 2024-12-20 16:11:07 +0300 464) # -----------------------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 465) # Extract the dictionary values for VARNAME (optionally with TAG) and
868b2b66 (kx 2024-12-20 16:11:07 +0300 466) # expand to a commented shell variable setting:
868b2b66 (kx 2024-12-20 16:11:07 +0300 467) #
868b2b66 (kx 2024-12-20 16:11:07 +0300 468) # # Some comment about what VAR is for.
868b2b66 (kx 2024-12-20 16:11:07 +0300 469) # visible_name=$lt_internal_name
868b2b66 (kx 2024-12-20 16:11:07 +0300 470) m4_define([_LT_LIBTOOL_DECLARE],
868b2b66 (kx 2024-12-20 16:11:07 +0300 471) [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
868b2b66 (kx 2024-12-20 16:11:07 +0300 472) [description])))[]dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 473) m4_pushdef([_libtool_name],
868b2b66 (kx 2024-12-20 16:11:07 +0300 474) m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 475) m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
868b2b66 (kx 2024-12-20 16:11:07 +0300 476) [0], [_libtool_name=[$]$1],
868b2b66 (kx 2024-12-20 16:11:07 +0300 477) [1], [_libtool_name=$lt_[]$1],
868b2b66 (kx 2024-12-20 16:11:07 +0300 478) [2], [_libtool_name=$lt_[]$1],
868b2b66 (kx 2024-12-20 16:11:07 +0300 479) [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 480) m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 481) ])
868b2b66 (kx 2024-12-20 16:11:07 +0300 482)
868b2b66 (kx 2024-12-20 16:11:07 +0300 483)
868b2b66 (kx 2024-12-20 16:11:07 +0300 484) # _LT_LIBTOOL_CONFIG_VARS
868b2b66 (kx 2024-12-20 16:11:07 +0300 485) # -----------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 486) # Produce commented declarations of non-tagged libtool config variables
868b2b66 (kx 2024-12-20 16:11:07 +0300 487) # suitable for insertion in the LIBTOOL CONFIG section of the 'libtool'
868b2b66 (kx 2024-12-20 16:11:07 +0300 488) # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
868b2b66 (kx 2024-12-20 16:11:07 +0300 489) # section) are produced by _LT_LIBTOOL_TAG_VARS.
868b2b66 (kx 2024-12-20 16:11:07 +0300 490) m4_defun([_LT_LIBTOOL_CONFIG_VARS],
868b2b66 (kx 2024-12-20 16:11:07 +0300 491) [m4_foreach([_lt_var],
868b2b66 (kx 2024-12-20 16:11:07 +0300 492) m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
868b2b66 (kx 2024-12-20 16:11:07 +0300 493) [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
868b2b66 (kx 2024-12-20 16:11:07 +0300 494)
868b2b66 (kx 2024-12-20 16:11:07 +0300 495)
868b2b66 (kx 2024-12-20 16:11:07 +0300 496) # _LT_LIBTOOL_TAG_VARS(TAG)
868b2b66 (kx 2024-12-20 16:11:07 +0300 497) # -------------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 498) m4_define([_LT_LIBTOOL_TAG_VARS],
868b2b66 (kx 2024-12-20 16:11:07 +0300 499) [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
868b2b66 (kx 2024-12-20 16:11:07 +0300 500) [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
868b2b66 (kx 2024-12-20 16:11:07 +0300 501)
868b2b66 (kx 2024-12-20 16:11:07 +0300 502)
868b2b66 (kx 2024-12-20 16:11:07 +0300 503) # _LT_TAGVAR(VARNAME, [TAGNAME])
868b2b66 (kx 2024-12-20 16:11:07 +0300 504) # ------------------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 505) m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
868b2b66 (kx 2024-12-20 16:11:07 +0300 506)
868b2b66 (kx 2024-12-20 16:11:07 +0300 507)
868b2b66 (kx 2024-12-20 16:11:07 +0300 508) # _LT_CONFIG_COMMANDS
868b2b66 (kx 2024-12-20 16:11:07 +0300 509) # -------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 510) # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
868b2b66 (kx 2024-12-20 16:11:07 +0300 511) # variables for single and double quote escaping we saved from calls
868b2b66 (kx 2024-12-20 16:11:07 +0300 512) # to _LT_DECL, we can put quote escaped variables declarations
868b2b66 (kx 2024-12-20 16:11:07 +0300 513) # into 'config.status', and then the shell code to quote escape them in
868b2b66 (kx 2024-12-20 16:11:07 +0300 514) # for loops in 'config.status'. Finally, any additional code accumulated
868b2b66 (kx 2024-12-20 16:11:07 +0300 515) # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
868b2b66 (kx 2024-12-20 16:11:07 +0300 516) m4_defun([_LT_CONFIG_COMMANDS],
868b2b66 (kx 2024-12-20 16:11:07 +0300 517) [AC_PROVIDE_IFELSE([LT_OUTPUT],
868b2b66 (kx 2024-12-20 16:11:07 +0300 518) dnl If the libtool generation code has been placed in $CONFIG_LT,
868b2b66 (kx 2024-12-20 16:11:07 +0300 519) dnl instead of duplicating it all over again into config.status,
868b2b66 (kx 2024-12-20 16:11:07 +0300 520) dnl then we will have config.status run $CONFIG_LT later, so it
868b2b66 (kx 2024-12-20 16:11:07 +0300 521) dnl needs to know what name is stored there:
868b2b66 (kx 2024-12-20 16:11:07 +0300 522) [AC_CONFIG_COMMANDS([libtool],
868b2b66 (kx 2024-12-20 16:11:07 +0300 523) [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
868b2b66 (kx 2024-12-20 16:11:07 +0300 524) dnl If the libtool generation code is destined for config.status,
868b2b66 (kx 2024-12-20 16:11:07 +0300 525) dnl expand the accumulated commands and init code now:
868b2b66 (kx 2024-12-20 16:11:07 +0300 526) [AC_CONFIG_COMMANDS([libtool],
868b2b66 (kx 2024-12-20 16:11:07 +0300 527) [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
868b2b66 (kx 2024-12-20 16:11:07 +0300 528) ])#_LT_CONFIG_COMMANDS
868b2b66 (kx 2024-12-20 16:11:07 +0300 529)
868b2b66 (kx 2024-12-20 16:11:07 +0300 530)
868b2b66 (kx 2024-12-20 16:11:07 +0300 531) # Initialize.
868b2b66 (kx 2024-12-20 16:11:07 +0300 532) m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
868b2b66 (kx 2024-12-20 16:11:07 +0300 533) [
868b2b66 (kx 2024-12-20 16:11:07 +0300 534)
868b2b66 (kx 2024-12-20 16:11:07 +0300 535) # The HP-UX ksh and POSIX shell print the target directory to stdout
868b2b66 (kx 2024-12-20 16:11:07 +0300 536) # if CDPATH is set.
868b2b66 (kx 2024-12-20 16:11:07 +0300 537) (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
868b2b66 (kx 2024-12-20 16:11:07 +0300 538)
868b2b66 (kx 2024-12-20 16:11:07 +0300 539) sed_quote_subst='$sed_quote_subst'
868b2b66 (kx 2024-12-20 16:11:07 +0300 540) double_quote_subst='$double_quote_subst'
868b2b66 (kx 2024-12-20 16:11:07 +0300 541) delay_variable_subst='$delay_variable_subst'
868b2b66 (kx 2024-12-20 16:11:07 +0300 542) _LT_CONFIG_STATUS_DECLARATIONS
868b2b66 (kx 2024-12-20 16:11:07 +0300 543) LTCC='$LTCC'
868b2b66 (kx 2024-12-20 16:11:07 +0300 544) LTCFLAGS='$LTCFLAGS'
868b2b66 (kx 2024-12-20 16:11:07 +0300 545) compiler='$compiler_DEFAULT'
868b2b66 (kx 2024-12-20 16:11:07 +0300 546)
868b2b66 (kx 2024-12-20 16:11:07 +0300 547) # A function that is used when there is no print builtin or printf.
868b2b66 (kx 2024-12-20 16:11:07 +0300 548) func_fallback_echo ()
868b2b66 (kx 2024-12-20 16:11:07 +0300 549) {
868b2b66 (kx 2024-12-20 16:11:07 +0300 550) eval 'cat <<_LTECHO_EOF
868b2b66 (kx 2024-12-20 16:11:07 +0300 551) \$[]1
868b2b66 (kx 2024-12-20 16:11:07 +0300 552) _LTECHO_EOF'
868b2b66 (kx 2024-12-20 16:11:07 +0300 553) }
868b2b66 (kx 2024-12-20 16:11:07 +0300 554)
868b2b66 (kx 2024-12-20 16:11:07 +0300 555) # Quote evaled strings.
868b2b66 (kx 2024-12-20 16:11:07 +0300 556) for var in lt_decl_all_varnames([[ \
868b2b66 (kx 2024-12-20 16:11:07 +0300 557) ]], lt_decl_quote_varnames); do
868b2b66 (kx 2024-12-20 16:11:07 +0300 558) case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
868b2b66 (kx 2024-12-20 16:11:07 +0300 559) *[[\\\\\\\`\\"\\\$]]*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 560) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
868b2b66 (kx 2024-12-20 16:11:07 +0300 561) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 562) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 563) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
868b2b66 (kx 2024-12-20 16:11:07 +0300 564) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 565) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 566) done
868b2b66 (kx 2024-12-20 16:11:07 +0300 567)
868b2b66 (kx 2024-12-20 16:11:07 +0300 568) # Double-quote double-evaled strings.
868b2b66 (kx 2024-12-20 16:11:07 +0300 569) for var in lt_decl_all_varnames([[ \
868b2b66 (kx 2024-12-20 16:11:07 +0300 570) ]], lt_decl_dquote_varnames); do
868b2b66 (kx 2024-12-20 16:11:07 +0300 571) case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
868b2b66 (kx 2024-12-20 16:11:07 +0300 572) *[[\\\\\\\`\\"\\\$]]*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 573) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
868b2b66 (kx 2024-12-20 16:11:07 +0300 574) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 575) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 576) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
868b2b66 (kx 2024-12-20 16:11:07 +0300 577) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 578) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 579) done
868b2b66 (kx 2024-12-20 16:11:07 +0300 580)
868b2b66 (kx 2024-12-20 16:11:07 +0300 581) _LT_OUTPUT_LIBTOOL_INIT
868b2b66 (kx 2024-12-20 16:11:07 +0300 582) ])
868b2b66 (kx 2024-12-20 16:11:07 +0300 583)
868b2b66 (kx 2024-12-20 16:11:07 +0300 584) # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
868b2b66 (kx 2024-12-20 16:11:07 +0300 585) # ------------------------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 586) # Generate a child script FILE with all initialization necessary to
868b2b66 (kx 2024-12-20 16:11:07 +0300 587) # reuse the environment learned by the parent script, and make the
868b2b66 (kx 2024-12-20 16:11:07 +0300 588) # file executable. If COMMENT is supplied, it is inserted after the
868b2b66 (kx 2024-12-20 16:11:07 +0300 589) # '#!' sequence but before initialization text begins. After this
868b2b66 (kx 2024-12-20 16:11:07 +0300 590) # macro, additional text can be appended to FILE to form the body of
868b2b66 (kx 2024-12-20 16:11:07 +0300 591) # the child script. The macro ends with non-zero status if the
868b2b66 (kx 2024-12-20 16:11:07 +0300 592) # file could not be fully written (such as if the disk is full).
868b2b66 (kx 2024-12-20 16:11:07 +0300 593) m4_ifdef([AS_INIT_GENERATED],
868b2b66 (kx 2024-12-20 16:11:07 +0300 594) [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
868b2b66 (kx 2024-12-20 16:11:07 +0300 595) [m4_defun([_LT_GENERATED_FILE_INIT],
868b2b66 (kx 2024-12-20 16:11:07 +0300 596) [m4_require([AS_PREPARE])]dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 597) [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 598) [lt_write_fail=0
868b2b66 (kx 2024-12-20 16:11:07 +0300 599) cat >$1 <<_ASEOF || lt_write_fail=1
868b2b66 (kx 2024-12-20 16:11:07 +0300 600) #! $SHELL
868b2b66 (kx 2024-12-20 16:11:07 +0300 601) # Generated by $as_me.
868b2b66 (kx 2024-12-20 16:11:07 +0300 602) $2
868b2b66 (kx 2024-12-20 16:11:07 +0300 603) SHELL=\${CONFIG_SHELL-$SHELL}
868b2b66 (kx 2024-12-20 16:11:07 +0300 604) export SHELL
868b2b66 (kx 2024-12-20 16:11:07 +0300 605) _ASEOF
868b2b66 (kx 2024-12-20 16:11:07 +0300 606) cat >>$1 <<\_ASEOF || lt_write_fail=1
868b2b66 (kx 2024-12-20 16:11:07 +0300 607) AS_SHELL_SANITIZE
868b2b66 (kx 2024-12-20 16:11:07 +0300 608) _AS_PREPARE
868b2b66 (kx 2024-12-20 16:11:07 +0300 609) exec AS_MESSAGE_FD>&1
868b2b66 (kx 2024-12-20 16:11:07 +0300 610) _ASEOF
868b2b66 (kx 2024-12-20 16:11:07 +0300 611) test 0 = "$lt_write_fail" && chmod +x $1[]dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 612) m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
868b2b66 (kx 2024-12-20 16:11:07 +0300 613)
868b2b66 (kx 2024-12-20 16:11:07 +0300 614) # LT_OUTPUT
868b2b66 (kx 2024-12-20 16:11:07 +0300 615) # ---------
868b2b66 (kx 2024-12-20 16:11:07 +0300 616) # This macro allows early generation of the libtool script (before
868b2b66 (kx 2024-12-20 16:11:07 +0300 617) # AC_OUTPUT is called), incase it is used in configure for compilation
868b2b66 (kx 2024-12-20 16:11:07 +0300 618) # tests.
868b2b66 (kx 2024-12-20 16:11:07 +0300 619) AC_DEFUN([LT_OUTPUT],
868b2b66 (kx 2024-12-20 16:11:07 +0300 620) [: ${CONFIG_LT=./config.lt}
868b2b66 (kx 2024-12-20 16:11:07 +0300 621) AC_MSG_NOTICE([creating $CONFIG_LT])
868b2b66 (kx 2024-12-20 16:11:07 +0300 622) _LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
868b2b66 (kx 2024-12-20 16:11:07 +0300 623) [# Run this file to recreate a libtool stub with the current configuration.])
868b2b66 (kx 2024-12-20 16:11:07 +0300 624)
868b2b66 (kx 2024-12-20 16:11:07 +0300 625) cat >>"$CONFIG_LT" <<\_LTEOF
868b2b66 (kx 2024-12-20 16:11:07 +0300 626) lt_cl_silent=false
868b2b66 (kx 2024-12-20 16:11:07 +0300 627) exec AS_MESSAGE_LOG_FD>>config.log
868b2b66 (kx 2024-12-20 16:11:07 +0300 628) {
868b2b66 (kx 2024-12-20 16:11:07 +0300 629) echo
868b2b66 (kx 2024-12-20 16:11:07 +0300 630) AS_BOX([Running $as_me.])
868b2b66 (kx 2024-12-20 16:11:07 +0300 631) } >&AS_MESSAGE_LOG_FD
868b2b66 (kx 2024-12-20 16:11:07 +0300 632)
868b2b66 (kx 2024-12-20 16:11:07 +0300 633) lt_cl_help="\
868b2b66 (kx 2024-12-20 16:11:07 +0300 634) '$as_me' creates a local libtool stub from the current configuration,
868b2b66 (kx 2024-12-20 16:11:07 +0300 635) for use in further configure time tests before the real libtool is
868b2b66 (kx 2024-12-20 16:11:07 +0300 636) generated.
868b2b66 (kx 2024-12-20 16:11:07 +0300 637)
868b2b66 (kx 2024-12-20 16:11:07 +0300 638) Usage: $[0] [[OPTIONS]]
868b2b66 (kx 2024-12-20 16:11:07 +0300 639)
868b2b66 (kx 2024-12-20 16:11:07 +0300 640) -h, --help print this help, then exit
868b2b66 (kx 2024-12-20 16:11:07 +0300 641) -V, --version print version number, then exit
868b2b66 (kx 2024-12-20 16:11:07 +0300 642) -q, --quiet do not print progress messages
868b2b66 (kx 2024-12-20 16:11:07 +0300 643) -d, --debug don't remove temporary files
868b2b66 (kx 2024-12-20 16:11:07 +0300 644)
868b2b66 (kx 2024-12-20 16:11:07 +0300 645) Report bugs to <bug-libtool@gnu.org>."
868b2b66 (kx 2024-12-20 16:11:07 +0300 646)
868b2b66 (kx 2024-12-20 16:11:07 +0300 647) lt_cl_version="\
868b2b66 (kx 2024-12-20 16:11:07 +0300 648) m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 649) m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
868b2b66 (kx 2024-12-20 16:11:07 +0300 650) configured by $[0], generated by m4_PACKAGE_STRING.
868b2b66 (kx 2024-12-20 16:11:07 +0300 651)
868b2b66 (kx 2024-12-20 16:11:07 +0300 652) Copyright (C) 2011 Free Software Foundation, Inc.
868b2b66 (kx 2024-12-20 16:11:07 +0300 653) This config.lt script is free software; the Free Software Foundation
868b2b66 (kx 2024-12-20 16:11:07 +0300 654) gives unlimited permision to copy, distribute and modify it."
868b2b66 (kx 2024-12-20 16:11:07 +0300 655)
868b2b66 (kx 2024-12-20 16:11:07 +0300 656) while test 0 != $[#]
868b2b66 (kx 2024-12-20 16:11:07 +0300 657) do
868b2b66 (kx 2024-12-20 16:11:07 +0300 658) case $[1] in
868b2b66 (kx 2024-12-20 16:11:07 +0300 659) --version | --v* | -V )
868b2b66 (kx 2024-12-20 16:11:07 +0300 660) echo "$lt_cl_version"; exit 0 ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 661) --help | --h* | -h )
868b2b66 (kx 2024-12-20 16:11:07 +0300 662) echo "$lt_cl_help"; exit 0 ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 663) --debug | --d* | -d )
868b2b66 (kx 2024-12-20 16:11:07 +0300 664) debug=: ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 665) --quiet | --q* | --silent | --s* | -q )
868b2b66 (kx 2024-12-20 16:11:07 +0300 666) lt_cl_silent=: ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 667)
868b2b66 (kx 2024-12-20 16:11:07 +0300 668) -*) AC_MSG_ERROR([unrecognized option: $[1]
868b2b66 (kx 2024-12-20 16:11:07 +0300 669) Try '$[0] --help' for more information.]) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 670)
868b2b66 (kx 2024-12-20 16:11:07 +0300 671) *) AC_MSG_ERROR([unrecognized argument: $[1]
868b2b66 (kx 2024-12-20 16:11:07 +0300 672) Try '$[0] --help' for more information.]) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 673) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 674) shift
868b2b66 (kx 2024-12-20 16:11:07 +0300 675) done
868b2b66 (kx 2024-12-20 16:11:07 +0300 676)
868b2b66 (kx 2024-12-20 16:11:07 +0300 677) if $lt_cl_silent; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 678) exec AS_MESSAGE_FD>/dev/null
868b2b66 (kx 2024-12-20 16:11:07 +0300 679) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 680) _LTEOF
868b2b66 (kx 2024-12-20 16:11:07 +0300 681)
868b2b66 (kx 2024-12-20 16:11:07 +0300 682) cat >>"$CONFIG_LT" <<_LTEOF
868b2b66 (kx 2024-12-20 16:11:07 +0300 683) _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
868b2b66 (kx 2024-12-20 16:11:07 +0300 684) _LTEOF
868b2b66 (kx 2024-12-20 16:11:07 +0300 685)
868b2b66 (kx 2024-12-20 16:11:07 +0300 686) cat >>"$CONFIG_LT" <<\_LTEOF
868b2b66 (kx 2024-12-20 16:11:07 +0300 687) AC_MSG_NOTICE([creating $ofile])
868b2b66 (kx 2024-12-20 16:11:07 +0300 688) _LT_OUTPUT_LIBTOOL_COMMANDS
868b2b66 (kx 2024-12-20 16:11:07 +0300 689) AS_EXIT(0)
868b2b66 (kx 2024-12-20 16:11:07 +0300 690) _LTEOF
868b2b66 (kx 2024-12-20 16:11:07 +0300 691) chmod +x "$CONFIG_LT"
868b2b66 (kx 2024-12-20 16:11:07 +0300 692)
868b2b66 (kx 2024-12-20 16:11:07 +0300 693) # configure is writing to config.log, but config.lt does its own redirection,
868b2b66 (kx 2024-12-20 16:11:07 +0300 694) # appending to config.log, which fails on DOS, as config.log is still kept
868b2b66 (kx 2024-12-20 16:11:07 +0300 695) # open by configure. Here we exec the FD to /dev/null, effectively closing
868b2b66 (kx 2024-12-20 16:11:07 +0300 696) # config.log, so it can be properly (re)opened and appended to by config.lt.
868b2b66 (kx 2024-12-20 16:11:07 +0300 697) lt_cl_success=:
868b2b66 (kx 2024-12-20 16:11:07 +0300 698) test yes = "$silent" &&
868b2b66 (kx 2024-12-20 16:11:07 +0300 699) lt_config_lt_args="$lt_config_lt_args --quiet"
868b2b66 (kx 2024-12-20 16:11:07 +0300 700) exec AS_MESSAGE_LOG_FD>/dev/null
868b2b66 (kx 2024-12-20 16:11:07 +0300 701) $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
868b2b66 (kx 2024-12-20 16:11:07 +0300 702) exec AS_MESSAGE_LOG_FD>>config.log
868b2b66 (kx 2024-12-20 16:11:07 +0300 703) $lt_cl_success || AS_EXIT(1)
868b2b66 (kx 2024-12-20 16:11:07 +0300 704) ])# LT_OUTPUT
868b2b66 (kx 2024-12-20 16:11:07 +0300 705)
868b2b66 (kx 2024-12-20 16:11:07 +0300 706)
868b2b66 (kx 2024-12-20 16:11:07 +0300 707) # _LT_CONFIG(TAG)
868b2b66 (kx 2024-12-20 16:11:07 +0300 708) # ---------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 709) # If TAG is the built-in tag, create an initial libtool script with a
868b2b66 (kx 2024-12-20 16:11:07 +0300 710) # default configuration from the untagged config vars. Otherwise add code
868b2b66 (kx 2024-12-20 16:11:07 +0300 711) # to config.status for appending the configuration named by TAG from the
868b2b66 (kx 2024-12-20 16:11:07 +0300 712) # matching tagged config vars.
868b2b66 (kx 2024-12-20 16:11:07 +0300 713) m4_defun([_LT_CONFIG],
868b2b66 (kx 2024-12-20 16:11:07 +0300 714) [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 715) _LT_CONFIG_SAVE_COMMANDS([
868b2b66 (kx 2024-12-20 16:11:07 +0300 716) m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 717) m4_if(_LT_TAG, [C], [
868b2b66 (kx 2024-12-20 16:11:07 +0300 718) # See if we are running on zsh, and set the options that allow our
868b2b66 (kx 2024-12-20 16:11:07 +0300 719) # commands through without removal of \ escapes.
868b2b66 (kx 2024-12-20 16:11:07 +0300 720) if test -n "${ZSH_VERSION+set}"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 721) setopt NO_GLOB_SUBST
868b2b66 (kx 2024-12-20 16:11:07 +0300 722) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 723)
868b2b66 (kx 2024-12-20 16:11:07 +0300 724) cfgfile=${ofile}T
868b2b66 (kx 2024-12-20 16:11:07 +0300 725) trap "$RM \"$cfgfile\"; exit 1" 1 2 15
868b2b66 (kx 2024-12-20 16:11:07 +0300 726) $RM "$cfgfile"
868b2b66 (kx 2024-12-20 16:11:07 +0300 727)
868b2b66 (kx 2024-12-20 16:11:07 +0300 728) cat <<_LT_EOF >> "$cfgfile"
868b2b66 (kx 2024-12-20 16:11:07 +0300 729) #! $SHELL
868b2b66 (kx 2024-12-20 16:11:07 +0300 730) # Generated automatically by $as_me ($PACKAGE) $VERSION
868b2b66 (kx 2024-12-20 16:11:07 +0300 731) # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
868b2b66 (kx 2024-12-20 16:11:07 +0300 732) # NOTE: Changes made to this file will be lost: look at ltmain.sh.
868b2b66 (kx 2024-12-20 16:11:07 +0300 733)
868b2b66 (kx 2024-12-20 16:11:07 +0300 734) # Provide generalized library-building support services.
868b2b66 (kx 2024-12-20 16:11:07 +0300 735) # Written by Gordon Matzigkeit, 1996
868b2b66 (kx 2024-12-20 16:11:07 +0300 736)
868b2b66 (kx 2024-12-20 16:11:07 +0300 737) _LT_COPYING
868b2b66 (kx 2024-12-20 16:11:07 +0300 738) _LT_LIBTOOL_TAGS
868b2b66 (kx 2024-12-20 16:11:07 +0300 739)
868b2b66 (kx 2024-12-20 16:11:07 +0300 740) # Configured defaults for sys_lib_dlsearch_path munging.
868b2b66 (kx 2024-12-20 16:11:07 +0300 741) : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
868b2b66 (kx 2024-12-20 16:11:07 +0300 742)
868b2b66 (kx 2024-12-20 16:11:07 +0300 743) # ### BEGIN LIBTOOL CONFIG
868b2b66 (kx 2024-12-20 16:11:07 +0300 744) _LT_LIBTOOL_CONFIG_VARS
868b2b66 (kx 2024-12-20 16:11:07 +0300 745) _LT_LIBTOOL_TAG_VARS
868b2b66 (kx 2024-12-20 16:11:07 +0300 746) # ### END LIBTOOL CONFIG
868b2b66 (kx 2024-12-20 16:11:07 +0300 747)
868b2b66 (kx 2024-12-20 16:11:07 +0300 748) _LT_EOF
868b2b66 (kx 2024-12-20 16:11:07 +0300 749)
868b2b66 (kx 2024-12-20 16:11:07 +0300 750) cat <<'_LT_EOF' >> "$cfgfile"
868b2b66 (kx 2024-12-20 16:11:07 +0300 751)
868b2b66 (kx 2024-12-20 16:11:07 +0300 752) # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
868b2b66 (kx 2024-12-20 16:11:07 +0300 753)
868b2b66 (kx 2024-12-20 16:11:07 +0300 754) _LT_PREPARE_MUNGE_PATH_LIST
868b2b66 (kx 2024-12-20 16:11:07 +0300 755) _LT_PREPARE_CC_BASENAME
868b2b66 (kx 2024-12-20 16:11:07 +0300 756)
868b2b66 (kx 2024-12-20 16:11:07 +0300 757) # ### END FUNCTIONS SHARED WITH CONFIGURE
868b2b66 (kx 2024-12-20 16:11:07 +0300 758)
868b2b66 (kx 2024-12-20 16:11:07 +0300 759) _LT_EOF
868b2b66 (kx 2024-12-20 16:11:07 +0300 760)
868b2b66 (kx 2024-12-20 16:11:07 +0300 761) case $host_os in
868b2b66 (kx 2024-12-20 16:11:07 +0300 762) aix3*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 763) cat <<\_LT_EOF >> "$cfgfile"
868b2b66 (kx 2024-12-20 16:11:07 +0300 764) # AIX sometimes has problems with the GCC collect2 program. For some
868b2b66 (kx 2024-12-20 16:11:07 +0300 765) # reason, if we set the COLLECT_NAMES environment variable, the problems
868b2b66 (kx 2024-12-20 16:11:07 +0300 766) # vanish in a puff of smoke.
868b2b66 (kx 2024-12-20 16:11:07 +0300 767) if test set != "${COLLECT_NAMES+set}"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 768) COLLECT_NAMES=
868b2b66 (kx 2024-12-20 16:11:07 +0300 769) export COLLECT_NAMES
868b2b66 (kx 2024-12-20 16:11:07 +0300 770) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 771) _LT_EOF
868b2b66 (kx 2024-12-20 16:11:07 +0300 772) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 773) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 774)
868b2b66 (kx 2024-12-20 16:11:07 +0300 775) _LT_PROG_LTMAIN
868b2b66 (kx 2024-12-20 16:11:07 +0300 776)
868b2b66 (kx 2024-12-20 16:11:07 +0300 777) # We use sed instead of cat because bash on DJGPP gets confused if
868b2b66 (kx 2024-12-20 16:11:07 +0300 778) # if finds mixed CR/LF and LF-only lines. Since sed operates in
868b2b66 (kx 2024-12-20 16:11:07 +0300 779) # text mode, it properly converts lines to CR/LF. This bash problem
868b2b66 (kx 2024-12-20 16:11:07 +0300 780) # is reportedly fixed, but why not run on old versions too?
868b2b66 (kx 2024-12-20 16:11:07 +0300 781) sed '$q' "$ltmain" >> "$cfgfile" \
868b2b66 (kx 2024-12-20 16:11:07 +0300 782) || (rm -f "$cfgfile"; exit 1)
868b2b66 (kx 2024-12-20 16:11:07 +0300 783)
868b2b66 (kx 2024-12-20 16:11:07 +0300 784) mv -f "$cfgfile" "$ofile" ||
868b2b66 (kx 2024-12-20 16:11:07 +0300 785) (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
868b2b66 (kx 2024-12-20 16:11:07 +0300 786) chmod +x "$ofile"
868b2b66 (kx 2024-12-20 16:11:07 +0300 787) ],
868b2b66 (kx 2024-12-20 16:11:07 +0300 788) [cat <<_LT_EOF >> "$ofile"
868b2b66 (kx 2024-12-20 16:11:07 +0300 789)
868b2b66 (kx 2024-12-20 16:11:07 +0300 790) dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
868b2b66 (kx 2024-12-20 16:11:07 +0300 791) dnl in a comment (ie after a #).
868b2b66 (kx 2024-12-20 16:11:07 +0300 792) # ### BEGIN LIBTOOL TAG CONFIG: $1
868b2b66 (kx 2024-12-20 16:11:07 +0300 793) _LT_LIBTOOL_TAG_VARS(_LT_TAG)
868b2b66 (kx 2024-12-20 16:11:07 +0300 794) # ### END LIBTOOL TAG CONFIG: $1
868b2b66 (kx 2024-12-20 16:11:07 +0300 795) _LT_EOF
868b2b66 (kx 2024-12-20 16:11:07 +0300 796) ])dnl /m4_if
868b2b66 (kx 2024-12-20 16:11:07 +0300 797) ],
868b2b66 (kx 2024-12-20 16:11:07 +0300 798) [m4_if([$1], [], [
868b2b66 (kx 2024-12-20 16:11:07 +0300 799) PACKAGE='$PACKAGE'
868b2b66 (kx 2024-12-20 16:11:07 +0300 800) VERSION='$VERSION'
868b2b66 (kx 2024-12-20 16:11:07 +0300 801) RM='$RM'
868b2b66 (kx 2024-12-20 16:11:07 +0300 802) ofile='$ofile'], [])
868b2b66 (kx 2024-12-20 16:11:07 +0300 803) ])dnl /_LT_CONFIG_SAVE_COMMANDS
868b2b66 (kx 2024-12-20 16:11:07 +0300 804) ])# _LT_CONFIG
868b2b66 (kx 2024-12-20 16:11:07 +0300 805)
868b2b66 (kx 2024-12-20 16:11:07 +0300 806)
868b2b66 (kx 2024-12-20 16:11:07 +0300 807) # LT_SUPPORTED_TAG(TAG)
868b2b66 (kx 2024-12-20 16:11:07 +0300 808) # ---------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 809) # Trace this macro to discover what tags are supported by the libtool
868b2b66 (kx 2024-12-20 16:11:07 +0300 810) # --tag option, using:
868b2b66 (kx 2024-12-20 16:11:07 +0300 811) # autoconf --trace 'LT_SUPPORTED_TAG:$1'
868b2b66 (kx 2024-12-20 16:11:07 +0300 812) AC_DEFUN([LT_SUPPORTED_TAG], [])
868b2b66 (kx 2024-12-20 16:11:07 +0300 813)
868b2b66 (kx 2024-12-20 16:11:07 +0300 814)
868b2b66 (kx 2024-12-20 16:11:07 +0300 815) # C support is built-in for now
868b2b66 (kx 2024-12-20 16:11:07 +0300 816) m4_define([_LT_LANG_C_enabled], [])
868b2b66 (kx 2024-12-20 16:11:07 +0300 817) m4_define([_LT_TAGS], [])
868b2b66 (kx 2024-12-20 16:11:07 +0300 818)
868b2b66 (kx 2024-12-20 16:11:07 +0300 819)
868b2b66 (kx 2024-12-20 16:11:07 +0300 820) # LT_LANG(LANG)
868b2b66 (kx 2024-12-20 16:11:07 +0300 821) # -------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 822) # Enable libtool support for the given language if not already enabled.
868b2b66 (kx 2024-12-20 16:11:07 +0300 823) AC_DEFUN([LT_LANG],
868b2b66 (kx 2024-12-20 16:11:07 +0300 824) [AC_BEFORE([$0], [LT_OUTPUT])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 825) m4_case([$1],
868b2b66 (kx 2024-12-20 16:11:07 +0300 826) [C], [_LT_LANG(C)],
868b2b66 (kx 2024-12-20 16:11:07 +0300 827) [C++], [_LT_LANG(CXX)],
868b2b66 (kx 2024-12-20 16:11:07 +0300 828) [Go], [_LT_LANG(GO)],
868b2b66 (kx 2024-12-20 16:11:07 +0300 829) [Java], [_LT_LANG(GCJ)],
868b2b66 (kx 2024-12-20 16:11:07 +0300 830) [Fortran 77], [_LT_LANG(F77)],
868b2b66 (kx 2024-12-20 16:11:07 +0300 831) [Fortran], [_LT_LANG(FC)],
868b2b66 (kx 2024-12-20 16:11:07 +0300 832) [Windows Resource], [_LT_LANG(RC)],
868b2b66 (kx 2024-12-20 16:11:07 +0300 833) [m4_ifdef([_LT_LANG_]$1[_CONFIG],
868b2b66 (kx 2024-12-20 16:11:07 +0300 834) [_LT_LANG($1)],
868b2b66 (kx 2024-12-20 16:11:07 +0300 835) [m4_fatal([$0: unsupported language: "$1"])])])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 836) ])# LT_LANG
868b2b66 (kx 2024-12-20 16:11:07 +0300 837)
868b2b66 (kx 2024-12-20 16:11:07 +0300 838)
868b2b66 (kx 2024-12-20 16:11:07 +0300 839) # _LT_LANG(LANGNAME)
868b2b66 (kx 2024-12-20 16:11:07 +0300 840) # ------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 841) m4_defun([_LT_LANG],
868b2b66 (kx 2024-12-20 16:11:07 +0300 842) [m4_ifdef([_LT_LANG_]$1[_enabled], [],
868b2b66 (kx 2024-12-20 16:11:07 +0300 843) [LT_SUPPORTED_TAG([$1])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 844) m4_append([_LT_TAGS], [$1 ])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 845) m4_define([_LT_LANG_]$1[_enabled], [])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 846) _LT_LANG_$1_CONFIG($1)])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 847) ])# _LT_LANG
868b2b66 (kx 2024-12-20 16:11:07 +0300 848)
868b2b66 (kx 2024-12-20 16:11:07 +0300 849)
868b2b66 (kx 2024-12-20 16:11:07 +0300 850) m4_ifndef([AC_PROG_GO], [
868b2b66 (kx 2024-12-20 16:11:07 +0300 851) ############################################################
868b2b66 (kx 2024-12-20 16:11:07 +0300 852) # NOTE: This macro has been submitted for inclusion into #
868b2b66 (kx 2024-12-20 16:11:07 +0300 853) # GNU Autoconf as AC_PROG_GO. When it is available in #
868b2b66 (kx 2024-12-20 16:11:07 +0300 854) # a released version of Autoconf we should remove this #
868b2b66 (kx 2024-12-20 16:11:07 +0300 855) # macro and use it instead. #
868b2b66 (kx 2024-12-20 16:11:07 +0300 856) ############################################################
868b2b66 (kx 2024-12-20 16:11:07 +0300 857) m4_defun([AC_PROG_GO],
868b2b66 (kx 2024-12-20 16:11:07 +0300 858) [AC_LANG_PUSH(Go)dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 859) AC_ARG_VAR([GOC], [Go compiler command])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 860) AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 861) _AC_ARG_VAR_LDFLAGS()dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 862) AC_CHECK_TOOL(GOC, gccgo)
868b2b66 (kx 2024-12-20 16:11:07 +0300 863) if test -z "$GOC"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 864) if test -n "$ac_tool_prefix"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 865) AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
868b2b66 (kx 2024-12-20 16:11:07 +0300 866) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 867) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 868) if test -z "$GOC"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 869) AC_CHECK_PROG(GOC, gccgo, gccgo, false)
868b2b66 (kx 2024-12-20 16:11:07 +0300 870) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 871) ])#m4_defun
868b2b66 (kx 2024-12-20 16:11:07 +0300 872) ])#m4_ifndef
868b2b66 (kx 2024-12-20 16:11:07 +0300 873)
868b2b66 (kx 2024-12-20 16:11:07 +0300 874)
868b2b66 (kx 2024-12-20 16:11:07 +0300 875) # _LT_LANG_DEFAULT_CONFIG
868b2b66 (kx 2024-12-20 16:11:07 +0300 876) # -----------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 877) m4_defun([_LT_LANG_DEFAULT_CONFIG],
868b2b66 (kx 2024-12-20 16:11:07 +0300 878) [AC_PROVIDE_IFELSE([AC_PROG_CXX],
868b2b66 (kx 2024-12-20 16:11:07 +0300 879) [LT_LANG(CXX)],
868b2b66 (kx 2024-12-20 16:11:07 +0300 880) [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
868b2b66 (kx 2024-12-20 16:11:07 +0300 881)
868b2b66 (kx 2024-12-20 16:11:07 +0300 882) AC_PROVIDE_IFELSE([AC_PROG_F77],
868b2b66 (kx 2024-12-20 16:11:07 +0300 883) [LT_LANG(F77)],
868b2b66 (kx 2024-12-20 16:11:07 +0300 884) [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
868b2b66 (kx 2024-12-20 16:11:07 +0300 885)
868b2b66 (kx 2024-12-20 16:11:07 +0300 886) AC_PROVIDE_IFELSE([AC_PROG_FC],
868b2b66 (kx 2024-12-20 16:11:07 +0300 887) [LT_LANG(FC)],
868b2b66 (kx 2024-12-20 16:11:07 +0300 888) [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
868b2b66 (kx 2024-12-20 16:11:07 +0300 889)
868b2b66 (kx 2024-12-20 16:11:07 +0300 890) dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
868b2b66 (kx 2024-12-20 16:11:07 +0300 891) dnl pulling things in needlessly.
868b2b66 (kx 2024-12-20 16:11:07 +0300 892) AC_PROVIDE_IFELSE([AC_PROG_GCJ],
868b2b66 (kx 2024-12-20 16:11:07 +0300 893) [LT_LANG(GCJ)],
868b2b66 (kx 2024-12-20 16:11:07 +0300 894) [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
868b2b66 (kx 2024-12-20 16:11:07 +0300 895) [LT_LANG(GCJ)],
868b2b66 (kx 2024-12-20 16:11:07 +0300 896) [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
868b2b66 (kx 2024-12-20 16:11:07 +0300 897) [LT_LANG(GCJ)],
868b2b66 (kx 2024-12-20 16:11:07 +0300 898) [m4_ifdef([AC_PROG_GCJ],
868b2b66 (kx 2024-12-20 16:11:07 +0300 899) [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
868b2b66 (kx 2024-12-20 16:11:07 +0300 900) m4_ifdef([A][M_PROG_GCJ],
868b2b66 (kx 2024-12-20 16:11:07 +0300 901) [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
868b2b66 (kx 2024-12-20 16:11:07 +0300 902) m4_ifdef([LT_PROG_GCJ],
868b2b66 (kx 2024-12-20 16:11:07 +0300 903) [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
868b2b66 (kx 2024-12-20 16:11:07 +0300 904)
868b2b66 (kx 2024-12-20 16:11:07 +0300 905) AC_PROVIDE_IFELSE([AC_PROG_GO],
868b2b66 (kx 2024-12-20 16:11:07 +0300 906) [LT_LANG(GO)],
868b2b66 (kx 2024-12-20 16:11:07 +0300 907) [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
868b2b66 (kx 2024-12-20 16:11:07 +0300 908)
868b2b66 (kx 2024-12-20 16:11:07 +0300 909) AC_PROVIDE_IFELSE([LT_PROG_RC],
868b2b66 (kx 2024-12-20 16:11:07 +0300 910) [LT_LANG(RC)],
868b2b66 (kx 2024-12-20 16:11:07 +0300 911) [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
868b2b66 (kx 2024-12-20 16:11:07 +0300 912) ])# _LT_LANG_DEFAULT_CONFIG
868b2b66 (kx 2024-12-20 16:11:07 +0300 913)
868b2b66 (kx 2024-12-20 16:11:07 +0300 914) # Obsolete macros:
868b2b66 (kx 2024-12-20 16:11:07 +0300 915) AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
868b2b66 (kx 2024-12-20 16:11:07 +0300 916) AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
868b2b66 (kx 2024-12-20 16:11:07 +0300 917) AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
868b2b66 (kx 2024-12-20 16:11:07 +0300 918) AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
868b2b66 (kx 2024-12-20 16:11:07 +0300 919) AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
868b2b66 (kx 2024-12-20 16:11:07 +0300 920) dnl aclocal-1.4 backwards compatibility:
868b2b66 (kx 2024-12-20 16:11:07 +0300 921) dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
868b2b66 (kx 2024-12-20 16:11:07 +0300 922) dnl AC_DEFUN([AC_LIBTOOL_F77], [])
868b2b66 (kx 2024-12-20 16:11:07 +0300 923) dnl AC_DEFUN([AC_LIBTOOL_FC], [])
868b2b66 (kx 2024-12-20 16:11:07 +0300 924) dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
868b2b66 (kx 2024-12-20 16:11:07 +0300 925) dnl AC_DEFUN([AC_LIBTOOL_RC], [])
868b2b66 (kx 2024-12-20 16:11:07 +0300 926)
868b2b66 (kx 2024-12-20 16:11:07 +0300 927)
868b2b66 (kx 2024-12-20 16:11:07 +0300 928) # _LT_TAG_COMPILER
868b2b66 (kx 2024-12-20 16:11:07 +0300 929) # ----------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 930) m4_defun([_LT_TAG_COMPILER],
868b2b66 (kx 2024-12-20 16:11:07 +0300 931) [AC_REQUIRE([AC_PROG_CC])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 932)
868b2b66 (kx 2024-12-20 16:11:07 +0300 933) _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 934) _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 935) _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 936) _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 937)
868b2b66 (kx 2024-12-20 16:11:07 +0300 938) # If no C compiler was specified, use CC.
868b2b66 (kx 2024-12-20 16:11:07 +0300 939) LTCC=${LTCC-"$CC"}
868b2b66 (kx 2024-12-20 16:11:07 +0300 940)
868b2b66 (kx 2024-12-20 16:11:07 +0300 941) # If no C compiler flags were specified, use CFLAGS.
868b2b66 (kx 2024-12-20 16:11:07 +0300 942) LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
868b2b66 (kx 2024-12-20 16:11:07 +0300 943)
868b2b66 (kx 2024-12-20 16:11:07 +0300 944) # Allow CC to be a program name with arguments.
868b2b66 (kx 2024-12-20 16:11:07 +0300 945) compiler=$CC
868b2b66 (kx 2024-12-20 16:11:07 +0300 946) ])# _LT_TAG_COMPILER
868b2b66 (kx 2024-12-20 16:11:07 +0300 947)
868b2b66 (kx 2024-12-20 16:11:07 +0300 948)
868b2b66 (kx 2024-12-20 16:11:07 +0300 949) # _LT_COMPILER_BOILERPLATE
868b2b66 (kx 2024-12-20 16:11:07 +0300 950) # ------------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 951) # Check for compiler boilerplate output or warnings with
868b2b66 (kx 2024-12-20 16:11:07 +0300 952) # the simple compiler test code.
868b2b66 (kx 2024-12-20 16:11:07 +0300 953) m4_defun([_LT_COMPILER_BOILERPLATE],
868b2b66 (kx 2024-12-20 16:11:07 +0300 954) [m4_require([_LT_DECL_SED])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 955) ac_outfile=conftest.$ac_objext
868b2b66 (kx 2024-12-20 16:11:07 +0300 956) echo "$lt_simple_compile_test_code" >conftest.$ac_ext
868b2b66 (kx 2024-12-20 16:11:07 +0300 957) eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
868b2b66 (kx 2024-12-20 16:11:07 +0300 958) _lt_compiler_boilerplate=`cat conftest.err`
868b2b66 (kx 2024-12-20 16:11:07 +0300 959) $RM conftest*
868b2b66 (kx 2024-12-20 16:11:07 +0300 960) ])# _LT_COMPILER_BOILERPLATE
868b2b66 (kx 2024-12-20 16:11:07 +0300 961)
868b2b66 (kx 2024-12-20 16:11:07 +0300 962)
868b2b66 (kx 2024-12-20 16:11:07 +0300 963) # _LT_LINKER_BOILERPLATE
868b2b66 (kx 2024-12-20 16:11:07 +0300 964) # ----------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 965) # Check for linker boilerplate output or warnings with
868b2b66 (kx 2024-12-20 16:11:07 +0300 966) # the simple link test code.
868b2b66 (kx 2024-12-20 16:11:07 +0300 967) m4_defun([_LT_LINKER_BOILERPLATE],
868b2b66 (kx 2024-12-20 16:11:07 +0300 968) [m4_require([_LT_DECL_SED])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 969) ac_outfile=conftest.$ac_objext
868b2b66 (kx 2024-12-20 16:11:07 +0300 970) echo "$lt_simple_link_test_code" >conftest.$ac_ext
868b2b66 (kx 2024-12-20 16:11:07 +0300 971) eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
868b2b66 (kx 2024-12-20 16:11:07 +0300 972) _lt_linker_boilerplate=`cat conftest.err`
868b2b66 (kx 2024-12-20 16:11:07 +0300 973) $RM -r conftest*
868b2b66 (kx 2024-12-20 16:11:07 +0300 974) ])# _LT_LINKER_BOILERPLATE
868b2b66 (kx 2024-12-20 16:11:07 +0300 975)
868b2b66 (kx 2024-12-20 16:11:07 +0300 976) # _LT_REQUIRED_DARWIN_CHECKS
868b2b66 (kx 2024-12-20 16:11:07 +0300 977) # -------------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 978) m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
868b2b66 (kx 2024-12-20 16:11:07 +0300 979) case $host_os in
868b2b66 (kx 2024-12-20 16:11:07 +0300 980) rhapsody* | darwin*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 981) AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
868b2b66 (kx 2024-12-20 16:11:07 +0300 982) AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
868b2b66 (kx 2024-12-20 16:11:07 +0300 983) AC_CHECK_TOOL([LIPO], [lipo], [:])
868b2b66 (kx 2024-12-20 16:11:07 +0300 984) AC_CHECK_TOOL([OTOOL], [otool], [:])
868b2b66 (kx 2024-12-20 16:11:07 +0300 985) AC_CHECK_TOOL([OTOOL64], [otool64], [:])
868b2b66 (kx 2024-12-20 16:11:07 +0300 986) _LT_DECL([], [DSYMUTIL], [1],
868b2b66 (kx 2024-12-20 16:11:07 +0300 987) [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
868b2b66 (kx 2024-12-20 16:11:07 +0300 988) _LT_DECL([], [NMEDIT], [1],
868b2b66 (kx 2024-12-20 16:11:07 +0300 989) [Tool to change global to local symbols on Mac OS X])
868b2b66 (kx 2024-12-20 16:11:07 +0300 990) _LT_DECL([], [LIPO], [1],
868b2b66 (kx 2024-12-20 16:11:07 +0300 991) [Tool to manipulate fat objects and archives on Mac OS X])
868b2b66 (kx 2024-12-20 16:11:07 +0300 992) _LT_DECL([], [OTOOL], [1],
868b2b66 (kx 2024-12-20 16:11:07 +0300 993) [ldd/readelf like tool for Mach-O binaries on Mac OS X])
868b2b66 (kx 2024-12-20 16:11:07 +0300 994) _LT_DECL([], [OTOOL64], [1],
868b2b66 (kx 2024-12-20 16:11:07 +0300 995) [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
868b2b66 (kx 2024-12-20 16:11:07 +0300 996)
868b2b66 (kx 2024-12-20 16:11:07 +0300 997) AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
868b2b66 (kx 2024-12-20 16:11:07 +0300 998) [lt_cv_apple_cc_single_mod=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 999) if test -z "$LT_MULTI_MODULE"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 1000) # By default we will add the -single_module flag. You can override
868b2b66 (kx 2024-12-20 16:11:07 +0300 1001) # by either setting the environment variable LT_MULTI_MODULE
868b2b66 (kx 2024-12-20 16:11:07 +0300 1002) # non-empty at configure time, or by adding -multi_module to the
868b2b66 (kx 2024-12-20 16:11:07 +0300 1003) # link flags.
868b2b66 (kx 2024-12-20 16:11:07 +0300 1004) rm -rf libconftest.dylib*
868b2b66 (kx 2024-12-20 16:11:07 +0300 1005) echo "int foo(void){return 1;}" > conftest.c
868b2b66 (kx 2024-12-20 16:11:07 +0300 1006) echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
868b2b66 (kx 2024-12-20 16:11:07 +0300 1007) -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
868b2b66 (kx 2024-12-20 16:11:07 +0300 1008) $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
868b2b66 (kx 2024-12-20 16:11:07 +0300 1009) -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
868b2b66 (kx 2024-12-20 16:11:07 +0300 1010) _lt_result=$?
868b2b66 (kx 2024-12-20 16:11:07 +0300 1011) # If there is a non-empty error log, and "single_module"
868b2b66 (kx 2024-12-20 16:11:07 +0300 1012) # appears in it, assume the flag caused a linker warning
868b2b66 (kx 2024-12-20 16:11:07 +0300 1013) if test -s conftest.err && $GREP single_module conftest.err; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 1014) cat conftest.err >&AS_MESSAGE_LOG_FD
868b2b66 (kx 2024-12-20 16:11:07 +0300 1015) # Otherwise, if the output was created with a 0 exit code from
868b2b66 (kx 2024-12-20 16:11:07 +0300 1016) # the compiler, it worked.
868b2b66 (kx 2024-12-20 16:11:07 +0300 1017) elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 1018) lt_cv_apple_cc_single_mod=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 1019) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 1020) cat conftest.err >&AS_MESSAGE_LOG_FD
868b2b66 (kx 2024-12-20 16:11:07 +0300 1021) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 1022) rm -rf libconftest.dylib*
868b2b66 (kx 2024-12-20 16:11:07 +0300 1023) rm -f conftest.*
868b2b66 (kx 2024-12-20 16:11:07 +0300 1024) fi])
868b2b66 (kx 2024-12-20 16:11:07 +0300 1025)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1026) AC_CACHE_CHECK([for -exported_symbols_list linker flag],
868b2b66 (kx 2024-12-20 16:11:07 +0300 1027) [lt_cv_ld_exported_symbols_list],
868b2b66 (kx 2024-12-20 16:11:07 +0300 1028) [lt_cv_ld_exported_symbols_list=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 1029) save_LDFLAGS=$LDFLAGS
868b2b66 (kx 2024-12-20 16:11:07 +0300 1030) echo "_main" > conftest.sym
868b2b66 (kx 2024-12-20 16:11:07 +0300 1031) LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
868b2b66 (kx 2024-12-20 16:11:07 +0300 1032) AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
868b2b66 (kx 2024-12-20 16:11:07 +0300 1033) [lt_cv_ld_exported_symbols_list=yes],
868b2b66 (kx 2024-12-20 16:11:07 +0300 1034) [lt_cv_ld_exported_symbols_list=no])
868b2b66 (kx 2024-12-20 16:11:07 +0300 1035) LDFLAGS=$save_LDFLAGS
868b2b66 (kx 2024-12-20 16:11:07 +0300 1036) ])
868b2b66 (kx 2024-12-20 16:11:07 +0300 1037)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1038) AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
868b2b66 (kx 2024-12-20 16:11:07 +0300 1039) [lt_cv_ld_force_load=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 1040) cat > conftest.c << _LT_EOF
868b2b66 (kx 2024-12-20 16:11:07 +0300 1041) int forced_loaded() { return 2;}
868b2b66 (kx 2024-12-20 16:11:07 +0300 1042) _LT_EOF
868b2b66 (kx 2024-12-20 16:11:07 +0300 1043) echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
868b2b66 (kx 2024-12-20 16:11:07 +0300 1044) $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
868b2b66 (kx 2024-12-20 16:11:07 +0300 1045) echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
868b2b66 (kx 2024-12-20 16:11:07 +0300 1046) $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
868b2b66 (kx 2024-12-20 16:11:07 +0300 1047) echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
868b2b66 (kx 2024-12-20 16:11:07 +0300 1048) $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
868b2b66 (kx 2024-12-20 16:11:07 +0300 1049) cat > conftest.c << _LT_EOF
868b2b66 (kx 2024-12-20 16:11:07 +0300 1050) int main() { return 0;}
868b2b66 (kx 2024-12-20 16:11:07 +0300 1051) _LT_EOF
868b2b66 (kx 2024-12-20 16:11:07 +0300 1052) echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
868b2b66 (kx 2024-12-20 16:11:07 +0300 1053) $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
868b2b66 (kx 2024-12-20 16:11:07 +0300 1054) _lt_result=$?
868b2b66 (kx 2024-12-20 16:11:07 +0300 1055) if test -s conftest.err && $GREP force_load conftest.err; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 1056) cat conftest.err >&AS_MESSAGE_LOG_FD
868b2b66 (kx 2024-12-20 16:11:07 +0300 1057) elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 1058) lt_cv_ld_force_load=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 1059) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 1060) cat conftest.err >&AS_MESSAGE_LOG_FD
868b2b66 (kx 2024-12-20 16:11:07 +0300 1061) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 1062) rm -f conftest.err libconftest.a conftest conftest.c
868b2b66 (kx 2024-12-20 16:11:07 +0300 1063) rm -rf conftest.dSYM
868b2b66 (kx 2024-12-20 16:11:07 +0300 1064) ])
868b2b66 (kx 2024-12-20 16:11:07 +0300 1065) case $host_os in
868b2b66 (kx 2024-12-20 16:11:07 +0300 1066) rhapsody* | darwin1.[[012]])
868b2b66 (kx 2024-12-20 16:11:07 +0300 1067) _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1068) darwin1.*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1069) _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1070) darwin*) # darwin 5.x on
868b2b66 (kx 2024-12-20 16:11:07 +0300 1071) # if running on 10.5 or later, the deployment target defaults
868b2b66 (kx 2024-12-20 16:11:07 +0300 1072) # to the OS version, if on x86, and 10.4, the deployment
868b2b66 (kx 2024-12-20 16:11:07 +0300 1073) # target defaults to 10.4. Don't you love it?
868b2b66 (kx 2024-12-20 16:11:07 +0300 1074) case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
868b2b66 (kx 2024-12-20 16:11:07 +0300 1075) 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1076) _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1077) 10.[[012]][[,.]]*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1078) _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1079) 10.*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1080) _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1081) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 1082) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1083) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 1084) if test yes = "$lt_cv_apple_cc_single_mod"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 1085) _lt_dar_single_mod='$single_module'
868b2b66 (kx 2024-12-20 16:11:07 +0300 1086) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 1087) if test yes = "$lt_cv_ld_exported_symbols_list"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 1088) _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
868b2b66 (kx 2024-12-20 16:11:07 +0300 1089) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 1090) _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 1091) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 1092) if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 1093) _lt_dsymutil='~$DSYMUTIL $lib || :'
868b2b66 (kx 2024-12-20 16:11:07 +0300 1094) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 1095) _lt_dsymutil=
868b2b66 (kx 2024-12-20 16:11:07 +0300 1096) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 1097) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1098) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 1099) ])
868b2b66 (kx 2024-12-20 16:11:07 +0300 1100)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1101)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1102) # _LT_DARWIN_LINKER_FEATURES([TAG])
868b2b66 (kx 2024-12-20 16:11:07 +0300 1103) # ---------------------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 1104) # Checks for linker and compiler features on darwin
868b2b66 (kx 2024-12-20 16:11:07 +0300 1105) m4_defun([_LT_DARWIN_LINKER_FEATURES],
868b2b66 (kx 2024-12-20 16:11:07 +0300 1106) [
868b2b66 (kx 2024-12-20 16:11:07 +0300 1107) m4_require([_LT_REQUIRED_DARWIN_CHECKS])
868b2b66 (kx 2024-12-20 16:11:07 +0300 1108) _LT_TAGVAR(archive_cmds_need_lc, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 1109) _LT_TAGVAR(hardcode_direct, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 1110) _LT_TAGVAR(hardcode_automatic, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 1111) _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
868b2b66 (kx 2024-12-20 16:11:07 +0300 1112) if test yes = "$lt_cv_ld_force_load"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 1113) _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\"`'
868b2b66 (kx 2024-12-20 16:11:07 +0300 1114) m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
868b2b66 (kx 2024-12-20 16:11:07 +0300 1115) [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
868b2b66 (kx 2024-12-20 16:11:07 +0300 1116) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 1117) _LT_TAGVAR(whole_archive_flag_spec, $1)=''
868b2b66 (kx 2024-12-20 16:11:07 +0300 1118) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 1119) _LT_TAGVAR(link_all_deplibs, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 1120) _LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined
868b2b66 (kx 2024-12-20 16:11:07 +0300 1121) case $cc_basename in
868b2b66 (kx 2024-12-20 16:11:07 +0300 1122) ifort*|nagfor*) _lt_dar_can_shared=yes ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1123) *) _lt_dar_can_shared=$GCC ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1124) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 1125) if test yes = "$_lt_dar_can_shared"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 1126) output_verbose_link_cmd=func_echo_all
868b2b66 (kx 2024-12-20 16:11:07 +0300 1127) _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"
868b2b66 (kx 2024-12-20 16:11:07 +0300 1128) _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
868b2b66 (kx 2024-12-20 16:11:07 +0300 1129) _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"
868b2b66 (kx 2024-12-20 16:11:07 +0300 1130) _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"
868b2b66 (kx 2024-12-20 16:11:07 +0300 1131) m4_if([$1], [CXX],
868b2b66 (kx 2024-12-20 16:11:07 +0300 1132) [ if test yes != "$lt_cv_apple_cc_single_mod"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 1133) _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"
868b2b66 (kx 2024-12-20 16:11:07 +0300 1134) _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"
868b2b66 (kx 2024-12-20 16:11:07 +0300 1135) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 1136) ],[])
868b2b66 (kx 2024-12-20 16:11:07 +0300 1137) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 1138) _LT_TAGVAR(ld_shlibs, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 1139) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 1140) ])
868b2b66 (kx 2024-12-20 16:11:07 +0300 1141)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1142) # _LT_SYS_MODULE_PATH_AIX([TAGNAME])
868b2b66 (kx 2024-12-20 16:11:07 +0300 1143) # ----------------------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 1144) # Links a minimal program and checks the executable
868b2b66 (kx 2024-12-20 16:11:07 +0300 1145) # for the system default hardcoded library path. In most cases,
868b2b66 (kx 2024-12-20 16:11:07 +0300 1146) # this is /usr/lib:/lib, but when the MPI compilers are used
868b2b66 (kx 2024-12-20 16:11:07 +0300 1147) # the location of the communication and MPI libs are included too.
868b2b66 (kx 2024-12-20 16:11:07 +0300 1148) # If we don't find anything, use the default library path according
868b2b66 (kx 2024-12-20 16:11:07 +0300 1149) # to the aix ld manual.
868b2b66 (kx 2024-12-20 16:11:07 +0300 1150) # Store the results from the different compilers for each TAGNAME.
868b2b66 (kx 2024-12-20 16:11:07 +0300 1151) # Allow to override them for all tags through lt_cv_aix_libpath.
868b2b66 (kx 2024-12-20 16:11:07 +0300 1152) m4_defun([_LT_SYS_MODULE_PATH_AIX],
868b2b66 (kx 2024-12-20 16:11:07 +0300 1153) [m4_require([_LT_DECL_SED])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 1154) if test set = "${lt_cv_aix_libpath+set}"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 1155) aix_libpath=$lt_cv_aix_libpath
868b2b66 (kx 2024-12-20 16:11:07 +0300 1156) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 1157) AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
868b2b66 (kx 2024-12-20 16:11:07 +0300 1158) [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
868b2b66 (kx 2024-12-20 16:11:07 +0300 1159) lt_aix_libpath_sed='[
868b2b66 (kx 2024-12-20 16:11:07 +0300 1160) /Import File Strings/,/^$/ {
868b2b66 (kx 2024-12-20 16:11:07 +0300 1161) /^0/ {
868b2b66 (kx 2024-12-20 16:11:07 +0300 1162) s/^0 *\([^ ]*\) *$/\1/
868b2b66 (kx 2024-12-20 16:11:07 +0300 1163) p
868b2b66 (kx 2024-12-20 16:11:07 +0300 1164) }
868b2b66 (kx 2024-12-20 16:11:07 +0300 1165) }]'
868b2b66 (kx 2024-12-20 16:11:07 +0300 1166) _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
868b2b66 (kx 2024-12-20 16:11:07 +0300 1167) # Check for a 64-bit object if we didn't find anything.
868b2b66 (kx 2024-12-20 16:11:07 +0300 1168) if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 1169) _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
868b2b66 (kx 2024-12-20 16:11:07 +0300 1170) fi],[])
868b2b66 (kx 2024-12-20 16:11:07 +0300 1171) if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 1172) _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=/usr/lib:/lib
868b2b66 (kx 2024-12-20 16:11:07 +0300 1173) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 1174) ])
868b2b66 (kx 2024-12-20 16:11:07 +0300 1175) aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
868b2b66 (kx 2024-12-20 16:11:07 +0300 1176) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 1177) ])# _LT_SYS_MODULE_PATH_AIX
868b2b66 (kx 2024-12-20 16:11:07 +0300 1178)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1179)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1180) # _LT_SHELL_INIT(ARG)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1181) # -------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 1182) m4_define([_LT_SHELL_INIT],
868b2b66 (kx 2024-12-20 16:11:07 +0300 1183) [m4_divert_text([M4SH-INIT], [$1
868b2b66 (kx 2024-12-20 16:11:07 +0300 1184) ])])# _LT_SHELL_INIT
868b2b66 (kx 2024-12-20 16:11:07 +0300 1185)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1186)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1187)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1188) # _LT_PROG_ECHO_BACKSLASH
868b2b66 (kx 2024-12-20 16:11:07 +0300 1189) # -----------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 1190) # Find how we can fake an echo command that does not interpret backslash.
868b2b66 (kx 2024-12-20 16:11:07 +0300 1191) # In particular, with Autoconf 2.60 or later we add some code to the start
868b2b66 (kx 2024-12-20 16:11:07 +0300 1192) # of the generated configure script that will find a shell with a builtin
868b2b66 (kx 2024-12-20 16:11:07 +0300 1193) # printf (that we can use as an echo command).
868b2b66 (kx 2024-12-20 16:11:07 +0300 1194) m4_defun([_LT_PROG_ECHO_BACKSLASH],
868b2b66 (kx 2024-12-20 16:11:07 +0300 1195) [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
868b2b66 (kx 2024-12-20 16:11:07 +0300 1196) ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
868b2b66 (kx 2024-12-20 16:11:07 +0300 1197) ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
868b2b66 (kx 2024-12-20 16:11:07 +0300 1198)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1199) AC_MSG_CHECKING([how to print strings])
868b2b66 (kx 2024-12-20 16:11:07 +0300 1200) # Test print first, because it will be a builtin if present.
868b2b66 (kx 2024-12-20 16:11:07 +0300 1201) if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
868b2b66 (kx 2024-12-20 16:11:07 +0300 1202) test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 1203) ECHO='print -r --'
868b2b66 (kx 2024-12-20 16:11:07 +0300 1204) elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 1205) ECHO='printf %s\n'
868b2b66 (kx 2024-12-20 16:11:07 +0300 1206) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 1207) # Use this function as a fallback that always works.
868b2b66 (kx 2024-12-20 16:11:07 +0300 1208) func_fallback_echo ()
868b2b66 (kx 2024-12-20 16:11:07 +0300 1209) {
868b2b66 (kx 2024-12-20 16:11:07 +0300 1210) eval 'cat <<_LTECHO_EOF
868b2b66 (kx 2024-12-20 16:11:07 +0300 1211) $[]1
868b2b66 (kx 2024-12-20 16:11:07 +0300 1212) _LTECHO_EOF'
868b2b66 (kx 2024-12-20 16:11:07 +0300 1213) }
868b2b66 (kx 2024-12-20 16:11:07 +0300 1214) ECHO='func_fallback_echo'
868b2b66 (kx 2024-12-20 16:11:07 +0300 1215) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 1216)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1217) # func_echo_all arg...
868b2b66 (kx 2024-12-20 16:11:07 +0300 1218) # Invoke $ECHO with all args, space-separated.
868b2b66 (kx 2024-12-20 16:11:07 +0300 1219) func_echo_all ()
868b2b66 (kx 2024-12-20 16:11:07 +0300 1220) {
868b2b66 (kx 2024-12-20 16:11:07 +0300 1221) $ECHO "$*"
868b2b66 (kx 2024-12-20 16:11:07 +0300 1222) }
868b2b66 (kx 2024-12-20 16:11:07 +0300 1223)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1224) case $ECHO in
868b2b66 (kx 2024-12-20 16:11:07 +0300 1225) printf*) AC_MSG_RESULT([printf]) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1226) print*) AC_MSG_RESULT([print -r]) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1227) *) AC_MSG_RESULT([cat]) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1228) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 1229)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1230) m4_ifdef([_AS_DETECT_SUGGESTED],
868b2b66 (kx 2024-12-20 16:11:07 +0300 1231) [_AS_DETECT_SUGGESTED([
868b2b66 (kx 2024-12-20 16:11:07 +0300 1232) test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
868b2b66 (kx 2024-12-20 16:11:07 +0300 1233) ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
868b2b66 (kx 2024-12-20 16:11:07 +0300 1234) ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
868b2b66 (kx 2024-12-20 16:11:07 +0300 1235) ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
868b2b66 (kx 2024-12-20 16:11:07 +0300 1236) PATH=/empty FPATH=/empty; export PATH FPATH
868b2b66 (kx 2024-12-20 16:11:07 +0300 1237) test "X`printf %s $ECHO`" = "X$ECHO" \
868b2b66 (kx 2024-12-20 16:11:07 +0300 1238) || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
868b2b66 (kx 2024-12-20 16:11:07 +0300 1239)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1240) _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
868b2b66 (kx 2024-12-20 16:11:07 +0300 1241) _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
868b2b66 (kx 2024-12-20 16:11:07 +0300 1242) ])# _LT_PROG_ECHO_BACKSLASH
868b2b66 (kx 2024-12-20 16:11:07 +0300 1243)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1244)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1245) # _LT_WITH_SYSROOT
868b2b66 (kx 2024-12-20 16:11:07 +0300 1246) # ----------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 1247) AC_DEFUN([_LT_WITH_SYSROOT],
868b2b66 (kx 2024-12-20 16:11:07 +0300 1248) [AC_MSG_CHECKING([for sysroot])
868b2b66 (kx 2024-12-20 16:11:07 +0300 1249) AC_ARG_WITH([sysroot],
868b2b66 (kx 2024-12-20 16:11:07 +0300 1250) [AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@],
868b2b66 (kx 2024-12-20 16:11:07 +0300 1251) [Search for dependent libraries within DIR (or the compiler's sysroot
868b2b66 (kx 2024-12-20 16:11:07 +0300 1252) if not specified).])],
868b2b66 (kx 2024-12-20 16:11:07 +0300 1253) [], [with_sysroot=no])
868b2b66 (kx 2024-12-20 16:11:07 +0300 1254)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1255) dnl lt_sysroot will always be passed unquoted. We quote it here
868b2b66 (kx 2024-12-20 16:11:07 +0300 1256) dnl in case the user passed a directory name.
868b2b66 (kx 2024-12-20 16:11:07 +0300 1257) lt_sysroot=
868b2b66 (kx 2024-12-20 16:11:07 +0300 1258) case $with_sysroot in #(
868b2b66 (kx 2024-12-20 16:11:07 +0300 1259) yes)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1260) if test yes = "$GCC"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 1261) lt_sysroot=`$CC --print-sysroot 2>/dev/null`
868b2b66 (kx 2024-12-20 16:11:07 +0300 1262) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 1263) ;; #(
868b2b66 (kx 2024-12-20 16:11:07 +0300 1264) /*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1265) lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
868b2b66 (kx 2024-12-20 16:11:07 +0300 1266) ;; #(
868b2b66 (kx 2024-12-20 16:11:07 +0300 1267) no|'')
868b2b66 (kx 2024-12-20 16:11:07 +0300 1268) ;; #(
868b2b66 (kx 2024-12-20 16:11:07 +0300 1269) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1270) AC_MSG_RESULT([$with_sysroot])
868b2b66 (kx 2024-12-20 16:11:07 +0300 1271) AC_MSG_ERROR([The sysroot must be an absolute path.])
868b2b66 (kx 2024-12-20 16:11:07 +0300 1272) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1273) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 1274)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1275) AC_MSG_RESULT([${lt_sysroot:-no}])
868b2b66 (kx 2024-12-20 16:11:07 +0300 1276) _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 1277) [dependent libraries, and where our libraries should be installed.])])
868b2b66 (kx 2024-12-20 16:11:07 +0300 1278)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1279) # _LT_ENABLE_LOCK
868b2b66 (kx 2024-12-20 16:11:07 +0300 1280) # ---------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 1281) m4_defun([_LT_ENABLE_LOCK],
868b2b66 (kx 2024-12-20 16:11:07 +0300 1282) [AC_ARG_ENABLE([libtool-lock],
868b2b66 (kx 2024-12-20 16:11:07 +0300 1283) [AS_HELP_STRING([--disable-libtool-lock],
868b2b66 (kx 2024-12-20 16:11:07 +0300 1284) [avoid locking (might break parallel builds)])])
868b2b66 (kx 2024-12-20 16:11:07 +0300 1285) test no = "$enable_libtool_lock" || enable_libtool_lock=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 1286)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1287) # Some flags need to be propagated to the compiler or linker for good
868b2b66 (kx 2024-12-20 16:11:07 +0300 1288) # libtool support.
868b2b66 (kx 2024-12-20 16:11:07 +0300 1289) case $host in
868b2b66 (kx 2024-12-20 16:11:07 +0300 1290) ia64-*-hpux*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1291) # Find out what ABI is being produced by ac_compile, and set mode
868b2b66 (kx 2024-12-20 16:11:07 +0300 1292) # options accordingly.
868b2b66 (kx 2024-12-20 16:11:07 +0300 1293) echo 'int i;' > conftest.$ac_ext
868b2b66 (kx 2024-12-20 16:11:07 +0300 1294) if AC_TRY_EVAL(ac_compile); then
868b2b66 (kx 2024-12-20 16:11:07 +0300 1295) case `/usr/bin/file conftest.$ac_objext` in
868b2b66 (kx 2024-12-20 16:11:07 +0300 1296) *ELF-32*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1297) HPUX_IA64_MODE=32
868b2b66 (kx 2024-12-20 16:11:07 +0300 1298) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1299) *ELF-64*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1300) HPUX_IA64_MODE=64
868b2b66 (kx 2024-12-20 16:11:07 +0300 1301) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1302) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 1303) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 1304) rm -rf conftest*
868b2b66 (kx 2024-12-20 16:11:07 +0300 1305) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1306) *-*-irix6*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1307) # Find out what ABI is being produced by ac_compile, and set linker
868b2b66 (kx 2024-12-20 16:11:07 +0300 1308) # options accordingly.
868b2b66 (kx 2024-12-20 16:11:07 +0300 1309) echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
868b2b66 (kx 2024-12-20 16:11:07 +0300 1310) if AC_TRY_EVAL(ac_compile); then
868b2b66 (kx 2024-12-20 16:11:07 +0300 1311) if test yes = "$lt_cv_prog_gnu_ld"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 1312) case `/usr/bin/file conftest.$ac_objext` in
868b2b66 (kx 2024-12-20 16:11:07 +0300 1313) *32-bit*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1314) LD="${LD-ld} -melf32bsmip"
868b2b66 (kx 2024-12-20 16:11:07 +0300 1315) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1316) *N32*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1317) LD="${LD-ld} -melf32bmipn32"
868b2b66 (kx 2024-12-20 16:11:07 +0300 1318) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1319) *64-bit*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1320) LD="${LD-ld} -melf64bmip"
868b2b66 (kx 2024-12-20 16:11:07 +0300 1321) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1322) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 1323) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 1324) case `/usr/bin/file conftest.$ac_objext` in
868b2b66 (kx 2024-12-20 16:11:07 +0300 1325) *32-bit*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1326) LD="${LD-ld} -32"
868b2b66 (kx 2024-12-20 16:11:07 +0300 1327) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1328) *N32*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1329) LD="${LD-ld} -n32"
868b2b66 (kx 2024-12-20 16:11:07 +0300 1330) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1331) *64-bit*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1332) LD="${LD-ld} -64"
868b2b66 (kx 2024-12-20 16:11:07 +0300 1333) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1334) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 1335) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 1336) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 1337) rm -rf conftest*
868b2b66 (kx 2024-12-20 16:11:07 +0300 1338) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1339)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1340) mips64*-*linux*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1341) # Find out what ABI is being produced by ac_compile, and set linker
868b2b66 (kx 2024-12-20 16:11:07 +0300 1342) # options accordingly.
868b2b66 (kx 2024-12-20 16:11:07 +0300 1343) echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
868b2b66 (kx 2024-12-20 16:11:07 +0300 1344) if AC_TRY_EVAL(ac_compile); then
868b2b66 (kx 2024-12-20 16:11:07 +0300 1345) emul=elf
868b2b66 (kx 2024-12-20 16:11:07 +0300 1346) case `/usr/bin/file conftest.$ac_objext` in
868b2b66 (kx 2024-12-20 16:11:07 +0300 1347) *32-bit*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1348) emul="${emul}32"
868b2b66 (kx 2024-12-20 16:11:07 +0300 1349) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1350) *64-bit*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1351) emul="${emul}64"
868b2b66 (kx 2024-12-20 16:11:07 +0300 1352) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1353) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 1354) case `/usr/bin/file conftest.$ac_objext` in
868b2b66 (kx 2024-12-20 16:11:07 +0300 1355) *MSB*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1356) emul="${emul}btsmip"
868b2b66 (kx 2024-12-20 16:11:07 +0300 1357) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1358) *LSB*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1359) emul="${emul}ltsmip"
868b2b66 (kx 2024-12-20 16:11:07 +0300 1360) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1361) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 1362) case `/usr/bin/file conftest.$ac_objext` in
868b2b66 (kx 2024-12-20 16:11:07 +0300 1363) *N32*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1364) emul="${emul}n32"
868b2b66 (kx 2024-12-20 16:11:07 +0300 1365) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1366) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 1367) LD="${LD-ld} -m $emul"
868b2b66 (kx 2024-12-20 16:11:07 +0300 1368) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 1369) rm -rf conftest*
868b2b66 (kx 2024-12-20 16:11:07 +0300 1370) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1371)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1372) x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
868b2b66 (kx 2024-12-20 16:11:07 +0300 1373) s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1374) # Find out what ABI is being produced by ac_compile, and set linker
868b2b66 (kx 2024-12-20 16:11:07 +0300 1375) # options accordingly. Note that the listed cases only cover the
868b2b66 (kx 2024-12-20 16:11:07 +0300 1376) # situations where additional linker options are needed (such as when
868b2b66 (kx 2024-12-20 16:11:07 +0300 1377) # doing 32-bit compilation for a host where ld defaults to 64-bit, or
868b2b66 (kx 2024-12-20 16:11:07 +0300 1378) # vice versa); the common cases where no linker options are needed do
868b2b66 (kx 2024-12-20 16:11:07 +0300 1379) # not appear in the list.
868b2b66 (kx 2024-12-20 16:11:07 +0300 1380) echo 'int i;' > conftest.$ac_ext
868b2b66 (kx 2024-12-20 16:11:07 +0300 1381) if AC_TRY_EVAL(ac_compile); then
868b2b66 (kx 2024-12-20 16:11:07 +0300 1382) case `/usr/bin/file conftest.o` in
868b2b66 (kx 2024-12-20 16:11:07 +0300 1383) *32-bit*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1384) case $host in
868b2b66 (kx 2024-12-20 16:11:07 +0300 1385) x86_64-*kfreebsd*-gnu)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1386) LD="${LD-ld} -m elf_i386_fbsd"
868b2b66 (kx 2024-12-20 16:11:07 +0300 1387) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1388) x86_64-*linux*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1389) case `/usr/bin/file conftest.o` in
868b2b66 (kx 2024-12-20 16:11:07 +0300 1390) *x86-64*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1391) LD="${LD-ld} -m elf32_x86_64"
868b2b66 (kx 2024-12-20 16:11:07 +0300 1392) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1393) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1394) LD="${LD-ld} -m elf_i386"
868b2b66 (kx 2024-12-20 16:11:07 +0300 1395) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1396) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 1397) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1398) powerpc64le-*linux*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1399) LD="${LD-ld} -m elf32lppclinux"
868b2b66 (kx 2024-12-20 16:11:07 +0300 1400) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1401) powerpc64-*linux*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1402) LD="${LD-ld} -m elf32ppclinux"
868b2b66 (kx 2024-12-20 16:11:07 +0300 1403) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1404) s390x-*linux*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1405) LD="${LD-ld} -m elf_s390"
868b2b66 (kx 2024-12-20 16:11:07 +0300 1406) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1407) sparc64-*linux*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1408) LD="${LD-ld} -m elf32_sparc"
868b2b66 (kx 2024-12-20 16:11:07 +0300 1409) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1410) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 1411) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1412) *64-bit*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1413) case $host in
868b2b66 (kx 2024-12-20 16:11:07 +0300 1414) x86_64-*kfreebsd*-gnu)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1415) LD="${LD-ld} -m elf_x86_64_fbsd"
868b2b66 (kx 2024-12-20 16:11:07 +0300 1416) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1417) x86_64-*linux*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1418) LD="${LD-ld} -m elf_x86_64"
868b2b66 (kx 2024-12-20 16:11:07 +0300 1419) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1420) powerpcle-*linux*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1421) LD="${LD-ld} -m elf64lppc"
868b2b66 (kx 2024-12-20 16:11:07 +0300 1422) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1423) powerpc-*linux*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1424) LD="${LD-ld} -m elf64ppc"
868b2b66 (kx 2024-12-20 16:11:07 +0300 1425) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1426) s390*-*linux*|s390*-*tpf*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1427) LD="${LD-ld} -m elf64_s390"
868b2b66 (kx 2024-12-20 16:11:07 +0300 1428) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1429) sparc*-*linux*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1430) LD="${LD-ld} -m elf64_sparc"
868b2b66 (kx 2024-12-20 16:11:07 +0300 1431) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1432) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 1433) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1434) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 1435) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 1436) rm -rf conftest*
868b2b66 (kx 2024-12-20 16:11:07 +0300 1437) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1438)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1439) *-*-sco3.2v5*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1440) # On SCO OpenServer 5, we need -belf to get full-featured binaries.
868b2b66 (kx 2024-12-20 16:11:07 +0300 1441) SAVE_CFLAGS=$CFLAGS
868b2b66 (kx 2024-12-20 16:11:07 +0300 1442) CFLAGS="$CFLAGS -belf"
868b2b66 (kx 2024-12-20 16:11:07 +0300 1443) AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
868b2b66 (kx 2024-12-20 16:11:07 +0300 1444) [AC_LANG_PUSH(C)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1445) AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
868b2b66 (kx 2024-12-20 16:11:07 +0300 1446) AC_LANG_POP])
868b2b66 (kx 2024-12-20 16:11:07 +0300 1447) if test yes != "$lt_cv_cc_needs_belf"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 1448) # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
868b2b66 (kx 2024-12-20 16:11:07 +0300 1449) CFLAGS=$SAVE_CFLAGS
868b2b66 (kx 2024-12-20 16:11:07 +0300 1450) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 1451) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1452) *-*solaris*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1453) # Find out what ABI is being produced by ac_compile, and set linker
868b2b66 (kx 2024-12-20 16:11:07 +0300 1454) # options accordingly.
868b2b66 (kx 2024-12-20 16:11:07 +0300 1455) echo 'int i;' > conftest.$ac_ext
868b2b66 (kx 2024-12-20 16:11:07 +0300 1456) if AC_TRY_EVAL(ac_compile); then
868b2b66 (kx 2024-12-20 16:11:07 +0300 1457) case `/usr/bin/file conftest.o` in
868b2b66 (kx 2024-12-20 16:11:07 +0300 1458) *64-bit*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1459) case $lt_cv_prog_gnu_ld in
868b2b66 (kx 2024-12-20 16:11:07 +0300 1460) yes*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1461) case $host in
868b2b66 (kx 2024-12-20 16:11:07 +0300 1462) i?86-*-solaris*|x86_64-*-solaris*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1463) LD="${LD-ld} -m elf_x86_64"
868b2b66 (kx 2024-12-20 16:11:07 +0300 1464) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1465) sparc*-*-solaris*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1466) LD="${LD-ld} -m elf64_sparc"
868b2b66 (kx 2024-12-20 16:11:07 +0300 1467) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1468) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 1469) # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
868b2b66 (kx 2024-12-20 16:11:07 +0300 1470) if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 1471) LD=${LD-ld}_sol2
868b2b66 (kx 2024-12-20 16:11:07 +0300 1472) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 1473) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1474) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1475) if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 1476) LD="${LD-ld} -64"
868b2b66 (kx 2024-12-20 16:11:07 +0300 1477) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 1478) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1479) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 1480) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1481) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 1482) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 1483) rm -rf conftest*
868b2b66 (kx 2024-12-20 16:11:07 +0300 1484) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1485) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 1486)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1487) need_locks=$enable_libtool_lock
868b2b66 (kx 2024-12-20 16:11:07 +0300 1488) ])# _LT_ENABLE_LOCK
868b2b66 (kx 2024-12-20 16:11:07 +0300 1489)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1490)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1491) # _LT_PROG_AR
868b2b66 (kx 2024-12-20 16:11:07 +0300 1492) # -----------
868b2b66 (kx 2024-12-20 16:11:07 +0300 1493) m4_defun([_LT_PROG_AR],
868b2b66 (kx 2024-12-20 16:11:07 +0300 1494) [AC_CHECK_TOOLS(AR, [ar], false)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1495) : ${AR=ar}
868b2b66 (kx 2024-12-20 16:11:07 +0300 1496) : ${AR_FLAGS=cru}
868b2b66 (kx 2024-12-20 16:11:07 +0300 1497) _LT_DECL([], [AR], [1], [The archiver])
868b2b66 (kx 2024-12-20 16:11:07 +0300 1498) _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
868b2b66 (kx 2024-12-20 16:11:07 +0300 1499)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1500) AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
868b2b66 (kx 2024-12-20 16:11:07 +0300 1501) [lt_cv_ar_at_file=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 1502) AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
868b2b66 (kx 2024-12-20 16:11:07 +0300 1503) [echo conftest.$ac_objext > conftest.lst
868b2b66 (kx 2024-12-20 16:11:07 +0300 1504) lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
868b2b66 (kx 2024-12-20 16:11:07 +0300 1505) AC_TRY_EVAL([lt_ar_try])
868b2b66 (kx 2024-12-20 16:11:07 +0300 1506) if test 0 -eq "$ac_status"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 1507) # Ensure the archiver fails upon bogus file names.
868b2b66 (kx 2024-12-20 16:11:07 +0300 1508) rm -f conftest.$ac_objext libconftest.a
868b2b66 (kx 2024-12-20 16:11:07 +0300 1509) AC_TRY_EVAL([lt_ar_try])
868b2b66 (kx 2024-12-20 16:11:07 +0300 1510) if test 0 -ne "$ac_status"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 1511) lt_cv_ar_at_file=@
868b2b66 (kx 2024-12-20 16:11:07 +0300 1512) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 1513) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 1514) rm -f conftest.* libconftest.a
868b2b66 (kx 2024-12-20 16:11:07 +0300 1515) ])
868b2b66 (kx 2024-12-20 16:11:07 +0300 1516) ])
868b2b66 (kx 2024-12-20 16:11:07 +0300 1517)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1518) if test no = "$lt_cv_ar_at_file"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 1519) archiver_list_spec=
868b2b66 (kx 2024-12-20 16:11:07 +0300 1520) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 1521) archiver_list_spec=$lt_cv_ar_at_file
868b2b66 (kx 2024-12-20 16:11:07 +0300 1522) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 1523) _LT_DECL([], [archiver_list_spec], [1],
868b2b66 (kx 2024-12-20 16:11:07 +0300 1524) [How to feed a file listing to the archiver])
868b2b66 (kx 2024-12-20 16:11:07 +0300 1525) ])# _LT_PROG_AR
868b2b66 (kx 2024-12-20 16:11:07 +0300 1526)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1527)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1528) # _LT_CMD_OLD_ARCHIVE
868b2b66 (kx 2024-12-20 16:11:07 +0300 1529) # -------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 1530) m4_defun([_LT_CMD_OLD_ARCHIVE],
868b2b66 (kx 2024-12-20 16:11:07 +0300 1531) [_LT_PROG_AR
868b2b66 (kx 2024-12-20 16:11:07 +0300 1532)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1533) AC_CHECK_TOOL(STRIP, strip, :)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1534) test -z "$STRIP" && STRIP=:
868b2b66 (kx 2024-12-20 16:11:07 +0300 1535) _LT_DECL([], [STRIP], [1], [A symbol stripping program])
868b2b66 (kx 2024-12-20 16:11:07 +0300 1536)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1537) AC_CHECK_TOOL(RANLIB, ranlib, :)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1538) test -z "$RANLIB" && RANLIB=:
868b2b66 (kx 2024-12-20 16:11:07 +0300 1539) _LT_DECL([], [RANLIB], [1],
868b2b66 (kx 2024-12-20 16:11:07 +0300 1540) [Commands used to install an old-style archive])
868b2b66 (kx 2024-12-20 16:11:07 +0300 1541)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1542) # Determine commands to create old-style static archives.
868b2b66 (kx 2024-12-20 16:11:07 +0300 1543) old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
868b2b66 (kx 2024-12-20 16:11:07 +0300 1544) old_postinstall_cmds='chmod 644 $oldlib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 1545) old_postuninstall_cmds=
868b2b66 (kx 2024-12-20 16:11:07 +0300 1546)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1547) if test -n "$RANLIB"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 1548) case $host_os in
868b2b66 (kx 2024-12-20 16:11:07 +0300 1549) bitrig* | openbsd*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1550) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
868b2b66 (kx 2024-12-20 16:11:07 +0300 1551) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1552) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1553) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
868b2b66 (kx 2024-12-20 16:11:07 +0300 1554) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1555) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 1556) old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
868b2b66 (kx 2024-12-20 16:11:07 +0300 1557) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 1558)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1559) case $host_os in
868b2b66 (kx 2024-12-20 16:11:07 +0300 1560) darwin*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1561) lock_old_archive_extraction=yes ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1562) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1563) lock_old_archive_extraction=no ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1564) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 1565) _LT_DECL([], [old_postinstall_cmds], [2])
868b2b66 (kx 2024-12-20 16:11:07 +0300 1566) _LT_DECL([], [old_postuninstall_cmds], [2])
868b2b66 (kx 2024-12-20 16:11:07 +0300 1567) _LT_TAGDECL([], [old_archive_cmds], [2],
868b2b66 (kx 2024-12-20 16:11:07 +0300 1568) [Commands used to build an old-style archive])
868b2b66 (kx 2024-12-20 16:11:07 +0300 1569) _LT_DECL([], [lock_old_archive_extraction], [0],
868b2b66 (kx 2024-12-20 16:11:07 +0300 1570) [Whether to use a lock for old archive extraction])
868b2b66 (kx 2024-12-20 16:11:07 +0300 1571) ])# _LT_CMD_OLD_ARCHIVE
868b2b66 (kx 2024-12-20 16:11:07 +0300 1572)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1573)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1574) # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
868b2b66 (kx 2024-12-20 16:11:07 +0300 1575) # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
868b2b66 (kx 2024-12-20 16:11:07 +0300 1576) # ----------------------------------------------------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 1577) # Check whether the given compiler option works
868b2b66 (kx 2024-12-20 16:11:07 +0300 1578) AC_DEFUN([_LT_COMPILER_OPTION],
868b2b66 (kx 2024-12-20 16:11:07 +0300 1579) [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 1580) m4_require([_LT_DECL_SED])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 1581) AC_CACHE_CHECK([$1], [$2],
868b2b66 (kx 2024-12-20 16:11:07 +0300 1582) [$2=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 1583) m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
868b2b66 (kx 2024-12-20 16:11:07 +0300 1584) echo "$lt_simple_compile_test_code" > conftest.$ac_ext
868b2b66 (kx 2024-12-20 16:11:07 +0300 1585) lt_compiler_flag="$3" ## exclude from sc_useless_quotes_in_assignment
868b2b66 (kx 2024-12-20 16:11:07 +0300 1586) # Insert the option either (1) after the last *FLAGS variable, or
868b2b66 (kx 2024-12-20 16:11:07 +0300 1587) # (2) before a word containing "conftest.", or (3) at the end.
868b2b66 (kx 2024-12-20 16:11:07 +0300 1588) # Note that $ac_compile itself does not contain backslashes and begins
868b2b66 (kx 2024-12-20 16:11:07 +0300 1589) # with a dollar sign (not a hyphen), so the echo should work correctly.
868b2b66 (kx 2024-12-20 16:11:07 +0300 1590) # The option is referenced via a variable to avoid confusing sed.
868b2b66 (kx 2024-12-20 16:11:07 +0300 1591) lt_compile=`echo "$ac_compile" | $SED \
868b2b66 (kx 2024-12-20 16:11:07 +0300 1592) -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
868b2b66 (kx 2024-12-20 16:11:07 +0300 1593) -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
868b2b66 (kx 2024-12-20 16:11:07 +0300 1594) -e 's:$: $lt_compiler_flag:'`
868b2b66 (kx 2024-12-20 16:11:07 +0300 1595) (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1596) (eval "$lt_compile" 2>conftest.err)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1597) ac_status=$?
868b2b66 (kx 2024-12-20 16:11:07 +0300 1598) cat conftest.err >&AS_MESSAGE_LOG_FD
868b2b66 (kx 2024-12-20 16:11:07 +0300 1599) echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
868b2b66 (kx 2024-12-20 16:11:07 +0300 1600) if (exit $ac_status) && test -s "$ac_outfile"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 1601) # The compiler can only warn and ignore the option if not recognized
868b2b66 (kx 2024-12-20 16:11:07 +0300 1602) # So say no if there are warnings other than the usual output.
868b2b66 (kx 2024-12-20 16:11:07 +0300 1603) $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
868b2b66 (kx 2024-12-20 16:11:07 +0300 1604) $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
868b2b66 (kx 2024-12-20 16:11:07 +0300 1605) if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 1606) $2=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 1607) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 1608) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 1609) $RM conftest*
868b2b66 (kx 2024-12-20 16:11:07 +0300 1610) ])
868b2b66 (kx 2024-12-20 16:11:07 +0300 1611)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1612) if test yes = "[$]$2"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 1613) m4_if([$5], , :, [$5])
868b2b66 (kx 2024-12-20 16:11:07 +0300 1614) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 1615) m4_if([$6], , :, [$6])
868b2b66 (kx 2024-12-20 16:11:07 +0300 1616) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 1617) ])# _LT_COMPILER_OPTION
868b2b66 (kx 2024-12-20 16:11:07 +0300 1618)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1619) # Old name:
868b2b66 (kx 2024-12-20 16:11:07 +0300 1620) AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
868b2b66 (kx 2024-12-20 16:11:07 +0300 1621) dnl aclocal-1.4 backwards compatibility:
868b2b66 (kx 2024-12-20 16:11:07 +0300 1622) dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
868b2b66 (kx 2024-12-20 16:11:07 +0300 1623)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1624)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1625) # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
868b2b66 (kx 2024-12-20 16:11:07 +0300 1626) # [ACTION-SUCCESS], [ACTION-FAILURE])
868b2b66 (kx 2024-12-20 16:11:07 +0300 1627) # ----------------------------------------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 1628) # Check whether the given linker option works
868b2b66 (kx 2024-12-20 16:11:07 +0300 1629) AC_DEFUN([_LT_LINKER_OPTION],
868b2b66 (kx 2024-12-20 16:11:07 +0300 1630) [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 1631) m4_require([_LT_DECL_SED])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 1632) AC_CACHE_CHECK([$1], [$2],
868b2b66 (kx 2024-12-20 16:11:07 +0300 1633) [$2=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 1634) save_LDFLAGS=$LDFLAGS
868b2b66 (kx 2024-12-20 16:11:07 +0300 1635) LDFLAGS="$LDFLAGS $3"
868b2b66 (kx 2024-12-20 16:11:07 +0300 1636) echo "$lt_simple_link_test_code" > conftest.$ac_ext
868b2b66 (kx 2024-12-20 16:11:07 +0300 1637) if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 1638) # The linker can only warn and ignore the option if not recognized
868b2b66 (kx 2024-12-20 16:11:07 +0300 1639) # So say no if there are warnings
868b2b66 (kx 2024-12-20 16:11:07 +0300 1640) if test -s conftest.err; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 1641) # Append any errors to the config.log.
868b2b66 (kx 2024-12-20 16:11:07 +0300 1642) cat conftest.err 1>&AS_MESSAGE_LOG_FD
868b2b66 (kx 2024-12-20 16:11:07 +0300 1643) $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
868b2b66 (kx 2024-12-20 16:11:07 +0300 1644) $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
868b2b66 (kx 2024-12-20 16:11:07 +0300 1645) if diff conftest.exp conftest.er2 >/dev/null; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 1646) $2=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 1647) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 1648) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 1649) $2=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 1650) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 1651) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 1652) $RM -r conftest*
868b2b66 (kx 2024-12-20 16:11:07 +0300 1653) LDFLAGS=$save_LDFLAGS
868b2b66 (kx 2024-12-20 16:11:07 +0300 1654) ])
868b2b66 (kx 2024-12-20 16:11:07 +0300 1655)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1656) if test yes = "[$]$2"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 1657) m4_if([$4], , :, [$4])
868b2b66 (kx 2024-12-20 16:11:07 +0300 1658) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 1659) m4_if([$5], , :, [$5])
868b2b66 (kx 2024-12-20 16:11:07 +0300 1660) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 1661) ])# _LT_LINKER_OPTION
868b2b66 (kx 2024-12-20 16:11:07 +0300 1662)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1663) # Old name:
868b2b66 (kx 2024-12-20 16:11:07 +0300 1664) AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
868b2b66 (kx 2024-12-20 16:11:07 +0300 1665) dnl aclocal-1.4 backwards compatibility:
868b2b66 (kx 2024-12-20 16:11:07 +0300 1666) dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
868b2b66 (kx 2024-12-20 16:11:07 +0300 1667)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1668)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1669) # LT_CMD_MAX_LEN
868b2b66 (kx 2024-12-20 16:11:07 +0300 1670) #---------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 1671) AC_DEFUN([LT_CMD_MAX_LEN],
868b2b66 (kx 2024-12-20 16:11:07 +0300 1672) [AC_REQUIRE([AC_CANONICAL_HOST])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 1673) # find the maximum length of command line arguments
868b2b66 (kx 2024-12-20 16:11:07 +0300 1674) AC_MSG_CHECKING([the maximum length of command line arguments])
868b2b66 (kx 2024-12-20 16:11:07 +0300 1675) AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 1676) i=0
868b2b66 (kx 2024-12-20 16:11:07 +0300 1677) teststring=ABCD
868b2b66 (kx 2024-12-20 16:11:07 +0300 1678)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1679) case $build_os in
868b2b66 (kx 2024-12-20 16:11:07 +0300 1680) msdosdjgpp*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1681) # On DJGPP, this test can blow up pretty badly due to problems in libc
868b2b66 (kx 2024-12-20 16:11:07 +0300 1682) # (any single argument exceeding 2000 bytes causes a buffer overrun
868b2b66 (kx 2024-12-20 16:11:07 +0300 1683) # during glob expansion). Even if it were fixed, the result of this
868b2b66 (kx 2024-12-20 16:11:07 +0300 1684) # check would be larger than it should be.
868b2b66 (kx 2024-12-20 16:11:07 +0300 1685) lt_cv_sys_max_cmd_len=12288; # 12K is about right
868b2b66 (kx 2024-12-20 16:11:07 +0300 1686) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1687)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1688) gnu*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1689) # Under GNU Hurd, this test is not required because there is
868b2b66 (kx 2024-12-20 16:11:07 +0300 1690) # no limit to the length of command line arguments.
868b2b66 (kx 2024-12-20 16:11:07 +0300 1691) # Libtool will interpret -1 as no limit whatsoever
868b2b66 (kx 2024-12-20 16:11:07 +0300 1692) lt_cv_sys_max_cmd_len=-1;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1693) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1694)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1695) cygwin* | mingw* | cegcc*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1696) # On Win9x/ME, this test blows up -- it succeeds, but takes
868b2b66 (kx 2024-12-20 16:11:07 +0300 1697) # about 5 minutes as the teststring grows exponentially.
868b2b66 (kx 2024-12-20 16:11:07 +0300 1698) # Worse, since 9x/ME are not pre-emptively multitasking,
868b2b66 (kx 2024-12-20 16:11:07 +0300 1699) # you end up with a "frozen" computer, even though with patience
868b2b66 (kx 2024-12-20 16:11:07 +0300 1700) # the test eventually succeeds (with a max line length of 256k).
868b2b66 (kx 2024-12-20 16:11:07 +0300 1701) # Instead, let's just punt: use the minimum linelength reported by
868b2b66 (kx 2024-12-20 16:11:07 +0300 1702) # all of the supported platforms: 8192 (on NT/2K/XP).
868b2b66 (kx 2024-12-20 16:11:07 +0300 1703) lt_cv_sys_max_cmd_len=8192;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1704) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1705)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1706) mint*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1707) # On MiNT this can take a long time and run out of memory.
868b2b66 (kx 2024-12-20 16:11:07 +0300 1708) lt_cv_sys_max_cmd_len=8192;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1709) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1710)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1711) amigaos*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1712) # On AmigaOS with pdksh, this test takes hours, literally.
868b2b66 (kx 2024-12-20 16:11:07 +0300 1713) # So we just punt and use a minimum line length of 8192.
868b2b66 (kx 2024-12-20 16:11:07 +0300 1714) lt_cv_sys_max_cmd_len=8192;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1715) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1716)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1717) bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1718) # This has been around since 386BSD, at least. Likely further.
868b2b66 (kx 2024-12-20 16:11:07 +0300 1719) if test -x /sbin/sysctl; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 1720) lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
868b2b66 (kx 2024-12-20 16:11:07 +0300 1721) elif test -x /usr/sbin/sysctl; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 1722) lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
868b2b66 (kx 2024-12-20 16:11:07 +0300 1723) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 1724) lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
868b2b66 (kx 2024-12-20 16:11:07 +0300 1725) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 1726) # And add a safety zone
868b2b66 (kx 2024-12-20 16:11:07 +0300 1727) lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
868b2b66 (kx 2024-12-20 16:11:07 +0300 1728) lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
868b2b66 (kx 2024-12-20 16:11:07 +0300 1729) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1730)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1731) interix*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1732) # We know the value 262144 and hardcode it with a safety zone (like BSD)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1733) lt_cv_sys_max_cmd_len=196608
868b2b66 (kx 2024-12-20 16:11:07 +0300 1734) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1735)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1736) os2*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1737) # The test takes a long time on OS/2.
868b2b66 (kx 2024-12-20 16:11:07 +0300 1738) lt_cv_sys_max_cmd_len=8192
868b2b66 (kx 2024-12-20 16:11:07 +0300 1739) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1740)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1741) osf*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1742) # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
868b2b66 (kx 2024-12-20 16:11:07 +0300 1743) # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
868b2b66 (kx 2024-12-20 16:11:07 +0300 1744) # nice to cause kernel panics so lets avoid the loop below.
868b2b66 (kx 2024-12-20 16:11:07 +0300 1745) # First set a reasonable default.
868b2b66 (kx 2024-12-20 16:11:07 +0300 1746) lt_cv_sys_max_cmd_len=16384
868b2b66 (kx 2024-12-20 16:11:07 +0300 1747) #
868b2b66 (kx 2024-12-20 16:11:07 +0300 1748) if test -x /sbin/sysconfig; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 1749) case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
868b2b66 (kx 2024-12-20 16:11:07 +0300 1750) *1*) lt_cv_sys_max_cmd_len=-1 ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1751) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 1752) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 1753) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1754) sco3.2v5*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1755) lt_cv_sys_max_cmd_len=102400
868b2b66 (kx 2024-12-20 16:11:07 +0300 1756) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1757) sysv5* | sco5v6* | sysv4.2uw2*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1758) kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
868b2b66 (kx 2024-12-20 16:11:07 +0300 1759) if test -n "$kargmax"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 1760) lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
868b2b66 (kx 2024-12-20 16:11:07 +0300 1761) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 1762) lt_cv_sys_max_cmd_len=32768
868b2b66 (kx 2024-12-20 16:11:07 +0300 1763) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 1764) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1765) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1766) lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
868b2b66 (kx 2024-12-20 16:11:07 +0300 1767) if test -n "$lt_cv_sys_max_cmd_len" && \
868b2b66 (kx 2024-12-20 16:11:07 +0300 1768) test undefined != "$lt_cv_sys_max_cmd_len"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 1769) lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
868b2b66 (kx 2024-12-20 16:11:07 +0300 1770) lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
868b2b66 (kx 2024-12-20 16:11:07 +0300 1771) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 1772) # Make teststring a little bigger before we do anything with it.
868b2b66 (kx 2024-12-20 16:11:07 +0300 1773) # a 1K string should be a reasonable start.
868b2b66 (kx 2024-12-20 16:11:07 +0300 1774) for i in 1 2 3 4 5 6 7 8; do
868b2b66 (kx 2024-12-20 16:11:07 +0300 1775) teststring=$teststring$teststring
868b2b66 (kx 2024-12-20 16:11:07 +0300 1776) done
868b2b66 (kx 2024-12-20 16:11:07 +0300 1777) SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
868b2b66 (kx 2024-12-20 16:11:07 +0300 1778) # If test is not a shell built-in, we'll probably end up computing a
868b2b66 (kx 2024-12-20 16:11:07 +0300 1779) # maximum length that is only half of the actual maximum length, but
868b2b66 (kx 2024-12-20 16:11:07 +0300 1780) # we can't tell.
868b2b66 (kx 2024-12-20 16:11:07 +0300 1781) while { test X`env echo "$teststring$teststring" 2>/dev/null` \
868b2b66 (kx 2024-12-20 16:11:07 +0300 1782) = "X$teststring$teststring"; } >/dev/null 2>&1 &&
868b2b66 (kx 2024-12-20 16:11:07 +0300 1783) test 17 != "$i" # 1/2 MB should be enough
868b2b66 (kx 2024-12-20 16:11:07 +0300 1784) do
868b2b66 (kx 2024-12-20 16:11:07 +0300 1785) i=`expr $i + 1`
868b2b66 (kx 2024-12-20 16:11:07 +0300 1786) teststring=$teststring$teststring
868b2b66 (kx 2024-12-20 16:11:07 +0300 1787) done
868b2b66 (kx 2024-12-20 16:11:07 +0300 1788) # Only check the string length outside the loop.
868b2b66 (kx 2024-12-20 16:11:07 +0300 1789) lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
868b2b66 (kx 2024-12-20 16:11:07 +0300 1790) teststring=
868b2b66 (kx 2024-12-20 16:11:07 +0300 1791) # Add a significant safety factor because C++ compilers can tack on
868b2b66 (kx 2024-12-20 16:11:07 +0300 1792) # massive amounts of additional arguments before passing them to the
868b2b66 (kx 2024-12-20 16:11:07 +0300 1793) # linker. It appears as though 1/2 is a usable value.
868b2b66 (kx 2024-12-20 16:11:07 +0300 1794) lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
868b2b66 (kx 2024-12-20 16:11:07 +0300 1795) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 1796) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1797) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 1798) ])
868b2b66 (kx 2024-12-20 16:11:07 +0300 1799) if test -n "$lt_cv_sys_max_cmd_len"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 1800) AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1801) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 1802) AC_MSG_RESULT(none)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1803) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 1804) max_cmd_len=$lt_cv_sys_max_cmd_len
868b2b66 (kx 2024-12-20 16:11:07 +0300 1805) _LT_DECL([], [max_cmd_len], [0],
868b2b66 (kx 2024-12-20 16:11:07 +0300 1806) [What is the maximum length of a command?])
868b2b66 (kx 2024-12-20 16:11:07 +0300 1807) ])# LT_CMD_MAX_LEN
868b2b66 (kx 2024-12-20 16:11:07 +0300 1808)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1809) # Old name:
868b2b66 (kx 2024-12-20 16:11:07 +0300 1810) AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
868b2b66 (kx 2024-12-20 16:11:07 +0300 1811) dnl aclocal-1.4 backwards compatibility:
868b2b66 (kx 2024-12-20 16:11:07 +0300 1812) dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
868b2b66 (kx 2024-12-20 16:11:07 +0300 1813)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1814)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1815) # _LT_HEADER_DLFCN
868b2b66 (kx 2024-12-20 16:11:07 +0300 1816) # ----------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 1817) m4_defun([_LT_HEADER_DLFCN],
868b2b66 (kx 2024-12-20 16:11:07 +0300 1818) [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 1819) ])# _LT_HEADER_DLFCN
868b2b66 (kx 2024-12-20 16:11:07 +0300 1820)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1821)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1822) # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
868b2b66 (kx 2024-12-20 16:11:07 +0300 1823) # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1824) # ----------------------------------------------------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 1825) m4_defun([_LT_TRY_DLOPEN_SELF],
868b2b66 (kx 2024-12-20 16:11:07 +0300 1826) [m4_require([_LT_HEADER_DLFCN])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 1827) if test yes = "$cross_compiling"; then :
868b2b66 (kx 2024-12-20 16:11:07 +0300 1828) [$4]
868b2b66 (kx 2024-12-20 16:11:07 +0300 1829) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 1830) lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
868b2b66 (kx 2024-12-20 16:11:07 +0300 1831) lt_status=$lt_dlunknown
868b2b66 (kx 2024-12-20 16:11:07 +0300 1832) cat > conftest.$ac_ext <<_LT_EOF
868b2b66 (kx 2024-12-20 16:11:07 +0300 1833) [#line $LINENO "configure"
868b2b66 (kx 2024-12-20 16:11:07 +0300 1834) #include "confdefs.h"
868b2b66 (kx 2024-12-20 16:11:07 +0300 1835)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1836) #if HAVE_DLFCN_H
868b2b66 (kx 2024-12-20 16:11:07 +0300 1837) #include <dlfcn.h>
868b2b66 (kx 2024-12-20 16:11:07 +0300 1838) #endif
868b2b66 (kx 2024-12-20 16:11:07 +0300 1839)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1840) #include <stdio.h>
868b2b66 (kx 2024-12-20 16:11:07 +0300 1841)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1842) #ifdef RTLD_GLOBAL
868b2b66 (kx 2024-12-20 16:11:07 +0300 1843) # define LT_DLGLOBAL RTLD_GLOBAL
868b2b66 (kx 2024-12-20 16:11:07 +0300 1844) #else
868b2b66 (kx 2024-12-20 16:11:07 +0300 1845) # ifdef DL_GLOBAL
868b2b66 (kx 2024-12-20 16:11:07 +0300 1846) # define LT_DLGLOBAL DL_GLOBAL
868b2b66 (kx 2024-12-20 16:11:07 +0300 1847) # else
868b2b66 (kx 2024-12-20 16:11:07 +0300 1848) # define LT_DLGLOBAL 0
868b2b66 (kx 2024-12-20 16:11:07 +0300 1849) # endif
868b2b66 (kx 2024-12-20 16:11:07 +0300 1850) #endif
868b2b66 (kx 2024-12-20 16:11:07 +0300 1851)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1852) /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
868b2b66 (kx 2024-12-20 16:11:07 +0300 1853) find out it does not work in some platform. */
868b2b66 (kx 2024-12-20 16:11:07 +0300 1854) #ifndef LT_DLLAZY_OR_NOW
868b2b66 (kx 2024-12-20 16:11:07 +0300 1855) # ifdef RTLD_LAZY
868b2b66 (kx 2024-12-20 16:11:07 +0300 1856) # define LT_DLLAZY_OR_NOW RTLD_LAZY
868b2b66 (kx 2024-12-20 16:11:07 +0300 1857) # else
868b2b66 (kx 2024-12-20 16:11:07 +0300 1858) # ifdef DL_LAZY
868b2b66 (kx 2024-12-20 16:11:07 +0300 1859) # define LT_DLLAZY_OR_NOW DL_LAZY
868b2b66 (kx 2024-12-20 16:11:07 +0300 1860) # else
868b2b66 (kx 2024-12-20 16:11:07 +0300 1861) # ifdef RTLD_NOW
868b2b66 (kx 2024-12-20 16:11:07 +0300 1862) # define LT_DLLAZY_OR_NOW RTLD_NOW
868b2b66 (kx 2024-12-20 16:11:07 +0300 1863) # else
868b2b66 (kx 2024-12-20 16:11:07 +0300 1864) # ifdef DL_NOW
868b2b66 (kx 2024-12-20 16:11:07 +0300 1865) # define LT_DLLAZY_OR_NOW DL_NOW
868b2b66 (kx 2024-12-20 16:11:07 +0300 1866) # else
868b2b66 (kx 2024-12-20 16:11:07 +0300 1867) # define LT_DLLAZY_OR_NOW 0
868b2b66 (kx 2024-12-20 16:11:07 +0300 1868) # endif
868b2b66 (kx 2024-12-20 16:11:07 +0300 1869) # endif
868b2b66 (kx 2024-12-20 16:11:07 +0300 1870) # endif
868b2b66 (kx 2024-12-20 16:11:07 +0300 1871) # endif
868b2b66 (kx 2024-12-20 16:11:07 +0300 1872) #endif
868b2b66 (kx 2024-12-20 16:11:07 +0300 1873)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1874) /* When -fvisibility=hidden is used, assume the code has been annotated
868b2b66 (kx 2024-12-20 16:11:07 +0300 1875) correspondingly for the symbols needed. */
868b2b66 (kx 2024-12-20 16:11:07 +0300 1876) #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
868b2b66 (kx 2024-12-20 16:11:07 +0300 1877) int fnord () __attribute__((visibility("default")));
868b2b66 (kx 2024-12-20 16:11:07 +0300 1878) #endif
868b2b66 (kx 2024-12-20 16:11:07 +0300 1879)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1880) int fnord () { return 42; }
868b2b66 (kx 2024-12-20 16:11:07 +0300 1881) int main ()
868b2b66 (kx 2024-12-20 16:11:07 +0300 1882) {
868b2b66 (kx 2024-12-20 16:11:07 +0300 1883) void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
868b2b66 (kx 2024-12-20 16:11:07 +0300 1884) int status = $lt_dlunknown;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1885)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1886) if (self)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1887) {
868b2b66 (kx 2024-12-20 16:11:07 +0300 1888) if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1889) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 1890) {
868b2b66 (kx 2024-12-20 16:11:07 +0300 1891) if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1892) else puts (dlerror ());
868b2b66 (kx 2024-12-20 16:11:07 +0300 1893) }
868b2b66 (kx 2024-12-20 16:11:07 +0300 1894) /* dlclose (self); */
868b2b66 (kx 2024-12-20 16:11:07 +0300 1895) }
868b2b66 (kx 2024-12-20 16:11:07 +0300 1896) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 1897) puts (dlerror ());
868b2b66 (kx 2024-12-20 16:11:07 +0300 1898)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1899) return status;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1900) }]
868b2b66 (kx 2024-12-20 16:11:07 +0300 1901) _LT_EOF
868b2b66 (kx 2024-12-20 16:11:07 +0300 1902) if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 1903) (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
868b2b66 (kx 2024-12-20 16:11:07 +0300 1904) lt_status=$?
868b2b66 (kx 2024-12-20 16:11:07 +0300 1905) case x$lt_status in
868b2b66 (kx 2024-12-20 16:11:07 +0300 1906) x$lt_dlno_uscore) $1 ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1907) x$lt_dlneed_uscore) $2 ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1908) x$lt_dlunknown|x*) $3 ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1909) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 1910) else :
868b2b66 (kx 2024-12-20 16:11:07 +0300 1911) # compilation failed
868b2b66 (kx 2024-12-20 16:11:07 +0300 1912) $3
868b2b66 (kx 2024-12-20 16:11:07 +0300 1913) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 1914) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 1915) rm -fr conftest*
868b2b66 (kx 2024-12-20 16:11:07 +0300 1916) ])# _LT_TRY_DLOPEN_SELF
868b2b66 (kx 2024-12-20 16:11:07 +0300 1917)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1918)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1919) # LT_SYS_DLOPEN_SELF
868b2b66 (kx 2024-12-20 16:11:07 +0300 1920) # ------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 1921) AC_DEFUN([LT_SYS_DLOPEN_SELF],
868b2b66 (kx 2024-12-20 16:11:07 +0300 1922) [m4_require([_LT_HEADER_DLFCN])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 1923) if test yes != "$enable_dlopen"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 1924) enable_dlopen=unknown
868b2b66 (kx 2024-12-20 16:11:07 +0300 1925) enable_dlopen_self=unknown
868b2b66 (kx 2024-12-20 16:11:07 +0300 1926) enable_dlopen_self_static=unknown
868b2b66 (kx 2024-12-20 16:11:07 +0300 1927) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 1928) lt_cv_dlopen=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 1929) lt_cv_dlopen_libs=
868b2b66 (kx 2024-12-20 16:11:07 +0300 1930)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1931) case $host_os in
868b2b66 (kx 2024-12-20 16:11:07 +0300 1932) beos*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1933) lt_cv_dlopen=load_add_on
868b2b66 (kx 2024-12-20 16:11:07 +0300 1934) lt_cv_dlopen_libs=
868b2b66 (kx 2024-12-20 16:11:07 +0300 1935) lt_cv_dlopen_self=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 1936) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1937)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1938) mingw* | pw32* | cegcc*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1939) lt_cv_dlopen=LoadLibrary
868b2b66 (kx 2024-12-20 16:11:07 +0300 1940) lt_cv_dlopen_libs=
868b2b66 (kx 2024-12-20 16:11:07 +0300 1941) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1942)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1943) cygwin*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1944) lt_cv_dlopen=dlopen
868b2b66 (kx 2024-12-20 16:11:07 +0300 1945) lt_cv_dlopen_libs=
868b2b66 (kx 2024-12-20 16:11:07 +0300 1946) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1947)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1948) darwin*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1949) # if libdl is installed we need to link against it
868b2b66 (kx 2024-12-20 16:11:07 +0300 1950) AC_CHECK_LIB([dl], [dlopen],
868b2b66 (kx 2024-12-20 16:11:07 +0300 1951) [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[
868b2b66 (kx 2024-12-20 16:11:07 +0300 1952) lt_cv_dlopen=dyld
868b2b66 (kx 2024-12-20 16:11:07 +0300 1953) lt_cv_dlopen_libs=
868b2b66 (kx 2024-12-20 16:11:07 +0300 1954) lt_cv_dlopen_self=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 1955) ])
868b2b66 (kx 2024-12-20 16:11:07 +0300 1956) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1957)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1958) tpf*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1959) # Don't try to run any link tests for TPF. We know it's impossible
868b2b66 (kx 2024-12-20 16:11:07 +0300 1960) # because TPF is a cross-compiler, and we know how we open DSOs.
868b2b66 (kx 2024-12-20 16:11:07 +0300 1961) lt_cv_dlopen=dlopen
868b2b66 (kx 2024-12-20 16:11:07 +0300 1962) lt_cv_dlopen_libs=
868b2b66 (kx 2024-12-20 16:11:07 +0300 1963) lt_cv_dlopen_self=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 1964) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1965)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1966) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1967) AC_CHECK_FUNC([shl_load],
868b2b66 (kx 2024-12-20 16:11:07 +0300 1968) [lt_cv_dlopen=shl_load],
868b2b66 (kx 2024-12-20 16:11:07 +0300 1969) [AC_CHECK_LIB([dld], [shl_load],
868b2b66 (kx 2024-12-20 16:11:07 +0300 1970) [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld],
868b2b66 (kx 2024-12-20 16:11:07 +0300 1971) [AC_CHECK_FUNC([dlopen],
868b2b66 (kx 2024-12-20 16:11:07 +0300 1972) [lt_cv_dlopen=dlopen],
868b2b66 (kx 2024-12-20 16:11:07 +0300 1973) [AC_CHECK_LIB([dl], [dlopen],
868b2b66 (kx 2024-12-20 16:11:07 +0300 1974) [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],
868b2b66 (kx 2024-12-20 16:11:07 +0300 1975) [AC_CHECK_LIB([svld], [dlopen],
868b2b66 (kx 2024-12-20 16:11:07 +0300 1976) [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld],
868b2b66 (kx 2024-12-20 16:11:07 +0300 1977) [AC_CHECK_LIB([dld], [dld_link],
868b2b66 (kx 2024-12-20 16:11:07 +0300 1978) [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld])
868b2b66 (kx 2024-12-20 16:11:07 +0300 1979) ])
868b2b66 (kx 2024-12-20 16:11:07 +0300 1980) ])
868b2b66 (kx 2024-12-20 16:11:07 +0300 1981) ])
868b2b66 (kx 2024-12-20 16:11:07 +0300 1982) ])
868b2b66 (kx 2024-12-20 16:11:07 +0300 1983) ])
868b2b66 (kx 2024-12-20 16:11:07 +0300 1984) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 1985) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 1986)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1987) if test no = "$lt_cv_dlopen"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 1988) enable_dlopen=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 1989) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 1990) enable_dlopen=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 1991) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 1992)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1993) case $lt_cv_dlopen in
868b2b66 (kx 2024-12-20 16:11:07 +0300 1994) dlopen)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1995) save_CPPFLAGS=$CPPFLAGS
868b2b66 (kx 2024-12-20 16:11:07 +0300 1996) test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
868b2b66 (kx 2024-12-20 16:11:07 +0300 1997)
868b2b66 (kx 2024-12-20 16:11:07 +0300 1998) save_LDFLAGS=$LDFLAGS
868b2b66 (kx 2024-12-20 16:11:07 +0300 1999) wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
868b2b66 (kx 2024-12-20 16:11:07 +0300 2000)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2001) save_LIBS=$LIBS
868b2b66 (kx 2024-12-20 16:11:07 +0300 2002) LIBS="$lt_cv_dlopen_libs $LIBS"
868b2b66 (kx 2024-12-20 16:11:07 +0300 2003)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2004) AC_CACHE_CHECK([whether a program can dlopen itself],
868b2b66 (kx 2024-12-20 16:11:07 +0300 2005) lt_cv_dlopen_self, [dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 2006) _LT_TRY_DLOPEN_SELF(
868b2b66 (kx 2024-12-20 16:11:07 +0300 2007) lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
868b2b66 (kx 2024-12-20 16:11:07 +0300 2008) lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2009) ])
868b2b66 (kx 2024-12-20 16:11:07 +0300 2010)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2011) if test yes = "$lt_cv_dlopen_self"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 2012) wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
868b2b66 (kx 2024-12-20 16:11:07 +0300 2013) AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
868b2b66 (kx 2024-12-20 16:11:07 +0300 2014) lt_cv_dlopen_self_static, [dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 2015) _LT_TRY_DLOPEN_SELF(
868b2b66 (kx 2024-12-20 16:11:07 +0300 2016) lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
868b2b66 (kx 2024-12-20 16:11:07 +0300 2017) lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2018) ])
868b2b66 (kx 2024-12-20 16:11:07 +0300 2019) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 2020)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2021) CPPFLAGS=$save_CPPFLAGS
868b2b66 (kx 2024-12-20 16:11:07 +0300 2022) LDFLAGS=$save_LDFLAGS
868b2b66 (kx 2024-12-20 16:11:07 +0300 2023) LIBS=$save_LIBS
868b2b66 (kx 2024-12-20 16:11:07 +0300 2024) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2025) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 2026)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2027) case $lt_cv_dlopen_self in
868b2b66 (kx 2024-12-20 16:11:07 +0300 2028) yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2029) *) enable_dlopen_self=unknown ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2030) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 2031)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2032) case $lt_cv_dlopen_self_static in
868b2b66 (kx 2024-12-20 16:11:07 +0300 2033) yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2034) *) enable_dlopen_self_static=unknown ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2035) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 2036) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 2037) _LT_DECL([dlopen_support], [enable_dlopen], [0],
868b2b66 (kx 2024-12-20 16:11:07 +0300 2038) [Whether dlopen is supported])
868b2b66 (kx 2024-12-20 16:11:07 +0300 2039) _LT_DECL([dlopen_self], [enable_dlopen_self], [0],
868b2b66 (kx 2024-12-20 16:11:07 +0300 2040) [Whether dlopen of programs is supported])
868b2b66 (kx 2024-12-20 16:11:07 +0300 2041) _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
868b2b66 (kx 2024-12-20 16:11:07 +0300 2042) [Whether dlopen of statically linked programs is supported])
868b2b66 (kx 2024-12-20 16:11:07 +0300 2043) ])# LT_SYS_DLOPEN_SELF
868b2b66 (kx 2024-12-20 16:11:07 +0300 2044)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2045) # Old name:
868b2b66 (kx 2024-12-20 16:11:07 +0300 2046) AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
868b2b66 (kx 2024-12-20 16:11:07 +0300 2047) dnl aclocal-1.4 backwards compatibility:
868b2b66 (kx 2024-12-20 16:11:07 +0300 2048) dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
868b2b66 (kx 2024-12-20 16:11:07 +0300 2049)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2050)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2051) # _LT_COMPILER_C_O([TAGNAME])
868b2b66 (kx 2024-12-20 16:11:07 +0300 2052) # ---------------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 2053) # Check to see if options -c and -o are simultaneously supported by compiler.
868b2b66 (kx 2024-12-20 16:11:07 +0300 2054) # This macro does not hard code the compiler like AC_PROG_CC_C_O.
868b2b66 (kx 2024-12-20 16:11:07 +0300 2055) m4_defun([_LT_COMPILER_C_O],
868b2b66 (kx 2024-12-20 16:11:07 +0300 2056) [m4_require([_LT_DECL_SED])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 2057) m4_require([_LT_FILEUTILS_DEFAULTS])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 2058) m4_require([_LT_TAG_COMPILER])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 2059) AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
868b2b66 (kx 2024-12-20 16:11:07 +0300 2060) [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
868b2b66 (kx 2024-12-20 16:11:07 +0300 2061) [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 2062) $RM -r conftest 2>/dev/null
868b2b66 (kx 2024-12-20 16:11:07 +0300 2063) mkdir conftest
868b2b66 (kx 2024-12-20 16:11:07 +0300 2064) cd conftest
868b2b66 (kx 2024-12-20 16:11:07 +0300 2065) mkdir out
868b2b66 (kx 2024-12-20 16:11:07 +0300 2066) echo "$lt_simple_compile_test_code" > conftest.$ac_ext
868b2b66 (kx 2024-12-20 16:11:07 +0300 2067)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2068) lt_compiler_flag="-o out/conftest2.$ac_objext"
868b2b66 (kx 2024-12-20 16:11:07 +0300 2069) # Insert the option either (1) after the last *FLAGS variable, or
868b2b66 (kx 2024-12-20 16:11:07 +0300 2070) # (2) before a word containing "conftest.", or (3) at the end.
868b2b66 (kx 2024-12-20 16:11:07 +0300 2071) # Note that $ac_compile itself does not contain backslashes and begins
868b2b66 (kx 2024-12-20 16:11:07 +0300 2072) # with a dollar sign (not a hyphen), so the echo should work correctly.
868b2b66 (kx 2024-12-20 16:11:07 +0300 2073) lt_compile=`echo "$ac_compile" | $SED \
868b2b66 (kx 2024-12-20 16:11:07 +0300 2074) -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
868b2b66 (kx 2024-12-20 16:11:07 +0300 2075) -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
868b2b66 (kx 2024-12-20 16:11:07 +0300 2076) -e 's:$: $lt_compiler_flag:'`
868b2b66 (kx 2024-12-20 16:11:07 +0300 2077) (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2078) (eval "$lt_compile" 2>out/conftest.err)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2079) ac_status=$?
868b2b66 (kx 2024-12-20 16:11:07 +0300 2080) cat out/conftest.err >&AS_MESSAGE_LOG_FD
868b2b66 (kx 2024-12-20 16:11:07 +0300 2081) echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
868b2b66 (kx 2024-12-20 16:11:07 +0300 2082) if (exit $ac_status) && test -s out/conftest2.$ac_objext
868b2b66 (kx 2024-12-20 16:11:07 +0300 2083) then
868b2b66 (kx 2024-12-20 16:11:07 +0300 2084) # The compiler can only warn and ignore the option if not recognized
868b2b66 (kx 2024-12-20 16:11:07 +0300 2085) # So say no if there are warnings
868b2b66 (kx 2024-12-20 16:11:07 +0300 2086) $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
868b2b66 (kx 2024-12-20 16:11:07 +0300 2087) $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
868b2b66 (kx 2024-12-20 16:11:07 +0300 2088) if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 2089) _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 2090) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 2091) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 2092) chmod u+w . 2>&AS_MESSAGE_LOG_FD
868b2b66 (kx 2024-12-20 16:11:07 +0300 2093) $RM conftest*
868b2b66 (kx 2024-12-20 16:11:07 +0300 2094) # SGI C++ compiler will create directory out/ii_files/ for
868b2b66 (kx 2024-12-20 16:11:07 +0300 2095) # template instantiation
868b2b66 (kx 2024-12-20 16:11:07 +0300 2096) test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
868b2b66 (kx 2024-12-20 16:11:07 +0300 2097) $RM out/* && rmdir out
868b2b66 (kx 2024-12-20 16:11:07 +0300 2098) cd ..
868b2b66 (kx 2024-12-20 16:11:07 +0300 2099) $RM -r conftest
868b2b66 (kx 2024-12-20 16:11:07 +0300 2100) $RM conftest*
868b2b66 (kx 2024-12-20 16:11:07 +0300 2101) ])
868b2b66 (kx 2024-12-20 16:11:07 +0300 2102) _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
868b2b66 (kx 2024-12-20 16:11:07 +0300 2103) [Does compiler simultaneously support -c and -o options?])
868b2b66 (kx 2024-12-20 16:11:07 +0300 2104) ])# _LT_COMPILER_C_O
868b2b66 (kx 2024-12-20 16:11:07 +0300 2105)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2106)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2107) # _LT_COMPILER_FILE_LOCKS([TAGNAME])
868b2b66 (kx 2024-12-20 16:11:07 +0300 2108) # ----------------------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 2109) # Check to see if we can do hard links to lock some files if needed
868b2b66 (kx 2024-12-20 16:11:07 +0300 2110) m4_defun([_LT_COMPILER_FILE_LOCKS],
868b2b66 (kx 2024-12-20 16:11:07 +0300 2111) [m4_require([_LT_ENABLE_LOCK])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 2112) m4_require([_LT_FILEUTILS_DEFAULTS])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 2113) _LT_COMPILER_C_O([$1])
868b2b66 (kx 2024-12-20 16:11:07 +0300 2114)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2115) hard_links=nottested
868b2b66 (kx 2024-12-20 16:11:07 +0300 2116) if test no = "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" && test no != "$need_locks"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 2117) # do not overwrite the value of need_locks provided by the user
868b2b66 (kx 2024-12-20 16:11:07 +0300 2118) AC_MSG_CHECKING([if we can lock with hard links])
868b2b66 (kx 2024-12-20 16:11:07 +0300 2119) hard_links=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 2120) $RM conftest*
868b2b66 (kx 2024-12-20 16:11:07 +0300 2121) ln conftest.a conftest.b 2>/dev/null && hard_links=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 2122) touch conftest.a
868b2b66 (kx 2024-12-20 16:11:07 +0300 2123) ln conftest.a conftest.b 2>&5 || hard_links=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 2124) ln conftest.a conftest.b 2>/dev/null && hard_links=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 2125) AC_MSG_RESULT([$hard_links])
868b2b66 (kx 2024-12-20 16:11:07 +0300 2126) if test no = "$hard_links"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 2127) AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe])
868b2b66 (kx 2024-12-20 16:11:07 +0300 2128) need_locks=warn
868b2b66 (kx 2024-12-20 16:11:07 +0300 2129) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 2130) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 2131) need_locks=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 2132) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 2133) _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
868b2b66 (kx 2024-12-20 16:11:07 +0300 2134) ])# _LT_COMPILER_FILE_LOCKS
868b2b66 (kx 2024-12-20 16:11:07 +0300 2135)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2136)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2137) # _LT_CHECK_OBJDIR
868b2b66 (kx 2024-12-20 16:11:07 +0300 2138) # ----------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 2139) m4_defun([_LT_CHECK_OBJDIR],
868b2b66 (kx 2024-12-20 16:11:07 +0300 2140) [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
868b2b66 (kx 2024-12-20 16:11:07 +0300 2141) [rm -f .libs 2>/dev/null
868b2b66 (kx 2024-12-20 16:11:07 +0300 2142) mkdir .libs 2>/dev/null
868b2b66 (kx 2024-12-20 16:11:07 +0300 2143) if test -d .libs; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 2144) lt_cv_objdir=.libs
868b2b66 (kx 2024-12-20 16:11:07 +0300 2145) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 2146) # MS-DOS does not allow filenames that begin with a dot.
868b2b66 (kx 2024-12-20 16:11:07 +0300 2147) lt_cv_objdir=_libs
868b2b66 (kx 2024-12-20 16:11:07 +0300 2148) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 2149) rmdir .libs 2>/dev/null])
868b2b66 (kx 2024-12-20 16:11:07 +0300 2150) objdir=$lt_cv_objdir
868b2b66 (kx 2024-12-20 16:11:07 +0300 2151) _LT_DECL([], [objdir], [0],
868b2b66 (kx 2024-12-20 16:11:07 +0300 2152) [The name of the directory that contains temporary libtool files])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 2153) m4_pattern_allow([LT_OBJDIR])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 2154) AC_DEFINE_UNQUOTED([LT_OBJDIR], "$lt_cv_objdir/",
868b2b66 (kx 2024-12-20 16:11:07 +0300 2155) [Define to the sub-directory where libtool stores uninstalled libraries.])
868b2b66 (kx 2024-12-20 16:11:07 +0300 2156) ])# _LT_CHECK_OBJDIR
868b2b66 (kx 2024-12-20 16:11:07 +0300 2157)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2158)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2159) # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
868b2b66 (kx 2024-12-20 16:11:07 +0300 2160) # --------------------------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 2161) # Check hardcoding attributes.
868b2b66 (kx 2024-12-20 16:11:07 +0300 2162) m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
868b2b66 (kx 2024-12-20 16:11:07 +0300 2163) [AC_MSG_CHECKING([how to hardcode library paths into programs])
868b2b66 (kx 2024-12-20 16:11:07 +0300 2164) _LT_TAGVAR(hardcode_action, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 2165) if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
868b2b66 (kx 2024-12-20 16:11:07 +0300 2166) test -n "$_LT_TAGVAR(runpath_var, $1)" ||
868b2b66 (kx 2024-12-20 16:11:07 +0300 2167) test yes = "$_LT_TAGVAR(hardcode_automatic, $1)"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 2168)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2169) # We can hardcode non-existent directories.
868b2b66 (kx 2024-12-20 16:11:07 +0300 2170) if test no != "$_LT_TAGVAR(hardcode_direct, $1)" &&
868b2b66 (kx 2024-12-20 16:11:07 +0300 2171) # If the only mechanism to avoid hardcoding is shlibpath_var, we
868b2b66 (kx 2024-12-20 16:11:07 +0300 2172) # have to relink, otherwise we might link with an installed library
868b2b66 (kx 2024-12-20 16:11:07 +0300 2173) # when we should be linking with a yet-to-be-installed one
868b2b66 (kx 2024-12-20 16:11:07 +0300 2174) ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" &&
868b2b66 (kx 2024-12-20 16:11:07 +0300 2175) test no != "$_LT_TAGVAR(hardcode_minus_L, $1)"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 2176) # Linking always hardcodes the temporary library directory.
868b2b66 (kx 2024-12-20 16:11:07 +0300 2177) _LT_TAGVAR(hardcode_action, $1)=relink
868b2b66 (kx 2024-12-20 16:11:07 +0300 2178) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 2179) # We can link without hardcoding, and we can hardcode nonexisting dirs.
868b2b66 (kx 2024-12-20 16:11:07 +0300 2180) _LT_TAGVAR(hardcode_action, $1)=immediate
868b2b66 (kx 2024-12-20 16:11:07 +0300 2181) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 2182) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 2183) # We cannot hardcode anything, or else we can only hardcode existing
868b2b66 (kx 2024-12-20 16:11:07 +0300 2184) # directories.
868b2b66 (kx 2024-12-20 16:11:07 +0300 2185) _LT_TAGVAR(hardcode_action, $1)=unsupported
868b2b66 (kx 2024-12-20 16:11:07 +0300 2186) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 2187) AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
868b2b66 (kx 2024-12-20 16:11:07 +0300 2188)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2189) if test relink = "$_LT_TAGVAR(hardcode_action, $1)" ||
868b2b66 (kx 2024-12-20 16:11:07 +0300 2190) test yes = "$_LT_TAGVAR(inherit_rpath, $1)"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 2191) # Fast installation is not supported
868b2b66 (kx 2024-12-20 16:11:07 +0300 2192) enable_fast_install=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 2193) elif test yes = "$shlibpath_overrides_runpath" ||
868b2b66 (kx 2024-12-20 16:11:07 +0300 2194) test no = "$enable_shared"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 2195) # Fast installation is not necessary
868b2b66 (kx 2024-12-20 16:11:07 +0300 2196) enable_fast_install=needless
868b2b66 (kx 2024-12-20 16:11:07 +0300 2197) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 2198) _LT_TAGDECL([], [hardcode_action], [0],
868b2b66 (kx 2024-12-20 16:11:07 +0300 2199) [How to hardcode a shared library path into an executable])
868b2b66 (kx 2024-12-20 16:11:07 +0300 2200) ])# _LT_LINKER_HARDCODE_LIBPATH
868b2b66 (kx 2024-12-20 16:11:07 +0300 2201)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2202)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2203) # _LT_CMD_STRIPLIB
868b2b66 (kx 2024-12-20 16:11:07 +0300 2204) # ----------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 2205) m4_defun([_LT_CMD_STRIPLIB],
868b2b66 (kx 2024-12-20 16:11:07 +0300 2206) [m4_require([_LT_DECL_EGREP])
868b2b66 (kx 2024-12-20 16:11:07 +0300 2207) striplib=
868b2b66 (kx 2024-12-20 16:11:07 +0300 2208) old_striplib=
868b2b66 (kx 2024-12-20 16:11:07 +0300 2209) AC_MSG_CHECKING([whether stripping libraries is possible])
868b2b66 (kx 2024-12-20 16:11:07 +0300 2210) if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 2211) test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
868b2b66 (kx 2024-12-20 16:11:07 +0300 2212) test -z "$striplib" && striplib="$STRIP --strip-unneeded"
868b2b66 (kx 2024-12-20 16:11:07 +0300 2213) AC_MSG_RESULT([yes])
868b2b66 (kx 2024-12-20 16:11:07 +0300 2214) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 2215) # FIXME - insert some real tests, host_os isn't really good enough
868b2b66 (kx 2024-12-20 16:11:07 +0300 2216) case $host_os in
868b2b66 (kx 2024-12-20 16:11:07 +0300 2217) darwin*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2218) if test -n "$STRIP"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 2219) striplib="$STRIP -x"
868b2b66 (kx 2024-12-20 16:11:07 +0300 2220) old_striplib="$STRIP -S"
868b2b66 (kx 2024-12-20 16:11:07 +0300 2221) AC_MSG_RESULT([yes])
868b2b66 (kx 2024-12-20 16:11:07 +0300 2222) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 2223) AC_MSG_RESULT([no])
868b2b66 (kx 2024-12-20 16:11:07 +0300 2224) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 2225) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2226) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2227) AC_MSG_RESULT([no])
868b2b66 (kx 2024-12-20 16:11:07 +0300 2228) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2229) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 2230) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 2231) _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
868b2b66 (kx 2024-12-20 16:11:07 +0300 2232) _LT_DECL([], [striplib], [1])
868b2b66 (kx 2024-12-20 16:11:07 +0300 2233) ])# _LT_CMD_STRIPLIB
868b2b66 (kx 2024-12-20 16:11:07 +0300 2234)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2235)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2236) # _LT_PREPARE_MUNGE_PATH_LIST
868b2b66 (kx 2024-12-20 16:11:07 +0300 2237) # ---------------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 2238) # Make sure func_munge_path_list() is defined correctly.
868b2b66 (kx 2024-12-20 16:11:07 +0300 2239) m4_defun([_LT_PREPARE_MUNGE_PATH_LIST],
868b2b66 (kx 2024-12-20 16:11:07 +0300 2240) [[# func_munge_path_list VARIABLE PATH
868b2b66 (kx 2024-12-20 16:11:07 +0300 2241) # -----------------------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 2242) # VARIABLE is name of variable containing _space_ separated list of
868b2b66 (kx 2024-12-20 16:11:07 +0300 2243) # directories to be munged by the contents of PATH, which is string
868b2b66 (kx 2024-12-20 16:11:07 +0300 2244) # having a format:
868b2b66 (kx 2024-12-20 16:11:07 +0300 2245) # "DIR[:DIR]:"
868b2b66 (kx 2024-12-20 16:11:07 +0300 2246) # string "DIR[ DIR]" will be prepended to VARIABLE
868b2b66 (kx 2024-12-20 16:11:07 +0300 2247) # ":DIR[:DIR]"
868b2b66 (kx 2024-12-20 16:11:07 +0300 2248) # string "DIR[ DIR]" will be appended to VARIABLE
868b2b66 (kx 2024-12-20 16:11:07 +0300 2249) # "DIRP[:DIRP]::[DIRA:]DIRA"
868b2b66 (kx 2024-12-20 16:11:07 +0300 2250) # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
868b2b66 (kx 2024-12-20 16:11:07 +0300 2251) # "DIRA[ DIRA]" will be appended to VARIABLE
868b2b66 (kx 2024-12-20 16:11:07 +0300 2252) # "DIR[:DIR]"
868b2b66 (kx 2024-12-20 16:11:07 +0300 2253) # VARIABLE will be replaced by "DIR[ DIR]"
868b2b66 (kx 2024-12-20 16:11:07 +0300 2254) func_munge_path_list ()
868b2b66 (kx 2024-12-20 16:11:07 +0300 2255) {
868b2b66 (kx 2024-12-20 16:11:07 +0300 2256) case x@S|@2 in
868b2b66 (kx 2024-12-20 16:11:07 +0300 2257) x)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2258) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2259) *:)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2260) eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\"
868b2b66 (kx 2024-12-20 16:11:07 +0300 2261) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2262) x:*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2263) eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\"
868b2b66 (kx 2024-12-20 16:11:07 +0300 2264) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2265) *::*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2266) eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
868b2b66 (kx 2024-12-20 16:11:07 +0300 2267) eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\"
868b2b66 (kx 2024-12-20 16:11:07 +0300 2268) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2269) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2270) eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\"
868b2b66 (kx 2024-12-20 16:11:07 +0300 2271) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2272) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 2273) }
868b2b66 (kx 2024-12-20 16:11:07 +0300 2274) ]])# _LT_PREPARE_PATH_LIST
868b2b66 (kx 2024-12-20 16:11:07 +0300 2275)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2276)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2277) # _LT_SYS_DYNAMIC_LINKER([TAG])
868b2b66 (kx 2024-12-20 16:11:07 +0300 2278) # -----------------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 2279) # PORTME Fill in your ld.so characteristics
868b2b66 (kx 2024-12-20 16:11:07 +0300 2280) m4_defun([_LT_SYS_DYNAMIC_LINKER],
868b2b66 (kx 2024-12-20 16:11:07 +0300 2281) [AC_REQUIRE([AC_CANONICAL_HOST])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 2282) m4_require([_LT_DECL_EGREP])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 2283) m4_require([_LT_FILEUTILS_DEFAULTS])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 2284) m4_require([_LT_DECL_OBJDUMP])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 2285) m4_require([_LT_DECL_SED])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 2286) m4_require([_LT_CHECK_SHELL_FEATURES])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 2287) m4_require([_LT_PREPARE_MUNGE_PATH_LIST])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 2288) AC_MSG_CHECKING([dynamic linker characteristics])
868b2b66 (kx 2024-12-20 16:11:07 +0300 2289) m4_if([$1],
868b2b66 (kx 2024-12-20 16:11:07 +0300 2290) [], [
868b2b66 (kx 2024-12-20 16:11:07 +0300 2291) if test yes = "$GCC"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 2292) case $host_os in
868b2b66 (kx 2024-12-20 16:11:07 +0300 2293) darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2294) *) lt_awk_arg='/^libraries:/' ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2295) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 2296) case $host_os in
868b2b66 (kx 2024-12-20 16:11:07 +0300 2297) mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2298) *) lt_sed_strip_eq='s|=/|/|g' ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2299) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 2300) lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
868b2b66 (kx 2024-12-20 16:11:07 +0300 2301) case $lt_search_path_spec in
868b2b66 (kx 2024-12-20 16:11:07 +0300 2302) *\;*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2303) # if the path contains ";" then we assume it to be the separator
868b2b66 (kx 2024-12-20 16:11:07 +0300 2304) # otherwise default to the standard path separator (i.e. ":") - it is
868b2b66 (kx 2024-12-20 16:11:07 +0300 2305) # assumed that no part of a normal pathname contains ";" but that should
868b2b66 (kx 2024-12-20 16:11:07 +0300 2306) # okay in the real world where ";" in dirpaths is itself problematic.
868b2b66 (kx 2024-12-20 16:11:07 +0300 2307) lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
868b2b66 (kx 2024-12-20 16:11:07 +0300 2308) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2309) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2310) lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
868b2b66 (kx 2024-12-20 16:11:07 +0300 2311) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2312) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 2313) # Ok, now we have the path, separated by spaces, we can step through it
868b2b66 (kx 2024-12-20 16:11:07 +0300 2314) # and add multilib dir if necessary...
868b2b66 (kx 2024-12-20 16:11:07 +0300 2315) lt_tmp_lt_search_path_spec=
868b2b66 (kx 2024-12-20 16:11:07 +0300 2316) lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
868b2b66 (kx 2024-12-20 16:11:07 +0300 2317) # ...but if some path component already ends with the multilib dir we assume
868b2b66 (kx 2024-12-20 16:11:07 +0300 2318) # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
868b2b66 (kx 2024-12-20 16:11:07 +0300 2319) case "$lt_multi_os_dir; $lt_search_path_spec " in
868b2b66 (kx 2024-12-20 16:11:07 +0300 2320) "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2321) lt_multi_os_dir=
868b2b66 (kx 2024-12-20 16:11:07 +0300 2322) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2323) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 2324) for lt_sys_path in $lt_search_path_spec; do
868b2b66 (kx 2024-12-20 16:11:07 +0300 2325) if test -d "$lt_sys_path$lt_multi_os_dir"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 2326) lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
868b2b66 (kx 2024-12-20 16:11:07 +0300 2327) elif test -n "$lt_multi_os_dir"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 2328) test -d "$lt_sys_path" && \
868b2b66 (kx 2024-12-20 16:11:07 +0300 2329) lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
868b2b66 (kx 2024-12-20 16:11:07 +0300 2330) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 2331) done
868b2b66 (kx 2024-12-20 16:11:07 +0300 2332) lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
868b2b66 (kx 2024-12-20 16:11:07 +0300 2333) BEGIN {RS = " "; FS = "/|\n";} {
868b2b66 (kx 2024-12-20 16:11:07 +0300 2334) lt_foo = "";
868b2b66 (kx 2024-12-20 16:11:07 +0300 2335) lt_count = 0;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2336) for (lt_i = NF; lt_i > 0; lt_i--) {
868b2b66 (kx 2024-12-20 16:11:07 +0300 2337) if ($lt_i != "" && $lt_i != ".") {
868b2b66 (kx 2024-12-20 16:11:07 +0300 2338) if ($lt_i == "..") {
868b2b66 (kx 2024-12-20 16:11:07 +0300 2339) lt_count++;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2340) } else {
868b2b66 (kx 2024-12-20 16:11:07 +0300 2341) if (lt_count == 0) {
868b2b66 (kx 2024-12-20 16:11:07 +0300 2342) lt_foo = "/" $lt_i lt_foo;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2343) } else {
868b2b66 (kx 2024-12-20 16:11:07 +0300 2344) lt_count--;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2345) }
868b2b66 (kx 2024-12-20 16:11:07 +0300 2346) }
868b2b66 (kx 2024-12-20 16:11:07 +0300 2347) }
868b2b66 (kx 2024-12-20 16:11:07 +0300 2348) }
868b2b66 (kx 2024-12-20 16:11:07 +0300 2349) if (lt_foo != "") { lt_freq[[lt_foo]]++; }
868b2b66 (kx 2024-12-20 16:11:07 +0300 2350) if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
868b2b66 (kx 2024-12-20 16:11:07 +0300 2351) }'`
868b2b66 (kx 2024-12-20 16:11:07 +0300 2352) # AWK program above erroneously prepends '/' to C:/dos/paths
868b2b66 (kx 2024-12-20 16:11:07 +0300 2353) # for these hosts.
868b2b66 (kx 2024-12-20 16:11:07 +0300 2354) case $host_os in
868b2b66 (kx 2024-12-20 16:11:07 +0300 2355) mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
868b2b66 (kx 2024-12-20 16:11:07 +0300 2356) $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2357) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 2358) sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
868b2b66 (kx 2024-12-20 16:11:07 +0300 2359) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 2360) sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
868b2b66 (kx 2024-12-20 16:11:07 +0300 2361) fi])
868b2b66 (kx 2024-12-20 16:11:07 +0300 2362) library_names_spec=
868b2b66 (kx 2024-12-20 16:11:07 +0300 2363) libname_spec='lib$name'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2364) soname_spec=
868b2b66 (kx 2024-12-20 16:11:07 +0300 2365) shrext_cmds=.so
868b2b66 (kx 2024-12-20 16:11:07 +0300 2366) postinstall_cmds=
868b2b66 (kx 2024-12-20 16:11:07 +0300 2367) postuninstall_cmds=
868b2b66 (kx 2024-12-20 16:11:07 +0300 2368) finish_cmds=
868b2b66 (kx 2024-12-20 16:11:07 +0300 2369) finish_eval=
868b2b66 (kx 2024-12-20 16:11:07 +0300 2370) shlibpath_var=
868b2b66 (kx 2024-12-20 16:11:07 +0300 2371) shlibpath_overrides_runpath=unknown
868b2b66 (kx 2024-12-20 16:11:07 +0300 2372) version_type=none
868b2b66 (kx 2024-12-20 16:11:07 +0300 2373) dynamic_linker="$host_os ld.so"
868b2b66 (kx 2024-12-20 16:11:07 +0300 2374) sys_lib_dlsearch_path_spec="/lib /usr/lib"
868b2b66 (kx 2024-12-20 16:11:07 +0300 2375) need_lib_prefix=unknown
868b2b66 (kx 2024-12-20 16:11:07 +0300 2376) hardcode_into_libs=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 2377)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2378) # when you set need_version to no, make sure it does not cause -set_version
868b2b66 (kx 2024-12-20 16:11:07 +0300 2379) # flags to be left without arguments
868b2b66 (kx 2024-12-20 16:11:07 +0300 2380) need_version=unknown
868b2b66 (kx 2024-12-20 16:11:07 +0300 2381)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2382) AC_ARG_VAR([LT_SYS_LIBRARY_PATH],
868b2b66 (kx 2024-12-20 16:11:07 +0300 2383) [User-defined run-time library search path.])
868b2b66 (kx 2024-12-20 16:11:07 +0300 2384)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2385) case $host_os in
868b2b66 (kx 2024-12-20 16:11:07 +0300 2386) aix3*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2387) version_type=linux # correct to gnu/linux during the next big refactor
868b2b66 (kx 2024-12-20 16:11:07 +0300 2388) library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2389) shlibpath_var=LIBPATH
868b2b66 (kx 2024-12-20 16:11:07 +0300 2390)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2391) # AIX 3 has no versioning support, so we append a major version to the name.
868b2b66 (kx 2024-12-20 16:11:07 +0300 2392) soname_spec='$libname$release$shared_ext$major'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2393) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2394)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2395) aix[[4-9]]*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2396) version_type=linux # correct to gnu/linux during the next big refactor
868b2b66 (kx 2024-12-20 16:11:07 +0300 2397) need_lib_prefix=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 2398) need_version=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 2399) hardcode_into_libs=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 2400) if test ia64 = "$host_cpu"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 2401) # AIX 5 supports IA64
868b2b66 (kx 2024-12-20 16:11:07 +0300 2402) library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2403) shlibpath_var=LD_LIBRARY_PATH
868b2b66 (kx 2024-12-20 16:11:07 +0300 2404) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 2405) # With GCC up to 2.95.x, collect2 would create an import file
868b2b66 (kx 2024-12-20 16:11:07 +0300 2406) # for dependence libraries. The import file would start with
868b2b66 (kx 2024-12-20 16:11:07 +0300 2407) # the line '#! .'. This would cause the generated library to
868b2b66 (kx 2024-12-20 16:11:07 +0300 2408) # depend on '.', always an invalid library. This was fixed in
868b2b66 (kx 2024-12-20 16:11:07 +0300 2409) # development snapshots of GCC prior to 3.0.
868b2b66 (kx 2024-12-20 16:11:07 +0300 2410) case $host_os in
868b2b66 (kx 2024-12-20 16:11:07 +0300 2411) aix4 | aix4.[[01]] | aix4.[[01]].*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2412) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2413) echo ' yes '
868b2b66 (kx 2024-12-20 16:11:07 +0300 2414) echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 2415) :
868b2b66 (kx 2024-12-20 16:11:07 +0300 2416) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 2417) can_build_shared=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 2418) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 2419) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2420) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 2421) # Using Import Files as archive members, it is possible to support
868b2b66 (kx 2024-12-20 16:11:07 +0300 2422) # filename-based versioning of shared library archives on AIX. While
868b2b66 (kx 2024-12-20 16:11:07 +0300 2423) # this would work for both with and without runtime linking, it will
868b2b66 (kx 2024-12-20 16:11:07 +0300 2424) # prevent static linking of such archives. So we do filename-based
868b2b66 (kx 2024-12-20 16:11:07 +0300 2425) # shared library versioning with .so extension only, which is used
868b2b66 (kx 2024-12-20 16:11:07 +0300 2426) # when both runtime linking and shared linking is enabled.
868b2b66 (kx 2024-12-20 16:11:07 +0300 2427) # Unfortunately, runtime linking may impact performance, so we do
868b2b66 (kx 2024-12-20 16:11:07 +0300 2428) # not want this to be the default eventually. Also, we use the
868b2b66 (kx 2024-12-20 16:11:07 +0300 2429) # versioned .so libs for executables only if there is the -brtl
868b2b66 (kx 2024-12-20 16:11:07 +0300 2430) # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
868b2b66 (kx 2024-12-20 16:11:07 +0300 2431) # To allow for filename-based versioning support, we need to create
868b2b66 (kx 2024-12-20 16:11:07 +0300 2432) # libNAME.so.V as an archive file, containing:
868b2b66 (kx 2024-12-20 16:11:07 +0300 2433) # *) an Import File, referring to the versioned filename of the
868b2b66 (kx 2024-12-20 16:11:07 +0300 2434) # archive as well as the shared archive member, telling the
868b2b66 (kx 2024-12-20 16:11:07 +0300 2435) # bitwidth (32 or 64) of that shared object, and providing the
868b2b66 (kx 2024-12-20 16:11:07 +0300 2436) # list of exported symbols of that shared object, eventually
868b2b66 (kx 2024-12-20 16:11:07 +0300 2437) # decorated with the 'weak' keyword
868b2b66 (kx 2024-12-20 16:11:07 +0300 2438) # *) the shared object with the F_LOADONLY flag set, to really avoid
868b2b66 (kx 2024-12-20 16:11:07 +0300 2439) # it being seen by the linker.
868b2b66 (kx 2024-12-20 16:11:07 +0300 2440) # At run time we better use the real file rather than another symlink,
868b2b66 (kx 2024-12-20 16:11:07 +0300 2441) # but for link time we create the symlink libNAME.so -> libNAME.so.V
868b2b66 (kx 2024-12-20 16:11:07 +0300 2442)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2443) case $with_aix_soname,$aix_use_runtimelinking in
868b2b66 (kx 2024-12-20 16:11:07 +0300 2444) # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
868b2b66 (kx 2024-12-20 16:11:07 +0300 2445) # soname into executable. Probably we can add versioning support to
868b2b66 (kx 2024-12-20 16:11:07 +0300 2446) # collect2, so additional links can be useful in future.
868b2b66 (kx 2024-12-20 16:11:07 +0300 2447) aix,yes) # traditional libtool
868b2b66 (kx 2024-12-20 16:11:07 +0300 2448) dynamic_linker='AIX unversionable lib.so'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2449) # If using run time linking (on AIX 4.2 or later) use lib<name>.so
868b2b66 (kx 2024-12-20 16:11:07 +0300 2450) # instead of lib<name>.a to let people know that these are not
868b2b66 (kx 2024-12-20 16:11:07 +0300 2451) # typical AIX shared libraries.
868b2b66 (kx 2024-12-20 16:11:07 +0300 2452) library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2453) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2454) aix,no) # traditional AIX only
868b2b66 (kx 2024-12-20 16:11:07 +0300 2455) dynamic_linker='AIX lib.a[(]lib.so.V[)]'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2456) # We preserve .a as extension for shared libraries through AIX4.2
868b2b66 (kx 2024-12-20 16:11:07 +0300 2457) # and later when we are not doing run time linking.
868b2b66 (kx 2024-12-20 16:11:07 +0300 2458) library_names_spec='$libname$release.a $libname.a'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2459) soname_spec='$libname$release$shared_ext$major'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2460) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2461) svr4,*) # full svr4 only
868b2b66 (kx 2024-12-20 16:11:07 +0300 2462) dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)]"
868b2b66 (kx 2024-12-20 16:11:07 +0300 2463) library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2464) # We do not specify a path in Import Files, so LIBPATH fires.
868b2b66 (kx 2024-12-20 16:11:07 +0300 2465) shlibpath_overrides_runpath=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 2466) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2467) *,yes) # both, prefer svr4
868b2b66 (kx 2024-12-20 16:11:07 +0300 2468) dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)], lib.a[(]lib.so.V[)]"
868b2b66 (kx 2024-12-20 16:11:07 +0300 2469) library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2470) # unpreferred sharedlib libNAME.a needs extra handling
868b2b66 (kx 2024-12-20 16:11:07 +0300 2471) 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"'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2472) 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"'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2473) # We do not specify a path in Import Files, so LIBPATH fires.
868b2b66 (kx 2024-12-20 16:11:07 +0300 2474) shlibpath_overrides_runpath=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 2475) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2476) *,no) # both, prefer aix
868b2b66 (kx 2024-12-20 16:11:07 +0300 2477) dynamic_linker="AIX lib.a[(]lib.so.V[)], lib.so.V[(]$shared_archive_member_spec.o[)]"
868b2b66 (kx 2024-12-20 16:11:07 +0300 2478) library_names_spec='$libname$release.a $libname.a'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2479) soname_spec='$libname$release$shared_ext$major'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2480) # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
868b2b66 (kx 2024-12-20 16:11:07 +0300 2481) 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)'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2482) 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"'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2483) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2484) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 2485) shlibpath_var=LIBPATH
868b2b66 (kx 2024-12-20 16:11:07 +0300 2486) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 2487) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2488)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2489) amigaos*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2490) case $host_cpu in
868b2b66 (kx 2024-12-20 16:11:07 +0300 2491) powerpc)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2492) # Since July 2007 AmigaOS4 officially supports .so libraries.
868b2b66 (kx 2024-12-20 16:11:07 +0300 2493) # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
868b2b66 (kx 2024-12-20 16:11:07 +0300 2494) library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2495) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2496) m68k)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2497) library_names_spec='$libname.ixlibrary $libname.a'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2498) # Create ${libname}_ixlibrary.a entries in /sys/libs.
868b2b66 (kx 2024-12-20 16:11:07 +0300 2499) 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'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2500) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2501) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 2502) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2503)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2504) beos*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2505) library_names_spec='$libname$shared_ext'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2506) dynamic_linker="$host_os ld.so"
868b2b66 (kx 2024-12-20 16:11:07 +0300 2507) shlibpath_var=LIBRARY_PATH
868b2b66 (kx 2024-12-20 16:11:07 +0300 2508) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2509)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2510) bsdi[[45]]*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2511) version_type=linux # correct to gnu/linux during the next big refactor
868b2b66 (kx 2024-12-20 16:11:07 +0300 2512) need_version=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 2513) library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2514) soname_spec='$libname$release$shared_ext$major'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2515) finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2516) shlibpath_var=LD_LIBRARY_PATH
868b2b66 (kx 2024-12-20 16:11:07 +0300 2517) sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
868b2b66 (kx 2024-12-20 16:11:07 +0300 2518) sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
868b2b66 (kx 2024-12-20 16:11:07 +0300 2519) # the default ld.so.conf also contains /usr/contrib/lib and
868b2b66 (kx 2024-12-20 16:11:07 +0300 2520) # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
868b2b66 (kx 2024-12-20 16:11:07 +0300 2521) # libtool to hard-code these into programs
868b2b66 (kx 2024-12-20 16:11:07 +0300 2522) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2523)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2524) cygwin* | mingw* | pw32* | cegcc*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2525) version_type=windows
868b2b66 (kx 2024-12-20 16:11:07 +0300 2526) shrext_cmds=.dll
868b2b66 (kx 2024-12-20 16:11:07 +0300 2527) need_version=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 2528) need_lib_prefix=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 2529)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2530) case $GCC,$cc_basename in
868b2b66 (kx 2024-12-20 16:11:07 +0300 2531) yes,*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2532) # gcc
868b2b66 (kx 2024-12-20 16:11:07 +0300 2533) library_names_spec='$libname.dll.a'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2534) # DLL is installed to $(libdir)/../bin by postinstall_cmds
868b2b66 (kx 2024-12-20 16:11:07 +0300 2535) postinstall_cmds='base_file=`basename \$file`~
868b2b66 (kx 2024-12-20 16:11:07 +0300 2536) dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
868b2b66 (kx 2024-12-20 16:11:07 +0300 2537) dldir=$destdir/`dirname \$dlpath`~
868b2b66 (kx 2024-12-20 16:11:07 +0300 2538) test -d \$dldir || mkdir -p \$dldir~
868b2b66 (kx 2024-12-20 16:11:07 +0300 2539) $install_prog $dir/$dlname \$dldir/$dlname~
868b2b66 (kx 2024-12-20 16:11:07 +0300 2540) chmod a+x \$dldir/$dlname~
868b2b66 (kx 2024-12-20 16:11:07 +0300 2541) if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 2542) eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2543) fi'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2544) postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
868b2b66 (kx 2024-12-20 16:11:07 +0300 2545) dlpath=$dir/\$dldll~
868b2b66 (kx 2024-12-20 16:11:07 +0300 2546) $RM \$dlpath'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2547) shlibpath_overrides_runpath=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 2548)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2549) case $host_os in
868b2b66 (kx 2024-12-20 16:11:07 +0300 2550) cygwin*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2551) # Cygwin DLLs use 'cyg' prefix rather than 'lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2552) soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2553) m4_if([$1], [],[
868b2b66 (kx 2024-12-20 16:11:07 +0300 2554) sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
868b2b66 (kx 2024-12-20 16:11:07 +0300 2555) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2556) mingw* | cegcc*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2557) # MinGW DLLs use traditional 'lib' prefix
868b2b66 (kx 2024-12-20 16:11:07 +0300 2558) soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2559) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2560) pw32*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2561) # pw32 DLLs use 'pw' prefix rather than 'lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2562) library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2563) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2564) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 2565) dynamic_linker='Win32 ld.exe'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2566) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2567)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2568) *,cl*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2569) # Native MSVC
868b2b66 (kx 2024-12-20 16:11:07 +0300 2570) libname_spec='$name'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2571) soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2572) library_names_spec='$libname.dll.lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2573)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2574) case $build_os in
868b2b66 (kx 2024-12-20 16:11:07 +0300 2575) mingw*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2576) sys_lib_search_path_spec=
868b2b66 (kx 2024-12-20 16:11:07 +0300 2577) lt_save_ifs=$IFS
868b2b66 (kx 2024-12-20 16:11:07 +0300 2578) IFS=';'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2579) for lt_path in $LIB
868b2b66 (kx 2024-12-20 16:11:07 +0300 2580) do
868b2b66 (kx 2024-12-20 16:11:07 +0300 2581) IFS=$lt_save_ifs
868b2b66 (kx 2024-12-20 16:11:07 +0300 2582) # Let DOS variable expansion print the short 8.3 style file name.
868b2b66 (kx 2024-12-20 16:11:07 +0300 2583) lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
868b2b66 (kx 2024-12-20 16:11:07 +0300 2584) sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
868b2b66 (kx 2024-12-20 16:11:07 +0300 2585) done
868b2b66 (kx 2024-12-20 16:11:07 +0300 2586) IFS=$lt_save_ifs
868b2b66 (kx 2024-12-20 16:11:07 +0300 2587) # Convert to MSYS style.
868b2b66 (kx 2024-12-20 16:11:07 +0300 2588) sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
868b2b66 (kx 2024-12-20 16:11:07 +0300 2589) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2590) cygwin*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2591) # Convert to unix form, then to dos form, then back to unix form
868b2b66 (kx 2024-12-20 16:11:07 +0300 2592) # but this time dos style (no spaces!) so that the unix form looks
868b2b66 (kx 2024-12-20 16:11:07 +0300 2593) # like /cygdrive/c/PROGRA~1:/cygdr...
868b2b66 (kx 2024-12-20 16:11:07 +0300 2594) sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
868b2b66 (kx 2024-12-20 16:11:07 +0300 2595) sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
868b2b66 (kx 2024-12-20 16:11:07 +0300 2596) sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
868b2b66 (kx 2024-12-20 16:11:07 +0300 2597) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2598) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2599) sys_lib_search_path_spec=$LIB
868b2b66 (kx 2024-12-20 16:11:07 +0300 2600) if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 2601) # It is most probably a Windows format PATH.
868b2b66 (kx 2024-12-20 16:11:07 +0300 2602) sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
868b2b66 (kx 2024-12-20 16:11:07 +0300 2603) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 2604) sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
868b2b66 (kx 2024-12-20 16:11:07 +0300 2605) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 2606) # FIXME: find the short name or the path components, as spaces are
868b2b66 (kx 2024-12-20 16:11:07 +0300 2607) # common. (e.g. "Program Files" -> "PROGRA~1")
868b2b66 (kx 2024-12-20 16:11:07 +0300 2608) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2609) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 2610)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2611) # DLL is installed to $(libdir)/../bin by postinstall_cmds
868b2b66 (kx 2024-12-20 16:11:07 +0300 2612) postinstall_cmds='base_file=`basename \$file`~
868b2b66 (kx 2024-12-20 16:11:07 +0300 2613) dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
868b2b66 (kx 2024-12-20 16:11:07 +0300 2614) dldir=$destdir/`dirname \$dlpath`~
868b2b66 (kx 2024-12-20 16:11:07 +0300 2615) test -d \$dldir || mkdir -p \$dldir~
868b2b66 (kx 2024-12-20 16:11:07 +0300 2616) $install_prog $dir/$dlname \$dldir/$dlname'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2617) postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
868b2b66 (kx 2024-12-20 16:11:07 +0300 2618) dlpath=$dir/\$dldll~
868b2b66 (kx 2024-12-20 16:11:07 +0300 2619) $RM \$dlpath'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2620) shlibpath_overrides_runpath=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 2621) dynamic_linker='Win32 link.exe'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2622) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2623)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2624) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2625) # Assume MSVC wrapper
868b2b66 (kx 2024-12-20 16:11:07 +0300 2626) library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2627) dynamic_linker='Win32 ld.exe'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2628) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2629) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 2630) # FIXME: first we should search . and the directory the executable is in
868b2b66 (kx 2024-12-20 16:11:07 +0300 2631) shlibpath_var=PATH
868b2b66 (kx 2024-12-20 16:11:07 +0300 2632) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2633)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2634) darwin* | rhapsody*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2635) dynamic_linker="$host_os dyld"
868b2b66 (kx 2024-12-20 16:11:07 +0300 2636) version_type=darwin
868b2b66 (kx 2024-12-20 16:11:07 +0300 2637) need_lib_prefix=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 2638) need_version=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 2639) library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2640) soname_spec='$libname$release$major$shared_ext'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2641) shlibpath_overrides_runpath=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 2642) shlibpath_var=DYLD_LIBRARY_PATH
868b2b66 (kx 2024-12-20 16:11:07 +0300 2643) shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2644) m4_if([$1], [],[
868b2b66 (kx 2024-12-20 16:11:07 +0300 2645) sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
868b2b66 (kx 2024-12-20 16:11:07 +0300 2646) sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2647) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2648)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2649) dgux*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2650) version_type=linux # correct to gnu/linux during the next big refactor
868b2b66 (kx 2024-12-20 16:11:07 +0300 2651) need_lib_prefix=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 2652) need_version=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 2653) library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2654) soname_spec='$libname$release$shared_ext$major'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2655) shlibpath_var=LD_LIBRARY_PATH
868b2b66 (kx 2024-12-20 16:11:07 +0300 2656) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2657)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2658) freebsd* | dragonfly*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2659) # DragonFly does not have aout. When/if they implement a new
868b2b66 (kx 2024-12-20 16:11:07 +0300 2660) # versioning mechanism, adjust this.
868b2b66 (kx 2024-12-20 16:11:07 +0300 2661) if test -x /usr/bin/objformat; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 2662) objformat=`/usr/bin/objformat`
868b2b66 (kx 2024-12-20 16:11:07 +0300 2663) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 2664) case $host_os in
868b2b66 (kx 2024-12-20 16:11:07 +0300 2665) freebsd[[23]].*) objformat=aout ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2666) *) objformat=elf ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2667) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 2668) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 2669) version_type=freebsd-$objformat
868b2b66 (kx 2024-12-20 16:11:07 +0300 2670) case $version_type in
868b2b66 (kx 2024-12-20 16:11:07 +0300 2671) freebsd-elf*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2672) library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2673) soname_spec='$libname$release$shared_ext$major'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2674) need_version=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 2675) need_lib_prefix=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 2676) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2677) freebsd-*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2678) library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2679) need_version=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 2680) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2681) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 2682) shlibpath_var=LD_LIBRARY_PATH
868b2b66 (kx 2024-12-20 16:11:07 +0300 2683) case $host_os in
868b2b66 (kx 2024-12-20 16:11:07 +0300 2684) freebsd2.*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2685) shlibpath_overrides_runpath=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 2686) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2687) freebsd3.[[01]]* | freebsdelf3.[[01]]*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2688) shlibpath_overrides_runpath=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 2689) hardcode_into_libs=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 2690) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2691) freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
868b2b66 (kx 2024-12-20 16:11:07 +0300 2692) freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2693) shlibpath_overrides_runpath=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 2694) hardcode_into_libs=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 2695) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2696) *) # from 4.6 on, and DragonFly
868b2b66 (kx 2024-12-20 16:11:07 +0300 2697) shlibpath_overrides_runpath=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 2698) hardcode_into_libs=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 2699) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2700) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 2701) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2702)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2703) haiku*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2704) version_type=linux # correct to gnu/linux during the next big refactor
868b2b66 (kx 2024-12-20 16:11:07 +0300 2705) need_lib_prefix=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 2706) need_version=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 2707) dynamic_linker="$host_os runtime_loader"
868b2b66 (kx 2024-12-20 16:11:07 +0300 2708) library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2709) soname_spec='$libname$release$shared_ext$major'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2710) shlibpath_var=LIBRARY_PATH
868b2b66 (kx 2024-12-20 16:11:07 +0300 2711) shlibpath_overrides_runpath=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 2712) sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2713) hardcode_into_libs=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 2714) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2715)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2716) hpux9* | hpux10* | hpux11*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2717) # Give a soname corresponding to the major version so that dld.sl refuses to
868b2b66 (kx 2024-12-20 16:11:07 +0300 2718) # link against other versions.
868b2b66 (kx 2024-12-20 16:11:07 +0300 2719) version_type=sunos
868b2b66 (kx 2024-12-20 16:11:07 +0300 2720) need_lib_prefix=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 2721) need_version=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 2722) case $host_cpu in
868b2b66 (kx 2024-12-20 16:11:07 +0300 2723) ia64*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2724) shrext_cmds='.so'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2725) hardcode_into_libs=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 2726) dynamic_linker="$host_os dld.so"
868b2b66 (kx 2024-12-20 16:11:07 +0300 2727) shlibpath_var=LD_LIBRARY_PATH
868b2b66 (kx 2024-12-20 16:11:07 +0300 2728) shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
868b2b66 (kx 2024-12-20 16:11:07 +0300 2729) library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2730) soname_spec='$libname$release$shared_ext$major'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2731) if test 32 = "$HPUX_IA64_MODE"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 2732) sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
868b2b66 (kx 2024-12-20 16:11:07 +0300 2733) sys_lib_dlsearch_path_spec=/usr/lib/hpux32
868b2b66 (kx 2024-12-20 16:11:07 +0300 2734) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 2735) sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
868b2b66 (kx 2024-12-20 16:11:07 +0300 2736) sys_lib_dlsearch_path_spec=/usr/lib/hpux64
868b2b66 (kx 2024-12-20 16:11:07 +0300 2737) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 2738) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2739) hppa*64*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2740) shrext_cmds='.sl'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2741) hardcode_into_libs=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 2742) dynamic_linker="$host_os dld.sl"
868b2b66 (kx 2024-12-20 16:11:07 +0300 2743) shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
868b2b66 (kx 2024-12-20 16:11:07 +0300 2744) shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
868b2b66 (kx 2024-12-20 16:11:07 +0300 2745) library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2746) soname_spec='$libname$release$shared_ext$major'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2747) sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
868b2b66 (kx 2024-12-20 16:11:07 +0300 2748) sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
868b2b66 (kx 2024-12-20 16:11:07 +0300 2749) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2750) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2751) shrext_cmds='.sl'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2752) dynamic_linker="$host_os dld.sl"
868b2b66 (kx 2024-12-20 16:11:07 +0300 2753) shlibpath_var=SHLIB_PATH
868b2b66 (kx 2024-12-20 16:11:07 +0300 2754) shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
868b2b66 (kx 2024-12-20 16:11:07 +0300 2755) library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2756) soname_spec='$libname$release$shared_ext$major'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2757) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2758) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 2759) # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
868b2b66 (kx 2024-12-20 16:11:07 +0300 2760) postinstall_cmds='chmod 555 $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2761) # or fails outright, so override atomically:
868b2b66 (kx 2024-12-20 16:11:07 +0300 2762) install_override_mode=555
868b2b66 (kx 2024-12-20 16:11:07 +0300 2763) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2764)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2765) interix[[3-9]]*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2766) version_type=linux # correct to gnu/linux during the next big refactor
868b2b66 (kx 2024-12-20 16:11:07 +0300 2767) need_lib_prefix=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 2768) need_version=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 2769) library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2770) soname_spec='$libname$release$shared_ext$major'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2771) dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2772) shlibpath_var=LD_LIBRARY_PATH
868b2b66 (kx 2024-12-20 16:11:07 +0300 2773) shlibpath_overrides_runpath=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 2774) hardcode_into_libs=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 2775) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2776)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2777) irix5* | irix6* | nonstopux*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2778) case $host_os in
868b2b66 (kx 2024-12-20 16:11:07 +0300 2779) nonstopux*) version_type=nonstopux ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2780) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2781) if test yes = "$lt_cv_prog_gnu_ld"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 2782) version_type=linux # correct to gnu/linux during the next big refactor
868b2b66 (kx 2024-12-20 16:11:07 +0300 2783) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 2784) version_type=irix
868b2b66 (kx 2024-12-20 16:11:07 +0300 2785) fi ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2786) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 2787) need_lib_prefix=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 2788) need_version=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 2789) soname_spec='$libname$release$shared_ext$major'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2790) library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2791) case $host_os in
868b2b66 (kx 2024-12-20 16:11:07 +0300 2792) irix5* | nonstopux*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2793) libsuff= shlibsuff=
868b2b66 (kx 2024-12-20 16:11:07 +0300 2794) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2795) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2796) case $LD in # libtool.m4 will add one of these switches to LD
868b2b66 (kx 2024-12-20 16:11:07 +0300 2797) *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
868b2b66 (kx 2024-12-20 16:11:07 +0300 2798) libsuff= shlibsuff= libmagic=32-bit;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2799) *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
868b2b66 (kx 2024-12-20 16:11:07 +0300 2800) libsuff=32 shlibsuff=N32 libmagic=N32;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2801) *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
868b2b66 (kx 2024-12-20 16:11:07 +0300 2802) libsuff=64 shlibsuff=64 libmagic=64-bit;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2803) *) libsuff= shlibsuff= libmagic=never-match;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2804) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 2805) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2806) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 2807) shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
868b2b66 (kx 2024-12-20 16:11:07 +0300 2808) shlibpath_overrides_runpath=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 2809) sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
868b2b66 (kx 2024-12-20 16:11:07 +0300 2810) sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
868b2b66 (kx 2024-12-20 16:11:07 +0300 2811) hardcode_into_libs=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 2812) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2813)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2814) # No shared lib support for Linux oldld, aout, or coff.
868b2b66 (kx 2024-12-20 16:11:07 +0300 2815) linux*oldld* | linux*aout* | linux*coff*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2816) dynamic_linker=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 2817) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2818)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2819) linux*android*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2820) version_type=none # Android doesn't support versioned libraries.
868b2b66 (kx 2024-12-20 16:11:07 +0300 2821) need_lib_prefix=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 2822) need_version=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 2823) library_names_spec='$libname$release$shared_ext'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2824) soname_spec='$libname$release$shared_ext'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2825) finish_cmds=
868b2b66 (kx 2024-12-20 16:11:07 +0300 2826) shlibpath_var=LD_LIBRARY_PATH
868b2b66 (kx 2024-12-20 16:11:07 +0300 2827) shlibpath_overrides_runpath=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 2828)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2829) # This implies no fast_install, which is unacceptable.
868b2b66 (kx 2024-12-20 16:11:07 +0300 2830) # Some rework will be needed to allow for fast_install
868b2b66 (kx 2024-12-20 16:11:07 +0300 2831) # before this can be enabled.
868b2b66 (kx 2024-12-20 16:11:07 +0300 2832) hardcode_into_libs=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 2833)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2834) dynamic_linker='Android linker'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2835) # Don't embed -rpath directories since the linker doesn't support them.
868b2b66 (kx 2024-12-20 16:11:07 +0300 2836) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2837) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2838)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2839) # This must be glibc/ELF.
868b2b66 (kx 2024-12-20 16:11:07 +0300 2840) linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2841) version_type=linux # correct to gnu/linux during the next big refactor
868b2b66 (kx 2024-12-20 16:11:07 +0300 2842) need_lib_prefix=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 2843) need_version=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 2844) library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2845) soname_spec='$libname$release$shared_ext$major'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2846) finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2847) shlibpath_var=LD_LIBRARY_PATH
868b2b66 (kx 2024-12-20 16:11:07 +0300 2848) shlibpath_overrides_runpath=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 2849)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2850) # Some binutils ld are patched to set DT_RUNPATH
868b2b66 (kx 2024-12-20 16:11:07 +0300 2851) AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
868b2b66 (kx 2024-12-20 16:11:07 +0300 2852) [lt_cv_shlibpath_overrides_runpath=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 2853) save_LDFLAGS=$LDFLAGS
868b2b66 (kx 2024-12-20 16:11:07 +0300 2854) save_libdir=$libdir
868b2b66 (kx 2024-12-20 16:11:07 +0300 2855) eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
868b2b66 (kx 2024-12-20 16:11:07 +0300 2856) LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
868b2b66 (kx 2024-12-20 16:11:07 +0300 2857) AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
868b2b66 (kx 2024-12-20 16:11:07 +0300 2858) [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
868b2b66 (kx 2024-12-20 16:11:07 +0300 2859) [lt_cv_shlibpath_overrides_runpath=yes])])
868b2b66 (kx 2024-12-20 16:11:07 +0300 2860) LDFLAGS=$save_LDFLAGS
868b2b66 (kx 2024-12-20 16:11:07 +0300 2861) libdir=$save_libdir
868b2b66 (kx 2024-12-20 16:11:07 +0300 2862) ])
868b2b66 (kx 2024-12-20 16:11:07 +0300 2863) shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
868b2b66 (kx 2024-12-20 16:11:07 +0300 2864)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2865) # This implies no fast_install, which is unacceptable.
868b2b66 (kx 2024-12-20 16:11:07 +0300 2866) # Some rework will be needed to allow for fast_install
868b2b66 (kx 2024-12-20 16:11:07 +0300 2867) # before this can be enabled.
868b2b66 (kx 2024-12-20 16:11:07 +0300 2868) hardcode_into_libs=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 2869)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2870) # Ideally, we could use ldconfig to report *all* directores which are
868b2b66 (kx 2024-12-20 16:11:07 +0300 2871) # searched for libraries, however this is still not possible. Aside from not
868b2b66 (kx 2024-12-20 16:11:07 +0300 2872) # being certain /sbin/ldconfig is available, command
868b2b66 (kx 2024-12-20 16:11:07 +0300 2873) # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
868b2b66 (kx 2024-12-20 16:11:07 +0300 2874) # even though it is searched at run-time. Try to do the best guess by
868b2b66 (kx 2024-12-20 16:11:07 +0300 2875) # appending ld.so.conf contents (and includes) to the search path.
868b2b66 (kx 2024-12-20 16:11:07 +0300 2876) if test -f /etc/ld.so.conf; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 2877) 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' ' '`
868b2b66 (kx 2024-12-20 16:11:07 +0300 2878) sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
868b2b66 (kx 2024-12-20 16:11:07 +0300 2879) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 2880)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2881) # We used to test for /lib/ld.so.1 and disable shared libraries on
868b2b66 (kx 2024-12-20 16:11:07 +0300 2882) # powerpc, because MkLinux only supported shared libraries with the
868b2b66 (kx 2024-12-20 16:11:07 +0300 2883) # GNU dynamic linker. Since this was broken with cross compilers,
868b2b66 (kx 2024-12-20 16:11:07 +0300 2884) # most powerpc-linux boxes support dynamic linking these days and
868b2b66 (kx 2024-12-20 16:11:07 +0300 2885) # people can always --disable-shared, the test was removed, and we
868b2b66 (kx 2024-12-20 16:11:07 +0300 2886) # assume the GNU/Linux dynamic linker is in use.
868b2b66 (kx 2024-12-20 16:11:07 +0300 2887) dynamic_linker='GNU/Linux ld.so'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2888) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2889)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2890) netbsd*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2891) version_type=sunos
868b2b66 (kx 2024-12-20 16:11:07 +0300 2892) need_lib_prefix=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 2893) need_version=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 2894) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 2895) library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2896) finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2897) dynamic_linker='NetBSD (a.out) ld.so'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2898) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 2899) library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2900) soname_spec='$libname$release$shared_ext$major'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2901) dynamic_linker='NetBSD ld.elf_so'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2902) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 2903) shlibpath_var=LD_LIBRARY_PATH
868b2b66 (kx 2024-12-20 16:11:07 +0300 2904) shlibpath_overrides_runpath=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 2905) hardcode_into_libs=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 2906) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2907)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2908) newsos6)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2909) version_type=linux # correct to gnu/linux during the next big refactor
868b2b66 (kx 2024-12-20 16:11:07 +0300 2910) library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2911) shlibpath_var=LD_LIBRARY_PATH
868b2b66 (kx 2024-12-20 16:11:07 +0300 2912) shlibpath_overrides_runpath=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 2913) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2914)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2915) *nto* | *qnx*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2916) version_type=qnx
868b2b66 (kx 2024-12-20 16:11:07 +0300 2917) need_lib_prefix=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 2918) need_version=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 2919) library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2920) soname_spec='$libname$release$shared_ext$major'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2921) shlibpath_var=LD_LIBRARY_PATH
868b2b66 (kx 2024-12-20 16:11:07 +0300 2922) shlibpath_overrides_runpath=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 2923) hardcode_into_libs=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 2924) dynamic_linker='ldqnx.so'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2925) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2926)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2927) openbsd* | bitrig*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2928) version_type=sunos
868b2b66 (kx 2024-12-20 16:11:07 +0300 2929) sys_lib_dlsearch_path_spec=/usr/lib
868b2b66 (kx 2024-12-20 16:11:07 +0300 2930) need_lib_prefix=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 2931) if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 2932) need_version=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 2933) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 2934) need_version=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 2935) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 2936) library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2937) finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2938) shlibpath_var=LD_LIBRARY_PATH
868b2b66 (kx 2024-12-20 16:11:07 +0300 2939) shlibpath_overrides_runpath=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 2940) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2941)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2942) os2*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2943) libname_spec='$name'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2944) version_type=windows
868b2b66 (kx 2024-12-20 16:11:07 +0300 2945) shrext_cmds=.dll
868b2b66 (kx 2024-12-20 16:11:07 +0300 2946) need_version=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 2947) need_lib_prefix=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 2948) # OS/2 can only load a DLL with a base name of 8 characters or less.
868b2b66 (kx 2024-12-20 16:11:07 +0300 2949) soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
868b2b66 (kx 2024-12-20 16:11:07 +0300 2950) v=$($ECHO $release$versuffix | tr -d .-);
868b2b66 (kx 2024-12-20 16:11:07 +0300 2951) n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
868b2b66 (kx 2024-12-20 16:11:07 +0300 2952) $ECHO $n$v`$shared_ext'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2953) library_names_spec='${libname}_dll.$libext'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2954) dynamic_linker='OS/2 ld.exe'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2955) shlibpath_var=BEGINLIBPATH
868b2b66 (kx 2024-12-20 16:11:07 +0300 2956) sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
868b2b66 (kx 2024-12-20 16:11:07 +0300 2957) sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
868b2b66 (kx 2024-12-20 16:11:07 +0300 2958) postinstall_cmds='base_file=`basename \$file`~
868b2b66 (kx 2024-12-20 16:11:07 +0300 2959) dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
868b2b66 (kx 2024-12-20 16:11:07 +0300 2960) dldir=$destdir/`dirname \$dlpath`~
868b2b66 (kx 2024-12-20 16:11:07 +0300 2961) test -d \$dldir || mkdir -p \$dldir~
868b2b66 (kx 2024-12-20 16:11:07 +0300 2962) $install_prog $dir/$dlname \$dldir/$dlname~
868b2b66 (kx 2024-12-20 16:11:07 +0300 2963) chmod a+x \$dldir/$dlname~
868b2b66 (kx 2024-12-20 16:11:07 +0300 2964) if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 2965) eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2966) fi'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2967) postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
868b2b66 (kx 2024-12-20 16:11:07 +0300 2968) dlpath=$dir/\$dldll~
868b2b66 (kx 2024-12-20 16:11:07 +0300 2969) $RM \$dlpath'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2970) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2971)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2972) osf3* | osf4* | osf5*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2973) version_type=osf
868b2b66 (kx 2024-12-20 16:11:07 +0300 2974) need_lib_prefix=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 2975) need_version=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 2976) soname_spec='$libname$release$shared_ext$major'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2977) library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2978) shlibpath_var=LD_LIBRARY_PATH
868b2b66 (kx 2024-12-20 16:11:07 +0300 2979) sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
868b2b66 (kx 2024-12-20 16:11:07 +0300 2980) sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
868b2b66 (kx 2024-12-20 16:11:07 +0300 2981) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2982)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2983) rdos*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2984) dynamic_linker=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 2985) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2986)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2987) solaris*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 2988) version_type=linux # correct to gnu/linux during the next big refactor
868b2b66 (kx 2024-12-20 16:11:07 +0300 2989) need_lib_prefix=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 2990) need_version=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 2991) library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2992) soname_spec='$libname$release$shared_ext$major'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2993) shlibpath_var=LD_LIBRARY_PATH
868b2b66 (kx 2024-12-20 16:11:07 +0300 2994) shlibpath_overrides_runpath=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 2995) hardcode_into_libs=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 2996) # ldd complains unless libraries are executable
868b2b66 (kx 2024-12-20 16:11:07 +0300 2997) postinstall_cmds='chmod +x $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 2998) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 2999)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3000) sunos4*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3001) version_type=sunos
868b2b66 (kx 2024-12-20 16:11:07 +0300 3002) library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
868b2b66 (kx 2024-12-20 16:11:07 +0300 3003) finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
868b2b66 (kx 2024-12-20 16:11:07 +0300 3004) shlibpath_var=LD_LIBRARY_PATH
868b2b66 (kx 2024-12-20 16:11:07 +0300 3005) shlibpath_overrides_runpath=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 3006) if test yes = "$with_gnu_ld"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 3007) need_lib_prefix=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 3008) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 3009) need_version=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 3010) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3011)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3012) sysv4 | sysv4.3*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3013) version_type=linux # correct to gnu/linux during the next big refactor
868b2b66 (kx 2024-12-20 16:11:07 +0300 3014) library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
868b2b66 (kx 2024-12-20 16:11:07 +0300 3015) soname_spec='$libname$release$shared_ext$major'
868b2b66 (kx 2024-12-20 16:11:07 +0300 3016) shlibpath_var=LD_LIBRARY_PATH
868b2b66 (kx 2024-12-20 16:11:07 +0300 3017) case $host_vendor in
868b2b66 (kx 2024-12-20 16:11:07 +0300 3018) sni)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3019) shlibpath_overrides_runpath=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 3020) need_lib_prefix=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 3021) runpath_var=LD_RUN_PATH
868b2b66 (kx 2024-12-20 16:11:07 +0300 3022) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3023) siemens)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3024) need_lib_prefix=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 3025) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3026) motorola)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3027) need_lib_prefix=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 3028) need_version=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 3029) shlibpath_overrides_runpath=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 3030) sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 3031) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3032) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 3033) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3034)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3035) sysv4*MP*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3036) if test -d /usr/nec; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 3037) version_type=linux # correct to gnu/linux during the next big refactor
868b2b66 (kx 2024-12-20 16:11:07 +0300 3038) library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
868b2b66 (kx 2024-12-20 16:11:07 +0300 3039) soname_spec='$libname$shared_ext.$major'
868b2b66 (kx 2024-12-20 16:11:07 +0300 3040) shlibpath_var=LD_LIBRARY_PATH
868b2b66 (kx 2024-12-20 16:11:07 +0300 3041) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 3042) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3043)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3044) sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3045) version_type=sco
868b2b66 (kx 2024-12-20 16:11:07 +0300 3046) need_lib_prefix=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 3047) need_version=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 3048) library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
868b2b66 (kx 2024-12-20 16:11:07 +0300 3049) soname_spec='$libname$release$shared_ext$major'
868b2b66 (kx 2024-12-20 16:11:07 +0300 3050) shlibpath_var=LD_LIBRARY_PATH
868b2b66 (kx 2024-12-20 16:11:07 +0300 3051) shlibpath_overrides_runpath=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 3052) hardcode_into_libs=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 3053) if test yes = "$with_gnu_ld"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 3054) sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 3055) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 3056) sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 3057) case $host_os in
868b2b66 (kx 2024-12-20 16:11:07 +0300 3058) sco3.2v5*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3059) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
868b2b66 (kx 2024-12-20 16:11:07 +0300 3060) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3061) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 3062) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 3063) sys_lib_dlsearch_path_spec='/usr/lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 3064) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3065)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3066) tpf*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3067) # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
868b2b66 (kx 2024-12-20 16:11:07 +0300 3068) version_type=linux # correct to gnu/linux during the next big refactor
868b2b66 (kx 2024-12-20 16:11:07 +0300 3069) need_lib_prefix=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 3070) need_version=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 3071) library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
868b2b66 (kx 2024-12-20 16:11:07 +0300 3072) shlibpath_var=LD_LIBRARY_PATH
868b2b66 (kx 2024-12-20 16:11:07 +0300 3073) shlibpath_overrides_runpath=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 3074) hardcode_into_libs=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 3075) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3076)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3077) uts4*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3078) version_type=linux # correct to gnu/linux during the next big refactor
868b2b66 (kx 2024-12-20 16:11:07 +0300 3079) library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
868b2b66 (kx 2024-12-20 16:11:07 +0300 3080) soname_spec='$libname$release$shared_ext$major'
868b2b66 (kx 2024-12-20 16:11:07 +0300 3081) shlibpath_var=LD_LIBRARY_PATH
868b2b66 (kx 2024-12-20 16:11:07 +0300 3082) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3083)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3084) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3085) dynamic_linker=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 3086) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3087) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 3088) AC_MSG_RESULT([$dynamic_linker])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3089) test no = "$dynamic_linker" && can_build_shared=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 3090)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3091) variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
868b2b66 (kx 2024-12-20 16:11:07 +0300 3092) if test yes = "$GCC"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 3093) variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
868b2b66 (kx 2024-12-20 16:11:07 +0300 3094) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 3095)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3096) if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 3097) sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
868b2b66 (kx 2024-12-20 16:11:07 +0300 3098) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 3099)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3100) if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 3101) sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
868b2b66 (kx 2024-12-20 16:11:07 +0300 3102) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 3103)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3104) # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
868b2b66 (kx 2024-12-20 16:11:07 +0300 3105) configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
868b2b66 (kx 2024-12-20 16:11:07 +0300 3106)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3107) # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
868b2b66 (kx 2024-12-20 16:11:07 +0300 3108) func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
868b2b66 (kx 2024-12-20 16:11:07 +0300 3109)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3110) # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
868b2b66 (kx 2024-12-20 16:11:07 +0300 3111) configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
868b2b66 (kx 2024-12-20 16:11:07 +0300 3112)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3113) _LT_DECL([], [variables_saved_for_relink], [1],
868b2b66 (kx 2024-12-20 16:11:07 +0300 3114) [Variables whose values should be saved in libtool wrapper scripts and
868b2b66 (kx 2024-12-20 16:11:07 +0300 3115) restored at link time])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3116) _LT_DECL([], [need_lib_prefix], [0],
868b2b66 (kx 2024-12-20 16:11:07 +0300 3117) [Do we need the "lib" prefix for modules?])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3118) _LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3119) _LT_DECL([], [version_type], [0], [Library versioning type])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3120) _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3121) _LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3122) _LT_DECL([], [shlibpath_overrides_runpath], [0],
868b2b66 (kx 2024-12-20 16:11:07 +0300 3123) [Is shlibpath searched before the hard-coded library search path?])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3124) _LT_DECL([], [libname_spec], [1], [Format of library name prefix])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3125) _LT_DECL([], [library_names_spec], [1],
868b2b66 (kx 2024-12-20 16:11:07 +0300 3126) [[List of archive names. First name is the real one, the rest are links.
868b2b66 (kx 2024-12-20 16:11:07 +0300 3127) The last name is the one that the linker finds with -lNAME]])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3128) _LT_DECL([], [soname_spec], [1],
868b2b66 (kx 2024-12-20 16:11:07 +0300 3129) [[The coded name of the library, if different from the real name]])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3130) _LT_DECL([], [install_override_mode], [1],
868b2b66 (kx 2024-12-20 16:11:07 +0300 3131) [Permission mode override for installation of shared libraries])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3132) _LT_DECL([], [postinstall_cmds], [2],
868b2b66 (kx 2024-12-20 16:11:07 +0300 3133) [Command to use after installation of a shared archive])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3134) _LT_DECL([], [postuninstall_cmds], [2],
868b2b66 (kx 2024-12-20 16:11:07 +0300 3135) [Command to use after uninstallation of a shared archive])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3136) _LT_DECL([], [finish_cmds], [2],
868b2b66 (kx 2024-12-20 16:11:07 +0300 3137) [Commands used to finish a libtool library installation in a directory])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3138) _LT_DECL([], [finish_eval], [1],
868b2b66 (kx 2024-12-20 16:11:07 +0300 3139) [[As "finish_cmds", except a single script fragment to be evaled but
868b2b66 (kx 2024-12-20 16:11:07 +0300 3140) not shown]])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3141) _LT_DECL([], [hardcode_into_libs], [0],
868b2b66 (kx 2024-12-20 16:11:07 +0300 3142) [Whether we should hardcode library paths into libraries])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3143) _LT_DECL([], [sys_lib_search_path_spec], [2],
868b2b66 (kx 2024-12-20 16:11:07 +0300 3144) [Compile-time system search path for libraries])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3145) _LT_DECL([sys_lib_dlsearch_path_spec], [configure_time_dlsearch_path], [2],
868b2b66 (kx 2024-12-20 16:11:07 +0300 3146) [Detected run-time system search path for libraries])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3147) _LT_DECL([], [configure_time_lt_sys_library_path], [2],
868b2b66 (kx 2024-12-20 16:11:07 +0300 3148) [Explicit LT_SYS_LIBRARY_PATH set during ./configure time])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3149) ])# _LT_SYS_DYNAMIC_LINKER
868b2b66 (kx 2024-12-20 16:11:07 +0300 3150)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3151)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3152) # _LT_PATH_TOOL_PREFIX(TOOL)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3153) # --------------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 3154) # find a file program that can recognize shared library
868b2b66 (kx 2024-12-20 16:11:07 +0300 3155) AC_DEFUN([_LT_PATH_TOOL_PREFIX],
868b2b66 (kx 2024-12-20 16:11:07 +0300 3156) [m4_require([_LT_DECL_EGREP])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 3157) AC_MSG_CHECKING([for $1])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3158) AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
868b2b66 (kx 2024-12-20 16:11:07 +0300 3159) [case $MAGIC_CMD in
868b2b66 (kx 2024-12-20 16:11:07 +0300 3160) [[\\/*] | ?:[\\/]*])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3161) lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
868b2b66 (kx 2024-12-20 16:11:07 +0300 3162) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3163) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3164) lt_save_MAGIC_CMD=$MAGIC_CMD
868b2b66 (kx 2024-12-20 16:11:07 +0300 3165) lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
868b2b66 (kx 2024-12-20 16:11:07 +0300 3166) dnl $ac_dummy forces splitting on constant user-supplied paths.
868b2b66 (kx 2024-12-20 16:11:07 +0300 3167) dnl POSIX.2 word splitting is done only on the output of word expansions,
868b2b66 (kx 2024-12-20 16:11:07 +0300 3168) dnl not every word. This closes a longstanding sh security hole.
868b2b66 (kx 2024-12-20 16:11:07 +0300 3169) ac_dummy="m4_if([$2], , $PATH, [$2])"
868b2b66 (kx 2024-12-20 16:11:07 +0300 3170) for ac_dir in $ac_dummy; do
868b2b66 (kx 2024-12-20 16:11:07 +0300 3171) IFS=$lt_save_ifs
868b2b66 (kx 2024-12-20 16:11:07 +0300 3172) test -z "$ac_dir" && ac_dir=.
868b2b66 (kx 2024-12-20 16:11:07 +0300 3173) if test -f "$ac_dir/$1"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 3174) lt_cv_path_MAGIC_CMD=$ac_dir/"$1"
868b2b66 (kx 2024-12-20 16:11:07 +0300 3175) if test -n "$file_magic_test_file"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 3176) case $deplibs_check_method in
868b2b66 (kx 2024-12-20 16:11:07 +0300 3177) "file_magic "*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3178) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
868b2b66 (kx 2024-12-20 16:11:07 +0300 3179) MAGIC_CMD=$lt_cv_path_MAGIC_CMD
868b2b66 (kx 2024-12-20 16:11:07 +0300 3180) if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
868b2b66 (kx 2024-12-20 16:11:07 +0300 3181) $EGREP "$file_magic_regex" > /dev/null; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 3182) :
868b2b66 (kx 2024-12-20 16:11:07 +0300 3183) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 3184) cat <<_LT_EOF 1>&2
868b2b66 (kx 2024-12-20 16:11:07 +0300 3185)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3186) *** Warning: the command libtool uses to detect shared libraries,
868b2b66 (kx 2024-12-20 16:11:07 +0300 3187) *** $file_magic_cmd, produces output that libtool cannot recognize.
868b2b66 (kx 2024-12-20 16:11:07 +0300 3188) *** The result is that libtool may fail to recognize shared libraries
868b2b66 (kx 2024-12-20 16:11:07 +0300 3189) *** as such. This will affect the creation of libtool libraries that
868b2b66 (kx 2024-12-20 16:11:07 +0300 3190) *** depend on shared libraries, but programs linked with such libtool
868b2b66 (kx 2024-12-20 16:11:07 +0300 3191) *** libraries will work regardless of this problem. Nevertheless, you
868b2b66 (kx 2024-12-20 16:11:07 +0300 3192) *** may want to report the problem to your system manager and/or to
868b2b66 (kx 2024-12-20 16:11:07 +0300 3193) *** bug-libtool@gnu.org
868b2b66 (kx 2024-12-20 16:11:07 +0300 3194)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3195) _LT_EOF
868b2b66 (kx 2024-12-20 16:11:07 +0300 3196) fi ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3197) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 3198) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 3199) break
868b2b66 (kx 2024-12-20 16:11:07 +0300 3200) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 3201) done
868b2b66 (kx 2024-12-20 16:11:07 +0300 3202) IFS=$lt_save_ifs
868b2b66 (kx 2024-12-20 16:11:07 +0300 3203) MAGIC_CMD=$lt_save_MAGIC_CMD
868b2b66 (kx 2024-12-20 16:11:07 +0300 3204) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3205) esac])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3206) MAGIC_CMD=$lt_cv_path_MAGIC_CMD
868b2b66 (kx 2024-12-20 16:11:07 +0300 3207) if test -n "$MAGIC_CMD"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 3208) AC_MSG_RESULT($MAGIC_CMD)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3209) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 3210) AC_MSG_RESULT(no)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3211) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 3212) _LT_DECL([], [MAGIC_CMD], [0],
868b2b66 (kx 2024-12-20 16:11:07 +0300 3213) [Used to examine libraries when file_magic_cmd begins with "file"])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 3214) ])# _LT_PATH_TOOL_PREFIX
868b2b66 (kx 2024-12-20 16:11:07 +0300 3215)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3216) # Old name:
868b2b66 (kx 2024-12-20 16:11:07 +0300 3217) AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3218) dnl aclocal-1.4 backwards compatibility:
868b2b66 (kx 2024-12-20 16:11:07 +0300 3219) dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3220)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3221)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3222) # _LT_PATH_MAGIC
868b2b66 (kx 2024-12-20 16:11:07 +0300 3223) # --------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 3224) # find a file program that can recognize a shared library
868b2b66 (kx 2024-12-20 16:11:07 +0300 3225) m4_defun([_LT_PATH_MAGIC],
868b2b66 (kx 2024-12-20 16:11:07 +0300 3226) [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3227) if test -z "$lt_cv_path_MAGIC_CMD"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 3228) if test -n "$ac_tool_prefix"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 3229) _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3230) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 3231) MAGIC_CMD=:
868b2b66 (kx 2024-12-20 16:11:07 +0300 3232) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 3233) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 3234) ])# _LT_PATH_MAGIC
868b2b66 (kx 2024-12-20 16:11:07 +0300 3235)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3236)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3237) # LT_PATH_LD
868b2b66 (kx 2024-12-20 16:11:07 +0300 3238) # ----------
868b2b66 (kx 2024-12-20 16:11:07 +0300 3239) # find the pathname to the GNU or non-GNU linker
868b2b66 (kx 2024-12-20 16:11:07 +0300 3240) AC_DEFUN([LT_PATH_LD],
868b2b66 (kx 2024-12-20 16:11:07 +0300 3241) [AC_REQUIRE([AC_PROG_CC])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 3242) AC_REQUIRE([AC_CANONICAL_HOST])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 3243) AC_REQUIRE([AC_CANONICAL_BUILD])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 3244) m4_require([_LT_DECL_SED])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 3245) m4_require([_LT_DECL_EGREP])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 3246) m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 3247)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3248) ac_prog=ld
868b2b66 (kx 2024-12-20 16:11:07 +0300 3249) if test yes = "$GCC"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 3250) # Check if gcc -print-prog-name=ld gives a path.
868b2b66 (kx 2024-12-20 16:11:07 +0300 3251) AC_MSG_CHECKING([for ld used by $CC])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3252) case $host in
868b2b66 (kx 2024-12-20 16:11:07 +0300 3253) *-*-mingw*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3254) # gcc leaves a trailing carriage return, which upsets mingw
868b2b66 (kx 2024-12-20 16:11:07 +0300 3255) ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3256) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3257) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3258) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 3259) case $ac_prog in
868b2b66 (kx 2024-12-20 16:11:07 +0300 3260) # Accept absolute paths.
868b2b66 (kx 2024-12-20 16:11:07 +0300 3261) [[\\/]]* | ?:[[\\/]]*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3262) re_direlt='/[[^/]][[^/]]*/\.\./'
868b2b66 (kx 2024-12-20 16:11:07 +0300 3263) # Canonicalize the pathname of ld
868b2b66 (kx 2024-12-20 16:11:07 +0300 3264) ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
868b2b66 (kx 2024-12-20 16:11:07 +0300 3265) while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
868b2b66 (kx 2024-12-20 16:11:07 +0300 3266) ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
868b2b66 (kx 2024-12-20 16:11:07 +0300 3267) done
868b2b66 (kx 2024-12-20 16:11:07 +0300 3268) test -z "$LD" && LD=$ac_prog
868b2b66 (kx 2024-12-20 16:11:07 +0300 3269) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3270) "")
868b2b66 (kx 2024-12-20 16:11:07 +0300 3271) # If it fails, then pretend we aren't using GCC.
868b2b66 (kx 2024-12-20 16:11:07 +0300 3272) ac_prog=ld
868b2b66 (kx 2024-12-20 16:11:07 +0300 3273) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3274) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3275) # If it is relative, then search for the first ld in PATH.
868b2b66 (kx 2024-12-20 16:11:07 +0300 3276) with_gnu_ld=unknown
868b2b66 (kx 2024-12-20 16:11:07 +0300 3277) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3278) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 3279) elif test yes = "$with_gnu_ld"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 3280) AC_MSG_CHECKING([for GNU ld])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3281) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 3282) AC_MSG_CHECKING([for non-GNU ld])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3283) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 3284) AC_CACHE_VAL(lt_cv_path_LD,
868b2b66 (kx 2024-12-20 16:11:07 +0300 3285) [if test -z "$LD"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 3286) lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
868b2b66 (kx 2024-12-20 16:11:07 +0300 3287) for ac_dir in $PATH; do
868b2b66 (kx 2024-12-20 16:11:07 +0300 3288) IFS=$lt_save_ifs
868b2b66 (kx 2024-12-20 16:11:07 +0300 3289) test -z "$ac_dir" && ac_dir=.
868b2b66 (kx 2024-12-20 16:11:07 +0300 3290) if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 3291) lt_cv_path_LD=$ac_dir/$ac_prog
868b2b66 (kx 2024-12-20 16:11:07 +0300 3292) # Check to see if the program is GNU ld. I'd rather use --version,
868b2b66 (kx 2024-12-20 16:11:07 +0300 3293) # but apparently some variants of GNU ld only accept -v.
868b2b66 (kx 2024-12-20 16:11:07 +0300 3294) # Break only if it was the GNU/non-GNU ld that we prefer.
868b2b66 (kx 2024-12-20 16:11:07 +0300 3295) case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
868b2b66 (kx 2024-12-20 16:11:07 +0300 3296) *GNU* | *'with BFD'*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3297) test no != "$with_gnu_ld" && break
868b2b66 (kx 2024-12-20 16:11:07 +0300 3298) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3299) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3300) test yes != "$with_gnu_ld" && break
868b2b66 (kx 2024-12-20 16:11:07 +0300 3301) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3302) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 3303) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 3304) done
868b2b66 (kx 2024-12-20 16:11:07 +0300 3305) IFS=$lt_save_ifs
868b2b66 (kx 2024-12-20 16:11:07 +0300 3306) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 3307) lt_cv_path_LD=$LD # Let the user override the test with a path.
868b2b66 (kx 2024-12-20 16:11:07 +0300 3308) fi])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3309) LD=$lt_cv_path_LD
868b2b66 (kx 2024-12-20 16:11:07 +0300 3310) if test -n "$LD"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 3311) AC_MSG_RESULT($LD)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3312) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 3313) AC_MSG_RESULT(no)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3314) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 3315) test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3316) _LT_PATH_LD_GNU
868b2b66 (kx 2024-12-20 16:11:07 +0300 3317) AC_SUBST([LD])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3318)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3319) _LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3320) ])# LT_PATH_LD
868b2b66 (kx 2024-12-20 16:11:07 +0300 3321)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3322) # Old names:
868b2b66 (kx 2024-12-20 16:11:07 +0300 3323) AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3324) AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3325) dnl aclocal-1.4 backwards compatibility:
868b2b66 (kx 2024-12-20 16:11:07 +0300 3326) dnl AC_DEFUN([AM_PROG_LD], [])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3327) dnl AC_DEFUN([AC_PROG_LD], [])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3328)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3329)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3330) # _LT_PATH_LD_GNU
868b2b66 (kx 2024-12-20 16:11:07 +0300 3331) #- --------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 3332) m4_defun([_LT_PATH_LD_GNU],
868b2b66 (kx 2024-12-20 16:11:07 +0300 3333) [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
868b2b66 (kx 2024-12-20 16:11:07 +0300 3334) [# I'd rather use --version here, but apparently some GNU lds only accept -v.
868b2b66 (kx 2024-12-20 16:11:07 +0300 3335) case `$LD -v 2>&1 </dev/null` in
868b2b66 (kx 2024-12-20 16:11:07 +0300 3336) *GNU* | *'with BFD'*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3337) lt_cv_prog_gnu_ld=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 3338) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3339) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3340) lt_cv_prog_gnu_ld=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 3341) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3342) esac])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3343) with_gnu_ld=$lt_cv_prog_gnu_ld
868b2b66 (kx 2024-12-20 16:11:07 +0300 3344) ])# _LT_PATH_LD_GNU
868b2b66 (kx 2024-12-20 16:11:07 +0300 3345)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3346)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3347) # _LT_CMD_RELOAD
868b2b66 (kx 2024-12-20 16:11:07 +0300 3348) # --------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 3349) # find reload flag for linker
868b2b66 (kx 2024-12-20 16:11:07 +0300 3350) # -- PORTME Some linkers may need a different reload flag.
868b2b66 (kx 2024-12-20 16:11:07 +0300 3351) m4_defun([_LT_CMD_RELOAD],
868b2b66 (kx 2024-12-20 16:11:07 +0300 3352) [AC_CACHE_CHECK([for $LD option to reload object files],
868b2b66 (kx 2024-12-20 16:11:07 +0300 3353) lt_cv_ld_reload_flag,
868b2b66 (kx 2024-12-20 16:11:07 +0300 3354) [lt_cv_ld_reload_flag='-r'])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3355) reload_flag=$lt_cv_ld_reload_flag
868b2b66 (kx 2024-12-20 16:11:07 +0300 3356) case $reload_flag in
868b2b66 (kx 2024-12-20 16:11:07 +0300 3357) "" | " "*) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3358) *) reload_flag=" $reload_flag" ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3359) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 3360) reload_cmds='$LD$reload_flag -o $output$reload_objs'
868b2b66 (kx 2024-12-20 16:11:07 +0300 3361) case $host_os in
868b2b66 (kx 2024-12-20 16:11:07 +0300 3362) cygwin* | mingw* | pw32* | cegcc*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3363) if test yes != "$GCC"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 3364) reload_cmds=false
868b2b66 (kx 2024-12-20 16:11:07 +0300 3365) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 3366) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3367) darwin*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3368) if test yes = "$GCC"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 3369) reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
868b2b66 (kx 2024-12-20 16:11:07 +0300 3370) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 3371) reload_cmds='$LD$reload_flag -o $output$reload_objs'
868b2b66 (kx 2024-12-20 16:11:07 +0300 3372) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 3373) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3374) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 3375) _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 3376) _LT_TAGDECL([], [reload_cmds], [2])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 3377) ])# _LT_CMD_RELOAD
868b2b66 (kx 2024-12-20 16:11:07 +0300 3378)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3379)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3380) # _LT_PATH_DD
868b2b66 (kx 2024-12-20 16:11:07 +0300 3381) # -----------
868b2b66 (kx 2024-12-20 16:11:07 +0300 3382) # find a working dd
868b2b66 (kx 2024-12-20 16:11:07 +0300 3383) m4_defun([_LT_PATH_DD],
868b2b66 (kx 2024-12-20 16:11:07 +0300 3384) [AC_CACHE_CHECK([for a working dd], [ac_cv_path_lt_DD],
868b2b66 (kx 2024-12-20 16:11:07 +0300 3385) [printf 0123456789abcdef0123456789abcdef >conftest.i
868b2b66 (kx 2024-12-20 16:11:07 +0300 3386) cat conftest.i conftest.i >conftest2.i
868b2b66 (kx 2024-12-20 16:11:07 +0300 3387) : ${lt_DD:=$DD}
868b2b66 (kx 2024-12-20 16:11:07 +0300 3388) AC_PATH_PROGS_FEATURE_CHECK([lt_DD], [dd],
868b2b66 (kx 2024-12-20 16:11:07 +0300 3389) [if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 3390) cmp -s conftest.i conftest.out \
868b2b66 (kx 2024-12-20 16:11:07 +0300 3391) && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
868b2b66 (kx 2024-12-20 16:11:07 +0300 3392) fi])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3393) rm -f conftest.i conftest2.i conftest.out])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3394) ])# _LT_PATH_DD
868b2b66 (kx 2024-12-20 16:11:07 +0300 3395)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3396)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3397) # _LT_CMD_TRUNCATE
868b2b66 (kx 2024-12-20 16:11:07 +0300 3398) # ----------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 3399) # find command to truncate a binary pipe
868b2b66 (kx 2024-12-20 16:11:07 +0300 3400) m4_defun([_LT_CMD_TRUNCATE],
868b2b66 (kx 2024-12-20 16:11:07 +0300 3401) [m4_require([_LT_PATH_DD])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3402) AC_CACHE_CHECK([how to truncate binary pipes], [lt_cv_truncate_bin],
868b2b66 (kx 2024-12-20 16:11:07 +0300 3403) [printf 0123456789abcdef0123456789abcdef >conftest.i
868b2b66 (kx 2024-12-20 16:11:07 +0300 3404) cat conftest.i conftest.i >conftest2.i
868b2b66 (kx 2024-12-20 16:11:07 +0300 3405) lt_cv_truncate_bin=
868b2b66 (kx 2024-12-20 16:11:07 +0300 3406) if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 3407) cmp -s conftest.i conftest.out \
868b2b66 (kx 2024-12-20 16:11:07 +0300 3408) && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
868b2b66 (kx 2024-12-20 16:11:07 +0300 3409) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 3410) rm -f conftest.i conftest2.i conftest.out
868b2b66 (kx 2024-12-20 16:11:07 +0300 3411) test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3412) _LT_DECL([lt_truncate_bin], [lt_cv_truncate_bin], [1],
868b2b66 (kx 2024-12-20 16:11:07 +0300 3413) [Command to truncate a binary pipe])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3414) ])# _LT_CMD_TRUNCATE
868b2b66 (kx 2024-12-20 16:11:07 +0300 3415)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3416)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3417) # _LT_CHECK_MAGIC_METHOD
868b2b66 (kx 2024-12-20 16:11:07 +0300 3418) # ----------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 3419) # how to check for library dependencies
868b2b66 (kx 2024-12-20 16:11:07 +0300 3420) # -- PORTME fill in with the dynamic library characteristics
868b2b66 (kx 2024-12-20 16:11:07 +0300 3421) m4_defun([_LT_CHECK_MAGIC_METHOD],
868b2b66 (kx 2024-12-20 16:11:07 +0300 3422) [m4_require([_LT_DECL_EGREP])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3423) m4_require([_LT_DECL_OBJDUMP])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3424) AC_CACHE_CHECK([how to recognize dependent libraries],
868b2b66 (kx 2024-12-20 16:11:07 +0300 3425) lt_cv_deplibs_check_method,
868b2b66 (kx 2024-12-20 16:11:07 +0300 3426) [lt_cv_file_magic_cmd='$MAGIC_CMD'
868b2b66 (kx 2024-12-20 16:11:07 +0300 3427) lt_cv_file_magic_test_file=
868b2b66 (kx 2024-12-20 16:11:07 +0300 3428) lt_cv_deplibs_check_method='unknown'
868b2b66 (kx 2024-12-20 16:11:07 +0300 3429) # Need to set the preceding variable on all platforms that support
868b2b66 (kx 2024-12-20 16:11:07 +0300 3430) # interlibrary dependencies.
868b2b66 (kx 2024-12-20 16:11:07 +0300 3431) # 'none' -- dependencies not supported.
868b2b66 (kx 2024-12-20 16:11:07 +0300 3432) # 'unknown' -- same as none, but documents that we really don't know.
868b2b66 (kx 2024-12-20 16:11:07 +0300 3433) # 'pass_all' -- all dependencies passed with no checks.
868b2b66 (kx 2024-12-20 16:11:07 +0300 3434) # 'test_compile' -- check by making test program.
868b2b66 (kx 2024-12-20 16:11:07 +0300 3435) # 'file_magic [[regex]]' -- check by looking for files in library path
868b2b66 (kx 2024-12-20 16:11:07 +0300 3436) # that responds to the $file_magic_cmd with a given extended regex.
868b2b66 (kx 2024-12-20 16:11:07 +0300 3437) # If you have 'file' or equivalent on your system and you're not sure
868b2b66 (kx 2024-12-20 16:11:07 +0300 3438) # whether 'pass_all' will *always* work, you probably want this one.
868b2b66 (kx 2024-12-20 16:11:07 +0300 3439)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3440) case $host_os in
868b2b66 (kx 2024-12-20 16:11:07 +0300 3441) aix[[4-9]]*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3442) lt_cv_deplibs_check_method=pass_all
868b2b66 (kx 2024-12-20 16:11:07 +0300 3443) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3444)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3445) beos*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3446) lt_cv_deplibs_check_method=pass_all
868b2b66 (kx 2024-12-20 16:11:07 +0300 3447) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3448)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3449) bsdi[[45]]*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3450) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
868b2b66 (kx 2024-12-20 16:11:07 +0300 3451) lt_cv_file_magic_cmd='/usr/bin/file -L'
868b2b66 (kx 2024-12-20 16:11:07 +0300 3452) lt_cv_file_magic_test_file=/shlib/libc.so
868b2b66 (kx 2024-12-20 16:11:07 +0300 3453) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3454)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3455) cygwin*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3456) # func_win32_libid is a shell function defined in ltmain.sh
868b2b66 (kx 2024-12-20 16:11:07 +0300 3457) lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
868b2b66 (kx 2024-12-20 16:11:07 +0300 3458) lt_cv_file_magic_cmd='func_win32_libid'
868b2b66 (kx 2024-12-20 16:11:07 +0300 3459) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3460)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3461) mingw* | pw32*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3462) # Base MSYS/MinGW do not provide the 'file' command needed by
868b2b66 (kx 2024-12-20 16:11:07 +0300 3463) # func_win32_libid shell function, so use a weaker test based on 'objdump',
868b2b66 (kx 2024-12-20 16:11:07 +0300 3464) # unless we find 'file', for example because we are cross-compiling.
868b2b66 (kx 2024-12-20 16:11:07 +0300 3465) if ( file / ) >/dev/null 2>&1; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 3466) lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
868b2b66 (kx 2024-12-20 16:11:07 +0300 3467) lt_cv_file_magic_cmd='func_win32_libid'
868b2b66 (kx 2024-12-20 16:11:07 +0300 3468) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 3469) # Keep this pattern in sync with the one in func_win32_libid.
868b2b66 (kx 2024-12-20 16:11:07 +0300 3470) lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
868b2b66 (kx 2024-12-20 16:11:07 +0300 3471) lt_cv_file_magic_cmd='$OBJDUMP -f'
868b2b66 (kx 2024-12-20 16:11:07 +0300 3472) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 3473) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3474)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3475) cegcc*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3476) # use the weaker test based on 'objdump'. See mingw*.
868b2b66 (kx 2024-12-20 16:11:07 +0300 3477) lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
868b2b66 (kx 2024-12-20 16:11:07 +0300 3478) lt_cv_file_magic_cmd='$OBJDUMP -f'
868b2b66 (kx 2024-12-20 16:11:07 +0300 3479) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3480)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3481) darwin* | rhapsody*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3482) lt_cv_deplibs_check_method=pass_all
868b2b66 (kx 2024-12-20 16:11:07 +0300 3483) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3484)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3485) freebsd* | dragonfly*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3486) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 3487) case $host_cpu in
868b2b66 (kx 2024-12-20 16:11:07 +0300 3488) i*86 )
868b2b66 (kx 2024-12-20 16:11:07 +0300 3489) # Not sure whether the presence of OpenBSD here was a mistake.
868b2b66 (kx 2024-12-20 16:11:07 +0300 3490) # Let's accept both of them until this is cleared up.
868b2b66 (kx 2024-12-20 16:11:07 +0300 3491) lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
868b2b66 (kx 2024-12-20 16:11:07 +0300 3492) lt_cv_file_magic_cmd=/usr/bin/file
868b2b66 (kx 2024-12-20 16:11:07 +0300 3493) lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
868b2b66 (kx 2024-12-20 16:11:07 +0300 3494) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3495) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 3496) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 3497) lt_cv_deplibs_check_method=pass_all
868b2b66 (kx 2024-12-20 16:11:07 +0300 3498) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 3499) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3500)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3501) haiku*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3502) lt_cv_deplibs_check_method=pass_all
868b2b66 (kx 2024-12-20 16:11:07 +0300 3503) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3504)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3505) hpux10.20* | hpux11*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3506) lt_cv_file_magic_cmd=/usr/bin/file
868b2b66 (kx 2024-12-20 16:11:07 +0300 3507) case $host_cpu in
868b2b66 (kx 2024-12-20 16:11:07 +0300 3508) ia64*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3509) lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
868b2b66 (kx 2024-12-20 16:11:07 +0300 3510) lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
868b2b66 (kx 2024-12-20 16:11:07 +0300 3511) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3512) hppa*64*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3513) [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]']
868b2b66 (kx 2024-12-20 16:11:07 +0300 3514) lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
868b2b66 (kx 2024-12-20 16:11:07 +0300 3515) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3516) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3517) lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
868b2b66 (kx 2024-12-20 16:11:07 +0300 3518) lt_cv_file_magic_test_file=/usr/lib/libc.sl
868b2b66 (kx 2024-12-20 16:11:07 +0300 3519) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3520) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 3521) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3522)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3523) interix[[3-9]]*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3524) # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
868b2b66 (kx 2024-12-20 16:11:07 +0300 3525) lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
868b2b66 (kx 2024-12-20 16:11:07 +0300 3526) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3527)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3528) irix5* | irix6* | nonstopux*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3529) case $LD in
868b2b66 (kx 2024-12-20 16:11:07 +0300 3530) *-32|*"-32 ") libmagic=32-bit;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3531) *-n32|*"-n32 ") libmagic=N32;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3532) *-64|*"-64 ") libmagic=64-bit;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3533) *) libmagic=never-match;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3534) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 3535) lt_cv_deplibs_check_method=pass_all
868b2b66 (kx 2024-12-20 16:11:07 +0300 3536) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3537)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3538) # This must be glibc/ELF.
868b2b66 (kx 2024-12-20 16:11:07 +0300 3539) linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3540) lt_cv_deplibs_check_method=pass_all
868b2b66 (kx 2024-12-20 16:11:07 +0300 3541) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3542)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3543) netbsd*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3544) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 3545) lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
868b2b66 (kx 2024-12-20 16:11:07 +0300 3546) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 3547) lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
868b2b66 (kx 2024-12-20 16:11:07 +0300 3548) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 3549) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3550)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3551) newos6*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3552) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
868b2b66 (kx 2024-12-20 16:11:07 +0300 3553) lt_cv_file_magic_cmd=/usr/bin/file
868b2b66 (kx 2024-12-20 16:11:07 +0300 3554) lt_cv_file_magic_test_file=/usr/lib/libnls.so
868b2b66 (kx 2024-12-20 16:11:07 +0300 3555) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3556)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3557) *nto* | *qnx*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3558) lt_cv_deplibs_check_method=pass_all
868b2b66 (kx 2024-12-20 16:11:07 +0300 3559) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3560)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3561) openbsd* | bitrig*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3562) if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 3563) lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
868b2b66 (kx 2024-12-20 16:11:07 +0300 3564) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 3565) lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
868b2b66 (kx 2024-12-20 16:11:07 +0300 3566) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 3567) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3568)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3569) osf3* | osf4* | osf5*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3570) lt_cv_deplibs_check_method=pass_all
868b2b66 (kx 2024-12-20 16:11:07 +0300 3571) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3572)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3573) rdos*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3574) lt_cv_deplibs_check_method=pass_all
868b2b66 (kx 2024-12-20 16:11:07 +0300 3575) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3576)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3577) solaris*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3578) lt_cv_deplibs_check_method=pass_all
868b2b66 (kx 2024-12-20 16:11:07 +0300 3579) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3580)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3581) sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3582) lt_cv_deplibs_check_method=pass_all
868b2b66 (kx 2024-12-20 16:11:07 +0300 3583) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3584)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3585) sysv4 | sysv4.3*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3586) case $host_vendor in
868b2b66 (kx 2024-12-20 16:11:07 +0300 3587) motorola)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3588) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
868b2b66 (kx 2024-12-20 16:11:07 +0300 3589) lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
868b2b66 (kx 2024-12-20 16:11:07 +0300 3590) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3591) ncr)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3592) lt_cv_deplibs_check_method=pass_all
868b2b66 (kx 2024-12-20 16:11:07 +0300 3593) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3594) sequent)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3595) lt_cv_file_magic_cmd='/bin/file'
868b2b66 (kx 2024-12-20 16:11:07 +0300 3596) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
868b2b66 (kx 2024-12-20 16:11:07 +0300 3597) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3598) sni)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3599) lt_cv_file_magic_cmd='/bin/file'
868b2b66 (kx 2024-12-20 16:11:07 +0300 3600) lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
868b2b66 (kx 2024-12-20 16:11:07 +0300 3601) lt_cv_file_magic_test_file=/lib/libc.so
868b2b66 (kx 2024-12-20 16:11:07 +0300 3602) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3603) siemens)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3604) lt_cv_deplibs_check_method=pass_all
868b2b66 (kx 2024-12-20 16:11:07 +0300 3605) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3606) pc)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3607) lt_cv_deplibs_check_method=pass_all
868b2b66 (kx 2024-12-20 16:11:07 +0300 3608) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3609) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 3610) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3611)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3612) tpf*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3613) lt_cv_deplibs_check_method=pass_all
868b2b66 (kx 2024-12-20 16:11:07 +0300 3614) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3615) os2*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3616) lt_cv_deplibs_check_method=pass_all
868b2b66 (kx 2024-12-20 16:11:07 +0300 3617) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3618) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 3619) ])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3620)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3621) file_magic_glob=
868b2b66 (kx 2024-12-20 16:11:07 +0300 3622) want_nocaseglob=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 3623) if test "$build" = "$host"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 3624) case $host_os in
868b2b66 (kx 2024-12-20 16:11:07 +0300 3625) mingw* | pw32*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3626) if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 3627) want_nocaseglob=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 3628) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 3629) file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
868b2b66 (kx 2024-12-20 16:11:07 +0300 3630) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 3631) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3632) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 3633) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 3634)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3635) file_magic_cmd=$lt_cv_file_magic_cmd
868b2b66 (kx 2024-12-20 16:11:07 +0300 3636) deplibs_check_method=$lt_cv_deplibs_check_method
868b2b66 (kx 2024-12-20 16:11:07 +0300 3637) test -z "$deplibs_check_method" && deplibs_check_method=unknown
868b2b66 (kx 2024-12-20 16:11:07 +0300 3638)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3639) _LT_DECL([], [deplibs_check_method], [1],
868b2b66 (kx 2024-12-20 16:11:07 +0300 3640) [Method to check whether dependent libraries are shared objects])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3641) _LT_DECL([], [file_magic_cmd], [1],
868b2b66 (kx 2024-12-20 16:11:07 +0300 3642) [Command to use when deplibs_check_method = "file_magic"])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3643) _LT_DECL([], [file_magic_glob], [1],
868b2b66 (kx 2024-12-20 16:11:07 +0300 3644) [How to find potential files when deplibs_check_method = "file_magic"])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3645) _LT_DECL([], [want_nocaseglob], [1],
868b2b66 (kx 2024-12-20 16:11:07 +0300 3646) [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3647) ])# _LT_CHECK_MAGIC_METHOD
868b2b66 (kx 2024-12-20 16:11:07 +0300 3648)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3649)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3650) # LT_PATH_NM
868b2b66 (kx 2024-12-20 16:11:07 +0300 3651) # ----------
868b2b66 (kx 2024-12-20 16:11:07 +0300 3652) # find the pathname to a BSD- or MS-compatible name lister
868b2b66 (kx 2024-12-20 16:11:07 +0300 3653) AC_DEFUN([LT_PATH_NM],
868b2b66 (kx 2024-12-20 16:11:07 +0300 3654) [AC_REQUIRE([AC_PROG_CC])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 3655) AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
868b2b66 (kx 2024-12-20 16:11:07 +0300 3656) [if test -n "$NM"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 3657) # Let the user override the test.
868b2b66 (kx 2024-12-20 16:11:07 +0300 3658) lt_cv_path_NM=$NM
868b2b66 (kx 2024-12-20 16:11:07 +0300 3659) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 3660) lt_nm_to_check=${ac_tool_prefix}nm
868b2b66 (kx 2024-12-20 16:11:07 +0300 3661) if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 3662) lt_nm_to_check="$lt_nm_to_check nm"
868b2b66 (kx 2024-12-20 16:11:07 +0300 3663) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 3664) for lt_tmp_nm in $lt_nm_to_check; do
868b2b66 (kx 2024-12-20 16:11:07 +0300 3665) lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
868b2b66 (kx 2024-12-20 16:11:07 +0300 3666) for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
868b2b66 (kx 2024-12-20 16:11:07 +0300 3667) IFS=$lt_save_ifs
868b2b66 (kx 2024-12-20 16:11:07 +0300 3668) test -z "$ac_dir" && ac_dir=.
868b2b66 (kx 2024-12-20 16:11:07 +0300 3669) tmp_nm=$ac_dir/$lt_tmp_nm
868b2b66 (kx 2024-12-20 16:11:07 +0300 3670) if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 3671) # Check to see if the nm accepts a BSD-compat flag.
868b2b66 (kx 2024-12-20 16:11:07 +0300 3672) # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
868b2b66 (kx 2024-12-20 16:11:07 +0300 3673) # nm: unknown option "B" ignored
868b2b66 (kx 2024-12-20 16:11:07 +0300 3674) # Tru64's nm complains that /dev/null is an invalid object file
868b2b66 (kx 2024-12-20 16:11:07 +0300 3675) # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
868b2b66 (kx 2024-12-20 16:11:07 +0300 3676) case $build_os in
868b2b66 (kx 2024-12-20 16:11:07 +0300 3677) mingw*) lt_bad_file=conftest.nm/nofile ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3678) *) lt_bad_file=/dev/null ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3679) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 3680) case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
868b2b66 (kx 2024-12-20 16:11:07 +0300 3681) *$lt_bad_file* | *'Invalid file or object type'*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3682) lt_cv_path_NM="$tmp_nm -B"
868b2b66 (kx 2024-12-20 16:11:07 +0300 3683) break 2
868b2b66 (kx 2024-12-20 16:11:07 +0300 3684) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3685) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3686) case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
868b2b66 (kx 2024-12-20 16:11:07 +0300 3687) */dev/null*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3688) lt_cv_path_NM="$tmp_nm -p"
868b2b66 (kx 2024-12-20 16:11:07 +0300 3689) break 2
868b2b66 (kx 2024-12-20 16:11:07 +0300 3690) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3691) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3692) lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
868b2b66 (kx 2024-12-20 16:11:07 +0300 3693) continue # so that we can try to find one that supports BSD flags
868b2b66 (kx 2024-12-20 16:11:07 +0300 3694) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3695) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 3696) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3697) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 3698) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 3699) done
868b2b66 (kx 2024-12-20 16:11:07 +0300 3700) IFS=$lt_save_ifs
868b2b66 (kx 2024-12-20 16:11:07 +0300 3701) done
868b2b66 (kx 2024-12-20 16:11:07 +0300 3702) : ${lt_cv_path_NM=no}
868b2b66 (kx 2024-12-20 16:11:07 +0300 3703) fi])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3704) if test no != "$lt_cv_path_NM"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 3705) NM=$lt_cv_path_NM
868b2b66 (kx 2024-12-20 16:11:07 +0300 3706) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 3707) # Didn't find any BSD compatible name lister, look for dumpbin.
868b2b66 (kx 2024-12-20 16:11:07 +0300 3708) if test -n "$DUMPBIN"; then :
868b2b66 (kx 2024-12-20 16:11:07 +0300 3709) # Let the user override the test.
868b2b66 (kx 2024-12-20 16:11:07 +0300 3710) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 3711) AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3712) case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
868b2b66 (kx 2024-12-20 16:11:07 +0300 3713) *COFF*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3714) DUMPBIN="$DUMPBIN -symbols -headers"
868b2b66 (kx 2024-12-20 16:11:07 +0300 3715) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3716) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3717) DUMPBIN=:
868b2b66 (kx 2024-12-20 16:11:07 +0300 3718) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3719) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 3720) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 3721) AC_SUBST([DUMPBIN])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3722) if test : != "$DUMPBIN"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 3723) NM=$DUMPBIN
868b2b66 (kx 2024-12-20 16:11:07 +0300 3724) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 3725) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 3726) test -z "$NM" && NM=nm
868b2b66 (kx 2024-12-20 16:11:07 +0300 3727) AC_SUBST([NM])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3728) _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 3729)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3730) AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
868b2b66 (kx 2024-12-20 16:11:07 +0300 3731) [lt_cv_nm_interface="BSD nm"
868b2b66 (kx 2024-12-20 16:11:07 +0300 3732) echo "int some_variable = 0;" > conftest.$ac_ext
868b2b66 (kx 2024-12-20 16:11:07 +0300 3733) (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3734) (eval "$ac_compile" 2>conftest.err)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3735) cat conftest.err >&AS_MESSAGE_LOG_FD
868b2b66 (kx 2024-12-20 16:11:07 +0300 3736) (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3737) (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3738) cat conftest.err >&AS_MESSAGE_LOG_FD
868b2b66 (kx 2024-12-20 16:11:07 +0300 3739) (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3740) cat conftest.out >&AS_MESSAGE_LOG_FD
868b2b66 (kx 2024-12-20 16:11:07 +0300 3741) if $GREP 'External.*some_variable' conftest.out > /dev/null; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 3742) lt_cv_nm_interface="MS dumpbin"
868b2b66 (kx 2024-12-20 16:11:07 +0300 3743) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 3744) rm -f conftest*])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3745) ])# LT_PATH_NM
868b2b66 (kx 2024-12-20 16:11:07 +0300 3746)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3747) # Old names:
868b2b66 (kx 2024-12-20 16:11:07 +0300 3748) AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3749) AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3750) dnl aclocal-1.4 backwards compatibility:
868b2b66 (kx 2024-12-20 16:11:07 +0300 3751) dnl AC_DEFUN([AM_PROG_NM], [])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3752) dnl AC_DEFUN([AC_PROG_NM], [])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3753)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3754) # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
868b2b66 (kx 2024-12-20 16:11:07 +0300 3755) # --------------------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 3756) # how to determine the name of the shared library
868b2b66 (kx 2024-12-20 16:11:07 +0300 3757) # associated with a specific link library.
868b2b66 (kx 2024-12-20 16:11:07 +0300 3758) # -- PORTME fill in with the dynamic library characteristics
868b2b66 (kx 2024-12-20 16:11:07 +0300 3759) m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
868b2b66 (kx 2024-12-20 16:11:07 +0300 3760) [m4_require([_LT_DECL_EGREP])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3761) m4_require([_LT_DECL_OBJDUMP])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3762) m4_require([_LT_DECL_DLLTOOL])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3763) AC_CACHE_CHECK([how to associate runtime and link libraries],
868b2b66 (kx 2024-12-20 16:11:07 +0300 3764) lt_cv_sharedlib_from_linklib_cmd,
868b2b66 (kx 2024-12-20 16:11:07 +0300 3765) [lt_cv_sharedlib_from_linklib_cmd='unknown'
868b2b66 (kx 2024-12-20 16:11:07 +0300 3766)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3767) case $host_os in
868b2b66 (kx 2024-12-20 16:11:07 +0300 3768) cygwin* | mingw* | pw32* | cegcc*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3769) # two different shell functions defined in ltmain.sh;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3770) # decide which one to use based on capabilities of $DLLTOOL
868b2b66 (kx 2024-12-20 16:11:07 +0300 3771) case `$DLLTOOL --help 2>&1` in
868b2b66 (kx 2024-12-20 16:11:07 +0300 3772) *--identify-strict*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3773) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
868b2b66 (kx 2024-12-20 16:11:07 +0300 3774) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3775) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3776) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
868b2b66 (kx 2024-12-20 16:11:07 +0300 3777) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3778) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 3779) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3780) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3781) # fallback: assume linklib IS sharedlib
868b2b66 (kx 2024-12-20 16:11:07 +0300 3782) lt_cv_sharedlib_from_linklib_cmd=$ECHO
868b2b66 (kx 2024-12-20 16:11:07 +0300 3783) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3784) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 3785) ])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3786) sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
868b2b66 (kx 2024-12-20 16:11:07 +0300 3787) test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
868b2b66 (kx 2024-12-20 16:11:07 +0300 3788)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3789) _LT_DECL([], [sharedlib_from_linklib_cmd], [1],
868b2b66 (kx 2024-12-20 16:11:07 +0300 3790) [Command to associate shared and link libraries])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3791) ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
868b2b66 (kx 2024-12-20 16:11:07 +0300 3792)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3793)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3794) # _LT_PATH_MANIFEST_TOOL
868b2b66 (kx 2024-12-20 16:11:07 +0300 3795) # ----------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 3796) # locate the manifest tool
868b2b66 (kx 2024-12-20 16:11:07 +0300 3797) m4_defun([_LT_PATH_MANIFEST_TOOL],
868b2b66 (kx 2024-12-20 16:11:07 +0300 3798) [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3799) test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
868b2b66 (kx 2024-12-20 16:11:07 +0300 3800) AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
868b2b66 (kx 2024-12-20 16:11:07 +0300 3801) [lt_cv_path_mainfest_tool=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 3802) echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
868b2b66 (kx 2024-12-20 16:11:07 +0300 3803) $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
868b2b66 (kx 2024-12-20 16:11:07 +0300 3804) cat conftest.err >&AS_MESSAGE_LOG_FD
868b2b66 (kx 2024-12-20 16:11:07 +0300 3805) if $GREP 'Manifest Tool' conftest.out > /dev/null; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 3806) lt_cv_path_mainfest_tool=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 3807) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 3808) rm -f conftest*])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3809) if test yes != "$lt_cv_path_mainfest_tool"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 3810) MANIFEST_TOOL=:
868b2b66 (kx 2024-12-20 16:11:07 +0300 3811) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 3812) _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 3813) ])# _LT_PATH_MANIFEST_TOOL
868b2b66 (kx 2024-12-20 16:11:07 +0300 3814)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3815)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3816) # _LT_DLL_DEF_P([FILE])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3817) # ---------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 3818) # True iff FILE is a Windows DLL '.def' file.
868b2b66 (kx 2024-12-20 16:11:07 +0300 3819) # Keep in sync with func_dll_def_p in the libtool script
868b2b66 (kx 2024-12-20 16:11:07 +0300 3820) AC_DEFUN([_LT_DLL_DEF_P],
868b2b66 (kx 2024-12-20 16:11:07 +0300 3821) [dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 3822) test DEF = "`$SED -n dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 3823) -e '\''s/^[[ ]]*//'\'' dnl Strip leading whitespace
868b2b66 (kx 2024-12-20 16:11:07 +0300 3824) -e '\''/^\(;.*\)*$/d'\'' dnl Delete empty lines and comments
868b2b66 (kx 2024-12-20 16:11:07 +0300 3825) -e '\''s/^\(EXPORTS\|LIBRARY\)\([[ ]].*\)*$/DEF/p'\'' dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 3826) -e q dnl Only consider the first "real" line
868b2b66 (kx 2024-12-20 16:11:07 +0300 3827) $1`" dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 3828) ])# _LT_DLL_DEF_P
868b2b66 (kx 2024-12-20 16:11:07 +0300 3829)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3830)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3831) # LT_LIB_M
868b2b66 (kx 2024-12-20 16:11:07 +0300 3832) # --------
868b2b66 (kx 2024-12-20 16:11:07 +0300 3833) # check for math library
868b2b66 (kx 2024-12-20 16:11:07 +0300 3834) AC_DEFUN([LT_LIB_M],
868b2b66 (kx 2024-12-20 16:11:07 +0300 3835) [AC_REQUIRE([AC_CANONICAL_HOST])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 3836) LIBM=
868b2b66 (kx 2024-12-20 16:11:07 +0300 3837) case $host in
868b2b66 (kx 2024-12-20 16:11:07 +0300 3838) *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3839) # These system don't have libm, or don't need it
868b2b66 (kx 2024-12-20 16:11:07 +0300 3840) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3841) *-ncr-sysv4.3*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3842) AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3843) AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
868b2b66 (kx 2024-12-20 16:11:07 +0300 3844) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3845) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3846) AC_CHECK_LIB(m, cos, LIBM=-lm)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3847) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3848) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 3849) AC_SUBST([LIBM])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3850) ])# LT_LIB_M
868b2b66 (kx 2024-12-20 16:11:07 +0300 3851)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3852) # Old name:
868b2b66 (kx 2024-12-20 16:11:07 +0300 3853) AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3854) dnl aclocal-1.4 backwards compatibility:
868b2b66 (kx 2024-12-20 16:11:07 +0300 3855) dnl AC_DEFUN([AC_CHECK_LIBM], [])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3856)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3857)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3858) # _LT_COMPILER_NO_RTTI([TAGNAME])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3859) # -------------------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 3860) m4_defun([_LT_COMPILER_NO_RTTI],
868b2b66 (kx 2024-12-20 16:11:07 +0300 3861) [m4_require([_LT_TAG_COMPILER])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 3862)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3863) _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 3864)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3865) if test yes = "$GCC"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 3866) case $cc_basename in
868b2b66 (kx 2024-12-20 16:11:07 +0300 3867) nvcc*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3868) _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3869) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3870) _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3871) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 3872)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3873) _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
868b2b66 (kx 2024-12-20 16:11:07 +0300 3874) lt_cv_prog_compiler_rtti_exceptions,
868b2b66 (kx 2024-12-20 16:11:07 +0300 3875) [-fno-rtti -fno-exceptions], [],
868b2b66 (kx 2024-12-20 16:11:07 +0300 3876) [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3877) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 3878) _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
868b2b66 (kx 2024-12-20 16:11:07 +0300 3879) [Compiler flag to turn off builtin functions])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3880) ])# _LT_COMPILER_NO_RTTI
868b2b66 (kx 2024-12-20 16:11:07 +0300 3881)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3882)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3883) # _LT_CMD_GLOBAL_SYMBOLS
868b2b66 (kx 2024-12-20 16:11:07 +0300 3884) # ----------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 3885) m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
868b2b66 (kx 2024-12-20 16:11:07 +0300 3886) [AC_REQUIRE([AC_CANONICAL_HOST])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 3887) AC_REQUIRE([AC_PROG_CC])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 3888) AC_REQUIRE([AC_PROG_AWK])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 3889) AC_REQUIRE([LT_PATH_NM])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 3890) AC_REQUIRE([LT_PATH_LD])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 3891) m4_require([_LT_DECL_SED])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 3892) m4_require([_LT_DECL_EGREP])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 3893) m4_require([_LT_TAG_COMPILER])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 3894)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3895) # Check for command to grab the raw symbol name followed by C symbol from nm.
868b2b66 (kx 2024-12-20 16:11:07 +0300 3896) AC_MSG_CHECKING([command to parse $NM output from $compiler object])
868b2b66 (kx 2024-12-20 16:11:07 +0300 3897) AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
868b2b66 (kx 2024-12-20 16:11:07 +0300 3898) [
868b2b66 (kx 2024-12-20 16:11:07 +0300 3899) # These are sane defaults that work on at least a few old systems.
868b2b66 (kx 2024-12-20 16:11:07 +0300 3900) # [They come from Ultrix. What could be older than Ultrix?!! ;)]
868b2b66 (kx 2024-12-20 16:11:07 +0300 3901)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3902) # Character class describing NM global symbol codes.
868b2b66 (kx 2024-12-20 16:11:07 +0300 3903) symcode='[[BCDEGRST]]'
868b2b66 (kx 2024-12-20 16:11:07 +0300 3904)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3905) # Regexp to match symbols that can be accessed directly from C.
868b2b66 (kx 2024-12-20 16:11:07 +0300 3906) sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
868b2b66 (kx 2024-12-20 16:11:07 +0300 3907)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3908) # Define system-specific variables.
868b2b66 (kx 2024-12-20 16:11:07 +0300 3909) case $host_os in
868b2b66 (kx 2024-12-20 16:11:07 +0300 3910) aix*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3911) symcode='[[BCDT]]'
868b2b66 (kx 2024-12-20 16:11:07 +0300 3912) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3913) cygwin* | mingw* | pw32* | cegcc*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3914) symcode='[[ABCDGISTW]]'
868b2b66 (kx 2024-12-20 16:11:07 +0300 3915) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3916) hpux*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3917) if test ia64 = "$host_cpu"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 3918) symcode='[[ABCDEGRST]]'
868b2b66 (kx 2024-12-20 16:11:07 +0300 3919) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 3920) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3921) irix* | nonstopux*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3922) symcode='[[BCDEGRST]]'
868b2b66 (kx 2024-12-20 16:11:07 +0300 3923) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3924) osf*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3925) symcode='[[BCDEGQRST]]'
868b2b66 (kx 2024-12-20 16:11:07 +0300 3926) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3927) solaris*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3928) symcode='[[BDRT]]'
868b2b66 (kx 2024-12-20 16:11:07 +0300 3929) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3930) sco3.2v5*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3931) symcode='[[DT]]'
868b2b66 (kx 2024-12-20 16:11:07 +0300 3932) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3933) sysv4.2uw2*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3934) symcode='[[DT]]'
868b2b66 (kx 2024-12-20 16:11:07 +0300 3935) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3936) sysv5* | sco5v6* | unixware* | OpenUNIX*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3937) symcode='[[ABDT]]'
868b2b66 (kx 2024-12-20 16:11:07 +0300 3938) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3939) sysv4)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3940) symcode='[[DFNSTU]]'
868b2b66 (kx 2024-12-20 16:11:07 +0300 3941) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3942) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 3943)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3944) # If we're using GNU nm, then use its standard symbol codes.
868b2b66 (kx 2024-12-20 16:11:07 +0300 3945) case `$NM -V 2>&1` in
868b2b66 (kx 2024-12-20 16:11:07 +0300 3946) *GNU* | *'with BFD'*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3947) symcode='[[ABCDGIRSTW]]' ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3948) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 3949)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3950) if test "$lt_cv_nm_interface" = "MS dumpbin"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 3951) # Gets list of data symbols to import.
868b2b66 (kx 2024-12-20 16:11:07 +0300 3952) lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
868b2b66 (kx 2024-12-20 16:11:07 +0300 3953) # Adjust the below global symbol transforms to fixup imported variables.
868b2b66 (kx 2024-12-20 16:11:07 +0300 3954) lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
868b2b66 (kx 2024-12-20 16:11:07 +0300 3955) lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
868b2b66 (kx 2024-12-20 16:11:07 +0300 3956) lt_c_name_lib_hook="\
868b2b66 (kx 2024-12-20 16:11:07 +0300 3957) -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
868b2b66 (kx 2024-12-20 16:11:07 +0300 3958) -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
868b2b66 (kx 2024-12-20 16:11:07 +0300 3959) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 3960) # Disable hooks by default.
868b2b66 (kx 2024-12-20 16:11:07 +0300 3961) lt_cv_sys_global_symbol_to_import=
868b2b66 (kx 2024-12-20 16:11:07 +0300 3962) lt_cdecl_hook=
868b2b66 (kx 2024-12-20 16:11:07 +0300 3963) lt_c_name_hook=
868b2b66 (kx 2024-12-20 16:11:07 +0300 3964) lt_c_name_lib_hook=
868b2b66 (kx 2024-12-20 16:11:07 +0300 3965) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 3966)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3967) # Transform an extracted symbol line into a proper C declaration.
868b2b66 (kx 2024-12-20 16:11:07 +0300 3968) # Some systems (esp. on ia64) link data and code symbols differently,
868b2b66 (kx 2024-12-20 16:11:07 +0300 3969) # so use this general approach.
868b2b66 (kx 2024-12-20 16:11:07 +0300 3970) lt_cv_sys_global_symbol_to_cdecl="sed -n"\
868b2b66 (kx 2024-12-20 16:11:07 +0300 3971) $lt_cdecl_hook\
868b2b66 (kx 2024-12-20 16:11:07 +0300 3972) " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
868b2b66 (kx 2024-12-20 16:11:07 +0300 3973) " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
868b2b66 (kx 2024-12-20 16:11:07 +0300 3974)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3975) # Transform an extracted symbol line into symbol name and symbol address
868b2b66 (kx 2024-12-20 16:11:07 +0300 3976) lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
868b2b66 (kx 2024-12-20 16:11:07 +0300 3977) $lt_c_name_hook\
868b2b66 (kx 2024-12-20 16:11:07 +0300 3978) " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
868b2b66 (kx 2024-12-20 16:11:07 +0300 3979) " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
868b2b66 (kx 2024-12-20 16:11:07 +0300 3980)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3981) # Transform an extracted symbol line into symbol name with lib prefix and
868b2b66 (kx 2024-12-20 16:11:07 +0300 3982) # symbol address.
868b2b66 (kx 2024-12-20 16:11:07 +0300 3983) lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
868b2b66 (kx 2024-12-20 16:11:07 +0300 3984) $lt_c_name_lib_hook\
868b2b66 (kx 2024-12-20 16:11:07 +0300 3985) " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
868b2b66 (kx 2024-12-20 16:11:07 +0300 3986) " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
868b2b66 (kx 2024-12-20 16:11:07 +0300 3987) " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
868b2b66 (kx 2024-12-20 16:11:07 +0300 3988)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3989) # Handle CRLF in mingw tool chain
868b2b66 (kx 2024-12-20 16:11:07 +0300 3990) opt_cr=
868b2b66 (kx 2024-12-20 16:11:07 +0300 3991) case $build_os in
868b2b66 (kx 2024-12-20 16:11:07 +0300 3992) mingw*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3993) opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
868b2b66 (kx 2024-12-20 16:11:07 +0300 3994) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 3995) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 3996)
868b2b66 (kx 2024-12-20 16:11:07 +0300 3997) # Try without a prefix underscore, then with it.
868b2b66 (kx 2024-12-20 16:11:07 +0300 3998) for ac_symprfx in "" "_"; do
868b2b66 (kx 2024-12-20 16:11:07 +0300 3999)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4000) # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
868b2b66 (kx 2024-12-20 16:11:07 +0300 4001) symxfrm="\\1 $ac_symprfx\\2 \\2"
868b2b66 (kx 2024-12-20 16:11:07 +0300 4002)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4003) # Write the raw and C identifiers.
868b2b66 (kx 2024-12-20 16:11:07 +0300 4004) if test "$lt_cv_nm_interface" = "MS dumpbin"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 4005) # Fake it for dumpbin and say T for any non-static function,
868b2b66 (kx 2024-12-20 16:11:07 +0300 4006) # D for any global variable and I for any imported variable.
868b2b66 (kx 2024-12-20 16:11:07 +0300 4007) # Also find C++ and __fastcall symbols from MSVC++,
868b2b66 (kx 2024-12-20 16:11:07 +0300 4008) # which start with @ or ?.
868b2b66 (kx 2024-12-20 16:11:07 +0300 4009) lt_cv_sys_global_symbol_pipe="$AWK ['"\
868b2b66 (kx 2024-12-20 16:11:07 +0300 4010) " {last_section=section; section=\$ 3};"\
868b2b66 (kx 2024-12-20 16:11:07 +0300 4011) " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
868b2b66 (kx 2024-12-20 16:11:07 +0300 4012) " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
868b2b66 (kx 2024-12-20 16:11:07 +0300 4013) " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
868b2b66 (kx 2024-12-20 16:11:07 +0300 4014) " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
868b2b66 (kx 2024-12-20 16:11:07 +0300 4015) " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
868b2b66 (kx 2024-12-20 16:11:07 +0300 4016) " \$ 0!~/External *\|/{next};"\
868b2b66 (kx 2024-12-20 16:11:07 +0300 4017) " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
868b2b66 (kx 2024-12-20 16:11:07 +0300 4018) " {if(hide[section]) next};"\
868b2b66 (kx 2024-12-20 16:11:07 +0300 4019) " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
868b2b66 (kx 2024-12-20 16:11:07 +0300 4020) " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
868b2b66 (kx 2024-12-20 16:11:07 +0300 4021) " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
868b2b66 (kx 2024-12-20 16:11:07 +0300 4022) " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
868b2b66 (kx 2024-12-20 16:11:07 +0300 4023) " ' prfx=^$ac_symprfx]"
868b2b66 (kx 2024-12-20 16:11:07 +0300 4024) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 4025) lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
868b2b66 (kx 2024-12-20 16:11:07 +0300 4026) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 4027) lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
868b2b66 (kx 2024-12-20 16:11:07 +0300 4028)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4029) # Check to see that the pipe works correctly.
868b2b66 (kx 2024-12-20 16:11:07 +0300 4030) pipe_works=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 4031)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4032) rm -f conftest*
868b2b66 (kx 2024-12-20 16:11:07 +0300 4033) cat > conftest.$ac_ext <<_LT_EOF
868b2b66 (kx 2024-12-20 16:11:07 +0300 4034) #ifdef __cplusplus
868b2b66 (kx 2024-12-20 16:11:07 +0300 4035) extern "C" {
868b2b66 (kx 2024-12-20 16:11:07 +0300 4036) #endif
868b2b66 (kx 2024-12-20 16:11:07 +0300 4037) char nm_test_var;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4038) void nm_test_func(void);
868b2b66 (kx 2024-12-20 16:11:07 +0300 4039) void nm_test_func(void){}
868b2b66 (kx 2024-12-20 16:11:07 +0300 4040) #ifdef __cplusplus
868b2b66 (kx 2024-12-20 16:11:07 +0300 4041) }
868b2b66 (kx 2024-12-20 16:11:07 +0300 4042) #endif
868b2b66 (kx 2024-12-20 16:11:07 +0300 4043) int main(){nm_test_var='a';nm_test_func();return(0);}
868b2b66 (kx 2024-12-20 16:11:07 +0300 4044) _LT_EOF
868b2b66 (kx 2024-12-20 16:11:07 +0300 4045)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4046) if AC_TRY_EVAL(ac_compile); then
868b2b66 (kx 2024-12-20 16:11:07 +0300 4047) # Now try to grab the symbols.
868b2b66 (kx 2024-12-20 16:11:07 +0300 4048) nlist=conftest.nm
868b2b66 (kx 2024-12-20 16:11:07 +0300 4049) if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 4050) # Try sorting and uniquifying the output.
868b2b66 (kx 2024-12-20 16:11:07 +0300 4051) if sort "$nlist" | uniq > "$nlist"T; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 4052) mv -f "$nlist"T "$nlist"
868b2b66 (kx 2024-12-20 16:11:07 +0300 4053) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 4054) rm -f "$nlist"T
868b2b66 (kx 2024-12-20 16:11:07 +0300 4055) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 4056)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4057) # Make sure that we snagged all the symbols we need.
868b2b66 (kx 2024-12-20 16:11:07 +0300 4058) if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 4059) if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 4060) cat <<_LT_EOF > conftest.$ac_ext
868b2b66 (kx 2024-12-20 16:11:07 +0300 4061) /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
868b2b66 (kx 2024-12-20 16:11:07 +0300 4062) #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
868b2b66 (kx 2024-12-20 16:11:07 +0300 4063) /* DATA imports from DLLs on WIN32 can't be const, because runtime
868b2b66 (kx 2024-12-20 16:11:07 +0300 4064) relocations are performed -- see ld's documentation on pseudo-relocs. */
868b2b66 (kx 2024-12-20 16:11:07 +0300 4065) # define LT@&t@_DLSYM_CONST
868b2b66 (kx 2024-12-20 16:11:07 +0300 4066) #elif defined __osf__
868b2b66 (kx 2024-12-20 16:11:07 +0300 4067) /* This system does not cope well with relocations in const data. */
868b2b66 (kx 2024-12-20 16:11:07 +0300 4068) # define LT@&t@_DLSYM_CONST
868b2b66 (kx 2024-12-20 16:11:07 +0300 4069) #else
868b2b66 (kx 2024-12-20 16:11:07 +0300 4070) # define LT@&t@_DLSYM_CONST const
868b2b66 (kx 2024-12-20 16:11:07 +0300 4071) #endif
868b2b66 (kx 2024-12-20 16:11:07 +0300 4072)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4073) #ifdef __cplusplus
868b2b66 (kx 2024-12-20 16:11:07 +0300 4074) extern "C" {
868b2b66 (kx 2024-12-20 16:11:07 +0300 4075) #endif
868b2b66 (kx 2024-12-20 16:11:07 +0300 4076)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4077) _LT_EOF
868b2b66 (kx 2024-12-20 16:11:07 +0300 4078) # Now generate the symbol file.
868b2b66 (kx 2024-12-20 16:11:07 +0300 4079) eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4080)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4081) cat <<_LT_EOF >> conftest.$ac_ext
868b2b66 (kx 2024-12-20 16:11:07 +0300 4082)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4083) /* The mapping between symbol names and symbols. */
868b2b66 (kx 2024-12-20 16:11:07 +0300 4084) LT@&t@_DLSYM_CONST struct {
868b2b66 (kx 2024-12-20 16:11:07 +0300 4085) const char *name;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4086) void *address;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4087) }
868b2b66 (kx 2024-12-20 16:11:07 +0300 4088) lt__PROGRAM__LTX_preloaded_symbols[[]] =
868b2b66 (kx 2024-12-20 16:11:07 +0300 4089) {
868b2b66 (kx 2024-12-20 16:11:07 +0300 4090) { "@PROGRAM@", (void *) 0 },
868b2b66 (kx 2024-12-20 16:11:07 +0300 4091) _LT_EOF
868b2b66 (kx 2024-12-20 16:11:07 +0300 4092) $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
868b2b66 (kx 2024-12-20 16:11:07 +0300 4093) cat <<\_LT_EOF >> conftest.$ac_ext
868b2b66 (kx 2024-12-20 16:11:07 +0300 4094) {0, (void *) 0}
868b2b66 (kx 2024-12-20 16:11:07 +0300 4095) };
868b2b66 (kx 2024-12-20 16:11:07 +0300 4096)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4097) /* This works around a problem in FreeBSD linker */
868b2b66 (kx 2024-12-20 16:11:07 +0300 4098) #ifdef FREEBSD_WORKAROUND
868b2b66 (kx 2024-12-20 16:11:07 +0300 4099) static const void *lt_preloaded_setup() {
868b2b66 (kx 2024-12-20 16:11:07 +0300 4100) return lt__PROGRAM__LTX_preloaded_symbols;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4101) }
868b2b66 (kx 2024-12-20 16:11:07 +0300 4102) #endif
868b2b66 (kx 2024-12-20 16:11:07 +0300 4103)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4104) #ifdef __cplusplus
868b2b66 (kx 2024-12-20 16:11:07 +0300 4105) }
868b2b66 (kx 2024-12-20 16:11:07 +0300 4106) #endif
868b2b66 (kx 2024-12-20 16:11:07 +0300 4107) _LT_EOF
868b2b66 (kx 2024-12-20 16:11:07 +0300 4108) # Now try linking the two files.
868b2b66 (kx 2024-12-20 16:11:07 +0300 4109) mv conftest.$ac_objext conftstm.$ac_objext
868b2b66 (kx 2024-12-20 16:11:07 +0300 4110) lt_globsym_save_LIBS=$LIBS
868b2b66 (kx 2024-12-20 16:11:07 +0300 4111) lt_globsym_save_CFLAGS=$CFLAGS
868b2b66 (kx 2024-12-20 16:11:07 +0300 4112) LIBS=conftstm.$ac_objext
868b2b66 (kx 2024-12-20 16:11:07 +0300 4113) CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
868b2b66 (kx 2024-12-20 16:11:07 +0300 4114) if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 4115) pipe_works=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 4116) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 4117) LIBS=$lt_globsym_save_LIBS
868b2b66 (kx 2024-12-20 16:11:07 +0300 4118) CFLAGS=$lt_globsym_save_CFLAGS
868b2b66 (kx 2024-12-20 16:11:07 +0300 4119) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 4120) echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
868b2b66 (kx 2024-12-20 16:11:07 +0300 4121) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 4122) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 4123) echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
868b2b66 (kx 2024-12-20 16:11:07 +0300 4124) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 4125) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 4126) echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
868b2b66 (kx 2024-12-20 16:11:07 +0300 4127) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 4128) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 4129) echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
868b2b66 (kx 2024-12-20 16:11:07 +0300 4130) cat conftest.$ac_ext >&5
868b2b66 (kx 2024-12-20 16:11:07 +0300 4131) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 4132) rm -rf conftest* conftst*
868b2b66 (kx 2024-12-20 16:11:07 +0300 4133)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4134) # Do not use the global_symbol_pipe unless it works.
868b2b66 (kx 2024-12-20 16:11:07 +0300 4135) if test yes = "$pipe_works"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 4136) break
868b2b66 (kx 2024-12-20 16:11:07 +0300 4137) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 4138) lt_cv_sys_global_symbol_pipe=
868b2b66 (kx 2024-12-20 16:11:07 +0300 4139) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 4140) done
868b2b66 (kx 2024-12-20 16:11:07 +0300 4141) ])
868b2b66 (kx 2024-12-20 16:11:07 +0300 4142) if test -z "$lt_cv_sys_global_symbol_pipe"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 4143) lt_cv_sys_global_symbol_to_cdecl=
868b2b66 (kx 2024-12-20 16:11:07 +0300 4144) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 4145) if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 4146) AC_MSG_RESULT(failed)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4147) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 4148) AC_MSG_RESULT(ok)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4149) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 4150)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4151) # Response file support.
868b2b66 (kx 2024-12-20 16:11:07 +0300 4152) if test "$lt_cv_nm_interface" = "MS dumpbin"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 4153) nm_file_list_spec='@'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4154) elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 4155) nm_file_list_spec='@'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4156) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 4157)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4158) _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
868b2b66 (kx 2024-12-20 16:11:07 +0300 4159) [Take the output of nm and produce a listing of raw symbols and C names])
868b2b66 (kx 2024-12-20 16:11:07 +0300 4160) _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
868b2b66 (kx 2024-12-20 16:11:07 +0300 4161) [Transform the output of nm in a proper C declaration])
868b2b66 (kx 2024-12-20 16:11:07 +0300 4162) _LT_DECL([global_symbol_to_import], [lt_cv_sys_global_symbol_to_import], [1],
868b2b66 (kx 2024-12-20 16:11:07 +0300 4163) [Transform the output of nm into a list of symbols to manually relocate])
868b2b66 (kx 2024-12-20 16:11:07 +0300 4164) _LT_DECL([global_symbol_to_c_name_address],
868b2b66 (kx 2024-12-20 16:11:07 +0300 4165) [lt_cv_sys_global_symbol_to_c_name_address], [1],
868b2b66 (kx 2024-12-20 16:11:07 +0300 4166) [Transform the output of nm in a C name address pair])
868b2b66 (kx 2024-12-20 16:11:07 +0300 4167) _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
868b2b66 (kx 2024-12-20 16:11:07 +0300 4168) [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
868b2b66 (kx 2024-12-20 16:11:07 +0300 4169) [Transform the output of nm in a C name address pair when lib prefix is needed])
868b2b66 (kx 2024-12-20 16:11:07 +0300 4170) _LT_DECL([nm_interface], [lt_cv_nm_interface], [1],
868b2b66 (kx 2024-12-20 16:11:07 +0300 4171) [The name lister interface])
868b2b66 (kx 2024-12-20 16:11:07 +0300 4172) _LT_DECL([], [nm_file_list_spec], [1],
868b2b66 (kx 2024-12-20 16:11:07 +0300 4173) [Specify filename containing input files for $NM])
868b2b66 (kx 2024-12-20 16:11:07 +0300 4174) ]) # _LT_CMD_GLOBAL_SYMBOLS
868b2b66 (kx 2024-12-20 16:11:07 +0300 4175)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4176)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4177) # _LT_COMPILER_PIC([TAGNAME])
868b2b66 (kx 2024-12-20 16:11:07 +0300 4178) # ---------------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 4179) m4_defun([_LT_COMPILER_PIC],
868b2b66 (kx 2024-12-20 16:11:07 +0300 4180) [m4_require([_LT_TAG_COMPILER])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 4181) _LT_TAGVAR(lt_prog_compiler_wl, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 4182) _LT_TAGVAR(lt_prog_compiler_pic, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 4183) _LT_TAGVAR(lt_prog_compiler_static, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 4184)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4185) m4_if([$1], [CXX], [
868b2b66 (kx 2024-12-20 16:11:07 +0300 4186) # C++ specific cases for pic, static, wl, etc.
868b2b66 (kx 2024-12-20 16:11:07 +0300 4187) if test yes = "$GXX"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 4188) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4189) _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4190)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4191) case $host_os in
868b2b66 (kx 2024-12-20 16:11:07 +0300 4192) aix*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4193) # All AIX code is PIC.
868b2b66 (kx 2024-12-20 16:11:07 +0300 4194) if test ia64 = "$host_cpu"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 4195) # AIX 5 now supports IA64 processor
868b2b66 (kx 2024-12-20 16:11:07 +0300 4196) _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4197) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 4198) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4199) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4200)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4201) amigaos*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4202) case $host_cpu in
868b2b66 (kx 2024-12-20 16:11:07 +0300 4203) powerpc)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4204) # see comment about AmigaOS4 .so support
868b2b66 (kx 2024-12-20 16:11:07 +0300 4205) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4206) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4207) m68k)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4208) # FIXME: we need at least 68020 code to build shared libraries, but
868b2b66 (kx 2024-12-20 16:11:07 +0300 4209) # adding the '-m68020' flag to GCC prevents building anything better,
868b2b66 (kx 2024-12-20 16:11:07 +0300 4210) # like '-m68040'.
868b2b66 (kx 2024-12-20 16:11:07 +0300 4211) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4212) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4213) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 4214) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4215)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4216) beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4217) # PIC is the default for these OSes.
868b2b66 (kx 2024-12-20 16:11:07 +0300 4218) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4219) mingw* | cygwin* | os2* | pw32* | cegcc*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4220) # This hack is so that the source file can tell whether it is being
868b2b66 (kx 2024-12-20 16:11:07 +0300 4221) # built for inclusion in a dll (and should export symbols for example).
868b2b66 (kx 2024-12-20 16:11:07 +0300 4222) # Although the cygwin gcc ignores -fPIC, still need this for old-style
868b2b66 (kx 2024-12-20 16:11:07 +0300 4223) # (--disable-auto-import) libraries
868b2b66 (kx 2024-12-20 16:11:07 +0300 4224) m4_if([$1], [GCJ], [],
868b2b66 (kx 2024-12-20 16:11:07 +0300 4225) [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
868b2b66 (kx 2024-12-20 16:11:07 +0300 4226) case $host_os in
868b2b66 (kx 2024-12-20 16:11:07 +0300 4227) os2*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4228) _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4229) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4230) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 4231) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4232) darwin* | rhapsody*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4233) # PIC is the default on this platform
868b2b66 (kx 2024-12-20 16:11:07 +0300 4234) # Common symbols not allowed in MH_DYLIB files
868b2b66 (kx 2024-12-20 16:11:07 +0300 4235) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4236) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4237) *djgpp*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4238) # DJGPP does not support shared libraries at all
868b2b66 (kx 2024-12-20 16:11:07 +0300 4239) _LT_TAGVAR(lt_prog_compiler_pic, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 4240) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4241) haiku*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4242) # PIC is the default for Haiku.
868b2b66 (kx 2024-12-20 16:11:07 +0300 4243) # The "-static" flag exists, but is broken.
868b2b66 (kx 2024-12-20 16:11:07 +0300 4244) _LT_TAGVAR(lt_prog_compiler_static, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 4245) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4246) interix[[3-9]]*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4247) # Interix 3.x gcc -fpic/-fPIC options generate broken code.
868b2b66 (kx 2024-12-20 16:11:07 +0300 4248) # Instead, we relocate shared libraries at runtime.
868b2b66 (kx 2024-12-20 16:11:07 +0300 4249) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4250) sysv4*MP*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4251) if test -d /usr/nec; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 4252) _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
868b2b66 (kx 2024-12-20 16:11:07 +0300 4253) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 4254) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4255) hpux*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4256) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
868b2b66 (kx 2024-12-20 16:11:07 +0300 4257) # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
868b2b66 (kx 2024-12-20 16:11:07 +0300 4258) # sets the default TLS model and affects inlining.
868b2b66 (kx 2024-12-20 16:11:07 +0300 4259) case $host_cpu in
868b2b66 (kx 2024-12-20 16:11:07 +0300 4260) hppa*64*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4261) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4262) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4263) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4264) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4265) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 4266) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4267) *qnx* | *nto*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4268) # QNX uses GNU C++, but need to define -shared option too, otherwise
868b2b66 (kx 2024-12-20 16:11:07 +0300 4269) # it will coredump.
868b2b66 (kx 2024-12-20 16:11:07 +0300 4270) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4271) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4272) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4273) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4274) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4275) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 4276) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 4277) case $host_os in
868b2b66 (kx 2024-12-20 16:11:07 +0300 4278) aix[[4-9]]*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4279) # All AIX code is PIC.
868b2b66 (kx 2024-12-20 16:11:07 +0300 4280) if test ia64 = "$host_cpu"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 4281) # AIX 5 now supports IA64 processor
868b2b66 (kx 2024-12-20 16:11:07 +0300 4282) _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4283) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 4284) _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4285) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 4286) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4287) chorus*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4288) case $cc_basename in
868b2b66 (kx 2024-12-20 16:11:07 +0300 4289) cxch68*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4290) # Green Hills C++ Compiler
868b2b66 (kx 2024-12-20 16:11:07 +0300 4291) # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
868b2b66 (kx 2024-12-20 16:11:07 +0300 4292) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4293) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 4294) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4295) mingw* | cygwin* | os2* | pw32* | cegcc*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4296) # This hack is so that the source file can tell whether it is being
868b2b66 (kx 2024-12-20 16:11:07 +0300 4297) # built for inclusion in a dll (and should export symbols for example).
868b2b66 (kx 2024-12-20 16:11:07 +0300 4298) m4_if([$1], [GCJ], [],
868b2b66 (kx 2024-12-20 16:11:07 +0300 4299) [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
868b2b66 (kx 2024-12-20 16:11:07 +0300 4300) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4301) dgux*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4302) case $cc_basename in
868b2b66 (kx 2024-12-20 16:11:07 +0300 4303) ec++*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4304) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4305) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4306) ghcx*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4307) # Green Hills C++ Compiler
868b2b66 (kx 2024-12-20 16:11:07 +0300 4308) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4309) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4310) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4311) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4312) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 4313) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4314) freebsd* | dragonfly*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4315) # FreeBSD uses GNU C++
868b2b66 (kx 2024-12-20 16:11:07 +0300 4316) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4317) hpux9* | hpux10* | hpux11*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4318) case $cc_basename in
868b2b66 (kx 2024-12-20 16:11:07 +0300 4319) CC*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4320) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4321) _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4322) if test ia64 != "$host_cpu"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 4323) _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4324) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 4325) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4326) aCC*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4327) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4328) _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4329) case $host_cpu in
868b2b66 (kx 2024-12-20 16:11:07 +0300 4330) hppa*64*|ia64*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4331) # +Z the default
868b2b66 (kx 2024-12-20 16:11:07 +0300 4332) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4333) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4334) _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4335) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4336) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 4337) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4338) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4339) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4340) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 4341) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4342) interix*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4343) # This is c89, which is MS Visual C++ (no shared libs)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4344) # Anyone wants to do a port?
868b2b66 (kx 2024-12-20 16:11:07 +0300 4345) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4346) irix5* | irix6* | nonstopux*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4347) case $cc_basename in
868b2b66 (kx 2024-12-20 16:11:07 +0300 4348) CC*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4349) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4350) _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4351) # CC pic flag -KPIC is the default.
868b2b66 (kx 2024-12-20 16:11:07 +0300 4352) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4353) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4354) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4355) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 4356) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4357) linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4358) case $cc_basename in
868b2b66 (kx 2024-12-20 16:11:07 +0300 4359) KCC*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4360) # KAI C++ Compiler
868b2b66 (kx 2024-12-20 16:11:07 +0300 4361) _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4362) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4363) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4364) ecpc* )
868b2b66 (kx 2024-12-20 16:11:07 +0300 4365) # old Intel C++ for x86_64, which still supported -KPIC.
868b2b66 (kx 2024-12-20 16:11:07 +0300 4366) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4367) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4368) _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4369) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4370) icpc* )
868b2b66 (kx 2024-12-20 16:11:07 +0300 4371) # Intel C++, used to be incompatible with GCC.
868b2b66 (kx 2024-12-20 16:11:07 +0300 4372) # ICC 10 doesn't accept -KPIC any more.
868b2b66 (kx 2024-12-20 16:11:07 +0300 4373) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4374) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4375) _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4376) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4377) pgCC* | pgcpp*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4378) # Portland Group C++ compiler
868b2b66 (kx 2024-12-20 16:11:07 +0300 4379) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4380) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4381) _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4382) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4383) cxx*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4384) # Compaq C++
868b2b66 (kx 2024-12-20 16:11:07 +0300 4385) # Make sure the PIC flag is empty. It appears that all Alpha
868b2b66 (kx 2024-12-20 16:11:07 +0300 4386) # Linux and Compaq Tru64 Unix objects are PIC.
868b2b66 (kx 2024-12-20 16:11:07 +0300 4387) _LT_TAGVAR(lt_prog_compiler_pic, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 4388) _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4389) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4390) xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4391) # IBM XL 8.0, 9.0 on PPC and BlueGene
868b2b66 (kx 2024-12-20 16:11:07 +0300 4392) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4393) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4394) _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4395) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4396) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4397) case `$CC -V 2>&1 | sed 5q` in
868b2b66 (kx 2024-12-20 16:11:07 +0300 4398) *Sun\ C*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4399) # Sun C++ 5.9
868b2b66 (kx 2024-12-20 16:11:07 +0300 4400) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4401) _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4402) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
868b2b66 (kx 2024-12-20 16:11:07 +0300 4403) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4404) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 4405) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4406) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 4407) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4408) lynxos*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4409) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4410) m88k*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4411) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4412) mvs*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4413) case $cc_basename in
868b2b66 (kx 2024-12-20 16:11:07 +0300 4414) cxx*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4415) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4416) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4417) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4418) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4419) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 4420) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4421) netbsd*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4422) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4423) *qnx* | *nto*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4424) # QNX uses GNU C++, but need to define -shared option too, otherwise
868b2b66 (kx 2024-12-20 16:11:07 +0300 4425) # it will coredump.
868b2b66 (kx 2024-12-20 16:11:07 +0300 4426) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4427) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4428) osf3* | osf4* | osf5*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4429) case $cc_basename in
868b2b66 (kx 2024-12-20 16:11:07 +0300 4430) KCC*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4431) _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4432) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4433) RCC*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4434) # Rational C++ 2.4.1
868b2b66 (kx 2024-12-20 16:11:07 +0300 4435) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4436) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4437) cxx*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4438) # Digital/Compaq C++
868b2b66 (kx 2024-12-20 16:11:07 +0300 4439) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4440) # Make sure the PIC flag is empty. It appears that all Alpha
868b2b66 (kx 2024-12-20 16:11:07 +0300 4441) # Linux and Compaq Tru64 Unix objects are PIC.
868b2b66 (kx 2024-12-20 16:11:07 +0300 4442) _LT_TAGVAR(lt_prog_compiler_pic, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 4443) _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4444) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4445) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4446) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4447) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 4448) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4449) psos*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4450) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4451) solaris*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4452) case $cc_basename in
868b2b66 (kx 2024-12-20 16:11:07 +0300 4453) CC* | sunCC*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4454) # Sun C++ 4.2, 5.x and Centerline C++
868b2b66 (kx 2024-12-20 16:11:07 +0300 4455) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4456) _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4457) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
868b2b66 (kx 2024-12-20 16:11:07 +0300 4458) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4459) gcx*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4460) # Green Hills C++ Compiler
868b2b66 (kx 2024-12-20 16:11:07 +0300 4461) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4462) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4463) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4464) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4465) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 4466) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4467) sunos4*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4468) case $cc_basename in
868b2b66 (kx 2024-12-20 16:11:07 +0300 4469) CC*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4470) # Sun C++ 4.x
868b2b66 (kx 2024-12-20 16:11:07 +0300 4471) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4472) _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4473) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4474) lcc*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4475) # Lucid
868b2b66 (kx 2024-12-20 16:11:07 +0300 4476) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4477) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4478) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4479) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4480) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 4481) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4482) sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4483) case $cc_basename in
868b2b66 (kx 2024-12-20 16:11:07 +0300 4484) CC*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4485) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4486) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4487) _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4488) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4489) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 4490) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4491) tandem*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4492) case $cc_basename in
868b2b66 (kx 2024-12-20 16:11:07 +0300 4493) NCC*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4494) # NonStop-UX NCC 3.20
868b2b66 (kx 2024-12-20 16:11:07 +0300 4495) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4496) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4497) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4498) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4499) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 4500) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4501) vxworks*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4502) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4503) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4504) _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 4505) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4506) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 4507) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 4508) ],
868b2b66 (kx 2024-12-20 16:11:07 +0300 4509) [
868b2b66 (kx 2024-12-20 16:11:07 +0300 4510) if test yes = "$GCC"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 4511) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4512) _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4513)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4514) case $host_os in
868b2b66 (kx 2024-12-20 16:11:07 +0300 4515) aix*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4516) # All AIX code is PIC.
868b2b66 (kx 2024-12-20 16:11:07 +0300 4517) if test ia64 = "$host_cpu"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 4518) # AIX 5 now supports IA64 processor
868b2b66 (kx 2024-12-20 16:11:07 +0300 4519) _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4520) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 4521) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4522) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4523)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4524) amigaos*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4525) case $host_cpu in
868b2b66 (kx 2024-12-20 16:11:07 +0300 4526) powerpc)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4527) # see comment about AmigaOS4 .so support
868b2b66 (kx 2024-12-20 16:11:07 +0300 4528) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4529) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4530) m68k)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4531) # FIXME: we need at least 68020 code to build shared libraries, but
868b2b66 (kx 2024-12-20 16:11:07 +0300 4532) # adding the '-m68020' flag to GCC prevents building anything better,
868b2b66 (kx 2024-12-20 16:11:07 +0300 4533) # like '-m68040'.
868b2b66 (kx 2024-12-20 16:11:07 +0300 4534) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4535) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4536) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 4537) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4538)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4539) beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4540) # PIC is the default for these OSes.
868b2b66 (kx 2024-12-20 16:11:07 +0300 4541) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4542)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4543) mingw* | cygwin* | pw32* | os2* | cegcc*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4544) # This hack is so that the source file can tell whether it is being
868b2b66 (kx 2024-12-20 16:11:07 +0300 4545) # built for inclusion in a dll (and should export symbols for example).
868b2b66 (kx 2024-12-20 16:11:07 +0300 4546) # Although the cygwin gcc ignores -fPIC, still need this for old-style
868b2b66 (kx 2024-12-20 16:11:07 +0300 4547) # (--disable-auto-import) libraries
868b2b66 (kx 2024-12-20 16:11:07 +0300 4548) m4_if([$1], [GCJ], [],
868b2b66 (kx 2024-12-20 16:11:07 +0300 4549) [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
868b2b66 (kx 2024-12-20 16:11:07 +0300 4550) case $host_os in
868b2b66 (kx 2024-12-20 16:11:07 +0300 4551) os2*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4552) _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4553) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4554) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 4555) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4556)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4557) darwin* | rhapsody*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4558) # PIC is the default on this platform
868b2b66 (kx 2024-12-20 16:11:07 +0300 4559) # Common symbols not allowed in MH_DYLIB files
868b2b66 (kx 2024-12-20 16:11:07 +0300 4560) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4561) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4562)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4563) haiku*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4564) # PIC is the default for Haiku.
868b2b66 (kx 2024-12-20 16:11:07 +0300 4565) # The "-static" flag exists, but is broken.
868b2b66 (kx 2024-12-20 16:11:07 +0300 4566) _LT_TAGVAR(lt_prog_compiler_static, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 4567) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4568)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4569) hpux*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4570) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
868b2b66 (kx 2024-12-20 16:11:07 +0300 4571) # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
868b2b66 (kx 2024-12-20 16:11:07 +0300 4572) # sets the default TLS model and affects inlining.
868b2b66 (kx 2024-12-20 16:11:07 +0300 4573) case $host_cpu in
868b2b66 (kx 2024-12-20 16:11:07 +0300 4574) hppa*64*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4575) # +Z the default
868b2b66 (kx 2024-12-20 16:11:07 +0300 4576) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4577) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4578) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4579) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4580) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 4581) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4582)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4583) interix[[3-9]]*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4584) # Interix 3.x gcc -fpic/-fPIC options generate broken code.
868b2b66 (kx 2024-12-20 16:11:07 +0300 4585) # Instead, we relocate shared libraries at runtime.
868b2b66 (kx 2024-12-20 16:11:07 +0300 4586) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4587)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4588) msdosdjgpp*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4589) # Just because we use GCC doesn't mean we suddenly get shared libraries
868b2b66 (kx 2024-12-20 16:11:07 +0300 4590) # on systems that don't support them.
868b2b66 (kx 2024-12-20 16:11:07 +0300 4591) _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 4592) enable_shared=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 4593) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4594)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4595) *nto* | *qnx*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4596) # QNX uses GNU C++, but need to define -shared option too, otherwise
868b2b66 (kx 2024-12-20 16:11:07 +0300 4597) # it will coredump.
868b2b66 (kx 2024-12-20 16:11:07 +0300 4598) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4599) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4600)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4601) sysv4*MP*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4602) if test -d /usr/nec; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 4603) _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
868b2b66 (kx 2024-12-20 16:11:07 +0300 4604) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 4605) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4606)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4607) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4608) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4609) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4610) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 4611)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4612) case $cc_basename in
868b2b66 (kx 2024-12-20 16:11:07 +0300 4613) nvcc*) # Cuda Compiler Driver 2.2
868b2b66 (kx 2024-12-20 16:11:07 +0300 4614) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
868b2b66 (kx 2024-12-20 16:11:07 +0300 4615) if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 4616) _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
868b2b66 (kx 2024-12-20 16:11:07 +0300 4617) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 4618) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4619) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 4620) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 4621) # PORTME Check for flag to pass linker flags through the system compiler.
868b2b66 (kx 2024-12-20 16:11:07 +0300 4622) case $host_os in
868b2b66 (kx 2024-12-20 16:11:07 +0300 4623) aix*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4624) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4625) if test ia64 = "$host_cpu"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 4626) # AIX 5 now supports IA64 processor
868b2b66 (kx 2024-12-20 16:11:07 +0300 4627) _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4628) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 4629) _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4630) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 4631) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4632)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4633) darwin* | rhapsody*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4634) # PIC is the default on this platform
868b2b66 (kx 2024-12-20 16:11:07 +0300 4635) # Common symbols not allowed in MH_DYLIB files
868b2b66 (kx 2024-12-20 16:11:07 +0300 4636) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4637) case $cc_basename in
868b2b66 (kx 2024-12-20 16:11:07 +0300 4638) nagfor*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4639) # NAG Fortran compiler
868b2b66 (kx 2024-12-20 16:11:07 +0300 4640) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4641) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4642) _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4643) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4644) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 4645) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4646)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4647) mingw* | cygwin* | pw32* | os2* | cegcc*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4648) # This hack is so that the source file can tell whether it is being
868b2b66 (kx 2024-12-20 16:11:07 +0300 4649) # built for inclusion in a dll (and should export symbols for example).
868b2b66 (kx 2024-12-20 16:11:07 +0300 4650) m4_if([$1], [GCJ], [],
868b2b66 (kx 2024-12-20 16:11:07 +0300 4651) [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
868b2b66 (kx 2024-12-20 16:11:07 +0300 4652) case $host_os in
868b2b66 (kx 2024-12-20 16:11:07 +0300 4653) os2*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4654) _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4655) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4656) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 4657) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4658)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4659) hpux9* | hpux10* | hpux11*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4660) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4661) # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
868b2b66 (kx 2024-12-20 16:11:07 +0300 4662) # not for PA HP-UX.
868b2b66 (kx 2024-12-20 16:11:07 +0300 4663) case $host_cpu in
868b2b66 (kx 2024-12-20 16:11:07 +0300 4664) hppa*64*|ia64*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4665) # +Z the default
868b2b66 (kx 2024-12-20 16:11:07 +0300 4666) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4667) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4668) _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4669) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4670) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 4671) # Is there a better lt_prog_compiler_static that works with the bundled CC?
868b2b66 (kx 2024-12-20 16:11:07 +0300 4672) _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4673) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4674)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4675) irix5* | irix6* | nonstopux*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4676) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4677) # PIC (with -KPIC) is the default.
868b2b66 (kx 2024-12-20 16:11:07 +0300 4678) _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4679) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4680)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4681) linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4682) case $cc_basename in
868b2b66 (kx 2024-12-20 16:11:07 +0300 4683) # old Intel for x86_64, which still supported -KPIC.
868b2b66 (kx 2024-12-20 16:11:07 +0300 4684) ecc*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4685) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4686) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4687) _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4688) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4689) # icc used to be incompatible with GCC.
868b2b66 (kx 2024-12-20 16:11:07 +0300 4690) # ICC 10 doesn't accept -KPIC any more.
868b2b66 (kx 2024-12-20 16:11:07 +0300 4691) icc* | ifort*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4692) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4693) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4694) _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4695) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4696) # Lahey Fortran 8.1.
868b2b66 (kx 2024-12-20 16:11:07 +0300 4697) lf95*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4698) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4699) _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4700) _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4701) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4702) nagfor*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4703) # NAG Fortran compiler
868b2b66 (kx 2024-12-20 16:11:07 +0300 4704) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4705) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4706) _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4707) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4708) tcc*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4709) # Fabrice Bellard et al's Tiny C Compiler
868b2b66 (kx 2024-12-20 16:11:07 +0300 4710) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4711) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4712) _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4713) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4714) pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4715) # Portland Group compilers (*not* the Pentium gcc compiler,
868b2b66 (kx 2024-12-20 16:11:07 +0300 4716) # which looks to be a dead project)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4717) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4718) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4719) _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4720) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4721) ccc*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4722) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4723) # All Alpha code is PIC.
868b2b66 (kx 2024-12-20 16:11:07 +0300 4724) _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4725) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4726) xl* | bgxl* | bgf* | mpixl*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4727) # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
868b2b66 (kx 2024-12-20 16:11:07 +0300 4728) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4729) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4730) _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4731) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4732) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4733) case `$CC -V 2>&1 | sed 5q` in
868b2b66 (kx 2024-12-20 16:11:07 +0300 4734) *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4735) # Sun Fortran 8.3 passes all unrecognized flags to the linker
868b2b66 (kx 2024-12-20 16:11:07 +0300 4736) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4737) _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4738) _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
868b2b66 (kx 2024-12-20 16:11:07 +0300 4739) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4740) *Sun\ F* | *Sun*Fortran*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4741) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4742) _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4743) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
868b2b66 (kx 2024-12-20 16:11:07 +0300 4744) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4745) *Sun\ C*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4746) # Sun C 5.9
868b2b66 (kx 2024-12-20 16:11:07 +0300 4747) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4748) _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4749) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4750) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4751) *Intel*\ [[CF]]*Compiler*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4752) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4753) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4754) _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4755) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4756) *Portland\ Group*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4757) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4758) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4759) _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4760) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4761) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 4762) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4763) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 4764) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4765)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4766) newsos6)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4767) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4768) _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4769) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4770)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4771) *nto* | *qnx*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4772) # QNX uses GNU C++, but need to define -shared option too, otherwise
868b2b66 (kx 2024-12-20 16:11:07 +0300 4773) # it will coredump.
868b2b66 (kx 2024-12-20 16:11:07 +0300 4774) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4775) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4776)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4777) osf3* | osf4* | osf5*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4778) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4779) # All OSF/1 code is PIC.
868b2b66 (kx 2024-12-20 16:11:07 +0300 4780) _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4781) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4782)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4783) rdos*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4784) _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4785) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4786)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4787) solaris*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4788) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4789) _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4790) case $cc_basename in
868b2b66 (kx 2024-12-20 16:11:07 +0300 4791) f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4792) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4793) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4794) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4795) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 4796) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4797)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4798) sunos4*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4799) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
868b2b66 (kx 2024-12-20 16:11:07 +0300 4800) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4801) _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4802) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4803)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4804) sysv4 | sysv4.2uw2* | sysv4.3*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4805) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4806) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4807) _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4808) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4809)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4810) sysv4*MP*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4811) if test -d /usr/nec; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 4812) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4813) _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4814) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 4815) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4816)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4817) sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4818) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4819) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4820) _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4821) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4822)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4823) unicos*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4824) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4825) _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 4826) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4827)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4828) uts4*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4829) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4830) _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4831) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4832)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4833) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4834) _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 4835) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4836) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 4837) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 4838) ])
868b2b66 (kx 2024-12-20 16:11:07 +0300 4839) case $host_os in
868b2b66 (kx 2024-12-20 16:11:07 +0300 4840) # For platforms that do not support PIC, -DPIC is meaningless:
868b2b66 (kx 2024-12-20 16:11:07 +0300 4841) *djgpp*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4842) _LT_TAGVAR(lt_prog_compiler_pic, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 4843) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4844) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4845) _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC -DSHARED],[m4_if([$1],[CXX],[ -DPIC -DSHARED],[])])"
868b2b66 (kx 2024-12-20 16:11:07 +0300 4846) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4847) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 4848)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4849) AC_CACHE_CHECK([for $compiler option to produce PIC],
868b2b66 (kx 2024-12-20 16:11:07 +0300 4850) [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
868b2b66 (kx 2024-12-20 16:11:07 +0300 4851) [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
868b2b66 (kx 2024-12-20 16:11:07 +0300 4852) _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4853)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4854) #
868b2b66 (kx 2024-12-20 16:11:07 +0300 4855) # Check to make sure the PIC flag actually works.
868b2b66 (kx 2024-12-20 16:11:07 +0300 4856) #
868b2b66 (kx 2024-12-20 16:11:07 +0300 4857) if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 4858) _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
868b2b66 (kx 2024-12-20 16:11:07 +0300 4859) [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
868b2b66 (kx 2024-12-20 16:11:07 +0300 4860) [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC -DSHARED],[m4_if([$1],[CXX],[ -DPIC -DSHARED],[])])], [],
868b2b66 (kx 2024-12-20 16:11:07 +0300 4861) [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
868b2b66 (kx 2024-12-20 16:11:07 +0300 4862) "" | " "*) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4863) *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4864) esac],
868b2b66 (kx 2024-12-20 16:11:07 +0300 4865) [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 4866) _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
868b2b66 (kx 2024-12-20 16:11:07 +0300 4867) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 4868) _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
868b2b66 (kx 2024-12-20 16:11:07 +0300 4869) [Additional compiler flags for building library objects])
868b2b66 (kx 2024-12-20 16:11:07 +0300 4870)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4871) _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
868b2b66 (kx 2024-12-20 16:11:07 +0300 4872) [How to pass a linker flag through the compiler])
868b2b66 (kx 2024-12-20 16:11:07 +0300 4873) #
868b2b66 (kx 2024-12-20 16:11:07 +0300 4874) # Check to make sure the static flag actually works.
868b2b66 (kx 2024-12-20 16:11:07 +0300 4875) #
868b2b66 (kx 2024-12-20 16:11:07 +0300 4876) wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
868b2b66 (kx 2024-12-20 16:11:07 +0300 4877) _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
868b2b66 (kx 2024-12-20 16:11:07 +0300 4878) _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
868b2b66 (kx 2024-12-20 16:11:07 +0300 4879) $lt_tmp_static_flag,
868b2b66 (kx 2024-12-20 16:11:07 +0300 4880) [],
868b2b66 (kx 2024-12-20 16:11:07 +0300 4881) [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
868b2b66 (kx 2024-12-20 16:11:07 +0300 4882) _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
868b2b66 (kx 2024-12-20 16:11:07 +0300 4883) [Compiler flag to prevent dynamic linking])
868b2b66 (kx 2024-12-20 16:11:07 +0300 4884) ])# _LT_COMPILER_PIC
868b2b66 (kx 2024-12-20 16:11:07 +0300 4885)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4886)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4887) # _LT_LINKER_SHLIBS([TAGNAME])
868b2b66 (kx 2024-12-20 16:11:07 +0300 4888) # ----------------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 4889) # See if the linker supports building shared libraries.
868b2b66 (kx 2024-12-20 16:11:07 +0300 4890) m4_defun([_LT_LINKER_SHLIBS],
868b2b66 (kx 2024-12-20 16:11:07 +0300 4891) [AC_REQUIRE([LT_PATH_LD])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 4892) AC_REQUIRE([LT_PATH_NM])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 4893) m4_require([_LT_PATH_MANIFEST_TOOL])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 4894) m4_require([_LT_FILEUTILS_DEFAULTS])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 4895) m4_require([_LT_DECL_EGREP])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 4896) m4_require([_LT_DECL_SED])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 4897) m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 4898) m4_require([_LT_TAG_COMPILER])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 4899) AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
868b2b66 (kx 2024-12-20 16:11:07 +0300 4900) m4_if([$1], [CXX], [
868b2b66 (kx 2024-12-20 16:11:07 +0300 4901) _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4902) _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
868b2b66 (kx 2024-12-20 16:11:07 +0300 4903) case $host_os in
868b2b66 (kx 2024-12-20 16:11:07 +0300 4904) aix[[4-9]]*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4905) # If we're using GNU nm, then we don't want the "-C" option.
868b2b66 (kx 2024-12-20 16:11:07 +0300 4906) # -C means demangle to GNU nm, but means don't demangle to AIX nm.
868b2b66 (kx 2024-12-20 16:11:07 +0300 4907) # Without the "-l" option, or with the "-B" option, AIX nm treats
868b2b66 (kx 2024-12-20 16:11:07 +0300 4908) # weak defined symbols like other global defined symbols, whereas
868b2b66 (kx 2024-12-20 16:11:07 +0300 4909) # GNU nm marks them as "W".
868b2b66 (kx 2024-12-20 16:11:07 +0300 4910) # While the 'weak' keyword is ignored in the Export File, we need
868b2b66 (kx 2024-12-20 16:11:07 +0300 4911) # it in the Import File for the 'aix-soname' feature, so we have
868b2b66 (kx 2024-12-20 16:11:07 +0300 4912) # to replace the "-B" option with "-P" for AIX nm.
868b2b66 (kx 2024-12-20 16:11:07 +0300 4913) if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 4914) _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4915) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 4916) _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4917) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 4918) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4919) pw32*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4920) _LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds
868b2b66 (kx 2024-12-20 16:11:07 +0300 4921) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4922) cygwin* | mingw* | cegcc*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4923) case $cc_basename in
868b2b66 (kx 2024-12-20 16:11:07 +0300 4924) cl*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4925) _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4926) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4927) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4928) _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4929) _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
868b2b66 (kx 2024-12-20 16:11:07 +0300 4930) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4931) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 4932) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4933) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4934) _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4935) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4936) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 4937) ], [
868b2b66 (kx 2024-12-20 16:11:07 +0300 4938) runpath_var=
868b2b66 (kx 2024-12-20 16:11:07 +0300 4939) _LT_TAGVAR(allow_undefined_flag, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 4940) _LT_TAGVAR(always_export_symbols, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 4941) _LT_TAGVAR(archive_cmds, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 4942) _LT_TAGVAR(archive_expsym_cmds, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 4943) _LT_TAGVAR(compiler_needs_object, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 4944) _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 4945) _LT_TAGVAR(export_dynamic_flag_spec, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 4946) _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
868b2b66 (kx 2024-12-20 16:11:07 +0300 4947) _LT_TAGVAR(hardcode_automatic, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 4948) _LT_TAGVAR(hardcode_direct, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 4949) _LT_TAGVAR(hardcode_direct_absolute, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 4950) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 4951) _LT_TAGVAR(hardcode_libdir_separator, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 4952) _LT_TAGVAR(hardcode_minus_L, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 4953) _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
868b2b66 (kx 2024-12-20 16:11:07 +0300 4954) _LT_TAGVAR(inherit_rpath, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 4955) _LT_TAGVAR(link_all_deplibs, $1)=unknown
868b2b66 (kx 2024-12-20 16:11:07 +0300 4956) _LT_TAGVAR(module_cmds, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 4957) _LT_TAGVAR(module_expsym_cmds, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 4958) _LT_TAGVAR(old_archive_from_new_cmds, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 4959) _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 4960) _LT_TAGVAR(thread_safe_flag_spec, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 4961) _LT_TAGVAR(whole_archive_flag_spec, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 4962) # include_expsyms should be a list of space-separated symbols to be *always*
868b2b66 (kx 2024-12-20 16:11:07 +0300 4963) # included in the symbol list
868b2b66 (kx 2024-12-20 16:11:07 +0300 4964) _LT_TAGVAR(include_expsyms, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 4965) # exclude_expsyms can be an extended regexp of symbols to exclude
868b2b66 (kx 2024-12-20 16:11:07 +0300 4966) # it will be wrapped by ' (' and ')$', so one must not match beginning or
868b2b66 (kx 2024-12-20 16:11:07 +0300 4967) # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
868b2b66 (kx 2024-12-20 16:11:07 +0300 4968) # as well as any symbol that contains 'd'.
868b2b66 (kx 2024-12-20 16:11:07 +0300 4969) _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
868b2b66 (kx 2024-12-20 16:11:07 +0300 4970) # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
868b2b66 (kx 2024-12-20 16:11:07 +0300 4971) # platforms (ab)use it in PIC code, but their linkers get confused if
868b2b66 (kx 2024-12-20 16:11:07 +0300 4972) # the symbol is explicitly referenced. Since portable code cannot
868b2b66 (kx 2024-12-20 16:11:07 +0300 4973) # rely on this symbol name, it's probably fine to never include it in
868b2b66 (kx 2024-12-20 16:11:07 +0300 4974) # preloaded symbol tables.
868b2b66 (kx 2024-12-20 16:11:07 +0300 4975) # Exclude shared library initialization/finalization symbols.
868b2b66 (kx 2024-12-20 16:11:07 +0300 4976) dnl Note also adjust exclude_expsyms for C++ above.
868b2b66 (kx 2024-12-20 16:11:07 +0300 4977) extract_expsyms_cmds=
868b2b66 (kx 2024-12-20 16:11:07 +0300 4978)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4979) case $host_os in
868b2b66 (kx 2024-12-20 16:11:07 +0300 4980) cygwin* | mingw* | pw32* | cegcc*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4981) # FIXME: the MSVC++ port hasn't been tested in a loooong time
868b2b66 (kx 2024-12-20 16:11:07 +0300 4982) # When not using gcc, we currently assume that we are using
868b2b66 (kx 2024-12-20 16:11:07 +0300 4983) # Microsoft Visual C++.
868b2b66 (kx 2024-12-20 16:11:07 +0300 4984) if test yes != "$GCC"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 4985) with_gnu_ld=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 4986) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 4987) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4988) interix*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4989) # we just hope/assume this is gcc and not c89 (= MSVC++)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4990) with_gnu_ld=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 4991) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4992) openbsd* | bitrig*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4993) with_gnu_ld=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 4994) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 4995) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 4996)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4997) _LT_TAGVAR(ld_shlibs, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 4998)
868b2b66 (kx 2024-12-20 16:11:07 +0300 4999) # On some targets, GNU ld is compatible enough with the native linker
868b2b66 (kx 2024-12-20 16:11:07 +0300 5000) # that we're better off using the native interface for both.
868b2b66 (kx 2024-12-20 16:11:07 +0300 5001) lt_use_gnu_ld_interface=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 5002) if test yes = "$with_gnu_ld"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 5003) case $host_os in
868b2b66 (kx 2024-12-20 16:11:07 +0300 5004) aix*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5005) # The AIX port of GNU ld has always aspired to compatibility
868b2b66 (kx 2024-12-20 16:11:07 +0300 5006) # with the native linker. However, as the warning in the GNU ld
868b2b66 (kx 2024-12-20 16:11:07 +0300 5007) # block says, versions before 2.19.5* couldn't really create working
868b2b66 (kx 2024-12-20 16:11:07 +0300 5008) # shared libraries, regardless of the interface used.
868b2b66 (kx 2024-12-20 16:11:07 +0300 5009) case `$LD -v 2>&1` in
868b2b66 (kx 2024-12-20 16:11:07 +0300 5010) *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5011) *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5012) *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5013) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5014) lt_use_gnu_ld_interface=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 5015) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5016) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 5017) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5018) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5019) lt_use_gnu_ld_interface=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 5020) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5021) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 5022) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 5023)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5024) if test yes = "$lt_use_gnu_ld_interface"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 5025) # If archive_cmds runs LD, not CC, wlarc should be empty
868b2b66 (kx 2024-12-20 16:11:07 +0300 5026) wlarc='$wl'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5027)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5028) # Set some defaults for GNU ld with shared library support. These
868b2b66 (kx 2024-12-20 16:11:07 +0300 5029) # are reset later if shared libraries are not supported. Putting them
868b2b66 (kx 2024-12-20 16:11:07 +0300 5030) # here allows them to be overridden if necessary.
868b2b66 (kx 2024-12-20 16:11:07 +0300 5031) runpath_var=LD_RUN_PATH
868b2b66 (kx 2024-12-20 16:11:07 +0300 5032) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5033) _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5034) # ancient GNU ld didn't support --whole-archive et. al.
868b2b66 (kx 2024-12-20 16:11:07 +0300 5035) if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 5036) _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5037) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 5038) _LT_TAGVAR(whole_archive_flag_spec, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 5039) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 5040) supports_anon_versioning=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 5041) case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
868b2b66 (kx 2024-12-20 16:11:07 +0300 5042) *GNU\ gold*) supports_anon_versioning=yes ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5043) *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
868b2b66 (kx 2024-12-20 16:11:07 +0300 5044) *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
868b2b66 (kx 2024-12-20 16:11:07 +0300 5045) *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
868b2b66 (kx 2024-12-20 16:11:07 +0300 5046) *\ 2.11.*) ;; # other 2.11 versions
868b2b66 (kx 2024-12-20 16:11:07 +0300 5047) *) supports_anon_versioning=yes ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5048) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 5049)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5050) # See if GNU ld supports shared libraries.
868b2b66 (kx 2024-12-20 16:11:07 +0300 5051) case $host_os in
868b2b66 (kx 2024-12-20 16:11:07 +0300 5052) aix[[3-9]]*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5053) # On AIX/PPC, the GNU linker is very broken
868b2b66 (kx 2024-12-20 16:11:07 +0300 5054) if test ia64 != "$host_cpu"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 5055) _LT_TAGVAR(ld_shlibs, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 5056) cat <<_LT_EOF 1>&2
868b2b66 (kx 2024-12-20 16:11:07 +0300 5057)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5058) *** Warning: the GNU linker, at least up to release 2.19, is reported
868b2b66 (kx 2024-12-20 16:11:07 +0300 5059) *** to be unable to reliably create shared libraries on AIX.
868b2b66 (kx 2024-12-20 16:11:07 +0300 5060) *** Therefore, libtool is disabling shared libraries support. If you
868b2b66 (kx 2024-12-20 16:11:07 +0300 5061) *** really care for shared libraries, you may want to install binutils
868b2b66 (kx 2024-12-20 16:11:07 +0300 5062) *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
868b2b66 (kx 2024-12-20 16:11:07 +0300 5063) *** You will then need to restart the configuration process.
868b2b66 (kx 2024-12-20 16:11:07 +0300 5064)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5065) _LT_EOF
868b2b66 (kx 2024-12-20 16:11:07 +0300 5066) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 5067) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5068)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5069) amigaos*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5070) case $host_cpu in
868b2b66 (kx 2024-12-20 16:11:07 +0300 5071) powerpc)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5072) # see comment about AmigaOS4 .so support
868b2b66 (kx 2024-12-20 16:11:07 +0300 5073) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5074) _LT_TAGVAR(archive_expsym_cmds, $1)=''
868b2b66 (kx 2024-12-20 16:11:07 +0300 5075) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5076) m68k)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5077) _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5078) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5079) _LT_TAGVAR(hardcode_minus_L, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 5080) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5081) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 5082) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5083)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5084) beos*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5085) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 5086) _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
868b2b66 (kx 2024-12-20 16:11:07 +0300 5087) # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
868b2b66 (kx 2024-12-20 16:11:07 +0300 5088) # support --undefined. This deserves some investigation. FIXME
868b2b66 (kx 2024-12-20 16:11:07 +0300 5089) _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5090) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 5091) _LT_TAGVAR(ld_shlibs, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 5092) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 5093) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5094)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5095) cygwin* | mingw* | pw32* | cegcc*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5096) # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
868b2b66 (kx 2024-12-20 16:11:07 +0300 5097) # as there is no search path for DLLs.
868b2b66 (kx 2024-12-20 16:11:07 +0300 5098) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5099) _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5100) _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
868b2b66 (kx 2024-12-20 16:11:07 +0300 5101) _LT_TAGVAR(always_export_symbols, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 5102) _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 5103) _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5104) _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
868b2b66 (kx 2024-12-20 16:11:07 +0300 5105)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5106) if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 5107) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5108) # If the export-symbols file already is a .def file, use it as
868b2b66 (kx 2024-12-20 16:11:07 +0300 5109) # is; otherwise, prepend EXPORTS...
868b2b66 (kx 2024-12-20 16:11:07 +0300 5110) _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
868b2b66 (kx 2024-12-20 16:11:07 +0300 5111) cp $export_symbols $output_objdir/$soname.def;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5112) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 5113) echo EXPORTS > $output_objdir/$soname.def;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5114) cat $export_symbols >> $output_objdir/$soname.def;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5115) fi~
868b2b66 (kx 2024-12-20 16:11:07 +0300 5116) $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5117) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 5118) _LT_TAGVAR(ld_shlibs, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 5119) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 5120) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5121)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5122) haiku*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5123) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5124) _LT_TAGVAR(link_all_deplibs, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 5125) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5126)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5127) os2*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5128) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5129) _LT_TAGVAR(hardcode_minus_L, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 5130) _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
868b2b66 (kx 2024-12-20 16:11:07 +0300 5131) shrext_cmds=.dll
868b2b66 (kx 2024-12-20 16:11:07 +0300 5132) _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
868b2b66 (kx 2024-12-20 16:11:07 +0300 5133) $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
868b2b66 (kx 2024-12-20 16:11:07 +0300 5134) $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
868b2b66 (kx 2024-12-20 16:11:07 +0300 5135) $ECHO EXPORTS >> $output_objdir/$libname.def~
868b2b66 (kx 2024-12-20 16:11:07 +0300 5136) emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
868b2b66 (kx 2024-12-20 16:11:07 +0300 5137) $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
868b2b66 (kx 2024-12-20 16:11:07 +0300 5138) emximp -o $lib $output_objdir/$libname.def'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5139) _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
868b2b66 (kx 2024-12-20 16:11:07 +0300 5140) $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
868b2b66 (kx 2024-12-20 16:11:07 +0300 5141) $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
868b2b66 (kx 2024-12-20 16:11:07 +0300 5142) $ECHO EXPORTS >> $output_objdir/$libname.def~
868b2b66 (kx 2024-12-20 16:11:07 +0300 5143) prefix_cmds="$SED"~
868b2b66 (kx 2024-12-20 16:11:07 +0300 5144) if test EXPORTS = "`$SED 1q $export_symbols`"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 5145) prefix_cmds="$prefix_cmds -e 1d";
868b2b66 (kx 2024-12-20 16:11:07 +0300 5146) fi~
868b2b66 (kx 2024-12-20 16:11:07 +0300 5147) prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
868b2b66 (kx 2024-12-20 16:11:07 +0300 5148) cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
868b2b66 (kx 2024-12-20 16:11:07 +0300 5149) $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
868b2b66 (kx 2024-12-20 16:11:07 +0300 5150) emximp -o $lib $output_objdir/$libname.def'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5151) _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5152) _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 5153) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5154)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5155) interix[[3-9]]*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5156) _LT_TAGVAR(hardcode_direct, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 5157) _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 5158) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5159) _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5160) # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
868b2b66 (kx 2024-12-20 16:11:07 +0300 5161) # Instead, shared libraries are loaded at an image base (0x10000000 by
868b2b66 (kx 2024-12-20 16:11:07 +0300 5162) # default) and relocated if they conflict, which is a slow very memory
868b2b66 (kx 2024-12-20 16:11:07 +0300 5163) # consuming and fragmenting process. To avoid this, we pick a random,
868b2b66 (kx 2024-12-20 16:11:07 +0300 5164) # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
868b2b66 (kx 2024-12-20 16:11:07 +0300 5165) # time. Moving up from 0x10000000 also allows more sbrk(2) space.
868b2b66 (kx 2024-12-20 16:11:07 +0300 5166) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5167) _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5168) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5169)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5170) gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5171) tmp_diet=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 5172) if test linux-dietlibc = "$host_os"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 5173) case $cc_basename in
868b2b66 (kx 2024-12-20 16:11:07 +0300 5174) diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5175) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 5176) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 5177) if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
868b2b66 (kx 2024-12-20 16:11:07 +0300 5178) && test no = "$tmp_diet"
868b2b66 (kx 2024-12-20 16:11:07 +0300 5179) then
868b2b66 (kx 2024-12-20 16:11:07 +0300 5180) tmp_addflag=' $pic_flag'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5181) tmp_sharedflag='-shared'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5182) case $cc_basename,$host_cpu in
868b2b66 (kx 2024-12-20 16:11:07 +0300 5183) pgcc*) # Portland Group C compiler
868b2b66 (kx 2024-12-20 16:11:07 +0300 5184) _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5185) tmp_addflag=' $pic_flag'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5186) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5187) pgf77* | pgf90* | pgf95* | pgfortran*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5188) # Portland Group f77 and f90 compilers
868b2b66 (kx 2024-12-20 16:11:07 +0300 5189) _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5190) tmp_addflag=' $pic_flag -Mnomain' ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5191) ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
868b2b66 (kx 2024-12-20 16:11:07 +0300 5192) tmp_addflag=' -i_dynamic' ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5193) efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
868b2b66 (kx 2024-12-20 16:11:07 +0300 5194) tmp_addflag=' -i_dynamic -nofor_main' ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5195) ifc* | ifort*) # Intel Fortran compiler
868b2b66 (kx 2024-12-20 16:11:07 +0300 5196) tmp_addflag=' -nofor_main' ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5197) lf95*) # Lahey Fortran 8.1
868b2b66 (kx 2024-12-20 16:11:07 +0300 5198) _LT_TAGVAR(whole_archive_flag_spec, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 5199) tmp_sharedflag='--shared' ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5200) nagfor*) # NAGFOR 5.3
868b2b66 (kx 2024-12-20 16:11:07 +0300 5201) tmp_sharedflag='-Wl,-shared' ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5202) xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5203) tmp_sharedflag='-qmkshrobj'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5204) tmp_addflag= ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5205) nvcc*) # Cuda Compiler Driver 2.2
868b2b66 (kx 2024-12-20 16:11:07 +0300 5206) _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5207) _LT_TAGVAR(compiler_needs_object, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 5208) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5209) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 5210) case `$CC -V 2>&1 | sed 5q` in
868b2b66 (kx 2024-12-20 16:11:07 +0300 5211) *Sun\ C*) # Sun C 5.9
868b2b66 (kx 2024-12-20 16:11:07 +0300 5212) _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5213) _LT_TAGVAR(compiler_needs_object, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 5214) tmp_sharedflag='-G' ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5215) *Sun\ F*) # Sun Fortran 8.3
868b2b66 (kx 2024-12-20 16:11:07 +0300 5216) tmp_sharedflag='-G' ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5217) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 5218) _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5219)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5220) if test yes = "$supports_anon_versioning"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 5221) _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
868b2b66 (kx 2024-12-20 16:11:07 +0300 5222) cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
868b2b66 (kx 2024-12-20 16:11:07 +0300 5223) echo "local: *; };" >> $output_objdir/$libname.ver~
868b2b66 (kx 2024-12-20 16:11:07 +0300 5224) $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5225) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 5226)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5227) case $cc_basename in
868b2b66 (kx 2024-12-20 16:11:07 +0300 5228) tcc*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5229) _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5230) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5231) xlf* | bgf* | bgxlf* | mpixlf*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5232) # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
868b2b66 (kx 2024-12-20 16:11:07 +0300 5233) _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5234) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5235) _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5236) if test yes = "$supports_anon_versioning"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 5237) _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
868b2b66 (kx 2024-12-20 16:11:07 +0300 5238) cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
868b2b66 (kx 2024-12-20 16:11:07 +0300 5239) echo "local: *; };" >> $output_objdir/$libname.ver~
868b2b66 (kx 2024-12-20 16:11:07 +0300 5240) $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5241) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 5242) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5243) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 5244) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 5245) _LT_TAGVAR(ld_shlibs, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 5246) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 5247) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5248)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5249) netbsd*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5250) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 5251) _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5252) wlarc=
868b2b66 (kx 2024-12-20 16:11:07 +0300 5253) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 5254) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5255) _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5256) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 5257) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5258)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5259) solaris*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5260) if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 5261) _LT_TAGVAR(ld_shlibs, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 5262) cat <<_LT_EOF 1>&2
868b2b66 (kx 2024-12-20 16:11:07 +0300 5263)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5264) *** Warning: The releases 2.8.* of the GNU linker cannot reliably
868b2b66 (kx 2024-12-20 16:11:07 +0300 5265) *** create shared libraries on Solaris systems. Therefore, libtool
868b2b66 (kx 2024-12-20 16:11:07 +0300 5266) *** is disabling shared libraries support. We urge you to upgrade GNU
868b2b66 (kx 2024-12-20 16:11:07 +0300 5267) *** binutils to release 2.9.1 or newer. Another option is to modify
868b2b66 (kx 2024-12-20 16:11:07 +0300 5268) *** your PATH or compiler configuration so that the native linker is
868b2b66 (kx 2024-12-20 16:11:07 +0300 5269) *** used, and then restart.
868b2b66 (kx 2024-12-20 16:11:07 +0300 5270)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5271) _LT_EOF
868b2b66 (kx 2024-12-20 16:11:07 +0300 5272) elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 5273) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5274) _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5275) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 5276) _LT_TAGVAR(ld_shlibs, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 5277) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 5278) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5279)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5280) sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5281) case `$LD -v 2>&1` in
868b2b66 (kx 2024-12-20 16:11:07 +0300 5282) *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5283) _LT_TAGVAR(ld_shlibs, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 5284) cat <<_LT_EOF 1>&2
868b2b66 (kx 2024-12-20 16:11:07 +0300 5285)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5286) *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
868b2b66 (kx 2024-12-20 16:11:07 +0300 5287) *** reliably create shared libraries on SCO systems. Therefore, libtool
868b2b66 (kx 2024-12-20 16:11:07 +0300 5288) *** is disabling shared libraries support. We urge you to upgrade GNU
868b2b66 (kx 2024-12-20 16:11:07 +0300 5289) *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
868b2b66 (kx 2024-12-20 16:11:07 +0300 5290) *** your PATH or compiler configuration so that the native linker is
868b2b66 (kx 2024-12-20 16:11:07 +0300 5291) *** used, and then restart.
868b2b66 (kx 2024-12-20 16:11:07 +0300 5292)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5293) _LT_EOF
868b2b66 (kx 2024-12-20 16:11:07 +0300 5294) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5295) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5296) # For security reasons, it is highly recommended that you always
868b2b66 (kx 2024-12-20 16:11:07 +0300 5297) # use absolute paths for naming shared libraries, and exclude the
868b2b66 (kx 2024-12-20 16:11:07 +0300 5298) # DT_RUNPATH tag from executables and libraries. But doing so
868b2b66 (kx 2024-12-20 16:11:07 +0300 5299) # requires that you compile everything twice, which is a pain.
868b2b66 (kx 2024-12-20 16:11:07 +0300 5300) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 5301) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5302) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5303) _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5304) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 5305) _LT_TAGVAR(ld_shlibs, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 5306) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 5307) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5308) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 5309) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5310)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5311) sunos4*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5312) _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5313) wlarc=
868b2b66 (kx 2024-12-20 16:11:07 +0300 5314) _LT_TAGVAR(hardcode_direct, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 5315) _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 5316) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5317)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5318) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5319) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 5320) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5321) _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5322) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 5323) _LT_TAGVAR(ld_shlibs, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 5324) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 5325) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5326) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 5327)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5328) if test no = "$_LT_TAGVAR(ld_shlibs, $1)"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 5329) runpath_var=
868b2b66 (kx 2024-12-20 16:11:07 +0300 5330) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 5331) _LT_TAGVAR(export_dynamic_flag_spec, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 5332) _LT_TAGVAR(whole_archive_flag_spec, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 5333) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 5334) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 5335) # PORTME fill in a description of your system's linker (not GNU ld)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5336) case $host_os in
868b2b66 (kx 2024-12-20 16:11:07 +0300 5337) aix3*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5338) _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
868b2b66 (kx 2024-12-20 16:11:07 +0300 5339) _LT_TAGVAR(always_export_symbols, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 5340) _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5341) # Note: this linker hardcodes the directories in LIBPATH if there
868b2b66 (kx 2024-12-20 16:11:07 +0300 5342) # are no directories specified by -L.
868b2b66 (kx 2024-12-20 16:11:07 +0300 5343) _LT_TAGVAR(hardcode_minus_L, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 5344) if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 5345) # Neither direct hardcoding nor static linking is supported with a
868b2b66 (kx 2024-12-20 16:11:07 +0300 5346) # broken collect2.
868b2b66 (kx 2024-12-20 16:11:07 +0300 5347) _LT_TAGVAR(hardcode_direct, $1)=unsupported
868b2b66 (kx 2024-12-20 16:11:07 +0300 5348) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 5349) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5350)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5351) aix[[4-9]]*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5352) if test ia64 = "$host_cpu"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 5353) # On IA64, the linker does run time linking by default, so we don't
868b2b66 (kx 2024-12-20 16:11:07 +0300 5354) # have to do anything special.
868b2b66 (kx 2024-12-20 16:11:07 +0300 5355) aix_use_runtimelinking=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 5356) exp_sym_flag='-Bexport'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5357) no_entry_flag=
868b2b66 (kx 2024-12-20 16:11:07 +0300 5358) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 5359) # If we're using GNU nm, then we don't want the "-C" option.
868b2b66 (kx 2024-12-20 16:11:07 +0300 5360) # -C means demangle to GNU nm, but means don't demangle to AIX nm.
868b2b66 (kx 2024-12-20 16:11:07 +0300 5361) # Without the "-l" option, or with the "-B" option, AIX nm treats
868b2b66 (kx 2024-12-20 16:11:07 +0300 5362) # weak defined symbols like other global defined symbols, whereas
868b2b66 (kx 2024-12-20 16:11:07 +0300 5363) # GNU nm marks them as "W".
868b2b66 (kx 2024-12-20 16:11:07 +0300 5364) # While the 'weak' keyword is ignored in the Export File, we need
868b2b66 (kx 2024-12-20 16:11:07 +0300 5365) # it in the Import File for the 'aix-soname' feature, so we have
868b2b66 (kx 2024-12-20 16:11:07 +0300 5366) # to replace the "-B" option with "-P" for AIX nm.
868b2b66 (kx 2024-12-20 16:11:07 +0300 5367) if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 5368) _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5369) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 5370) _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5371) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 5372) aix_use_runtimelinking=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 5373)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5374) # Test if we are trying to use run time linking or normal
868b2b66 (kx 2024-12-20 16:11:07 +0300 5375) # AIX style linking. If -brtl is somewhere in LDFLAGS, we
868b2b66 (kx 2024-12-20 16:11:07 +0300 5376) # have runtime linking enabled, and use it for executables.
868b2b66 (kx 2024-12-20 16:11:07 +0300 5377) # For shared libraries, we enable/disable runtime linking
868b2b66 (kx 2024-12-20 16:11:07 +0300 5378) # depending on the kind of the shared library created -
868b2b66 (kx 2024-12-20 16:11:07 +0300 5379) # when "with_aix_soname,aix_use_runtimelinking" is:
868b2b66 (kx 2024-12-20 16:11:07 +0300 5380) # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
868b2b66 (kx 2024-12-20 16:11:07 +0300 5381) # "aix,yes" lib.so shared, rtl:yes, for executables
868b2b66 (kx 2024-12-20 16:11:07 +0300 5382) # lib.a static archive
868b2b66 (kx 2024-12-20 16:11:07 +0300 5383) # "both,no" lib.so.V(shr.o) shared, rtl:yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 5384) # lib.a(lib.so.V) shared, rtl:no, for executables
868b2b66 (kx 2024-12-20 16:11:07 +0300 5385) # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
868b2b66 (kx 2024-12-20 16:11:07 +0300 5386) # lib.a(lib.so.V) shared, rtl:no
868b2b66 (kx 2024-12-20 16:11:07 +0300 5387) # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
868b2b66 (kx 2024-12-20 16:11:07 +0300 5388) # lib.a static archive
868b2b66 (kx 2024-12-20 16:11:07 +0300 5389) case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5390) for ld_flag in $LDFLAGS; do
868b2b66 (kx 2024-12-20 16:11:07 +0300 5391) if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
868b2b66 (kx 2024-12-20 16:11:07 +0300 5392) aix_use_runtimelinking=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 5393) break
868b2b66 (kx 2024-12-20 16:11:07 +0300 5394) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 5395) done
868b2b66 (kx 2024-12-20 16:11:07 +0300 5396) if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 5397) # With aix-soname=svr4, we create the lib.so.V shared archives only,
868b2b66 (kx 2024-12-20 16:11:07 +0300 5398) # so we don't have lib.a shared libs to link our executables.
868b2b66 (kx 2024-12-20 16:11:07 +0300 5399) # We have to force runtime linking in this case.
868b2b66 (kx 2024-12-20 16:11:07 +0300 5400) aix_use_runtimelinking=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 5401) LDFLAGS="$LDFLAGS -Wl,-brtl"
868b2b66 (kx 2024-12-20 16:11:07 +0300 5402) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 5403) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5404) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 5405)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5406) exp_sym_flag='-bexport'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5407) no_entry_flag='-bnoentry'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5408) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 5409)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5410) # When large executables or shared objects are built, AIX ld can
868b2b66 (kx 2024-12-20 16:11:07 +0300 5411) # have problems creating the table of contents. If linking a library
868b2b66 (kx 2024-12-20 16:11:07 +0300 5412) # or program results in "error TOC overflow" add -mminimal-toc to
868b2b66 (kx 2024-12-20 16:11:07 +0300 5413) # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
868b2b66 (kx 2024-12-20 16:11:07 +0300 5414) # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
868b2b66 (kx 2024-12-20 16:11:07 +0300 5415)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5416) _LT_TAGVAR(archive_cmds, $1)=''
868b2b66 (kx 2024-12-20 16:11:07 +0300 5417) _LT_TAGVAR(hardcode_direct, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 5418) _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 5419) _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5420) _LT_TAGVAR(link_all_deplibs, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 5421) _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5422) case $with_aix_soname,$aix_use_runtimelinking in
868b2b66 (kx 2024-12-20 16:11:07 +0300 5423) aix,*) ;; # traditional, no import file
868b2b66 (kx 2024-12-20 16:11:07 +0300 5424) svr4,* | *,yes) # use import file
868b2b66 (kx 2024-12-20 16:11:07 +0300 5425) # The Import File defines what to hardcode.
868b2b66 (kx 2024-12-20 16:11:07 +0300 5426) _LT_TAGVAR(hardcode_direct, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 5427) _LT_TAGVAR(hardcode_direct_absolute, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 5428) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5429) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 5430)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5431) if test yes = "$GCC"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 5432) case $host_os in aix4.[[012]]|aix4.[[012]].*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5433) # We only want to do this on AIX 4.2 and lower, the check
868b2b66 (kx 2024-12-20 16:11:07 +0300 5434) # below for broken collect2 doesn't work under 4.3+
868b2b66 (kx 2024-12-20 16:11:07 +0300 5435) collect2name=`$CC -print-prog-name=collect2`
868b2b66 (kx 2024-12-20 16:11:07 +0300 5436) if test -f "$collect2name" &&
868b2b66 (kx 2024-12-20 16:11:07 +0300 5437) strings "$collect2name" | $GREP resolve_lib_name >/dev/null
868b2b66 (kx 2024-12-20 16:11:07 +0300 5438) then
868b2b66 (kx 2024-12-20 16:11:07 +0300 5439) # We have reworked collect2
868b2b66 (kx 2024-12-20 16:11:07 +0300 5440) :
868b2b66 (kx 2024-12-20 16:11:07 +0300 5441) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 5442) # We have old collect2
868b2b66 (kx 2024-12-20 16:11:07 +0300 5443) _LT_TAGVAR(hardcode_direct, $1)=unsupported
868b2b66 (kx 2024-12-20 16:11:07 +0300 5444) # It fails to find uninstalled libraries when the uninstalled
868b2b66 (kx 2024-12-20 16:11:07 +0300 5445) # path is not listed in the libpath. Setting hardcode_minus_L
868b2b66 (kx 2024-12-20 16:11:07 +0300 5446) # to unsupported forces relinking
868b2b66 (kx 2024-12-20 16:11:07 +0300 5447) _LT_TAGVAR(hardcode_minus_L, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 5448) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5449) _LT_TAGVAR(hardcode_libdir_separator, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 5450) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 5451) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5452) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 5453) shared_flag='-shared'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5454) if test yes = "$aix_use_runtimelinking"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 5455) shared_flag="$shared_flag "'$wl-G'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5456) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 5457) # Need to ensure runtime linking is disabled for the traditional
868b2b66 (kx 2024-12-20 16:11:07 +0300 5458) # shared library, or the linker may eventually find shared libraries
868b2b66 (kx 2024-12-20 16:11:07 +0300 5459) # /with/ Import File - we do not want to mix them.
868b2b66 (kx 2024-12-20 16:11:07 +0300 5460) shared_flag_aix='-shared'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5461) shared_flag_svr4='-shared $wl-G'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5462) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 5463) # not using gcc
868b2b66 (kx 2024-12-20 16:11:07 +0300 5464) if test ia64 = "$host_cpu"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 5465) # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
868b2b66 (kx 2024-12-20 16:11:07 +0300 5466) # chokes on -Wl,-G. The following line is correct:
868b2b66 (kx 2024-12-20 16:11:07 +0300 5467) shared_flag='-G'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5468) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 5469) if test yes = "$aix_use_runtimelinking"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 5470) shared_flag='$wl-G'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5471) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 5472) shared_flag='$wl-bM:SRE'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5473) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 5474) shared_flag_aix='$wl-bM:SRE'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5475) shared_flag_svr4='$wl-G'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5476) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 5477) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 5478)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5479) _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5480) # It seems that -bexpall does not export symbols beginning with
868b2b66 (kx 2024-12-20 16:11:07 +0300 5481) # underscore (_), so it is better to generate a list of symbols to export.
868b2b66 (kx 2024-12-20 16:11:07 +0300 5482) _LT_TAGVAR(always_export_symbols, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 5483) if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 5484) # Warning - without using the other runtime loading flags (-brtl),
868b2b66 (kx 2024-12-20 16:11:07 +0300 5485) # -berok will link without error, but may produce a broken library.
868b2b66 (kx 2024-12-20 16:11:07 +0300 5486) _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5487) # Determine the default libpath from the value encoded in an
868b2b66 (kx 2024-12-20 16:11:07 +0300 5488) # empty executable.
868b2b66 (kx 2024-12-20 16:11:07 +0300 5489) _LT_SYS_MODULE_PATH_AIX([$1])
868b2b66 (kx 2024-12-20 16:11:07 +0300 5490) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
868b2b66 (kx 2024-12-20 16:11:07 +0300 5491) _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
868b2b66 (kx 2024-12-20 16:11:07 +0300 5492) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 5493) if test ia64 = "$host_cpu"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 5494) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5495) _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
868b2b66 (kx 2024-12-20 16:11:07 +0300 5496) _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
868b2b66 (kx 2024-12-20 16:11:07 +0300 5497) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 5498) # Determine the default libpath from the value encoded in an
868b2b66 (kx 2024-12-20 16:11:07 +0300 5499) # empty executable.
868b2b66 (kx 2024-12-20 16:11:07 +0300 5500) _LT_SYS_MODULE_PATH_AIX([$1])
868b2b66 (kx 2024-12-20 16:11:07 +0300 5501) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
868b2b66 (kx 2024-12-20 16:11:07 +0300 5502) # Warning - without using the other run time loading flags,
868b2b66 (kx 2024-12-20 16:11:07 +0300 5503) # -berok will link without error, but may produce a broken library.
868b2b66 (kx 2024-12-20 16:11:07 +0300 5504) _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5505) _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5506) if test yes = "$with_gnu_ld"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 5507) # We only use this code for GNU lds that support --whole-archive.
868b2b66 (kx 2024-12-20 16:11:07 +0300 5508) _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5509) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 5510) # Exported symbols can be pulled into shared objects from archives
868b2b66 (kx 2024-12-20 16:11:07 +0300 5511) _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5512) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 5513) _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 5514) _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5515) # -brtl affects multiple linker settings, -berok does not and is overridden later
868b2b66 (kx 2024-12-20 16:11:07 +0300 5516) compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5517) if test svr4 != "$with_aix_soname"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 5518) # This is similar to how AIX traditionally builds its shared libraries.
868b2b66 (kx 2024-12-20 16:11:07 +0300 5519) _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5520) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 5521) if test aix != "$with_aix_soname"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 5522) _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5523) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 5524) # used by -dlpreopen to get the symbols
868b2b66 (kx 2024-12-20 16:11:07 +0300 5525) _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5526) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 5527) _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5528) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 5529) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 5530) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5531)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5532) amigaos*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5533) case $host_cpu in
868b2b66 (kx 2024-12-20 16:11:07 +0300 5534) powerpc)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5535) # see comment about AmigaOS4 .so support
868b2b66 (kx 2024-12-20 16:11:07 +0300 5536) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5537) _LT_TAGVAR(archive_expsym_cmds, $1)=''
868b2b66 (kx 2024-12-20 16:11:07 +0300 5538) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5539) m68k)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5540) _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5541) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5542) _LT_TAGVAR(hardcode_minus_L, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 5543) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5544) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 5545) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5546)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5547) bsdi[[45]]*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5548) _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
868b2b66 (kx 2024-12-20 16:11:07 +0300 5549) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5550)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5551) cygwin* | mingw* | pw32* | cegcc*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5552) # When not using gcc, we currently assume that we are using
868b2b66 (kx 2024-12-20 16:11:07 +0300 5553) # Microsoft Visual C++.
868b2b66 (kx 2024-12-20 16:11:07 +0300 5554) # hardcode_libdir_flag_spec is actually meaningless, as there is
868b2b66 (kx 2024-12-20 16:11:07 +0300 5555) # no search path for DLLs.
868b2b66 (kx 2024-12-20 16:11:07 +0300 5556) case $cc_basename in
868b2b66 (kx 2024-12-20 16:11:07 +0300 5557) cl*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5558) # Native MSVC
868b2b66 (kx 2024-12-20 16:11:07 +0300 5559) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
868b2b66 (kx 2024-12-20 16:11:07 +0300 5560) _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
868b2b66 (kx 2024-12-20 16:11:07 +0300 5561) _LT_TAGVAR(always_export_symbols, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 5562) _LT_TAGVAR(file_list_spec, $1)='@'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5563) # Tell ltmain to make .lib files, not .a files.
868b2b66 (kx 2024-12-20 16:11:07 +0300 5564) libext=lib
868b2b66 (kx 2024-12-20 16:11:07 +0300 5565) # Tell ltmain to make .dll files, not .so files.
868b2b66 (kx 2024-12-20 16:11:07 +0300 5566) shrext_cmds=.dll
868b2b66 (kx 2024-12-20 16:11:07 +0300 5567) # FIXME: Setting linknames here is a bad hack.
868b2b66 (kx 2024-12-20 16:11:07 +0300 5568) _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
868b2b66 (kx 2024-12-20 16:11:07 +0300 5569) _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
868b2b66 (kx 2024-12-20 16:11:07 +0300 5570) cp "$export_symbols" "$output_objdir/$soname.def";
868b2b66 (kx 2024-12-20 16:11:07 +0300 5571) echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
868b2b66 (kx 2024-12-20 16:11:07 +0300 5572) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 5573) $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5574) fi~
868b2b66 (kx 2024-12-20 16:11:07 +0300 5575) $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
868b2b66 (kx 2024-12-20 16:11:07 +0300 5576) linknames='
868b2b66 (kx 2024-12-20 16:11:07 +0300 5577) # The linker will not automatically build a static lib if we build a DLL.
868b2b66 (kx 2024-12-20 16:11:07 +0300 5578) # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5579) _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 5580) _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5581) _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5582) # Don't use ranlib
868b2b66 (kx 2024-12-20 16:11:07 +0300 5583) _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5584) _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
868b2b66 (kx 2024-12-20 16:11:07 +0300 5585) lt_tool_outputfile="@TOOL_OUTPUT@"~
868b2b66 (kx 2024-12-20 16:11:07 +0300 5586) case $lt_outputfile in
868b2b66 (kx 2024-12-20 16:11:07 +0300 5587) *.exe|*.EXE) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5588) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5589) lt_outputfile=$lt_outputfile.exe
868b2b66 (kx 2024-12-20 16:11:07 +0300 5590) lt_tool_outputfile=$lt_tool_outputfile.exe
868b2b66 (kx 2024-12-20 16:11:07 +0300 5591) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5592) esac~
868b2b66 (kx 2024-12-20 16:11:07 +0300 5593) if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 5594) $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5595) $RM "$lt_outputfile.manifest";
868b2b66 (kx 2024-12-20 16:11:07 +0300 5596) fi'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5597) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5598) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5599) # Assume MSVC wrapper
868b2b66 (kx 2024-12-20 16:11:07 +0300 5600) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
868b2b66 (kx 2024-12-20 16:11:07 +0300 5601) _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
868b2b66 (kx 2024-12-20 16:11:07 +0300 5602) # Tell ltmain to make .lib files, not .a files.
868b2b66 (kx 2024-12-20 16:11:07 +0300 5603) libext=lib
868b2b66 (kx 2024-12-20 16:11:07 +0300 5604) # Tell ltmain to make .dll files, not .so files.
868b2b66 (kx 2024-12-20 16:11:07 +0300 5605) shrext_cmds=.dll
868b2b66 (kx 2024-12-20 16:11:07 +0300 5606) # FIXME: Setting linknames here is a bad hack.
868b2b66 (kx 2024-12-20 16:11:07 +0300 5607) _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
868b2b66 (kx 2024-12-20 16:11:07 +0300 5608) # The linker will automatically build a .lib file if we build a DLL.
868b2b66 (kx 2024-12-20 16:11:07 +0300 5609) _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5610) # FIXME: Should let the user specify the lib program.
868b2b66 (kx 2024-12-20 16:11:07 +0300 5611) _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5612) _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 5613) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5614) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 5615) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5616)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5617) darwin* | rhapsody*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5618) _LT_DARWIN_LINKER_FEATURES($1)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5619) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5620)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5621) dgux*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5622) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5623) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5624) _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 5625) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5626)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5627) # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
868b2b66 (kx 2024-12-20 16:11:07 +0300 5628) # support. Future versions do this automatically, but an explicit c++rt0.o
868b2b66 (kx 2024-12-20 16:11:07 +0300 5629) # does not break anything, and helps significantly (at the cost of a little
868b2b66 (kx 2024-12-20 16:11:07 +0300 5630) # extra space).
868b2b66 (kx 2024-12-20 16:11:07 +0300 5631) freebsd2.2*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5632) _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5633) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5634) _LT_TAGVAR(hardcode_direct, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 5635) _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 5636) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5637)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5638) # Unfortunately, older versions of FreeBSD 2 do not have this feature.
868b2b66 (kx 2024-12-20 16:11:07 +0300 5639) freebsd2.*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5640) _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5641) _LT_TAGVAR(hardcode_direct, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 5642) _LT_TAGVAR(hardcode_minus_L, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 5643) _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 5644) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5645)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5646) # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
868b2b66 (kx 2024-12-20 16:11:07 +0300 5647) freebsd* | dragonfly*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5648) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5649) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5650) _LT_TAGVAR(hardcode_direct, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 5651) _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 5652) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5653)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5654) hpux9*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5655) if test yes = "$GCC"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 5656) _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5657) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 5658) _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5659) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 5660) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5661) _LT_TAGVAR(hardcode_libdir_separator, $1)=:
868b2b66 (kx 2024-12-20 16:11:07 +0300 5662) _LT_TAGVAR(hardcode_direct, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 5663)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5664) # hardcode_minus_L: Not really in the search PATH,
868b2b66 (kx 2024-12-20 16:11:07 +0300 5665) # but as the default location of the library.
868b2b66 (kx 2024-12-20 16:11:07 +0300 5666) _LT_TAGVAR(hardcode_minus_L, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 5667) _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5668) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5669)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5670) hpux10*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5671) if test yes,no = "$GCC,$with_gnu_ld"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 5672) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5673) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 5674) _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5675) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 5676) if test no = "$with_gnu_ld"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 5677) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5678) _LT_TAGVAR(hardcode_libdir_separator, $1)=:
868b2b66 (kx 2024-12-20 16:11:07 +0300 5679) _LT_TAGVAR(hardcode_direct, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 5680) _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 5681) _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5682) # hardcode_minus_L: Not really in the search PATH,
868b2b66 (kx 2024-12-20 16:11:07 +0300 5683) # but as the default location of the library.
868b2b66 (kx 2024-12-20 16:11:07 +0300 5684) _LT_TAGVAR(hardcode_minus_L, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 5685) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 5686) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5687)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5688) hpux11*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5689) if test yes,no = "$GCC,$with_gnu_ld"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 5690) case $host_cpu in
868b2b66 (kx 2024-12-20 16:11:07 +0300 5691) hppa*64*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5692) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5693) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5694) ia64*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5695) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5696) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5697) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5698) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5699) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5700) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 5701) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 5702) case $host_cpu in
868b2b66 (kx 2024-12-20 16:11:07 +0300 5703) hppa*64*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5704) _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5705) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5706) ia64*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5707) _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5708) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5709) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5710) m4_if($1, [], [
868b2b66 (kx 2024-12-20 16:11:07 +0300 5711) # Older versions of the 11.00 compiler do not understand -b yet
868b2b66 (kx 2024-12-20 16:11:07 +0300 5712) # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5713) _LT_LINKER_OPTION([if $CC understands -b],
868b2b66 (kx 2024-12-20 16:11:07 +0300 5714) _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
868b2b66 (kx 2024-12-20 16:11:07 +0300 5715) [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
868b2b66 (kx 2024-12-20 16:11:07 +0300 5716) [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
868b2b66 (kx 2024-12-20 16:11:07 +0300 5717) [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
868b2b66 (kx 2024-12-20 16:11:07 +0300 5718) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5719) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 5720) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 5721) if test no = "$with_gnu_ld"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 5722) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5723) _LT_TAGVAR(hardcode_libdir_separator, $1)=:
868b2b66 (kx 2024-12-20 16:11:07 +0300 5724)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5725) case $host_cpu in
868b2b66 (kx 2024-12-20 16:11:07 +0300 5726) hppa*64*|ia64*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5727) _LT_TAGVAR(hardcode_direct, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 5728) _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 5729) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5730) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5731) _LT_TAGVAR(hardcode_direct, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 5732) _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 5733) _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5734)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5735) # hardcode_minus_L: Not really in the search PATH,
868b2b66 (kx 2024-12-20 16:11:07 +0300 5736) # but as the default location of the library.
868b2b66 (kx 2024-12-20 16:11:07 +0300 5737) _LT_TAGVAR(hardcode_minus_L, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 5738) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5739) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 5740) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 5741) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5742)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5743) irix5* | irix6* | nonstopux*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5744) if test yes = "$GCC"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 5745) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5746) # Try to use the -exported_symbol ld option, if it does not
868b2b66 (kx 2024-12-20 16:11:07 +0300 5747) # work, assume that -exports_file does not work either and
868b2b66 (kx 2024-12-20 16:11:07 +0300 5748) # implicitly export all symbols.
868b2b66 (kx 2024-12-20 16:11:07 +0300 5749) # This should be the same for all languages, so no per-tag cache variable.
868b2b66 (kx 2024-12-20 16:11:07 +0300 5750) AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
868b2b66 (kx 2024-12-20 16:11:07 +0300 5751) [lt_cv_irix_exported_symbol],
868b2b66 (kx 2024-12-20 16:11:07 +0300 5752) [save_LDFLAGS=$LDFLAGS
868b2b66 (kx 2024-12-20 16:11:07 +0300 5753) LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
868b2b66 (kx 2024-12-20 16:11:07 +0300 5754) AC_LINK_IFELSE(
868b2b66 (kx 2024-12-20 16:11:07 +0300 5755) [AC_LANG_SOURCE(
868b2b66 (kx 2024-12-20 16:11:07 +0300 5756) [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
868b2b66 (kx 2024-12-20 16:11:07 +0300 5757) [C++], [[int foo (void) { return 0; }]],
868b2b66 (kx 2024-12-20 16:11:07 +0300 5758) [Fortran 77], [[
868b2b66 (kx 2024-12-20 16:11:07 +0300 5759) subroutine foo
868b2b66 (kx 2024-12-20 16:11:07 +0300 5760) end]],
868b2b66 (kx 2024-12-20 16:11:07 +0300 5761) [Fortran], [[
868b2b66 (kx 2024-12-20 16:11:07 +0300 5762) subroutine foo
868b2b66 (kx 2024-12-20 16:11:07 +0300 5763) end]])])],
868b2b66 (kx 2024-12-20 16:11:07 +0300 5764) [lt_cv_irix_exported_symbol=yes],
868b2b66 (kx 2024-12-20 16:11:07 +0300 5765) [lt_cv_irix_exported_symbol=no])
868b2b66 (kx 2024-12-20 16:11:07 +0300 5766) LDFLAGS=$save_LDFLAGS])
868b2b66 (kx 2024-12-20 16:11:07 +0300 5767) if test yes = "$lt_cv_irix_exported_symbol"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 5768) _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5769) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 5770) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 5771) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5772) _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5773) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 5774) _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5775) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5776) _LT_TAGVAR(hardcode_libdir_separator, $1)=:
868b2b66 (kx 2024-12-20 16:11:07 +0300 5777) _LT_TAGVAR(inherit_rpath, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 5778) _LT_TAGVAR(link_all_deplibs, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 5779) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5780)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5781) linux*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5782) case $cc_basename in
868b2b66 (kx 2024-12-20 16:11:07 +0300 5783) tcc*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5784) # Fabrice Bellard et al's Tiny C Compiler
868b2b66 (kx 2024-12-20 16:11:07 +0300 5785) _LT_TAGVAR(ld_shlibs, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 5786) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5787) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5788) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 5789) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5790)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5791) netbsd*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5792) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 5793) _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
868b2b66 (kx 2024-12-20 16:11:07 +0300 5794) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 5795) _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
868b2b66 (kx 2024-12-20 16:11:07 +0300 5796) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 5797) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5798) _LT_TAGVAR(hardcode_direct, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 5799) _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 5800) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5801)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5802) newsos6)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5803) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5804) _LT_TAGVAR(hardcode_direct, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 5805) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5806) _LT_TAGVAR(hardcode_libdir_separator, $1)=:
868b2b66 (kx 2024-12-20 16:11:07 +0300 5807) _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 5808) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5809)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5810) *nto* | *qnx*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5811) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5812)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5813) openbsd* | bitrig*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5814) if test -f /usr/libexec/ld.so; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 5815) _LT_TAGVAR(hardcode_direct, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 5816) _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 5817) _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 5818) if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 5819) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5820) _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5821) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5822) _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5823) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 5824) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5825) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5826) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 5827) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 5828) _LT_TAGVAR(ld_shlibs, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 5829) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 5830) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5831)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5832) os2*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5833) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5834) _LT_TAGVAR(hardcode_minus_L, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 5835) _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
868b2b66 (kx 2024-12-20 16:11:07 +0300 5836) shrext_cmds=.dll
868b2b66 (kx 2024-12-20 16:11:07 +0300 5837) _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
868b2b66 (kx 2024-12-20 16:11:07 +0300 5838) $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
868b2b66 (kx 2024-12-20 16:11:07 +0300 5839) $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
868b2b66 (kx 2024-12-20 16:11:07 +0300 5840) $ECHO EXPORTS >> $output_objdir/$libname.def~
868b2b66 (kx 2024-12-20 16:11:07 +0300 5841) emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
868b2b66 (kx 2024-12-20 16:11:07 +0300 5842) $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
868b2b66 (kx 2024-12-20 16:11:07 +0300 5843) emximp -o $lib $output_objdir/$libname.def'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5844) _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
868b2b66 (kx 2024-12-20 16:11:07 +0300 5845) $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
868b2b66 (kx 2024-12-20 16:11:07 +0300 5846) $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
868b2b66 (kx 2024-12-20 16:11:07 +0300 5847) $ECHO EXPORTS >> $output_objdir/$libname.def~
868b2b66 (kx 2024-12-20 16:11:07 +0300 5848) prefix_cmds="$SED"~
868b2b66 (kx 2024-12-20 16:11:07 +0300 5849) if test EXPORTS = "`$SED 1q $export_symbols`"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 5850) prefix_cmds="$prefix_cmds -e 1d";
868b2b66 (kx 2024-12-20 16:11:07 +0300 5851) fi~
868b2b66 (kx 2024-12-20 16:11:07 +0300 5852) prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
868b2b66 (kx 2024-12-20 16:11:07 +0300 5853) cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
868b2b66 (kx 2024-12-20 16:11:07 +0300 5854) $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
868b2b66 (kx 2024-12-20 16:11:07 +0300 5855) emximp -o $lib $output_objdir/$libname.def'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5856) _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5857) _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 5858) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5859)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5860) osf3*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5861) if test yes = "$GCC"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 5862) _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5863) _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5864) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 5865) _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5866) _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5867) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 5868) _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5869) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5870) _LT_TAGVAR(hardcode_libdir_separator, $1)=:
868b2b66 (kx 2024-12-20 16:11:07 +0300 5871) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5872)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5873) osf4* | osf5*) # as osf3* with the addition of -msym flag
868b2b66 (kx 2024-12-20 16:11:07 +0300 5874) if test yes = "$GCC"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 5875) _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5876) _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5877) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5878) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 5879) _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5880) _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5881) _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
868b2b66 (kx 2024-12-20 16:11:07 +0300 5882) $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5883)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5884) # Both c and cxx compiler support -rpath directly
868b2b66 (kx 2024-12-20 16:11:07 +0300 5885) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5886) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 5887) _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5888) _LT_TAGVAR(hardcode_libdir_separator, $1)=:
868b2b66 (kx 2024-12-20 16:11:07 +0300 5889) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5890)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5891) solaris*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5892) _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5893) if test yes = "$GCC"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 5894) wlarc='$wl'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5895) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5896) _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
868b2b66 (kx 2024-12-20 16:11:07 +0300 5897) $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5898) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 5899) case `$CC -V 2>&1` in
868b2b66 (kx 2024-12-20 16:11:07 +0300 5900) *"Compilers 5.0"*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5901) wlarc=''
868b2b66 (kx 2024-12-20 16:11:07 +0300 5902) _LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5903) _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
868b2b66 (kx 2024-12-20 16:11:07 +0300 5904) $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5905) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5906) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5907) wlarc='$wl'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5908) _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5909) _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
868b2b66 (kx 2024-12-20 16:11:07 +0300 5910) $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5911) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5912) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 5913) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 5914) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5915) _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 5916) case $host_os in
868b2b66 (kx 2024-12-20 16:11:07 +0300 5917) solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5918) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5919) # The compiler driver will combine and reorder linker options,
868b2b66 (kx 2024-12-20 16:11:07 +0300 5920) # but understands '-z linker_flag'. GCC discards it without '$wl',
868b2b66 (kx 2024-12-20 16:11:07 +0300 5921) # but is careful enough not to reorder.
868b2b66 (kx 2024-12-20 16:11:07 +0300 5922) # Supported since Solaris 2.6 (maybe 2.5.1?)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5923) if test yes = "$GCC"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 5924) _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5925) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 5926) _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5927) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 5928) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5929) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 5930) _LT_TAGVAR(link_all_deplibs, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 5931) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5932)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5933) sunos4*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5934) if test sequent = "$host_vendor"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 5935) # Use $CC to link under sequent, because it throws in some extra .o
868b2b66 (kx 2024-12-20 16:11:07 +0300 5936) # files that make .init and .fini sections work.
868b2b66 (kx 2024-12-20 16:11:07 +0300 5937) _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5938) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 5939) _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5940) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 5941) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5942) _LT_TAGVAR(hardcode_direct, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 5943) _LT_TAGVAR(hardcode_minus_L, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 5944) _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 5945) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5946)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5947) sysv4)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5948) case $host_vendor in
868b2b66 (kx 2024-12-20 16:11:07 +0300 5949) sni)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5950) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5951) _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
868b2b66 (kx 2024-12-20 16:11:07 +0300 5952) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5953) siemens)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5954) ## LD is ld it makes a PLAMLIB
868b2b66 (kx 2024-12-20 16:11:07 +0300 5955) ## CC just makes a GrossModule.
868b2b66 (kx 2024-12-20 16:11:07 +0300 5956) _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5957) _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5958) _LT_TAGVAR(hardcode_direct, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 5959) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5960) motorola)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5961) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5962) _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
868b2b66 (kx 2024-12-20 16:11:07 +0300 5963) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5964) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 5965) runpath_var='LD_RUN_PATH'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5966) _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 5967) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5968)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5969) sysv4.3*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5970) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5971) _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 5972) _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5973) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5974)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5975) sysv4*MP*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5976) if test -d /usr/nec; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 5977) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5978) _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 5979) runpath_var=LD_RUN_PATH
868b2b66 (kx 2024-12-20 16:11:07 +0300 5980) hardcode_runpath_var=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 5981) _LT_TAGVAR(ld_shlibs, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 5982) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 5983) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5984)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5985) sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5986) _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5987) _LT_TAGVAR(archive_cmds_need_lc, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 5988) _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 5989) runpath_var='LD_RUN_PATH'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5990)
868b2b66 (kx 2024-12-20 16:11:07 +0300 5991) if test yes = "$GCC"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 5992) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5993) _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5994) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 5995) _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5996) _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
868b2b66 (kx 2024-12-20 16:11:07 +0300 5997) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 5998) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 5999)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6000) sysv5* | sco3.2v5* | sco5v6*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6001) # Note: We CANNOT use -z defs as we might desire, because we do not
868b2b66 (kx 2024-12-20 16:11:07 +0300 6002) # link with -lc, and that would cause any symbols used from libc to
868b2b66 (kx 2024-12-20 16:11:07 +0300 6003) # always be unresolved, which means just about no library would
868b2b66 (kx 2024-12-20 16:11:07 +0300 6004) # ever link correctly. If we're not using GNU ld we use -z text
868b2b66 (kx 2024-12-20 16:11:07 +0300 6005) # though, which does catch some bad symbols but isn't as heavy-handed
868b2b66 (kx 2024-12-20 16:11:07 +0300 6006) # as -z defs.
868b2b66 (kx 2024-12-20 16:11:07 +0300 6007) _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6008) _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6009) _LT_TAGVAR(archive_cmds_need_lc, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 6010) _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 6011) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6012) _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6013) _LT_TAGVAR(link_all_deplibs, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 6014) _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6015) runpath_var='LD_RUN_PATH'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6016)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6017) if test yes = "$GCC"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 6018) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6019) _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6020) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 6021) _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6022) _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6023) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 6024) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 6025)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6026) uts4*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6027) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6028) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6029) _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 6030) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 6031)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6032) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6033) _LT_TAGVAR(ld_shlibs, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 6034) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 6035) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 6036)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6037) if test sni = "$host_vendor"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 6038) case $host in
868b2b66 (kx 2024-12-20 16:11:07 +0300 6039) sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6040) _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6041) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 6042) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 6043) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 6044) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 6045) ])
868b2b66 (kx 2024-12-20 16:11:07 +0300 6046) AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
868b2b66 (kx 2024-12-20 16:11:07 +0300 6047) test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 6048)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6049) _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
868b2b66 (kx 2024-12-20 16:11:07 +0300 6050)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6051) _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 6052) _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 6053) _LT_DECL([], [extract_expsyms_cmds], [2],
868b2b66 (kx 2024-12-20 16:11:07 +0300 6054) [The commands to extract the exported symbol list from a shared archive])
868b2b66 (kx 2024-12-20 16:11:07 +0300 6055)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6056) #
868b2b66 (kx 2024-12-20 16:11:07 +0300 6057) # Do we need to explicitly link libc?
868b2b66 (kx 2024-12-20 16:11:07 +0300 6058) #
868b2b66 (kx 2024-12-20 16:11:07 +0300 6059) case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
868b2b66 (kx 2024-12-20 16:11:07 +0300 6060) x|xyes)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6061) # Assume -lc should be added
868b2b66 (kx 2024-12-20 16:11:07 +0300 6062) _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 6063)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6064) if test yes,yes = "$GCC,$enable_shared"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 6065) case $_LT_TAGVAR(archive_cmds, $1) in
868b2b66 (kx 2024-12-20 16:11:07 +0300 6066) *'~'*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6067) # FIXME: we may have to deal with multi-command sequences.
868b2b66 (kx 2024-12-20 16:11:07 +0300 6068) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 6069) '$CC '*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6070) # Test whether the compiler implicitly links with -lc since on some
868b2b66 (kx 2024-12-20 16:11:07 +0300 6071) # systems, -lgcc has to come before -lc. If gcc already passes -lc
868b2b66 (kx 2024-12-20 16:11:07 +0300 6072) # to ld, don't add -lc before -lgcc.
868b2b66 (kx 2024-12-20 16:11:07 +0300 6073) AC_CACHE_CHECK([whether -lc should be explicitly linked in],
868b2b66 (kx 2024-12-20 16:11:07 +0300 6074) [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
868b2b66 (kx 2024-12-20 16:11:07 +0300 6075) [$RM conftest*
868b2b66 (kx 2024-12-20 16:11:07 +0300 6076) echo "$lt_simple_compile_test_code" > conftest.$ac_ext
868b2b66 (kx 2024-12-20 16:11:07 +0300 6077)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6078) if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 6079) soname=conftest
868b2b66 (kx 2024-12-20 16:11:07 +0300 6080) lib=conftest
868b2b66 (kx 2024-12-20 16:11:07 +0300 6081) libobjs=conftest.$ac_objext
868b2b66 (kx 2024-12-20 16:11:07 +0300 6082) deplibs=
868b2b66 (kx 2024-12-20 16:11:07 +0300 6083) wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6084) pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6085) compiler_flags=-v
868b2b66 (kx 2024-12-20 16:11:07 +0300 6086) linker_flags=-v
868b2b66 (kx 2024-12-20 16:11:07 +0300 6087) verstring=
868b2b66 (kx 2024-12-20 16:11:07 +0300 6088) output_objdir=.
868b2b66 (kx 2024-12-20 16:11:07 +0300 6089) libname=conftest
868b2b66 (kx 2024-12-20 16:11:07 +0300 6090) lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6091) _LT_TAGVAR(allow_undefined_flag, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 6092) if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6093) then
868b2b66 (kx 2024-12-20 16:11:07 +0300 6094) lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 6095) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 6096) lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 6097) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 6098) _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
868b2b66 (kx 2024-12-20 16:11:07 +0300 6099) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 6100) cat conftest.err 1>&5
868b2b66 (kx 2024-12-20 16:11:07 +0300 6101) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 6102) $RM conftest*
868b2b66 (kx 2024-12-20 16:11:07 +0300 6103) ])
868b2b66 (kx 2024-12-20 16:11:07 +0300 6104) _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6105) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 6106) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 6107) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 6108) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 6109) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 6110)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6111) _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
868b2b66 (kx 2024-12-20 16:11:07 +0300 6112) [Whether or not to add -lc for building shared libraries])
868b2b66 (kx 2024-12-20 16:11:07 +0300 6113) _LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
868b2b66 (kx 2024-12-20 16:11:07 +0300 6114) [enable_shared_with_static_runtimes], [0],
868b2b66 (kx 2024-12-20 16:11:07 +0300 6115) [Whether or not to disallow shared libs when runtime libs are static])
868b2b66 (kx 2024-12-20 16:11:07 +0300 6116) _LT_TAGDECL([], [export_dynamic_flag_spec], [1],
868b2b66 (kx 2024-12-20 16:11:07 +0300 6117) [Compiler flag to allow reflexive dlopens])
868b2b66 (kx 2024-12-20 16:11:07 +0300 6118) _LT_TAGDECL([], [whole_archive_flag_spec], [1],
868b2b66 (kx 2024-12-20 16:11:07 +0300 6119) [Compiler flag to generate shared objects directly from archives])
868b2b66 (kx 2024-12-20 16:11:07 +0300 6120) _LT_TAGDECL([], [compiler_needs_object], [1],
868b2b66 (kx 2024-12-20 16:11:07 +0300 6121) [Whether the compiler copes with passing no objects directly])
868b2b66 (kx 2024-12-20 16:11:07 +0300 6122) _LT_TAGDECL([], [old_archive_from_new_cmds], [2],
868b2b66 (kx 2024-12-20 16:11:07 +0300 6123) [Create an old-style archive from a shared archive])
868b2b66 (kx 2024-12-20 16:11:07 +0300 6124) _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
868b2b66 (kx 2024-12-20 16:11:07 +0300 6125) [Create a temporary old-style archive to link instead of a shared archive])
868b2b66 (kx 2024-12-20 16:11:07 +0300 6126) _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
868b2b66 (kx 2024-12-20 16:11:07 +0300 6127) _LT_TAGDECL([], [archive_expsym_cmds], [2])
868b2b66 (kx 2024-12-20 16:11:07 +0300 6128) _LT_TAGDECL([], [module_cmds], [2],
868b2b66 (kx 2024-12-20 16:11:07 +0300 6129) [Commands used to build a loadable module if different from building
868b2b66 (kx 2024-12-20 16:11:07 +0300 6130) a shared archive.])
868b2b66 (kx 2024-12-20 16:11:07 +0300 6131) _LT_TAGDECL([], [module_expsym_cmds], [2])
868b2b66 (kx 2024-12-20 16:11:07 +0300 6132) _LT_TAGDECL([], [with_gnu_ld], [1],
868b2b66 (kx 2024-12-20 16:11:07 +0300 6133) [Whether we are building with GNU ld or not])
868b2b66 (kx 2024-12-20 16:11:07 +0300 6134) _LT_TAGDECL([], [allow_undefined_flag], [1],
868b2b66 (kx 2024-12-20 16:11:07 +0300 6135) [Flag that allows shared libraries with undefined symbols to be built])
868b2b66 (kx 2024-12-20 16:11:07 +0300 6136) _LT_TAGDECL([], [no_undefined_flag], [1],
868b2b66 (kx 2024-12-20 16:11:07 +0300 6137) [Flag that enforces no undefined symbols])
868b2b66 (kx 2024-12-20 16:11:07 +0300 6138) _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
868b2b66 (kx 2024-12-20 16:11:07 +0300 6139) [Flag to hardcode $libdir into a binary during linking.
868b2b66 (kx 2024-12-20 16:11:07 +0300 6140) This must work even if $libdir does not exist])
868b2b66 (kx 2024-12-20 16:11:07 +0300 6141) _LT_TAGDECL([], [hardcode_libdir_separator], [1],
868b2b66 (kx 2024-12-20 16:11:07 +0300 6142) [Whether we need a single "-rpath" flag with a separated argument])
868b2b66 (kx 2024-12-20 16:11:07 +0300 6143) _LT_TAGDECL([], [hardcode_direct], [0],
868b2b66 (kx 2024-12-20 16:11:07 +0300 6144) [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
868b2b66 (kx 2024-12-20 16:11:07 +0300 6145) DIR into the resulting binary])
868b2b66 (kx 2024-12-20 16:11:07 +0300 6146) _LT_TAGDECL([], [hardcode_direct_absolute], [0],
868b2b66 (kx 2024-12-20 16:11:07 +0300 6147) [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
868b2b66 (kx 2024-12-20 16:11:07 +0300 6148) DIR into the resulting binary and the resulting library dependency is
868b2b66 (kx 2024-12-20 16:11:07 +0300 6149) "absolute", i.e impossible to change by setting $shlibpath_var if the
868b2b66 (kx 2024-12-20 16:11:07 +0300 6150) library is relocated])
868b2b66 (kx 2024-12-20 16:11:07 +0300 6151) _LT_TAGDECL([], [hardcode_minus_L], [0],
868b2b66 (kx 2024-12-20 16:11:07 +0300 6152) [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
868b2b66 (kx 2024-12-20 16:11:07 +0300 6153) into the resulting binary])
868b2b66 (kx 2024-12-20 16:11:07 +0300 6154) _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
868b2b66 (kx 2024-12-20 16:11:07 +0300 6155) [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
868b2b66 (kx 2024-12-20 16:11:07 +0300 6156) into the resulting binary])
868b2b66 (kx 2024-12-20 16:11:07 +0300 6157) _LT_TAGDECL([], [hardcode_automatic], [0],
868b2b66 (kx 2024-12-20 16:11:07 +0300 6158) [Set to "yes" if building a shared library automatically hardcodes DIR
868b2b66 (kx 2024-12-20 16:11:07 +0300 6159) into the library and all subsequent libraries and executables linked
868b2b66 (kx 2024-12-20 16:11:07 +0300 6160) against it])
868b2b66 (kx 2024-12-20 16:11:07 +0300 6161) _LT_TAGDECL([], [inherit_rpath], [0],
868b2b66 (kx 2024-12-20 16:11:07 +0300 6162) [Set to yes if linker adds runtime paths of dependent libraries
868b2b66 (kx 2024-12-20 16:11:07 +0300 6163) to runtime path list])
868b2b66 (kx 2024-12-20 16:11:07 +0300 6164) _LT_TAGDECL([], [link_all_deplibs], [0],
868b2b66 (kx 2024-12-20 16:11:07 +0300 6165) [Whether libtool must link a program against all its dependency libraries])
868b2b66 (kx 2024-12-20 16:11:07 +0300 6166) _LT_TAGDECL([], [always_export_symbols], [0],
868b2b66 (kx 2024-12-20 16:11:07 +0300 6167) [Set to "yes" if exported symbols are required])
868b2b66 (kx 2024-12-20 16:11:07 +0300 6168) _LT_TAGDECL([], [export_symbols_cmds], [2],
868b2b66 (kx 2024-12-20 16:11:07 +0300 6169) [The commands to list exported symbols])
868b2b66 (kx 2024-12-20 16:11:07 +0300 6170) _LT_TAGDECL([], [exclude_expsyms], [1],
868b2b66 (kx 2024-12-20 16:11:07 +0300 6171) [Symbols that should not be listed in the preloaded symbols])
868b2b66 (kx 2024-12-20 16:11:07 +0300 6172) _LT_TAGDECL([], [include_expsyms], [1],
868b2b66 (kx 2024-12-20 16:11:07 +0300 6173) [Symbols that must always be exported])
868b2b66 (kx 2024-12-20 16:11:07 +0300 6174) _LT_TAGDECL([], [prelink_cmds], [2],
868b2b66 (kx 2024-12-20 16:11:07 +0300 6175) [Commands necessary for linking programs (against libraries) with templates])
868b2b66 (kx 2024-12-20 16:11:07 +0300 6176) _LT_TAGDECL([], [postlink_cmds], [2],
868b2b66 (kx 2024-12-20 16:11:07 +0300 6177) [Commands necessary for finishing linking programs])
868b2b66 (kx 2024-12-20 16:11:07 +0300 6178) _LT_TAGDECL([], [file_list_spec], [1],
868b2b66 (kx 2024-12-20 16:11:07 +0300 6179) [Specify filename containing input files])
868b2b66 (kx 2024-12-20 16:11:07 +0300 6180) dnl FIXME: Not yet implemented
868b2b66 (kx 2024-12-20 16:11:07 +0300 6181) dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
868b2b66 (kx 2024-12-20 16:11:07 +0300 6182) dnl [Compiler flag to generate thread safe objects])
868b2b66 (kx 2024-12-20 16:11:07 +0300 6183) ])# _LT_LINKER_SHLIBS
868b2b66 (kx 2024-12-20 16:11:07 +0300 6184)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6185)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6186) # _LT_LANG_C_CONFIG([TAG])
868b2b66 (kx 2024-12-20 16:11:07 +0300 6187) # ------------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 6188) # Ensure that the configuration variables for a C compiler are suitably
868b2b66 (kx 2024-12-20 16:11:07 +0300 6189) # defined. These variables are subsequently used by _LT_CONFIG to write
868b2b66 (kx 2024-12-20 16:11:07 +0300 6190) # the compiler configuration to 'libtool'.
868b2b66 (kx 2024-12-20 16:11:07 +0300 6191) m4_defun([_LT_LANG_C_CONFIG],
868b2b66 (kx 2024-12-20 16:11:07 +0300 6192) [m4_require([_LT_DECL_EGREP])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 6193) lt_save_CC=$CC
868b2b66 (kx 2024-12-20 16:11:07 +0300 6194) AC_LANG_PUSH(C)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6195)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6196) # Source file extension for C test sources.
868b2b66 (kx 2024-12-20 16:11:07 +0300 6197) ac_ext=c
868b2b66 (kx 2024-12-20 16:11:07 +0300 6198)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6199) # Object file extension for compiled C test sources.
868b2b66 (kx 2024-12-20 16:11:07 +0300 6200) objext=o
868b2b66 (kx 2024-12-20 16:11:07 +0300 6201) _LT_TAGVAR(objext, $1)=$objext
868b2b66 (kx 2024-12-20 16:11:07 +0300 6202)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6203) # Code to be used in simple compile tests
868b2b66 (kx 2024-12-20 16:11:07 +0300 6204) lt_simple_compile_test_code="int some_variable = 0;"
868b2b66 (kx 2024-12-20 16:11:07 +0300 6205)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6206) # Code to be used in simple link tests
868b2b66 (kx 2024-12-20 16:11:07 +0300 6207) lt_simple_link_test_code='int main(){return(0);}'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6208)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6209) _LT_TAG_COMPILER
868b2b66 (kx 2024-12-20 16:11:07 +0300 6210) # Save the default compiler, since it gets overwritten when the other
868b2b66 (kx 2024-12-20 16:11:07 +0300 6211) # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
868b2b66 (kx 2024-12-20 16:11:07 +0300 6212) compiler_DEFAULT=$CC
868b2b66 (kx 2024-12-20 16:11:07 +0300 6213)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6214) # save warnings/boilerplate of simple test code
868b2b66 (kx 2024-12-20 16:11:07 +0300 6215) _LT_COMPILER_BOILERPLATE
868b2b66 (kx 2024-12-20 16:11:07 +0300 6216) _LT_LINKER_BOILERPLATE
868b2b66 (kx 2024-12-20 16:11:07 +0300 6217)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6218) ## CAVEAT EMPTOR:
868b2b66 (kx 2024-12-20 16:11:07 +0300 6219) ## There is no encapsulation within the following macros, do not change
868b2b66 (kx 2024-12-20 16:11:07 +0300 6220) ## the running order or otherwise move them around unless you know exactly
868b2b66 (kx 2024-12-20 16:11:07 +0300 6221) ## what you are doing...
868b2b66 (kx 2024-12-20 16:11:07 +0300 6222) if test -n "$compiler"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 6223) _LT_COMPILER_NO_RTTI($1)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6224) _LT_COMPILER_PIC($1)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6225) _LT_COMPILER_C_O($1)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6226) _LT_COMPILER_FILE_LOCKS($1)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6227) _LT_LINKER_SHLIBS($1)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6228) _LT_SYS_DYNAMIC_LINKER($1)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6229) _LT_LINKER_HARDCODE_LIBPATH($1)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6230) LT_SYS_DLOPEN_SELF
868b2b66 (kx 2024-12-20 16:11:07 +0300 6231) _LT_CMD_STRIPLIB
868b2b66 (kx 2024-12-20 16:11:07 +0300 6232)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6233) # Report what library types will actually be built
868b2b66 (kx 2024-12-20 16:11:07 +0300 6234) AC_MSG_CHECKING([if libtool supports shared libraries])
868b2b66 (kx 2024-12-20 16:11:07 +0300 6235) AC_MSG_RESULT([$can_build_shared])
868b2b66 (kx 2024-12-20 16:11:07 +0300 6236)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6237) AC_MSG_CHECKING([whether to build shared libraries])
868b2b66 (kx 2024-12-20 16:11:07 +0300 6238) test no = "$can_build_shared" && enable_shared=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 6239)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6240) # On AIX, shared libraries and static libraries use the same namespace, and
868b2b66 (kx 2024-12-20 16:11:07 +0300 6241) # are all built from PIC.
868b2b66 (kx 2024-12-20 16:11:07 +0300 6242) case $host_os in
868b2b66 (kx 2024-12-20 16:11:07 +0300 6243) aix3*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6244) test yes = "$enable_shared" && enable_static=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 6245) if test -n "$RANLIB"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 6246) archive_cmds="$archive_cmds~\$RANLIB \$lib"
868b2b66 (kx 2024-12-20 16:11:07 +0300 6247) postinstall_cmds='$RANLIB $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6248) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 6249) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 6250)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6251) aix[[4-9]]*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6252) if test ia64 != "$host_cpu"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 6253) case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
868b2b66 (kx 2024-12-20 16:11:07 +0300 6254) yes,aix,yes) ;; # shared object as lib.so file only
868b2b66 (kx 2024-12-20 16:11:07 +0300 6255) yes,svr4,*) ;; # shared object as lib.so archive member only
868b2b66 (kx 2024-12-20 16:11:07 +0300 6256) yes,*) enable_static=no ;; # shared object in lib.a archive as well
868b2b66 (kx 2024-12-20 16:11:07 +0300 6257) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 6258) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 6259) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 6260) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 6261) AC_MSG_RESULT([$enable_shared])
868b2b66 (kx 2024-12-20 16:11:07 +0300 6262)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6263) AC_MSG_CHECKING([whether to build static libraries])
868b2b66 (kx 2024-12-20 16:11:07 +0300 6264) # Make sure either enable_shared or enable_static is yes.
868b2b66 (kx 2024-12-20 16:11:07 +0300 6265) test yes = "$enable_shared" || enable_static=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 6266) AC_MSG_RESULT([$enable_static])
868b2b66 (kx 2024-12-20 16:11:07 +0300 6267)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6268) _LT_CONFIG($1)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6269) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 6270) AC_LANG_POP
868b2b66 (kx 2024-12-20 16:11:07 +0300 6271) CC=$lt_save_CC
868b2b66 (kx 2024-12-20 16:11:07 +0300 6272) ])# _LT_LANG_C_CONFIG
868b2b66 (kx 2024-12-20 16:11:07 +0300 6273)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6274)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6275) # _LT_LANG_CXX_CONFIG([TAG])
868b2b66 (kx 2024-12-20 16:11:07 +0300 6276) # --------------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 6277) # Ensure that the configuration variables for a C++ compiler are suitably
868b2b66 (kx 2024-12-20 16:11:07 +0300 6278) # defined. These variables are subsequently used by _LT_CONFIG to write
868b2b66 (kx 2024-12-20 16:11:07 +0300 6279) # the compiler configuration to 'libtool'.
868b2b66 (kx 2024-12-20 16:11:07 +0300 6280) m4_defun([_LT_LANG_CXX_CONFIG],
868b2b66 (kx 2024-12-20 16:11:07 +0300 6281) [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 6282) m4_require([_LT_DECL_EGREP])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 6283) m4_require([_LT_PATH_MANIFEST_TOOL])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 6284) if test -n "$CXX" && ( test no != "$CXX" &&
868b2b66 (kx 2024-12-20 16:11:07 +0300 6285) ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
868b2b66 (kx 2024-12-20 16:11:07 +0300 6286) (test g++ != "$CXX"))); then
868b2b66 (kx 2024-12-20 16:11:07 +0300 6287) AC_PROG_CXXCPP
868b2b66 (kx 2024-12-20 16:11:07 +0300 6288) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 6289) _lt_caught_CXX_error=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 6290) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 6291)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6292) AC_LANG_PUSH(C++)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6293) _LT_TAGVAR(archive_cmds_need_lc, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 6294) _LT_TAGVAR(allow_undefined_flag, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 6295) _LT_TAGVAR(always_export_symbols, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 6296) _LT_TAGVAR(archive_expsym_cmds, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 6297) _LT_TAGVAR(compiler_needs_object, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 6298) _LT_TAGVAR(export_dynamic_flag_spec, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 6299) _LT_TAGVAR(hardcode_direct, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 6300) _LT_TAGVAR(hardcode_direct_absolute, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 6301) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 6302) _LT_TAGVAR(hardcode_libdir_separator, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 6303) _LT_TAGVAR(hardcode_minus_L, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 6304) _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
868b2b66 (kx 2024-12-20 16:11:07 +0300 6305) _LT_TAGVAR(hardcode_automatic, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 6306) _LT_TAGVAR(inherit_rpath, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 6307) _LT_TAGVAR(module_cmds, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 6308) _LT_TAGVAR(module_expsym_cmds, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 6309) _LT_TAGVAR(link_all_deplibs, $1)=unknown
868b2b66 (kx 2024-12-20 16:11:07 +0300 6310) _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
868b2b66 (kx 2024-12-20 16:11:07 +0300 6311) _LT_TAGVAR(reload_flag, $1)=$reload_flag
868b2b66 (kx 2024-12-20 16:11:07 +0300 6312) _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
868b2b66 (kx 2024-12-20 16:11:07 +0300 6313) _LT_TAGVAR(no_undefined_flag, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 6314) _LT_TAGVAR(whole_archive_flag_spec, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 6315) _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 6316)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6317) # Source file extension for C++ test sources.
868b2b66 (kx 2024-12-20 16:11:07 +0300 6318) ac_ext=cpp
868b2b66 (kx 2024-12-20 16:11:07 +0300 6319)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6320) # Object file extension for compiled C++ test sources.
868b2b66 (kx 2024-12-20 16:11:07 +0300 6321) objext=o
868b2b66 (kx 2024-12-20 16:11:07 +0300 6322) _LT_TAGVAR(objext, $1)=$objext
868b2b66 (kx 2024-12-20 16:11:07 +0300 6323)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6324) # No sense in running all these tests if we already determined that
868b2b66 (kx 2024-12-20 16:11:07 +0300 6325) # the CXX compiler isn't working. Some variables (like enable_shared)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6326) # are currently assumed to apply to all compilers on this platform,
868b2b66 (kx 2024-12-20 16:11:07 +0300 6327) # and will be corrupted by setting them based on a non-working compiler.
868b2b66 (kx 2024-12-20 16:11:07 +0300 6328) if test yes != "$_lt_caught_CXX_error"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 6329) # Code to be used in simple compile tests
868b2b66 (kx 2024-12-20 16:11:07 +0300 6330) lt_simple_compile_test_code="int some_variable = 0;"
868b2b66 (kx 2024-12-20 16:11:07 +0300 6331)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6332) # Code to be used in simple link tests
868b2b66 (kx 2024-12-20 16:11:07 +0300 6333) lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6334)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6335) # ltmain only uses $CC for tagged configurations so make sure $CC is set.
868b2b66 (kx 2024-12-20 16:11:07 +0300 6336) _LT_TAG_COMPILER
868b2b66 (kx 2024-12-20 16:11:07 +0300 6337)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6338) # save warnings/boilerplate of simple test code
868b2b66 (kx 2024-12-20 16:11:07 +0300 6339) _LT_COMPILER_BOILERPLATE
868b2b66 (kx 2024-12-20 16:11:07 +0300 6340) _LT_LINKER_BOILERPLATE
868b2b66 (kx 2024-12-20 16:11:07 +0300 6341)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6342) # Allow CC to be a program name with arguments.
868b2b66 (kx 2024-12-20 16:11:07 +0300 6343) lt_save_CC=$CC
868b2b66 (kx 2024-12-20 16:11:07 +0300 6344) lt_save_CFLAGS=$CFLAGS
868b2b66 (kx 2024-12-20 16:11:07 +0300 6345) lt_save_LD=$LD
868b2b66 (kx 2024-12-20 16:11:07 +0300 6346) lt_save_GCC=$GCC
868b2b66 (kx 2024-12-20 16:11:07 +0300 6347) GCC=$GXX
868b2b66 (kx 2024-12-20 16:11:07 +0300 6348) lt_save_with_gnu_ld=$with_gnu_ld
868b2b66 (kx 2024-12-20 16:11:07 +0300 6349) lt_save_path_LD=$lt_cv_path_LD
868b2b66 (kx 2024-12-20 16:11:07 +0300 6350) if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 6351) lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
868b2b66 (kx 2024-12-20 16:11:07 +0300 6352) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 6353) $as_unset lt_cv_prog_gnu_ld
868b2b66 (kx 2024-12-20 16:11:07 +0300 6354) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 6355) if test -n "${lt_cv_path_LDCXX+set}"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 6356) lt_cv_path_LD=$lt_cv_path_LDCXX
868b2b66 (kx 2024-12-20 16:11:07 +0300 6357) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 6358) $as_unset lt_cv_path_LD
868b2b66 (kx 2024-12-20 16:11:07 +0300 6359) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 6360) test -z "${LDCXX+set}" || LD=$LDCXX
868b2b66 (kx 2024-12-20 16:11:07 +0300 6361) CC=${CXX-"c++"}
868b2b66 (kx 2024-12-20 16:11:07 +0300 6362) CFLAGS=$CXXFLAGS
868b2b66 (kx 2024-12-20 16:11:07 +0300 6363) compiler=$CC
868b2b66 (kx 2024-12-20 16:11:07 +0300 6364) _LT_TAGVAR(compiler, $1)=$CC
868b2b66 (kx 2024-12-20 16:11:07 +0300 6365) _LT_CC_BASENAME([$compiler])
868b2b66 (kx 2024-12-20 16:11:07 +0300 6366)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6367) if test -n "$compiler"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 6368) # We don't want -fno-exception when compiling C++ code, so set the
868b2b66 (kx 2024-12-20 16:11:07 +0300 6369) # no_builtin_flag separately
868b2b66 (kx 2024-12-20 16:11:07 +0300 6370) if test yes = "$GXX"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 6371) _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6372) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 6373) _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 6374) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 6375)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6376) if test yes = "$GXX"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 6377) # Set up default GNU C++ configuration
868b2b66 (kx 2024-12-20 16:11:07 +0300 6378)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6379) LT_PATH_LD
868b2b66 (kx 2024-12-20 16:11:07 +0300 6380)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6381) # Check if GNU C++ uses GNU ld as the underlying linker, since the
868b2b66 (kx 2024-12-20 16:11:07 +0300 6382) # archiving commands below assume that GNU ld is being used.
868b2b66 (kx 2024-12-20 16:11:07 +0300 6383) if test yes = "$with_gnu_ld"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 6384) _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6385) _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6386)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6387) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6388) _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6389)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6390) # If archive_cmds runs LD, not CC, wlarc should be empty
868b2b66 (kx 2024-12-20 16:11:07 +0300 6391) # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
868b2b66 (kx 2024-12-20 16:11:07 +0300 6392) # investigate it a little bit more. (MM)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6393) wlarc='$wl'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6394)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6395) # ancient GNU ld didn't support --whole-archive et. al.
868b2b66 (kx 2024-12-20 16:11:07 +0300 6396) if eval "`$CC -print-prog-name=ld` --help 2>&1" |
868b2b66 (kx 2024-12-20 16:11:07 +0300 6397) $GREP 'no-whole-archive' > /dev/null; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 6398) _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6399) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 6400) _LT_TAGVAR(whole_archive_flag_spec, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 6401) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 6402) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 6403) with_gnu_ld=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 6404) wlarc=
868b2b66 (kx 2024-12-20 16:11:07 +0300 6405)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6406) # A generic and very simple default shared library creation
868b2b66 (kx 2024-12-20 16:11:07 +0300 6407) # command for GNU C++ for the case where it uses the native
868b2b66 (kx 2024-12-20 16:11:07 +0300 6408) # linker, instead of GNU ld. If possible, this setting should
868b2b66 (kx 2024-12-20 16:11:07 +0300 6409) # overridden to take advantage of the native linker features on
868b2b66 (kx 2024-12-20 16:11:07 +0300 6410) # the platform it is being used on.
868b2b66 (kx 2024-12-20 16:11:07 +0300 6411) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6412) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 6413)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6414) # Commands to make compiler produce verbose output that lists
868b2b66 (kx 2024-12-20 16:11:07 +0300 6415) # what "hidden" libraries, object files and flags are used when
868b2b66 (kx 2024-12-20 16:11:07 +0300 6416) # linking a shared library.
868b2b66 (kx 2024-12-20 16:11:07 +0300 6417) output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6418)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6419) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 6420) GXX=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 6421) with_gnu_ld=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 6422) wlarc=
868b2b66 (kx 2024-12-20 16:11:07 +0300 6423) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 6424)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6425) # PORTME: fill in a description of your system's C++ link characteristics
868b2b66 (kx 2024-12-20 16:11:07 +0300 6426) AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
868b2b66 (kx 2024-12-20 16:11:07 +0300 6427) _LT_TAGVAR(ld_shlibs, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 6428) case $host_os in
868b2b66 (kx 2024-12-20 16:11:07 +0300 6429) aix3*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6430) # FIXME: insert proper C++ library support
868b2b66 (kx 2024-12-20 16:11:07 +0300 6431) _LT_TAGVAR(ld_shlibs, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 6432) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 6433) aix[[4-9]]*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6434) if test ia64 = "$host_cpu"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 6435) # On IA64, the linker does run time linking by default, so we don't
868b2b66 (kx 2024-12-20 16:11:07 +0300 6436) # have to do anything special.
868b2b66 (kx 2024-12-20 16:11:07 +0300 6437) aix_use_runtimelinking=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 6438) exp_sym_flag='-Bexport'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6439) no_entry_flag=
868b2b66 (kx 2024-12-20 16:11:07 +0300 6440) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 6441) aix_use_runtimelinking=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 6442)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6443) # Test if we are trying to use run time linking or normal
868b2b66 (kx 2024-12-20 16:11:07 +0300 6444) # AIX style linking. If -brtl is somewhere in LDFLAGS, we
868b2b66 (kx 2024-12-20 16:11:07 +0300 6445) # have runtime linking enabled, and use it for executables.
868b2b66 (kx 2024-12-20 16:11:07 +0300 6446) # For shared libraries, we enable/disable runtime linking
868b2b66 (kx 2024-12-20 16:11:07 +0300 6447) # depending on the kind of the shared library created -
868b2b66 (kx 2024-12-20 16:11:07 +0300 6448) # when "with_aix_soname,aix_use_runtimelinking" is:
868b2b66 (kx 2024-12-20 16:11:07 +0300 6449) # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
868b2b66 (kx 2024-12-20 16:11:07 +0300 6450) # "aix,yes" lib.so shared, rtl:yes, for executables
868b2b66 (kx 2024-12-20 16:11:07 +0300 6451) # lib.a static archive
868b2b66 (kx 2024-12-20 16:11:07 +0300 6452) # "both,no" lib.so.V(shr.o) shared, rtl:yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 6453) # lib.a(lib.so.V) shared, rtl:no, for executables
868b2b66 (kx 2024-12-20 16:11:07 +0300 6454) # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
868b2b66 (kx 2024-12-20 16:11:07 +0300 6455) # lib.a(lib.so.V) shared, rtl:no
868b2b66 (kx 2024-12-20 16:11:07 +0300 6456) # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
868b2b66 (kx 2024-12-20 16:11:07 +0300 6457) # lib.a static archive
868b2b66 (kx 2024-12-20 16:11:07 +0300 6458) case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6459) for ld_flag in $LDFLAGS; do
868b2b66 (kx 2024-12-20 16:11:07 +0300 6460) case $ld_flag in
868b2b66 (kx 2024-12-20 16:11:07 +0300 6461) *-brtl*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6462) aix_use_runtimelinking=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 6463) break
868b2b66 (kx 2024-12-20 16:11:07 +0300 6464) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 6465) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 6466) done
868b2b66 (kx 2024-12-20 16:11:07 +0300 6467) if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 6468) # With aix-soname=svr4, we create the lib.so.V shared archives only,
868b2b66 (kx 2024-12-20 16:11:07 +0300 6469) # so we don't have lib.a shared libs to link our executables.
868b2b66 (kx 2024-12-20 16:11:07 +0300 6470) # We have to force runtime linking in this case.
868b2b66 (kx 2024-12-20 16:11:07 +0300 6471) aix_use_runtimelinking=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 6472) LDFLAGS="$LDFLAGS -Wl,-brtl"
868b2b66 (kx 2024-12-20 16:11:07 +0300 6473) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 6474) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 6475) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 6476)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6477) exp_sym_flag='-bexport'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6478) no_entry_flag='-bnoentry'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6479) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 6480)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6481) # When large executables or shared objects are built, AIX ld can
868b2b66 (kx 2024-12-20 16:11:07 +0300 6482) # have problems creating the table of contents. If linking a library
868b2b66 (kx 2024-12-20 16:11:07 +0300 6483) # or program results in "error TOC overflow" add -mminimal-toc to
868b2b66 (kx 2024-12-20 16:11:07 +0300 6484) # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
868b2b66 (kx 2024-12-20 16:11:07 +0300 6485) # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
868b2b66 (kx 2024-12-20 16:11:07 +0300 6486)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6487) _LT_TAGVAR(archive_cmds, $1)=''
868b2b66 (kx 2024-12-20 16:11:07 +0300 6488) _LT_TAGVAR(hardcode_direct, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 6489) _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 6490) _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6491) _LT_TAGVAR(link_all_deplibs, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 6492) _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6493) case $with_aix_soname,$aix_use_runtimelinking in
868b2b66 (kx 2024-12-20 16:11:07 +0300 6494) aix,*) ;; # no import file
868b2b66 (kx 2024-12-20 16:11:07 +0300 6495) svr4,* | *,yes) # use import file
868b2b66 (kx 2024-12-20 16:11:07 +0300 6496) # The Import File defines what to hardcode.
868b2b66 (kx 2024-12-20 16:11:07 +0300 6497) _LT_TAGVAR(hardcode_direct, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 6498) _LT_TAGVAR(hardcode_direct_absolute, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 6499) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 6500) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 6501)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6502) if test yes = "$GXX"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 6503) case $host_os in aix4.[[012]]|aix4.[[012]].*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6504) # We only want to do this on AIX 4.2 and lower, the check
868b2b66 (kx 2024-12-20 16:11:07 +0300 6505) # below for broken collect2 doesn't work under 4.3+
868b2b66 (kx 2024-12-20 16:11:07 +0300 6506) collect2name=`$CC -print-prog-name=collect2`
868b2b66 (kx 2024-12-20 16:11:07 +0300 6507) if test -f "$collect2name" &&
868b2b66 (kx 2024-12-20 16:11:07 +0300 6508) strings "$collect2name" | $GREP resolve_lib_name >/dev/null
868b2b66 (kx 2024-12-20 16:11:07 +0300 6509) then
868b2b66 (kx 2024-12-20 16:11:07 +0300 6510) # We have reworked collect2
868b2b66 (kx 2024-12-20 16:11:07 +0300 6511) :
868b2b66 (kx 2024-12-20 16:11:07 +0300 6512) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 6513) # We have old collect2
868b2b66 (kx 2024-12-20 16:11:07 +0300 6514) _LT_TAGVAR(hardcode_direct, $1)=unsupported
868b2b66 (kx 2024-12-20 16:11:07 +0300 6515) # It fails to find uninstalled libraries when the uninstalled
868b2b66 (kx 2024-12-20 16:11:07 +0300 6516) # path is not listed in the libpath. Setting hardcode_minus_L
868b2b66 (kx 2024-12-20 16:11:07 +0300 6517) # to unsupported forces relinking
868b2b66 (kx 2024-12-20 16:11:07 +0300 6518) _LT_TAGVAR(hardcode_minus_L, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 6519) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6520) _LT_TAGVAR(hardcode_libdir_separator, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 6521) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 6522) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 6523) shared_flag='-shared'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6524) if test yes = "$aix_use_runtimelinking"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 6525) shared_flag=$shared_flag' $wl-G'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6526) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 6527) # Need to ensure runtime linking is disabled for the traditional
868b2b66 (kx 2024-12-20 16:11:07 +0300 6528) # shared library, or the linker may eventually find shared libraries
868b2b66 (kx 2024-12-20 16:11:07 +0300 6529) # /with/ Import File - we do not want to mix them.
868b2b66 (kx 2024-12-20 16:11:07 +0300 6530) shared_flag_aix='-shared'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6531) shared_flag_svr4='-shared $wl-G'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6532) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 6533) # not using gcc
868b2b66 (kx 2024-12-20 16:11:07 +0300 6534) if test ia64 = "$host_cpu"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 6535) # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
868b2b66 (kx 2024-12-20 16:11:07 +0300 6536) # chokes on -Wl,-G. The following line is correct:
868b2b66 (kx 2024-12-20 16:11:07 +0300 6537) shared_flag='-G'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6538) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 6539) if test yes = "$aix_use_runtimelinking"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 6540) shared_flag='$wl-G'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6541) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 6542) shared_flag='$wl-bM:SRE'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6543) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 6544) shared_flag_aix='$wl-bM:SRE'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6545) shared_flag_svr4='$wl-G'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6546) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 6547) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 6548)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6549) _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6550) # It seems that -bexpall does not export symbols beginning with
868b2b66 (kx 2024-12-20 16:11:07 +0300 6551) # underscore (_), so it is better to generate a list of symbols to
868b2b66 (kx 2024-12-20 16:11:07 +0300 6552) # export.
868b2b66 (kx 2024-12-20 16:11:07 +0300 6553) _LT_TAGVAR(always_export_symbols, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 6554) if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 6555) # Warning - without using the other runtime loading flags (-brtl),
868b2b66 (kx 2024-12-20 16:11:07 +0300 6556) # -berok will link without error, but may produce a broken library.
868b2b66 (kx 2024-12-20 16:11:07 +0300 6557) # The "-G" linker flag allows undefined symbols.
868b2b66 (kx 2024-12-20 16:11:07 +0300 6558) _LT_TAGVAR(no_undefined_flag, $1)='-bernotok'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6559) # Determine the default libpath from the value encoded in an empty
868b2b66 (kx 2024-12-20 16:11:07 +0300 6560) # executable.
868b2b66 (kx 2024-12-20 16:11:07 +0300 6561) _LT_SYS_MODULE_PATH_AIX([$1])
868b2b66 (kx 2024-12-20 16:11:07 +0300 6562) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
868b2b66 (kx 2024-12-20 16:11:07 +0300 6563)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6564) _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
868b2b66 (kx 2024-12-20 16:11:07 +0300 6565) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 6566) if test ia64 = "$host_cpu"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 6567) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6568) _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
868b2b66 (kx 2024-12-20 16:11:07 +0300 6569) _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
868b2b66 (kx 2024-12-20 16:11:07 +0300 6570) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 6571) # Determine the default libpath from the value encoded in an
868b2b66 (kx 2024-12-20 16:11:07 +0300 6572) # empty executable.
868b2b66 (kx 2024-12-20 16:11:07 +0300 6573) _LT_SYS_MODULE_PATH_AIX([$1])
868b2b66 (kx 2024-12-20 16:11:07 +0300 6574) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
868b2b66 (kx 2024-12-20 16:11:07 +0300 6575) # Warning - without using the other run time loading flags,
868b2b66 (kx 2024-12-20 16:11:07 +0300 6576) # -berok will link without error, but may produce a broken library.
868b2b66 (kx 2024-12-20 16:11:07 +0300 6577) _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6578) _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6579) if test yes = "$with_gnu_ld"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 6580) # We only use this code for GNU lds that support --whole-archive.
868b2b66 (kx 2024-12-20 16:11:07 +0300 6581) _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6582) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 6583) # Exported symbols can be pulled into shared objects from archives
868b2b66 (kx 2024-12-20 16:11:07 +0300 6584) _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6585) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 6586) _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 6587) _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6588) # -brtl affects multiple linker settings, -berok does not and is overridden later
868b2b66 (kx 2024-12-20 16:11:07 +0300 6589) compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6590) if test svr4 != "$with_aix_soname"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 6591) # This is similar to how AIX traditionally builds its shared
868b2b66 (kx 2024-12-20 16:11:07 +0300 6592) # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
868b2b66 (kx 2024-12-20 16:11:07 +0300 6593) _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6594) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 6595) if test aix != "$with_aix_soname"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 6596) _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6597) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 6598) # used by -dlpreopen to get the symbols
868b2b66 (kx 2024-12-20 16:11:07 +0300 6599) _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6600) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 6601) _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6602) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 6603) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 6604) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 6605)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6606) beos*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6607) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 6608) _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
868b2b66 (kx 2024-12-20 16:11:07 +0300 6609) # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
868b2b66 (kx 2024-12-20 16:11:07 +0300 6610) # support --undefined. This deserves some investigation. FIXME
868b2b66 (kx 2024-12-20 16:11:07 +0300 6611) _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6612) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 6613) _LT_TAGVAR(ld_shlibs, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 6614) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 6615) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 6616)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6617) chorus*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6618) case $cc_basename in
868b2b66 (kx 2024-12-20 16:11:07 +0300 6619) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6620) # FIXME: insert proper C++ library support
868b2b66 (kx 2024-12-20 16:11:07 +0300 6621) _LT_TAGVAR(ld_shlibs, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 6622) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 6623) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 6624) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 6625)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6626) cygwin* | mingw* | pw32* | cegcc*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6627) case $GXX,$cc_basename in
868b2b66 (kx 2024-12-20 16:11:07 +0300 6628) ,cl* | no,cl*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6629) # Native MSVC
868b2b66 (kx 2024-12-20 16:11:07 +0300 6630) # hardcode_libdir_flag_spec is actually meaningless, as there is
868b2b66 (kx 2024-12-20 16:11:07 +0300 6631) # no search path for DLLs.
868b2b66 (kx 2024-12-20 16:11:07 +0300 6632) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
868b2b66 (kx 2024-12-20 16:11:07 +0300 6633) _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
868b2b66 (kx 2024-12-20 16:11:07 +0300 6634) _LT_TAGVAR(always_export_symbols, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 6635) _LT_TAGVAR(file_list_spec, $1)='@'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6636) # Tell ltmain to make .lib files, not .a files.
868b2b66 (kx 2024-12-20 16:11:07 +0300 6637) libext=lib
868b2b66 (kx 2024-12-20 16:11:07 +0300 6638) # Tell ltmain to make .dll files, not .so files.
868b2b66 (kx 2024-12-20 16:11:07 +0300 6639) shrext_cmds=.dll
868b2b66 (kx 2024-12-20 16:11:07 +0300 6640) # FIXME: Setting linknames here is a bad hack.
868b2b66 (kx 2024-12-20 16:11:07 +0300 6641) _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
868b2b66 (kx 2024-12-20 16:11:07 +0300 6642) _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
868b2b66 (kx 2024-12-20 16:11:07 +0300 6643) cp "$export_symbols" "$output_objdir/$soname.def";
868b2b66 (kx 2024-12-20 16:11:07 +0300 6644) echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
868b2b66 (kx 2024-12-20 16:11:07 +0300 6645) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 6646) $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
868b2b66 (kx 2024-12-20 16:11:07 +0300 6647) fi~
868b2b66 (kx 2024-12-20 16:11:07 +0300 6648) $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
868b2b66 (kx 2024-12-20 16:11:07 +0300 6649) linknames='
868b2b66 (kx 2024-12-20 16:11:07 +0300 6650) # The linker will not automatically build a static lib if we build a DLL.
868b2b66 (kx 2024-12-20 16:11:07 +0300 6651) # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6652) _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 6653) # Don't use ranlib
868b2b66 (kx 2024-12-20 16:11:07 +0300 6654) _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6655) _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
868b2b66 (kx 2024-12-20 16:11:07 +0300 6656) lt_tool_outputfile="@TOOL_OUTPUT@"~
868b2b66 (kx 2024-12-20 16:11:07 +0300 6657) case $lt_outputfile in
868b2b66 (kx 2024-12-20 16:11:07 +0300 6658) *.exe|*.EXE) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 6659) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6660) lt_outputfile=$lt_outputfile.exe
868b2b66 (kx 2024-12-20 16:11:07 +0300 6661) lt_tool_outputfile=$lt_tool_outputfile.exe
868b2b66 (kx 2024-12-20 16:11:07 +0300 6662) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 6663) esac~
868b2b66 (kx 2024-12-20 16:11:07 +0300 6664) func_to_tool_file "$lt_outputfile"~
868b2b66 (kx 2024-12-20 16:11:07 +0300 6665) if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 6666) $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
868b2b66 (kx 2024-12-20 16:11:07 +0300 6667) $RM "$lt_outputfile.manifest";
868b2b66 (kx 2024-12-20 16:11:07 +0300 6668) fi'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6669) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 6670) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6671) # g++
868b2b66 (kx 2024-12-20 16:11:07 +0300 6672) # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
868b2b66 (kx 2024-12-20 16:11:07 +0300 6673) # as there is no search path for DLLs.
868b2b66 (kx 2024-12-20 16:11:07 +0300 6674) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6675) _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6676) _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
868b2b66 (kx 2024-12-20 16:11:07 +0300 6677) _LT_TAGVAR(always_export_symbols, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 6678) _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 6679)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6680) if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 6681) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6682) # If the export-symbols file already is a .def file, use it as
868b2b66 (kx 2024-12-20 16:11:07 +0300 6683) # is; otherwise, prepend EXPORTS...
868b2b66 (kx 2024-12-20 16:11:07 +0300 6684) _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
868b2b66 (kx 2024-12-20 16:11:07 +0300 6685) cp $export_symbols $output_objdir/$soname.def;
868b2b66 (kx 2024-12-20 16:11:07 +0300 6686) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 6687) echo EXPORTS > $output_objdir/$soname.def;
868b2b66 (kx 2024-12-20 16:11:07 +0300 6688) cat $export_symbols >> $output_objdir/$soname.def;
868b2b66 (kx 2024-12-20 16:11:07 +0300 6689) fi~
868b2b66 (kx 2024-12-20 16:11:07 +0300 6690) $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6691) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 6692) _LT_TAGVAR(ld_shlibs, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 6693) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 6694) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 6695) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 6696) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 6697) darwin* | rhapsody*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6698) _LT_DARWIN_LINKER_FEATURES($1)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6699) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 6700)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6701) os2*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6702) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6703) _LT_TAGVAR(hardcode_minus_L, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 6704) _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
868b2b66 (kx 2024-12-20 16:11:07 +0300 6705) shrext_cmds=.dll
868b2b66 (kx 2024-12-20 16:11:07 +0300 6706) _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
868b2b66 (kx 2024-12-20 16:11:07 +0300 6707) $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
868b2b66 (kx 2024-12-20 16:11:07 +0300 6708) $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
868b2b66 (kx 2024-12-20 16:11:07 +0300 6709) $ECHO EXPORTS >> $output_objdir/$libname.def~
868b2b66 (kx 2024-12-20 16:11:07 +0300 6710) emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
868b2b66 (kx 2024-12-20 16:11:07 +0300 6711) $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
868b2b66 (kx 2024-12-20 16:11:07 +0300 6712) emximp -o $lib $output_objdir/$libname.def'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6713) _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
868b2b66 (kx 2024-12-20 16:11:07 +0300 6714) $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
868b2b66 (kx 2024-12-20 16:11:07 +0300 6715) $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
868b2b66 (kx 2024-12-20 16:11:07 +0300 6716) $ECHO EXPORTS >> $output_objdir/$libname.def~
868b2b66 (kx 2024-12-20 16:11:07 +0300 6717) prefix_cmds="$SED"~
868b2b66 (kx 2024-12-20 16:11:07 +0300 6718) if test EXPORTS = "`$SED 1q $export_symbols`"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 6719) prefix_cmds="$prefix_cmds -e 1d";
868b2b66 (kx 2024-12-20 16:11:07 +0300 6720) fi~
868b2b66 (kx 2024-12-20 16:11:07 +0300 6721) prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
868b2b66 (kx 2024-12-20 16:11:07 +0300 6722) cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
868b2b66 (kx 2024-12-20 16:11:07 +0300 6723) $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
868b2b66 (kx 2024-12-20 16:11:07 +0300 6724) emximp -o $lib $output_objdir/$libname.def'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6725) _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6726) _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 6727) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 6728)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6729) dgux*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6730) case $cc_basename in
868b2b66 (kx 2024-12-20 16:11:07 +0300 6731) ec++*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6732) # FIXME: insert proper C++ library support
868b2b66 (kx 2024-12-20 16:11:07 +0300 6733) _LT_TAGVAR(ld_shlibs, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 6734) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 6735) ghcx*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6736) # Green Hills C++ Compiler
868b2b66 (kx 2024-12-20 16:11:07 +0300 6737) # FIXME: insert proper C++ library support
868b2b66 (kx 2024-12-20 16:11:07 +0300 6738) _LT_TAGVAR(ld_shlibs, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 6739) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 6740) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6741) # FIXME: insert proper C++ library support
868b2b66 (kx 2024-12-20 16:11:07 +0300 6742) _LT_TAGVAR(ld_shlibs, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 6743) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 6744) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 6745) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 6746)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6747) freebsd2.*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6748) # C++ shared libraries reported to be fairly broken before
868b2b66 (kx 2024-12-20 16:11:07 +0300 6749) # switch to ELF
868b2b66 (kx 2024-12-20 16:11:07 +0300 6750) _LT_TAGVAR(ld_shlibs, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 6751) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 6752)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6753) freebsd-elf*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6754) _LT_TAGVAR(archive_cmds_need_lc, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 6755) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 6756)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6757) freebsd* | dragonfly*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6758) # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
868b2b66 (kx 2024-12-20 16:11:07 +0300 6759) # conventions
868b2b66 (kx 2024-12-20 16:11:07 +0300 6760) _LT_TAGVAR(ld_shlibs, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 6761) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 6762)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6763) haiku*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6764) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6765) _LT_TAGVAR(link_all_deplibs, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 6766) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 6767)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6768) hpux9*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6769) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6770) _LT_TAGVAR(hardcode_libdir_separator, $1)=:
868b2b66 (kx 2024-12-20 16:11:07 +0300 6771) _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6772) _LT_TAGVAR(hardcode_direct, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 6773) _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
868b2b66 (kx 2024-12-20 16:11:07 +0300 6774) # but as the default
868b2b66 (kx 2024-12-20 16:11:07 +0300 6775) # location of the library.
868b2b66 (kx 2024-12-20 16:11:07 +0300 6776)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6777) case $cc_basename in
868b2b66 (kx 2024-12-20 16:11:07 +0300 6778) CC*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6779) # FIXME: insert proper C++ library support
868b2b66 (kx 2024-12-20 16:11:07 +0300 6780) _LT_TAGVAR(ld_shlibs, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 6781) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 6782) aCC*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6783) _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6784) # Commands to make compiler produce verbose output that lists
868b2b66 (kx 2024-12-20 16:11:07 +0300 6785) # what "hidden" libraries, object files and flags are used when
868b2b66 (kx 2024-12-20 16:11:07 +0300 6786) # linking a shared library.
868b2b66 (kx 2024-12-20 16:11:07 +0300 6787) #
868b2b66 (kx 2024-12-20 16:11:07 +0300 6788) # There doesn't appear to be a way to prevent this compiler from
868b2b66 (kx 2024-12-20 16:11:07 +0300 6789) # explicitly linking system object files so we need to strip them
868b2b66 (kx 2024-12-20 16:11:07 +0300 6790) # from the output so that they don't get included in the library
868b2b66 (kx 2024-12-20 16:11:07 +0300 6791) # dependencies.
868b2b66 (kx 2024-12-20 16:11:07 +0300 6792) output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6793) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 6794) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6795) if test yes = "$GXX"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 6796) _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6797) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 6798) # FIXME: insert proper C++ library support
868b2b66 (kx 2024-12-20 16:11:07 +0300 6799) _LT_TAGVAR(ld_shlibs, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 6800) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 6801) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 6802) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 6803) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 6804)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6805) hpux10*|hpux11*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6806) if test no = "$with_gnu_ld"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 6807) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6808) _LT_TAGVAR(hardcode_libdir_separator, $1)=:
868b2b66 (kx 2024-12-20 16:11:07 +0300 6809)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6810) case $host_cpu in
868b2b66 (kx 2024-12-20 16:11:07 +0300 6811) hppa*64*|ia64*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6812) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 6813) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6814) _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6815) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 6816) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 6817) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 6818) case $host_cpu in
868b2b66 (kx 2024-12-20 16:11:07 +0300 6819) hppa*64*|ia64*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6820) _LT_TAGVAR(hardcode_direct, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 6821) _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 6822) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 6823) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6824) _LT_TAGVAR(hardcode_direct, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 6825) _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 6826) _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
868b2b66 (kx 2024-12-20 16:11:07 +0300 6827) # but as the default
868b2b66 (kx 2024-12-20 16:11:07 +0300 6828) # location of the library.
868b2b66 (kx 2024-12-20 16:11:07 +0300 6829) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 6830) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 6831)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6832) case $cc_basename in
868b2b66 (kx 2024-12-20 16:11:07 +0300 6833) CC*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6834) # FIXME: insert proper C++ library support
868b2b66 (kx 2024-12-20 16:11:07 +0300 6835) _LT_TAGVAR(ld_shlibs, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 6836) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 6837) aCC*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6838) case $host_cpu in
868b2b66 (kx 2024-12-20 16:11:07 +0300 6839) hppa*64*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6840) _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6841) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 6842) ia64*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6843) _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6844) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 6845) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6846) _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6847) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 6848) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 6849) # Commands to make compiler produce verbose output that lists
868b2b66 (kx 2024-12-20 16:11:07 +0300 6850) # what "hidden" libraries, object files and flags are used when
868b2b66 (kx 2024-12-20 16:11:07 +0300 6851) # linking a shared library.
868b2b66 (kx 2024-12-20 16:11:07 +0300 6852) #
868b2b66 (kx 2024-12-20 16:11:07 +0300 6853) # There doesn't appear to be a way to prevent this compiler from
868b2b66 (kx 2024-12-20 16:11:07 +0300 6854) # explicitly linking system object files so we need to strip them
868b2b66 (kx 2024-12-20 16:11:07 +0300 6855) # from the output so that they don't get included in the library
868b2b66 (kx 2024-12-20 16:11:07 +0300 6856) # dependencies.
868b2b66 (kx 2024-12-20 16:11:07 +0300 6857) output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6858) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 6859) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6860) if test yes = "$GXX"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 6861) if test no = "$with_gnu_ld"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 6862) case $host_cpu in
868b2b66 (kx 2024-12-20 16:11:07 +0300 6863) hppa*64*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6864) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6865) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 6866) ia64*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6867) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6868) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 6869) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6870) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6871) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 6872) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 6873) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 6874) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 6875) # FIXME: insert proper C++ library support
868b2b66 (kx 2024-12-20 16:11:07 +0300 6876) _LT_TAGVAR(ld_shlibs, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 6877) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 6878) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 6879) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 6880) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 6881)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6882) interix[[3-9]]*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6883) _LT_TAGVAR(hardcode_direct, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 6884) _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 6885) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6886) _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6887) # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
868b2b66 (kx 2024-12-20 16:11:07 +0300 6888) # Instead, shared libraries are loaded at an image base (0x10000000 by
868b2b66 (kx 2024-12-20 16:11:07 +0300 6889) # default) and relocated if they conflict, which is a slow very memory
868b2b66 (kx 2024-12-20 16:11:07 +0300 6890) # consuming and fragmenting process. To avoid this, we pick a random,
868b2b66 (kx 2024-12-20 16:11:07 +0300 6891) # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
868b2b66 (kx 2024-12-20 16:11:07 +0300 6892) # time. Moving up from 0x10000000 also allows more sbrk(2) space.
868b2b66 (kx 2024-12-20 16:11:07 +0300 6893) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6894) _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6895) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 6896) irix5* | irix6*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6897) case $cc_basename in
868b2b66 (kx 2024-12-20 16:11:07 +0300 6898) CC*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6899) # SGI C++
868b2b66 (kx 2024-12-20 16:11:07 +0300 6900) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6901)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6902) # Archives containing C++ object files must be created using
868b2b66 (kx 2024-12-20 16:11:07 +0300 6903) # "CC -ar", where "CC" is the IRIX C++ compiler. This is
868b2b66 (kx 2024-12-20 16:11:07 +0300 6904) # necessary to make sure instantiated templates are included
868b2b66 (kx 2024-12-20 16:11:07 +0300 6905) # in the archive.
868b2b66 (kx 2024-12-20 16:11:07 +0300 6906) _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6907) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 6908) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6909) if test yes = "$GXX"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 6910) if test no = "$with_gnu_ld"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 6911) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6912) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 6913) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6914) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 6915) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 6916) _LT_TAGVAR(link_all_deplibs, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 6917) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 6918) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 6919) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6920) _LT_TAGVAR(hardcode_libdir_separator, $1)=:
868b2b66 (kx 2024-12-20 16:11:07 +0300 6921) _LT_TAGVAR(inherit_rpath, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 6922) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 6923)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6924) linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6925) case $cc_basename in
868b2b66 (kx 2024-12-20 16:11:07 +0300 6926) KCC*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6927) # Kuck and Associates, Inc. (KAI) C++ Compiler
868b2b66 (kx 2024-12-20 16:11:07 +0300 6928)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6929) # KCC will only create a shared library if the output file
868b2b66 (kx 2024-12-20 16:11:07 +0300 6930) # ends with ".so" (or ".sl" for HP-UX), so rename the library
868b2b66 (kx 2024-12-20 16:11:07 +0300 6931) # to its proper name (with version) after linking.
868b2b66 (kx 2024-12-20 16:11:07 +0300 6932) _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6933) _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6934) # Commands to make compiler produce verbose output that lists
868b2b66 (kx 2024-12-20 16:11:07 +0300 6935) # what "hidden" libraries, object files and flags are used when
868b2b66 (kx 2024-12-20 16:11:07 +0300 6936) # linking a shared library.
868b2b66 (kx 2024-12-20 16:11:07 +0300 6937) #
868b2b66 (kx 2024-12-20 16:11:07 +0300 6938) # There doesn't appear to be a way to prevent this compiler from
868b2b66 (kx 2024-12-20 16:11:07 +0300 6939) # explicitly linking system object files so we need to strip them
868b2b66 (kx 2024-12-20 16:11:07 +0300 6940) # from the output so that they don't get included in the library
868b2b66 (kx 2024-12-20 16:11:07 +0300 6941) # dependencies.
868b2b66 (kx 2024-12-20 16:11:07 +0300 6942) output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6943)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6944) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6945) _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6946)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6947) # Archives containing C++ object files must be created using
868b2b66 (kx 2024-12-20 16:11:07 +0300 6948) # "CC -Bstatic", where "CC" is the KAI C++ compiler.
868b2b66 (kx 2024-12-20 16:11:07 +0300 6949) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6950) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 6951) icpc* | ecpc* )
868b2b66 (kx 2024-12-20 16:11:07 +0300 6952) # Intel C++
868b2b66 (kx 2024-12-20 16:11:07 +0300 6953) with_gnu_ld=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 6954) # version 8.0 and above of icpc choke on multiply defined symbols
868b2b66 (kx 2024-12-20 16:11:07 +0300 6955) # if we add $predep_objects and $postdep_objects, however 7.1 and
868b2b66 (kx 2024-12-20 16:11:07 +0300 6956) # earlier do not add the objects themselves.
868b2b66 (kx 2024-12-20 16:11:07 +0300 6957) case `$CC -V 2>&1` in
868b2b66 (kx 2024-12-20 16:11:07 +0300 6958) *"Version 7."*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6959) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6960) _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6961) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 6962) *) # Version 8.0 or newer
868b2b66 (kx 2024-12-20 16:11:07 +0300 6963) tmp_idyn=
868b2b66 (kx 2024-12-20 16:11:07 +0300 6964) case $host_cpu in
868b2b66 (kx 2024-12-20 16:11:07 +0300 6965) ia64*) tmp_idyn=' -i_dynamic';;
868b2b66 (kx 2024-12-20 16:11:07 +0300 6966) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 6967) _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6968) _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6969) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 6970) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 6971) _LT_TAGVAR(archive_cmds_need_lc, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 6972) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6973) _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6974) _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6975) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 6976) pgCC* | pgcpp*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6977) # Portland Group C++ compiler
868b2b66 (kx 2024-12-20 16:11:07 +0300 6978) case `$CC -V` in
868b2b66 (kx 2024-12-20 16:11:07 +0300 6979) *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 6980) _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
868b2b66 (kx 2024-12-20 16:11:07 +0300 6981) rm -rf $tpldir~
868b2b66 (kx 2024-12-20 16:11:07 +0300 6982) $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
868b2b66 (kx 2024-12-20 16:11:07 +0300 6983) compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6984) _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
868b2b66 (kx 2024-12-20 16:11:07 +0300 6985) rm -rf $tpldir~
868b2b66 (kx 2024-12-20 16:11:07 +0300 6986) $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
868b2b66 (kx 2024-12-20 16:11:07 +0300 6987) $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
868b2b66 (kx 2024-12-20 16:11:07 +0300 6988) $RANLIB $oldlib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6989) _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
868b2b66 (kx 2024-12-20 16:11:07 +0300 6990) rm -rf $tpldir~
868b2b66 (kx 2024-12-20 16:11:07 +0300 6991) $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
868b2b66 (kx 2024-12-20 16:11:07 +0300 6992) $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6993) _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
868b2b66 (kx 2024-12-20 16:11:07 +0300 6994) rm -rf $tpldir~
868b2b66 (kx 2024-12-20 16:11:07 +0300 6995) $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
868b2b66 (kx 2024-12-20 16:11:07 +0300 6996) $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 6997) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 6998) *) # Version 6 and above use weak symbols
868b2b66 (kx 2024-12-20 16:11:07 +0300 6999) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7000) _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7001) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7002) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 7003)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7004) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7005) _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7006) _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7007) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7008) cxx*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7009) # Compaq C++
868b2b66 (kx 2024-12-20 16:11:07 +0300 7010) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7011) _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7012)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7013) runpath_var=LD_RUN_PATH
868b2b66 (kx 2024-12-20 16:11:07 +0300 7014) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7015) _LT_TAGVAR(hardcode_libdir_separator, $1)=:
868b2b66 (kx 2024-12-20 16:11:07 +0300 7016)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7017) # Commands to make compiler produce verbose output that lists
868b2b66 (kx 2024-12-20 16:11:07 +0300 7018) # what "hidden" libraries, object files and flags are used when
868b2b66 (kx 2024-12-20 16:11:07 +0300 7019) # linking a shared library.
868b2b66 (kx 2024-12-20 16:11:07 +0300 7020) #
868b2b66 (kx 2024-12-20 16:11:07 +0300 7021) # There doesn't appear to be a way to prevent this compiler from
868b2b66 (kx 2024-12-20 16:11:07 +0300 7022) # explicitly linking system object files so we need to strip them
868b2b66 (kx 2024-12-20 16:11:07 +0300 7023) # from the output so that they don't get included in the library
868b2b66 (kx 2024-12-20 16:11:07 +0300 7024) # dependencies.
868b2b66 (kx 2024-12-20 16:11:07 +0300 7025) output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7026) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7027) xl* | mpixl* | bgxl*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7028) # IBM XL 8.0 on PPC, with GNU ld
868b2b66 (kx 2024-12-20 16:11:07 +0300 7029) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7030) _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7031) _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7032) if test yes = "$supports_anon_versioning"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 7033) _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
868b2b66 (kx 2024-12-20 16:11:07 +0300 7034) cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
868b2b66 (kx 2024-12-20 16:11:07 +0300 7035) echo "local: *; };" >> $output_objdir/$libname.ver~
868b2b66 (kx 2024-12-20 16:11:07 +0300 7036) $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7037) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 7038) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7039) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7040) case `$CC -V 2>&1 | sed 5q` in
868b2b66 (kx 2024-12-20 16:11:07 +0300 7041) *Sun\ C*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7042) # Sun C++ 5.9
868b2b66 (kx 2024-12-20 16:11:07 +0300 7043) _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7044) _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7045) _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7046) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7047) _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7048) _LT_TAGVAR(compiler_needs_object, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 7049)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7050) # Not sure whether something based on
868b2b66 (kx 2024-12-20 16:11:07 +0300 7051) # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
868b2b66 (kx 2024-12-20 16:11:07 +0300 7052) # would be better.
868b2b66 (kx 2024-12-20 16:11:07 +0300 7053) output_verbose_link_cmd='func_echo_all'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7054)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7055) # Archives containing C++ object files must be created using
868b2b66 (kx 2024-12-20 16:11:07 +0300 7056) # "CC -xar", where "CC" is the Sun C++ compiler. This is
868b2b66 (kx 2024-12-20 16:11:07 +0300 7057) # necessary to make sure instantiated templates are included
868b2b66 (kx 2024-12-20 16:11:07 +0300 7058) # in the archive.
868b2b66 (kx 2024-12-20 16:11:07 +0300 7059) _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7060) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7061) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 7062) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7063) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 7064) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7065)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7066) lynxos*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7067) # FIXME: insert proper C++ library support
868b2b66 (kx 2024-12-20 16:11:07 +0300 7068) _LT_TAGVAR(ld_shlibs, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 7069) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7070)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7071) m88k*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7072) # FIXME: insert proper C++ library support
868b2b66 (kx 2024-12-20 16:11:07 +0300 7073) _LT_TAGVAR(ld_shlibs, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 7074) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7075)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7076) mvs*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7077) case $cc_basename in
868b2b66 (kx 2024-12-20 16:11:07 +0300 7078) cxx*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7079) # FIXME: insert proper C++ library support
868b2b66 (kx 2024-12-20 16:11:07 +0300 7080) _LT_TAGVAR(ld_shlibs, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 7081) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7082) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7083) # FIXME: insert proper C++ library support
868b2b66 (kx 2024-12-20 16:11:07 +0300 7084) _LT_TAGVAR(ld_shlibs, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 7085) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7086) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 7087) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7088)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7089) netbsd*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7090) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 7091) _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7092) wlarc=
868b2b66 (kx 2024-12-20 16:11:07 +0300 7093) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7094) _LT_TAGVAR(hardcode_direct, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 7095) _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 7096) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 7097) # Workaround some broken pre-1.5 toolchains
868b2b66 (kx 2024-12-20 16:11:07 +0300 7098) output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7099) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7100)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7101) *nto* | *qnx*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7102) _LT_TAGVAR(ld_shlibs, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 7103) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7104)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7105) openbsd* | bitrig*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7106) if test -f /usr/libexec/ld.so; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 7107) _LT_TAGVAR(hardcode_direct, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 7108) _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 7109) _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 7110) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7111) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7112) if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 7113) _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7114) _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7115) _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7116) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 7117) output_verbose_link_cmd=func_echo_all
868b2b66 (kx 2024-12-20 16:11:07 +0300 7118) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 7119) _LT_TAGVAR(ld_shlibs, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 7120) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 7121) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7122)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7123) osf3* | osf4* | osf5*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7124) case $cc_basename in
868b2b66 (kx 2024-12-20 16:11:07 +0300 7125) KCC*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7126) # Kuck and Associates, Inc. (KAI) C++ Compiler
868b2b66 (kx 2024-12-20 16:11:07 +0300 7127)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7128) # KCC will only create a shared library if the output file
868b2b66 (kx 2024-12-20 16:11:07 +0300 7129) # ends with ".so" (or ".sl" for HP-UX), so rename the library
868b2b66 (kx 2024-12-20 16:11:07 +0300 7130) # to its proper name (with version) after linking.
868b2b66 (kx 2024-12-20 16:11:07 +0300 7131) _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7132)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7133) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7134) _LT_TAGVAR(hardcode_libdir_separator, $1)=:
868b2b66 (kx 2024-12-20 16:11:07 +0300 7135)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7136) # Archives containing C++ object files must be created using
868b2b66 (kx 2024-12-20 16:11:07 +0300 7137) # the KAI C++ compiler.
868b2b66 (kx 2024-12-20 16:11:07 +0300 7138) case $host in
868b2b66 (kx 2024-12-20 16:11:07 +0300 7139) osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7140) *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7141) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 7142) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7143) RCC*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7144) # Rational C++ 2.4.1
868b2b66 (kx 2024-12-20 16:11:07 +0300 7145) # FIXME: insert proper C++ library support
868b2b66 (kx 2024-12-20 16:11:07 +0300 7146) _LT_TAGVAR(ld_shlibs, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 7147) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7148) cxx*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7149) case $host in
868b2b66 (kx 2024-12-20 16:11:07 +0300 7150) osf3*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7151) _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7152) _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7153) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7154) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7155) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7156) _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7157) _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7158) _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
868b2b66 (kx 2024-12-20 16:11:07 +0300 7159) echo "-hidden">> $lib.exp~
868b2b66 (kx 2024-12-20 16:11:07 +0300 7160) $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
868b2b66 (kx 2024-12-20 16:11:07 +0300 7161) $RM $lib.exp'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7162) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7163) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7164) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 7165)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7166) _LT_TAGVAR(hardcode_libdir_separator, $1)=:
868b2b66 (kx 2024-12-20 16:11:07 +0300 7167)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7168) # Commands to make compiler produce verbose output that lists
868b2b66 (kx 2024-12-20 16:11:07 +0300 7169) # what "hidden" libraries, object files and flags are used when
868b2b66 (kx 2024-12-20 16:11:07 +0300 7170) # linking a shared library.
868b2b66 (kx 2024-12-20 16:11:07 +0300 7171) #
868b2b66 (kx 2024-12-20 16:11:07 +0300 7172) # There doesn't appear to be a way to prevent this compiler from
868b2b66 (kx 2024-12-20 16:11:07 +0300 7173) # explicitly linking system object files so we need to strip them
868b2b66 (kx 2024-12-20 16:11:07 +0300 7174) # from the output so that they don't get included in the library
868b2b66 (kx 2024-12-20 16:11:07 +0300 7175) # dependencies.
868b2b66 (kx 2024-12-20 16:11:07 +0300 7176) output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7177) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7178) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7179) if test yes,no = "$GXX,$with_gnu_ld"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 7180) _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7181) case $host in
868b2b66 (kx 2024-12-20 16:11:07 +0300 7182) osf3*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7183) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7184) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7185) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7186) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7187) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7188) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 7189)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7190) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7191) _LT_TAGVAR(hardcode_libdir_separator, $1)=:
868b2b66 (kx 2024-12-20 16:11:07 +0300 7192)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7193) # Commands to make compiler produce verbose output that lists
868b2b66 (kx 2024-12-20 16:11:07 +0300 7194) # what "hidden" libraries, object files and flags are used when
868b2b66 (kx 2024-12-20 16:11:07 +0300 7195) # linking a shared library.
868b2b66 (kx 2024-12-20 16:11:07 +0300 7196) output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7197)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7198) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 7199) # FIXME: insert proper C++ library support
868b2b66 (kx 2024-12-20 16:11:07 +0300 7200) _LT_TAGVAR(ld_shlibs, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 7201) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 7202) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7203) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 7204) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7205)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7206) psos*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7207) # FIXME: insert proper C++ library support
868b2b66 (kx 2024-12-20 16:11:07 +0300 7208) _LT_TAGVAR(ld_shlibs, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 7209) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7210)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7211) sunos4*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7212) case $cc_basename in
868b2b66 (kx 2024-12-20 16:11:07 +0300 7213) CC*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7214) # Sun C++ 4.x
868b2b66 (kx 2024-12-20 16:11:07 +0300 7215) # FIXME: insert proper C++ library support
868b2b66 (kx 2024-12-20 16:11:07 +0300 7216) _LT_TAGVAR(ld_shlibs, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 7217) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7218) lcc*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7219) # Lucid
868b2b66 (kx 2024-12-20 16:11:07 +0300 7220) # FIXME: insert proper C++ library support
868b2b66 (kx 2024-12-20 16:11:07 +0300 7221) _LT_TAGVAR(ld_shlibs, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 7222) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7223) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7224) # FIXME: insert proper C++ library support
868b2b66 (kx 2024-12-20 16:11:07 +0300 7225) _LT_TAGVAR(ld_shlibs, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 7226) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7227) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 7228) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7229)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7230) solaris*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7231) case $cc_basename in
868b2b66 (kx 2024-12-20 16:11:07 +0300 7232) CC* | sunCC*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7233) # Sun C++ 4.2, 5.x and Centerline C++
868b2b66 (kx 2024-12-20 16:11:07 +0300 7234) _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 7235) _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7236) _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7237) _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
868b2b66 (kx 2024-12-20 16:11:07 +0300 7238) $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7239)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7240) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7241) _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 7242) case $host_os in
868b2b66 (kx 2024-12-20 16:11:07 +0300 7243) solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7244) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7245) # The compiler driver will combine and reorder linker options,
868b2b66 (kx 2024-12-20 16:11:07 +0300 7246) # but understands '-z linker_flag'.
868b2b66 (kx 2024-12-20 16:11:07 +0300 7247) # Supported since Solaris 2.6 (maybe 2.5.1?)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7248) _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7249) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7250) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 7251) _LT_TAGVAR(link_all_deplibs, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 7252)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7253) output_verbose_link_cmd='func_echo_all'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7254)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7255) # Archives containing C++ object files must be created using
868b2b66 (kx 2024-12-20 16:11:07 +0300 7256) # "CC -xar", where "CC" is the Sun C++ compiler. This is
868b2b66 (kx 2024-12-20 16:11:07 +0300 7257) # necessary to make sure instantiated templates are included
868b2b66 (kx 2024-12-20 16:11:07 +0300 7258) # in the archive.
868b2b66 (kx 2024-12-20 16:11:07 +0300 7259) _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7260) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7261) gcx*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7262) # Green Hills C++ Compiler
868b2b66 (kx 2024-12-20 16:11:07 +0300 7263) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7264)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7265) # The C++ compiler must be used to create the archive.
868b2b66 (kx 2024-12-20 16:11:07 +0300 7266) _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7267) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7268) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7269) # GNU C++ compiler with Solaris linker
868b2b66 (kx 2024-12-20 16:11:07 +0300 7270) if test yes,no = "$GXX,$with_gnu_ld"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 7271) _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7272) if $CC --version | $GREP -v '^2\.7' > /dev/null; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 7273) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7274) _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
868b2b66 (kx 2024-12-20 16:11:07 +0300 7275) $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7276)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7277) # Commands to make compiler produce verbose output that lists
868b2b66 (kx 2024-12-20 16:11:07 +0300 7278) # what "hidden" libraries, object files and flags are used when
868b2b66 (kx 2024-12-20 16:11:07 +0300 7279) # linking a shared library.
868b2b66 (kx 2024-12-20 16:11:07 +0300 7280) output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7281) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 7282) # g++ 2.7 appears to require '-G' NOT '-shared' on this
868b2b66 (kx 2024-12-20 16:11:07 +0300 7283) # platform.
868b2b66 (kx 2024-12-20 16:11:07 +0300 7284) _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7285) _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
868b2b66 (kx 2024-12-20 16:11:07 +0300 7286) $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7287)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7288) # Commands to make compiler produce verbose output that lists
868b2b66 (kx 2024-12-20 16:11:07 +0300 7289) # what "hidden" libraries, object files and flags are used when
868b2b66 (kx 2024-12-20 16:11:07 +0300 7290) # linking a shared library.
868b2b66 (kx 2024-12-20 16:11:07 +0300 7291) output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7292) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 7293)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7294) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7295) case $host_os in
868b2b66 (kx 2024-12-20 16:11:07 +0300 7296) solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7297) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7298) _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7299) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7300) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 7301) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 7302) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7303) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 7304) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7305)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7306) sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7307) _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7308) _LT_TAGVAR(archive_cmds_need_lc, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 7309) _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 7310) runpath_var='LD_RUN_PATH'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7311)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7312) case $cc_basename in
868b2b66 (kx 2024-12-20 16:11:07 +0300 7313) CC*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7314) _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7315) _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7316) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7317) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7318) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7319) _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7320) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7321) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 7322) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7323)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7324) sysv5* | sco3.2v5* | sco5v6*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7325) # Note: We CANNOT use -z defs as we might desire, because we do not
868b2b66 (kx 2024-12-20 16:11:07 +0300 7326) # link with -lc, and that would cause any symbols used from libc to
868b2b66 (kx 2024-12-20 16:11:07 +0300 7327) # always be unresolved, which means just about no library would
868b2b66 (kx 2024-12-20 16:11:07 +0300 7328) # ever link correctly. If we're not using GNU ld we use -z text
868b2b66 (kx 2024-12-20 16:11:07 +0300 7329) # though, which does catch some bad symbols but isn't as heavy-handed
868b2b66 (kx 2024-12-20 16:11:07 +0300 7330) # as -z defs.
868b2b66 (kx 2024-12-20 16:11:07 +0300 7331) _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7332) _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7333) _LT_TAGVAR(archive_cmds_need_lc, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 7334) _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 7335) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7336) _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7337) _LT_TAGVAR(link_all_deplibs, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 7338) _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7339) runpath_var='LD_RUN_PATH'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7340)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7341) case $cc_basename in
868b2b66 (kx 2024-12-20 16:11:07 +0300 7342) CC*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7343) _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7344) _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7345) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
868b2b66 (kx 2024-12-20 16:11:07 +0300 7346) '"$_LT_TAGVAR(old_archive_cmds, $1)"
868b2b66 (kx 2024-12-20 16:11:07 +0300 7347) _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
868b2b66 (kx 2024-12-20 16:11:07 +0300 7348) '"$_LT_TAGVAR(reload_cmds, $1)"
868b2b66 (kx 2024-12-20 16:11:07 +0300 7349) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7350) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7351) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7352) _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7353) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7354) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 7355) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7356)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7357) tandem*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7358) case $cc_basename in
868b2b66 (kx 2024-12-20 16:11:07 +0300 7359) NCC*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7360) # NonStop-UX NCC 3.20
868b2b66 (kx 2024-12-20 16:11:07 +0300 7361) # FIXME: insert proper C++ library support
868b2b66 (kx 2024-12-20 16:11:07 +0300 7362) _LT_TAGVAR(ld_shlibs, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 7363) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7364) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7365) # FIXME: insert proper C++ library support
868b2b66 (kx 2024-12-20 16:11:07 +0300 7366) _LT_TAGVAR(ld_shlibs, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 7367) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7368) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 7369) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7370)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7371) vxworks*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7372) # FIXME: insert proper C++ library support
868b2b66 (kx 2024-12-20 16:11:07 +0300 7373) _LT_TAGVAR(ld_shlibs, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 7374) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7375)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7376) *)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7377) # FIXME: insert proper C++ library support
868b2b66 (kx 2024-12-20 16:11:07 +0300 7378) _LT_TAGVAR(ld_shlibs, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 7379) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7380) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 7381)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7382) AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
868b2b66 (kx 2024-12-20 16:11:07 +0300 7383) test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 7384)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7385) _LT_TAGVAR(GCC, $1)=$GXX
868b2b66 (kx 2024-12-20 16:11:07 +0300 7386) _LT_TAGVAR(LD, $1)=$LD
868b2b66 (kx 2024-12-20 16:11:07 +0300 7387)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7388) ## CAVEAT EMPTOR:
868b2b66 (kx 2024-12-20 16:11:07 +0300 7389) ## There is no encapsulation within the following macros, do not change
868b2b66 (kx 2024-12-20 16:11:07 +0300 7390) ## the running order or otherwise move them around unless you know exactly
868b2b66 (kx 2024-12-20 16:11:07 +0300 7391) ## what you are doing...
868b2b66 (kx 2024-12-20 16:11:07 +0300 7392) _LT_SYS_HIDDEN_LIBDEPS($1)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7393) _LT_COMPILER_PIC($1)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7394) _LT_COMPILER_C_O($1)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7395) _LT_COMPILER_FILE_LOCKS($1)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7396) _LT_LINKER_SHLIBS($1)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7397) _LT_SYS_DYNAMIC_LINKER($1)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7398) _LT_LINKER_HARDCODE_LIBPATH($1)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7399)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7400) _LT_CONFIG($1)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7401) fi # test -n "$compiler"
868b2b66 (kx 2024-12-20 16:11:07 +0300 7402)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7403) CC=$lt_save_CC
868b2b66 (kx 2024-12-20 16:11:07 +0300 7404) CFLAGS=$lt_save_CFLAGS
868b2b66 (kx 2024-12-20 16:11:07 +0300 7405) LDCXX=$LD
868b2b66 (kx 2024-12-20 16:11:07 +0300 7406) LD=$lt_save_LD
868b2b66 (kx 2024-12-20 16:11:07 +0300 7407) GCC=$lt_save_GCC
868b2b66 (kx 2024-12-20 16:11:07 +0300 7408) with_gnu_ld=$lt_save_with_gnu_ld
868b2b66 (kx 2024-12-20 16:11:07 +0300 7409) lt_cv_path_LDCXX=$lt_cv_path_LD
868b2b66 (kx 2024-12-20 16:11:07 +0300 7410) lt_cv_path_LD=$lt_save_path_LD
868b2b66 (kx 2024-12-20 16:11:07 +0300 7411) lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
868b2b66 (kx 2024-12-20 16:11:07 +0300 7412) lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
868b2b66 (kx 2024-12-20 16:11:07 +0300 7413) fi # test yes != "$_lt_caught_CXX_error"
868b2b66 (kx 2024-12-20 16:11:07 +0300 7414)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7415) AC_LANG_POP
868b2b66 (kx 2024-12-20 16:11:07 +0300 7416) ])# _LT_LANG_CXX_CONFIG
868b2b66 (kx 2024-12-20 16:11:07 +0300 7417)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7418)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7419) # _LT_FUNC_STRIPNAME_CNF
868b2b66 (kx 2024-12-20 16:11:07 +0300 7420) # ----------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 7421) # func_stripname_cnf prefix suffix name
868b2b66 (kx 2024-12-20 16:11:07 +0300 7422) # strip PREFIX and SUFFIX off of NAME.
868b2b66 (kx 2024-12-20 16:11:07 +0300 7423) # PREFIX and SUFFIX must not contain globbing or regex special
868b2b66 (kx 2024-12-20 16:11:07 +0300 7424) # characters, hashes, percent signs, but SUFFIX may contain a leading
868b2b66 (kx 2024-12-20 16:11:07 +0300 7425) # dot (in which case that matches only a dot).
868b2b66 (kx 2024-12-20 16:11:07 +0300 7426) #
868b2b66 (kx 2024-12-20 16:11:07 +0300 7427) # This function is identical to the (non-XSI) version of func_stripname,
868b2b66 (kx 2024-12-20 16:11:07 +0300 7428) # except this one can be used by m4 code that may be executed by configure,
868b2b66 (kx 2024-12-20 16:11:07 +0300 7429) # rather than the libtool script.
868b2b66 (kx 2024-12-20 16:11:07 +0300 7430) m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 7431) AC_REQUIRE([_LT_DECL_SED])
868b2b66 (kx 2024-12-20 16:11:07 +0300 7432) AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
868b2b66 (kx 2024-12-20 16:11:07 +0300 7433) func_stripname_cnf ()
868b2b66 (kx 2024-12-20 16:11:07 +0300 7434) {
868b2b66 (kx 2024-12-20 16:11:07 +0300 7435) case @S|@2 in
868b2b66 (kx 2024-12-20 16:11:07 +0300 7436) .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7437) *) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7438) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 7439) } # func_stripname_cnf
868b2b66 (kx 2024-12-20 16:11:07 +0300 7440) ])# _LT_FUNC_STRIPNAME_CNF
868b2b66 (kx 2024-12-20 16:11:07 +0300 7441)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7442)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7443) # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
868b2b66 (kx 2024-12-20 16:11:07 +0300 7444) # ---------------------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 7445) # Figure out "hidden" library dependencies from verbose
868b2b66 (kx 2024-12-20 16:11:07 +0300 7446) # compiler output when linking a shared library.
868b2b66 (kx 2024-12-20 16:11:07 +0300 7447) # Parse the compiler output and extract the necessary
868b2b66 (kx 2024-12-20 16:11:07 +0300 7448) # objects, libraries and library flags.
868b2b66 (kx 2024-12-20 16:11:07 +0300 7449) m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
868b2b66 (kx 2024-12-20 16:11:07 +0300 7450) [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 7451) AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 7452) # Dependencies to place before and after the object being linked:
868b2b66 (kx 2024-12-20 16:11:07 +0300 7453) _LT_TAGVAR(predep_objects, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 7454) _LT_TAGVAR(postdep_objects, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 7455) _LT_TAGVAR(predeps, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 7456) _LT_TAGVAR(postdeps, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 7457) _LT_TAGVAR(compiler_lib_search_path, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 7458)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7459) dnl we can't use the lt_simple_compile_test_code here,
868b2b66 (kx 2024-12-20 16:11:07 +0300 7460) dnl because it contains code intended for an executable,
868b2b66 (kx 2024-12-20 16:11:07 +0300 7461) dnl not a library. It's possible we should let each
868b2b66 (kx 2024-12-20 16:11:07 +0300 7462) dnl tag define a new lt_????_link_test_code variable,
868b2b66 (kx 2024-12-20 16:11:07 +0300 7463) dnl but it's only used here...
868b2b66 (kx 2024-12-20 16:11:07 +0300 7464) m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
868b2b66 (kx 2024-12-20 16:11:07 +0300 7465) int a;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7466) void foo (void) { a = 0; }
868b2b66 (kx 2024-12-20 16:11:07 +0300 7467) _LT_EOF
868b2b66 (kx 2024-12-20 16:11:07 +0300 7468) ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
868b2b66 (kx 2024-12-20 16:11:07 +0300 7469) class Foo
868b2b66 (kx 2024-12-20 16:11:07 +0300 7470) {
868b2b66 (kx 2024-12-20 16:11:07 +0300 7471) public:
868b2b66 (kx 2024-12-20 16:11:07 +0300 7472) Foo (void) { a = 0; }
868b2b66 (kx 2024-12-20 16:11:07 +0300 7473) private:
868b2b66 (kx 2024-12-20 16:11:07 +0300 7474) int a;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7475) };
868b2b66 (kx 2024-12-20 16:11:07 +0300 7476) _LT_EOF
868b2b66 (kx 2024-12-20 16:11:07 +0300 7477) ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
868b2b66 (kx 2024-12-20 16:11:07 +0300 7478) subroutine foo
868b2b66 (kx 2024-12-20 16:11:07 +0300 7479) implicit none
868b2b66 (kx 2024-12-20 16:11:07 +0300 7480) integer*4 a
868b2b66 (kx 2024-12-20 16:11:07 +0300 7481) a=0
868b2b66 (kx 2024-12-20 16:11:07 +0300 7482) return
868b2b66 (kx 2024-12-20 16:11:07 +0300 7483) end
868b2b66 (kx 2024-12-20 16:11:07 +0300 7484) _LT_EOF
868b2b66 (kx 2024-12-20 16:11:07 +0300 7485) ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
868b2b66 (kx 2024-12-20 16:11:07 +0300 7486) subroutine foo
868b2b66 (kx 2024-12-20 16:11:07 +0300 7487) implicit none
868b2b66 (kx 2024-12-20 16:11:07 +0300 7488) integer a
868b2b66 (kx 2024-12-20 16:11:07 +0300 7489) a=0
868b2b66 (kx 2024-12-20 16:11:07 +0300 7490) return
868b2b66 (kx 2024-12-20 16:11:07 +0300 7491) end
868b2b66 (kx 2024-12-20 16:11:07 +0300 7492) _LT_EOF
868b2b66 (kx 2024-12-20 16:11:07 +0300 7493) ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
868b2b66 (kx 2024-12-20 16:11:07 +0300 7494) public class foo {
868b2b66 (kx 2024-12-20 16:11:07 +0300 7495) private int a;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7496) public void bar (void) {
868b2b66 (kx 2024-12-20 16:11:07 +0300 7497) a = 0;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7498) }
868b2b66 (kx 2024-12-20 16:11:07 +0300 7499) };
868b2b66 (kx 2024-12-20 16:11:07 +0300 7500) _LT_EOF
868b2b66 (kx 2024-12-20 16:11:07 +0300 7501) ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
868b2b66 (kx 2024-12-20 16:11:07 +0300 7502) package foo
868b2b66 (kx 2024-12-20 16:11:07 +0300 7503) func foo() {
868b2b66 (kx 2024-12-20 16:11:07 +0300 7504) }
868b2b66 (kx 2024-12-20 16:11:07 +0300 7505) _LT_EOF
868b2b66 (kx 2024-12-20 16:11:07 +0300 7506) ])
868b2b66 (kx 2024-12-20 16:11:07 +0300 7507)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7508) _lt_libdeps_save_CFLAGS=$CFLAGS
868b2b66 (kx 2024-12-20 16:11:07 +0300 7509) case "$CC $CFLAGS " in #(
868b2b66 (kx 2024-12-20 16:11:07 +0300 7510) *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7511) *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7512) *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7513) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 7514)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7515) dnl Parse the compiler output and extract the necessary
868b2b66 (kx 2024-12-20 16:11:07 +0300 7516) dnl objects, libraries and library flags.
868b2b66 (kx 2024-12-20 16:11:07 +0300 7517) if AC_TRY_EVAL(ac_compile); then
868b2b66 (kx 2024-12-20 16:11:07 +0300 7518) # Parse the compiler output and extract the necessary
868b2b66 (kx 2024-12-20 16:11:07 +0300 7519) # objects, libraries and library flags.
868b2b66 (kx 2024-12-20 16:11:07 +0300 7520)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7521) # Sentinel used to keep track of whether or not we are before
868b2b66 (kx 2024-12-20 16:11:07 +0300 7522) # the conftest object file.
868b2b66 (kx 2024-12-20 16:11:07 +0300 7523) pre_test_object_deps_done=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 7524)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7525) for p in `eval "$output_verbose_link_cmd"`; do
868b2b66 (kx 2024-12-20 16:11:07 +0300 7526) case $prev$p in
868b2b66 (kx 2024-12-20 16:11:07 +0300 7527)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7528) -L* | -R* | -l*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7529) # Some compilers place space between "-{L,R}" and the path.
868b2b66 (kx 2024-12-20 16:11:07 +0300 7530) # Remove the space.
868b2b66 (kx 2024-12-20 16:11:07 +0300 7531) if test x-L = "$p" ||
868b2b66 (kx 2024-12-20 16:11:07 +0300 7532) test x-R = "$p"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 7533) prev=$p
868b2b66 (kx 2024-12-20 16:11:07 +0300 7534) continue
868b2b66 (kx 2024-12-20 16:11:07 +0300 7535) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 7536)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7537) # Expand the sysroot to ease extracting the directories later.
868b2b66 (kx 2024-12-20 16:11:07 +0300 7538) if test -z "$prev"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 7539) case $p in
868b2b66 (kx 2024-12-20 16:11:07 +0300 7540) -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7541) -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7542) -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7543) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 7544) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 7545) case $p in
868b2b66 (kx 2024-12-20 16:11:07 +0300 7546) =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7547) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 7548) if test no = "$pre_test_object_deps_done"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 7549) case $prev in
868b2b66 (kx 2024-12-20 16:11:07 +0300 7550) -L | -R)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7551) # Internal compiler library paths should come after those
868b2b66 (kx 2024-12-20 16:11:07 +0300 7552) # provided the user. The postdeps already come after the
868b2b66 (kx 2024-12-20 16:11:07 +0300 7553) # user supplied libs so there is no need to process them.
868b2b66 (kx 2024-12-20 16:11:07 +0300 7554) if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 7555) _LT_TAGVAR(compiler_lib_search_path, $1)=$prev$p
868b2b66 (kx 2024-12-20 16:11:07 +0300 7556) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 7557) _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} $prev$p"
868b2b66 (kx 2024-12-20 16:11:07 +0300 7558) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 7559) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7560) # The "-l" case would never come before the object being
868b2b66 (kx 2024-12-20 16:11:07 +0300 7561) # linked, so don't bother handling this case.
868b2b66 (kx 2024-12-20 16:11:07 +0300 7562) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 7563) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 7564) if test -z "$_LT_TAGVAR(postdeps, $1)"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 7565) _LT_TAGVAR(postdeps, $1)=$prev$p
868b2b66 (kx 2024-12-20 16:11:07 +0300 7566) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 7567) _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} $prev$p"
868b2b66 (kx 2024-12-20 16:11:07 +0300 7568) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 7569) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 7570) prev=
868b2b66 (kx 2024-12-20 16:11:07 +0300 7571) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7572)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7573) *.lto.$objext) ;; # Ignore GCC LTO objects
868b2b66 (kx 2024-12-20 16:11:07 +0300 7574) *.$objext)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7575) # This assumes that the test object file only shows up
868b2b66 (kx 2024-12-20 16:11:07 +0300 7576) # once in the compiler output.
868b2b66 (kx 2024-12-20 16:11:07 +0300 7577) if test "$p" = "conftest.$objext"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 7578) pre_test_object_deps_done=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 7579) continue
868b2b66 (kx 2024-12-20 16:11:07 +0300 7580) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 7581)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7582) if test no = "$pre_test_object_deps_done"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 7583) if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 7584) _LT_TAGVAR(predep_objects, $1)=$p
868b2b66 (kx 2024-12-20 16:11:07 +0300 7585) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 7586) _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
868b2b66 (kx 2024-12-20 16:11:07 +0300 7587) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 7588) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 7589) if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 7590) _LT_TAGVAR(postdep_objects, $1)=$p
868b2b66 (kx 2024-12-20 16:11:07 +0300 7591) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 7592) _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
868b2b66 (kx 2024-12-20 16:11:07 +0300 7593) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 7594) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 7595) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7596)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7597) *) ;; # Ignore the rest.
868b2b66 (kx 2024-12-20 16:11:07 +0300 7598)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7599) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 7600) done
868b2b66 (kx 2024-12-20 16:11:07 +0300 7601)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7602) # Clean up.
868b2b66 (kx 2024-12-20 16:11:07 +0300 7603) rm -f a.out a.exe
868b2b66 (kx 2024-12-20 16:11:07 +0300 7604) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 7605) echo "libtool.m4: error: problem compiling $1 test program"
868b2b66 (kx 2024-12-20 16:11:07 +0300 7606) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 7607)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7608) $RM -f confest.$objext
868b2b66 (kx 2024-12-20 16:11:07 +0300 7609) CFLAGS=$_lt_libdeps_save_CFLAGS
868b2b66 (kx 2024-12-20 16:11:07 +0300 7610)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7611) # PORTME: override above test on systems where it is broken
868b2b66 (kx 2024-12-20 16:11:07 +0300 7612) m4_if([$1], [CXX],
868b2b66 (kx 2024-12-20 16:11:07 +0300 7613) [case $host_os in
868b2b66 (kx 2024-12-20 16:11:07 +0300 7614) interix[[3-9]]*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7615) # Interix 3.5 installs completely hosed .la files for C++, so rather than
868b2b66 (kx 2024-12-20 16:11:07 +0300 7616) # hack all around it, let's just trust "g++" to DTRT.
868b2b66 (kx 2024-12-20 16:11:07 +0300 7617) _LT_TAGVAR(predep_objects,$1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 7618) _LT_TAGVAR(postdep_objects,$1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 7619) _LT_TAGVAR(postdeps,$1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 7620) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7621) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 7622) ])
868b2b66 (kx 2024-12-20 16:11:07 +0300 7623)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7624) case " $_LT_TAGVAR(postdeps, $1) " in
868b2b66 (kx 2024-12-20 16:11:07 +0300 7625) *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7626) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 7627) _LT_TAGVAR(compiler_lib_search_dirs, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 7628) if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 7629) _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'`
868b2b66 (kx 2024-12-20 16:11:07 +0300 7630) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 7631) _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
868b2b66 (kx 2024-12-20 16:11:07 +0300 7632) [The directories searched by this compiler when creating a shared library])
868b2b66 (kx 2024-12-20 16:11:07 +0300 7633) _LT_TAGDECL([], [predep_objects], [1],
868b2b66 (kx 2024-12-20 16:11:07 +0300 7634) [Dependencies to place before and after the objects being linked to
868b2b66 (kx 2024-12-20 16:11:07 +0300 7635) create a shared library])
868b2b66 (kx 2024-12-20 16:11:07 +0300 7636) _LT_TAGDECL([], [postdep_objects], [1])
868b2b66 (kx 2024-12-20 16:11:07 +0300 7637) _LT_TAGDECL([], [predeps], [1])
868b2b66 (kx 2024-12-20 16:11:07 +0300 7638) _LT_TAGDECL([], [postdeps], [1])
868b2b66 (kx 2024-12-20 16:11:07 +0300 7639) _LT_TAGDECL([], [compiler_lib_search_path], [1],
868b2b66 (kx 2024-12-20 16:11:07 +0300 7640) [The library search path used internally by the compiler when linking
868b2b66 (kx 2024-12-20 16:11:07 +0300 7641) a shared library])
868b2b66 (kx 2024-12-20 16:11:07 +0300 7642) ])# _LT_SYS_HIDDEN_LIBDEPS
868b2b66 (kx 2024-12-20 16:11:07 +0300 7643)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7644)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7645) # _LT_LANG_F77_CONFIG([TAG])
868b2b66 (kx 2024-12-20 16:11:07 +0300 7646) # --------------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 7647) # Ensure that the configuration variables for a Fortran 77 compiler are
868b2b66 (kx 2024-12-20 16:11:07 +0300 7648) # suitably defined. These variables are subsequently used by _LT_CONFIG
868b2b66 (kx 2024-12-20 16:11:07 +0300 7649) # to write the compiler configuration to 'libtool'.
868b2b66 (kx 2024-12-20 16:11:07 +0300 7650) m4_defun([_LT_LANG_F77_CONFIG],
868b2b66 (kx 2024-12-20 16:11:07 +0300 7651) [AC_LANG_PUSH(Fortran 77)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7652) if test -z "$F77" || test no = "$F77"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 7653) _lt_disable_F77=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 7654) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 7655)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7656) _LT_TAGVAR(archive_cmds_need_lc, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 7657) _LT_TAGVAR(allow_undefined_flag, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 7658) _LT_TAGVAR(always_export_symbols, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 7659) _LT_TAGVAR(archive_expsym_cmds, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 7660) _LT_TAGVAR(export_dynamic_flag_spec, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 7661) _LT_TAGVAR(hardcode_direct, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 7662) _LT_TAGVAR(hardcode_direct_absolute, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 7663) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 7664) _LT_TAGVAR(hardcode_libdir_separator, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 7665) _LT_TAGVAR(hardcode_minus_L, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 7666) _LT_TAGVAR(hardcode_automatic, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 7667) _LT_TAGVAR(inherit_rpath, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 7668) _LT_TAGVAR(module_cmds, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 7669) _LT_TAGVAR(module_expsym_cmds, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 7670) _LT_TAGVAR(link_all_deplibs, $1)=unknown
868b2b66 (kx 2024-12-20 16:11:07 +0300 7671) _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
868b2b66 (kx 2024-12-20 16:11:07 +0300 7672) _LT_TAGVAR(reload_flag, $1)=$reload_flag
868b2b66 (kx 2024-12-20 16:11:07 +0300 7673) _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
868b2b66 (kx 2024-12-20 16:11:07 +0300 7674) _LT_TAGVAR(no_undefined_flag, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 7675) _LT_TAGVAR(whole_archive_flag_spec, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 7676) _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 7677)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7678) # Source file extension for f77 test sources.
868b2b66 (kx 2024-12-20 16:11:07 +0300 7679) ac_ext=f
868b2b66 (kx 2024-12-20 16:11:07 +0300 7680)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7681) # Object file extension for compiled f77 test sources.
868b2b66 (kx 2024-12-20 16:11:07 +0300 7682) objext=o
868b2b66 (kx 2024-12-20 16:11:07 +0300 7683) _LT_TAGVAR(objext, $1)=$objext
868b2b66 (kx 2024-12-20 16:11:07 +0300 7684)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7685) # No sense in running all these tests if we already determined that
868b2b66 (kx 2024-12-20 16:11:07 +0300 7686) # the F77 compiler isn't working. Some variables (like enable_shared)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7687) # are currently assumed to apply to all compilers on this platform,
868b2b66 (kx 2024-12-20 16:11:07 +0300 7688) # and will be corrupted by setting them based on a non-working compiler.
868b2b66 (kx 2024-12-20 16:11:07 +0300 7689) if test yes != "$_lt_disable_F77"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 7690) # Code to be used in simple compile tests
868b2b66 (kx 2024-12-20 16:11:07 +0300 7691) lt_simple_compile_test_code="\
868b2b66 (kx 2024-12-20 16:11:07 +0300 7692) subroutine t
868b2b66 (kx 2024-12-20 16:11:07 +0300 7693) return
868b2b66 (kx 2024-12-20 16:11:07 +0300 7694) end
868b2b66 (kx 2024-12-20 16:11:07 +0300 7695) "
868b2b66 (kx 2024-12-20 16:11:07 +0300 7696)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7697) # Code to be used in simple link tests
868b2b66 (kx 2024-12-20 16:11:07 +0300 7698) lt_simple_link_test_code="\
868b2b66 (kx 2024-12-20 16:11:07 +0300 7699) program t
868b2b66 (kx 2024-12-20 16:11:07 +0300 7700) end
868b2b66 (kx 2024-12-20 16:11:07 +0300 7701) "
868b2b66 (kx 2024-12-20 16:11:07 +0300 7702)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7703) # ltmain only uses $CC for tagged configurations so make sure $CC is set.
868b2b66 (kx 2024-12-20 16:11:07 +0300 7704) _LT_TAG_COMPILER
868b2b66 (kx 2024-12-20 16:11:07 +0300 7705)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7706) # save warnings/boilerplate of simple test code
868b2b66 (kx 2024-12-20 16:11:07 +0300 7707) _LT_COMPILER_BOILERPLATE
868b2b66 (kx 2024-12-20 16:11:07 +0300 7708) _LT_LINKER_BOILERPLATE
868b2b66 (kx 2024-12-20 16:11:07 +0300 7709)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7710) # Allow CC to be a program name with arguments.
868b2b66 (kx 2024-12-20 16:11:07 +0300 7711) lt_save_CC=$CC
868b2b66 (kx 2024-12-20 16:11:07 +0300 7712) lt_save_GCC=$GCC
868b2b66 (kx 2024-12-20 16:11:07 +0300 7713) lt_save_CFLAGS=$CFLAGS
868b2b66 (kx 2024-12-20 16:11:07 +0300 7714) CC=${F77-"f77"}
868b2b66 (kx 2024-12-20 16:11:07 +0300 7715) CFLAGS=$FFLAGS
868b2b66 (kx 2024-12-20 16:11:07 +0300 7716) compiler=$CC
868b2b66 (kx 2024-12-20 16:11:07 +0300 7717) _LT_TAGVAR(compiler, $1)=$CC
868b2b66 (kx 2024-12-20 16:11:07 +0300 7718) _LT_CC_BASENAME([$compiler])
868b2b66 (kx 2024-12-20 16:11:07 +0300 7719) GCC=$G77
868b2b66 (kx 2024-12-20 16:11:07 +0300 7720) if test -n "$compiler"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 7721) AC_MSG_CHECKING([if libtool supports shared libraries])
868b2b66 (kx 2024-12-20 16:11:07 +0300 7722) AC_MSG_RESULT([$can_build_shared])
868b2b66 (kx 2024-12-20 16:11:07 +0300 7723)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7724) AC_MSG_CHECKING([whether to build shared libraries])
868b2b66 (kx 2024-12-20 16:11:07 +0300 7725) test no = "$can_build_shared" && enable_shared=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 7726)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7727) # On AIX, shared libraries and static libraries use the same namespace, and
868b2b66 (kx 2024-12-20 16:11:07 +0300 7728) # are all built from PIC.
868b2b66 (kx 2024-12-20 16:11:07 +0300 7729) case $host_os in
868b2b66 (kx 2024-12-20 16:11:07 +0300 7730) aix3*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7731) test yes = "$enable_shared" && enable_static=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 7732) if test -n "$RANLIB"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 7733) archive_cmds="$archive_cmds~\$RANLIB \$lib"
868b2b66 (kx 2024-12-20 16:11:07 +0300 7734) postinstall_cmds='$RANLIB $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7735) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 7736) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7737) aix[[4-9]]*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7738) if test ia64 != "$host_cpu"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 7739) case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
868b2b66 (kx 2024-12-20 16:11:07 +0300 7740) yes,aix,yes) ;; # shared object as lib.so file only
868b2b66 (kx 2024-12-20 16:11:07 +0300 7741) yes,svr4,*) ;; # shared object as lib.so archive member only
868b2b66 (kx 2024-12-20 16:11:07 +0300 7742) yes,*) enable_static=no ;; # shared object in lib.a archive as well
868b2b66 (kx 2024-12-20 16:11:07 +0300 7743) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 7744) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 7745) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7746) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 7747) AC_MSG_RESULT([$enable_shared])
868b2b66 (kx 2024-12-20 16:11:07 +0300 7748)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7749) AC_MSG_CHECKING([whether to build static libraries])
868b2b66 (kx 2024-12-20 16:11:07 +0300 7750) # Make sure either enable_shared or enable_static is yes.
868b2b66 (kx 2024-12-20 16:11:07 +0300 7751) test yes = "$enable_shared" || enable_static=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 7752) AC_MSG_RESULT([$enable_static])
868b2b66 (kx 2024-12-20 16:11:07 +0300 7753)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7754) _LT_TAGVAR(GCC, $1)=$G77
868b2b66 (kx 2024-12-20 16:11:07 +0300 7755) _LT_TAGVAR(LD, $1)=$LD
868b2b66 (kx 2024-12-20 16:11:07 +0300 7756)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7757) ## CAVEAT EMPTOR:
868b2b66 (kx 2024-12-20 16:11:07 +0300 7758) ## There is no encapsulation within the following macros, do not change
868b2b66 (kx 2024-12-20 16:11:07 +0300 7759) ## the running order or otherwise move them around unless you know exactly
868b2b66 (kx 2024-12-20 16:11:07 +0300 7760) ## what you are doing...
868b2b66 (kx 2024-12-20 16:11:07 +0300 7761) _LT_COMPILER_PIC($1)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7762) _LT_COMPILER_C_O($1)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7763) _LT_COMPILER_FILE_LOCKS($1)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7764) _LT_LINKER_SHLIBS($1)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7765) _LT_SYS_DYNAMIC_LINKER($1)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7766) _LT_LINKER_HARDCODE_LIBPATH($1)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7767)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7768) _LT_CONFIG($1)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7769) fi # test -n "$compiler"
868b2b66 (kx 2024-12-20 16:11:07 +0300 7770)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7771) GCC=$lt_save_GCC
868b2b66 (kx 2024-12-20 16:11:07 +0300 7772) CC=$lt_save_CC
868b2b66 (kx 2024-12-20 16:11:07 +0300 7773) CFLAGS=$lt_save_CFLAGS
868b2b66 (kx 2024-12-20 16:11:07 +0300 7774) fi # test yes != "$_lt_disable_F77"
868b2b66 (kx 2024-12-20 16:11:07 +0300 7775)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7776) AC_LANG_POP
868b2b66 (kx 2024-12-20 16:11:07 +0300 7777) ])# _LT_LANG_F77_CONFIG
868b2b66 (kx 2024-12-20 16:11:07 +0300 7778)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7779)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7780) # _LT_LANG_FC_CONFIG([TAG])
868b2b66 (kx 2024-12-20 16:11:07 +0300 7781) # -------------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 7782) # Ensure that the configuration variables for a Fortran compiler are
868b2b66 (kx 2024-12-20 16:11:07 +0300 7783) # suitably defined. These variables are subsequently used by _LT_CONFIG
868b2b66 (kx 2024-12-20 16:11:07 +0300 7784) # to write the compiler configuration to 'libtool'.
868b2b66 (kx 2024-12-20 16:11:07 +0300 7785) m4_defun([_LT_LANG_FC_CONFIG],
868b2b66 (kx 2024-12-20 16:11:07 +0300 7786) [AC_LANG_PUSH(Fortran)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7787)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7788) if test -z "$FC" || test no = "$FC"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 7789) _lt_disable_FC=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 7790) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 7791)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7792) _LT_TAGVAR(archive_cmds_need_lc, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 7793) _LT_TAGVAR(allow_undefined_flag, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 7794) _LT_TAGVAR(always_export_symbols, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 7795) _LT_TAGVAR(archive_expsym_cmds, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 7796) _LT_TAGVAR(export_dynamic_flag_spec, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 7797) _LT_TAGVAR(hardcode_direct, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 7798) _LT_TAGVAR(hardcode_direct_absolute, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 7799) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 7800) _LT_TAGVAR(hardcode_libdir_separator, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 7801) _LT_TAGVAR(hardcode_minus_L, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 7802) _LT_TAGVAR(hardcode_automatic, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 7803) _LT_TAGVAR(inherit_rpath, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 7804) _LT_TAGVAR(module_cmds, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 7805) _LT_TAGVAR(module_expsym_cmds, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 7806) _LT_TAGVAR(link_all_deplibs, $1)=unknown
868b2b66 (kx 2024-12-20 16:11:07 +0300 7807) _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
868b2b66 (kx 2024-12-20 16:11:07 +0300 7808) _LT_TAGVAR(reload_flag, $1)=$reload_flag
868b2b66 (kx 2024-12-20 16:11:07 +0300 7809) _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
868b2b66 (kx 2024-12-20 16:11:07 +0300 7810) _LT_TAGVAR(no_undefined_flag, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 7811) _LT_TAGVAR(whole_archive_flag_spec, $1)=
868b2b66 (kx 2024-12-20 16:11:07 +0300 7812) _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 7813)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7814) # Source file extension for fc test sources.
868b2b66 (kx 2024-12-20 16:11:07 +0300 7815) ac_ext=${ac_fc_srcext-f}
868b2b66 (kx 2024-12-20 16:11:07 +0300 7816)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7817) # Object file extension for compiled fc test sources.
868b2b66 (kx 2024-12-20 16:11:07 +0300 7818) objext=o
868b2b66 (kx 2024-12-20 16:11:07 +0300 7819) _LT_TAGVAR(objext, $1)=$objext
868b2b66 (kx 2024-12-20 16:11:07 +0300 7820)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7821) # No sense in running all these tests if we already determined that
868b2b66 (kx 2024-12-20 16:11:07 +0300 7822) # the FC compiler isn't working. Some variables (like enable_shared)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7823) # are currently assumed to apply to all compilers on this platform,
868b2b66 (kx 2024-12-20 16:11:07 +0300 7824) # and will be corrupted by setting them based on a non-working compiler.
868b2b66 (kx 2024-12-20 16:11:07 +0300 7825) if test yes != "$_lt_disable_FC"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 7826) # Code to be used in simple compile tests
868b2b66 (kx 2024-12-20 16:11:07 +0300 7827) lt_simple_compile_test_code="\
868b2b66 (kx 2024-12-20 16:11:07 +0300 7828) subroutine t
868b2b66 (kx 2024-12-20 16:11:07 +0300 7829) return
868b2b66 (kx 2024-12-20 16:11:07 +0300 7830) end
868b2b66 (kx 2024-12-20 16:11:07 +0300 7831) "
868b2b66 (kx 2024-12-20 16:11:07 +0300 7832)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7833) # Code to be used in simple link tests
868b2b66 (kx 2024-12-20 16:11:07 +0300 7834) lt_simple_link_test_code="\
868b2b66 (kx 2024-12-20 16:11:07 +0300 7835) program t
868b2b66 (kx 2024-12-20 16:11:07 +0300 7836) end
868b2b66 (kx 2024-12-20 16:11:07 +0300 7837) "
868b2b66 (kx 2024-12-20 16:11:07 +0300 7838)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7839) # ltmain only uses $CC for tagged configurations so make sure $CC is set.
868b2b66 (kx 2024-12-20 16:11:07 +0300 7840) _LT_TAG_COMPILER
868b2b66 (kx 2024-12-20 16:11:07 +0300 7841)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7842) # save warnings/boilerplate of simple test code
868b2b66 (kx 2024-12-20 16:11:07 +0300 7843) _LT_COMPILER_BOILERPLATE
868b2b66 (kx 2024-12-20 16:11:07 +0300 7844) _LT_LINKER_BOILERPLATE
868b2b66 (kx 2024-12-20 16:11:07 +0300 7845)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7846) # Allow CC to be a program name with arguments.
868b2b66 (kx 2024-12-20 16:11:07 +0300 7847) lt_save_CC=$CC
868b2b66 (kx 2024-12-20 16:11:07 +0300 7848) lt_save_GCC=$GCC
868b2b66 (kx 2024-12-20 16:11:07 +0300 7849) lt_save_CFLAGS=$CFLAGS
868b2b66 (kx 2024-12-20 16:11:07 +0300 7850) CC=${FC-"f95"}
868b2b66 (kx 2024-12-20 16:11:07 +0300 7851) CFLAGS=$FCFLAGS
868b2b66 (kx 2024-12-20 16:11:07 +0300 7852) compiler=$CC
868b2b66 (kx 2024-12-20 16:11:07 +0300 7853) GCC=$ac_cv_fc_compiler_gnu
868b2b66 (kx 2024-12-20 16:11:07 +0300 7854)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7855) _LT_TAGVAR(compiler, $1)=$CC
868b2b66 (kx 2024-12-20 16:11:07 +0300 7856) _LT_CC_BASENAME([$compiler])
868b2b66 (kx 2024-12-20 16:11:07 +0300 7857)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7858) if test -n "$compiler"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 7859) AC_MSG_CHECKING([if libtool supports shared libraries])
868b2b66 (kx 2024-12-20 16:11:07 +0300 7860) AC_MSG_RESULT([$can_build_shared])
868b2b66 (kx 2024-12-20 16:11:07 +0300 7861)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7862) AC_MSG_CHECKING([whether to build shared libraries])
868b2b66 (kx 2024-12-20 16:11:07 +0300 7863) test no = "$can_build_shared" && enable_shared=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 7864)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7865) # On AIX, shared libraries and static libraries use the same namespace, and
868b2b66 (kx 2024-12-20 16:11:07 +0300 7866) # are all built from PIC.
868b2b66 (kx 2024-12-20 16:11:07 +0300 7867) case $host_os in
868b2b66 (kx 2024-12-20 16:11:07 +0300 7868) aix3*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7869) test yes = "$enable_shared" && enable_static=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 7870) if test -n "$RANLIB"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 7871) archive_cmds="$archive_cmds~\$RANLIB \$lib"
868b2b66 (kx 2024-12-20 16:11:07 +0300 7872) postinstall_cmds='$RANLIB $lib'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7873) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 7874) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7875) aix[[4-9]]*)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7876) if test ia64 != "$host_cpu"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 7877) case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
868b2b66 (kx 2024-12-20 16:11:07 +0300 7878) yes,aix,yes) ;; # shared object as lib.so file only
868b2b66 (kx 2024-12-20 16:11:07 +0300 7879) yes,svr4,*) ;; # shared object as lib.so archive member only
868b2b66 (kx 2024-12-20 16:11:07 +0300 7880) yes,*) enable_static=no ;; # shared object in lib.a archive as well
868b2b66 (kx 2024-12-20 16:11:07 +0300 7881) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 7882) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 7883) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 7884) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 7885) AC_MSG_RESULT([$enable_shared])
868b2b66 (kx 2024-12-20 16:11:07 +0300 7886)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7887) AC_MSG_CHECKING([whether to build static libraries])
868b2b66 (kx 2024-12-20 16:11:07 +0300 7888) # Make sure either enable_shared or enable_static is yes.
868b2b66 (kx 2024-12-20 16:11:07 +0300 7889) test yes = "$enable_shared" || enable_static=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 7890) AC_MSG_RESULT([$enable_static])
868b2b66 (kx 2024-12-20 16:11:07 +0300 7891)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7892) _LT_TAGVAR(GCC, $1)=$ac_cv_fc_compiler_gnu
868b2b66 (kx 2024-12-20 16:11:07 +0300 7893) _LT_TAGVAR(LD, $1)=$LD
868b2b66 (kx 2024-12-20 16:11:07 +0300 7894)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7895) ## CAVEAT EMPTOR:
868b2b66 (kx 2024-12-20 16:11:07 +0300 7896) ## There is no encapsulation within the following macros, do not change
868b2b66 (kx 2024-12-20 16:11:07 +0300 7897) ## the running order or otherwise move them around unless you know exactly
868b2b66 (kx 2024-12-20 16:11:07 +0300 7898) ## what you are doing...
868b2b66 (kx 2024-12-20 16:11:07 +0300 7899) _LT_SYS_HIDDEN_LIBDEPS($1)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7900) _LT_COMPILER_PIC($1)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7901) _LT_COMPILER_C_O($1)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7902) _LT_COMPILER_FILE_LOCKS($1)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7903) _LT_LINKER_SHLIBS($1)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7904) _LT_SYS_DYNAMIC_LINKER($1)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7905) _LT_LINKER_HARDCODE_LIBPATH($1)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7906)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7907) _LT_CONFIG($1)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7908) fi # test -n "$compiler"
868b2b66 (kx 2024-12-20 16:11:07 +0300 7909)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7910) GCC=$lt_save_GCC
868b2b66 (kx 2024-12-20 16:11:07 +0300 7911) CC=$lt_save_CC
868b2b66 (kx 2024-12-20 16:11:07 +0300 7912) CFLAGS=$lt_save_CFLAGS
868b2b66 (kx 2024-12-20 16:11:07 +0300 7913) fi # test yes != "$_lt_disable_FC"
868b2b66 (kx 2024-12-20 16:11:07 +0300 7914)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7915) AC_LANG_POP
868b2b66 (kx 2024-12-20 16:11:07 +0300 7916) ])# _LT_LANG_FC_CONFIG
868b2b66 (kx 2024-12-20 16:11:07 +0300 7917)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7918)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7919) # _LT_LANG_GCJ_CONFIG([TAG])
868b2b66 (kx 2024-12-20 16:11:07 +0300 7920) # --------------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 7921) # Ensure that the configuration variables for the GNU Java Compiler compiler
868b2b66 (kx 2024-12-20 16:11:07 +0300 7922) # are suitably defined. These variables are subsequently used by _LT_CONFIG
868b2b66 (kx 2024-12-20 16:11:07 +0300 7923) # to write the compiler configuration to 'libtool'.
868b2b66 (kx 2024-12-20 16:11:07 +0300 7924) m4_defun([_LT_LANG_GCJ_CONFIG],
868b2b66 (kx 2024-12-20 16:11:07 +0300 7925) [AC_REQUIRE([LT_PROG_GCJ])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 7926) AC_LANG_SAVE
868b2b66 (kx 2024-12-20 16:11:07 +0300 7927)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7928) # Source file extension for Java test sources.
868b2b66 (kx 2024-12-20 16:11:07 +0300 7929) ac_ext=java
868b2b66 (kx 2024-12-20 16:11:07 +0300 7930)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7931) # Object file extension for compiled Java test sources.
868b2b66 (kx 2024-12-20 16:11:07 +0300 7932) objext=o
868b2b66 (kx 2024-12-20 16:11:07 +0300 7933) _LT_TAGVAR(objext, $1)=$objext
868b2b66 (kx 2024-12-20 16:11:07 +0300 7934)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7935) # Code to be used in simple compile tests
868b2b66 (kx 2024-12-20 16:11:07 +0300 7936) lt_simple_compile_test_code="class foo {}"
868b2b66 (kx 2024-12-20 16:11:07 +0300 7937)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7938) # Code to be used in simple link tests
868b2b66 (kx 2024-12-20 16:11:07 +0300 7939) lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
868b2b66 (kx 2024-12-20 16:11:07 +0300 7940)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7941) # ltmain only uses $CC for tagged configurations so make sure $CC is set.
868b2b66 (kx 2024-12-20 16:11:07 +0300 7942) _LT_TAG_COMPILER
868b2b66 (kx 2024-12-20 16:11:07 +0300 7943)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7944) # save warnings/boilerplate of simple test code
868b2b66 (kx 2024-12-20 16:11:07 +0300 7945) _LT_COMPILER_BOILERPLATE
868b2b66 (kx 2024-12-20 16:11:07 +0300 7946) _LT_LINKER_BOILERPLATE
868b2b66 (kx 2024-12-20 16:11:07 +0300 7947)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7948) # Allow CC to be a program name with arguments.
868b2b66 (kx 2024-12-20 16:11:07 +0300 7949) lt_save_CC=$CC
868b2b66 (kx 2024-12-20 16:11:07 +0300 7950) lt_save_CFLAGS=$CFLAGS
868b2b66 (kx 2024-12-20 16:11:07 +0300 7951) lt_save_GCC=$GCC
868b2b66 (kx 2024-12-20 16:11:07 +0300 7952) GCC=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 7953) CC=${GCJ-"gcj"}
868b2b66 (kx 2024-12-20 16:11:07 +0300 7954) CFLAGS=$GCJFLAGS
868b2b66 (kx 2024-12-20 16:11:07 +0300 7955) compiler=$CC
868b2b66 (kx 2024-12-20 16:11:07 +0300 7956) _LT_TAGVAR(compiler, $1)=$CC
868b2b66 (kx 2024-12-20 16:11:07 +0300 7957) _LT_TAGVAR(LD, $1)=$LD
868b2b66 (kx 2024-12-20 16:11:07 +0300 7958) _LT_CC_BASENAME([$compiler])
868b2b66 (kx 2024-12-20 16:11:07 +0300 7959)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7960) # GCJ did not exist at the time GCC didn't implicitly link libc in.
868b2b66 (kx 2024-12-20 16:11:07 +0300 7961) _LT_TAGVAR(archive_cmds_need_lc, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 7962)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7963) _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
868b2b66 (kx 2024-12-20 16:11:07 +0300 7964) _LT_TAGVAR(reload_flag, $1)=$reload_flag
868b2b66 (kx 2024-12-20 16:11:07 +0300 7965) _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
868b2b66 (kx 2024-12-20 16:11:07 +0300 7966)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7967) ## CAVEAT EMPTOR:
868b2b66 (kx 2024-12-20 16:11:07 +0300 7968) ## There is no encapsulation within the following macros, do not change
868b2b66 (kx 2024-12-20 16:11:07 +0300 7969) ## the running order or otherwise move them around unless you know exactly
868b2b66 (kx 2024-12-20 16:11:07 +0300 7970) ## what you are doing...
868b2b66 (kx 2024-12-20 16:11:07 +0300 7971) if test -n "$compiler"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 7972) _LT_COMPILER_NO_RTTI($1)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7973) _LT_COMPILER_PIC($1)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7974) _LT_COMPILER_C_O($1)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7975) _LT_COMPILER_FILE_LOCKS($1)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7976) _LT_LINKER_SHLIBS($1)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7977) _LT_LINKER_HARDCODE_LIBPATH($1)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7978)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7979) _LT_CONFIG($1)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7980) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 7981)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7982) AC_LANG_RESTORE
868b2b66 (kx 2024-12-20 16:11:07 +0300 7983)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7984) GCC=$lt_save_GCC
868b2b66 (kx 2024-12-20 16:11:07 +0300 7985) CC=$lt_save_CC
868b2b66 (kx 2024-12-20 16:11:07 +0300 7986) CFLAGS=$lt_save_CFLAGS
868b2b66 (kx 2024-12-20 16:11:07 +0300 7987) ])# _LT_LANG_GCJ_CONFIG
868b2b66 (kx 2024-12-20 16:11:07 +0300 7988)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7989)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7990) # _LT_LANG_GO_CONFIG([TAG])
868b2b66 (kx 2024-12-20 16:11:07 +0300 7991) # --------------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 7992) # Ensure that the configuration variables for the GNU Go compiler
868b2b66 (kx 2024-12-20 16:11:07 +0300 7993) # are suitably defined. These variables are subsequently used by _LT_CONFIG
868b2b66 (kx 2024-12-20 16:11:07 +0300 7994) # to write the compiler configuration to 'libtool'.
868b2b66 (kx 2024-12-20 16:11:07 +0300 7995) m4_defun([_LT_LANG_GO_CONFIG],
868b2b66 (kx 2024-12-20 16:11:07 +0300 7996) [AC_REQUIRE([LT_PROG_GO])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 7997) AC_LANG_SAVE
868b2b66 (kx 2024-12-20 16:11:07 +0300 7998)
868b2b66 (kx 2024-12-20 16:11:07 +0300 7999) # Source file extension for Go test sources.
868b2b66 (kx 2024-12-20 16:11:07 +0300 8000) ac_ext=go
868b2b66 (kx 2024-12-20 16:11:07 +0300 8001)
868b2b66 (kx 2024-12-20 16:11:07 +0300 8002) # Object file extension for compiled Go test sources.
868b2b66 (kx 2024-12-20 16:11:07 +0300 8003) objext=o
868b2b66 (kx 2024-12-20 16:11:07 +0300 8004) _LT_TAGVAR(objext, $1)=$objext
868b2b66 (kx 2024-12-20 16:11:07 +0300 8005)
868b2b66 (kx 2024-12-20 16:11:07 +0300 8006) # Code to be used in simple compile tests
868b2b66 (kx 2024-12-20 16:11:07 +0300 8007) lt_simple_compile_test_code="package main; func main() { }"
868b2b66 (kx 2024-12-20 16:11:07 +0300 8008)
868b2b66 (kx 2024-12-20 16:11:07 +0300 8009) # Code to be used in simple link tests
868b2b66 (kx 2024-12-20 16:11:07 +0300 8010) lt_simple_link_test_code='package main; func main() { }'
868b2b66 (kx 2024-12-20 16:11:07 +0300 8011)
868b2b66 (kx 2024-12-20 16:11:07 +0300 8012) # ltmain only uses $CC for tagged configurations so make sure $CC is set.
868b2b66 (kx 2024-12-20 16:11:07 +0300 8013) _LT_TAG_COMPILER
868b2b66 (kx 2024-12-20 16:11:07 +0300 8014)
868b2b66 (kx 2024-12-20 16:11:07 +0300 8015) # save warnings/boilerplate of simple test code
868b2b66 (kx 2024-12-20 16:11:07 +0300 8016) _LT_COMPILER_BOILERPLATE
868b2b66 (kx 2024-12-20 16:11:07 +0300 8017) _LT_LINKER_BOILERPLATE
868b2b66 (kx 2024-12-20 16:11:07 +0300 8018)
868b2b66 (kx 2024-12-20 16:11:07 +0300 8019) # Allow CC to be a program name with arguments.
868b2b66 (kx 2024-12-20 16:11:07 +0300 8020) lt_save_CC=$CC
868b2b66 (kx 2024-12-20 16:11:07 +0300 8021) lt_save_CFLAGS=$CFLAGS
868b2b66 (kx 2024-12-20 16:11:07 +0300 8022) lt_save_GCC=$GCC
868b2b66 (kx 2024-12-20 16:11:07 +0300 8023) GCC=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 8024) CC=${GOC-"gccgo"}
868b2b66 (kx 2024-12-20 16:11:07 +0300 8025) CFLAGS=$GOFLAGS
868b2b66 (kx 2024-12-20 16:11:07 +0300 8026) compiler=$CC
868b2b66 (kx 2024-12-20 16:11:07 +0300 8027) _LT_TAGVAR(compiler, $1)=$CC
868b2b66 (kx 2024-12-20 16:11:07 +0300 8028) _LT_TAGVAR(LD, $1)=$LD
868b2b66 (kx 2024-12-20 16:11:07 +0300 8029) _LT_CC_BASENAME([$compiler])
868b2b66 (kx 2024-12-20 16:11:07 +0300 8030)
868b2b66 (kx 2024-12-20 16:11:07 +0300 8031) # Go did not exist at the time GCC didn't implicitly link libc in.
868b2b66 (kx 2024-12-20 16:11:07 +0300 8032) _LT_TAGVAR(archive_cmds_need_lc, $1)=no
868b2b66 (kx 2024-12-20 16:11:07 +0300 8033)
868b2b66 (kx 2024-12-20 16:11:07 +0300 8034) _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
868b2b66 (kx 2024-12-20 16:11:07 +0300 8035) _LT_TAGVAR(reload_flag, $1)=$reload_flag
868b2b66 (kx 2024-12-20 16:11:07 +0300 8036) _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
868b2b66 (kx 2024-12-20 16:11:07 +0300 8037)
868b2b66 (kx 2024-12-20 16:11:07 +0300 8038) ## CAVEAT EMPTOR:
868b2b66 (kx 2024-12-20 16:11:07 +0300 8039) ## There is no encapsulation within the following macros, do not change
868b2b66 (kx 2024-12-20 16:11:07 +0300 8040) ## the running order or otherwise move them around unless you know exactly
868b2b66 (kx 2024-12-20 16:11:07 +0300 8041) ## what you are doing...
868b2b66 (kx 2024-12-20 16:11:07 +0300 8042) if test -n "$compiler"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 8043) _LT_COMPILER_NO_RTTI($1)
868b2b66 (kx 2024-12-20 16:11:07 +0300 8044) _LT_COMPILER_PIC($1)
868b2b66 (kx 2024-12-20 16:11:07 +0300 8045) _LT_COMPILER_C_O($1)
868b2b66 (kx 2024-12-20 16:11:07 +0300 8046) _LT_COMPILER_FILE_LOCKS($1)
868b2b66 (kx 2024-12-20 16:11:07 +0300 8047) _LT_LINKER_SHLIBS($1)
868b2b66 (kx 2024-12-20 16:11:07 +0300 8048) _LT_LINKER_HARDCODE_LIBPATH($1)
868b2b66 (kx 2024-12-20 16:11:07 +0300 8049)
868b2b66 (kx 2024-12-20 16:11:07 +0300 8050) _LT_CONFIG($1)
868b2b66 (kx 2024-12-20 16:11:07 +0300 8051) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 8052)
868b2b66 (kx 2024-12-20 16:11:07 +0300 8053) AC_LANG_RESTORE
868b2b66 (kx 2024-12-20 16:11:07 +0300 8054)
868b2b66 (kx 2024-12-20 16:11:07 +0300 8055) GCC=$lt_save_GCC
868b2b66 (kx 2024-12-20 16:11:07 +0300 8056) CC=$lt_save_CC
868b2b66 (kx 2024-12-20 16:11:07 +0300 8057) CFLAGS=$lt_save_CFLAGS
868b2b66 (kx 2024-12-20 16:11:07 +0300 8058) ])# _LT_LANG_GO_CONFIG
868b2b66 (kx 2024-12-20 16:11:07 +0300 8059)
868b2b66 (kx 2024-12-20 16:11:07 +0300 8060)
868b2b66 (kx 2024-12-20 16:11:07 +0300 8061) # _LT_LANG_RC_CONFIG([TAG])
868b2b66 (kx 2024-12-20 16:11:07 +0300 8062) # -------------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 8063) # Ensure that the configuration variables for the Windows resource compiler
868b2b66 (kx 2024-12-20 16:11:07 +0300 8064) # are suitably defined. These variables are subsequently used by _LT_CONFIG
868b2b66 (kx 2024-12-20 16:11:07 +0300 8065) # to write the compiler configuration to 'libtool'.
868b2b66 (kx 2024-12-20 16:11:07 +0300 8066) m4_defun([_LT_LANG_RC_CONFIG],
868b2b66 (kx 2024-12-20 16:11:07 +0300 8067) [AC_REQUIRE([LT_PROG_RC])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 8068) AC_LANG_SAVE
868b2b66 (kx 2024-12-20 16:11:07 +0300 8069)
868b2b66 (kx 2024-12-20 16:11:07 +0300 8070) # Source file extension for RC test sources.
868b2b66 (kx 2024-12-20 16:11:07 +0300 8071) ac_ext=rc
868b2b66 (kx 2024-12-20 16:11:07 +0300 8072)
868b2b66 (kx 2024-12-20 16:11:07 +0300 8073) # Object file extension for compiled RC test sources.
868b2b66 (kx 2024-12-20 16:11:07 +0300 8074) objext=o
868b2b66 (kx 2024-12-20 16:11:07 +0300 8075) _LT_TAGVAR(objext, $1)=$objext
868b2b66 (kx 2024-12-20 16:11:07 +0300 8076)
868b2b66 (kx 2024-12-20 16:11:07 +0300 8077) # Code to be used in simple compile tests
868b2b66 (kx 2024-12-20 16:11:07 +0300 8078) lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
868b2b66 (kx 2024-12-20 16:11:07 +0300 8079)
868b2b66 (kx 2024-12-20 16:11:07 +0300 8080) # Code to be used in simple link tests
868b2b66 (kx 2024-12-20 16:11:07 +0300 8081) lt_simple_link_test_code=$lt_simple_compile_test_code
868b2b66 (kx 2024-12-20 16:11:07 +0300 8082)
868b2b66 (kx 2024-12-20 16:11:07 +0300 8083) # ltmain only uses $CC for tagged configurations so make sure $CC is set.
868b2b66 (kx 2024-12-20 16:11:07 +0300 8084) _LT_TAG_COMPILER
868b2b66 (kx 2024-12-20 16:11:07 +0300 8085)
868b2b66 (kx 2024-12-20 16:11:07 +0300 8086) # save warnings/boilerplate of simple test code
868b2b66 (kx 2024-12-20 16:11:07 +0300 8087) _LT_COMPILER_BOILERPLATE
868b2b66 (kx 2024-12-20 16:11:07 +0300 8088) _LT_LINKER_BOILERPLATE
868b2b66 (kx 2024-12-20 16:11:07 +0300 8089)
868b2b66 (kx 2024-12-20 16:11:07 +0300 8090) # Allow CC to be a program name with arguments.
868b2b66 (kx 2024-12-20 16:11:07 +0300 8091) lt_save_CC=$CC
868b2b66 (kx 2024-12-20 16:11:07 +0300 8092) lt_save_CFLAGS=$CFLAGS
868b2b66 (kx 2024-12-20 16:11:07 +0300 8093) lt_save_GCC=$GCC
868b2b66 (kx 2024-12-20 16:11:07 +0300 8094) GCC=
868b2b66 (kx 2024-12-20 16:11:07 +0300 8095) CC=${RC-"windres"}
868b2b66 (kx 2024-12-20 16:11:07 +0300 8096) CFLAGS=
868b2b66 (kx 2024-12-20 16:11:07 +0300 8097) compiler=$CC
868b2b66 (kx 2024-12-20 16:11:07 +0300 8098) _LT_TAGVAR(compiler, $1)=$CC
868b2b66 (kx 2024-12-20 16:11:07 +0300 8099) _LT_CC_BASENAME([$compiler])
868b2b66 (kx 2024-12-20 16:11:07 +0300 8100) _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
868b2b66 (kx 2024-12-20 16:11:07 +0300 8101)
868b2b66 (kx 2024-12-20 16:11:07 +0300 8102) if test -n "$compiler"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 8103) :
868b2b66 (kx 2024-12-20 16:11:07 +0300 8104) _LT_CONFIG($1)
868b2b66 (kx 2024-12-20 16:11:07 +0300 8105) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 8106)
868b2b66 (kx 2024-12-20 16:11:07 +0300 8107) GCC=$lt_save_GCC
868b2b66 (kx 2024-12-20 16:11:07 +0300 8108) AC_LANG_RESTORE
868b2b66 (kx 2024-12-20 16:11:07 +0300 8109) CC=$lt_save_CC
868b2b66 (kx 2024-12-20 16:11:07 +0300 8110) CFLAGS=$lt_save_CFLAGS
868b2b66 (kx 2024-12-20 16:11:07 +0300 8111) ])# _LT_LANG_RC_CONFIG
868b2b66 (kx 2024-12-20 16:11:07 +0300 8112)
868b2b66 (kx 2024-12-20 16:11:07 +0300 8113)
868b2b66 (kx 2024-12-20 16:11:07 +0300 8114) # LT_PROG_GCJ
868b2b66 (kx 2024-12-20 16:11:07 +0300 8115) # -----------
868b2b66 (kx 2024-12-20 16:11:07 +0300 8116) AC_DEFUN([LT_PROG_GCJ],
868b2b66 (kx 2024-12-20 16:11:07 +0300 8117) [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
868b2b66 (kx 2024-12-20 16:11:07 +0300 8118) [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
868b2b66 (kx 2024-12-20 16:11:07 +0300 8119) [AC_CHECK_TOOL(GCJ, gcj,)
868b2b66 (kx 2024-12-20 16:11:07 +0300 8120) test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2"
868b2b66 (kx 2024-12-20 16:11:07 +0300 8121) AC_SUBST(GCJFLAGS)])])[]dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 8122) ])
868b2b66 (kx 2024-12-20 16:11:07 +0300 8123)
868b2b66 (kx 2024-12-20 16:11:07 +0300 8124) # Old name:
868b2b66 (kx 2024-12-20 16:11:07 +0300 8125) AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
868b2b66 (kx 2024-12-20 16:11:07 +0300 8126) dnl aclocal-1.4 backwards compatibility:
868b2b66 (kx 2024-12-20 16:11:07 +0300 8127) dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
868b2b66 (kx 2024-12-20 16:11:07 +0300 8128)
868b2b66 (kx 2024-12-20 16:11:07 +0300 8129)
868b2b66 (kx 2024-12-20 16:11:07 +0300 8130) # LT_PROG_GO
868b2b66 (kx 2024-12-20 16:11:07 +0300 8131) # ----------
868b2b66 (kx 2024-12-20 16:11:07 +0300 8132) AC_DEFUN([LT_PROG_GO],
868b2b66 (kx 2024-12-20 16:11:07 +0300 8133) [AC_CHECK_TOOL(GOC, gccgo,)
868b2b66 (kx 2024-12-20 16:11:07 +0300 8134) ])
868b2b66 (kx 2024-12-20 16:11:07 +0300 8135)
868b2b66 (kx 2024-12-20 16:11:07 +0300 8136)
868b2b66 (kx 2024-12-20 16:11:07 +0300 8137) # LT_PROG_RC
868b2b66 (kx 2024-12-20 16:11:07 +0300 8138) # ----------
868b2b66 (kx 2024-12-20 16:11:07 +0300 8139) AC_DEFUN([LT_PROG_RC],
868b2b66 (kx 2024-12-20 16:11:07 +0300 8140) [AC_CHECK_TOOL(RC, windres,)
868b2b66 (kx 2024-12-20 16:11:07 +0300 8141) ])
868b2b66 (kx 2024-12-20 16:11:07 +0300 8142)
868b2b66 (kx 2024-12-20 16:11:07 +0300 8143) # Old name:
868b2b66 (kx 2024-12-20 16:11:07 +0300 8144) AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
868b2b66 (kx 2024-12-20 16:11:07 +0300 8145) dnl aclocal-1.4 backwards compatibility:
868b2b66 (kx 2024-12-20 16:11:07 +0300 8146) dnl AC_DEFUN([LT_AC_PROG_RC], [])
868b2b66 (kx 2024-12-20 16:11:07 +0300 8147)
868b2b66 (kx 2024-12-20 16:11:07 +0300 8148)
868b2b66 (kx 2024-12-20 16:11:07 +0300 8149) # _LT_DECL_EGREP
868b2b66 (kx 2024-12-20 16:11:07 +0300 8150) # --------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 8151) # If we don't have a new enough Autoconf to choose the best grep
868b2b66 (kx 2024-12-20 16:11:07 +0300 8152) # available, choose the one first in the user's PATH.
868b2b66 (kx 2024-12-20 16:11:07 +0300 8153) m4_defun([_LT_DECL_EGREP],
868b2b66 (kx 2024-12-20 16:11:07 +0300 8154) [AC_REQUIRE([AC_PROG_EGREP])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 8155) AC_REQUIRE([AC_PROG_FGREP])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 8156) test -z "$GREP" && GREP=grep
868b2b66 (kx 2024-12-20 16:11:07 +0300 8157) _LT_DECL([], [GREP], [1], [A grep program that handles long lines])
868b2b66 (kx 2024-12-20 16:11:07 +0300 8158) _LT_DECL([], [EGREP], [1], [An ERE matcher])
868b2b66 (kx 2024-12-20 16:11:07 +0300 8159) _LT_DECL([], [FGREP], [1], [A literal string matcher])
868b2b66 (kx 2024-12-20 16:11:07 +0300 8160) dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
868b2b66 (kx 2024-12-20 16:11:07 +0300 8161) AC_SUBST([GREP])
868b2b66 (kx 2024-12-20 16:11:07 +0300 8162) ])
868b2b66 (kx 2024-12-20 16:11:07 +0300 8163)
868b2b66 (kx 2024-12-20 16:11:07 +0300 8164)
868b2b66 (kx 2024-12-20 16:11:07 +0300 8165) # _LT_DECL_OBJDUMP
868b2b66 (kx 2024-12-20 16:11:07 +0300 8166) # --------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 8167) # If we don't have a new enough Autoconf to choose the best objdump
868b2b66 (kx 2024-12-20 16:11:07 +0300 8168) # available, choose the one first in the user's PATH.
868b2b66 (kx 2024-12-20 16:11:07 +0300 8169) m4_defun([_LT_DECL_OBJDUMP],
868b2b66 (kx 2024-12-20 16:11:07 +0300 8170) [AC_CHECK_TOOL(OBJDUMP, objdump, false)
868b2b66 (kx 2024-12-20 16:11:07 +0300 8171) test -z "$OBJDUMP" && OBJDUMP=objdump
868b2b66 (kx 2024-12-20 16:11:07 +0300 8172) _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
868b2b66 (kx 2024-12-20 16:11:07 +0300 8173) AC_SUBST([OBJDUMP])
868b2b66 (kx 2024-12-20 16:11:07 +0300 8174) ])
868b2b66 (kx 2024-12-20 16:11:07 +0300 8175)
868b2b66 (kx 2024-12-20 16:11:07 +0300 8176) # _LT_DECL_DLLTOOL
868b2b66 (kx 2024-12-20 16:11:07 +0300 8177) # ----------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 8178) # Ensure DLLTOOL variable is set.
868b2b66 (kx 2024-12-20 16:11:07 +0300 8179) m4_defun([_LT_DECL_DLLTOOL],
868b2b66 (kx 2024-12-20 16:11:07 +0300 8180) [AC_CHECK_TOOL(DLLTOOL, dlltool, false)
868b2b66 (kx 2024-12-20 16:11:07 +0300 8181) test -z "$DLLTOOL" && DLLTOOL=dlltool
868b2b66 (kx 2024-12-20 16:11:07 +0300 8182) _LT_DECL([], [DLLTOOL], [1], [DLL creation program])
868b2b66 (kx 2024-12-20 16:11:07 +0300 8183) AC_SUBST([DLLTOOL])
868b2b66 (kx 2024-12-20 16:11:07 +0300 8184) ])
868b2b66 (kx 2024-12-20 16:11:07 +0300 8185)
868b2b66 (kx 2024-12-20 16:11:07 +0300 8186) # _LT_DECL_SED
868b2b66 (kx 2024-12-20 16:11:07 +0300 8187) # ------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 8188) # Check for a fully-functional sed program, that truncates
868b2b66 (kx 2024-12-20 16:11:07 +0300 8189) # as few characters as possible. Prefer GNU sed if found.
868b2b66 (kx 2024-12-20 16:11:07 +0300 8190) m4_defun([_LT_DECL_SED],
868b2b66 (kx 2024-12-20 16:11:07 +0300 8191) [AC_PROG_SED
868b2b66 (kx 2024-12-20 16:11:07 +0300 8192) test -z "$SED" && SED=sed
868b2b66 (kx 2024-12-20 16:11:07 +0300 8193) Xsed="$SED -e 1s/^X//"
868b2b66 (kx 2024-12-20 16:11:07 +0300 8194) _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
868b2b66 (kx 2024-12-20 16:11:07 +0300 8195) _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
868b2b66 (kx 2024-12-20 16:11:07 +0300 8196) [Sed that helps us avoid accidentally triggering echo(1) options like -n])
868b2b66 (kx 2024-12-20 16:11:07 +0300 8197) ])# _LT_DECL_SED
868b2b66 (kx 2024-12-20 16:11:07 +0300 8198)
868b2b66 (kx 2024-12-20 16:11:07 +0300 8199) m4_ifndef([AC_PROG_SED], [
868b2b66 (kx 2024-12-20 16:11:07 +0300 8200) ############################################################
868b2b66 (kx 2024-12-20 16:11:07 +0300 8201) # NOTE: This macro has been submitted for inclusion into #
868b2b66 (kx 2024-12-20 16:11:07 +0300 8202) # GNU Autoconf as AC_PROG_SED. When it is available in #
868b2b66 (kx 2024-12-20 16:11:07 +0300 8203) # a released version of Autoconf we should remove this #
868b2b66 (kx 2024-12-20 16:11:07 +0300 8204) # macro and use it instead. #
868b2b66 (kx 2024-12-20 16:11:07 +0300 8205) ############################################################
868b2b66 (kx 2024-12-20 16:11:07 +0300 8206)
868b2b66 (kx 2024-12-20 16:11:07 +0300 8207) m4_defun([AC_PROG_SED],
868b2b66 (kx 2024-12-20 16:11:07 +0300 8208) [AC_MSG_CHECKING([for a sed that does not truncate output])
868b2b66 (kx 2024-12-20 16:11:07 +0300 8209) AC_CACHE_VAL(lt_cv_path_SED,
868b2b66 (kx 2024-12-20 16:11:07 +0300 8210) [# Loop through the user's path and test for sed and gsed.
868b2b66 (kx 2024-12-20 16:11:07 +0300 8211) # Then use that list of sed's as ones to test for truncation.
868b2b66 (kx 2024-12-20 16:11:07 +0300 8212) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
868b2b66 (kx 2024-12-20 16:11:07 +0300 8213) for as_dir in $PATH
868b2b66 (kx 2024-12-20 16:11:07 +0300 8214) do
868b2b66 (kx 2024-12-20 16:11:07 +0300 8215) IFS=$as_save_IFS
868b2b66 (kx 2024-12-20 16:11:07 +0300 8216) test -z "$as_dir" && as_dir=.
868b2b66 (kx 2024-12-20 16:11:07 +0300 8217) for lt_ac_prog in sed gsed; do
868b2b66 (kx 2024-12-20 16:11:07 +0300 8218) for ac_exec_ext in '' $ac_executable_extensions; do
868b2b66 (kx 2024-12-20 16:11:07 +0300 8219) if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 8220) lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
868b2b66 (kx 2024-12-20 16:11:07 +0300 8221) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 8222) done
868b2b66 (kx 2024-12-20 16:11:07 +0300 8223) done
868b2b66 (kx 2024-12-20 16:11:07 +0300 8224) done
868b2b66 (kx 2024-12-20 16:11:07 +0300 8225) IFS=$as_save_IFS
868b2b66 (kx 2024-12-20 16:11:07 +0300 8226) lt_ac_max=0
868b2b66 (kx 2024-12-20 16:11:07 +0300 8227) lt_ac_count=0
868b2b66 (kx 2024-12-20 16:11:07 +0300 8228) # Add /usr/xpg4/bin/sed as it is typically found on Solaris
868b2b66 (kx 2024-12-20 16:11:07 +0300 8229) # along with /bin/sed that truncates output.
868b2b66 (kx 2024-12-20 16:11:07 +0300 8230) for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
868b2b66 (kx 2024-12-20 16:11:07 +0300 8231) test ! -f "$lt_ac_sed" && continue
868b2b66 (kx 2024-12-20 16:11:07 +0300 8232) cat /dev/null > conftest.in
868b2b66 (kx 2024-12-20 16:11:07 +0300 8233) lt_ac_count=0
868b2b66 (kx 2024-12-20 16:11:07 +0300 8234) echo $ECHO_N "0123456789$ECHO_C" >conftest.in
868b2b66 (kx 2024-12-20 16:11:07 +0300 8235) # Check for GNU sed and select it if it is found.
868b2b66 (kx 2024-12-20 16:11:07 +0300 8236) if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 8237) lt_cv_path_SED=$lt_ac_sed
868b2b66 (kx 2024-12-20 16:11:07 +0300 8238) break
868b2b66 (kx 2024-12-20 16:11:07 +0300 8239) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 8240) while true; do
868b2b66 (kx 2024-12-20 16:11:07 +0300 8241) cat conftest.in conftest.in >conftest.tmp
868b2b66 (kx 2024-12-20 16:11:07 +0300 8242) mv conftest.tmp conftest.in
868b2b66 (kx 2024-12-20 16:11:07 +0300 8243) cp conftest.in conftest.nl
868b2b66 (kx 2024-12-20 16:11:07 +0300 8244) echo >>conftest.nl
868b2b66 (kx 2024-12-20 16:11:07 +0300 8245) $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
868b2b66 (kx 2024-12-20 16:11:07 +0300 8246) cmp -s conftest.out conftest.nl || break
868b2b66 (kx 2024-12-20 16:11:07 +0300 8247) # 10000 chars as input seems more than enough
868b2b66 (kx 2024-12-20 16:11:07 +0300 8248) test 10 -lt "$lt_ac_count" && break
868b2b66 (kx 2024-12-20 16:11:07 +0300 8249) lt_ac_count=`expr $lt_ac_count + 1`
868b2b66 (kx 2024-12-20 16:11:07 +0300 8250) if test "$lt_ac_count" -gt "$lt_ac_max"; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 8251) lt_ac_max=$lt_ac_count
868b2b66 (kx 2024-12-20 16:11:07 +0300 8252) lt_cv_path_SED=$lt_ac_sed
868b2b66 (kx 2024-12-20 16:11:07 +0300 8253) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 8254) done
868b2b66 (kx 2024-12-20 16:11:07 +0300 8255) done
868b2b66 (kx 2024-12-20 16:11:07 +0300 8256) ])
868b2b66 (kx 2024-12-20 16:11:07 +0300 8257) SED=$lt_cv_path_SED
868b2b66 (kx 2024-12-20 16:11:07 +0300 8258) AC_SUBST([SED])
868b2b66 (kx 2024-12-20 16:11:07 +0300 8259) AC_MSG_RESULT([$SED])
868b2b66 (kx 2024-12-20 16:11:07 +0300 8260) ])#AC_PROG_SED
868b2b66 (kx 2024-12-20 16:11:07 +0300 8261) ])#m4_ifndef
868b2b66 (kx 2024-12-20 16:11:07 +0300 8262)
868b2b66 (kx 2024-12-20 16:11:07 +0300 8263) # Old name:
868b2b66 (kx 2024-12-20 16:11:07 +0300 8264) AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
868b2b66 (kx 2024-12-20 16:11:07 +0300 8265) dnl aclocal-1.4 backwards compatibility:
868b2b66 (kx 2024-12-20 16:11:07 +0300 8266) dnl AC_DEFUN([LT_AC_PROG_SED], [])
868b2b66 (kx 2024-12-20 16:11:07 +0300 8267)
868b2b66 (kx 2024-12-20 16:11:07 +0300 8268)
868b2b66 (kx 2024-12-20 16:11:07 +0300 8269) # _LT_CHECK_SHELL_FEATURES
868b2b66 (kx 2024-12-20 16:11:07 +0300 8270) # ------------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 8271) # Find out whether the shell is Bourne or XSI compatible,
868b2b66 (kx 2024-12-20 16:11:07 +0300 8272) # or has some other useful features.
868b2b66 (kx 2024-12-20 16:11:07 +0300 8273) m4_defun([_LT_CHECK_SHELL_FEATURES],
868b2b66 (kx 2024-12-20 16:11:07 +0300 8274) [if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
868b2b66 (kx 2024-12-20 16:11:07 +0300 8275) lt_unset=unset
868b2b66 (kx 2024-12-20 16:11:07 +0300 8276) else
868b2b66 (kx 2024-12-20 16:11:07 +0300 8277) lt_unset=false
868b2b66 (kx 2024-12-20 16:11:07 +0300 8278) fi
868b2b66 (kx 2024-12-20 16:11:07 +0300 8279) _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 8280)
868b2b66 (kx 2024-12-20 16:11:07 +0300 8281) # test EBCDIC or ASCII
868b2b66 (kx 2024-12-20 16:11:07 +0300 8282) case `echo X|tr X '\101'` in
868b2b66 (kx 2024-12-20 16:11:07 +0300 8283) A) # ASCII based system
868b2b66 (kx 2024-12-20 16:11:07 +0300 8284) # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
868b2b66 (kx 2024-12-20 16:11:07 +0300 8285) lt_SP2NL='tr \040 \012'
868b2b66 (kx 2024-12-20 16:11:07 +0300 8286) lt_NL2SP='tr \015\012 \040\040'
868b2b66 (kx 2024-12-20 16:11:07 +0300 8287) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 8288) *) # EBCDIC based system
868b2b66 (kx 2024-12-20 16:11:07 +0300 8289) lt_SP2NL='tr \100 \n'
868b2b66 (kx 2024-12-20 16:11:07 +0300 8290) lt_NL2SP='tr \r\n \100\100'
868b2b66 (kx 2024-12-20 16:11:07 +0300 8291) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 8292) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 8293) _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 8294) _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 8295) ])# _LT_CHECK_SHELL_FEATURES
868b2b66 (kx 2024-12-20 16:11:07 +0300 8296)
868b2b66 (kx 2024-12-20 16:11:07 +0300 8297)
868b2b66 (kx 2024-12-20 16:11:07 +0300 8298) # _LT_PATH_CONVERSION_FUNCTIONS
868b2b66 (kx 2024-12-20 16:11:07 +0300 8299) # -----------------------------
868b2b66 (kx 2024-12-20 16:11:07 +0300 8300) # Determine what file name conversion functions should be used by
868b2b66 (kx 2024-12-20 16:11:07 +0300 8301) # func_to_host_file (and, implicitly, by func_to_host_path). These are needed
868b2b66 (kx 2024-12-20 16:11:07 +0300 8302) # for certain cross-compile configurations and native mingw.
868b2b66 (kx 2024-12-20 16:11:07 +0300 8303) m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
868b2b66 (kx 2024-12-20 16:11:07 +0300 8304) [AC_REQUIRE([AC_CANONICAL_HOST])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 8305) AC_REQUIRE([AC_CANONICAL_BUILD])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 8306) AC_MSG_CHECKING([how to convert $build file names to $host format])
868b2b66 (kx 2024-12-20 16:11:07 +0300 8307) AC_CACHE_VAL(lt_cv_to_host_file_cmd,
868b2b66 (kx 2024-12-20 16:11:07 +0300 8308) [case $host in
868b2b66 (kx 2024-12-20 16:11:07 +0300 8309) *-*-mingw* )
868b2b66 (kx 2024-12-20 16:11:07 +0300 8310) case $build in
868b2b66 (kx 2024-12-20 16:11:07 +0300 8311) *-*-mingw* ) # actually msys
868b2b66 (kx 2024-12-20 16:11:07 +0300 8312) lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
868b2b66 (kx 2024-12-20 16:11:07 +0300 8313) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 8314) *-*-cygwin* )
868b2b66 (kx 2024-12-20 16:11:07 +0300 8315) lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
868b2b66 (kx 2024-12-20 16:11:07 +0300 8316) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 8317) * ) # otherwise, assume *nix
868b2b66 (kx 2024-12-20 16:11:07 +0300 8318) lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
868b2b66 (kx 2024-12-20 16:11:07 +0300 8319) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 8320) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 8321) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 8322) *-*-cygwin* )
868b2b66 (kx 2024-12-20 16:11:07 +0300 8323) case $build in
868b2b66 (kx 2024-12-20 16:11:07 +0300 8324) *-*-mingw* ) # actually msys
868b2b66 (kx 2024-12-20 16:11:07 +0300 8325) lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
868b2b66 (kx 2024-12-20 16:11:07 +0300 8326) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 8327) *-*-cygwin* )
868b2b66 (kx 2024-12-20 16:11:07 +0300 8328) lt_cv_to_host_file_cmd=func_convert_file_noop
868b2b66 (kx 2024-12-20 16:11:07 +0300 8329) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 8330) * ) # otherwise, assume *nix
868b2b66 (kx 2024-12-20 16:11:07 +0300 8331) lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
868b2b66 (kx 2024-12-20 16:11:07 +0300 8332) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 8333) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 8334) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 8335) * ) # unhandled hosts (and "normal" native builds)
868b2b66 (kx 2024-12-20 16:11:07 +0300 8336) lt_cv_to_host_file_cmd=func_convert_file_noop
868b2b66 (kx 2024-12-20 16:11:07 +0300 8337) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 8338) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 8339) ])
868b2b66 (kx 2024-12-20 16:11:07 +0300 8340) to_host_file_cmd=$lt_cv_to_host_file_cmd
868b2b66 (kx 2024-12-20 16:11:07 +0300 8341) AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
868b2b66 (kx 2024-12-20 16:11:07 +0300 8342) _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
868b2b66 (kx 2024-12-20 16:11:07 +0300 8343) [0], [convert $build file names to $host format])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 8344)
868b2b66 (kx 2024-12-20 16:11:07 +0300 8345) AC_MSG_CHECKING([how to convert $build file names to toolchain format])
868b2b66 (kx 2024-12-20 16:11:07 +0300 8346) AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
868b2b66 (kx 2024-12-20 16:11:07 +0300 8347) [#assume ordinary cross tools, or native build.
868b2b66 (kx 2024-12-20 16:11:07 +0300 8348) lt_cv_to_tool_file_cmd=func_convert_file_noop
868b2b66 (kx 2024-12-20 16:11:07 +0300 8349) case $host in
868b2b66 (kx 2024-12-20 16:11:07 +0300 8350) *-*-mingw* )
868b2b66 (kx 2024-12-20 16:11:07 +0300 8351) case $build in
868b2b66 (kx 2024-12-20 16:11:07 +0300 8352) *-*-mingw* ) # actually msys
868b2b66 (kx 2024-12-20 16:11:07 +0300 8353) lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
868b2b66 (kx 2024-12-20 16:11:07 +0300 8354) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 8355) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 8356) ;;
868b2b66 (kx 2024-12-20 16:11:07 +0300 8357) esac
868b2b66 (kx 2024-12-20 16:11:07 +0300 8358) ])
868b2b66 (kx 2024-12-20 16:11:07 +0300 8359) to_tool_file_cmd=$lt_cv_to_tool_file_cmd
868b2b66 (kx 2024-12-20 16:11:07 +0300 8360) AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
868b2b66 (kx 2024-12-20 16:11:07 +0300 8361) _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
868b2b66 (kx 2024-12-20 16:11:07 +0300 8362) [0], [convert $build files to toolchain format])dnl
868b2b66 (kx 2024-12-20 16:11:07 +0300 8363) ])# _LT_PATH_CONVERSION_FUNCTIONS