aclocal.m4 revision 602e473d
1602e473dSmrg# generated automatically by aclocal 1.11.1 -*- Autoconf -*- 2602e473dSmrg 3602e473dSmrg# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 4602e473dSmrg# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 5602e473dSmrg# This file is free software; the Free Software Foundation 6602e473dSmrg# gives unlimited permission to copy and/or distribute it, 7602e473dSmrg# with or without modifications, as long as this notice is preserved. 8602e473dSmrg 9602e473dSmrg# This program is distributed in the hope that it will be useful, 10602e473dSmrg# but WITHOUT ANY WARRANTY, to the extent permitted by law; without 11602e473dSmrg# even the implied warranty of MERCHANTABILITY or FITNESS FOR A 12602e473dSmrg# PARTICULAR PURPOSE. 13602e473dSmrg 14602e473dSmrgm4_ifndef([AC_AUTOCONF_VERSION], 15602e473dSmrg [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 16602e473dSmrgm4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],, 17602e473dSmrg[m4_warning([this file was generated for autoconf 2.65. 18602e473dSmrgYou have another version of autoconf. It may work, but is not guaranteed to. 19602e473dSmrgIf you have problems, you may need to regenerate the build system entirely. 20602e473dSmrgTo do so, use the procedure documented by the package, typically `autoreconf'.])]) 21602e473dSmrg 22602e473dSmrg# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 23602e473dSmrg# 24602e473dSmrg# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 25602e473dSmrg# 2006, 2007, 2008 Free Software Foundation, Inc. 26602e473dSmrg# Written by Gordon Matzigkeit, 1996 27602e473dSmrg# 28602e473dSmrg# This file is free software; the Free Software Foundation gives 29602e473dSmrg# unlimited permission to copy and/or distribute it, with or without 30602e473dSmrg# modifications, as long as this notice is preserved. 31602e473dSmrg 32602e473dSmrgm4_define([_LT_COPYING], [dnl 33602e473dSmrg# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 34602e473dSmrg# 2006, 2007, 2008 Free Software Foundation, Inc. 35602e473dSmrg# Written by Gordon Matzigkeit, 1996 36602e473dSmrg# 37602e473dSmrg# This file is part of GNU Libtool. 38602e473dSmrg# 39602e473dSmrg# GNU Libtool is free software; you can redistribute it and/or 40602e473dSmrg# modify it under the terms of the GNU General Public License as 41602e473dSmrg# published by the Free Software Foundation; either version 2 of 42602e473dSmrg# the License, or (at your option) any later version. 43602e473dSmrg# 44602e473dSmrg# As a special exception to the GNU General Public License, 45602e473dSmrg# if you distribute this file as part of a program or library that 46602e473dSmrg# is built using GNU Libtool, you may include this file under the 47602e473dSmrg# same distribution terms that you use for the rest of that program. 48602e473dSmrg# 49602e473dSmrg# GNU Libtool is distributed in the hope that it will be useful, 50602e473dSmrg# but WITHOUT ANY WARRANTY; without even the implied warranty of 51602e473dSmrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 52602e473dSmrg# GNU General Public License for more details. 53602e473dSmrg# 54602e473dSmrg# You should have received a copy of the GNU General Public License 55602e473dSmrg# along with GNU Libtool; see the file COPYING. If not, a copy 56602e473dSmrg# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 57602e473dSmrg# obtained by writing to the Free Software Foundation, Inc., 58602e473dSmrg# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 59602e473dSmrg]) 60602e473dSmrg 61602e473dSmrg# serial 56 LT_INIT 62602e473dSmrg 63602e473dSmrg 64602e473dSmrg# LT_PREREQ(VERSION) 65602e473dSmrg# ------------------ 66602e473dSmrg# Complain and exit if this libtool version is less that VERSION. 67602e473dSmrgm4_defun([LT_PREREQ], 68602e473dSmrg[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, 69602e473dSmrg [m4_default([$3], 70602e473dSmrg [m4_fatal([Libtool version $1 or higher is required], 71602e473dSmrg 63)])], 72602e473dSmrg [$2])]) 73602e473dSmrg 74602e473dSmrg 75602e473dSmrg# _LT_CHECK_BUILDDIR 76602e473dSmrg# ------------------ 77602e473dSmrg# Complain if the absolute build directory name contains unusual characters 78602e473dSmrgm4_defun([_LT_CHECK_BUILDDIR], 79602e473dSmrg[case `pwd` in 80602e473dSmrg *\ * | *\ *) 81602e473dSmrg AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; 82602e473dSmrgesac 83602e473dSmrg]) 84602e473dSmrg 85602e473dSmrg 86602e473dSmrg# LT_INIT([OPTIONS]) 87602e473dSmrg# ------------------ 88602e473dSmrgAC_DEFUN([LT_INIT], 89602e473dSmrg[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT 90602e473dSmrgAC_BEFORE([$0], [LT_LANG])dnl 91602e473dSmrgAC_BEFORE([$0], [LT_OUTPUT])dnl 92602e473dSmrgAC_BEFORE([$0], [LTDL_INIT])dnl 93602e473dSmrgm4_require([_LT_CHECK_BUILDDIR])dnl 94602e473dSmrg 95602e473dSmrgdnl Autoconf doesn't catch unexpanded LT_ macros by default: 96602e473dSmrgm4_pattern_forbid([^_?LT_[A-Z_]+$])dnl 97602e473dSmrgm4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl 98602e473dSmrgdnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 99602e473dSmrgdnl unless we require an AC_DEFUNed macro: 100602e473dSmrgAC_REQUIRE([LTOPTIONS_VERSION])dnl 101602e473dSmrgAC_REQUIRE([LTSUGAR_VERSION])dnl 102602e473dSmrgAC_REQUIRE([LTVERSION_VERSION])dnl 103602e473dSmrgAC_REQUIRE([LTOBSOLETE_VERSION])dnl 104602e473dSmrgm4_require([_LT_PROG_LTMAIN])dnl 105602e473dSmrg 106602e473dSmrgdnl Parse OPTIONS 107602e473dSmrg_LT_SET_OPTIONS([$0], [$1]) 108602e473dSmrg 109602e473dSmrg# This can be used to rebuild libtool when needed 110602e473dSmrgLIBTOOL_DEPS="$ltmain" 111602e473dSmrg 112602e473dSmrg# Always use our own libtool. 113602e473dSmrgLIBTOOL='$(SHELL) $(top_builddir)/libtool' 114602e473dSmrgAC_SUBST(LIBTOOL)dnl 115602e473dSmrg 116602e473dSmrg_LT_SETUP 117602e473dSmrg 118602e473dSmrg# Only expand once: 119602e473dSmrgm4_define([LT_INIT]) 120602e473dSmrg])# LT_INIT 121602e473dSmrg 122602e473dSmrg# Old names: 123602e473dSmrgAU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) 124602e473dSmrgAU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) 125602e473dSmrgdnl aclocal-1.4 backwards compatibility: 126602e473dSmrgdnl AC_DEFUN([AC_PROG_LIBTOOL], []) 127602e473dSmrgdnl AC_DEFUN([AM_PROG_LIBTOOL], []) 128602e473dSmrg 129602e473dSmrg 130602e473dSmrg# _LT_CC_BASENAME(CC) 131602e473dSmrg# ------------------- 132602e473dSmrg# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 133602e473dSmrgm4_defun([_LT_CC_BASENAME], 134602e473dSmrg[for cc_temp in $1""; do 135602e473dSmrg case $cc_temp in 136602e473dSmrg compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; 137602e473dSmrg distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; 138602e473dSmrg \-*) ;; 139602e473dSmrg *) break;; 140602e473dSmrg esac 141602e473dSmrgdone 142602e473dSmrgcc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 143602e473dSmrg]) 144602e473dSmrg 145602e473dSmrg 146602e473dSmrg# _LT_FILEUTILS_DEFAULTS 147602e473dSmrg# ---------------------- 148602e473dSmrg# It is okay to use these file commands and assume they have been set 149602e473dSmrg# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'. 150602e473dSmrgm4_defun([_LT_FILEUTILS_DEFAULTS], 151602e473dSmrg[: ${CP="cp -f"} 152602e473dSmrg: ${MV="mv -f"} 153602e473dSmrg: ${RM="rm -f"} 154602e473dSmrg])# _LT_FILEUTILS_DEFAULTS 155602e473dSmrg 156602e473dSmrg 157602e473dSmrg# _LT_SETUP 158602e473dSmrg# --------- 159602e473dSmrgm4_defun([_LT_SETUP], 160602e473dSmrg[AC_REQUIRE([AC_CANONICAL_HOST])dnl 161602e473dSmrgAC_REQUIRE([AC_CANONICAL_BUILD])dnl 162602e473dSmrg_LT_DECL([], [host_alias], [0], [The host system])dnl 163602e473dSmrg_LT_DECL([], [host], [0])dnl 164602e473dSmrg_LT_DECL([], [host_os], [0])dnl 165602e473dSmrgdnl 166602e473dSmrg_LT_DECL([], [build_alias], [0], [The build system])dnl 167602e473dSmrg_LT_DECL([], [build], [0])dnl 168602e473dSmrg_LT_DECL([], [build_os], [0])dnl 169602e473dSmrgdnl 170602e473dSmrgAC_REQUIRE([AC_PROG_CC])dnl 171602e473dSmrgAC_REQUIRE([LT_PATH_LD])dnl 172602e473dSmrgAC_REQUIRE([LT_PATH_NM])dnl 173602e473dSmrgdnl 174602e473dSmrgAC_REQUIRE([AC_PROG_LN_S])dnl 175602e473dSmrgtest -z "$LN_S" && LN_S="ln -s" 176602e473dSmrg_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl 177602e473dSmrgdnl 178602e473dSmrgAC_REQUIRE([LT_CMD_MAX_LEN])dnl 179602e473dSmrg_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl 180602e473dSmrg_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl 181602e473dSmrgdnl 182602e473dSmrgm4_require([_LT_FILEUTILS_DEFAULTS])dnl 183602e473dSmrgm4_require([_LT_CHECK_SHELL_FEATURES])dnl 184602e473dSmrgm4_require([_LT_CMD_RELOAD])dnl 185602e473dSmrgm4_require([_LT_CHECK_MAGIC_METHOD])dnl 186602e473dSmrgm4_require([_LT_CMD_OLD_ARCHIVE])dnl 187602e473dSmrgm4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl 188602e473dSmrg 189602e473dSmrg_LT_CONFIG_LIBTOOL_INIT([ 190602e473dSmrg# See if we are running on zsh, and set the options which allow our 191602e473dSmrg# commands through without removal of \ escapes INIT. 192602e473dSmrgif test -n "\${ZSH_VERSION+set}" ; then 193602e473dSmrg setopt NO_GLOB_SUBST 194602e473dSmrgfi 195602e473dSmrg]) 196602e473dSmrgif test -n "${ZSH_VERSION+set}" ; then 197602e473dSmrg setopt NO_GLOB_SUBST 198602e473dSmrgfi 199602e473dSmrg 200602e473dSmrg_LT_CHECK_OBJDIR 201602e473dSmrg 202602e473dSmrgm4_require([_LT_TAG_COMPILER])dnl 203602e473dSmrg_LT_PROG_ECHO_BACKSLASH 204602e473dSmrg 205602e473dSmrgcase $host_os in 206602e473dSmrgaix3*) 207602e473dSmrg # AIX sometimes has problems with the GCC collect2 program. For some 208602e473dSmrg # reason, if we set the COLLECT_NAMES environment variable, the problems 209602e473dSmrg # vanish in a puff of smoke. 210602e473dSmrg if test "X${COLLECT_NAMES+set}" != Xset; then 211602e473dSmrg COLLECT_NAMES= 212602e473dSmrg export COLLECT_NAMES 213602e473dSmrg fi 214602e473dSmrg ;; 215602e473dSmrgesac 216602e473dSmrg 217602e473dSmrg# Sed substitution that helps us do robust quoting. It backslashifies 218602e473dSmrg# metacharacters that are still active within double-quoted strings. 219602e473dSmrgsed_quote_subst='s/\([["`$\\]]\)/\\\1/g' 220602e473dSmrg 221602e473dSmrg# Same as above, but do not quote variable references. 222602e473dSmrgdouble_quote_subst='s/\([["`\\]]\)/\\\1/g' 223602e473dSmrg 224602e473dSmrg# Sed substitution to delay expansion of an escaped shell variable in a 225602e473dSmrg# double_quote_subst'ed string. 226602e473dSmrgdelay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 227602e473dSmrg 228602e473dSmrg# Sed substitution to delay expansion of an escaped single quote. 229602e473dSmrgdelay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 230602e473dSmrg 231602e473dSmrg# Sed substitution to avoid accidental globbing in evaled expressions 232602e473dSmrgno_glob_subst='s/\*/\\\*/g' 233602e473dSmrg 234602e473dSmrg# Global variables: 235602e473dSmrgofile=libtool 236602e473dSmrgcan_build_shared=yes 237602e473dSmrg 238602e473dSmrg# All known linkers require a `.a' archive for static linking (except MSVC, 239602e473dSmrg# which needs '.lib'). 240602e473dSmrglibext=a 241602e473dSmrg 242602e473dSmrgwith_gnu_ld="$lt_cv_prog_gnu_ld" 243602e473dSmrg 244602e473dSmrgold_CC="$CC" 245602e473dSmrgold_CFLAGS="$CFLAGS" 246602e473dSmrg 247602e473dSmrg# Set sane defaults for various variables 248602e473dSmrgtest -z "$CC" && CC=cc 249602e473dSmrgtest -z "$LTCC" && LTCC=$CC 250602e473dSmrgtest -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 251602e473dSmrgtest -z "$LD" && LD=ld 252602e473dSmrgtest -z "$ac_objext" && ac_objext=o 253602e473dSmrg 254602e473dSmrg_LT_CC_BASENAME([$compiler]) 255602e473dSmrg 256602e473dSmrg# Only perform the check for file, if the check method requires it 257602e473dSmrgtest -z "$MAGIC_CMD" && MAGIC_CMD=file 258602e473dSmrgcase $deplibs_check_method in 259602e473dSmrgfile_magic*) 260602e473dSmrg if test "$file_magic_cmd" = '$MAGIC_CMD'; then 261602e473dSmrg _LT_PATH_MAGIC 262602e473dSmrg fi 263602e473dSmrg ;; 264602e473dSmrgesac 265602e473dSmrg 266602e473dSmrg# Use C for the default configuration in the libtool script 267602e473dSmrgLT_SUPPORTED_TAG([CC]) 268602e473dSmrg_LT_LANG_C_CONFIG 269602e473dSmrg_LT_LANG_DEFAULT_CONFIG 270602e473dSmrg_LT_CONFIG_COMMANDS 271602e473dSmrg])# _LT_SETUP 272602e473dSmrg 273602e473dSmrg 274602e473dSmrg# _LT_PROG_LTMAIN 275602e473dSmrg# --------------- 276602e473dSmrg# Note that this code is called both from `configure', and `config.status' 277602e473dSmrg# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, 278602e473dSmrg# `config.status' has no value for ac_aux_dir unless we are using Automake, 279602e473dSmrg# so we pass a copy along to make sure it has a sensible value anyway. 280602e473dSmrgm4_defun([_LT_PROG_LTMAIN], 281602e473dSmrg[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl 282602e473dSmrg_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) 283602e473dSmrgltmain="$ac_aux_dir/ltmain.sh" 284602e473dSmrg])# _LT_PROG_LTMAIN 285602e473dSmrg 286602e473dSmrg 287602e473dSmrg 288602e473dSmrg# So that we can recreate a full libtool script including additional 289602e473dSmrg# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS 290602e473dSmrg# in macros and then make a single call at the end using the `libtool' 291602e473dSmrg# label. 292602e473dSmrg 293602e473dSmrg 294602e473dSmrg# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) 295602e473dSmrg# ---------------------------------------- 296602e473dSmrg# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. 297602e473dSmrgm4_define([_LT_CONFIG_LIBTOOL_INIT], 298602e473dSmrg[m4_ifval([$1], 299602e473dSmrg [m4_append([_LT_OUTPUT_LIBTOOL_INIT], 300602e473dSmrg [$1 301602e473dSmrg])])]) 302602e473dSmrg 303602e473dSmrg# Initialize. 304602e473dSmrgm4_define([_LT_OUTPUT_LIBTOOL_INIT]) 305602e473dSmrg 306602e473dSmrg 307602e473dSmrg# _LT_CONFIG_LIBTOOL([COMMANDS]) 308602e473dSmrg# ------------------------------ 309602e473dSmrg# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. 310602e473dSmrgm4_define([_LT_CONFIG_LIBTOOL], 311602e473dSmrg[m4_ifval([$1], 312602e473dSmrg [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], 313602e473dSmrg [$1 314602e473dSmrg])])]) 315602e473dSmrg 316602e473dSmrg# Initialize. 317602e473dSmrgm4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) 318602e473dSmrg 319602e473dSmrg 320602e473dSmrg# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) 321602e473dSmrg# ----------------------------------------------------- 322602e473dSmrgm4_defun([_LT_CONFIG_SAVE_COMMANDS], 323602e473dSmrg[_LT_CONFIG_LIBTOOL([$1]) 324602e473dSmrg_LT_CONFIG_LIBTOOL_INIT([$2]) 325602e473dSmrg]) 326602e473dSmrg 327602e473dSmrg 328602e473dSmrg# _LT_FORMAT_COMMENT([COMMENT]) 329602e473dSmrg# ----------------------------- 330602e473dSmrg# Add leading comment marks to the start of each line, and a trailing 331602e473dSmrg# full-stop to the whole comment if one is not present already. 332602e473dSmrgm4_define([_LT_FORMAT_COMMENT], 333602e473dSmrg[m4_ifval([$1], [ 334602e473dSmrgm4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], 335602e473dSmrg [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) 336602e473dSmrg)]) 337602e473dSmrg 338602e473dSmrg 339602e473dSmrg 340602e473dSmrg 341602e473dSmrg 342602e473dSmrg# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) 343602e473dSmrg# ------------------------------------------------------------------- 344602e473dSmrg# CONFIGNAME is the name given to the value in the libtool script. 345602e473dSmrg# VARNAME is the (base) name used in the configure script. 346602e473dSmrg# VALUE may be 0, 1 or 2 for a computed quote escaped value based on 347602e473dSmrg# VARNAME. Any other value will be used directly. 348602e473dSmrgm4_define([_LT_DECL], 349602e473dSmrg[lt_if_append_uniq([lt_decl_varnames], [$2], [, ], 350602e473dSmrg [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], 351602e473dSmrg [m4_ifval([$1], [$1], [$2])]) 352602e473dSmrg lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) 353602e473dSmrg m4_ifval([$4], 354602e473dSmrg [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) 355602e473dSmrg lt_dict_add_subkey([lt_decl_dict], [$2], 356602e473dSmrg [tagged?], [m4_ifval([$5], [yes], [no])])]) 357602e473dSmrg]) 358602e473dSmrg 359602e473dSmrg 360602e473dSmrg# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) 361602e473dSmrg# -------------------------------------------------------- 362602e473dSmrgm4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) 363602e473dSmrg 364602e473dSmrg 365602e473dSmrg# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) 366602e473dSmrg# ------------------------------------------------ 367602e473dSmrgm4_define([lt_decl_tag_varnames], 368602e473dSmrg[_lt_decl_filter([tagged?], [yes], $@)]) 369602e473dSmrg 370602e473dSmrg 371602e473dSmrg# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) 372602e473dSmrg# --------------------------------------------------------- 373602e473dSmrgm4_define([_lt_decl_filter], 374602e473dSmrg[m4_case([$#], 375602e473dSmrg [0], [m4_fatal([$0: too few arguments: $#])], 376602e473dSmrg [1], [m4_fatal([$0: too few arguments: $#: $1])], 377602e473dSmrg [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], 378602e473dSmrg [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], 379602e473dSmrg [lt_dict_filter([lt_decl_dict], $@)])[]dnl 380602e473dSmrg]) 381602e473dSmrg 382602e473dSmrg 383602e473dSmrg# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) 384602e473dSmrg# -------------------------------------------------- 385602e473dSmrgm4_define([lt_decl_quote_varnames], 386602e473dSmrg[_lt_decl_filter([value], [1], $@)]) 387602e473dSmrg 388602e473dSmrg 389602e473dSmrg# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) 390602e473dSmrg# --------------------------------------------------- 391602e473dSmrgm4_define([lt_decl_dquote_varnames], 392602e473dSmrg[_lt_decl_filter([value], [2], $@)]) 393602e473dSmrg 394602e473dSmrg 395602e473dSmrg# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) 396602e473dSmrg# --------------------------------------------------- 397602e473dSmrgm4_define([lt_decl_varnames_tagged], 398602e473dSmrg[m4_assert([$# <= 2])dnl 399602e473dSmrg_$0(m4_quote(m4_default([$1], [[, ]])), 400602e473dSmrg m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), 401602e473dSmrg m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) 402602e473dSmrgm4_define([_lt_decl_varnames_tagged], 403602e473dSmrg[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) 404602e473dSmrg 405602e473dSmrg 406602e473dSmrg# lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) 407602e473dSmrg# ------------------------------------------------ 408602e473dSmrgm4_define([lt_decl_all_varnames], 409602e473dSmrg[_$0(m4_quote(m4_default([$1], [[, ]])), 410602e473dSmrg m4_if([$2], [], 411602e473dSmrg m4_quote(lt_decl_varnames), 412602e473dSmrg m4_quote(m4_shift($@))))[]dnl 413602e473dSmrg]) 414602e473dSmrgm4_define([_lt_decl_all_varnames], 415602e473dSmrg[lt_join($@, lt_decl_varnames_tagged([$1], 416602e473dSmrg lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl 417602e473dSmrg]) 418602e473dSmrg 419602e473dSmrg 420602e473dSmrg# _LT_CONFIG_STATUS_DECLARE([VARNAME]) 421602e473dSmrg# ------------------------------------ 422602e473dSmrg# Quote a variable value, and forward it to `config.status' so that its 423602e473dSmrg# declaration there will have the same value as in `configure'. VARNAME 424602e473dSmrg# must have a single quote delimited value for this to work. 425602e473dSmrgm4_define([_LT_CONFIG_STATUS_DECLARE], 426602e473dSmrg[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`']) 427602e473dSmrg 428602e473dSmrg 429602e473dSmrg# _LT_CONFIG_STATUS_DECLARATIONS 430602e473dSmrg# ------------------------------ 431602e473dSmrg# We delimit libtool config variables with single quotes, so when 432602e473dSmrg# we write them to config.status, we have to be sure to quote all 433602e473dSmrg# embedded single quotes properly. In configure, this macro expands 434602e473dSmrg# each variable declared with _LT_DECL (and _LT_TAGDECL) into: 435602e473dSmrg# 436602e473dSmrg# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`' 437602e473dSmrgm4_defun([_LT_CONFIG_STATUS_DECLARATIONS], 438602e473dSmrg[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), 439602e473dSmrg [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) 440602e473dSmrg 441602e473dSmrg 442602e473dSmrg# _LT_LIBTOOL_TAGS 443602e473dSmrg# ---------------- 444602e473dSmrg# Output comment and list of tags supported by the script 445602e473dSmrgm4_defun([_LT_LIBTOOL_TAGS], 446602e473dSmrg[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl 447602e473dSmrgavailable_tags="_LT_TAGS"dnl 448602e473dSmrg]) 449602e473dSmrg 450602e473dSmrg 451602e473dSmrg# _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) 452602e473dSmrg# ----------------------------------- 453602e473dSmrg# Extract the dictionary values for VARNAME (optionally with TAG) and 454602e473dSmrg# expand to a commented shell variable setting: 455602e473dSmrg# 456602e473dSmrg# # Some comment about what VAR is for. 457602e473dSmrg# visible_name=$lt_internal_name 458602e473dSmrgm4_define([_LT_LIBTOOL_DECLARE], 459602e473dSmrg[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], 460602e473dSmrg [description])))[]dnl 461602e473dSmrgm4_pushdef([_libtool_name], 462602e473dSmrg m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl 463602e473dSmrgm4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), 464602e473dSmrg [0], [_libtool_name=[$]$1], 465602e473dSmrg [1], [_libtool_name=$lt_[]$1], 466602e473dSmrg [2], [_libtool_name=$lt_[]$1], 467602e473dSmrg [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl 468602e473dSmrgm4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl 469602e473dSmrg]) 470602e473dSmrg 471602e473dSmrg 472602e473dSmrg# _LT_LIBTOOL_CONFIG_VARS 473602e473dSmrg# ----------------------- 474602e473dSmrg# Produce commented declarations of non-tagged libtool config variables 475602e473dSmrg# suitable for insertion in the LIBTOOL CONFIG section of the `libtool' 476602e473dSmrg# script. Tagged libtool config variables (even for the LIBTOOL CONFIG 477602e473dSmrg# section) are produced by _LT_LIBTOOL_TAG_VARS. 478602e473dSmrgm4_defun([_LT_LIBTOOL_CONFIG_VARS], 479602e473dSmrg[m4_foreach([_lt_var], 480602e473dSmrg m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), 481602e473dSmrg [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) 482602e473dSmrg 483602e473dSmrg 484602e473dSmrg# _LT_LIBTOOL_TAG_VARS(TAG) 485602e473dSmrg# ------------------------- 486602e473dSmrgm4_define([_LT_LIBTOOL_TAG_VARS], 487602e473dSmrg[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), 488602e473dSmrg [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) 489602e473dSmrg 490602e473dSmrg 491602e473dSmrg# _LT_TAGVAR(VARNAME, [TAGNAME]) 492602e473dSmrg# ------------------------------ 493602e473dSmrgm4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) 494602e473dSmrg 495602e473dSmrg 496602e473dSmrg# _LT_CONFIG_COMMANDS 497602e473dSmrg# ------------------- 498602e473dSmrg# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of 499602e473dSmrg# variables for single and double quote escaping we saved from calls 500602e473dSmrg# to _LT_DECL, we can put quote escaped variables declarations 501602e473dSmrg# into `config.status', and then the shell code to quote escape them in 502602e473dSmrg# for loops in `config.status'. Finally, any additional code accumulated 503602e473dSmrg# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. 504602e473dSmrgm4_defun([_LT_CONFIG_COMMANDS], 505602e473dSmrg[AC_PROVIDE_IFELSE([LT_OUTPUT], 506602e473dSmrg dnl If the libtool generation code has been placed in $CONFIG_LT, 507602e473dSmrg dnl instead of duplicating it all over again into config.status, 508602e473dSmrg dnl then we will have config.status run $CONFIG_LT later, so it 509602e473dSmrg dnl needs to know what name is stored there: 510602e473dSmrg [AC_CONFIG_COMMANDS([libtool], 511602e473dSmrg [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], 512602e473dSmrg dnl If the libtool generation code is destined for config.status, 513602e473dSmrg dnl expand the accumulated commands and init code now: 514602e473dSmrg [AC_CONFIG_COMMANDS([libtool], 515602e473dSmrg [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) 516602e473dSmrg])#_LT_CONFIG_COMMANDS 517602e473dSmrg 518602e473dSmrg 519602e473dSmrg# Initialize. 520602e473dSmrgm4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], 521602e473dSmrg[ 522602e473dSmrg 523602e473dSmrg# The HP-UX ksh and POSIX shell print the target directory to stdout 524602e473dSmrg# if CDPATH is set. 525602e473dSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 526602e473dSmrg 527602e473dSmrgsed_quote_subst='$sed_quote_subst' 528602e473dSmrgdouble_quote_subst='$double_quote_subst' 529602e473dSmrgdelay_variable_subst='$delay_variable_subst' 530602e473dSmrg_LT_CONFIG_STATUS_DECLARATIONS 531602e473dSmrgLTCC='$LTCC' 532602e473dSmrgLTCFLAGS='$LTCFLAGS' 533602e473dSmrgcompiler='$compiler_DEFAULT' 534602e473dSmrg 535602e473dSmrg# Quote evaled strings. 536602e473dSmrgfor var in lt_decl_all_varnames([[ \ 537602e473dSmrg]], lt_decl_quote_varnames); do 538602e473dSmrg case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 539602e473dSmrg *[[\\\\\\\`\\"\\\$]]*) 540602e473dSmrg eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 541602e473dSmrg ;; 542602e473dSmrg *) 543602e473dSmrg eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 544602e473dSmrg ;; 545602e473dSmrg esac 546602e473dSmrgdone 547602e473dSmrg 548602e473dSmrg# Double-quote double-evaled strings. 549602e473dSmrgfor var in lt_decl_all_varnames([[ \ 550602e473dSmrg]], lt_decl_dquote_varnames); do 551602e473dSmrg case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 552602e473dSmrg *[[\\\\\\\`\\"\\\$]]*) 553602e473dSmrg eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 554602e473dSmrg ;; 555602e473dSmrg *) 556602e473dSmrg eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 557602e473dSmrg ;; 558602e473dSmrg esac 559602e473dSmrgdone 560602e473dSmrg 561602e473dSmrg# Fix-up fallback echo if it was mangled by the above quoting rules. 562602e473dSmrgcase \$lt_ECHO in 563602e473dSmrg*'\\\[$]0 --fallback-echo"')dnl " 564602e473dSmrg lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\` 565602e473dSmrg ;; 566602e473dSmrgesac 567602e473dSmrg 568602e473dSmrg_LT_OUTPUT_LIBTOOL_INIT 569602e473dSmrg]) 570602e473dSmrg 571602e473dSmrg 572602e473dSmrg# LT_OUTPUT 573602e473dSmrg# --------- 574602e473dSmrg# This macro allows early generation of the libtool script (before 575602e473dSmrg# AC_OUTPUT is called), incase it is used in configure for compilation 576602e473dSmrg# tests. 577602e473dSmrgAC_DEFUN([LT_OUTPUT], 578602e473dSmrg[: ${CONFIG_LT=./config.lt} 579602e473dSmrgAC_MSG_NOTICE([creating $CONFIG_LT]) 580602e473dSmrgcat >"$CONFIG_LT" <<_LTEOF 581602e473dSmrg#! $SHELL 582602e473dSmrg# Generated by $as_me. 583602e473dSmrg# Run this file to recreate a libtool stub with the current configuration. 584602e473dSmrg 585602e473dSmrglt_cl_silent=false 586602e473dSmrgSHELL=\${CONFIG_SHELL-$SHELL} 587602e473dSmrg_LTEOF 588602e473dSmrg 589602e473dSmrgcat >>"$CONFIG_LT" <<\_LTEOF 590602e473dSmrgAS_SHELL_SANITIZE 591602e473dSmrg_AS_PREPARE 592602e473dSmrg 593602e473dSmrgexec AS_MESSAGE_FD>&1 594602e473dSmrgexec AS_MESSAGE_LOG_FD>>config.log 595602e473dSmrg{ 596602e473dSmrg echo 597602e473dSmrg AS_BOX([Running $as_me.]) 598602e473dSmrg} >&AS_MESSAGE_LOG_FD 599602e473dSmrg 600602e473dSmrglt_cl_help="\ 601602e473dSmrg\`$as_me' creates a local libtool stub from the current configuration, 602602e473dSmrgfor use in further configure time tests before the real libtool is 603602e473dSmrggenerated. 604602e473dSmrg 605602e473dSmrgUsage: $[0] [[OPTIONS]] 606602e473dSmrg 607602e473dSmrg -h, --help print this help, then exit 608602e473dSmrg -V, --version print version number, then exit 609602e473dSmrg -q, --quiet do not print progress messages 610602e473dSmrg -d, --debug don't remove temporary files 611602e473dSmrg 612602e473dSmrgReport bugs to <bug-libtool@gnu.org>." 613602e473dSmrg 614602e473dSmrglt_cl_version="\ 615602e473dSmrgm4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl 616602e473dSmrgm4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) 617602e473dSmrgconfigured by $[0], generated by m4_PACKAGE_STRING. 618602e473dSmrg 619602e473dSmrgCopyright (C) 2008 Free Software Foundation, Inc. 620602e473dSmrgThis config.lt script is free software; the Free Software Foundation 621602e473dSmrggives unlimited permision to copy, distribute and modify it." 622602e473dSmrg 623602e473dSmrgwhile test $[#] != 0 624602e473dSmrgdo 625602e473dSmrg case $[1] in 626602e473dSmrg --version | --v* | -V ) 627602e473dSmrg echo "$lt_cl_version"; exit 0 ;; 628602e473dSmrg --help | --h* | -h ) 629602e473dSmrg echo "$lt_cl_help"; exit 0 ;; 630602e473dSmrg --debug | --d* | -d ) 631602e473dSmrg debug=: ;; 632602e473dSmrg --quiet | --q* | --silent | --s* | -q ) 633602e473dSmrg lt_cl_silent=: ;; 634602e473dSmrg 635602e473dSmrg -*) AC_MSG_ERROR([unrecognized option: $[1] 636602e473dSmrgTry \`$[0] --help' for more information.]) ;; 637602e473dSmrg 638602e473dSmrg *) AC_MSG_ERROR([unrecognized argument: $[1] 639602e473dSmrgTry \`$[0] --help' for more information.]) ;; 640602e473dSmrg esac 641602e473dSmrg shift 642602e473dSmrgdone 643602e473dSmrg 644602e473dSmrgif $lt_cl_silent; then 645602e473dSmrg exec AS_MESSAGE_FD>/dev/null 646602e473dSmrgfi 647602e473dSmrg_LTEOF 648602e473dSmrg 649602e473dSmrgcat >>"$CONFIG_LT" <<_LTEOF 650602e473dSmrg_LT_OUTPUT_LIBTOOL_COMMANDS_INIT 651602e473dSmrg_LTEOF 652602e473dSmrg 653602e473dSmrgcat >>"$CONFIG_LT" <<\_LTEOF 654602e473dSmrgAC_MSG_NOTICE([creating $ofile]) 655602e473dSmrg_LT_OUTPUT_LIBTOOL_COMMANDS 656602e473dSmrgAS_EXIT(0) 657602e473dSmrg_LTEOF 658602e473dSmrgchmod +x "$CONFIG_LT" 659602e473dSmrg 660602e473dSmrg# configure is writing to config.log, but config.lt does its own redirection, 661602e473dSmrg# appending to config.log, which fails on DOS, as config.log is still kept 662602e473dSmrg# open by configure. Here we exec the FD to /dev/null, effectively closing 663602e473dSmrg# config.log, so it can be properly (re)opened and appended to by config.lt. 664602e473dSmrgif test "$no_create" != yes; then 665602e473dSmrg lt_cl_success=: 666602e473dSmrg test "$silent" = yes && 667602e473dSmrg lt_config_lt_args="$lt_config_lt_args --quiet" 668602e473dSmrg exec AS_MESSAGE_LOG_FD>/dev/null 669602e473dSmrg $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false 670602e473dSmrg exec AS_MESSAGE_LOG_FD>>config.log 671602e473dSmrg $lt_cl_success || AS_EXIT(1) 672602e473dSmrgfi 673602e473dSmrg])# LT_OUTPUT 674602e473dSmrg 675602e473dSmrg 676602e473dSmrg# _LT_CONFIG(TAG) 677602e473dSmrg# --------------- 678602e473dSmrg# If TAG is the built-in tag, create an initial libtool script with a 679602e473dSmrg# default configuration from the untagged config vars. Otherwise add code 680602e473dSmrg# to config.status for appending the configuration named by TAG from the 681602e473dSmrg# matching tagged config vars. 682602e473dSmrgm4_defun([_LT_CONFIG], 683602e473dSmrg[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 684602e473dSmrg_LT_CONFIG_SAVE_COMMANDS([ 685602e473dSmrg m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl 686602e473dSmrg m4_if(_LT_TAG, [C], [ 687602e473dSmrg # See if we are running on zsh, and set the options which allow our 688602e473dSmrg # commands through without removal of \ escapes. 689602e473dSmrg if test -n "${ZSH_VERSION+set}" ; then 690602e473dSmrg setopt NO_GLOB_SUBST 691602e473dSmrg fi 692602e473dSmrg 693602e473dSmrg cfgfile="${ofile}T" 694602e473dSmrg trap "$RM \"$cfgfile\"; exit 1" 1 2 15 695602e473dSmrg $RM "$cfgfile" 696602e473dSmrg 697602e473dSmrg cat <<_LT_EOF >> "$cfgfile" 698602e473dSmrg#! $SHELL 699602e473dSmrg 700602e473dSmrg# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 701602e473dSmrg# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 702602e473dSmrg# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 703602e473dSmrg# NOTE: Changes made to this file will be lost: look at ltmain.sh. 704602e473dSmrg# 705602e473dSmrg_LT_COPYING 706602e473dSmrg_LT_LIBTOOL_TAGS 707602e473dSmrg 708602e473dSmrg# ### BEGIN LIBTOOL CONFIG 709602e473dSmrg_LT_LIBTOOL_CONFIG_VARS 710602e473dSmrg_LT_LIBTOOL_TAG_VARS 711602e473dSmrg# ### END LIBTOOL CONFIG 712602e473dSmrg 713602e473dSmrg_LT_EOF 714602e473dSmrg 715602e473dSmrg case $host_os in 716602e473dSmrg aix3*) 717602e473dSmrg cat <<\_LT_EOF >> "$cfgfile" 718602e473dSmrg# AIX sometimes has problems with the GCC collect2 program. For some 719602e473dSmrg# reason, if we set the COLLECT_NAMES environment variable, the problems 720602e473dSmrg# vanish in a puff of smoke. 721602e473dSmrgif test "X${COLLECT_NAMES+set}" != Xset; then 722602e473dSmrg COLLECT_NAMES= 723602e473dSmrg export COLLECT_NAMES 724602e473dSmrgfi 725602e473dSmrg_LT_EOF 726602e473dSmrg ;; 727602e473dSmrg esac 728602e473dSmrg 729602e473dSmrg _LT_PROG_LTMAIN 730602e473dSmrg 731602e473dSmrg # We use sed instead of cat because bash on DJGPP gets confused if 732602e473dSmrg # if finds mixed CR/LF and LF-only lines. Since sed operates in 733602e473dSmrg # text mode, it properly converts lines to CR/LF. This bash problem 734602e473dSmrg # is reportedly fixed, but why not run on old versions too? 735602e473dSmrg sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 736602e473dSmrg || (rm -f "$cfgfile"; exit 1) 737602e473dSmrg 738602e473dSmrg _LT_PROG_XSI_SHELLFNS 739602e473dSmrg 740602e473dSmrg sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 741602e473dSmrg || (rm -f "$cfgfile"; exit 1) 742602e473dSmrg 743602e473dSmrg mv -f "$cfgfile" "$ofile" || 744602e473dSmrg (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 745602e473dSmrg chmod +x "$ofile" 746602e473dSmrg], 747602e473dSmrg[cat <<_LT_EOF >> "$ofile" 748602e473dSmrg 749602e473dSmrgdnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded 750602e473dSmrgdnl in a comment (ie after a #). 751602e473dSmrg# ### BEGIN LIBTOOL TAG CONFIG: $1 752602e473dSmrg_LT_LIBTOOL_TAG_VARS(_LT_TAG) 753602e473dSmrg# ### END LIBTOOL TAG CONFIG: $1 754602e473dSmrg_LT_EOF 755602e473dSmrg])dnl /m4_if 756602e473dSmrg], 757602e473dSmrg[m4_if([$1], [], [ 758602e473dSmrg PACKAGE='$PACKAGE' 759602e473dSmrg VERSION='$VERSION' 760602e473dSmrg TIMESTAMP='$TIMESTAMP' 761602e473dSmrg RM='$RM' 762602e473dSmrg ofile='$ofile'], []) 763602e473dSmrg])dnl /_LT_CONFIG_SAVE_COMMANDS 764602e473dSmrg])# _LT_CONFIG 765602e473dSmrg 766602e473dSmrg 767602e473dSmrg# LT_SUPPORTED_TAG(TAG) 768602e473dSmrg# --------------------- 769602e473dSmrg# Trace this macro to discover what tags are supported by the libtool 770602e473dSmrg# --tag option, using: 771602e473dSmrg# autoconf --trace 'LT_SUPPORTED_TAG:$1' 772602e473dSmrgAC_DEFUN([LT_SUPPORTED_TAG], []) 773602e473dSmrg 774602e473dSmrg 775602e473dSmrg# C support is built-in for now 776602e473dSmrgm4_define([_LT_LANG_C_enabled], []) 777602e473dSmrgm4_define([_LT_TAGS], []) 778602e473dSmrg 779602e473dSmrg 780602e473dSmrg# LT_LANG(LANG) 781602e473dSmrg# ------------- 782602e473dSmrg# Enable libtool support for the given language if not already enabled. 783602e473dSmrgAC_DEFUN([LT_LANG], 784602e473dSmrg[AC_BEFORE([$0], [LT_OUTPUT])dnl 785602e473dSmrgm4_case([$1], 786602e473dSmrg [C], [_LT_LANG(C)], 787602e473dSmrg [C++], [_LT_LANG(CXX)], 788602e473dSmrg [Java], [_LT_LANG(GCJ)], 789602e473dSmrg [Fortran 77], [_LT_LANG(F77)], 790602e473dSmrg [Fortran], [_LT_LANG(FC)], 791602e473dSmrg [Windows Resource], [_LT_LANG(RC)], 792602e473dSmrg [m4_ifdef([_LT_LANG_]$1[_CONFIG], 793602e473dSmrg [_LT_LANG($1)], 794602e473dSmrg [m4_fatal([$0: unsupported language: "$1"])])])dnl 795602e473dSmrg])# LT_LANG 796602e473dSmrg 797602e473dSmrg 798602e473dSmrg# _LT_LANG(LANGNAME) 799602e473dSmrg# ------------------ 800602e473dSmrgm4_defun([_LT_LANG], 801602e473dSmrg[m4_ifdef([_LT_LANG_]$1[_enabled], [], 802602e473dSmrg [LT_SUPPORTED_TAG([$1])dnl 803602e473dSmrg m4_append([_LT_TAGS], [$1 ])dnl 804602e473dSmrg m4_define([_LT_LANG_]$1[_enabled], [])dnl 805602e473dSmrg _LT_LANG_$1_CONFIG($1)])dnl 806602e473dSmrg])# _LT_LANG 807602e473dSmrg 808602e473dSmrg 809602e473dSmrg# _LT_LANG_DEFAULT_CONFIG 810602e473dSmrg# ----------------------- 811602e473dSmrgm4_defun([_LT_LANG_DEFAULT_CONFIG], 812602e473dSmrg[AC_PROVIDE_IFELSE([AC_PROG_CXX], 813602e473dSmrg [LT_LANG(CXX)], 814602e473dSmrg [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) 815602e473dSmrg 816602e473dSmrgAC_PROVIDE_IFELSE([AC_PROG_F77], 817602e473dSmrg [LT_LANG(F77)], 818602e473dSmrg [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) 819602e473dSmrg 820602e473dSmrgAC_PROVIDE_IFELSE([AC_PROG_FC], 821602e473dSmrg [LT_LANG(FC)], 822602e473dSmrg [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) 823602e473dSmrg 824602e473dSmrgdnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal 825602e473dSmrgdnl pulling things in needlessly. 826602e473dSmrgAC_PROVIDE_IFELSE([AC_PROG_GCJ], 827602e473dSmrg [LT_LANG(GCJ)], 828602e473dSmrg [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], 829602e473dSmrg [LT_LANG(GCJ)], 830602e473dSmrg [AC_PROVIDE_IFELSE([LT_PROG_GCJ], 831602e473dSmrg [LT_LANG(GCJ)], 832602e473dSmrg [m4_ifdef([AC_PROG_GCJ], 833602e473dSmrg [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) 834602e473dSmrg m4_ifdef([A][M_PROG_GCJ], 835602e473dSmrg [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) 836602e473dSmrg m4_ifdef([LT_PROG_GCJ], 837602e473dSmrg [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) 838602e473dSmrg 839602e473dSmrgAC_PROVIDE_IFELSE([LT_PROG_RC], 840602e473dSmrg [LT_LANG(RC)], 841602e473dSmrg [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) 842602e473dSmrg])# _LT_LANG_DEFAULT_CONFIG 843602e473dSmrg 844602e473dSmrg# Obsolete macros: 845602e473dSmrgAU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) 846602e473dSmrgAU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) 847602e473dSmrgAU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) 848602e473dSmrgAU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) 849602e473dSmrgdnl aclocal-1.4 backwards compatibility: 850602e473dSmrgdnl AC_DEFUN([AC_LIBTOOL_CXX], []) 851602e473dSmrgdnl AC_DEFUN([AC_LIBTOOL_F77], []) 852602e473dSmrgdnl AC_DEFUN([AC_LIBTOOL_FC], []) 853602e473dSmrgdnl AC_DEFUN([AC_LIBTOOL_GCJ], []) 854602e473dSmrg 855602e473dSmrg 856602e473dSmrg# _LT_TAG_COMPILER 857602e473dSmrg# ---------------- 858602e473dSmrgm4_defun([_LT_TAG_COMPILER], 859602e473dSmrg[AC_REQUIRE([AC_PROG_CC])dnl 860602e473dSmrg 861602e473dSmrg_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl 862602e473dSmrg_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl 863602e473dSmrg_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl 864602e473dSmrg_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl 865602e473dSmrg 866602e473dSmrg# If no C compiler was specified, use CC. 867602e473dSmrgLTCC=${LTCC-"$CC"} 868602e473dSmrg 869602e473dSmrg# If no C compiler flags were specified, use CFLAGS. 870602e473dSmrgLTCFLAGS=${LTCFLAGS-"$CFLAGS"} 871602e473dSmrg 872602e473dSmrg# Allow CC to be a program name with arguments. 873602e473dSmrgcompiler=$CC 874602e473dSmrg])# _LT_TAG_COMPILER 875602e473dSmrg 876602e473dSmrg 877602e473dSmrg# _LT_COMPILER_BOILERPLATE 878602e473dSmrg# ------------------------ 879602e473dSmrg# Check for compiler boilerplate output or warnings with 880602e473dSmrg# the simple compiler test code. 881602e473dSmrgm4_defun([_LT_COMPILER_BOILERPLATE], 882602e473dSmrg[m4_require([_LT_DECL_SED])dnl 883602e473dSmrgac_outfile=conftest.$ac_objext 884602e473dSmrgecho "$lt_simple_compile_test_code" >conftest.$ac_ext 885602e473dSmrgeval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 886602e473dSmrg_lt_compiler_boilerplate=`cat conftest.err` 887602e473dSmrg$RM conftest* 888602e473dSmrg])# _LT_COMPILER_BOILERPLATE 889602e473dSmrg 890602e473dSmrg 891602e473dSmrg# _LT_LINKER_BOILERPLATE 892602e473dSmrg# ---------------------- 893602e473dSmrg# Check for linker boilerplate output or warnings with 894602e473dSmrg# the simple link test code. 895602e473dSmrgm4_defun([_LT_LINKER_BOILERPLATE], 896602e473dSmrg[m4_require([_LT_DECL_SED])dnl 897602e473dSmrgac_outfile=conftest.$ac_objext 898602e473dSmrgecho "$lt_simple_link_test_code" >conftest.$ac_ext 899602e473dSmrgeval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 900602e473dSmrg_lt_linker_boilerplate=`cat conftest.err` 901602e473dSmrg$RM -r conftest* 902602e473dSmrg])# _LT_LINKER_BOILERPLATE 903602e473dSmrg 904602e473dSmrg# _LT_REQUIRED_DARWIN_CHECKS 905602e473dSmrg# ------------------------- 906602e473dSmrgm4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ 907602e473dSmrg case $host_os in 908602e473dSmrg rhapsody* | darwin*) 909602e473dSmrg AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) 910602e473dSmrg AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) 911602e473dSmrg AC_CHECK_TOOL([LIPO], [lipo], [:]) 912602e473dSmrg AC_CHECK_TOOL([OTOOL], [otool], [:]) 913602e473dSmrg AC_CHECK_TOOL([OTOOL64], [otool64], [:]) 914602e473dSmrg _LT_DECL([], [DSYMUTIL], [1], 915602e473dSmrg [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) 916602e473dSmrg _LT_DECL([], [NMEDIT], [1], 917602e473dSmrg [Tool to change global to local symbols on Mac OS X]) 918602e473dSmrg _LT_DECL([], [LIPO], [1], 919602e473dSmrg [Tool to manipulate fat objects and archives on Mac OS X]) 920602e473dSmrg _LT_DECL([], [OTOOL], [1], 921602e473dSmrg [ldd/readelf like tool for Mach-O binaries on Mac OS X]) 922602e473dSmrg _LT_DECL([], [OTOOL64], [1], 923602e473dSmrg [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) 924602e473dSmrg 925602e473dSmrg AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], 926602e473dSmrg [lt_cv_apple_cc_single_mod=no 927602e473dSmrg if test -z "${LT_MULTI_MODULE}"; then 928602e473dSmrg # By default we will add the -single_module flag. You can override 929602e473dSmrg # by either setting the environment variable LT_MULTI_MODULE 930602e473dSmrg # non-empty at configure time, or by adding -multi_module to the 931602e473dSmrg # link flags. 932602e473dSmrg rm -rf libconftest.dylib* 933602e473dSmrg echo "int foo(void){return 1;}" > conftest.c 934602e473dSmrg echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 935602e473dSmrg-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD 936602e473dSmrg $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 937602e473dSmrg -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 938602e473dSmrg _lt_result=$? 939602e473dSmrg if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 940602e473dSmrg lt_cv_apple_cc_single_mod=yes 941602e473dSmrg else 942602e473dSmrg cat conftest.err >&AS_MESSAGE_LOG_FD 943602e473dSmrg fi 944602e473dSmrg rm -rf libconftest.dylib* 945602e473dSmrg rm -f conftest.* 946602e473dSmrg fi]) 947602e473dSmrg AC_CACHE_CHECK([for -exported_symbols_list linker flag], 948602e473dSmrg [lt_cv_ld_exported_symbols_list], 949602e473dSmrg [lt_cv_ld_exported_symbols_list=no 950602e473dSmrg save_LDFLAGS=$LDFLAGS 951602e473dSmrg echo "_main" > conftest.sym 952602e473dSmrg LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 953602e473dSmrg AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], 954602e473dSmrg [lt_cv_ld_exported_symbols_list=yes], 955602e473dSmrg [lt_cv_ld_exported_symbols_list=no]) 956602e473dSmrg LDFLAGS="$save_LDFLAGS" 957602e473dSmrg ]) 958602e473dSmrg case $host_os in 959602e473dSmrg rhapsody* | darwin1.[[012]]) 960602e473dSmrg _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 961602e473dSmrg darwin1.*) 962602e473dSmrg _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 963602e473dSmrg darwin*) # darwin 5.x on 964602e473dSmrg # if running on 10.5 or later, the deployment target defaults 965602e473dSmrg # to the OS version, if on x86, and 10.4, the deployment 966602e473dSmrg # target defaults to 10.4. Don't you love it? 967602e473dSmrg case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 968602e473dSmrg 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) 969602e473dSmrg _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 970602e473dSmrg 10.[[012]]*) 971602e473dSmrg _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 972602e473dSmrg 10.*) 973602e473dSmrg _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 974602e473dSmrg esac 975602e473dSmrg ;; 976602e473dSmrg esac 977602e473dSmrg if test "$lt_cv_apple_cc_single_mod" = "yes"; then 978602e473dSmrg _lt_dar_single_mod='$single_module' 979602e473dSmrg fi 980602e473dSmrg if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 981602e473dSmrg _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 982602e473dSmrg else 983602e473dSmrg _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 984602e473dSmrg fi 985602e473dSmrg if test "$DSYMUTIL" != ":"; then 986602e473dSmrg _lt_dsymutil='~$DSYMUTIL $lib || :' 987602e473dSmrg else 988602e473dSmrg _lt_dsymutil= 989602e473dSmrg fi 990602e473dSmrg ;; 991602e473dSmrg esac 992602e473dSmrg]) 993602e473dSmrg 994602e473dSmrg 995602e473dSmrg# _LT_DARWIN_LINKER_FEATURES 996602e473dSmrg# -------------------------- 997602e473dSmrg# Checks for linker and compiler features on darwin 998602e473dSmrgm4_defun([_LT_DARWIN_LINKER_FEATURES], 999602e473dSmrg[ 1000602e473dSmrg m4_require([_LT_REQUIRED_DARWIN_CHECKS]) 1001602e473dSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=no 1002602e473dSmrg _LT_TAGVAR(hardcode_direct, $1)=no 1003602e473dSmrg _LT_TAGVAR(hardcode_automatic, $1)=yes 1004602e473dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 1005602e473dSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='' 1006602e473dSmrg _LT_TAGVAR(link_all_deplibs, $1)=yes 1007602e473dSmrg _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" 1008602e473dSmrg case $cc_basename in 1009602e473dSmrg ifort*) _lt_dar_can_shared=yes ;; 1010602e473dSmrg *) _lt_dar_can_shared=$GCC ;; 1011602e473dSmrg esac 1012602e473dSmrg if test "$_lt_dar_can_shared" = "yes"; then 1013602e473dSmrg output_verbose_link_cmd=echo 1014602e473dSmrg _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}" 1015602e473dSmrg _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 1016602e473dSmrg _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}" 1017602e473dSmrg _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}" 1018602e473dSmrg m4_if([$1], [CXX], 1019602e473dSmrg[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then 1020602e473dSmrg _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}" 1021602e473dSmrg _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}" 1022602e473dSmrg fi 1023602e473dSmrg],[]) 1024602e473dSmrg else 1025602e473dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 1026602e473dSmrg fi 1027602e473dSmrg]) 1028602e473dSmrg 1029602e473dSmrg# _LT_SYS_MODULE_PATH_AIX 1030602e473dSmrg# ----------------------- 1031602e473dSmrg# Links a minimal program and checks the executable 1032602e473dSmrg# for the system default hardcoded library path. In most cases, 1033602e473dSmrg# this is /usr/lib:/lib, but when the MPI compilers are used 1034602e473dSmrg# the location of the communication and MPI libs are included too. 1035602e473dSmrg# If we don't find anything, use the default library path according 1036602e473dSmrg# to the aix ld manual. 1037602e473dSmrgm4_defun([_LT_SYS_MODULE_PATH_AIX], 1038602e473dSmrg[m4_require([_LT_DECL_SED])dnl 1039602e473dSmrgAC_LINK_IFELSE(AC_LANG_PROGRAM,[ 1040602e473dSmrglt_aix_libpath_sed=' 1041602e473dSmrg /Import File Strings/,/^$/ { 1042602e473dSmrg /^0/ { 1043602e473dSmrg s/^0 *\(.*\)$/\1/ 1044602e473dSmrg p 1045602e473dSmrg } 1046602e473dSmrg }' 1047602e473dSmrgaix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 1048602e473dSmrg# Check for a 64-bit object if we didn't find anything. 1049602e473dSmrgif test -z "$aix_libpath"; then 1050602e473dSmrg aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 1051602e473dSmrgfi],[]) 1052602e473dSmrgif test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 1053602e473dSmrg])# _LT_SYS_MODULE_PATH_AIX 1054602e473dSmrg 1055602e473dSmrg 1056602e473dSmrg# _LT_SHELL_INIT(ARG) 1057602e473dSmrg# ------------------- 1058602e473dSmrgm4_define([_LT_SHELL_INIT], 1059602e473dSmrg[ifdef([AC_DIVERSION_NOTICE], 1060602e473dSmrg [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], 1061602e473dSmrg [AC_DIVERT_PUSH(NOTICE)]) 1062602e473dSmrg$1 1063602e473dSmrgAC_DIVERT_POP 1064602e473dSmrg])# _LT_SHELL_INIT 1065602e473dSmrg 1066602e473dSmrg 1067602e473dSmrg# _LT_PROG_ECHO_BACKSLASH 1068602e473dSmrg# ----------------------- 1069602e473dSmrg# Add some code to the start of the generated configure script which 1070602e473dSmrg# will find an echo command which doesn't interpret backslashes. 1071602e473dSmrgm4_defun([_LT_PROG_ECHO_BACKSLASH], 1072602e473dSmrg[_LT_SHELL_INIT([ 1073602e473dSmrg# Check that we are running under the correct shell. 1074602e473dSmrgSHELL=${CONFIG_SHELL-/bin/sh} 1075602e473dSmrg 1076602e473dSmrgcase X$lt_ECHO in 1077602e473dSmrgX*--fallback-echo) 1078602e473dSmrg # Remove one level of quotation (which was required for Make). 1079602e473dSmrg ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` 1080602e473dSmrg ;; 1081602e473dSmrgesac 1082602e473dSmrg 1083602e473dSmrgECHO=${lt_ECHO-echo} 1084602e473dSmrgif test "X[$]1" = X--no-reexec; then 1085602e473dSmrg # Discard the --no-reexec flag, and continue. 1086602e473dSmrg shift 1087602e473dSmrgelif test "X[$]1" = X--fallback-echo; then 1088602e473dSmrg # Avoid inline document here, it may be left over 1089602e473dSmrg : 1090602e473dSmrgelif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 1091602e473dSmrg # Yippee, $ECHO works! 1092602e473dSmrg : 1093602e473dSmrgelse 1094602e473dSmrg # Restart under the correct shell. 1095602e473dSmrg exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} 1096602e473dSmrgfi 1097602e473dSmrg 1098602e473dSmrgif test "X[$]1" = X--fallback-echo; then 1099602e473dSmrg # used as fallback echo 1100602e473dSmrg shift 1101602e473dSmrg cat <<_LT_EOF 1102602e473dSmrg[$]* 1103602e473dSmrg_LT_EOF 1104602e473dSmrg exit 0 1105602e473dSmrgfi 1106602e473dSmrg 1107602e473dSmrg# The HP-UX ksh and POSIX shell print the target directory to stdout 1108602e473dSmrg# if CDPATH is set. 1109602e473dSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 1110602e473dSmrg 1111602e473dSmrgif test -z "$lt_ECHO"; then 1112602e473dSmrg if test "X${echo_test_string+set}" != Xset; then 1113602e473dSmrg # find a string as large as possible, as long as the shell can cope with it 1114602e473dSmrg for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do 1115602e473dSmrg # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 1116602e473dSmrg if { echo_test_string=`eval $cmd`; } 2>/dev/null && 1117602e473dSmrg { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 1118602e473dSmrg then 1119602e473dSmrg break 1120602e473dSmrg fi 1121602e473dSmrg done 1122602e473dSmrg fi 1123602e473dSmrg 1124602e473dSmrg if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 1125602e473dSmrg echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 1126602e473dSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 1127602e473dSmrg : 1128602e473dSmrg else 1129602e473dSmrg # The Solaris, AIX, and Digital Unix default echo programs unquote 1130602e473dSmrg # backslashes. This makes it impossible to quote backslashes using 1131602e473dSmrg # echo "$something" | sed 's/\\/\\\\/g' 1132602e473dSmrg # 1133602e473dSmrg # So, first we look for a working echo in the user's PATH. 1134602e473dSmrg 1135602e473dSmrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 1136602e473dSmrg for dir in $PATH /usr/ucb; do 1137602e473dSmrg IFS="$lt_save_ifs" 1138602e473dSmrg if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 1139602e473dSmrg test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 1140602e473dSmrg echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 1141602e473dSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 1142602e473dSmrg ECHO="$dir/echo" 1143602e473dSmrg break 1144602e473dSmrg fi 1145602e473dSmrg done 1146602e473dSmrg IFS="$lt_save_ifs" 1147602e473dSmrg 1148602e473dSmrg if test "X$ECHO" = Xecho; then 1149602e473dSmrg # We didn't find a better echo, so look for alternatives. 1150602e473dSmrg if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 1151602e473dSmrg echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 1152602e473dSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 1153602e473dSmrg # This shell has a builtin print -r that does the trick. 1154602e473dSmrg ECHO='print -r' 1155602e473dSmrg elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 1156602e473dSmrg test "X$CONFIG_SHELL" != X/bin/ksh; then 1157602e473dSmrg # If we have ksh, try running configure again with it. 1158602e473dSmrg ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 1159602e473dSmrg export ORIGINAL_CONFIG_SHELL 1160602e473dSmrg CONFIG_SHELL=/bin/ksh 1161602e473dSmrg export CONFIG_SHELL 1162602e473dSmrg exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} 1163602e473dSmrg else 1164602e473dSmrg # Try using printf. 1165602e473dSmrg ECHO='printf %s\n' 1166602e473dSmrg if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 1167602e473dSmrg echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 1168602e473dSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 1169602e473dSmrg # Cool, printf works 1170602e473dSmrg : 1171602e473dSmrg elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && 1172602e473dSmrg test "X$echo_testing_string" = 'X\t' && 1173602e473dSmrg echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && 1174602e473dSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 1175602e473dSmrg CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 1176602e473dSmrg export CONFIG_SHELL 1177602e473dSmrg SHELL="$CONFIG_SHELL" 1178602e473dSmrg export SHELL 1179602e473dSmrg ECHO="$CONFIG_SHELL [$]0 --fallback-echo" 1180602e473dSmrg elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && 1181602e473dSmrg test "X$echo_testing_string" = 'X\t' && 1182602e473dSmrg echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && 1183602e473dSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 1184602e473dSmrg ECHO="$CONFIG_SHELL [$]0 --fallback-echo" 1185602e473dSmrg else 1186602e473dSmrg # maybe with a smaller string... 1187602e473dSmrg prev=: 1188602e473dSmrg 1189602e473dSmrg for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do 1190602e473dSmrg if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 1191602e473dSmrg then 1192602e473dSmrg break 1193602e473dSmrg fi 1194602e473dSmrg prev="$cmd" 1195602e473dSmrg done 1196602e473dSmrg 1197602e473dSmrg if test "$prev" != 'sed 50q "[$]0"'; then 1198602e473dSmrg echo_test_string=`eval $prev` 1199602e473dSmrg export echo_test_string 1200602e473dSmrg exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} 1201602e473dSmrg else 1202602e473dSmrg # Oops. We lost completely, so just stick with echo. 1203602e473dSmrg ECHO=echo 1204602e473dSmrg fi 1205602e473dSmrg fi 1206602e473dSmrg fi 1207602e473dSmrg fi 1208602e473dSmrg fi 1209602e473dSmrgfi 1210602e473dSmrg 1211602e473dSmrg# Copy echo and quote the copy suitably for passing to libtool from 1212602e473dSmrg# the Makefile, instead of quoting the original, which is used later. 1213602e473dSmrglt_ECHO=$ECHO 1214602e473dSmrgif test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then 1215602e473dSmrg lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" 1216602e473dSmrgfi 1217602e473dSmrg 1218602e473dSmrgAC_SUBST(lt_ECHO) 1219602e473dSmrg]) 1220602e473dSmrg_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) 1221602e473dSmrg_LT_DECL([], [ECHO], [1], 1222602e473dSmrg [An echo program that does not interpret backslashes]) 1223602e473dSmrg])# _LT_PROG_ECHO_BACKSLASH 1224602e473dSmrg 1225602e473dSmrg 1226602e473dSmrg# _LT_ENABLE_LOCK 1227602e473dSmrg# --------------- 1228602e473dSmrgm4_defun([_LT_ENABLE_LOCK], 1229602e473dSmrg[AC_ARG_ENABLE([libtool-lock], 1230602e473dSmrg [AS_HELP_STRING([--disable-libtool-lock], 1231602e473dSmrg [avoid locking (might break parallel builds)])]) 1232602e473dSmrgtest "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 1233602e473dSmrg 1234602e473dSmrg# Some flags need to be propagated to the compiler or linker for good 1235602e473dSmrg# libtool support. 1236602e473dSmrgcase $host in 1237602e473dSmrgia64-*-hpux*) 1238602e473dSmrg # Find out which ABI we are using. 1239602e473dSmrg echo 'int i;' > conftest.$ac_ext 1240602e473dSmrg if AC_TRY_EVAL(ac_compile); then 1241602e473dSmrg case `/usr/bin/file conftest.$ac_objext` in 1242602e473dSmrg *ELF-32*) 1243602e473dSmrg HPUX_IA64_MODE="32" 1244602e473dSmrg ;; 1245602e473dSmrg *ELF-64*) 1246602e473dSmrg HPUX_IA64_MODE="64" 1247602e473dSmrg ;; 1248602e473dSmrg esac 1249602e473dSmrg fi 1250602e473dSmrg rm -rf conftest* 1251602e473dSmrg ;; 1252602e473dSmrg*-*-irix6*) 1253602e473dSmrg # Find out which ABI we are using. 1254602e473dSmrg echo '[#]line __oline__ "configure"' > conftest.$ac_ext 1255602e473dSmrg if AC_TRY_EVAL(ac_compile); then 1256602e473dSmrg if test "$lt_cv_prog_gnu_ld" = yes; then 1257602e473dSmrg case `/usr/bin/file conftest.$ac_objext` in 1258602e473dSmrg *32-bit*) 1259602e473dSmrg LD="${LD-ld} -melf32bsmip" 1260602e473dSmrg ;; 1261602e473dSmrg *N32*) 1262602e473dSmrg LD="${LD-ld} -melf32bmipn32" 1263602e473dSmrg ;; 1264602e473dSmrg *64-bit*) 1265602e473dSmrg LD="${LD-ld} -melf64bmip" 1266602e473dSmrg ;; 1267602e473dSmrg esac 1268602e473dSmrg else 1269602e473dSmrg case `/usr/bin/file conftest.$ac_objext` in 1270602e473dSmrg *32-bit*) 1271602e473dSmrg LD="${LD-ld} -32" 1272602e473dSmrg ;; 1273602e473dSmrg *N32*) 1274602e473dSmrg LD="${LD-ld} -n32" 1275602e473dSmrg ;; 1276602e473dSmrg *64-bit*) 1277602e473dSmrg LD="${LD-ld} -64" 1278602e473dSmrg ;; 1279602e473dSmrg esac 1280602e473dSmrg fi 1281602e473dSmrg fi 1282602e473dSmrg rm -rf conftest* 1283602e473dSmrg ;; 1284602e473dSmrg 1285602e473dSmrgx86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 1286602e473dSmrgs390*-*linux*|s390*-*tpf*|sparc*-*linux*) 1287602e473dSmrg # Find out which ABI we are using. 1288602e473dSmrg echo 'int i;' > conftest.$ac_ext 1289602e473dSmrg if AC_TRY_EVAL(ac_compile); then 1290602e473dSmrg case `/usr/bin/file conftest.o` in 1291602e473dSmrg *32-bit*) 1292602e473dSmrg case $host in 1293602e473dSmrg x86_64-*kfreebsd*-gnu) 1294602e473dSmrg LD="${LD-ld} -m elf_i386_fbsd" 1295602e473dSmrg ;; 1296602e473dSmrg x86_64-*linux*) 1297602e473dSmrg LD="${LD-ld} -m elf_i386" 1298602e473dSmrg ;; 1299602e473dSmrg ppc64-*linux*|powerpc64-*linux*) 1300602e473dSmrg LD="${LD-ld} -m elf32ppclinux" 1301602e473dSmrg ;; 1302602e473dSmrg s390x-*linux*) 1303602e473dSmrg LD="${LD-ld} -m elf_s390" 1304602e473dSmrg ;; 1305602e473dSmrg sparc64-*linux*) 1306602e473dSmrg LD="${LD-ld} -m elf32_sparc" 1307602e473dSmrg ;; 1308602e473dSmrg esac 1309602e473dSmrg ;; 1310602e473dSmrg *64-bit*) 1311602e473dSmrg case $host in 1312602e473dSmrg x86_64-*kfreebsd*-gnu) 1313602e473dSmrg LD="${LD-ld} -m elf_x86_64_fbsd" 1314602e473dSmrg ;; 1315602e473dSmrg x86_64-*linux*) 1316602e473dSmrg LD="${LD-ld} -m elf_x86_64" 1317602e473dSmrg ;; 1318602e473dSmrg ppc*-*linux*|powerpc*-*linux*) 1319602e473dSmrg LD="${LD-ld} -m elf64ppc" 1320602e473dSmrg ;; 1321602e473dSmrg s390*-*linux*|s390*-*tpf*) 1322602e473dSmrg LD="${LD-ld} -m elf64_s390" 1323602e473dSmrg ;; 1324602e473dSmrg sparc*-*linux*) 1325602e473dSmrg LD="${LD-ld} -m elf64_sparc" 1326602e473dSmrg ;; 1327602e473dSmrg esac 1328602e473dSmrg ;; 1329602e473dSmrg esac 1330602e473dSmrg fi 1331602e473dSmrg rm -rf conftest* 1332602e473dSmrg ;; 1333602e473dSmrg 1334602e473dSmrg*-*-sco3.2v5*) 1335602e473dSmrg # On SCO OpenServer 5, we need -belf to get full-featured binaries. 1336602e473dSmrg SAVE_CFLAGS="$CFLAGS" 1337602e473dSmrg CFLAGS="$CFLAGS -belf" 1338602e473dSmrg AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, 1339602e473dSmrg [AC_LANG_PUSH(C) 1340602e473dSmrg AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) 1341602e473dSmrg AC_LANG_POP]) 1342602e473dSmrg if test x"$lt_cv_cc_needs_belf" != x"yes"; then 1343602e473dSmrg # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 1344602e473dSmrg CFLAGS="$SAVE_CFLAGS" 1345602e473dSmrg fi 1346602e473dSmrg ;; 1347602e473dSmrgsparc*-*solaris*) 1348602e473dSmrg # Find out which ABI we are using. 1349602e473dSmrg echo 'int i;' > conftest.$ac_ext 1350602e473dSmrg if AC_TRY_EVAL(ac_compile); then 1351602e473dSmrg case `/usr/bin/file conftest.o` in 1352602e473dSmrg *64-bit*) 1353602e473dSmrg case $lt_cv_prog_gnu_ld in 1354602e473dSmrg yes*) LD="${LD-ld} -m elf64_sparc" ;; 1355602e473dSmrg *) 1356602e473dSmrg if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 1357602e473dSmrg LD="${LD-ld} -64" 1358602e473dSmrg fi 1359602e473dSmrg ;; 1360602e473dSmrg esac 1361602e473dSmrg ;; 1362602e473dSmrg esac 1363602e473dSmrg fi 1364602e473dSmrg rm -rf conftest* 1365602e473dSmrg ;; 1366602e473dSmrgesac 1367602e473dSmrg 1368602e473dSmrgneed_locks="$enable_libtool_lock" 1369602e473dSmrg])# _LT_ENABLE_LOCK 1370602e473dSmrg 1371602e473dSmrg 1372602e473dSmrg# _LT_CMD_OLD_ARCHIVE 1373602e473dSmrg# ------------------- 1374602e473dSmrgm4_defun([_LT_CMD_OLD_ARCHIVE], 1375602e473dSmrg[AC_CHECK_TOOL(AR, ar, false) 1376602e473dSmrgtest -z "$AR" && AR=ar 1377602e473dSmrgtest -z "$AR_FLAGS" && AR_FLAGS=cru 1378602e473dSmrg_LT_DECL([], [AR], [1], [The archiver]) 1379602e473dSmrg_LT_DECL([], [AR_FLAGS], [1]) 1380602e473dSmrg 1381602e473dSmrgAC_CHECK_TOOL(STRIP, strip, :) 1382602e473dSmrgtest -z "$STRIP" && STRIP=: 1383602e473dSmrg_LT_DECL([], [STRIP], [1], [A symbol stripping program]) 1384602e473dSmrg 1385602e473dSmrgAC_CHECK_TOOL(RANLIB, ranlib, :) 1386602e473dSmrgtest -z "$RANLIB" && RANLIB=: 1387602e473dSmrg_LT_DECL([], [RANLIB], [1], 1388602e473dSmrg [Commands used to install an old-style archive]) 1389602e473dSmrg 1390602e473dSmrg# Determine commands to create old-style static archives. 1391602e473dSmrgold_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 1392602e473dSmrgold_postinstall_cmds='chmod 644 $oldlib' 1393602e473dSmrgold_postuninstall_cmds= 1394602e473dSmrg 1395602e473dSmrgif test -n "$RANLIB"; then 1396602e473dSmrg case $host_os in 1397602e473dSmrg openbsd*) 1398602e473dSmrg old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 1399602e473dSmrg ;; 1400602e473dSmrg *) 1401602e473dSmrg old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 1402602e473dSmrg ;; 1403602e473dSmrg esac 1404602e473dSmrg old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 1405602e473dSmrgfi 1406602e473dSmrg_LT_DECL([], [old_postinstall_cmds], [2]) 1407602e473dSmrg_LT_DECL([], [old_postuninstall_cmds], [2]) 1408602e473dSmrg_LT_TAGDECL([], [old_archive_cmds], [2], 1409602e473dSmrg [Commands used to build an old-style archive]) 1410602e473dSmrg])# _LT_CMD_OLD_ARCHIVE 1411602e473dSmrg 1412602e473dSmrg 1413602e473dSmrg# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 1414602e473dSmrg# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) 1415602e473dSmrg# ---------------------------------------------------------------- 1416602e473dSmrg# Check whether the given compiler option works 1417602e473dSmrgAC_DEFUN([_LT_COMPILER_OPTION], 1418602e473dSmrg[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 1419602e473dSmrgm4_require([_LT_DECL_SED])dnl 1420602e473dSmrgAC_CACHE_CHECK([$1], [$2], 1421602e473dSmrg [$2=no 1422602e473dSmrg m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) 1423602e473dSmrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 1424602e473dSmrg lt_compiler_flag="$3" 1425602e473dSmrg # Insert the option either (1) after the last *FLAGS variable, or 1426602e473dSmrg # (2) before a word containing "conftest.", or (3) at the end. 1427602e473dSmrg # Note that $ac_compile itself does not contain backslashes and begins 1428602e473dSmrg # with a dollar sign (not a hyphen), so the echo should work correctly. 1429602e473dSmrg # The option is referenced via a variable to avoid confusing sed. 1430602e473dSmrg lt_compile=`echo "$ac_compile" | $SED \ 1431602e473dSmrg -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 1432602e473dSmrg -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 1433602e473dSmrg -e 's:$: $lt_compiler_flag:'` 1434602e473dSmrg (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 1435602e473dSmrg (eval "$lt_compile" 2>conftest.err) 1436602e473dSmrg ac_status=$? 1437602e473dSmrg cat conftest.err >&AS_MESSAGE_LOG_FD 1438602e473dSmrg echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 1439602e473dSmrg if (exit $ac_status) && test -s "$ac_outfile"; then 1440602e473dSmrg # The compiler can only warn and ignore the option if not recognized 1441602e473dSmrg # So say no if there are warnings other than the usual output. 1442602e473dSmrg $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 1443602e473dSmrg $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 1444602e473dSmrg if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 1445602e473dSmrg $2=yes 1446602e473dSmrg fi 1447602e473dSmrg fi 1448602e473dSmrg $RM conftest* 1449602e473dSmrg]) 1450602e473dSmrg 1451602e473dSmrgif test x"[$]$2" = xyes; then 1452602e473dSmrg m4_if([$5], , :, [$5]) 1453602e473dSmrgelse 1454602e473dSmrg m4_if([$6], , :, [$6]) 1455602e473dSmrgfi 1456602e473dSmrg])# _LT_COMPILER_OPTION 1457602e473dSmrg 1458602e473dSmrg# Old name: 1459602e473dSmrgAU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) 1460602e473dSmrgdnl aclocal-1.4 backwards compatibility: 1461602e473dSmrgdnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) 1462602e473dSmrg 1463602e473dSmrg 1464602e473dSmrg# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 1465602e473dSmrg# [ACTION-SUCCESS], [ACTION-FAILURE]) 1466602e473dSmrg# ---------------------------------------------------- 1467602e473dSmrg# Check whether the given linker option works 1468602e473dSmrgAC_DEFUN([_LT_LINKER_OPTION], 1469602e473dSmrg[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 1470602e473dSmrgm4_require([_LT_DECL_SED])dnl 1471602e473dSmrgAC_CACHE_CHECK([$1], [$2], 1472602e473dSmrg [$2=no 1473602e473dSmrg save_LDFLAGS="$LDFLAGS" 1474602e473dSmrg LDFLAGS="$LDFLAGS $3" 1475602e473dSmrg echo "$lt_simple_link_test_code" > conftest.$ac_ext 1476602e473dSmrg if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 1477602e473dSmrg # The linker can only warn and ignore the option if not recognized 1478602e473dSmrg # So say no if there are warnings 1479602e473dSmrg if test -s conftest.err; then 1480602e473dSmrg # Append any errors to the config.log. 1481602e473dSmrg cat conftest.err 1>&AS_MESSAGE_LOG_FD 1482602e473dSmrg $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 1483602e473dSmrg $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 1484602e473dSmrg if diff conftest.exp conftest.er2 >/dev/null; then 1485602e473dSmrg $2=yes 1486602e473dSmrg fi 1487602e473dSmrg else 1488602e473dSmrg $2=yes 1489602e473dSmrg fi 1490602e473dSmrg fi 1491602e473dSmrg $RM -r conftest* 1492602e473dSmrg LDFLAGS="$save_LDFLAGS" 1493602e473dSmrg]) 1494602e473dSmrg 1495602e473dSmrgif test x"[$]$2" = xyes; then 1496602e473dSmrg m4_if([$4], , :, [$4]) 1497602e473dSmrgelse 1498602e473dSmrg m4_if([$5], , :, [$5]) 1499602e473dSmrgfi 1500602e473dSmrg])# _LT_LINKER_OPTION 1501602e473dSmrg 1502602e473dSmrg# Old name: 1503602e473dSmrgAU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) 1504602e473dSmrgdnl aclocal-1.4 backwards compatibility: 1505602e473dSmrgdnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) 1506602e473dSmrg 1507602e473dSmrg 1508602e473dSmrg# LT_CMD_MAX_LEN 1509602e473dSmrg#--------------- 1510602e473dSmrgAC_DEFUN([LT_CMD_MAX_LEN], 1511602e473dSmrg[AC_REQUIRE([AC_CANONICAL_HOST])dnl 1512602e473dSmrg# find the maximum length of command line arguments 1513602e473dSmrgAC_MSG_CHECKING([the maximum length of command line arguments]) 1514602e473dSmrgAC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl 1515602e473dSmrg i=0 1516602e473dSmrg teststring="ABCD" 1517602e473dSmrg 1518602e473dSmrg case $build_os in 1519602e473dSmrg msdosdjgpp*) 1520602e473dSmrg # On DJGPP, this test can blow up pretty badly due to problems in libc 1521602e473dSmrg # (any single argument exceeding 2000 bytes causes a buffer overrun 1522602e473dSmrg # during glob expansion). Even if it were fixed, the result of this 1523602e473dSmrg # check would be larger than it should be. 1524602e473dSmrg lt_cv_sys_max_cmd_len=12288; # 12K is about right 1525602e473dSmrg ;; 1526602e473dSmrg 1527602e473dSmrg gnu*) 1528602e473dSmrg # Under GNU Hurd, this test is not required because there is 1529602e473dSmrg # no limit to the length of command line arguments. 1530602e473dSmrg # Libtool will interpret -1 as no limit whatsoever 1531602e473dSmrg lt_cv_sys_max_cmd_len=-1; 1532602e473dSmrg ;; 1533602e473dSmrg 1534602e473dSmrg cygwin* | mingw* | cegcc*) 1535602e473dSmrg # On Win9x/ME, this test blows up -- it succeeds, but takes 1536602e473dSmrg # about 5 minutes as the teststring grows exponentially. 1537602e473dSmrg # Worse, since 9x/ME are not pre-emptively multitasking, 1538602e473dSmrg # you end up with a "frozen" computer, even though with patience 1539602e473dSmrg # the test eventually succeeds (with a max line length of 256k). 1540602e473dSmrg # Instead, let's just punt: use the minimum linelength reported by 1541602e473dSmrg # all of the supported platforms: 8192 (on NT/2K/XP). 1542602e473dSmrg lt_cv_sys_max_cmd_len=8192; 1543602e473dSmrg ;; 1544602e473dSmrg 1545602e473dSmrg amigaos*) 1546602e473dSmrg # On AmigaOS with pdksh, this test takes hours, literally. 1547602e473dSmrg # So we just punt and use a minimum line length of 8192. 1548602e473dSmrg lt_cv_sys_max_cmd_len=8192; 1549602e473dSmrg ;; 1550602e473dSmrg 1551602e473dSmrg netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 1552602e473dSmrg # This has been around since 386BSD, at least. Likely further. 1553602e473dSmrg if test -x /sbin/sysctl; then 1554602e473dSmrg lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 1555602e473dSmrg elif test -x /usr/sbin/sysctl; then 1556602e473dSmrg lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 1557602e473dSmrg else 1558602e473dSmrg lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 1559602e473dSmrg fi 1560602e473dSmrg # And add a safety zone 1561602e473dSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 1562602e473dSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 1563602e473dSmrg ;; 1564602e473dSmrg 1565602e473dSmrg interix*) 1566602e473dSmrg # We know the value 262144 and hardcode it with a safety zone (like BSD) 1567602e473dSmrg lt_cv_sys_max_cmd_len=196608 1568602e473dSmrg ;; 1569602e473dSmrg 1570602e473dSmrg osf*) 1571602e473dSmrg # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 1572602e473dSmrg # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 1573602e473dSmrg # nice to cause kernel panics so lets avoid the loop below. 1574602e473dSmrg # First set a reasonable default. 1575602e473dSmrg lt_cv_sys_max_cmd_len=16384 1576602e473dSmrg # 1577602e473dSmrg if test -x /sbin/sysconfig; then 1578602e473dSmrg case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 1579602e473dSmrg *1*) lt_cv_sys_max_cmd_len=-1 ;; 1580602e473dSmrg esac 1581602e473dSmrg fi 1582602e473dSmrg ;; 1583602e473dSmrg sco3.2v5*) 1584602e473dSmrg lt_cv_sys_max_cmd_len=102400 1585602e473dSmrg ;; 1586602e473dSmrg sysv5* | sco5v6* | sysv4.2uw2*) 1587602e473dSmrg kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 1588602e473dSmrg if test -n "$kargmax"; then 1589602e473dSmrg lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` 1590602e473dSmrg else 1591602e473dSmrg lt_cv_sys_max_cmd_len=32768 1592602e473dSmrg fi 1593602e473dSmrg ;; 1594602e473dSmrg *) 1595602e473dSmrg lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 1596602e473dSmrg if test -n "$lt_cv_sys_max_cmd_len"; then 1597602e473dSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 1598602e473dSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 1599602e473dSmrg else 1600602e473dSmrg # Make teststring a little bigger before we do anything with it. 1601602e473dSmrg # a 1K string should be a reasonable start. 1602602e473dSmrg for i in 1 2 3 4 5 6 7 8 ; do 1603602e473dSmrg teststring=$teststring$teststring 1604602e473dSmrg done 1605602e473dSmrg SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 1606602e473dSmrg # If test is not a shell built-in, we'll probably end up computing a 1607602e473dSmrg # maximum length that is only half of the actual maximum length, but 1608602e473dSmrg # we can't tell. 1609602e473dSmrg while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 1610602e473dSmrg = "XX$teststring$teststring"; } >/dev/null 2>&1 && 1611602e473dSmrg test $i != 17 # 1/2 MB should be enough 1612602e473dSmrg do 1613602e473dSmrg i=`expr $i + 1` 1614602e473dSmrg teststring=$teststring$teststring 1615602e473dSmrg done 1616602e473dSmrg # Only check the string length outside the loop. 1617602e473dSmrg lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 1618602e473dSmrg teststring= 1619602e473dSmrg # Add a significant safety factor because C++ compilers can tack on 1620602e473dSmrg # massive amounts of additional arguments before passing them to the 1621602e473dSmrg # linker. It appears as though 1/2 is a usable value. 1622602e473dSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 1623602e473dSmrg fi 1624602e473dSmrg ;; 1625602e473dSmrg esac 1626602e473dSmrg]) 1627602e473dSmrgif test -n $lt_cv_sys_max_cmd_len ; then 1628602e473dSmrg AC_MSG_RESULT($lt_cv_sys_max_cmd_len) 1629602e473dSmrgelse 1630602e473dSmrg AC_MSG_RESULT(none) 1631602e473dSmrgfi 1632602e473dSmrgmax_cmd_len=$lt_cv_sys_max_cmd_len 1633602e473dSmrg_LT_DECL([], [max_cmd_len], [0], 1634602e473dSmrg [What is the maximum length of a command?]) 1635602e473dSmrg])# LT_CMD_MAX_LEN 1636602e473dSmrg 1637602e473dSmrg# Old name: 1638602e473dSmrgAU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) 1639602e473dSmrgdnl aclocal-1.4 backwards compatibility: 1640602e473dSmrgdnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) 1641602e473dSmrg 1642602e473dSmrg 1643602e473dSmrg# _LT_HEADER_DLFCN 1644602e473dSmrg# ---------------- 1645602e473dSmrgm4_defun([_LT_HEADER_DLFCN], 1646602e473dSmrg[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl 1647602e473dSmrg])# _LT_HEADER_DLFCN 1648602e473dSmrg 1649602e473dSmrg 1650602e473dSmrg# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, 1651602e473dSmrg# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) 1652602e473dSmrg# ---------------------------------------------------------------- 1653602e473dSmrgm4_defun([_LT_TRY_DLOPEN_SELF], 1654602e473dSmrg[m4_require([_LT_HEADER_DLFCN])dnl 1655602e473dSmrgif test "$cross_compiling" = yes; then : 1656602e473dSmrg [$4] 1657602e473dSmrgelse 1658602e473dSmrg lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 1659602e473dSmrg lt_status=$lt_dlunknown 1660602e473dSmrg cat > conftest.$ac_ext <<_LT_EOF 1661602e473dSmrg[#line __oline__ "configure" 1662602e473dSmrg#include "confdefs.h" 1663602e473dSmrg 1664602e473dSmrg#if HAVE_DLFCN_H 1665602e473dSmrg#include <dlfcn.h> 1666602e473dSmrg#endif 1667602e473dSmrg 1668602e473dSmrg#include <stdio.h> 1669602e473dSmrg 1670602e473dSmrg#ifdef RTLD_GLOBAL 1671602e473dSmrg# define LT_DLGLOBAL RTLD_GLOBAL 1672602e473dSmrg#else 1673602e473dSmrg# ifdef DL_GLOBAL 1674602e473dSmrg# define LT_DLGLOBAL DL_GLOBAL 1675602e473dSmrg# else 1676602e473dSmrg# define LT_DLGLOBAL 0 1677602e473dSmrg# endif 1678602e473dSmrg#endif 1679602e473dSmrg 1680602e473dSmrg/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 1681602e473dSmrg find out it does not work in some platform. */ 1682602e473dSmrg#ifndef LT_DLLAZY_OR_NOW 1683602e473dSmrg# ifdef RTLD_LAZY 1684602e473dSmrg# define LT_DLLAZY_OR_NOW RTLD_LAZY 1685602e473dSmrg# else 1686602e473dSmrg# ifdef DL_LAZY 1687602e473dSmrg# define LT_DLLAZY_OR_NOW DL_LAZY 1688602e473dSmrg# else 1689602e473dSmrg# ifdef RTLD_NOW 1690602e473dSmrg# define LT_DLLAZY_OR_NOW RTLD_NOW 1691602e473dSmrg# else 1692602e473dSmrg# ifdef DL_NOW 1693602e473dSmrg# define LT_DLLAZY_OR_NOW DL_NOW 1694602e473dSmrg# else 1695602e473dSmrg# define LT_DLLAZY_OR_NOW 0 1696602e473dSmrg# endif 1697602e473dSmrg# endif 1698602e473dSmrg# endif 1699602e473dSmrg# endif 1700602e473dSmrg#endif 1701602e473dSmrg 1702602e473dSmrgvoid fnord() { int i=42;} 1703602e473dSmrgint main () 1704602e473dSmrg{ 1705602e473dSmrg void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 1706602e473dSmrg int status = $lt_dlunknown; 1707602e473dSmrg 1708602e473dSmrg if (self) 1709602e473dSmrg { 1710602e473dSmrg if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 1711602e473dSmrg else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 1712602e473dSmrg /* dlclose (self); */ 1713602e473dSmrg } 1714602e473dSmrg else 1715602e473dSmrg puts (dlerror ()); 1716602e473dSmrg 1717602e473dSmrg return status; 1718602e473dSmrg}] 1719602e473dSmrg_LT_EOF 1720602e473dSmrg if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then 1721602e473dSmrg (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null 1722602e473dSmrg lt_status=$? 1723602e473dSmrg case x$lt_status in 1724602e473dSmrg x$lt_dlno_uscore) $1 ;; 1725602e473dSmrg x$lt_dlneed_uscore) $2 ;; 1726602e473dSmrg x$lt_dlunknown|x*) $3 ;; 1727602e473dSmrg esac 1728602e473dSmrg else : 1729602e473dSmrg # compilation failed 1730602e473dSmrg $3 1731602e473dSmrg fi 1732602e473dSmrgfi 1733602e473dSmrgrm -fr conftest* 1734602e473dSmrg])# _LT_TRY_DLOPEN_SELF 1735602e473dSmrg 1736602e473dSmrg 1737602e473dSmrg# LT_SYS_DLOPEN_SELF 1738602e473dSmrg# ------------------ 1739602e473dSmrgAC_DEFUN([LT_SYS_DLOPEN_SELF], 1740602e473dSmrg[m4_require([_LT_HEADER_DLFCN])dnl 1741602e473dSmrgif test "x$enable_dlopen" != xyes; then 1742602e473dSmrg enable_dlopen=unknown 1743602e473dSmrg enable_dlopen_self=unknown 1744602e473dSmrg enable_dlopen_self_static=unknown 1745602e473dSmrgelse 1746602e473dSmrg lt_cv_dlopen=no 1747602e473dSmrg lt_cv_dlopen_libs= 1748602e473dSmrg 1749602e473dSmrg case $host_os in 1750602e473dSmrg beos*) 1751602e473dSmrg lt_cv_dlopen="load_add_on" 1752602e473dSmrg lt_cv_dlopen_libs= 1753602e473dSmrg lt_cv_dlopen_self=yes 1754602e473dSmrg ;; 1755602e473dSmrg 1756602e473dSmrg mingw* | pw32* | cegcc*) 1757602e473dSmrg lt_cv_dlopen="LoadLibrary" 1758602e473dSmrg lt_cv_dlopen_libs= 1759602e473dSmrg ;; 1760602e473dSmrg 1761602e473dSmrg cygwin*) 1762602e473dSmrg lt_cv_dlopen="dlopen" 1763602e473dSmrg lt_cv_dlopen_libs= 1764602e473dSmrg ;; 1765602e473dSmrg 1766602e473dSmrg darwin*) 1767602e473dSmrg # if libdl is installed we need to link against it 1768602e473dSmrg AC_CHECK_LIB([dl], [dlopen], 1769602e473dSmrg [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ 1770602e473dSmrg lt_cv_dlopen="dyld" 1771602e473dSmrg lt_cv_dlopen_libs= 1772602e473dSmrg lt_cv_dlopen_self=yes 1773602e473dSmrg ]) 1774602e473dSmrg ;; 1775602e473dSmrg 1776602e473dSmrg *) 1777602e473dSmrg AC_CHECK_FUNC([shl_load], 1778602e473dSmrg [lt_cv_dlopen="shl_load"], 1779602e473dSmrg [AC_CHECK_LIB([dld], [shl_load], 1780602e473dSmrg [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], 1781602e473dSmrg [AC_CHECK_FUNC([dlopen], 1782602e473dSmrg [lt_cv_dlopen="dlopen"], 1783602e473dSmrg [AC_CHECK_LIB([dl], [dlopen], 1784602e473dSmrg [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], 1785602e473dSmrg [AC_CHECK_LIB([svld], [dlopen], 1786602e473dSmrg [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], 1787602e473dSmrg [AC_CHECK_LIB([dld], [dld_link], 1788602e473dSmrg [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) 1789602e473dSmrg ]) 1790602e473dSmrg ]) 1791602e473dSmrg ]) 1792602e473dSmrg ]) 1793602e473dSmrg ]) 1794602e473dSmrg ;; 1795602e473dSmrg esac 1796602e473dSmrg 1797602e473dSmrg if test "x$lt_cv_dlopen" != xno; then 1798602e473dSmrg enable_dlopen=yes 1799602e473dSmrg else 1800602e473dSmrg enable_dlopen=no 1801602e473dSmrg fi 1802602e473dSmrg 1803602e473dSmrg case $lt_cv_dlopen in 1804602e473dSmrg dlopen) 1805602e473dSmrg save_CPPFLAGS="$CPPFLAGS" 1806602e473dSmrg test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 1807602e473dSmrg 1808602e473dSmrg save_LDFLAGS="$LDFLAGS" 1809602e473dSmrg wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 1810602e473dSmrg 1811602e473dSmrg save_LIBS="$LIBS" 1812602e473dSmrg LIBS="$lt_cv_dlopen_libs $LIBS" 1813602e473dSmrg 1814602e473dSmrg AC_CACHE_CHECK([whether a program can dlopen itself], 1815602e473dSmrg lt_cv_dlopen_self, [dnl 1816602e473dSmrg _LT_TRY_DLOPEN_SELF( 1817602e473dSmrg lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, 1818602e473dSmrg lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) 1819602e473dSmrg ]) 1820602e473dSmrg 1821602e473dSmrg if test "x$lt_cv_dlopen_self" = xyes; then 1822602e473dSmrg wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 1823602e473dSmrg AC_CACHE_CHECK([whether a statically linked program can dlopen itself], 1824602e473dSmrg lt_cv_dlopen_self_static, [dnl 1825602e473dSmrg _LT_TRY_DLOPEN_SELF( 1826602e473dSmrg lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, 1827602e473dSmrg lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) 1828602e473dSmrg ]) 1829602e473dSmrg fi 1830602e473dSmrg 1831602e473dSmrg CPPFLAGS="$save_CPPFLAGS" 1832602e473dSmrg LDFLAGS="$save_LDFLAGS" 1833602e473dSmrg LIBS="$save_LIBS" 1834602e473dSmrg ;; 1835602e473dSmrg esac 1836602e473dSmrg 1837602e473dSmrg case $lt_cv_dlopen_self in 1838602e473dSmrg yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 1839602e473dSmrg *) enable_dlopen_self=unknown ;; 1840602e473dSmrg esac 1841602e473dSmrg 1842602e473dSmrg case $lt_cv_dlopen_self_static in 1843602e473dSmrg yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 1844602e473dSmrg *) enable_dlopen_self_static=unknown ;; 1845602e473dSmrg esac 1846602e473dSmrgfi 1847602e473dSmrg_LT_DECL([dlopen_support], [enable_dlopen], [0], 1848602e473dSmrg [Whether dlopen is supported]) 1849602e473dSmrg_LT_DECL([dlopen_self], [enable_dlopen_self], [0], 1850602e473dSmrg [Whether dlopen of programs is supported]) 1851602e473dSmrg_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], 1852602e473dSmrg [Whether dlopen of statically linked programs is supported]) 1853602e473dSmrg])# LT_SYS_DLOPEN_SELF 1854602e473dSmrg 1855602e473dSmrg# Old name: 1856602e473dSmrgAU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) 1857602e473dSmrgdnl aclocal-1.4 backwards compatibility: 1858602e473dSmrgdnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) 1859602e473dSmrg 1860602e473dSmrg 1861602e473dSmrg# _LT_COMPILER_C_O([TAGNAME]) 1862602e473dSmrg# --------------------------- 1863602e473dSmrg# Check to see if options -c and -o are simultaneously supported by compiler. 1864602e473dSmrg# This macro does not hard code the compiler like AC_PROG_CC_C_O. 1865602e473dSmrgm4_defun([_LT_COMPILER_C_O], 1866602e473dSmrg[m4_require([_LT_DECL_SED])dnl 1867602e473dSmrgm4_require([_LT_FILEUTILS_DEFAULTS])dnl 1868602e473dSmrgm4_require([_LT_TAG_COMPILER])dnl 1869602e473dSmrgAC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], 1870602e473dSmrg [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], 1871602e473dSmrg [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no 1872602e473dSmrg $RM -r conftest 2>/dev/null 1873602e473dSmrg mkdir conftest 1874602e473dSmrg cd conftest 1875602e473dSmrg mkdir out 1876602e473dSmrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 1877602e473dSmrg 1878602e473dSmrg lt_compiler_flag="-o out/conftest2.$ac_objext" 1879602e473dSmrg # Insert the option either (1) after the last *FLAGS variable, or 1880602e473dSmrg # (2) before a word containing "conftest.", or (3) at the end. 1881602e473dSmrg # Note that $ac_compile itself does not contain backslashes and begins 1882602e473dSmrg # with a dollar sign (not a hyphen), so the echo should work correctly. 1883602e473dSmrg lt_compile=`echo "$ac_compile" | $SED \ 1884602e473dSmrg -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 1885602e473dSmrg -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 1886602e473dSmrg -e 's:$: $lt_compiler_flag:'` 1887602e473dSmrg (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 1888602e473dSmrg (eval "$lt_compile" 2>out/conftest.err) 1889602e473dSmrg ac_status=$? 1890602e473dSmrg cat out/conftest.err >&AS_MESSAGE_LOG_FD 1891602e473dSmrg echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 1892602e473dSmrg if (exit $ac_status) && test -s out/conftest2.$ac_objext 1893602e473dSmrg then 1894602e473dSmrg # The compiler can only warn and ignore the option if not recognized 1895602e473dSmrg # So say no if there are warnings 1896602e473dSmrg $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 1897602e473dSmrg $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 1898602e473dSmrg if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 1899602e473dSmrg _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 1900602e473dSmrg fi 1901602e473dSmrg fi 1902602e473dSmrg chmod u+w . 2>&AS_MESSAGE_LOG_FD 1903602e473dSmrg $RM conftest* 1904602e473dSmrg # SGI C++ compiler will create directory out/ii_files/ for 1905602e473dSmrg # template instantiation 1906602e473dSmrg test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 1907602e473dSmrg $RM out/* && rmdir out 1908602e473dSmrg cd .. 1909602e473dSmrg $RM -r conftest 1910602e473dSmrg $RM conftest* 1911602e473dSmrg]) 1912602e473dSmrg_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], 1913602e473dSmrg [Does compiler simultaneously support -c and -o options?]) 1914602e473dSmrg])# _LT_COMPILER_C_O 1915602e473dSmrg 1916602e473dSmrg 1917602e473dSmrg# _LT_COMPILER_FILE_LOCKS([TAGNAME]) 1918602e473dSmrg# ---------------------------------- 1919602e473dSmrg# Check to see if we can do hard links to lock some files if needed 1920602e473dSmrgm4_defun([_LT_COMPILER_FILE_LOCKS], 1921602e473dSmrg[m4_require([_LT_ENABLE_LOCK])dnl 1922602e473dSmrgm4_require([_LT_FILEUTILS_DEFAULTS])dnl 1923602e473dSmrg_LT_COMPILER_C_O([$1]) 1924602e473dSmrg 1925602e473dSmrghard_links="nottested" 1926602e473dSmrgif test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then 1927602e473dSmrg # do not overwrite the value of need_locks provided by the user 1928602e473dSmrg AC_MSG_CHECKING([if we can lock with hard links]) 1929602e473dSmrg hard_links=yes 1930602e473dSmrg $RM conftest* 1931602e473dSmrg ln conftest.a conftest.b 2>/dev/null && hard_links=no 1932602e473dSmrg touch conftest.a 1933602e473dSmrg ln conftest.a conftest.b 2>&5 || hard_links=no 1934602e473dSmrg ln conftest.a conftest.b 2>/dev/null && hard_links=no 1935602e473dSmrg AC_MSG_RESULT([$hard_links]) 1936602e473dSmrg if test "$hard_links" = no; then 1937602e473dSmrg AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) 1938602e473dSmrg need_locks=warn 1939602e473dSmrg fi 1940602e473dSmrgelse 1941602e473dSmrg need_locks=no 1942602e473dSmrgfi 1943602e473dSmrg_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) 1944602e473dSmrg])# _LT_COMPILER_FILE_LOCKS 1945602e473dSmrg 1946602e473dSmrg 1947602e473dSmrg# _LT_CHECK_OBJDIR 1948602e473dSmrg# ---------------- 1949602e473dSmrgm4_defun([_LT_CHECK_OBJDIR], 1950602e473dSmrg[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], 1951602e473dSmrg[rm -f .libs 2>/dev/null 1952602e473dSmrgmkdir .libs 2>/dev/null 1953602e473dSmrgif test -d .libs; then 1954602e473dSmrg lt_cv_objdir=.libs 1955602e473dSmrgelse 1956602e473dSmrg # MS-DOS does not allow filenames that begin with a dot. 1957602e473dSmrg lt_cv_objdir=_libs 1958602e473dSmrgfi 1959602e473dSmrgrmdir .libs 2>/dev/null]) 1960602e473dSmrgobjdir=$lt_cv_objdir 1961602e473dSmrg_LT_DECL([], [objdir], [0], 1962602e473dSmrg [The name of the directory that contains temporary libtool files])dnl 1963602e473dSmrgm4_pattern_allow([LT_OBJDIR])dnl 1964602e473dSmrgAC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/", 1965602e473dSmrg [Define to the sub-directory in which libtool stores uninstalled libraries.]) 1966602e473dSmrg])# _LT_CHECK_OBJDIR 1967602e473dSmrg 1968602e473dSmrg 1969602e473dSmrg# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) 1970602e473dSmrg# -------------------------------------- 1971602e473dSmrg# Check hardcoding attributes. 1972602e473dSmrgm4_defun([_LT_LINKER_HARDCODE_LIBPATH], 1973602e473dSmrg[AC_MSG_CHECKING([how to hardcode library paths into programs]) 1974602e473dSmrg_LT_TAGVAR(hardcode_action, $1)= 1975602e473dSmrgif test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || 1976602e473dSmrg test -n "$_LT_TAGVAR(runpath_var, $1)" || 1977602e473dSmrg test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then 1978602e473dSmrg 1979602e473dSmrg # We can hardcode non-existent directories. 1980602e473dSmrg if test "$_LT_TAGVAR(hardcode_direct, $1)" != no && 1981602e473dSmrg # If the only mechanism to avoid hardcoding is shlibpath_var, we 1982602e473dSmrg # have to relink, otherwise we might link with an installed library 1983602e473dSmrg # when we should be linking with a yet-to-be-installed one 1984602e473dSmrg ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no && 1985602e473dSmrg test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then 1986602e473dSmrg # Linking always hardcodes the temporary library directory. 1987602e473dSmrg _LT_TAGVAR(hardcode_action, $1)=relink 1988602e473dSmrg else 1989602e473dSmrg # We can link without hardcoding, and we can hardcode nonexisting dirs. 1990602e473dSmrg _LT_TAGVAR(hardcode_action, $1)=immediate 1991602e473dSmrg fi 1992602e473dSmrgelse 1993602e473dSmrg # We cannot hardcode anything, or else we can only hardcode existing 1994602e473dSmrg # directories. 1995602e473dSmrg _LT_TAGVAR(hardcode_action, $1)=unsupported 1996602e473dSmrgfi 1997602e473dSmrgAC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) 1998602e473dSmrg 1999602e473dSmrgif test "$_LT_TAGVAR(hardcode_action, $1)" = relink || 2000602e473dSmrg test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then 2001602e473dSmrg # Fast installation is not supported 2002602e473dSmrg enable_fast_install=no 2003602e473dSmrgelif test "$shlibpath_overrides_runpath" = yes || 2004602e473dSmrg test "$enable_shared" = no; then 2005602e473dSmrg # Fast installation is not necessary 2006602e473dSmrg enable_fast_install=needless 2007602e473dSmrgfi 2008602e473dSmrg_LT_TAGDECL([], [hardcode_action], [0], 2009602e473dSmrg [How to hardcode a shared library path into an executable]) 2010602e473dSmrg])# _LT_LINKER_HARDCODE_LIBPATH 2011602e473dSmrg 2012602e473dSmrg 2013602e473dSmrg# _LT_CMD_STRIPLIB 2014602e473dSmrg# ---------------- 2015602e473dSmrgm4_defun([_LT_CMD_STRIPLIB], 2016602e473dSmrg[m4_require([_LT_DECL_EGREP]) 2017602e473dSmrgstriplib= 2018602e473dSmrgold_striplib= 2019602e473dSmrgAC_MSG_CHECKING([whether stripping libraries is possible]) 2020602e473dSmrgif test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 2021602e473dSmrg test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 2022602e473dSmrg test -z "$striplib" && striplib="$STRIP --strip-unneeded" 2023602e473dSmrg AC_MSG_RESULT([yes]) 2024602e473dSmrgelse 2025602e473dSmrg# FIXME - insert some real tests, host_os isn't really good enough 2026602e473dSmrg case $host_os in 2027602e473dSmrg darwin*) 2028602e473dSmrg if test -n "$STRIP" ; then 2029602e473dSmrg striplib="$STRIP -x" 2030602e473dSmrg old_striplib="$STRIP -S" 2031602e473dSmrg AC_MSG_RESULT([yes]) 2032602e473dSmrg else 2033602e473dSmrg AC_MSG_RESULT([no]) 2034602e473dSmrg fi 2035602e473dSmrg ;; 2036602e473dSmrg *) 2037602e473dSmrg AC_MSG_RESULT([no]) 2038602e473dSmrg ;; 2039602e473dSmrg esac 2040602e473dSmrgfi 2041602e473dSmrg_LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) 2042602e473dSmrg_LT_DECL([], [striplib], [1]) 2043602e473dSmrg])# _LT_CMD_STRIPLIB 2044602e473dSmrg 2045602e473dSmrg 2046602e473dSmrg# _LT_SYS_DYNAMIC_LINKER([TAG]) 2047602e473dSmrg# ----------------------------- 2048602e473dSmrg# PORTME Fill in your ld.so characteristics 2049602e473dSmrgm4_defun([_LT_SYS_DYNAMIC_LINKER], 2050602e473dSmrg[AC_REQUIRE([AC_CANONICAL_HOST])dnl 2051602e473dSmrgm4_require([_LT_DECL_EGREP])dnl 2052602e473dSmrgm4_require([_LT_FILEUTILS_DEFAULTS])dnl 2053602e473dSmrgm4_require([_LT_DECL_OBJDUMP])dnl 2054602e473dSmrgm4_require([_LT_DECL_SED])dnl 2055602e473dSmrgAC_MSG_CHECKING([dynamic linker characteristics]) 2056602e473dSmrgm4_if([$1], 2057602e473dSmrg [], [ 2058602e473dSmrgif test "$GCC" = yes; then 2059602e473dSmrg case $host_os in 2060602e473dSmrg darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 2061602e473dSmrg *) lt_awk_arg="/^libraries:/" ;; 2062602e473dSmrg esac 2063602e473dSmrg lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 2064602e473dSmrg if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 2065602e473dSmrg # if the path contains ";" then we assume it to be the separator 2066602e473dSmrg # otherwise default to the standard path separator (i.e. ":") - it is 2067602e473dSmrg # assumed that no part of a normal pathname contains ";" but that should 2068602e473dSmrg # okay in the real world where ";" in dirpaths is itself problematic. 2069602e473dSmrg lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 2070602e473dSmrg else 2071602e473dSmrg lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 2072602e473dSmrg fi 2073602e473dSmrg # Ok, now we have the path, separated by spaces, we can step through it 2074602e473dSmrg # and add multilib dir if necessary. 2075602e473dSmrg lt_tmp_lt_search_path_spec= 2076602e473dSmrg lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 2077602e473dSmrg for lt_sys_path in $lt_search_path_spec; do 2078602e473dSmrg if test -d "$lt_sys_path/$lt_multi_os_dir"; then 2079602e473dSmrg lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 2080602e473dSmrg else 2081602e473dSmrg test -d "$lt_sys_path" && \ 2082602e473dSmrg lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 2083602e473dSmrg fi 2084602e473dSmrg done 2085602e473dSmrg lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 2086602e473dSmrgBEGIN {RS=" "; FS="/|\n";} { 2087602e473dSmrg lt_foo=""; 2088602e473dSmrg lt_count=0; 2089602e473dSmrg for (lt_i = NF; lt_i > 0; lt_i--) { 2090602e473dSmrg if ($lt_i != "" && $lt_i != ".") { 2091602e473dSmrg if ($lt_i == "..") { 2092602e473dSmrg lt_count++; 2093602e473dSmrg } else { 2094602e473dSmrg if (lt_count == 0) { 2095602e473dSmrg lt_foo="/" $lt_i lt_foo; 2096602e473dSmrg } else { 2097602e473dSmrg lt_count--; 2098602e473dSmrg } 2099602e473dSmrg } 2100602e473dSmrg } 2101602e473dSmrg } 2102602e473dSmrg if (lt_foo != "") { lt_freq[[lt_foo]]++; } 2103602e473dSmrg if (lt_freq[[lt_foo]] == 1) { print lt_foo; } 2104602e473dSmrg}'` 2105602e473dSmrg sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 2106602e473dSmrgelse 2107602e473dSmrg sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 2108602e473dSmrgfi]) 2109602e473dSmrglibrary_names_spec= 2110602e473dSmrglibname_spec='lib$name' 2111602e473dSmrgsoname_spec= 2112602e473dSmrgshrext_cmds=".so" 2113602e473dSmrgpostinstall_cmds= 2114602e473dSmrgpostuninstall_cmds= 2115602e473dSmrgfinish_cmds= 2116602e473dSmrgfinish_eval= 2117602e473dSmrgshlibpath_var= 2118602e473dSmrgshlibpath_overrides_runpath=unknown 2119602e473dSmrgversion_type=none 2120602e473dSmrgdynamic_linker="$host_os ld.so" 2121602e473dSmrgsys_lib_dlsearch_path_spec="/lib /usr/lib" 2122602e473dSmrgneed_lib_prefix=unknown 2123602e473dSmrghardcode_into_libs=no 2124602e473dSmrg 2125602e473dSmrg# when you set need_version to no, make sure it does not cause -set_version 2126602e473dSmrg# flags to be left without arguments 2127602e473dSmrgneed_version=unknown 2128602e473dSmrg 2129602e473dSmrgcase $host_os in 2130602e473dSmrgaix3*) 2131602e473dSmrg version_type=linux 2132602e473dSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 2133602e473dSmrg shlibpath_var=LIBPATH 2134602e473dSmrg 2135602e473dSmrg # AIX 3 has no versioning support, so we append a major version to the name. 2136602e473dSmrg soname_spec='${libname}${release}${shared_ext}$major' 2137602e473dSmrg ;; 2138602e473dSmrg 2139602e473dSmrgaix[[4-9]]*) 2140602e473dSmrg version_type=linux 2141602e473dSmrg need_lib_prefix=no 2142602e473dSmrg need_version=no 2143602e473dSmrg hardcode_into_libs=yes 2144602e473dSmrg if test "$host_cpu" = ia64; then 2145602e473dSmrg # AIX 5 supports IA64 2146602e473dSmrg library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 2147602e473dSmrg shlibpath_var=LD_LIBRARY_PATH 2148602e473dSmrg else 2149602e473dSmrg # With GCC up to 2.95.x, collect2 would create an import file 2150602e473dSmrg # for dependence libraries. The import file would start with 2151602e473dSmrg # the line `#! .'. This would cause the generated library to 2152602e473dSmrg # depend on `.', always an invalid library. This was fixed in 2153602e473dSmrg # development snapshots of GCC prior to 3.0. 2154602e473dSmrg case $host_os in 2155602e473dSmrg aix4 | aix4.[[01]] | aix4.[[01]].*) 2156602e473dSmrg if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 2157602e473dSmrg echo ' yes ' 2158602e473dSmrg echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 2159602e473dSmrg : 2160602e473dSmrg else 2161602e473dSmrg can_build_shared=no 2162602e473dSmrg fi 2163602e473dSmrg ;; 2164602e473dSmrg esac 2165602e473dSmrg # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 2166602e473dSmrg # soname into executable. Probably we can add versioning support to 2167602e473dSmrg # collect2, so additional links can be useful in future. 2168602e473dSmrg if test "$aix_use_runtimelinking" = yes; then 2169602e473dSmrg # If using run time linking (on AIX 4.2 or later) use lib<name>.so 2170602e473dSmrg # instead of lib<name>.a to let people know that these are not 2171602e473dSmrg # typical AIX shared libraries. 2172602e473dSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2173602e473dSmrg else 2174602e473dSmrg # We preserve .a as extension for shared libraries through AIX4.2 2175602e473dSmrg # and later when we are not doing run time linking. 2176602e473dSmrg library_names_spec='${libname}${release}.a $libname.a' 2177602e473dSmrg soname_spec='${libname}${release}${shared_ext}$major' 2178602e473dSmrg fi 2179602e473dSmrg shlibpath_var=LIBPATH 2180602e473dSmrg fi 2181602e473dSmrg ;; 2182602e473dSmrg 2183602e473dSmrgamigaos*) 2184602e473dSmrg case $host_cpu in 2185602e473dSmrg powerpc) 2186602e473dSmrg # Since July 2007 AmigaOS4 officially supports .so libraries. 2187602e473dSmrg # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 2188602e473dSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2189602e473dSmrg ;; 2190602e473dSmrg m68k) 2191602e473dSmrg library_names_spec='$libname.ixlibrary $libname.a' 2192602e473dSmrg # Create ${libname}_ixlibrary.a entries in /sys/libs. 2193602e473dSmrg finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $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' 2194602e473dSmrg ;; 2195602e473dSmrg esac 2196602e473dSmrg ;; 2197602e473dSmrg 2198602e473dSmrgbeos*) 2199602e473dSmrg library_names_spec='${libname}${shared_ext}' 2200602e473dSmrg dynamic_linker="$host_os ld.so" 2201602e473dSmrg shlibpath_var=LIBRARY_PATH 2202602e473dSmrg ;; 2203602e473dSmrg 2204602e473dSmrgbsdi[[45]]*) 2205602e473dSmrg version_type=linux 2206602e473dSmrg need_version=no 2207602e473dSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2208602e473dSmrg soname_spec='${libname}${release}${shared_ext}$major' 2209602e473dSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 2210602e473dSmrg shlibpath_var=LD_LIBRARY_PATH 2211602e473dSmrg sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 2212602e473dSmrg sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 2213602e473dSmrg # the default ld.so.conf also contains /usr/contrib/lib and 2214602e473dSmrg # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 2215602e473dSmrg # libtool to hard-code these into programs 2216602e473dSmrg ;; 2217602e473dSmrg 2218602e473dSmrgcygwin* | mingw* | pw32* | cegcc*) 2219602e473dSmrg version_type=windows 2220602e473dSmrg shrext_cmds=".dll" 2221602e473dSmrg need_version=no 2222602e473dSmrg need_lib_prefix=no 2223602e473dSmrg 2224602e473dSmrg case $GCC,$host_os in 2225602e473dSmrg yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 2226602e473dSmrg library_names_spec='$libname.dll.a' 2227602e473dSmrg # DLL is installed to $(libdir)/../bin by postinstall_cmds 2228602e473dSmrg postinstall_cmds='base_file=`basename \${file}`~ 2229602e473dSmrg dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 2230602e473dSmrg dldir=$destdir/`dirname \$dlpath`~ 2231602e473dSmrg test -d \$dldir || mkdir -p \$dldir~ 2232602e473dSmrg $install_prog $dir/$dlname \$dldir/$dlname~ 2233602e473dSmrg chmod a+x \$dldir/$dlname~ 2234602e473dSmrg if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 2235602e473dSmrg eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 2236602e473dSmrg fi' 2237602e473dSmrg postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 2238602e473dSmrg dlpath=$dir/\$dldll~ 2239602e473dSmrg $RM \$dlpath' 2240602e473dSmrg shlibpath_overrides_runpath=yes 2241602e473dSmrg 2242602e473dSmrg case $host_os in 2243602e473dSmrg cygwin*) 2244602e473dSmrg # Cygwin DLLs use 'cyg' prefix rather than 'lib' 2245602e473dSmrg soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 2246602e473dSmrg sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 2247602e473dSmrg ;; 2248602e473dSmrg mingw* | cegcc*) 2249602e473dSmrg # MinGW DLLs use traditional 'lib' prefix 2250602e473dSmrg soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 2251602e473dSmrg sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 2252602e473dSmrg if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then 2253602e473dSmrg # It is most probably a Windows format PATH printed by 2254602e473dSmrg # mingw gcc, but we are running on Cygwin. Gcc prints its search 2255602e473dSmrg # path with ; separators, and with drive letters. We can handle the 2256602e473dSmrg # drive letters (cygwin fileutils understands them), so leave them, 2257602e473dSmrg # especially as we might pass files found there to a mingw objdump, 2258602e473dSmrg # which wouldn't understand a cygwinified path. Ahh. 2259602e473dSmrg sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 2260602e473dSmrg else 2261602e473dSmrg sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 2262602e473dSmrg fi 2263602e473dSmrg ;; 2264602e473dSmrg pw32*) 2265602e473dSmrg # pw32 DLLs use 'pw' prefix rather than 'lib' 2266602e473dSmrg library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 2267602e473dSmrg ;; 2268602e473dSmrg esac 2269602e473dSmrg ;; 2270602e473dSmrg 2271602e473dSmrg *) 2272602e473dSmrg library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' 2273602e473dSmrg ;; 2274602e473dSmrg esac 2275602e473dSmrg dynamic_linker='Win32 ld.exe' 2276602e473dSmrg # FIXME: first we should search . and the directory the executable is in 2277602e473dSmrg shlibpath_var=PATH 2278602e473dSmrg ;; 2279602e473dSmrg 2280602e473dSmrgdarwin* | rhapsody*) 2281602e473dSmrg dynamic_linker="$host_os dyld" 2282602e473dSmrg version_type=darwin 2283602e473dSmrg need_lib_prefix=no 2284602e473dSmrg need_version=no 2285602e473dSmrg library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 2286602e473dSmrg soname_spec='${libname}${release}${major}$shared_ext' 2287602e473dSmrg shlibpath_overrides_runpath=yes 2288602e473dSmrg shlibpath_var=DYLD_LIBRARY_PATH 2289602e473dSmrg shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 2290602e473dSmrgm4_if([$1], [],[ 2291602e473dSmrg sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 2292602e473dSmrg sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 2293602e473dSmrg ;; 2294602e473dSmrg 2295602e473dSmrgdgux*) 2296602e473dSmrg version_type=linux 2297602e473dSmrg need_lib_prefix=no 2298602e473dSmrg need_version=no 2299602e473dSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 2300602e473dSmrg soname_spec='${libname}${release}${shared_ext}$major' 2301602e473dSmrg shlibpath_var=LD_LIBRARY_PATH 2302602e473dSmrg ;; 2303602e473dSmrg 2304602e473dSmrgfreebsd1*) 2305602e473dSmrg dynamic_linker=no 2306602e473dSmrg ;; 2307602e473dSmrg 2308602e473dSmrgfreebsd* | dragonfly*) 2309602e473dSmrg # DragonFly does not have aout. When/if they implement a new 2310602e473dSmrg # versioning mechanism, adjust this. 2311602e473dSmrg if test -x /usr/bin/objformat; then 2312602e473dSmrg objformat=`/usr/bin/objformat` 2313602e473dSmrg else 2314602e473dSmrg case $host_os in 2315602e473dSmrg freebsd[[123]]*) objformat=aout ;; 2316602e473dSmrg *) objformat=elf ;; 2317602e473dSmrg esac 2318602e473dSmrg fi 2319602e473dSmrg version_type=freebsd-$objformat 2320602e473dSmrg case $version_type in 2321602e473dSmrg freebsd-elf*) 2322602e473dSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 2323602e473dSmrg need_version=no 2324602e473dSmrg need_lib_prefix=no 2325602e473dSmrg ;; 2326602e473dSmrg freebsd-*) 2327602e473dSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 2328602e473dSmrg need_version=yes 2329602e473dSmrg ;; 2330602e473dSmrg esac 2331602e473dSmrg shlibpath_var=LD_LIBRARY_PATH 2332602e473dSmrg case $host_os in 2333602e473dSmrg freebsd2*) 2334602e473dSmrg shlibpath_overrides_runpath=yes 2335602e473dSmrg ;; 2336602e473dSmrg freebsd3.[[01]]* | freebsdelf3.[[01]]*) 2337602e473dSmrg shlibpath_overrides_runpath=yes 2338602e473dSmrg hardcode_into_libs=yes 2339602e473dSmrg ;; 2340602e473dSmrg freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ 2341602e473dSmrg freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) 2342602e473dSmrg shlibpath_overrides_runpath=no 2343602e473dSmrg hardcode_into_libs=yes 2344602e473dSmrg ;; 2345602e473dSmrg *) # from 4.6 on, and DragonFly 2346602e473dSmrg shlibpath_overrides_runpath=yes 2347602e473dSmrg hardcode_into_libs=yes 2348602e473dSmrg ;; 2349602e473dSmrg esac 2350602e473dSmrg ;; 2351602e473dSmrg 2352602e473dSmrggnu*) 2353602e473dSmrg version_type=linux 2354602e473dSmrg need_lib_prefix=no 2355602e473dSmrg need_version=no 2356602e473dSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 2357602e473dSmrg soname_spec='${libname}${release}${shared_ext}$major' 2358602e473dSmrg shlibpath_var=LD_LIBRARY_PATH 2359602e473dSmrg hardcode_into_libs=yes 2360602e473dSmrg ;; 2361602e473dSmrg 2362602e473dSmrghpux9* | hpux10* | hpux11*) 2363602e473dSmrg # Give a soname corresponding to the major version so that dld.sl refuses to 2364602e473dSmrg # link against other versions. 2365602e473dSmrg version_type=sunos 2366602e473dSmrg need_lib_prefix=no 2367602e473dSmrg need_version=no 2368602e473dSmrg case $host_cpu in 2369602e473dSmrg ia64*) 2370602e473dSmrg shrext_cmds='.so' 2371602e473dSmrg hardcode_into_libs=yes 2372602e473dSmrg dynamic_linker="$host_os dld.so" 2373602e473dSmrg shlibpath_var=LD_LIBRARY_PATH 2374602e473dSmrg shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 2375602e473dSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2376602e473dSmrg soname_spec='${libname}${release}${shared_ext}$major' 2377602e473dSmrg if test "X$HPUX_IA64_MODE" = X32; then 2378602e473dSmrg sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 2379602e473dSmrg else 2380602e473dSmrg sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 2381602e473dSmrg fi 2382602e473dSmrg sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 2383602e473dSmrg ;; 2384602e473dSmrg hppa*64*) 2385602e473dSmrg shrext_cmds='.sl' 2386602e473dSmrg hardcode_into_libs=yes 2387602e473dSmrg dynamic_linker="$host_os dld.sl" 2388602e473dSmrg shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 2389602e473dSmrg shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 2390602e473dSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2391602e473dSmrg soname_spec='${libname}${release}${shared_ext}$major' 2392602e473dSmrg sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 2393602e473dSmrg sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 2394602e473dSmrg ;; 2395602e473dSmrg *) 2396602e473dSmrg shrext_cmds='.sl' 2397602e473dSmrg dynamic_linker="$host_os dld.sl" 2398602e473dSmrg shlibpath_var=SHLIB_PATH 2399602e473dSmrg shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 2400602e473dSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2401602e473dSmrg soname_spec='${libname}${release}${shared_ext}$major' 2402602e473dSmrg ;; 2403602e473dSmrg esac 2404602e473dSmrg # HP-UX runs *really* slowly unless shared libraries are mode 555. 2405602e473dSmrg postinstall_cmds='chmod 555 $lib' 2406602e473dSmrg ;; 2407602e473dSmrg 2408602e473dSmrginterix[[3-9]]*) 2409602e473dSmrg version_type=linux 2410602e473dSmrg need_lib_prefix=no 2411602e473dSmrg need_version=no 2412602e473dSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 2413602e473dSmrg soname_spec='${libname}${release}${shared_ext}$major' 2414602e473dSmrg dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 2415602e473dSmrg shlibpath_var=LD_LIBRARY_PATH 2416602e473dSmrg shlibpath_overrides_runpath=no 2417602e473dSmrg hardcode_into_libs=yes 2418602e473dSmrg ;; 2419602e473dSmrg 2420602e473dSmrgirix5* | irix6* | nonstopux*) 2421602e473dSmrg case $host_os in 2422602e473dSmrg nonstopux*) version_type=nonstopux ;; 2423602e473dSmrg *) 2424602e473dSmrg if test "$lt_cv_prog_gnu_ld" = yes; then 2425602e473dSmrg version_type=linux 2426602e473dSmrg else 2427602e473dSmrg version_type=irix 2428602e473dSmrg fi ;; 2429602e473dSmrg esac 2430602e473dSmrg need_lib_prefix=no 2431602e473dSmrg need_version=no 2432602e473dSmrg soname_spec='${libname}${release}${shared_ext}$major' 2433602e473dSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 2434602e473dSmrg case $host_os in 2435602e473dSmrg irix5* | nonstopux*) 2436602e473dSmrg libsuff= shlibsuff= 2437602e473dSmrg ;; 2438602e473dSmrg *) 2439602e473dSmrg case $LD in # libtool.m4 will add one of these switches to LD 2440602e473dSmrg *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 2441602e473dSmrg libsuff= shlibsuff= libmagic=32-bit;; 2442602e473dSmrg *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 2443602e473dSmrg libsuff=32 shlibsuff=N32 libmagic=N32;; 2444602e473dSmrg *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 2445602e473dSmrg libsuff=64 shlibsuff=64 libmagic=64-bit;; 2446602e473dSmrg *) libsuff= shlibsuff= libmagic=never-match;; 2447602e473dSmrg esac 2448602e473dSmrg ;; 2449602e473dSmrg esac 2450602e473dSmrg shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 2451602e473dSmrg shlibpath_overrides_runpath=no 2452602e473dSmrg sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 2453602e473dSmrg sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 2454602e473dSmrg hardcode_into_libs=yes 2455602e473dSmrg ;; 2456602e473dSmrg 2457602e473dSmrg# No shared lib support for Linux oldld, aout, or coff. 2458602e473dSmrglinux*oldld* | linux*aout* | linux*coff*) 2459602e473dSmrg dynamic_linker=no 2460602e473dSmrg ;; 2461602e473dSmrg 2462602e473dSmrg# This must be Linux ELF. 2463602e473dSmrglinux* | k*bsd*-gnu | kopensolaris*-gnu) 2464602e473dSmrg version_type=linux 2465602e473dSmrg need_lib_prefix=no 2466602e473dSmrg need_version=no 2467602e473dSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2468602e473dSmrg soname_spec='${libname}${release}${shared_ext}$major' 2469602e473dSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 2470602e473dSmrg shlibpath_var=LD_LIBRARY_PATH 2471602e473dSmrg shlibpath_overrides_runpath=no 2472602e473dSmrg # Some binutils ld are patched to set DT_RUNPATH 2473602e473dSmrg save_LDFLAGS=$LDFLAGS 2474602e473dSmrg save_libdir=$libdir 2475602e473dSmrg eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ 2476602e473dSmrg LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" 2477602e473dSmrg AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], 2478602e473dSmrg [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], 2479602e473dSmrg [shlibpath_overrides_runpath=yes])]) 2480602e473dSmrg LDFLAGS=$save_LDFLAGS 2481602e473dSmrg libdir=$save_libdir 2482602e473dSmrg 2483602e473dSmrg # This implies no fast_install, which is unacceptable. 2484602e473dSmrg # Some rework will be needed to allow for fast_install 2485602e473dSmrg # before this can be enabled. 2486602e473dSmrg hardcode_into_libs=yes 2487602e473dSmrg 2488602e473dSmrg # Append ld.so.conf contents to the search path 2489602e473dSmrg if test -f /etc/ld.so.conf; then 2490602e473dSmrg 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;/^$/d' | tr '\n' ' '` 2491602e473dSmrg sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 2492602e473dSmrg fi 2493602e473dSmrg 2494602e473dSmrg # We used to test for /lib/ld.so.1 and disable shared libraries on 2495602e473dSmrg # powerpc, because MkLinux only supported shared libraries with the 2496602e473dSmrg # GNU dynamic linker. Since this was broken with cross compilers, 2497602e473dSmrg # most powerpc-linux boxes support dynamic linking these days and 2498602e473dSmrg # people can always --disable-shared, the test was removed, and we 2499602e473dSmrg # assume the GNU/Linux dynamic linker is in use. 2500602e473dSmrg dynamic_linker='GNU/Linux ld.so' 2501602e473dSmrg ;; 2502602e473dSmrg 2503602e473dSmrgnetbsdelf*-gnu) 2504602e473dSmrg version_type=linux 2505602e473dSmrg need_lib_prefix=no 2506602e473dSmrg need_version=no 2507602e473dSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 2508602e473dSmrg soname_spec='${libname}${release}${shared_ext}$major' 2509602e473dSmrg shlibpath_var=LD_LIBRARY_PATH 2510602e473dSmrg shlibpath_overrides_runpath=no 2511602e473dSmrg hardcode_into_libs=yes 2512602e473dSmrg dynamic_linker='NetBSD ld.elf_so' 2513602e473dSmrg ;; 2514602e473dSmrg 2515602e473dSmrgnetbsd*) 2516602e473dSmrg version_type=sunos 2517602e473dSmrg need_lib_prefix=no 2518602e473dSmrg need_version=no 2519602e473dSmrg if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 2520602e473dSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 2521602e473dSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 2522602e473dSmrg dynamic_linker='NetBSD (a.out) ld.so' 2523602e473dSmrg else 2524602e473dSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 2525602e473dSmrg soname_spec='${libname}${release}${shared_ext}$major' 2526602e473dSmrg dynamic_linker='NetBSD ld.elf_so' 2527602e473dSmrg fi 2528602e473dSmrg shlibpath_var=LD_LIBRARY_PATH 2529602e473dSmrg shlibpath_overrides_runpath=yes 2530602e473dSmrg hardcode_into_libs=yes 2531602e473dSmrg ;; 2532602e473dSmrg 2533602e473dSmrgnewsos6) 2534602e473dSmrg version_type=linux 2535602e473dSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2536602e473dSmrg shlibpath_var=LD_LIBRARY_PATH 2537602e473dSmrg shlibpath_overrides_runpath=yes 2538602e473dSmrg ;; 2539602e473dSmrg 2540602e473dSmrg*nto* | *qnx*) 2541602e473dSmrg version_type=qnx 2542602e473dSmrg need_lib_prefix=no 2543602e473dSmrg need_version=no 2544602e473dSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2545602e473dSmrg soname_spec='${libname}${release}${shared_ext}$major' 2546602e473dSmrg shlibpath_var=LD_LIBRARY_PATH 2547602e473dSmrg shlibpath_overrides_runpath=no 2548602e473dSmrg hardcode_into_libs=yes 2549602e473dSmrg dynamic_linker='ldqnx.so' 2550602e473dSmrg ;; 2551602e473dSmrg 2552602e473dSmrgopenbsd*) 2553602e473dSmrg version_type=sunos 2554602e473dSmrg sys_lib_dlsearch_path_spec="/usr/lib" 2555602e473dSmrg need_lib_prefix=no 2556602e473dSmrg # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 2557602e473dSmrg case $host_os in 2558602e473dSmrg openbsd3.3 | openbsd3.3.*) need_version=yes ;; 2559602e473dSmrg *) need_version=no ;; 2560602e473dSmrg esac 2561602e473dSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 2562602e473dSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 2563602e473dSmrg shlibpath_var=LD_LIBRARY_PATH 2564602e473dSmrg if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 2565602e473dSmrg case $host_os in 2566602e473dSmrg openbsd2.[[89]] | openbsd2.[[89]].*) 2567602e473dSmrg shlibpath_overrides_runpath=no 2568602e473dSmrg ;; 2569602e473dSmrg *) 2570602e473dSmrg shlibpath_overrides_runpath=yes 2571602e473dSmrg ;; 2572602e473dSmrg esac 2573602e473dSmrg else 2574602e473dSmrg shlibpath_overrides_runpath=yes 2575602e473dSmrg fi 2576602e473dSmrg ;; 2577602e473dSmrg 2578602e473dSmrgos2*) 2579602e473dSmrg libname_spec='$name' 2580602e473dSmrg shrext_cmds=".dll" 2581602e473dSmrg need_lib_prefix=no 2582602e473dSmrg library_names_spec='$libname${shared_ext} $libname.a' 2583602e473dSmrg dynamic_linker='OS/2 ld.exe' 2584602e473dSmrg shlibpath_var=LIBPATH 2585602e473dSmrg ;; 2586602e473dSmrg 2587602e473dSmrgosf3* | osf4* | osf5*) 2588602e473dSmrg version_type=osf 2589602e473dSmrg need_lib_prefix=no 2590602e473dSmrg need_version=no 2591602e473dSmrg soname_spec='${libname}${release}${shared_ext}$major' 2592602e473dSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2593602e473dSmrg shlibpath_var=LD_LIBRARY_PATH 2594602e473dSmrg sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 2595602e473dSmrg sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 2596602e473dSmrg ;; 2597602e473dSmrg 2598602e473dSmrgrdos*) 2599602e473dSmrg dynamic_linker=no 2600602e473dSmrg ;; 2601602e473dSmrg 2602602e473dSmrgsolaris*) 2603602e473dSmrg version_type=linux 2604602e473dSmrg need_lib_prefix=no 2605602e473dSmrg need_version=no 2606602e473dSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2607602e473dSmrg soname_spec='${libname}${release}${shared_ext}$major' 2608602e473dSmrg shlibpath_var=LD_LIBRARY_PATH 2609602e473dSmrg shlibpath_overrides_runpath=yes 2610602e473dSmrg hardcode_into_libs=yes 2611602e473dSmrg # ldd complains unless libraries are executable 2612602e473dSmrg postinstall_cmds='chmod +x $lib' 2613602e473dSmrg ;; 2614602e473dSmrg 2615602e473dSmrgsunos4*) 2616602e473dSmrg version_type=sunos 2617602e473dSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 2618602e473dSmrg finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 2619602e473dSmrg shlibpath_var=LD_LIBRARY_PATH 2620602e473dSmrg shlibpath_overrides_runpath=yes 2621602e473dSmrg if test "$with_gnu_ld" = yes; then 2622602e473dSmrg need_lib_prefix=no 2623602e473dSmrg fi 2624602e473dSmrg need_version=yes 2625602e473dSmrg ;; 2626602e473dSmrg 2627602e473dSmrgsysv4 | sysv4.3*) 2628602e473dSmrg version_type=linux 2629602e473dSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2630602e473dSmrg soname_spec='${libname}${release}${shared_ext}$major' 2631602e473dSmrg shlibpath_var=LD_LIBRARY_PATH 2632602e473dSmrg case $host_vendor in 2633602e473dSmrg sni) 2634602e473dSmrg shlibpath_overrides_runpath=no 2635602e473dSmrg need_lib_prefix=no 2636602e473dSmrg runpath_var=LD_RUN_PATH 2637602e473dSmrg ;; 2638602e473dSmrg siemens) 2639602e473dSmrg need_lib_prefix=no 2640602e473dSmrg ;; 2641602e473dSmrg motorola) 2642602e473dSmrg need_lib_prefix=no 2643602e473dSmrg need_version=no 2644602e473dSmrg shlibpath_overrides_runpath=no 2645602e473dSmrg sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 2646602e473dSmrg ;; 2647602e473dSmrg esac 2648602e473dSmrg ;; 2649602e473dSmrg 2650602e473dSmrgsysv4*MP*) 2651602e473dSmrg if test -d /usr/nec ;then 2652602e473dSmrg version_type=linux 2653602e473dSmrg library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 2654602e473dSmrg soname_spec='$libname${shared_ext}.$major' 2655602e473dSmrg shlibpath_var=LD_LIBRARY_PATH 2656602e473dSmrg fi 2657602e473dSmrg ;; 2658602e473dSmrg 2659602e473dSmrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 2660602e473dSmrg version_type=freebsd-elf 2661602e473dSmrg need_lib_prefix=no 2662602e473dSmrg need_version=no 2663602e473dSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 2664602e473dSmrg soname_spec='${libname}${release}${shared_ext}$major' 2665602e473dSmrg shlibpath_var=LD_LIBRARY_PATH 2666602e473dSmrg shlibpath_overrides_runpath=yes 2667602e473dSmrg hardcode_into_libs=yes 2668602e473dSmrg if test "$with_gnu_ld" = yes; then 2669602e473dSmrg sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 2670602e473dSmrg else 2671602e473dSmrg sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 2672602e473dSmrg case $host_os in 2673602e473dSmrg sco3.2v5*) 2674602e473dSmrg sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 2675602e473dSmrg ;; 2676602e473dSmrg esac 2677602e473dSmrg fi 2678602e473dSmrg sys_lib_dlsearch_path_spec='/usr/lib' 2679602e473dSmrg ;; 2680602e473dSmrg 2681602e473dSmrgtpf*) 2682602e473dSmrg # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 2683602e473dSmrg version_type=linux 2684602e473dSmrg need_lib_prefix=no 2685602e473dSmrg need_version=no 2686602e473dSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2687602e473dSmrg shlibpath_var=LD_LIBRARY_PATH 2688602e473dSmrg shlibpath_overrides_runpath=no 2689602e473dSmrg hardcode_into_libs=yes 2690602e473dSmrg ;; 2691602e473dSmrg 2692602e473dSmrguts4*) 2693602e473dSmrg version_type=linux 2694602e473dSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2695602e473dSmrg soname_spec='${libname}${release}${shared_ext}$major' 2696602e473dSmrg shlibpath_var=LD_LIBRARY_PATH 2697602e473dSmrg ;; 2698602e473dSmrg 2699602e473dSmrg*) 2700602e473dSmrg dynamic_linker=no 2701602e473dSmrg ;; 2702602e473dSmrgesac 2703602e473dSmrgAC_MSG_RESULT([$dynamic_linker]) 2704602e473dSmrgtest "$dynamic_linker" = no && can_build_shared=no 2705602e473dSmrg 2706602e473dSmrgvariables_saved_for_relink="PATH $shlibpath_var $runpath_var" 2707602e473dSmrgif test "$GCC" = yes; then 2708602e473dSmrg variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 2709602e473dSmrgfi 2710602e473dSmrg 2711602e473dSmrgif test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 2712602e473dSmrg sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 2713602e473dSmrgfi 2714602e473dSmrgif test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 2715602e473dSmrg sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 2716602e473dSmrgfi 2717602e473dSmrg 2718602e473dSmrg_LT_DECL([], [variables_saved_for_relink], [1], 2719602e473dSmrg [Variables whose values should be saved in libtool wrapper scripts and 2720602e473dSmrg restored at link time]) 2721602e473dSmrg_LT_DECL([], [need_lib_prefix], [0], 2722602e473dSmrg [Do we need the "lib" prefix for modules?]) 2723602e473dSmrg_LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) 2724602e473dSmrg_LT_DECL([], [version_type], [0], [Library versioning type]) 2725602e473dSmrg_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) 2726602e473dSmrg_LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) 2727602e473dSmrg_LT_DECL([], [shlibpath_overrides_runpath], [0], 2728602e473dSmrg [Is shlibpath searched before the hard-coded library search path?]) 2729602e473dSmrg_LT_DECL([], [libname_spec], [1], [Format of library name prefix]) 2730602e473dSmrg_LT_DECL([], [library_names_spec], [1], 2731602e473dSmrg [[List of archive names. First name is the real one, the rest are links. 2732602e473dSmrg The last name is the one that the linker finds with -lNAME]]) 2733602e473dSmrg_LT_DECL([], [soname_spec], [1], 2734602e473dSmrg [[The coded name of the library, if different from the real name]]) 2735602e473dSmrg_LT_DECL([], [postinstall_cmds], [2], 2736602e473dSmrg [Command to use after installation of a shared archive]) 2737602e473dSmrg_LT_DECL([], [postuninstall_cmds], [2], 2738602e473dSmrg [Command to use after uninstallation of a shared archive]) 2739602e473dSmrg_LT_DECL([], [finish_cmds], [2], 2740602e473dSmrg [Commands used to finish a libtool library installation in a directory]) 2741602e473dSmrg_LT_DECL([], [finish_eval], [1], 2742602e473dSmrg [[As "finish_cmds", except a single script fragment to be evaled but 2743602e473dSmrg not shown]]) 2744602e473dSmrg_LT_DECL([], [hardcode_into_libs], [0], 2745602e473dSmrg [Whether we should hardcode library paths into libraries]) 2746602e473dSmrg_LT_DECL([], [sys_lib_search_path_spec], [2], 2747602e473dSmrg [Compile-time system search path for libraries]) 2748602e473dSmrg_LT_DECL([], [sys_lib_dlsearch_path_spec], [2], 2749602e473dSmrg [Run-time system search path for libraries]) 2750602e473dSmrg])# _LT_SYS_DYNAMIC_LINKER 2751602e473dSmrg 2752602e473dSmrg 2753602e473dSmrg# _LT_PATH_TOOL_PREFIX(TOOL) 2754602e473dSmrg# -------------------------- 2755602e473dSmrg# find a file program which can recognize shared library 2756602e473dSmrgAC_DEFUN([_LT_PATH_TOOL_PREFIX], 2757602e473dSmrg[m4_require([_LT_DECL_EGREP])dnl 2758602e473dSmrgAC_MSG_CHECKING([for $1]) 2759602e473dSmrgAC_CACHE_VAL(lt_cv_path_MAGIC_CMD, 2760602e473dSmrg[case $MAGIC_CMD in 2761602e473dSmrg[[\\/*] | ?:[\\/]*]) 2762602e473dSmrg lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 2763602e473dSmrg ;; 2764602e473dSmrg*) 2765602e473dSmrg lt_save_MAGIC_CMD="$MAGIC_CMD" 2766602e473dSmrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 2767602e473dSmrgdnl $ac_dummy forces splitting on constant user-supplied paths. 2768602e473dSmrgdnl POSIX.2 word splitting is done only on the output of word expansions, 2769602e473dSmrgdnl not every word. This closes a longstanding sh security hole. 2770602e473dSmrg ac_dummy="m4_if([$2], , $PATH, [$2])" 2771602e473dSmrg for ac_dir in $ac_dummy; do 2772602e473dSmrg IFS="$lt_save_ifs" 2773602e473dSmrg test -z "$ac_dir" && ac_dir=. 2774602e473dSmrg if test -f $ac_dir/$1; then 2775602e473dSmrg lt_cv_path_MAGIC_CMD="$ac_dir/$1" 2776602e473dSmrg if test -n "$file_magic_test_file"; then 2777602e473dSmrg case $deplibs_check_method in 2778602e473dSmrg "file_magic "*) 2779602e473dSmrg file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 2780602e473dSmrg MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 2781602e473dSmrg if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 2782602e473dSmrg $EGREP "$file_magic_regex" > /dev/null; then 2783602e473dSmrg : 2784602e473dSmrg else 2785602e473dSmrg cat <<_LT_EOF 1>&2 2786602e473dSmrg 2787602e473dSmrg*** Warning: the command libtool uses to detect shared libraries, 2788602e473dSmrg*** $file_magic_cmd, produces output that libtool cannot recognize. 2789602e473dSmrg*** The result is that libtool may fail to recognize shared libraries 2790602e473dSmrg*** as such. This will affect the creation of libtool libraries that 2791602e473dSmrg*** depend on shared libraries, but programs linked with such libtool 2792602e473dSmrg*** libraries will work regardless of this problem. Nevertheless, you 2793602e473dSmrg*** may want to report the problem to your system manager and/or to 2794602e473dSmrg*** bug-libtool@gnu.org 2795602e473dSmrg 2796602e473dSmrg_LT_EOF 2797602e473dSmrg fi ;; 2798602e473dSmrg esac 2799602e473dSmrg fi 2800602e473dSmrg break 2801602e473dSmrg fi 2802602e473dSmrg done 2803602e473dSmrg IFS="$lt_save_ifs" 2804602e473dSmrg MAGIC_CMD="$lt_save_MAGIC_CMD" 2805602e473dSmrg ;; 2806602e473dSmrgesac]) 2807602e473dSmrgMAGIC_CMD="$lt_cv_path_MAGIC_CMD" 2808602e473dSmrgif test -n "$MAGIC_CMD"; then 2809602e473dSmrg AC_MSG_RESULT($MAGIC_CMD) 2810602e473dSmrgelse 2811602e473dSmrg AC_MSG_RESULT(no) 2812602e473dSmrgfi 2813602e473dSmrg_LT_DECL([], [MAGIC_CMD], [0], 2814602e473dSmrg [Used to examine libraries when file_magic_cmd begins with "file"])dnl 2815602e473dSmrg])# _LT_PATH_TOOL_PREFIX 2816602e473dSmrg 2817602e473dSmrg# Old name: 2818602e473dSmrgAU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) 2819602e473dSmrgdnl aclocal-1.4 backwards compatibility: 2820602e473dSmrgdnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) 2821602e473dSmrg 2822602e473dSmrg 2823602e473dSmrg# _LT_PATH_MAGIC 2824602e473dSmrg# -------------- 2825602e473dSmrg# find a file program which can recognize a shared library 2826602e473dSmrgm4_defun([_LT_PATH_MAGIC], 2827602e473dSmrg[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) 2828602e473dSmrgif test -z "$lt_cv_path_MAGIC_CMD"; then 2829602e473dSmrg if test -n "$ac_tool_prefix"; then 2830602e473dSmrg _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) 2831602e473dSmrg else 2832602e473dSmrg MAGIC_CMD=: 2833602e473dSmrg fi 2834602e473dSmrgfi 2835602e473dSmrg])# _LT_PATH_MAGIC 2836602e473dSmrg 2837602e473dSmrg 2838602e473dSmrg# LT_PATH_LD 2839602e473dSmrg# ---------- 2840602e473dSmrg# find the pathname to the GNU or non-GNU linker 2841602e473dSmrgAC_DEFUN([LT_PATH_LD], 2842602e473dSmrg[AC_REQUIRE([AC_PROG_CC])dnl 2843602e473dSmrgAC_REQUIRE([AC_CANONICAL_HOST])dnl 2844602e473dSmrgAC_REQUIRE([AC_CANONICAL_BUILD])dnl 2845602e473dSmrgm4_require([_LT_DECL_SED])dnl 2846602e473dSmrgm4_require([_LT_DECL_EGREP])dnl 2847602e473dSmrg 2848602e473dSmrgAC_ARG_WITH([gnu-ld], 2849602e473dSmrg [AS_HELP_STRING([--with-gnu-ld], 2850602e473dSmrg [assume the C compiler uses GNU ld @<:@default=no@:>@])], 2851602e473dSmrg [test "$withval" = no || with_gnu_ld=yes], 2852602e473dSmrg [with_gnu_ld=no])dnl 2853602e473dSmrg 2854602e473dSmrgac_prog=ld 2855602e473dSmrgif test "$GCC" = yes; then 2856602e473dSmrg # Check if gcc -print-prog-name=ld gives a path. 2857602e473dSmrg AC_MSG_CHECKING([for ld used by $CC]) 2858602e473dSmrg case $host in 2859602e473dSmrg *-*-mingw*) 2860602e473dSmrg # gcc leaves a trailing carriage return which upsets mingw 2861602e473dSmrg ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 2862602e473dSmrg *) 2863602e473dSmrg ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 2864602e473dSmrg esac 2865602e473dSmrg case $ac_prog in 2866602e473dSmrg # Accept absolute paths. 2867602e473dSmrg [[\\/]]* | ?:[[\\/]]*) 2868602e473dSmrg re_direlt='/[[^/]][[^/]]*/\.\./' 2869602e473dSmrg # Canonicalize the pathname of ld 2870602e473dSmrg ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 2871602e473dSmrg while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 2872602e473dSmrg ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 2873602e473dSmrg done 2874602e473dSmrg test -z "$LD" && LD="$ac_prog" 2875602e473dSmrg ;; 2876602e473dSmrg "") 2877602e473dSmrg # If it fails, then pretend we aren't using GCC. 2878602e473dSmrg ac_prog=ld 2879602e473dSmrg ;; 2880602e473dSmrg *) 2881602e473dSmrg # If it is relative, then search for the first ld in PATH. 2882602e473dSmrg with_gnu_ld=unknown 2883602e473dSmrg ;; 2884602e473dSmrg esac 2885602e473dSmrgelif test "$with_gnu_ld" = yes; then 2886602e473dSmrg AC_MSG_CHECKING([for GNU ld]) 2887602e473dSmrgelse 2888602e473dSmrg AC_MSG_CHECKING([for non-GNU ld]) 2889602e473dSmrgfi 2890602e473dSmrgAC_CACHE_VAL(lt_cv_path_LD, 2891602e473dSmrg[if test -z "$LD"; then 2892602e473dSmrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 2893602e473dSmrg for ac_dir in $PATH; do 2894602e473dSmrg IFS="$lt_save_ifs" 2895602e473dSmrg test -z "$ac_dir" && ac_dir=. 2896602e473dSmrg if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 2897602e473dSmrg lt_cv_path_LD="$ac_dir/$ac_prog" 2898602e473dSmrg # Check to see if the program is GNU ld. I'd rather use --version, 2899602e473dSmrg # but apparently some variants of GNU ld only accept -v. 2900602e473dSmrg # Break only if it was the GNU/non-GNU ld that we prefer. 2901602e473dSmrg case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 2902602e473dSmrg *GNU* | *'with BFD'*) 2903602e473dSmrg test "$with_gnu_ld" != no && break 2904602e473dSmrg ;; 2905602e473dSmrg *) 2906602e473dSmrg test "$with_gnu_ld" != yes && break 2907602e473dSmrg ;; 2908602e473dSmrg esac 2909602e473dSmrg fi 2910602e473dSmrg done 2911602e473dSmrg IFS="$lt_save_ifs" 2912602e473dSmrgelse 2913602e473dSmrg lt_cv_path_LD="$LD" # Let the user override the test with a path. 2914602e473dSmrgfi]) 2915602e473dSmrgLD="$lt_cv_path_LD" 2916602e473dSmrgif test -n "$LD"; then 2917602e473dSmrg AC_MSG_RESULT($LD) 2918602e473dSmrgelse 2919602e473dSmrg AC_MSG_RESULT(no) 2920602e473dSmrgfi 2921602e473dSmrgtest -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) 2922602e473dSmrg_LT_PATH_LD_GNU 2923602e473dSmrgAC_SUBST([LD]) 2924602e473dSmrg 2925602e473dSmrg_LT_TAGDECL([], [LD], [1], [The linker used to build libraries]) 2926602e473dSmrg])# LT_PATH_LD 2927602e473dSmrg 2928602e473dSmrg# Old names: 2929602e473dSmrgAU_ALIAS([AM_PROG_LD], [LT_PATH_LD]) 2930602e473dSmrgAU_ALIAS([AC_PROG_LD], [LT_PATH_LD]) 2931602e473dSmrgdnl aclocal-1.4 backwards compatibility: 2932602e473dSmrgdnl AC_DEFUN([AM_PROG_LD], []) 2933602e473dSmrgdnl AC_DEFUN([AC_PROG_LD], []) 2934602e473dSmrg 2935602e473dSmrg 2936602e473dSmrg# _LT_PATH_LD_GNU 2937602e473dSmrg#- -------------- 2938602e473dSmrgm4_defun([_LT_PATH_LD_GNU], 2939602e473dSmrg[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, 2940602e473dSmrg[# I'd rather use --version here, but apparently some GNU lds only accept -v. 2941602e473dSmrgcase `$LD -v 2>&1 </dev/null` in 2942602e473dSmrg*GNU* | *'with BFD'*) 2943602e473dSmrg lt_cv_prog_gnu_ld=yes 2944602e473dSmrg ;; 2945602e473dSmrg*) 2946602e473dSmrg lt_cv_prog_gnu_ld=no 2947602e473dSmrg ;; 2948602e473dSmrgesac]) 2949602e473dSmrgwith_gnu_ld=$lt_cv_prog_gnu_ld 2950602e473dSmrg])# _LT_PATH_LD_GNU 2951602e473dSmrg 2952602e473dSmrg 2953602e473dSmrg# _LT_CMD_RELOAD 2954602e473dSmrg# -------------- 2955602e473dSmrg# find reload flag for linker 2956602e473dSmrg# -- PORTME Some linkers may need a different reload flag. 2957602e473dSmrgm4_defun([_LT_CMD_RELOAD], 2958602e473dSmrg[AC_CACHE_CHECK([for $LD option to reload object files], 2959602e473dSmrg lt_cv_ld_reload_flag, 2960602e473dSmrg [lt_cv_ld_reload_flag='-r']) 2961602e473dSmrgreload_flag=$lt_cv_ld_reload_flag 2962602e473dSmrgcase $reload_flag in 2963602e473dSmrg"" | " "*) ;; 2964602e473dSmrg*) reload_flag=" $reload_flag" ;; 2965602e473dSmrgesac 2966602e473dSmrgreload_cmds='$LD$reload_flag -o $output$reload_objs' 2967602e473dSmrgcase $host_os in 2968602e473dSmrg darwin*) 2969602e473dSmrg if test "$GCC" = yes; then 2970602e473dSmrg reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 2971602e473dSmrg else 2972602e473dSmrg reload_cmds='$LD$reload_flag -o $output$reload_objs' 2973602e473dSmrg fi 2974602e473dSmrg ;; 2975602e473dSmrgesac 2976602e473dSmrg_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl 2977602e473dSmrg_LT_DECL([], [reload_cmds], [2])dnl 2978602e473dSmrg])# _LT_CMD_RELOAD 2979602e473dSmrg 2980602e473dSmrg 2981602e473dSmrg# _LT_CHECK_MAGIC_METHOD 2982602e473dSmrg# ---------------------- 2983602e473dSmrg# how to check for library dependencies 2984602e473dSmrg# -- PORTME fill in with the dynamic library characteristics 2985602e473dSmrgm4_defun([_LT_CHECK_MAGIC_METHOD], 2986602e473dSmrg[m4_require([_LT_DECL_EGREP]) 2987602e473dSmrgm4_require([_LT_DECL_OBJDUMP]) 2988602e473dSmrgAC_CACHE_CHECK([how to recognize dependent libraries], 2989602e473dSmrglt_cv_deplibs_check_method, 2990602e473dSmrg[lt_cv_file_magic_cmd='$MAGIC_CMD' 2991602e473dSmrglt_cv_file_magic_test_file= 2992602e473dSmrglt_cv_deplibs_check_method='unknown' 2993602e473dSmrg# Need to set the preceding variable on all platforms that support 2994602e473dSmrg# interlibrary dependencies. 2995602e473dSmrg# 'none' -- dependencies not supported. 2996602e473dSmrg# `unknown' -- same as none, but documents that we really don't know. 2997602e473dSmrg# 'pass_all' -- all dependencies passed with no checks. 2998602e473dSmrg# 'test_compile' -- check by making test program. 2999602e473dSmrg# 'file_magic [[regex]]' -- check by looking for files in library path 3000602e473dSmrg# which responds to the $file_magic_cmd with a given extended regex. 3001602e473dSmrg# If you have `file' or equivalent on your system and you're not sure 3002602e473dSmrg# whether `pass_all' will *always* work, you probably want this one. 3003602e473dSmrg 3004602e473dSmrgcase $host_os in 3005602e473dSmrgaix[[4-9]]*) 3006602e473dSmrg lt_cv_deplibs_check_method=pass_all 3007602e473dSmrg ;; 3008602e473dSmrg 3009602e473dSmrgbeos*) 3010602e473dSmrg lt_cv_deplibs_check_method=pass_all 3011602e473dSmrg ;; 3012602e473dSmrg 3013602e473dSmrgbsdi[[45]]*) 3014602e473dSmrg lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' 3015602e473dSmrg lt_cv_file_magic_cmd='/usr/bin/file -L' 3016602e473dSmrg lt_cv_file_magic_test_file=/shlib/libc.so 3017602e473dSmrg ;; 3018602e473dSmrg 3019602e473dSmrgcygwin*) 3020602e473dSmrg # func_win32_libid is a shell function defined in ltmain.sh 3021602e473dSmrg lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3022602e473dSmrg lt_cv_file_magic_cmd='func_win32_libid' 3023602e473dSmrg ;; 3024602e473dSmrg 3025602e473dSmrgmingw* | pw32*) 3026602e473dSmrg # Base MSYS/MinGW do not provide the 'file' command needed by 3027602e473dSmrg # func_win32_libid shell function, so use a weaker test based on 'objdump', 3028602e473dSmrg # unless we find 'file', for example because we are cross-compiling. 3029602e473dSmrg if ( file / ) >/dev/null 2>&1; then 3030602e473dSmrg lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3031602e473dSmrg lt_cv_file_magic_cmd='func_win32_libid' 3032602e473dSmrg else 3033602e473dSmrg lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 3034602e473dSmrg lt_cv_file_magic_cmd='$OBJDUMP -f' 3035602e473dSmrg fi 3036602e473dSmrg ;; 3037602e473dSmrg 3038602e473dSmrgcegcc) 3039602e473dSmrg # use the weaker test based on 'objdump'. See mingw*. 3040602e473dSmrg lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 3041602e473dSmrg lt_cv_file_magic_cmd='$OBJDUMP -f' 3042602e473dSmrg ;; 3043602e473dSmrg 3044602e473dSmrgdarwin* | rhapsody*) 3045602e473dSmrg lt_cv_deplibs_check_method=pass_all 3046602e473dSmrg ;; 3047602e473dSmrg 3048602e473dSmrgfreebsd* | dragonfly*) 3049602e473dSmrg if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 3050602e473dSmrg case $host_cpu in 3051602e473dSmrg i*86 ) 3052602e473dSmrg # Not sure whether the presence of OpenBSD here was a mistake. 3053602e473dSmrg # Let's accept both of them until this is cleared up. 3054602e473dSmrg lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' 3055602e473dSmrg lt_cv_file_magic_cmd=/usr/bin/file 3056602e473dSmrg lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3057602e473dSmrg ;; 3058602e473dSmrg esac 3059602e473dSmrg else 3060602e473dSmrg lt_cv_deplibs_check_method=pass_all 3061602e473dSmrg fi 3062602e473dSmrg ;; 3063602e473dSmrg 3064602e473dSmrggnu*) 3065602e473dSmrg lt_cv_deplibs_check_method=pass_all 3066602e473dSmrg ;; 3067602e473dSmrg 3068602e473dSmrghpux10.20* | hpux11*) 3069602e473dSmrg lt_cv_file_magic_cmd=/usr/bin/file 3070602e473dSmrg case $host_cpu in 3071602e473dSmrg ia64*) 3072602e473dSmrg lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' 3073602e473dSmrg lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 3074602e473dSmrg ;; 3075602e473dSmrg hppa*64*) 3076602e473dSmrg [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'] 3077602e473dSmrg lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 3078602e473dSmrg ;; 3079602e473dSmrg *) 3080602e473dSmrg lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' 3081602e473dSmrg lt_cv_file_magic_test_file=/usr/lib/libc.sl 3082602e473dSmrg ;; 3083602e473dSmrg esac 3084602e473dSmrg ;; 3085602e473dSmrg 3086602e473dSmrginterix[[3-9]]*) 3087602e473dSmrg # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 3088602e473dSmrg lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' 3089602e473dSmrg ;; 3090602e473dSmrg 3091602e473dSmrgirix5* | irix6* | nonstopux*) 3092602e473dSmrg case $LD in 3093602e473dSmrg *-32|*"-32 ") libmagic=32-bit;; 3094602e473dSmrg *-n32|*"-n32 ") libmagic=N32;; 3095602e473dSmrg *-64|*"-64 ") libmagic=64-bit;; 3096602e473dSmrg *) libmagic=never-match;; 3097602e473dSmrg esac 3098602e473dSmrg lt_cv_deplibs_check_method=pass_all 3099602e473dSmrg ;; 3100602e473dSmrg 3101602e473dSmrg# This must be Linux ELF. 3102602e473dSmrglinux* | k*bsd*-gnu | kopensolaris*-gnu) 3103602e473dSmrg lt_cv_deplibs_check_method=pass_all 3104602e473dSmrg ;; 3105602e473dSmrg 3106602e473dSmrgnetbsd* | netbsdelf*-gnu) 3107602e473dSmrg if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 3108602e473dSmrg lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 3109602e473dSmrg else 3110602e473dSmrg lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' 3111602e473dSmrg fi 3112602e473dSmrg ;; 3113602e473dSmrg 3114602e473dSmrgnewos6*) 3115602e473dSmrg lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' 3116602e473dSmrg lt_cv_file_magic_cmd=/usr/bin/file 3117602e473dSmrg lt_cv_file_magic_test_file=/usr/lib/libnls.so 3118602e473dSmrg ;; 3119602e473dSmrg 3120602e473dSmrg*nto* | *qnx*) 3121602e473dSmrg lt_cv_deplibs_check_method=pass_all 3122602e473dSmrg ;; 3123602e473dSmrg 3124602e473dSmrgopenbsd*) 3125602e473dSmrg if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 3126602e473dSmrg lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' 3127602e473dSmrg else 3128602e473dSmrg lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 3129602e473dSmrg fi 3130602e473dSmrg ;; 3131602e473dSmrg 3132602e473dSmrgosf3* | osf4* | osf5*) 3133602e473dSmrg lt_cv_deplibs_check_method=pass_all 3134602e473dSmrg ;; 3135602e473dSmrg 3136602e473dSmrgrdos*) 3137602e473dSmrg lt_cv_deplibs_check_method=pass_all 3138602e473dSmrg ;; 3139602e473dSmrg 3140602e473dSmrgsolaris*) 3141602e473dSmrg lt_cv_deplibs_check_method=pass_all 3142602e473dSmrg ;; 3143602e473dSmrg 3144602e473dSmrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 3145602e473dSmrg lt_cv_deplibs_check_method=pass_all 3146602e473dSmrg ;; 3147602e473dSmrg 3148602e473dSmrgsysv4 | sysv4.3*) 3149602e473dSmrg case $host_vendor in 3150602e473dSmrg motorola) 3151602e473dSmrg 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]]' 3152602e473dSmrg lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 3153602e473dSmrg ;; 3154602e473dSmrg ncr) 3155602e473dSmrg lt_cv_deplibs_check_method=pass_all 3156602e473dSmrg ;; 3157602e473dSmrg sequent) 3158602e473dSmrg lt_cv_file_magic_cmd='/bin/file' 3159602e473dSmrg lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' 3160602e473dSmrg ;; 3161602e473dSmrg sni) 3162602e473dSmrg lt_cv_file_magic_cmd='/bin/file' 3163602e473dSmrg lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" 3164602e473dSmrg lt_cv_file_magic_test_file=/lib/libc.so 3165602e473dSmrg ;; 3166602e473dSmrg siemens) 3167602e473dSmrg lt_cv_deplibs_check_method=pass_all 3168602e473dSmrg ;; 3169602e473dSmrg pc) 3170602e473dSmrg lt_cv_deplibs_check_method=pass_all 3171602e473dSmrg ;; 3172602e473dSmrg esac 3173602e473dSmrg ;; 3174602e473dSmrg 3175602e473dSmrgtpf*) 3176602e473dSmrg lt_cv_deplibs_check_method=pass_all 3177602e473dSmrg ;; 3178602e473dSmrgesac 3179602e473dSmrg]) 3180602e473dSmrgfile_magic_cmd=$lt_cv_file_magic_cmd 3181602e473dSmrgdeplibs_check_method=$lt_cv_deplibs_check_method 3182602e473dSmrgtest -z "$deplibs_check_method" && deplibs_check_method=unknown 3183602e473dSmrg 3184602e473dSmrg_LT_DECL([], [deplibs_check_method], [1], 3185602e473dSmrg [Method to check whether dependent libraries are shared objects]) 3186602e473dSmrg_LT_DECL([], [file_magic_cmd], [1], 3187602e473dSmrg [Command to use when deplibs_check_method == "file_magic"]) 3188602e473dSmrg])# _LT_CHECK_MAGIC_METHOD 3189602e473dSmrg 3190602e473dSmrg 3191602e473dSmrg# LT_PATH_NM 3192602e473dSmrg# ---------- 3193602e473dSmrg# find the pathname to a BSD- or MS-compatible name lister 3194602e473dSmrgAC_DEFUN([LT_PATH_NM], 3195602e473dSmrg[AC_REQUIRE([AC_PROG_CC])dnl 3196602e473dSmrgAC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, 3197602e473dSmrg[if test -n "$NM"; then 3198602e473dSmrg # Let the user override the test. 3199602e473dSmrg lt_cv_path_NM="$NM" 3200602e473dSmrgelse 3201602e473dSmrg lt_nm_to_check="${ac_tool_prefix}nm" 3202602e473dSmrg if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 3203602e473dSmrg lt_nm_to_check="$lt_nm_to_check nm" 3204602e473dSmrg fi 3205602e473dSmrg for lt_tmp_nm in $lt_nm_to_check; do 3206602e473dSmrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3207602e473dSmrg for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 3208602e473dSmrg IFS="$lt_save_ifs" 3209602e473dSmrg test -z "$ac_dir" && ac_dir=. 3210602e473dSmrg tmp_nm="$ac_dir/$lt_tmp_nm" 3211602e473dSmrg if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 3212602e473dSmrg # Check to see if the nm accepts a BSD-compat flag. 3213602e473dSmrg # Adding the `sed 1q' prevents false positives on HP-UX, which says: 3214602e473dSmrg # nm: unknown option "B" ignored 3215602e473dSmrg # Tru64's nm complains that /dev/null is an invalid object file 3216602e473dSmrg case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 3217602e473dSmrg */dev/null* | *'Invalid file or object type'*) 3218602e473dSmrg lt_cv_path_NM="$tmp_nm -B" 3219602e473dSmrg break 3220602e473dSmrg ;; 3221602e473dSmrg *) 3222602e473dSmrg case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 3223602e473dSmrg */dev/null*) 3224602e473dSmrg lt_cv_path_NM="$tmp_nm -p" 3225602e473dSmrg break 3226602e473dSmrg ;; 3227602e473dSmrg *) 3228602e473dSmrg lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3229602e473dSmrg continue # so that we can try to find one that supports BSD flags 3230602e473dSmrg ;; 3231602e473dSmrg esac 3232602e473dSmrg ;; 3233602e473dSmrg esac 3234602e473dSmrg fi 3235602e473dSmrg done 3236602e473dSmrg IFS="$lt_save_ifs" 3237602e473dSmrg done 3238602e473dSmrg : ${lt_cv_path_NM=no} 3239602e473dSmrgfi]) 3240602e473dSmrgif test "$lt_cv_path_NM" != "no"; then 3241602e473dSmrg NM="$lt_cv_path_NM" 3242602e473dSmrgelse 3243602e473dSmrg # Didn't find any BSD compatible name lister, look for dumpbin. 3244602e473dSmrg AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :) 3245602e473dSmrg AC_SUBST([DUMPBIN]) 3246602e473dSmrg if test "$DUMPBIN" != ":"; then 3247602e473dSmrg NM="$DUMPBIN" 3248602e473dSmrg fi 3249602e473dSmrgfi 3250602e473dSmrgtest -z "$NM" && NM=nm 3251602e473dSmrgAC_SUBST([NM]) 3252602e473dSmrg_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl 3253602e473dSmrg 3254602e473dSmrgAC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], 3255602e473dSmrg [lt_cv_nm_interface="BSD nm" 3256602e473dSmrg echo "int some_variable = 0;" > conftest.$ac_ext 3257602e473dSmrg (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD) 3258602e473dSmrg (eval "$ac_compile" 2>conftest.err) 3259602e473dSmrg cat conftest.err >&AS_MESSAGE_LOG_FD 3260602e473dSmrg (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) 3261602e473dSmrg (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 3262602e473dSmrg cat conftest.err >&AS_MESSAGE_LOG_FD 3263602e473dSmrg (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD) 3264602e473dSmrg cat conftest.out >&AS_MESSAGE_LOG_FD 3265602e473dSmrg if $GREP 'External.*some_variable' conftest.out > /dev/null; then 3266602e473dSmrg lt_cv_nm_interface="MS dumpbin" 3267602e473dSmrg fi 3268602e473dSmrg rm -f conftest*]) 3269602e473dSmrg])# LT_PATH_NM 3270602e473dSmrg 3271602e473dSmrg# Old names: 3272602e473dSmrgAU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) 3273602e473dSmrgAU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) 3274602e473dSmrgdnl aclocal-1.4 backwards compatibility: 3275602e473dSmrgdnl AC_DEFUN([AM_PROG_NM], []) 3276602e473dSmrgdnl AC_DEFUN([AC_PROG_NM], []) 3277602e473dSmrg 3278602e473dSmrg 3279602e473dSmrg# LT_LIB_M 3280602e473dSmrg# -------- 3281602e473dSmrg# check for math library 3282602e473dSmrgAC_DEFUN([LT_LIB_M], 3283602e473dSmrg[AC_REQUIRE([AC_CANONICAL_HOST])dnl 3284602e473dSmrgLIBM= 3285602e473dSmrgcase $host in 3286602e473dSmrg*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) 3287602e473dSmrg # These system don't have libm, or don't need it 3288602e473dSmrg ;; 3289602e473dSmrg*-ncr-sysv4.3*) 3290602e473dSmrg AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") 3291602e473dSmrg AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") 3292602e473dSmrg ;; 3293602e473dSmrg*) 3294602e473dSmrg AC_CHECK_LIB(m, cos, LIBM="-lm") 3295602e473dSmrg ;; 3296602e473dSmrgesac 3297602e473dSmrgAC_SUBST([LIBM]) 3298602e473dSmrg])# LT_LIB_M 3299602e473dSmrg 3300602e473dSmrg# Old name: 3301602e473dSmrgAU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) 3302602e473dSmrgdnl aclocal-1.4 backwards compatibility: 3303602e473dSmrgdnl AC_DEFUN([AC_CHECK_LIBM], []) 3304602e473dSmrg 3305602e473dSmrg 3306602e473dSmrg# _LT_COMPILER_NO_RTTI([TAGNAME]) 3307602e473dSmrg# ------------------------------- 3308602e473dSmrgm4_defun([_LT_COMPILER_NO_RTTI], 3309602e473dSmrg[m4_require([_LT_TAG_COMPILER])dnl 3310602e473dSmrg 3311602e473dSmrg_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 3312602e473dSmrg 3313602e473dSmrgif test "$GCC" = yes; then 3314602e473dSmrg _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 3315602e473dSmrg 3316602e473dSmrg _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], 3317602e473dSmrg lt_cv_prog_compiler_rtti_exceptions, 3318602e473dSmrg [-fno-rtti -fno-exceptions], [], 3319602e473dSmrg [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) 3320602e473dSmrgfi 3321602e473dSmrg_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], 3322602e473dSmrg [Compiler flag to turn off builtin functions]) 3323602e473dSmrg])# _LT_COMPILER_NO_RTTI 3324602e473dSmrg 3325602e473dSmrg 3326602e473dSmrg# _LT_CMD_GLOBAL_SYMBOLS 3327602e473dSmrg# ---------------------- 3328602e473dSmrgm4_defun([_LT_CMD_GLOBAL_SYMBOLS], 3329602e473dSmrg[AC_REQUIRE([AC_CANONICAL_HOST])dnl 3330602e473dSmrgAC_REQUIRE([AC_PROG_CC])dnl 3331602e473dSmrgAC_REQUIRE([LT_PATH_NM])dnl 3332602e473dSmrgAC_REQUIRE([LT_PATH_LD])dnl 3333602e473dSmrgm4_require([_LT_DECL_SED])dnl 3334602e473dSmrgm4_require([_LT_DECL_EGREP])dnl 3335602e473dSmrgm4_require([_LT_TAG_COMPILER])dnl 3336602e473dSmrg 3337602e473dSmrg# Check for command to grab the raw symbol name followed by C symbol from nm. 3338602e473dSmrgAC_MSG_CHECKING([command to parse $NM output from $compiler object]) 3339602e473dSmrgAC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], 3340602e473dSmrg[ 3341602e473dSmrg# These are sane defaults that work on at least a few old systems. 3342602e473dSmrg# [They come from Ultrix. What could be older than Ultrix?!! ;)] 3343602e473dSmrg 3344602e473dSmrg# Character class describing NM global symbol codes. 3345602e473dSmrgsymcode='[[BCDEGRST]]' 3346602e473dSmrg 3347602e473dSmrg# Regexp to match symbols that can be accessed directly from C. 3348602e473dSmrgsympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' 3349602e473dSmrg 3350602e473dSmrg# Define system-specific variables. 3351602e473dSmrgcase $host_os in 3352602e473dSmrgaix*) 3353602e473dSmrg symcode='[[BCDT]]' 3354602e473dSmrg ;; 3355602e473dSmrgcygwin* | mingw* | pw32* | cegcc*) 3356602e473dSmrg symcode='[[ABCDGISTW]]' 3357602e473dSmrg ;; 3358602e473dSmrghpux*) 3359602e473dSmrg if test "$host_cpu" = ia64; then 3360602e473dSmrg symcode='[[ABCDEGRST]]' 3361602e473dSmrg fi 3362602e473dSmrg ;; 3363602e473dSmrgirix* | nonstopux*) 3364602e473dSmrg symcode='[[BCDEGRST]]' 3365602e473dSmrg ;; 3366602e473dSmrgosf*) 3367602e473dSmrg symcode='[[BCDEGQRST]]' 3368602e473dSmrg ;; 3369602e473dSmrgsolaris*) 3370602e473dSmrg symcode='[[BDRT]]' 3371602e473dSmrg ;; 3372602e473dSmrgsco3.2v5*) 3373602e473dSmrg symcode='[[DT]]' 3374602e473dSmrg ;; 3375602e473dSmrgsysv4.2uw2*) 3376602e473dSmrg symcode='[[DT]]' 3377602e473dSmrg ;; 3378602e473dSmrgsysv5* | sco5v6* | unixware* | OpenUNIX*) 3379602e473dSmrg symcode='[[ABDT]]' 3380602e473dSmrg ;; 3381602e473dSmrgsysv4) 3382602e473dSmrg symcode='[[DFNSTU]]' 3383602e473dSmrg ;; 3384602e473dSmrgesac 3385602e473dSmrg 3386602e473dSmrg# If we're using GNU nm, then use its standard symbol codes. 3387602e473dSmrgcase `$NM -V 2>&1` in 3388602e473dSmrg*GNU* | *'with BFD'*) 3389602e473dSmrg symcode='[[ABCDGIRSTW]]' ;; 3390602e473dSmrgesac 3391602e473dSmrg 3392602e473dSmrg# Transform an extracted symbol line into a proper C declaration. 3393602e473dSmrg# Some systems (esp. on ia64) link data and code symbols differently, 3394602e473dSmrg# so use this general approach. 3395602e473dSmrglt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 3396602e473dSmrg 3397602e473dSmrg# Transform an extracted symbol line into symbol name and symbol address 3398602e473dSmrglt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" 3399602e473dSmrglt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 3400602e473dSmrg 3401602e473dSmrg# Handle CRLF in mingw tool chain 3402602e473dSmrgopt_cr= 3403602e473dSmrgcase $build_os in 3404602e473dSmrgmingw*) 3405602e473dSmrg opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 3406602e473dSmrg ;; 3407602e473dSmrgesac 3408602e473dSmrg 3409602e473dSmrg# Try without a prefix underscore, then with it. 3410602e473dSmrgfor ac_symprfx in "" "_"; do 3411602e473dSmrg 3412602e473dSmrg # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 3413602e473dSmrg symxfrm="\\1 $ac_symprfx\\2 \\2" 3414602e473dSmrg 3415602e473dSmrg # Write the raw and C identifiers. 3416602e473dSmrg if test "$lt_cv_nm_interface" = "MS dumpbin"; then 3417602e473dSmrg # Fake it for dumpbin and say T for any non-static function 3418602e473dSmrg # and D for any global variable. 3419602e473dSmrg # Also find C++ and __fastcall symbols from MSVC++, 3420602e473dSmrg # which start with @ or ?. 3421602e473dSmrg lt_cv_sys_global_symbol_pipe="$AWK ['"\ 3422602e473dSmrg" {last_section=section; section=\$ 3};"\ 3423602e473dSmrg" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 3424602e473dSmrg" \$ 0!~/External *\|/{next};"\ 3425602e473dSmrg" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 3426602e473dSmrg" {if(hide[section]) next};"\ 3427602e473dSmrg" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 3428602e473dSmrg" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 3429602e473dSmrg" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 3430602e473dSmrg" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 3431602e473dSmrg" ' prfx=^$ac_symprfx]" 3432602e473dSmrg else 3433602e473dSmrg lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 3434602e473dSmrg fi 3435602e473dSmrg 3436602e473dSmrg # Check to see that the pipe works correctly. 3437602e473dSmrg pipe_works=no 3438602e473dSmrg 3439602e473dSmrg rm -f conftest* 3440602e473dSmrg cat > conftest.$ac_ext <<_LT_EOF 3441602e473dSmrg#ifdef __cplusplus 3442602e473dSmrgextern "C" { 3443602e473dSmrg#endif 3444602e473dSmrgchar nm_test_var; 3445602e473dSmrgvoid nm_test_func(void); 3446602e473dSmrgvoid nm_test_func(void){} 3447602e473dSmrg#ifdef __cplusplus 3448602e473dSmrg} 3449602e473dSmrg#endif 3450602e473dSmrgint main(){nm_test_var='a';nm_test_func();return(0);} 3451602e473dSmrg_LT_EOF 3452602e473dSmrg 3453602e473dSmrg if AC_TRY_EVAL(ac_compile); then 3454602e473dSmrg # Now try to grab the symbols. 3455602e473dSmrg nlist=conftest.nm 3456602e473dSmrg if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then 3457602e473dSmrg # Try sorting and uniquifying the output. 3458602e473dSmrg if sort "$nlist" | uniq > "$nlist"T; then 3459602e473dSmrg mv -f "$nlist"T "$nlist" 3460602e473dSmrg else 3461602e473dSmrg rm -f "$nlist"T 3462602e473dSmrg fi 3463602e473dSmrg 3464602e473dSmrg # Make sure that we snagged all the symbols we need. 3465602e473dSmrg if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 3466602e473dSmrg if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 3467602e473dSmrg cat <<_LT_EOF > conftest.$ac_ext 3468602e473dSmrg#ifdef __cplusplus 3469602e473dSmrgextern "C" { 3470602e473dSmrg#endif 3471602e473dSmrg 3472602e473dSmrg_LT_EOF 3473602e473dSmrg # Now generate the symbol file. 3474602e473dSmrg eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 3475602e473dSmrg 3476602e473dSmrg cat <<_LT_EOF >> conftest.$ac_ext 3477602e473dSmrg 3478602e473dSmrg/* The mapping between symbol names and symbols. */ 3479602e473dSmrgconst struct { 3480602e473dSmrg const char *name; 3481602e473dSmrg void *address; 3482602e473dSmrg} 3483602e473dSmrglt__PROGRAM__LTX_preloaded_symbols[[]] = 3484602e473dSmrg{ 3485602e473dSmrg { "@PROGRAM@", (void *) 0 }, 3486602e473dSmrg_LT_EOF 3487602e473dSmrg $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 3488602e473dSmrg cat <<\_LT_EOF >> conftest.$ac_ext 3489602e473dSmrg {0, (void *) 0} 3490602e473dSmrg}; 3491602e473dSmrg 3492602e473dSmrg/* This works around a problem in FreeBSD linker */ 3493602e473dSmrg#ifdef FREEBSD_WORKAROUND 3494602e473dSmrgstatic const void *lt_preloaded_setup() { 3495602e473dSmrg return lt__PROGRAM__LTX_preloaded_symbols; 3496602e473dSmrg} 3497602e473dSmrg#endif 3498602e473dSmrg 3499602e473dSmrg#ifdef __cplusplus 3500602e473dSmrg} 3501602e473dSmrg#endif 3502602e473dSmrg_LT_EOF 3503602e473dSmrg # Now try linking the two files. 3504602e473dSmrg mv conftest.$ac_objext conftstm.$ac_objext 3505602e473dSmrg lt_save_LIBS="$LIBS" 3506602e473dSmrg lt_save_CFLAGS="$CFLAGS" 3507602e473dSmrg LIBS="conftstm.$ac_objext" 3508602e473dSmrg CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" 3509602e473dSmrg if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then 3510602e473dSmrg pipe_works=yes 3511602e473dSmrg fi 3512602e473dSmrg LIBS="$lt_save_LIBS" 3513602e473dSmrg CFLAGS="$lt_save_CFLAGS" 3514602e473dSmrg else 3515602e473dSmrg echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD 3516602e473dSmrg fi 3517602e473dSmrg else 3518602e473dSmrg echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD 3519602e473dSmrg fi 3520602e473dSmrg else 3521602e473dSmrg echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD 3522602e473dSmrg fi 3523602e473dSmrg else 3524602e473dSmrg echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD 3525602e473dSmrg cat conftest.$ac_ext >&5 3526602e473dSmrg fi 3527602e473dSmrg rm -rf conftest* conftst* 3528602e473dSmrg 3529602e473dSmrg # Do not use the global_symbol_pipe unless it works. 3530602e473dSmrg if test "$pipe_works" = yes; then 3531602e473dSmrg break 3532602e473dSmrg else 3533602e473dSmrg lt_cv_sys_global_symbol_pipe= 3534602e473dSmrg fi 3535602e473dSmrgdone 3536602e473dSmrg]) 3537602e473dSmrgif test -z "$lt_cv_sys_global_symbol_pipe"; then 3538602e473dSmrg lt_cv_sys_global_symbol_to_cdecl= 3539602e473dSmrgfi 3540602e473dSmrgif test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 3541602e473dSmrg AC_MSG_RESULT(failed) 3542602e473dSmrgelse 3543602e473dSmrg AC_MSG_RESULT(ok) 3544602e473dSmrgfi 3545602e473dSmrg 3546602e473dSmrg_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], 3547602e473dSmrg [Take the output of nm and produce a listing of raw symbols and C names]) 3548602e473dSmrg_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], 3549602e473dSmrg [Transform the output of nm in a proper C declaration]) 3550602e473dSmrg_LT_DECL([global_symbol_to_c_name_address], 3551602e473dSmrg [lt_cv_sys_global_symbol_to_c_name_address], [1], 3552602e473dSmrg [Transform the output of nm in a C name address pair]) 3553602e473dSmrg_LT_DECL([global_symbol_to_c_name_address_lib_prefix], 3554602e473dSmrg [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], 3555602e473dSmrg [Transform the output of nm in a C name address pair when lib prefix is needed]) 3556602e473dSmrg]) # _LT_CMD_GLOBAL_SYMBOLS 3557602e473dSmrg 3558602e473dSmrg 3559602e473dSmrg# _LT_COMPILER_PIC([TAGNAME]) 3560602e473dSmrg# --------------------------- 3561602e473dSmrgm4_defun([_LT_COMPILER_PIC], 3562602e473dSmrg[m4_require([_LT_TAG_COMPILER])dnl 3563602e473dSmrg_LT_TAGVAR(lt_prog_compiler_wl, $1)= 3564602e473dSmrg_LT_TAGVAR(lt_prog_compiler_pic, $1)= 3565602e473dSmrg_LT_TAGVAR(lt_prog_compiler_static, $1)= 3566602e473dSmrg 3567602e473dSmrgAC_MSG_CHECKING([for $compiler option to produce PIC]) 3568602e473dSmrgm4_if([$1], [CXX], [ 3569602e473dSmrg # C++ specific cases for pic, static, wl, etc. 3570602e473dSmrg if test "$GXX" = yes; then 3571602e473dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 3572602e473dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 3573602e473dSmrg 3574602e473dSmrg case $host_os in 3575602e473dSmrg aix*) 3576602e473dSmrg # All AIX code is PIC. 3577602e473dSmrg if test "$host_cpu" = ia64; then 3578602e473dSmrg # AIX 5 now supports IA64 processor 3579602e473dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 3580602e473dSmrg fi 3581602e473dSmrg ;; 3582602e473dSmrg 3583602e473dSmrg amigaos*) 3584602e473dSmrg case $host_cpu in 3585602e473dSmrg powerpc) 3586602e473dSmrg # see comment about AmigaOS4 .so support 3587602e473dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 3588602e473dSmrg ;; 3589602e473dSmrg m68k) 3590602e473dSmrg # FIXME: we need at least 68020 code to build shared libraries, but 3591602e473dSmrg # adding the `-m68020' flag to GCC prevents building anything better, 3592602e473dSmrg # like `-m68040'. 3593602e473dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 3594602e473dSmrg ;; 3595602e473dSmrg esac 3596602e473dSmrg ;; 3597602e473dSmrg 3598602e473dSmrg beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 3599602e473dSmrg # PIC is the default for these OSes. 3600602e473dSmrg ;; 3601602e473dSmrg mingw* | cygwin* | os2* | pw32* | cegcc*) 3602602e473dSmrg # This hack is so that the source file can tell whether it is being 3603602e473dSmrg # built for inclusion in a dll (and should export symbols for example). 3604602e473dSmrg # Although the cygwin gcc ignores -fPIC, still need this for old-style 3605602e473dSmrg # (--disable-auto-import) libraries 3606602e473dSmrg m4_if([$1], [GCJ], [], 3607602e473dSmrg [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 3608602e473dSmrg ;; 3609602e473dSmrg darwin* | rhapsody*) 3610602e473dSmrg # PIC is the default on this platform 3611602e473dSmrg # Common symbols not allowed in MH_DYLIB files 3612602e473dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 3613602e473dSmrg ;; 3614602e473dSmrg *djgpp*) 3615602e473dSmrg # DJGPP does not support shared libraries at all 3616602e473dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)= 3617602e473dSmrg ;; 3618602e473dSmrg interix[[3-9]]*) 3619602e473dSmrg # Interix 3.x gcc -fpic/-fPIC options generate broken code. 3620602e473dSmrg # Instead, we relocate shared libraries at runtime. 3621602e473dSmrg ;; 3622602e473dSmrg sysv4*MP*) 3623602e473dSmrg if test -d /usr/nec; then 3624602e473dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 3625602e473dSmrg fi 3626602e473dSmrg ;; 3627602e473dSmrg hpux*) 3628602e473dSmrg # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 3629602e473dSmrg # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 3630602e473dSmrg # sets the default TLS model and affects inlining. 3631602e473dSmrg case $host_cpu in 3632602e473dSmrg hppa*64*) 3633602e473dSmrg ;; 3634602e473dSmrg *) 3635602e473dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 3636602e473dSmrg ;; 3637602e473dSmrg esac 3638602e473dSmrg ;; 3639602e473dSmrg *qnx* | *nto*) 3640602e473dSmrg # QNX uses GNU C++, but need to define -shared option too, otherwise 3641602e473dSmrg # it will coredump. 3642602e473dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 3643602e473dSmrg ;; 3644602e473dSmrg *) 3645602e473dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 3646602e473dSmrg ;; 3647602e473dSmrg esac 3648602e473dSmrg else 3649602e473dSmrg case $host_os in 3650602e473dSmrg aix[[4-9]]*) 3651602e473dSmrg # All AIX code is PIC. 3652602e473dSmrg if test "$host_cpu" = ia64; then 3653602e473dSmrg # AIX 5 now supports IA64 processor 3654602e473dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 3655602e473dSmrg else 3656602e473dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 3657602e473dSmrg fi 3658602e473dSmrg ;; 3659602e473dSmrg chorus*) 3660602e473dSmrg case $cc_basename in 3661602e473dSmrg cxch68*) 3662602e473dSmrg # Green Hills C++ Compiler 3663602e473dSmrg # _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" 3664602e473dSmrg ;; 3665602e473dSmrg esac 3666602e473dSmrg ;; 3667602e473dSmrg dgux*) 3668602e473dSmrg case $cc_basename in 3669602e473dSmrg ec++*) 3670602e473dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 3671602e473dSmrg ;; 3672602e473dSmrg ghcx*) 3673602e473dSmrg # Green Hills C++ Compiler 3674602e473dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 3675602e473dSmrg ;; 3676602e473dSmrg *) 3677602e473dSmrg ;; 3678602e473dSmrg esac 3679602e473dSmrg ;; 3680602e473dSmrg freebsd* | dragonfly*) 3681602e473dSmrg # FreeBSD uses GNU C++ 3682602e473dSmrg ;; 3683602e473dSmrg hpux9* | hpux10* | hpux11*) 3684602e473dSmrg case $cc_basename in 3685602e473dSmrg CC*) 3686602e473dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 3687602e473dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 3688602e473dSmrg if test "$host_cpu" != ia64; then 3689602e473dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 3690602e473dSmrg fi 3691602e473dSmrg ;; 3692602e473dSmrg aCC*) 3693602e473dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 3694602e473dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 3695602e473dSmrg case $host_cpu in 3696602e473dSmrg hppa*64*|ia64*) 3697602e473dSmrg # +Z the default 3698602e473dSmrg ;; 3699602e473dSmrg *) 3700602e473dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 3701602e473dSmrg ;; 3702602e473dSmrg esac 3703602e473dSmrg ;; 3704602e473dSmrg *) 3705602e473dSmrg ;; 3706602e473dSmrg esac 3707602e473dSmrg ;; 3708602e473dSmrg interix*) 3709602e473dSmrg # This is c89, which is MS Visual C++ (no shared libs) 3710602e473dSmrg # Anyone wants to do a port? 3711602e473dSmrg ;; 3712602e473dSmrg irix5* | irix6* | nonstopux*) 3713602e473dSmrg case $cc_basename in 3714602e473dSmrg CC*) 3715602e473dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 3716602e473dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 3717602e473dSmrg # CC pic flag -KPIC is the default. 3718602e473dSmrg ;; 3719602e473dSmrg *) 3720602e473dSmrg ;; 3721602e473dSmrg esac 3722602e473dSmrg ;; 3723602e473dSmrg linux* | k*bsd*-gnu | kopensolaris*-gnu) 3724602e473dSmrg case $cc_basename in 3725602e473dSmrg KCC*) 3726602e473dSmrg # KAI C++ Compiler 3727602e473dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 3728602e473dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 3729602e473dSmrg ;; 3730602e473dSmrg ecpc* ) 3731602e473dSmrg # old Intel C++ for x86_64 which still supported -KPIC. 3732602e473dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 3733602e473dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 3734602e473dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 3735602e473dSmrg ;; 3736602e473dSmrg icpc* ) 3737602e473dSmrg # Intel C++, used to be incompatible with GCC. 3738602e473dSmrg # ICC 10 doesn't accept -KPIC any more. 3739602e473dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 3740602e473dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 3741602e473dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 3742602e473dSmrg ;; 3743602e473dSmrg pgCC* | pgcpp*) 3744602e473dSmrg # Portland Group C++ compiler 3745602e473dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 3746602e473dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 3747602e473dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 3748602e473dSmrg ;; 3749602e473dSmrg cxx*) 3750602e473dSmrg # Compaq C++ 3751602e473dSmrg # Make sure the PIC flag is empty. It appears that all Alpha 3752602e473dSmrg # Linux and Compaq Tru64 Unix objects are PIC. 3753602e473dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)= 3754602e473dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 3755602e473dSmrg ;; 3756602e473dSmrg xlc* | xlC*) 3757602e473dSmrg # IBM XL 8.0 on PPC 3758602e473dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 3759602e473dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' 3760602e473dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' 3761602e473dSmrg ;; 3762602e473dSmrg *) 3763602e473dSmrg case `$CC -V 2>&1 | sed 5q` in 3764602e473dSmrg *Sun\ C*) 3765602e473dSmrg # Sun C++ 5.9 3766602e473dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 3767602e473dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 3768602e473dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 3769602e473dSmrg ;; 3770602e473dSmrg esac 3771602e473dSmrg ;; 3772602e473dSmrg esac 3773602e473dSmrg ;; 3774602e473dSmrg lynxos*) 3775602e473dSmrg ;; 3776602e473dSmrg m88k*) 3777602e473dSmrg ;; 3778602e473dSmrg mvs*) 3779602e473dSmrg case $cc_basename in 3780602e473dSmrg cxx*) 3781602e473dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' 3782602e473dSmrg ;; 3783602e473dSmrg *) 3784602e473dSmrg ;; 3785602e473dSmrg esac 3786602e473dSmrg ;; 3787602e473dSmrg netbsd* | netbsdelf*-gnu) 3788602e473dSmrg ;; 3789602e473dSmrg *qnx* | *nto*) 3790602e473dSmrg # QNX uses GNU C++, but need to define -shared option too, otherwise 3791602e473dSmrg # it will coredump. 3792602e473dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 3793602e473dSmrg ;; 3794602e473dSmrg osf3* | osf4* | osf5*) 3795602e473dSmrg case $cc_basename in 3796602e473dSmrg KCC*) 3797602e473dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 3798602e473dSmrg ;; 3799602e473dSmrg RCC*) 3800602e473dSmrg # Rational C++ 2.4.1 3801602e473dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 3802602e473dSmrg ;; 3803602e473dSmrg cxx*) 3804602e473dSmrg # Digital/Compaq C++ 3805602e473dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 3806602e473dSmrg # Make sure the PIC flag is empty. It appears that all Alpha 3807602e473dSmrg # Linux and Compaq Tru64 Unix objects are PIC. 3808602e473dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)= 3809602e473dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 3810602e473dSmrg ;; 3811602e473dSmrg *) 3812602e473dSmrg ;; 3813602e473dSmrg esac 3814602e473dSmrg ;; 3815602e473dSmrg psos*) 3816602e473dSmrg ;; 3817602e473dSmrg solaris*) 3818602e473dSmrg case $cc_basename in 3819602e473dSmrg CC*) 3820602e473dSmrg # Sun C++ 4.2, 5.x and Centerline C++ 3821602e473dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 3822602e473dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 3823602e473dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 3824602e473dSmrg ;; 3825602e473dSmrg gcx*) 3826602e473dSmrg # Green Hills C++ Compiler 3827602e473dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 3828602e473dSmrg ;; 3829602e473dSmrg *) 3830602e473dSmrg ;; 3831602e473dSmrg esac 3832602e473dSmrg ;; 3833602e473dSmrg sunos4*) 3834602e473dSmrg case $cc_basename in 3835602e473dSmrg CC*) 3836602e473dSmrg # Sun C++ 4.x 3837602e473dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 3838602e473dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 3839602e473dSmrg ;; 3840602e473dSmrg lcc*) 3841602e473dSmrg # Lucid 3842602e473dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 3843602e473dSmrg ;; 3844602e473dSmrg *) 3845602e473dSmrg ;; 3846602e473dSmrg esac 3847602e473dSmrg ;; 3848602e473dSmrg sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 3849602e473dSmrg case $cc_basename in 3850602e473dSmrg CC*) 3851602e473dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 3852602e473dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 3853602e473dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 3854602e473dSmrg ;; 3855602e473dSmrg esac 3856602e473dSmrg ;; 3857602e473dSmrg tandem*) 3858602e473dSmrg case $cc_basename in 3859602e473dSmrg NCC*) 3860602e473dSmrg # NonStop-UX NCC 3.20 3861602e473dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 3862602e473dSmrg ;; 3863602e473dSmrg *) 3864602e473dSmrg ;; 3865602e473dSmrg esac 3866602e473dSmrg ;; 3867602e473dSmrg vxworks*) 3868602e473dSmrg ;; 3869602e473dSmrg *) 3870602e473dSmrg _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 3871602e473dSmrg ;; 3872602e473dSmrg esac 3873602e473dSmrg fi 3874602e473dSmrg], 3875602e473dSmrg[ 3876602e473dSmrg if test "$GCC" = yes; then 3877602e473dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 3878602e473dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 3879602e473dSmrg 3880602e473dSmrg case $host_os in 3881602e473dSmrg aix*) 3882602e473dSmrg # All AIX code is PIC. 3883602e473dSmrg if test "$host_cpu" = ia64; then 3884602e473dSmrg # AIX 5 now supports IA64 processor 3885602e473dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 3886602e473dSmrg fi 3887602e473dSmrg ;; 3888602e473dSmrg 3889602e473dSmrg amigaos*) 3890602e473dSmrg case $host_cpu in 3891602e473dSmrg powerpc) 3892602e473dSmrg # see comment about AmigaOS4 .so support 3893602e473dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 3894602e473dSmrg ;; 3895602e473dSmrg m68k) 3896602e473dSmrg # FIXME: we need at least 68020 code to build shared libraries, but 3897602e473dSmrg # adding the `-m68020' flag to GCC prevents building anything better, 3898602e473dSmrg # like `-m68040'. 3899602e473dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 3900602e473dSmrg ;; 3901602e473dSmrg esac 3902602e473dSmrg ;; 3903602e473dSmrg 3904602e473dSmrg beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 3905602e473dSmrg # PIC is the default for these OSes. 3906602e473dSmrg ;; 3907602e473dSmrg 3908602e473dSmrg mingw* | cygwin* | pw32* | os2* | cegcc*) 3909602e473dSmrg # This hack is so that the source file can tell whether it is being 3910602e473dSmrg # built for inclusion in a dll (and should export symbols for example). 3911602e473dSmrg # Although the cygwin gcc ignores -fPIC, still need this for old-style 3912602e473dSmrg # (--disable-auto-import) libraries 3913602e473dSmrg m4_if([$1], [GCJ], [], 3914602e473dSmrg [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 3915602e473dSmrg ;; 3916602e473dSmrg 3917602e473dSmrg darwin* | rhapsody*) 3918602e473dSmrg # PIC is the default on this platform 3919602e473dSmrg # Common symbols not allowed in MH_DYLIB files 3920602e473dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 3921602e473dSmrg ;; 3922602e473dSmrg 3923602e473dSmrg hpux*) 3924602e473dSmrg # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 3925602e473dSmrg # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 3926602e473dSmrg # sets the default TLS model and affects inlining. 3927602e473dSmrg case $host_cpu in 3928602e473dSmrg hppa*64*) 3929602e473dSmrg # +Z the default 3930602e473dSmrg ;; 3931602e473dSmrg *) 3932602e473dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 3933602e473dSmrg ;; 3934602e473dSmrg esac 3935602e473dSmrg ;; 3936602e473dSmrg 3937602e473dSmrg interix[[3-9]]*) 3938602e473dSmrg # Interix 3.x gcc -fpic/-fPIC options generate broken code. 3939602e473dSmrg # Instead, we relocate shared libraries at runtime. 3940602e473dSmrg ;; 3941602e473dSmrg 3942602e473dSmrg msdosdjgpp*) 3943602e473dSmrg # Just because we use GCC doesn't mean we suddenly get shared libraries 3944602e473dSmrg # on systems that don't support them. 3945602e473dSmrg _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 3946602e473dSmrg enable_shared=no 3947602e473dSmrg ;; 3948602e473dSmrg 3949602e473dSmrg *nto* | *qnx*) 3950602e473dSmrg # QNX uses GNU C++, but need to define -shared option too, otherwise 3951602e473dSmrg # it will coredump. 3952602e473dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 3953602e473dSmrg ;; 3954602e473dSmrg 3955602e473dSmrg sysv4*MP*) 3956602e473dSmrg if test -d /usr/nec; then 3957602e473dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 3958602e473dSmrg fi 3959602e473dSmrg ;; 3960602e473dSmrg 3961602e473dSmrg *) 3962602e473dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 3963602e473dSmrg ;; 3964602e473dSmrg esac 3965602e473dSmrg else 3966602e473dSmrg # PORTME Check for flag to pass linker flags through the system compiler. 3967602e473dSmrg case $host_os in 3968602e473dSmrg aix*) 3969602e473dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 3970602e473dSmrg if test "$host_cpu" = ia64; then 3971602e473dSmrg # AIX 5 now supports IA64 processor 3972602e473dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 3973602e473dSmrg else 3974602e473dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 3975602e473dSmrg fi 3976602e473dSmrg ;; 3977602e473dSmrg 3978602e473dSmrg mingw* | cygwin* | pw32* | os2* | cegcc*) 3979602e473dSmrg # This hack is so that the source file can tell whether it is being 3980602e473dSmrg # built for inclusion in a dll (and should export symbols for example). 3981602e473dSmrg m4_if([$1], [GCJ], [], 3982602e473dSmrg [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 3983602e473dSmrg ;; 3984602e473dSmrg 3985602e473dSmrg hpux9* | hpux10* | hpux11*) 3986602e473dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 3987602e473dSmrg # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 3988602e473dSmrg # not for PA HP-UX. 3989602e473dSmrg case $host_cpu in 3990602e473dSmrg hppa*64*|ia64*) 3991602e473dSmrg # +Z the default 3992602e473dSmrg ;; 3993602e473dSmrg *) 3994602e473dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 3995602e473dSmrg ;; 3996602e473dSmrg esac 3997602e473dSmrg # Is there a better lt_prog_compiler_static that works with the bundled CC? 3998602e473dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 3999602e473dSmrg ;; 4000602e473dSmrg 4001602e473dSmrg irix5* | irix6* | nonstopux*) 4002602e473dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4003602e473dSmrg # PIC (with -KPIC) is the default. 4004602e473dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4005602e473dSmrg ;; 4006602e473dSmrg 4007602e473dSmrg linux* | k*bsd*-gnu | kopensolaris*-gnu) 4008602e473dSmrg case $cc_basename in 4009602e473dSmrg # old Intel for x86_64 which still supported -KPIC. 4010602e473dSmrg ecc*) 4011602e473dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4012602e473dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4013602e473dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 4014602e473dSmrg ;; 4015602e473dSmrg # icc used to be incompatible with GCC. 4016602e473dSmrg # ICC 10 doesn't accept -KPIC any more. 4017602e473dSmrg icc* | ifort*) 4018602e473dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4019602e473dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4020602e473dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 4021602e473dSmrg ;; 4022602e473dSmrg # Lahey Fortran 8.1. 4023602e473dSmrg lf95*) 4024602e473dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4025602e473dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' 4026602e473dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' 4027602e473dSmrg ;; 4028602e473dSmrg pgcc* | pgf77* | pgf90* | pgf95*) 4029602e473dSmrg # Portland Group compilers (*not* the Pentium gcc compiler, 4030602e473dSmrg # which looks to be a dead project) 4031602e473dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4032602e473dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 4033602e473dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4034602e473dSmrg ;; 4035602e473dSmrg ccc*) 4036602e473dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4037602e473dSmrg # All Alpha code is PIC. 4038602e473dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4039602e473dSmrg ;; 4040602e473dSmrg xl*) 4041602e473dSmrg # IBM XL C 8.0/Fortran 10.1 on PPC 4042602e473dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4043602e473dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' 4044602e473dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' 4045602e473dSmrg ;; 4046602e473dSmrg *) 4047602e473dSmrg case `$CC -V 2>&1 | sed 5q` in 4048602e473dSmrg *Sun\ C*) 4049602e473dSmrg # Sun C 5.9 4050602e473dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4051602e473dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4052602e473dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4053602e473dSmrg ;; 4054602e473dSmrg *Sun\ F*) 4055602e473dSmrg # Sun Fortran 8.3 passes all unrecognized flags to the linker 4056602e473dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4057602e473dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4058602e473dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='' 4059602e473dSmrg ;; 4060602e473dSmrg esac 4061602e473dSmrg ;; 4062602e473dSmrg esac 4063602e473dSmrg ;; 4064602e473dSmrg 4065602e473dSmrg newsos6) 4066602e473dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4067602e473dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4068602e473dSmrg ;; 4069602e473dSmrg 4070602e473dSmrg *nto* | *qnx*) 4071602e473dSmrg # QNX uses GNU C++, but need to define -shared option too, otherwise 4072602e473dSmrg # it will coredump. 4073602e473dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 4074602e473dSmrg ;; 4075602e473dSmrg 4076602e473dSmrg osf3* | osf4* | osf5*) 4077602e473dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4078602e473dSmrg # All OSF/1 code is PIC. 4079602e473dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4080602e473dSmrg ;; 4081602e473dSmrg 4082602e473dSmrg rdos*) 4083602e473dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4084602e473dSmrg ;; 4085602e473dSmrg 4086602e473dSmrg solaris*) 4087602e473dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4088602e473dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4089602e473dSmrg case $cc_basename in 4090602e473dSmrg f77* | f90* | f95*) 4091602e473dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; 4092602e473dSmrg *) 4093602e473dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; 4094602e473dSmrg esac 4095602e473dSmrg ;; 4096602e473dSmrg 4097602e473dSmrg sunos4*) 4098602e473dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 4099602e473dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 4100602e473dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4101602e473dSmrg ;; 4102602e473dSmrg 4103602e473dSmrg sysv4 | sysv4.2uw2* | sysv4.3*) 4104602e473dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4105602e473dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4106602e473dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4107602e473dSmrg ;; 4108602e473dSmrg 4109602e473dSmrg sysv4*MP*) 4110602e473dSmrg if test -d /usr/nec ;then 4111602e473dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' 4112602e473dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4113602e473dSmrg fi 4114602e473dSmrg ;; 4115602e473dSmrg 4116602e473dSmrg sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 4117602e473dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4118602e473dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4119602e473dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4120602e473dSmrg ;; 4121602e473dSmrg 4122602e473dSmrg unicos*) 4123602e473dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4124602e473dSmrg _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 4125602e473dSmrg ;; 4126602e473dSmrg 4127602e473dSmrg uts4*) 4128602e473dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 4129602e473dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4130602e473dSmrg ;; 4131602e473dSmrg 4132602e473dSmrg *) 4133602e473dSmrg _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 4134602e473dSmrg ;; 4135602e473dSmrg esac 4136602e473dSmrg fi 4137602e473dSmrg]) 4138602e473dSmrgcase $host_os in 4139602e473dSmrg # For platforms which do not support PIC, -DPIC is meaningless: 4140602e473dSmrg *djgpp*) 4141602e473dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)= 4142602e473dSmrg ;; 4143602e473dSmrg *) 4144602e473dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" 4145602e473dSmrg ;; 4146602e473dSmrgesac 4147602e473dSmrgAC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) 4148602e473dSmrg_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], 4149602e473dSmrg [How to pass a linker flag through the compiler]) 4150602e473dSmrg 4151602e473dSmrg# 4152602e473dSmrg# Check to make sure the PIC flag actually works. 4153602e473dSmrg# 4154602e473dSmrgif test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then 4155602e473dSmrg _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], 4156602e473dSmrg [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], 4157602e473dSmrg [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], 4158602e473dSmrg [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in 4159602e473dSmrg "" | " "*) ;; 4160602e473dSmrg *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; 4161602e473dSmrg esac], 4162602e473dSmrg [_LT_TAGVAR(lt_prog_compiler_pic, $1)= 4163602e473dSmrg _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) 4164602e473dSmrgfi 4165602e473dSmrg_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], 4166602e473dSmrg [Additional compiler flags for building library objects]) 4167602e473dSmrg 4168602e473dSmrg# 4169602e473dSmrg# Check to make sure the static flag actually works. 4170602e473dSmrg# 4171602e473dSmrgwl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" 4172602e473dSmrg_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], 4173602e473dSmrg _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), 4174602e473dSmrg $lt_tmp_static_flag, 4175602e473dSmrg [], 4176602e473dSmrg [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) 4177602e473dSmrg_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], 4178602e473dSmrg [Compiler flag to prevent dynamic linking]) 4179602e473dSmrg])# _LT_COMPILER_PIC 4180602e473dSmrg 4181602e473dSmrg 4182602e473dSmrg# _LT_LINKER_SHLIBS([TAGNAME]) 4183602e473dSmrg# ---------------------------- 4184602e473dSmrg# See if the linker supports building shared libraries. 4185602e473dSmrgm4_defun([_LT_LINKER_SHLIBS], 4186602e473dSmrg[AC_REQUIRE([LT_PATH_LD])dnl 4187602e473dSmrgAC_REQUIRE([LT_PATH_NM])dnl 4188602e473dSmrgm4_require([_LT_FILEUTILS_DEFAULTS])dnl 4189602e473dSmrgm4_require([_LT_DECL_EGREP])dnl 4190602e473dSmrgm4_require([_LT_DECL_SED])dnl 4191602e473dSmrgm4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl 4192602e473dSmrgm4_require([_LT_TAG_COMPILER])dnl 4193602e473dSmrgAC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 4194602e473dSmrgm4_if([$1], [CXX], [ 4195602e473dSmrg _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 4196602e473dSmrg case $host_os in 4197602e473dSmrg aix[[4-9]]*) 4198602e473dSmrg # If we're using GNU nm, then we don't want the "-C" option. 4199602e473dSmrg # -C means demangle to AIX nm, but means don't demangle with GNU nm 4200602e473dSmrg if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 4201602e473dSmrg _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 4202602e473dSmrg else 4203602e473dSmrg _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 4204602e473dSmrg fi 4205602e473dSmrg ;; 4206602e473dSmrg pw32*) 4207602e473dSmrg _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" 4208602e473dSmrg ;; 4209602e473dSmrg cygwin* | mingw* | cegcc*) 4210602e473dSmrg _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' 4211602e473dSmrg ;; 4212602e473dSmrg linux* | k*bsd*-gnu) 4213602e473dSmrg _LT_TAGVAR(link_all_deplibs, $1)=no 4214602e473dSmrg ;; 4215602e473dSmrg *) 4216602e473dSmrg _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 4217602e473dSmrg ;; 4218602e473dSmrg esac 4219602e473dSmrg _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 4220602e473dSmrg], [ 4221602e473dSmrg runpath_var= 4222602e473dSmrg _LT_TAGVAR(allow_undefined_flag, $1)= 4223602e473dSmrg _LT_TAGVAR(always_export_symbols, $1)=no 4224602e473dSmrg _LT_TAGVAR(archive_cmds, $1)= 4225602e473dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)= 4226602e473dSmrg _LT_TAGVAR(compiler_needs_object, $1)=no 4227602e473dSmrg _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 4228602e473dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)= 4229602e473dSmrg _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 4230602e473dSmrg _LT_TAGVAR(hardcode_automatic, $1)=no 4231602e473dSmrg _LT_TAGVAR(hardcode_direct, $1)=no 4232602e473dSmrg _LT_TAGVAR(hardcode_direct_absolute, $1)=no 4233602e473dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 4234602e473dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 4235602e473dSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)= 4236602e473dSmrg _LT_TAGVAR(hardcode_minus_L, $1)=no 4237602e473dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 4238602e473dSmrg _LT_TAGVAR(inherit_rpath, $1)=no 4239602e473dSmrg _LT_TAGVAR(link_all_deplibs, $1)=unknown 4240602e473dSmrg _LT_TAGVAR(module_cmds, $1)= 4241602e473dSmrg _LT_TAGVAR(module_expsym_cmds, $1)= 4242602e473dSmrg _LT_TAGVAR(old_archive_from_new_cmds, $1)= 4243602e473dSmrg _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= 4244602e473dSmrg _LT_TAGVAR(thread_safe_flag_spec, $1)= 4245602e473dSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)= 4246602e473dSmrg # include_expsyms should be a list of space-separated symbols to be *always* 4247602e473dSmrg # included in the symbol list 4248602e473dSmrg _LT_TAGVAR(include_expsyms, $1)= 4249602e473dSmrg # exclude_expsyms can be an extended regexp of symbols to exclude 4250602e473dSmrg # it will be wrapped by ` (' and `)$', so one must not match beginning or 4251602e473dSmrg # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 4252602e473dSmrg # as well as any symbol that contains `d'. 4253602e473dSmrg _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 4254602e473dSmrg # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 4255602e473dSmrg # platforms (ab)use it in PIC code, but their linkers get confused if 4256602e473dSmrg # the symbol is explicitly referenced. Since portable code cannot 4257602e473dSmrg # rely on this symbol name, it's probably fine to never include it in 4258602e473dSmrg # preloaded symbol tables. 4259602e473dSmrg # Exclude shared library initialization/finalization symbols. 4260602e473dSmrgdnl Note also adjust exclude_expsyms for C++ above. 4261602e473dSmrg extract_expsyms_cmds= 4262602e473dSmrg 4263602e473dSmrg case $host_os in 4264602e473dSmrg cygwin* | mingw* | pw32* | cegcc*) 4265602e473dSmrg # FIXME: the MSVC++ port hasn't been tested in a loooong time 4266602e473dSmrg # When not using gcc, we currently assume that we are using 4267602e473dSmrg # Microsoft Visual C++. 4268602e473dSmrg if test "$GCC" != yes; then 4269602e473dSmrg with_gnu_ld=no 4270602e473dSmrg fi 4271602e473dSmrg ;; 4272602e473dSmrg interix*) 4273602e473dSmrg # we just hope/assume this is gcc and not c89 (= MSVC++) 4274602e473dSmrg with_gnu_ld=yes 4275602e473dSmrg ;; 4276602e473dSmrg openbsd*) 4277602e473dSmrg with_gnu_ld=no 4278602e473dSmrg ;; 4279602e473dSmrg linux* | k*bsd*-gnu) 4280602e473dSmrg _LT_TAGVAR(link_all_deplibs, $1)=no 4281602e473dSmrg ;; 4282602e473dSmrg esac 4283602e473dSmrg 4284602e473dSmrg _LT_TAGVAR(ld_shlibs, $1)=yes 4285602e473dSmrg if test "$with_gnu_ld" = yes; then 4286602e473dSmrg # If archive_cmds runs LD, not CC, wlarc should be empty 4287602e473dSmrg wlarc='${wl}' 4288602e473dSmrg 4289602e473dSmrg # Set some defaults for GNU ld with shared library support. These 4290602e473dSmrg # are reset later if shared libraries are not supported. Putting them 4291602e473dSmrg # here allows them to be overridden if necessary. 4292602e473dSmrg runpath_var=LD_RUN_PATH 4293602e473dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 4294602e473dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 4295602e473dSmrg # ancient GNU ld didn't support --whole-archive et. al. 4296602e473dSmrg if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 4297602e473dSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 4298602e473dSmrg else 4299602e473dSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)= 4300602e473dSmrg fi 4301602e473dSmrg supports_anon_versioning=no 4302602e473dSmrg case `$LD -v 2>&1` in 4303602e473dSmrg *GNU\ gold*) supports_anon_versioning=yes ;; 4304602e473dSmrg *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 4305602e473dSmrg *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 4306602e473dSmrg *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 4307602e473dSmrg *\ 2.11.*) ;; # other 2.11 versions 4308602e473dSmrg *) supports_anon_versioning=yes ;; 4309602e473dSmrg esac 4310602e473dSmrg 4311602e473dSmrg # See if GNU ld supports shared libraries. 4312602e473dSmrg case $host_os in 4313602e473dSmrg aix[[3-9]]*) 4314602e473dSmrg # On AIX/PPC, the GNU linker is very broken 4315602e473dSmrg if test "$host_cpu" != ia64; then 4316602e473dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 4317602e473dSmrg cat <<_LT_EOF 1>&2 4318602e473dSmrg 4319602e473dSmrg*** Warning: the GNU linker, at least up to release 2.9.1, is reported 4320602e473dSmrg*** to be unable to reliably create shared libraries on AIX. 4321602e473dSmrg*** Therefore, libtool is disabling shared libraries support. If you 4322602e473dSmrg*** really care for shared libraries, you may want to modify your PATH 4323602e473dSmrg*** so that a non-GNU linker is found, and then restart. 4324602e473dSmrg 4325602e473dSmrg_LT_EOF 4326602e473dSmrg fi 4327602e473dSmrg ;; 4328602e473dSmrg 4329602e473dSmrg amigaos*) 4330602e473dSmrg case $host_cpu in 4331602e473dSmrg powerpc) 4332602e473dSmrg # see comment about AmigaOS4 .so support 4333602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 4334602e473dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='' 4335602e473dSmrg ;; 4336602e473dSmrg m68k) 4337602e473dSmrg _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)' 4338602e473dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 4339602e473dSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 4340602e473dSmrg ;; 4341602e473dSmrg esac 4342602e473dSmrg ;; 4343602e473dSmrg 4344602e473dSmrg beos*) 4345602e473dSmrg if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 4346602e473dSmrg _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 4347602e473dSmrg # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 4348602e473dSmrg # support --undefined. This deserves some investigation. FIXME 4349602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 4350602e473dSmrg else 4351602e473dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 4352602e473dSmrg fi 4353602e473dSmrg ;; 4354602e473dSmrg 4355602e473dSmrg cygwin* | mingw* | pw32* | cegcc*) 4356602e473dSmrg # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 4357602e473dSmrg # as there is no search path for DLLs. 4358602e473dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 4359602e473dSmrg _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 4360602e473dSmrg _LT_TAGVAR(always_export_symbols, $1)=no 4361602e473dSmrg _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 4362602e473dSmrg _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' 4363602e473dSmrg 4364602e473dSmrg if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 4365602e473dSmrg _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' 4366602e473dSmrg # If the export-symbols file already is a .def file (1st line 4367602e473dSmrg # is EXPORTS), use it as is; otherwise, prepend... 4368602e473dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 4369602e473dSmrg cp $export_symbols $output_objdir/$soname.def; 4370602e473dSmrg else 4371602e473dSmrg echo EXPORTS > $output_objdir/$soname.def; 4372602e473dSmrg cat $export_symbols >> $output_objdir/$soname.def; 4373602e473dSmrg fi~ 4374602e473dSmrg $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 4375602e473dSmrg else 4376602e473dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 4377602e473dSmrg fi 4378602e473dSmrg ;; 4379602e473dSmrg 4380602e473dSmrg interix[[3-9]]*) 4381602e473dSmrg _LT_TAGVAR(hardcode_direct, $1)=no 4382602e473dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 4383602e473dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 4384602e473dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 4385602e473dSmrg # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 4386602e473dSmrg # Instead, shared libraries are loaded at an image base (0x10000000 by 4387602e473dSmrg # default) and relocated if they conflict, which is a slow very memory 4388602e473dSmrg # consuming and fragmenting process. To avoid this, we pick a random, 4389602e473dSmrg # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 4390602e473dSmrg # time. Moving up from 0x10000000 also allows more sbrk(2) space. 4391602e473dSmrg _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' 4392602e473dSmrg _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' 4393602e473dSmrg ;; 4394602e473dSmrg 4395602e473dSmrg gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 4396602e473dSmrg tmp_diet=no 4397602e473dSmrg if test "$host_os" = linux-dietlibc; then 4398602e473dSmrg case $cc_basename in 4399602e473dSmrg diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 4400602e473dSmrg esac 4401602e473dSmrg fi 4402602e473dSmrg if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 4403602e473dSmrg && test "$tmp_diet" = no 4404602e473dSmrg then 4405602e473dSmrg tmp_addflag= 4406602e473dSmrg tmp_sharedflag='-shared' 4407602e473dSmrg case $cc_basename,$host_cpu in 4408602e473dSmrg pgcc*) # Portland Group C compiler 4409602e473dSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 4410602e473dSmrg tmp_addflag=' $pic_flag' 4411602e473dSmrg ;; 4412602e473dSmrg pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 4413602e473dSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 4414602e473dSmrg tmp_addflag=' $pic_flag -Mnomain' ;; 4415602e473dSmrg ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 4416602e473dSmrg tmp_addflag=' -i_dynamic' ;; 4417602e473dSmrg efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 4418602e473dSmrg tmp_addflag=' -i_dynamic -nofor_main' ;; 4419602e473dSmrg ifc* | ifort*) # Intel Fortran compiler 4420602e473dSmrg tmp_addflag=' -nofor_main' ;; 4421602e473dSmrg lf95*) # Lahey Fortran 8.1 4422602e473dSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)= 4423602e473dSmrg tmp_sharedflag='--shared' ;; 4424602e473dSmrg xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) 4425602e473dSmrg tmp_sharedflag='-qmkshrobj' 4426602e473dSmrg tmp_addflag= ;; 4427602e473dSmrg esac 4428602e473dSmrg case `$CC -V 2>&1 | sed 5q` in 4429602e473dSmrg *Sun\ C*) # Sun C 5.9 4430602e473dSmrg _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; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 4431602e473dSmrg _LT_TAGVAR(compiler_needs_object, $1)=yes 4432602e473dSmrg tmp_sharedflag='-G' ;; 4433602e473dSmrg *Sun\ F*) # Sun Fortran 8.3 4434602e473dSmrg tmp_sharedflag='-G' ;; 4435602e473dSmrg esac 4436602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 4437602e473dSmrg 4438602e473dSmrg if test "x$supports_anon_versioning" = xyes; then 4439602e473dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 4440602e473dSmrg cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 4441602e473dSmrg echo "local: *; };" >> $output_objdir/$libname.ver~ 4442602e473dSmrg $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 4443602e473dSmrg fi 4444602e473dSmrg 4445602e473dSmrg case $cc_basename in 4446602e473dSmrg xlf*) 4447602e473dSmrg # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 4448602e473dSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' 4449602e473dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 4450602e473dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' 4451602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 4452602e473dSmrg if test "x$supports_anon_versioning" = xyes; then 4453602e473dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 4454602e473dSmrg cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 4455602e473dSmrg echo "local: *; };" >> $output_objdir/$libname.ver~ 4456602e473dSmrg $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 4457602e473dSmrg fi 4458602e473dSmrg ;; 4459602e473dSmrg esac 4460602e473dSmrg else 4461602e473dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 4462602e473dSmrg fi 4463602e473dSmrg ;; 4464602e473dSmrg 4465602e473dSmrg netbsd* | netbsdelf*-gnu) 4466602e473dSmrg if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 4467602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 4468602e473dSmrg wlarc= 4469602e473dSmrg else 4470602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 4471602e473dSmrg _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' 4472602e473dSmrg fi 4473602e473dSmrg ;; 4474602e473dSmrg 4475602e473dSmrg solaris*) 4476602e473dSmrg if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 4477602e473dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 4478602e473dSmrg cat <<_LT_EOF 1>&2 4479602e473dSmrg 4480602e473dSmrg*** Warning: The releases 2.8.* of the GNU linker cannot reliably 4481602e473dSmrg*** create shared libraries on Solaris systems. Therefore, libtool 4482602e473dSmrg*** is disabling shared libraries support. We urge you to upgrade GNU 4483602e473dSmrg*** binutils to release 2.9.1 or newer. Another option is to modify 4484602e473dSmrg*** your PATH or compiler configuration so that the native linker is 4485602e473dSmrg*** used, and then restart. 4486602e473dSmrg 4487602e473dSmrg_LT_EOF 4488602e473dSmrg elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 4489602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 4490602e473dSmrg _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' 4491602e473dSmrg else 4492602e473dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 4493602e473dSmrg fi 4494602e473dSmrg ;; 4495602e473dSmrg 4496602e473dSmrg sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 4497602e473dSmrg case `$LD -v 2>&1` in 4498602e473dSmrg *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 4499602e473dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 4500602e473dSmrg cat <<_LT_EOF 1>&2 4501602e473dSmrg 4502602e473dSmrg*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 4503602e473dSmrg*** reliably create shared libraries on SCO systems. Therefore, libtool 4504602e473dSmrg*** is disabling shared libraries support. We urge you to upgrade GNU 4505602e473dSmrg*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 4506602e473dSmrg*** your PATH or compiler configuration so that the native linker is 4507602e473dSmrg*** used, and then restart. 4508602e473dSmrg 4509602e473dSmrg_LT_EOF 4510602e473dSmrg ;; 4511602e473dSmrg *) 4512602e473dSmrg # For security reasons, it is highly recommended that you always 4513602e473dSmrg # use absolute paths for naming shared libraries, and exclude the 4514602e473dSmrg # DT_RUNPATH tag from executables and libraries. But doing so 4515602e473dSmrg # requires that you compile everything twice, which is a pain. 4516602e473dSmrg if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 4517602e473dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 4518602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 4519602e473dSmrg _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' 4520602e473dSmrg else 4521602e473dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 4522602e473dSmrg fi 4523602e473dSmrg ;; 4524602e473dSmrg esac 4525602e473dSmrg ;; 4526602e473dSmrg 4527602e473dSmrg sunos4*) 4528602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 4529602e473dSmrg wlarc= 4530602e473dSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 4531602e473dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 4532602e473dSmrg ;; 4533602e473dSmrg 4534602e473dSmrg *) 4535602e473dSmrg if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 4536602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 4537602e473dSmrg _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' 4538602e473dSmrg else 4539602e473dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 4540602e473dSmrg fi 4541602e473dSmrg ;; 4542602e473dSmrg esac 4543602e473dSmrg 4544602e473dSmrg if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then 4545602e473dSmrg runpath_var= 4546602e473dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 4547602e473dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)= 4548602e473dSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)= 4549602e473dSmrg fi 4550602e473dSmrg else 4551602e473dSmrg # PORTME fill in a description of your system's linker (not GNU ld) 4552602e473dSmrg case $host_os in 4553602e473dSmrg aix3*) 4554602e473dSmrg _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 4555602e473dSmrg _LT_TAGVAR(always_export_symbols, $1)=yes 4556602e473dSmrg _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' 4557602e473dSmrg # Note: this linker hardcodes the directories in LIBPATH if there 4558602e473dSmrg # are no directories specified by -L. 4559602e473dSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 4560602e473dSmrg if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 4561602e473dSmrg # Neither direct hardcoding nor static linking is supported with a 4562602e473dSmrg # broken collect2. 4563602e473dSmrg _LT_TAGVAR(hardcode_direct, $1)=unsupported 4564602e473dSmrg fi 4565602e473dSmrg ;; 4566602e473dSmrg 4567602e473dSmrg aix[[4-9]]*) 4568602e473dSmrg if test "$host_cpu" = ia64; then 4569602e473dSmrg # On IA64, the linker does run time linking by default, so we don't 4570602e473dSmrg # have to do anything special. 4571602e473dSmrg aix_use_runtimelinking=no 4572602e473dSmrg exp_sym_flag='-Bexport' 4573602e473dSmrg no_entry_flag="" 4574602e473dSmrg else 4575602e473dSmrg # If we're using GNU nm, then we don't want the "-C" option. 4576602e473dSmrg # -C means demangle to AIX nm, but means don't demangle with GNU nm 4577602e473dSmrg if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 4578602e473dSmrg _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 4579602e473dSmrg else 4580602e473dSmrg _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 4581602e473dSmrg fi 4582602e473dSmrg aix_use_runtimelinking=no 4583602e473dSmrg 4584602e473dSmrg # Test if we are trying to use run time linking or normal 4585602e473dSmrg # AIX style linking. If -brtl is somewhere in LDFLAGS, we 4586602e473dSmrg # need to do runtime linking. 4587602e473dSmrg case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 4588602e473dSmrg for ld_flag in $LDFLAGS; do 4589602e473dSmrg if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 4590602e473dSmrg aix_use_runtimelinking=yes 4591602e473dSmrg break 4592602e473dSmrg fi 4593602e473dSmrg done 4594602e473dSmrg ;; 4595602e473dSmrg esac 4596602e473dSmrg 4597602e473dSmrg exp_sym_flag='-bexport' 4598602e473dSmrg no_entry_flag='-bnoentry' 4599602e473dSmrg fi 4600602e473dSmrg 4601602e473dSmrg # When large executables or shared objects are built, AIX ld can 4602602e473dSmrg # have problems creating the table of contents. If linking a library 4603602e473dSmrg # or program results in "error TOC overflow" add -mminimal-toc to 4604602e473dSmrg # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 4605602e473dSmrg # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 4606602e473dSmrg 4607602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='' 4608602e473dSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 4609602e473dSmrg _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 4610602e473dSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 4611602e473dSmrg _LT_TAGVAR(link_all_deplibs, $1)=yes 4612602e473dSmrg _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' 4613602e473dSmrg 4614602e473dSmrg if test "$GCC" = yes; then 4615602e473dSmrg case $host_os in aix4.[[012]]|aix4.[[012]].*) 4616602e473dSmrg # We only want to do this on AIX 4.2 and lower, the check 4617602e473dSmrg # below for broken collect2 doesn't work under 4.3+ 4618602e473dSmrg collect2name=`${CC} -print-prog-name=collect2` 4619602e473dSmrg if test -f "$collect2name" && 4620602e473dSmrg strings "$collect2name" | $GREP resolve_lib_name >/dev/null 4621602e473dSmrg then 4622602e473dSmrg # We have reworked collect2 4623602e473dSmrg : 4624602e473dSmrg else 4625602e473dSmrg # We have old collect2 4626602e473dSmrg _LT_TAGVAR(hardcode_direct, $1)=unsupported 4627602e473dSmrg # It fails to find uninstalled libraries when the uninstalled 4628602e473dSmrg # path is not listed in the libpath. Setting hardcode_minus_L 4629602e473dSmrg # to unsupported forces relinking 4630602e473dSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 4631602e473dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 4632602e473dSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)= 4633602e473dSmrg fi 4634602e473dSmrg ;; 4635602e473dSmrg esac 4636602e473dSmrg shared_flag='-shared' 4637602e473dSmrg if test "$aix_use_runtimelinking" = yes; then 4638602e473dSmrg shared_flag="$shared_flag "'${wl}-G' 4639602e473dSmrg fi 4640602e473dSmrg _LT_TAGVAR(link_all_deplibs, $1)=no 4641602e473dSmrg else 4642602e473dSmrg # not using gcc 4643602e473dSmrg if test "$host_cpu" = ia64; then 4644602e473dSmrg # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 4645602e473dSmrg # chokes on -Wl,-G. The following line is correct: 4646602e473dSmrg shared_flag='-G' 4647602e473dSmrg else 4648602e473dSmrg if test "$aix_use_runtimelinking" = yes; then 4649602e473dSmrg shared_flag='${wl}-G' 4650602e473dSmrg else 4651602e473dSmrg shared_flag='${wl}-bM:SRE' 4652602e473dSmrg fi 4653602e473dSmrg fi 4654602e473dSmrg fi 4655602e473dSmrg 4656602e473dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' 4657602e473dSmrg # It seems that -bexpall does not export symbols beginning with 4658602e473dSmrg # underscore (_), so it is better to generate a list of symbols to export. 4659602e473dSmrg _LT_TAGVAR(always_export_symbols, $1)=yes 4660602e473dSmrg if test "$aix_use_runtimelinking" = yes; then 4661602e473dSmrg # Warning - without using the other runtime loading flags (-brtl), 4662602e473dSmrg # -berok will link without error, but may produce a broken library. 4663602e473dSmrg _LT_TAGVAR(allow_undefined_flag, $1)='-berok' 4664602e473dSmrg # Determine the default libpath from the value encoded in an 4665602e473dSmrg # empty executable. 4666602e473dSmrg _LT_SYS_MODULE_PATH_AIX 4667602e473dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 4668602e473dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 4669602e473dSmrg else 4670602e473dSmrg if test "$host_cpu" = ia64; then 4671602e473dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 4672602e473dSmrg _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 4673602e473dSmrg _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" 4674602e473dSmrg else 4675602e473dSmrg # Determine the default libpath from the value encoded in an 4676602e473dSmrg # empty executable. 4677602e473dSmrg _LT_SYS_MODULE_PATH_AIX 4678602e473dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 4679602e473dSmrg # Warning - without using the other run time loading flags, 4680602e473dSmrg # -berok will link without error, but may produce a broken library. 4681602e473dSmrg _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 4682602e473dSmrg _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 4683602e473dSmrg # Exported symbols can be pulled into shared objects from archives 4684602e473dSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 4685602e473dSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 4686602e473dSmrg # This is similar to how AIX traditionally builds its shared libraries. 4687602e473dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 4688602e473dSmrg fi 4689602e473dSmrg fi 4690602e473dSmrg ;; 4691602e473dSmrg 4692602e473dSmrg amigaos*) 4693602e473dSmrg case $host_cpu in 4694602e473dSmrg powerpc) 4695602e473dSmrg # see comment about AmigaOS4 .so support 4696602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 4697602e473dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='' 4698602e473dSmrg ;; 4699602e473dSmrg m68k) 4700602e473dSmrg _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)' 4701602e473dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 4702602e473dSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 4703602e473dSmrg ;; 4704602e473dSmrg esac 4705602e473dSmrg ;; 4706602e473dSmrg 4707602e473dSmrg bsdi[[45]]*) 4708602e473dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic 4709602e473dSmrg ;; 4710602e473dSmrg 4711602e473dSmrg cygwin* | mingw* | pw32* | cegcc*) 4712602e473dSmrg # When not using gcc, we currently assume that we are using 4713602e473dSmrg # Microsoft Visual C++. 4714602e473dSmrg # hardcode_libdir_flag_spec is actually meaningless, as there is 4715602e473dSmrg # no search path for DLLs. 4716602e473dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 4717602e473dSmrg _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 4718602e473dSmrg # Tell ltmain to make .lib files, not .a files. 4719602e473dSmrg libext=lib 4720602e473dSmrg # Tell ltmain to make .dll files, not .so files. 4721602e473dSmrg shrext_cmds=".dll" 4722602e473dSmrg # FIXME: Setting linknames here is a bad hack. 4723602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 4724602e473dSmrg # The linker will automatically build a .lib file if we build a DLL. 4725602e473dSmrg _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 4726602e473dSmrg # FIXME: Should let the user specify the lib program. 4727602e473dSmrg _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' 4728602e473dSmrg _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' 4729602e473dSmrg _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 4730602e473dSmrg ;; 4731602e473dSmrg 4732602e473dSmrg darwin* | rhapsody*) 4733602e473dSmrg _LT_DARWIN_LINKER_FEATURES($1) 4734602e473dSmrg ;; 4735602e473dSmrg 4736602e473dSmrg dgux*) 4737602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 4738602e473dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 4739602e473dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 4740602e473dSmrg ;; 4741602e473dSmrg 4742602e473dSmrg freebsd1*) 4743602e473dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 4744602e473dSmrg ;; 4745602e473dSmrg 4746602e473dSmrg # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 4747602e473dSmrg # support. Future versions do this automatically, but an explicit c++rt0.o 4748602e473dSmrg # does not break anything, and helps significantly (at the cost of a little 4749602e473dSmrg # extra space). 4750602e473dSmrg freebsd2.2*) 4751602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 4752602e473dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 4753602e473dSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 4754602e473dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 4755602e473dSmrg ;; 4756602e473dSmrg 4757602e473dSmrg # Unfortunately, older versions of FreeBSD 2 do not have this feature. 4758602e473dSmrg freebsd2*) 4759602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 4760602e473dSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 4761602e473dSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 4762602e473dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 4763602e473dSmrg ;; 4764602e473dSmrg 4765602e473dSmrg # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 4766602e473dSmrg freebsd* | dragonfly*) 4767602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 4768602e473dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 4769602e473dSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 4770602e473dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 4771602e473dSmrg ;; 4772602e473dSmrg 4773602e473dSmrg hpux9*) 4774602e473dSmrg if test "$GCC" = yes; then 4775602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 4776602e473dSmrg else 4777602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 4778602e473dSmrg fi 4779602e473dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 4780602e473dSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 4781602e473dSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 4782602e473dSmrg 4783602e473dSmrg # hardcode_minus_L: Not really in the search PATH, 4784602e473dSmrg # but as the default location of the library. 4785602e473dSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 4786602e473dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 4787602e473dSmrg ;; 4788602e473dSmrg 4789602e473dSmrg hpux10*) 4790602e473dSmrg if test "$GCC" = yes -a "$with_gnu_ld" = no; then 4791602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 4792602e473dSmrg else 4793602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 4794602e473dSmrg fi 4795602e473dSmrg if test "$with_gnu_ld" = no; then 4796602e473dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 4797602e473dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' 4798602e473dSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 4799602e473dSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 4800602e473dSmrg _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 4801602e473dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 4802602e473dSmrg # hardcode_minus_L: Not really in the search PATH, 4803602e473dSmrg # but as the default location of the library. 4804602e473dSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 4805602e473dSmrg fi 4806602e473dSmrg ;; 4807602e473dSmrg 4808602e473dSmrg hpux11*) 4809602e473dSmrg if test "$GCC" = yes -a "$with_gnu_ld" = no; then 4810602e473dSmrg case $host_cpu in 4811602e473dSmrg hppa*64*) 4812602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 4813602e473dSmrg ;; 4814602e473dSmrg ia64*) 4815602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 4816602e473dSmrg ;; 4817602e473dSmrg *) 4818602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 4819602e473dSmrg ;; 4820602e473dSmrg esac 4821602e473dSmrg else 4822602e473dSmrg case $host_cpu in 4823602e473dSmrg hppa*64*) 4824602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 4825602e473dSmrg ;; 4826602e473dSmrg ia64*) 4827602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 4828602e473dSmrg ;; 4829602e473dSmrg *) 4830602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 4831602e473dSmrg ;; 4832602e473dSmrg esac 4833602e473dSmrg fi 4834602e473dSmrg if test "$with_gnu_ld" = no; then 4835602e473dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 4836602e473dSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 4837602e473dSmrg 4838602e473dSmrg case $host_cpu in 4839602e473dSmrg hppa*64*|ia64*) 4840602e473dSmrg _LT_TAGVAR(hardcode_direct, $1)=no 4841602e473dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 4842602e473dSmrg ;; 4843602e473dSmrg *) 4844602e473dSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 4845602e473dSmrg _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 4846602e473dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 4847602e473dSmrg 4848602e473dSmrg # hardcode_minus_L: Not really in the search PATH, 4849602e473dSmrg # but as the default location of the library. 4850602e473dSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 4851602e473dSmrg ;; 4852602e473dSmrg esac 4853602e473dSmrg fi 4854602e473dSmrg ;; 4855602e473dSmrg 4856602e473dSmrg irix5* | irix6* | nonstopux*) 4857602e473dSmrg if test "$GCC" = yes; then 4858602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 4859602e473dSmrg # Try to use the -exported_symbol ld option, if it does not 4860602e473dSmrg # work, assume that -exports_file does not work either and 4861602e473dSmrg # implicitly export all symbols. 4862602e473dSmrg save_LDFLAGS="$LDFLAGS" 4863602e473dSmrg LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 4864602e473dSmrg AC_LINK_IFELSE(int foo(void) {}, 4865602e473dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 4866602e473dSmrg ) 4867602e473dSmrg LDFLAGS="$save_LDFLAGS" 4868602e473dSmrg else 4869602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 4870602e473dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 4871602e473dSmrg fi 4872602e473dSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 4873602e473dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 4874602e473dSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 4875602e473dSmrg _LT_TAGVAR(inherit_rpath, $1)=yes 4876602e473dSmrg _LT_TAGVAR(link_all_deplibs, $1)=yes 4877602e473dSmrg ;; 4878602e473dSmrg 4879602e473dSmrg netbsd* | netbsdelf*-gnu) 4880602e473dSmrg if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 4881602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 4882602e473dSmrg else 4883602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 4884602e473dSmrg fi 4885602e473dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 4886602e473dSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 4887602e473dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 4888602e473dSmrg ;; 4889602e473dSmrg 4890602e473dSmrg newsos6) 4891602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 4892602e473dSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 4893602e473dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 4894602e473dSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 4895602e473dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 4896602e473dSmrg ;; 4897602e473dSmrg 4898602e473dSmrg *nto* | *qnx*) 4899602e473dSmrg ;; 4900602e473dSmrg 4901602e473dSmrg openbsd*) 4902602e473dSmrg if test -f /usr/libexec/ld.so; then 4903602e473dSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 4904602e473dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 4905602e473dSmrg _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 4906602e473dSmrg if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4907602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 4908602e473dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 4909602e473dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 4910602e473dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 4911602e473dSmrg else 4912602e473dSmrg case $host_os in 4913602e473dSmrg openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) 4914602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 4915602e473dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 4916602e473dSmrg ;; 4917602e473dSmrg *) 4918602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 4919602e473dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 4920602e473dSmrg ;; 4921602e473dSmrg esac 4922602e473dSmrg fi 4923602e473dSmrg else 4924602e473dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 4925602e473dSmrg fi 4926602e473dSmrg ;; 4927602e473dSmrg 4928602e473dSmrg os2*) 4929602e473dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 4930602e473dSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 4931602e473dSmrg _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 4932602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 4933602e473dSmrg _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 4934602e473dSmrg ;; 4935602e473dSmrg 4936602e473dSmrg osf3*) 4937602e473dSmrg if test "$GCC" = yes; then 4938602e473dSmrg _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 4939602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 4940602e473dSmrg else 4941602e473dSmrg _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 4942602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 4943602e473dSmrg fi 4944602e473dSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 4945602e473dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 4946602e473dSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 4947602e473dSmrg ;; 4948602e473dSmrg 4949602e473dSmrg osf4* | osf5*) # as osf3* with the addition of -msym flag 4950602e473dSmrg if test "$GCC" = yes; then 4951602e473dSmrg _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 4952602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 4953602e473dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 4954602e473dSmrg else 4955602e473dSmrg _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 4956602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 4957602e473dSmrg _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~ 4958602e473dSmrg $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 4959602e473dSmrg 4960602e473dSmrg # Both c and cxx compiler support -rpath directly 4961602e473dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 4962602e473dSmrg fi 4963602e473dSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 4964602e473dSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 4965602e473dSmrg ;; 4966602e473dSmrg 4967602e473dSmrg solaris*) 4968602e473dSmrg _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' 4969602e473dSmrg if test "$GCC" = yes; then 4970602e473dSmrg wlarc='${wl}' 4971602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 4972602e473dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 4973602e473dSmrg $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 4974602e473dSmrg else 4975602e473dSmrg case `$CC -V 2>&1` in 4976602e473dSmrg *"Compilers 5.0"*) 4977602e473dSmrg wlarc='' 4978602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 4979602e473dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 4980602e473dSmrg $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 4981602e473dSmrg ;; 4982602e473dSmrg *) 4983602e473dSmrg wlarc='${wl}' 4984602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 4985602e473dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 4986602e473dSmrg $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 4987602e473dSmrg ;; 4988602e473dSmrg esac 4989602e473dSmrg fi 4990602e473dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 4991602e473dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 4992602e473dSmrg case $host_os in 4993602e473dSmrg solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 4994602e473dSmrg *) 4995602e473dSmrg # The compiler driver will combine and reorder linker options, 4996602e473dSmrg # but understands `-z linker_flag'. GCC discards it without `$wl', 4997602e473dSmrg # but is careful enough not to reorder. 4998602e473dSmrg # Supported since Solaris 2.6 (maybe 2.5.1?) 4999602e473dSmrg if test "$GCC" = yes; then 5000602e473dSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 5001602e473dSmrg else 5002602e473dSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 5003602e473dSmrg fi 5004602e473dSmrg ;; 5005602e473dSmrg esac 5006602e473dSmrg _LT_TAGVAR(link_all_deplibs, $1)=yes 5007602e473dSmrg ;; 5008602e473dSmrg 5009602e473dSmrg sunos4*) 5010602e473dSmrg if test "x$host_vendor" = xsequent; then 5011602e473dSmrg # Use $CC to link under sequent, because it throws in some extra .o 5012602e473dSmrg # files that make .init and .fini sections work. 5013602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 5014602e473dSmrg else 5015602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 5016602e473dSmrg fi 5017602e473dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5018602e473dSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 5019602e473dSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 5020602e473dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5021602e473dSmrg ;; 5022602e473dSmrg 5023602e473dSmrg sysv4) 5024602e473dSmrg case $host_vendor in 5025602e473dSmrg sni) 5026602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5027602e473dSmrg _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? 5028602e473dSmrg ;; 5029602e473dSmrg siemens) 5030602e473dSmrg ## LD is ld it makes a PLAMLIB 5031602e473dSmrg ## CC just makes a GrossModule. 5032602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' 5033602e473dSmrg _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' 5034602e473dSmrg _LT_TAGVAR(hardcode_direct, $1)=no 5035602e473dSmrg ;; 5036602e473dSmrg motorola) 5037602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5038602e473dSmrg _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie 5039602e473dSmrg ;; 5040602e473dSmrg esac 5041602e473dSmrg runpath_var='LD_RUN_PATH' 5042602e473dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5043602e473dSmrg ;; 5044602e473dSmrg 5045602e473dSmrg sysv4.3*) 5046602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5047602e473dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5048602e473dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' 5049602e473dSmrg ;; 5050602e473dSmrg 5051602e473dSmrg sysv4*MP*) 5052602e473dSmrg if test -d /usr/nec; then 5053602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5054602e473dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5055602e473dSmrg runpath_var=LD_RUN_PATH 5056602e473dSmrg hardcode_runpath_var=yes 5057602e473dSmrg _LT_TAGVAR(ld_shlibs, $1)=yes 5058602e473dSmrg fi 5059602e473dSmrg ;; 5060602e473dSmrg 5061602e473dSmrg sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 5062602e473dSmrg _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 5063602e473dSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=no 5064602e473dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5065602e473dSmrg runpath_var='LD_RUN_PATH' 5066602e473dSmrg 5067602e473dSmrg if test "$GCC" = yes; then 5068602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 5069602e473dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 5070602e473dSmrg else 5071602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 5072602e473dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 5073602e473dSmrg fi 5074602e473dSmrg ;; 5075602e473dSmrg 5076602e473dSmrg sysv5* | sco3.2v5* | sco5v6*) 5077602e473dSmrg # Note: We can NOT use -z defs as we might desire, because we do not 5078602e473dSmrg # link with -lc, and that would cause any symbols used from libc to 5079602e473dSmrg # always be unresolved, which means just about no library would 5080602e473dSmrg # ever link correctly. If we're not using GNU ld we use -z text 5081602e473dSmrg # though, which does catch some bad symbols but isn't as heavy-handed 5082602e473dSmrg # as -z defs. 5083602e473dSmrg _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 5084602e473dSmrg _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' 5085602e473dSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=no 5086602e473dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5087602e473dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' 5088602e473dSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 5089602e473dSmrg _LT_TAGVAR(link_all_deplibs, $1)=yes 5090602e473dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' 5091602e473dSmrg runpath_var='LD_RUN_PATH' 5092602e473dSmrg 5093602e473dSmrg if test "$GCC" = yes; then 5094602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 5095602e473dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 5096602e473dSmrg else 5097602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 5098602e473dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 5099602e473dSmrg fi 5100602e473dSmrg ;; 5101602e473dSmrg 5102602e473dSmrg uts4*) 5103602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5104602e473dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5105602e473dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5106602e473dSmrg ;; 5107602e473dSmrg 5108602e473dSmrg *) 5109602e473dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 5110602e473dSmrg ;; 5111602e473dSmrg esac 5112602e473dSmrg 5113602e473dSmrg if test x$host_vendor = xsni; then 5114602e473dSmrg case $host in 5115602e473dSmrg sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 5116602e473dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym' 5117602e473dSmrg ;; 5118602e473dSmrg esac 5119602e473dSmrg fi 5120602e473dSmrg fi 5121602e473dSmrg]) 5122602e473dSmrgAC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) 5123602e473dSmrgtest "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 5124602e473dSmrg 5125602e473dSmrg_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld 5126602e473dSmrg 5127602e473dSmrg_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl 5128602e473dSmrg_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl 5129602e473dSmrg_LT_DECL([], [extract_expsyms_cmds], [2], 5130602e473dSmrg [The commands to extract the exported symbol list from a shared archive]) 5131602e473dSmrg 5132602e473dSmrg# 5133602e473dSmrg# Do we need to explicitly link libc? 5134602e473dSmrg# 5135602e473dSmrgcase "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in 5136602e473dSmrgx|xyes) 5137602e473dSmrg # Assume -lc should be added 5138602e473dSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 5139602e473dSmrg 5140602e473dSmrg if test "$enable_shared" = yes && test "$GCC" = yes; then 5141602e473dSmrg case $_LT_TAGVAR(archive_cmds, $1) in 5142602e473dSmrg *'~'*) 5143602e473dSmrg # FIXME: we may have to deal with multi-command sequences. 5144602e473dSmrg ;; 5145602e473dSmrg '$CC '*) 5146602e473dSmrg # Test whether the compiler implicitly links with -lc since on some 5147602e473dSmrg # systems, -lgcc has to come before -lc. If gcc already passes -lc 5148602e473dSmrg # to ld, don't add -lc before -lgcc. 5149602e473dSmrg AC_MSG_CHECKING([whether -lc should be explicitly linked in]) 5150602e473dSmrg $RM conftest* 5151602e473dSmrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 5152602e473dSmrg 5153602e473dSmrg if AC_TRY_EVAL(ac_compile) 2>conftest.err; then 5154602e473dSmrg soname=conftest 5155602e473dSmrg lib=conftest 5156602e473dSmrg libobjs=conftest.$ac_objext 5157602e473dSmrg deplibs= 5158602e473dSmrg wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) 5159602e473dSmrg pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) 5160602e473dSmrg compiler_flags=-v 5161602e473dSmrg linker_flags=-v 5162602e473dSmrg verstring= 5163602e473dSmrg output_objdir=. 5164602e473dSmrg libname=conftest 5165602e473dSmrg lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) 5166602e473dSmrg _LT_TAGVAR(allow_undefined_flag, $1)= 5167602e473dSmrg if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 5168602e473dSmrg then 5169602e473dSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=no 5170602e473dSmrg else 5171602e473dSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 5172602e473dSmrg fi 5173602e473dSmrg _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag 5174602e473dSmrg else 5175602e473dSmrg cat conftest.err 1>&5 5176602e473dSmrg fi 5177602e473dSmrg $RM conftest* 5178602e473dSmrg AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)]) 5179602e473dSmrg ;; 5180602e473dSmrg esac 5181602e473dSmrg fi 5182602e473dSmrg ;; 5183602e473dSmrgesac 5184602e473dSmrg 5185602e473dSmrg_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], 5186602e473dSmrg [Whether or not to add -lc for building shared libraries]) 5187602e473dSmrg_LT_TAGDECL([allow_libtool_libs_with_static_runtimes], 5188602e473dSmrg [enable_shared_with_static_runtimes], [0], 5189602e473dSmrg [Whether or not to disallow shared libs when runtime libs are static]) 5190602e473dSmrg_LT_TAGDECL([], [export_dynamic_flag_spec], [1], 5191602e473dSmrg [Compiler flag to allow reflexive dlopens]) 5192602e473dSmrg_LT_TAGDECL([], [whole_archive_flag_spec], [1], 5193602e473dSmrg [Compiler flag to generate shared objects directly from archives]) 5194602e473dSmrg_LT_TAGDECL([], [compiler_needs_object], [1], 5195602e473dSmrg [Whether the compiler copes with passing no objects directly]) 5196602e473dSmrg_LT_TAGDECL([], [old_archive_from_new_cmds], [2], 5197602e473dSmrg [Create an old-style archive from a shared archive]) 5198602e473dSmrg_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], 5199602e473dSmrg [Create a temporary old-style archive to link instead of a shared archive]) 5200602e473dSmrg_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) 5201602e473dSmrg_LT_TAGDECL([], [archive_expsym_cmds], [2]) 5202602e473dSmrg_LT_TAGDECL([], [module_cmds], [2], 5203602e473dSmrg [Commands used to build a loadable module if different from building 5204602e473dSmrg a shared archive.]) 5205602e473dSmrg_LT_TAGDECL([], [module_expsym_cmds], [2]) 5206602e473dSmrg_LT_TAGDECL([], [with_gnu_ld], [1], 5207602e473dSmrg [Whether we are building with GNU ld or not]) 5208602e473dSmrg_LT_TAGDECL([], [allow_undefined_flag], [1], 5209602e473dSmrg [Flag that allows shared libraries with undefined symbols to be built]) 5210602e473dSmrg_LT_TAGDECL([], [no_undefined_flag], [1], 5211602e473dSmrg [Flag that enforces no undefined symbols]) 5212602e473dSmrg_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], 5213602e473dSmrg [Flag to hardcode $libdir into a binary during linking. 5214602e473dSmrg This must work even if $libdir does not exist]) 5215602e473dSmrg_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1], 5216602e473dSmrg [[If ld is used when linking, flag to hardcode $libdir into a binary 5217602e473dSmrg during linking. This must work even if $libdir does not exist]]) 5218602e473dSmrg_LT_TAGDECL([], [hardcode_libdir_separator], [1], 5219602e473dSmrg [Whether we need a single "-rpath" flag with a separated argument]) 5220602e473dSmrg_LT_TAGDECL([], [hardcode_direct], [0], 5221602e473dSmrg [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes 5222602e473dSmrg DIR into the resulting binary]) 5223602e473dSmrg_LT_TAGDECL([], [hardcode_direct_absolute], [0], 5224602e473dSmrg [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes 5225602e473dSmrg DIR into the resulting binary and the resulting library dependency is 5226602e473dSmrg "absolute", i.e impossible to change by setting ${shlibpath_var} if the 5227602e473dSmrg library is relocated]) 5228602e473dSmrg_LT_TAGDECL([], [hardcode_minus_L], [0], 5229602e473dSmrg [Set to "yes" if using the -LDIR flag during linking hardcodes DIR 5230602e473dSmrg into the resulting binary]) 5231602e473dSmrg_LT_TAGDECL([], [hardcode_shlibpath_var], [0], 5232602e473dSmrg [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 5233602e473dSmrg into the resulting binary]) 5234602e473dSmrg_LT_TAGDECL([], [hardcode_automatic], [0], 5235602e473dSmrg [Set to "yes" if building a shared library automatically hardcodes DIR 5236602e473dSmrg into the library and all subsequent libraries and executables linked 5237602e473dSmrg against it]) 5238602e473dSmrg_LT_TAGDECL([], [inherit_rpath], [0], 5239602e473dSmrg [Set to yes if linker adds runtime paths of dependent libraries 5240602e473dSmrg to runtime path list]) 5241602e473dSmrg_LT_TAGDECL([], [link_all_deplibs], [0], 5242602e473dSmrg [Whether libtool must link a program against all its dependency libraries]) 5243602e473dSmrg_LT_TAGDECL([], [fix_srcfile_path], [1], 5244602e473dSmrg [Fix the shell variable $srcfile for the compiler]) 5245602e473dSmrg_LT_TAGDECL([], [always_export_symbols], [0], 5246602e473dSmrg [Set to "yes" if exported symbols are required]) 5247602e473dSmrg_LT_TAGDECL([], [export_symbols_cmds], [2], 5248602e473dSmrg [The commands to list exported symbols]) 5249602e473dSmrg_LT_TAGDECL([], [exclude_expsyms], [1], 5250602e473dSmrg [Symbols that should not be listed in the preloaded symbols]) 5251602e473dSmrg_LT_TAGDECL([], [include_expsyms], [1], 5252602e473dSmrg [Symbols that must always be exported]) 5253602e473dSmrg_LT_TAGDECL([], [prelink_cmds], [2], 5254602e473dSmrg [Commands necessary for linking programs (against libraries) with templates]) 5255602e473dSmrg_LT_TAGDECL([], [file_list_spec], [1], 5256602e473dSmrg [Specify filename containing input files]) 5257602e473dSmrgdnl FIXME: Not yet implemented 5258602e473dSmrgdnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], 5259602e473dSmrgdnl [Compiler flag to generate thread safe objects]) 5260602e473dSmrg])# _LT_LINKER_SHLIBS 5261602e473dSmrg 5262602e473dSmrg 5263602e473dSmrg# _LT_LANG_C_CONFIG([TAG]) 5264602e473dSmrg# ------------------------ 5265602e473dSmrg# Ensure that the configuration variables for a C compiler are suitably 5266602e473dSmrg# defined. These variables are subsequently used by _LT_CONFIG to write 5267602e473dSmrg# the compiler configuration to `libtool'. 5268602e473dSmrgm4_defun([_LT_LANG_C_CONFIG], 5269602e473dSmrg[m4_require([_LT_DECL_EGREP])dnl 5270602e473dSmrglt_save_CC="$CC" 5271602e473dSmrgAC_LANG_PUSH(C) 5272602e473dSmrg 5273602e473dSmrg# Source file extension for C test sources. 5274602e473dSmrgac_ext=c 5275602e473dSmrg 5276602e473dSmrg# Object file extension for compiled C test sources. 5277602e473dSmrgobjext=o 5278602e473dSmrg_LT_TAGVAR(objext, $1)=$objext 5279602e473dSmrg 5280602e473dSmrg# Code to be used in simple compile tests 5281602e473dSmrglt_simple_compile_test_code="int some_variable = 0;" 5282602e473dSmrg 5283602e473dSmrg# Code to be used in simple link tests 5284602e473dSmrglt_simple_link_test_code='int main(){return(0);}' 5285602e473dSmrg 5286602e473dSmrg_LT_TAG_COMPILER 5287602e473dSmrg# Save the default compiler, since it gets overwritten when the other 5288602e473dSmrg# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 5289602e473dSmrgcompiler_DEFAULT=$CC 5290602e473dSmrg 5291602e473dSmrg# save warnings/boilerplate of simple test code 5292602e473dSmrg_LT_COMPILER_BOILERPLATE 5293602e473dSmrg_LT_LINKER_BOILERPLATE 5294602e473dSmrg 5295602e473dSmrgif test -n "$compiler"; then 5296602e473dSmrg _LT_COMPILER_NO_RTTI($1) 5297602e473dSmrg _LT_COMPILER_PIC($1) 5298602e473dSmrg _LT_COMPILER_C_O($1) 5299602e473dSmrg _LT_COMPILER_FILE_LOCKS($1) 5300602e473dSmrg _LT_LINKER_SHLIBS($1) 5301602e473dSmrg _LT_SYS_DYNAMIC_LINKER($1) 5302602e473dSmrg _LT_LINKER_HARDCODE_LIBPATH($1) 5303602e473dSmrg LT_SYS_DLOPEN_SELF 5304602e473dSmrg _LT_CMD_STRIPLIB 5305602e473dSmrg 5306602e473dSmrg # Report which library types will actually be built 5307602e473dSmrg AC_MSG_CHECKING([if libtool supports shared libraries]) 5308602e473dSmrg AC_MSG_RESULT([$can_build_shared]) 5309602e473dSmrg 5310602e473dSmrg AC_MSG_CHECKING([whether to build shared libraries]) 5311602e473dSmrg test "$can_build_shared" = "no" && enable_shared=no 5312602e473dSmrg 5313602e473dSmrg # On AIX, shared libraries and static libraries use the same namespace, and 5314602e473dSmrg # are all built from PIC. 5315602e473dSmrg case $host_os in 5316602e473dSmrg aix3*) 5317602e473dSmrg test "$enable_shared" = yes && enable_static=no 5318602e473dSmrg if test -n "$RANLIB"; then 5319602e473dSmrg archive_cmds="$archive_cmds~\$RANLIB \$lib" 5320602e473dSmrg postinstall_cmds='$RANLIB $lib' 5321602e473dSmrg fi 5322602e473dSmrg ;; 5323602e473dSmrg 5324602e473dSmrg aix[[4-9]]*) 5325602e473dSmrg if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 5326602e473dSmrg test "$enable_shared" = yes && enable_static=no 5327602e473dSmrg fi 5328602e473dSmrg ;; 5329602e473dSmrg esac 5330602e473dSmrg AC_MSG_RESULT([$enable_shared]) 5331602e473dSmrg 5332602e473dSmrg AC_MSG_CHECKING([whether to build static libraries]) 5333602e473dSmrg # Make sure either enable_shared or enable_static is yes. 5334602e473dSmrg test "$enable_shared" = yes || enable_static=yes 5335602e473dSmrg AC_MSG_RESULT([$enable_static]) 5336602e473dSmrg 5337602e473dSmrg _LT_CONFIG($1) 5338602e473dSmrgfi 5339602e473dSmrgAC_LANG_POP 5340602e473dSmrgCC="$lt_save_CC" 5341602e473dSmrg])# _LT_LANG_C_CONFIG 5342602e473dSmrg 5343602e473dSmrg 5344602e473dSmrg# _LT_PROG_CXX 5345602e473dSmrg# ------------ 5346602e473dSmrg# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++ 5347602e473dSmrg# compiler, we have our own version here. 5348602e473dSmrgm4_defun([_LT_PROG_CXX], 5349602e473dSmrg[ 5350602e473dSmrgpushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes]) 5351602e473dSmrgAC_PROG_CXX 5352602e473dSmrgif test -n "$CXX" && ( test "X$CXX" != "Xno" && 5353602e473dSmrg ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5354602e473dSmrg (test "X$CXX" != "Xg++"))) ; then 5355602e473dSmrg AC_PROG_CXXCPP 5356602e473dSmrgelse 5357602e473dSmrg _lt_caught_CXX_error=yes 5358602e473dSmrgfi 5359602e473dSmrgpopdef([AC_MSG_ERROR]) 5360602e473dSmrg])# _LT_PROG_CXX 5361602e473dSmrg 5362602e473dSmrgdnl aclocal-1.4 backwards compatibility: 5363602e473dSmrgdnl AC_DEFUN([_LT_PROG_CXX], []) 5364602e473dSmrg 5365602e473dSmrg 5366602e473dSmrg# _LT_LANG_CXX_CONFIG([TAG]) 5367602e473dSmrg# -------------------------- 5368602e473dSmrg# Ensure that the configuration variables for a C++ compiler are suitably 5369602e473dSmrg# defined. These variables are subsequently used by _LT_CONFIG to write 5370602e473dSmrg# the compiler configuration to `libtool'. 5371602e473dSmrgm4_defun([_LT_LANG_CXX_CONFIG], 5372602e473dSmrg[AC_REQUIRE([_LT_PROG_CXX])dnl 5373602e473dSmrgm4_require([_LT_FILEUTILS_DEFAULTS])dnl 5374602e473dSmrgm4_require([_LT_DECL_EGREP])dnl 5375602e473dSmrg 5376602e473dSmrgAC_LANG_PUSH(C++) 5377602e473dSmrg_LT_TAGVAR(archive_cmds_need_lc, $1)=no 5378602e473dSmrg_LT_TAGVAR(allow_undefined_flag, $1)= 5379602e473dSmrg_LT_TAGVAR(always_export_symbols, $1)=no 5380602e473dSmrg_LT_TAGVAR(archive_expsym_cmds, $1)= 5381602e473dSmrg_LT_TAGVAR(compiler_needs_object, $1)=no 5382602e473dSmrg_LT_TAGVAR(export_dynamic_flag_spec, $1)= 5383602e473dSmrg_LT_TAGVAR(hardcode_direct, $1)=no 5384602e473dSmrg_LT_TAGVAR(hardcode_direct_absolute, $1)=no 5385602e473dSmrg_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 5386602e473dSmrg_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 5387602e473dSmrg_LT_TAGVAR(hardcode_libdir_separator, $1)= 5388602e473dSmrg_LT_TAGVAR(hardcode_minus_L, $1)=no 5389602e473dSmrg_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 5390602e473dSmrg_LT_TAGVAR(hardcode_automatic, $1)=no 5391602e473dSmrg_LT_TAGVAR(inherit_rpath, $1)=no 5392602e473dSmrg_LT_TAGVAR(module_cmds, $1)= 5393602e473dSmrg_LT_TAGVAR(module_expsym_cmds, $1)= 5394602e473dSmrg_LT_TAGVAR(link_all_deplibs, $1)=unknown 5395602e473dSmrg_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 5396602e473dSmrg_LT_TAGVAR(no_undefined_flag, $1)= 5397602e473dSmrg_LT_TAGVAR(whole_archive_flag_spec, $1)= 5398602e473dSmrg_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 5399602e473dSmrg 5400602e473dSmrg# Source file extension for C++ test sources. 5401602e473dSmrgac_ext=cpp 5402602e473dSmrg 5403602e473dSmrg# Object file extension for compiled C++ test sources. 5404602e473dSmrgobjext=o 5405602e473dSmrg_LT_TAGVAR(objext, $1)=$objext 5406602e473dSmrg 5407602e473dSmrg# No sense in running all these tests if we already determined that 5408602e473dSmrg# the CXX compiler isn't working. Some variables (like enable_shared) 5409602e473dSmrg# are currently assumed to apply to all compilers on this platform, 5410602e473dSmrg# and will be corrupted by setting them based on a non-working compiler. 5411602e473dSmrgif test "$_lt_caught_CXX_error" != yes; then 5412602e473dSmrg # Code to be used in simple compile tests 5413602e473dSmrg lt_simple_compile_test_code="int some_variable = 0;" 5414602e473dSmrg 5415602e473dSmrg # Code to be used in simple link tests 5416602e473dSmrg lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' 5417602e473dSmrg 5418602e473dSmrg # ltmain only uses $CC for tagged configurations so make sure $CC is set. 5419602e473dSmrg _LT_TAG_COMPILER 5420602e473dSmrg 5421602e473dSmrg # save warnings/boilerplate of simple test code 5422602e473dSmrg _LT_COMPILER_BOILERPLATE 5423602e473dSmrg _LT_LINKER_BOILERPLATE 5424602e473dSmrg 5425602e473dSmrg # Allow CC to be a program name with arguments. 5426602e473dSmrg lt_save_CC=$CC 5427602e473dSmrg lt_save_LD=$LD 5428602e473dSmrg lt_save_GCC=$GCC 5429602e473dSmrg GCC=$GXX 5430602e473dSmrg lt_save_with_gnu_ld=$with_gnu_ld 5431602e473dSmrg lt_save_path_LD=$lt_cv_path_LD 5432602e473dSmrg if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 5433602e473dSmrg lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 5434602e473dSmrg else 5435602e473dSmrg $as_unset lt_cv_prog_gnu_ld 5436602e473dSmrg fi 5437602e473dSmrg if test -n "${lt_cv_path_LDCXX+set}"; then 5438602e473dSmrg lt_cv_path_LD=$lt_cv_path_LDCXX 5439602e473dSmrg else 5440602e473dSmrg $as_unset lt_cv_path_LD 5441602e473dSmrg fi 5442602e473dSmrg test -z "${LDCXX+set}" || LD=$LDCXX 5443602e473dSmrg CC=${CXX-"c++"} 5444602e473dSmrg compiler=$CC 5445602e473dSmrg _LT_TAGVAR(compiler, $1)=$CC 5446602e473dSmrg _LT_CC_BASENAME([$compiler]) 5447602e473dSmrg 5448602e473dSmrg if test -n "$compiler"; then 5449602e473dSmrg # We don't want -fno-exception when compiling C++ code, so set the 5450602e473dSmrg # no_builtin_flag separately 5451602e473dSmrg if test "$GXX" = yes; then 5452602e473dSmrg _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 5453602e473dSmrg else 5454602e473dSmrg _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 5455602e473dSmrg fi 5456602e473dSmrg 5457602e473dSmrg if test "$GXX" = yes; then 5458602e473dSmrg # Set up default GNU C++ configuration 5459602e473dSmrg 5460602e473dSmrg LT_PATH_LD 5461602e473dSmrg 5462602e473dSmrg # Check if GNU C++ uses GNU ld as the underlying linker, since the 5463602e473dSmrg # archiving commands below assume that GNU ld is being used. 5464602e473dSmrg if test "$with_gnu_ld" = yes; then 5465602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 5466602e473dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 5467602e473dSmrg 5468602e473dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 5469602e473dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 5470602e473dSmrg 5471602e473dSmrg # If archive_cmds runs LD, not CC, wlarc should be empty 5472602e473dSmrg # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 5473602e473dSmrg # investigate it a little bit more. (MM) 5474602e473dSmrg wlarc='${wl}' 5475602e473dSmrg 5476602e473dSmrg # ancient GNU ld didn't support --whole-archive et. al. 5477602e473dSmrg if eval "`$CC -print-prog-name=ld` --help 2>&1" | 5478602e473dSmrg $GREP 'no-whole-archive' > /dev/null; then 5479602e473dSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 5480602e473dSmrg else 5481602e473dSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)= 5482602e473dSmrg fi 5483602e473dSmrg else 5484602e473dSmrg with_gnu_ld=no 5485602e473dSmrg wlarc= 5486602e473dSmrg 5487602e473dSmrg # A generic and very simple default shared library creation 5488602e473dSmrg # command for GNU C++ for the case where it uses the native 5489602e473dSmrg # linker, instead of GNU ld. If possible, this setting should 5490602e473dSmrg # overridden to take advantage of the native linker features on 5491602e473dSmrg # the platform it is being used on. 5492602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 5493602e473dSmrg fi 5494602e473dSmrg 5495602e473dSmrg # Commands to make compiler produce verbose output that lists 5496602e473dSmrg # what "hidden" libraries, object files and flags are used when 5497602e473dSmrg # linking a shared library. 5498602e473dSmrg output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 5499602e473dSmrg 5500602e473dSmrg else 5501602e473dSmrg GXX=no 5502602e473dSmrg with_gnu_ld=no 5503602e473dSmrg wlarc= 5504602e473dSmrg fi 5505602e473dSmrg 5506602e473dSmrg # PORTME: fill in a description of your system's C++ link characteristics 5507602e473dSmrg AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 5508602e473dSmrg _LT_TAGVAR(ld_shlibs, $1)=yes 5509602e473dSmrg case $host_os in 5510602e473dSmrg aix3*) 5511602e473dSmrg # FIXME: insert proper C++ library support 5512602e473dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 5513602e473dSmrg ;; 5514602e473dSmrg aix[[4-9]]*) 5515602e473dSmrg if test "$host_cpu" = ia64; then 5516602e473dSmrg # On IA64, the linker does run time linking by default, so we don't 5517602e473dSmrg # have to do anything special. 5518602e473dSmrg aix_use_runtimelinking=no 5519602e473dSmrg exp_sym_flag='-Bexport' 5520602e473dSmrg no_entry_flag="" 5521602e473dSmrg else 5522602e473dSmrg aix_use_runtimelinking=no 5523602e473dSmrg 5524602e473dSmrg # Test if we are trying to use run time linking or normal 5525602e473dSmrg # AIX style linking. If -brtl is somewhere in LDFLAGS, we 5526602e473dSmrg # need to do runtime linking. 5527602e473dSmrg case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 5528602e473dSmrg for ld_flag in $LDFLAGS; do 5529602e473dSmrg case $ld_flag in 5530602e473dSmrg *-brtl*) 5531602e473dSmrg aix_use_runtimelinking=yes 5532602e473dSmrg break 5533602e473dSmrg ;; 5534602e473dSmrg esac 5535602e473dSmrg done 5536602e473dSmrg ;; 5537602e473dSmrg esac 5538602e473dSmrg 5539602e473dSmrg exp_sym_flag='-bexport' 5540602e473dSmrg no_entry_flag='-bnoentry' 5541602e473dSmrg fi 5542602e473dSmrg 5543602e473dSmrg # When large executables or shared objects are built, AIX ld can 5544602e473dSmrg # have problems creating the table of contents. If linking a library 5545602e473dSmrg # or program results in "error TOC overflow" add -mminimal-toc to 5546602e473dSmrg # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 5547602e473dSmrg # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 5548602e473dSmrg 5549602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='' 5550602e473dSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 5551602e473dSmrg _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 5552602e473dSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 5553602e473dSmrg _LT_TAGVAR(link_all_deplibs, $1)=yes 5554602e473dSmrg _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' 5555602e473dSmrg 5556602e473dSmrg if test "$GXX" = yes; then 5557602e473dSmrg case $host_os in aix4.[[012]]|aix4.[[012]].*) 5558602e473dSmrg # We only want to do this on AIX 4.2 and lower, the check 5559602e473dSmrg # below for broken collect2 doesn't work under 4.3+ 5560602e473dSmrg collect2name=`${CC} -print-prog-name=collect2` 5561602e473dSmrg if test -f "$collect2name" && 5562602e473dSmrg strings "$collect2name" | $GREP resolve_lib_name >/dev/null 5563602e473dSmrg then 5564602e473dSmrg # We have reworked collect2 5565602e473dSmrg : 5566602e473dSmrg else 5567602e473dSmrg # We have old collect2 5568602e473dSmrg _LT_TAGVAR(hardcode_direct, $1)=unsupported 5569602e473dSmrg # It fails to find uninstalled libraries when the uninstalled 5570602e473dSmrg # path is not listed in the libpath. Setting hardcode_minus_L 5571602e473dSmrg # to unsupported forces relinking 5572602e473dSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 5573602e473dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5574602e473dSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)= 5575602e473dSmrg fi 5576602e473dSmrg esac 5577602e473dSmrg shared_flag='-shared' 5578602e473dSmrg if test "$aix_use_runtimelinking" = yes; then 5579602e473dSmrg shared_flag="$shared_flag "'${wl}-G' 5580602e473dSmrg fi 5581602e473dSmrg else 5582602e473dSmrg # not using gcc 5583602e473dSmrg if test "$host_cpu" = ia64; then 5584602e473dSmrg # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 5585602e473dSmrg # chokes on -Wl,-G. The following line is correct: 5586602e473dSmrg shared_flag='-G' 5587602e473dSmrg else 5588602e473dSmrg if test "$aix_use_runtimelinking" = yes; then 5589602e473dSmrg shared_flag='${wl}-G' 5590602e473dSmrg else 5591602e473dSmrg shared_flag='${wl}-bM:SRE' 5592602e473dSmrg fi 5593602e473dSmrg fi 5594602e473dSmrg fi 5595602e473dSmrg 5596602e473dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' 5597602e473dSmrg # It seems that -bexpall does not export symbols beginning with 5598602e473dSmrg # underscore (_), so it is better to generate a list of symbols to 5599602e473dSmrg # export. 5600602e473dSmrg _LT_TAGVAR(always_export_symbols, $1)=yes 5601602e473dSmrg if test "$aix_use_runtimelinking" = yes; then 5602602e473dSmrg # Warning - without using the other runtime loading flags (-brtl), 5603602e473dSmrg # -berok will link without error, but may produce a broken library. 5604602e473dSmrg _LT_TAGVAR(allow_undefined_flag, $1)='-berok' 5605602e473dSmrg # Determine the default libpath from the value encoded in an empty 5606602e473dSmrg # executable. 5607602e473dSmrg _LT_SYS_MODULE_PATH_AIX 5608602e473dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 5609602e473dSmrg 5610602e473dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 5611602e473dSmrg else 5612602e473dSmrg if test "$host_cpu" = ia64; then 5613602e473dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 5614602e473dSmrg _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 5615602e473dSmrg _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" 5616602e473dSmrg else 5617602e473dSmrg # Determine the default libpath from the value encoded in an 5618602e473dSmrg # empty executable. 5619602e473dSmrg _LT_SYS_MODULE_PATH_AIX 5620602e473dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 5621602e473dSmrg # Warning - without using the other run time loading flags, 5622602e473dSmrg # -berok will link without error, but may produce a broken library. 5623602e473dSmrg _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 5624602e473dSmrg _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 5625602e473dSmrg # Exported symbols can be pulled into shared objects from archives 5626602e473dSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 5627602e473dSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 5628602e473dSmrg # This is similar to how AIX traditionally builds its shared 5629602e473dSmrg # libraries. 5630602e473dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 5631602e473dSmrg fi 5632602e473dSmrg fi 5633602e473dSmrg ;; 5634602e473dSmrg 5635602e473dSmrg beos*) 5636602e473dSmrg if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 5637602e473dSmrg _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 5638602e473dSmrg # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 5639602e473dSmrg # support --undefined. This deserves some investigation. FIXME 5640602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5641602e473dSmrg else 5642602e473dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 5643602e473dSmrg fi 5644602e473dSmrg ;; 5645602e473dSmrg 5646602e473dSmrg chorus*) 5647602e473dSmrg case $cc_basename in 5648602e473dSmrg *) 5649602e473dSmrg # FIXME: insert proper C++ library support 5650602e473dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 5651602e473dSmrg ;; 5652602e473dSmrg esac 5653602e473dSmrg ;; 5654602e473dSmrg 5655602e473dSmrg cygwin* | mingw* | pw32* | cegcc*) 5656602e473dSmrg # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 5657602e473dSmrg # as there is no search path for DLLs. 5658602e473dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5659602e473dSmrg _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 5660602e473dSmrg _LT_TAGVAR(always_export_symbols, $1)=no 5661602e473dSmrg _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 5662602e473dSmrg 5663602e473dSmrg if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 5664602e473dSmrg _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' 5665602e473dSmrg # If the export-symbols file already is a .def file (1st line 5666602e473dSmrg # is EXPORTS), use it as is; otherwise, prepend... 5667602e473dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 5668602e473dSmrg cp $export_symbols $output_objdir/$soname.def; 5669602e473dSmrg else 5670602e473dSmrg echo EXPORTS > $output_objdir/$soname.def; 5671602e473dSmrg cat $export_symbols >> $output_objdir/$soname.def; 5672602e473dSmrg fi~ 5673602e473dSmrg $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' 5674602e473dSmrg else 5675602e473dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 5676602e473dSmrg fi 5677602e473dSmrg ;; 5678602e473dSmrg darwin* | rhapsody*) 5679602e473dSmrg _LT_DARWIN_LINKER_FEATURES($1) 5680602e473dSmrg ;; 5681602e473dSmrg 5682602e473dSmrg dgux*) 5683602e473dSmrg case $cc_basename in 5684602e473dSmrg ec++*) 5685602e473dSmrg # FIXME: insert proper C++ library support 5686602e473dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 5687602e473dSmrg ;; 5688602e473dSmrg ghcx*) 5689602e473dSmrg # Green Hills C++ Compiler 5690602e473dSmrg # FIXME: insert proper C++ library support 5691602e473dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 5692602e473dSmrg ;; 5693602e473dSmrg *) 5694602e473dSmrg # FIXME: insert proper C++ library support 5695602e473dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 5696602e473dSmrg ;; 5697602e473dSmrg esac 5698602e473dSmrg ;; 5699602e473dSmrg 5700602e473dSmrg freebsd[[12]]*) 5701602e473dSmrg # C++ shared libraries reported to be fairly broken before 5702602e473dSmrg # switch to ELF 5703602e473dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 5704602e473dSmrg ;; 5705602e473dSmrg 5706602e473dSmrg freebsd-elf*) 5707602e473dSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=no 5708602e473dSmrg ;; 5709602e473dSmrg 5710602e473dSmrg freebsd* | dragonfly*) 5711602e473dSmrg # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 5712602e473dSmrg # conventions 5713602e473dSmrg _LT_TAGVAR(ld_shlibs, $1)=yes 5714602e473dSmrg ;; 5715602e473dSmrg 5716602e473dSmrg gnu*) 5717602e473dSmrg ;; 5718602e473dSmrg 5719602e473dSmrg hpux9*) 5720602e473dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 5721602e473dSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5722602e473dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 5723602e473dSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 5724602e473dSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 5725602e473dSmrg # but as the default 5726602e473dSmrg # location of the library. 5727602e473dSmrg 5728602e473dSmrg case $cc_basename in 5729602e473dSmrg CC*) 5730602e473dSmrg # FIXME: insert proper C++ library support 5731602e473dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 5732602e473dSmrg ;; 5733602e473dSmrg aCC*) 5734602e473dSmrg _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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 5735602e473dSmrg # Commands to make compiler produce verbose output that lists 5736602e473dSmrg # what "hidden" libraries, object files and flags are used when 5737602e473dSmrg # linking a shared library. 5738602e473dSmrg # 5739602e473dSmrg # There doesn't appear to be a way to prevent this compiler from 5740602e473dSmrg # explicitly linking system object files so we need to strip them 5741602e473dSmrg # from the output so that they don't get included in the library 5742602e473dSmrg # dependencies. 5743602e473dSmrg 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; $ECHO "X$list" | $Xsed' 5744602e473dSmrg ;; 5745602e473dSmrg *) 5746602e473dSmrg if test "$GXX" = yes; then 5747602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 5748602e473dSmrg else 5749602e473dSmrg # FIXME: insert proper C++ library support 5750602e473dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 5751602e473dSmrg fi 5752602e473dSmrg ;; 5753602e473dSmrg esac 5754602e473dSmrg ;; 5755602e473dSmrg 5756602e473dSmrg hpux10*|hpux11*) 5757602e473dSmrg if test $with_gnu_ld = no; then 5758602e473dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 5759602e473dSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5760602e473dSmrg 5761602e473dSmrg case $host_cpu in 5762602e473dSmrg hppa*64*|ia64*) 5763602e473dSmrg ;; 5764602e473dSmrg *) 5765602e473dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 5766602e473dSmrg ;; 5767602e473dSmrg esac 5768602e473dSmrg fi 5769602e473dSmrg case $host_cpu in 5770602e473dSmrg hppa*64*|ia64*) 5771602e473dSmrg _LT_TAGVAR(hardcode_direct, $1)=no 5772602e473dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5773602e473dSmrg ;; 5774602e473dSmrg *) 5775602e473dSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 5776602e473dSmrg _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 5777602e473dSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 5778602e473dSmrg # but as the default 5779602e473dSmrg # location of the library. 5780602e473dSmrg ;; 5781602e473dSmrg esac 5782602e473dSmrg 5783602e473dSmrg case $cc_basename in 5784602e473dSmrg CC*) 5785602e473dSmrg # FIXME: insert proper C++ library support 5786602e473dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 5787602e473dSmrg ;; 5788602e473dSmrg aCC*) 5789602e473dSmrg case $host_cpu in 5790602e473dSmrg hppa*64*) 5791602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 5792602e473dSmrg ;; 5793602e473dSmrg ia64*) 5794602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 5795602e473dSmrg ;; 5796602e473dSmrg *) 5797602e473dSmrg _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' 5798602e473dSmrg ;; 5799602e473dSmrg esac 5800602e473dSmrg # Commands to make compiler produce verbose output that lists 5801602e473dSmrg # what "hidden" libraries, object files and flags are used when 5802602e473dSmrg # linking a shared library. 5803602e473dSmrg # 5804602e473dSmrg # There doesn't appear to be a way to prevent this compiler from 5805602e473dSmrg # explicitly linking system object files so we need to strip them 5806602e473dSmrg # from the output so that they don't get included in the library 5807602e473dSmrg # dependencies. 5808602e473dSmrg 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; $ECHO "X$list" | $Xsed' 5809602e473dSmrg ;; 5810602e473dSmrg *) 5811602e473dSmrg if test "$GXX" = yes; then 5812602e473dSmrg if test $with_gnu_ld = no; then 5813602e473dSmrg case $host_cpu in 5814602e473dSmrg hppa*64*) 5815602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 5816602e473dSmrg ;; 5817602e473dSmrg ia64*) 5818602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 5819602e473dSmrg ;; 5820602e473dSmrg *) 5821602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 5822602e473dSmrg ;; 5823602e473dSmrg esac 5824602e473dSmrg fi 5825602e473dSmrg else 5826602e473dSmrg # FIXME: insert proper C++ library support 5827602e473dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 5828602e473dSmrg fi 5829602e473dSmrg ;; 5830602e473dSmrg esac 5831602e473dSmrg ;; 5832602e473dSmrg 5833602e473dSmrg interix[[3-9]]*) 5834602e473dSmrg _LT_TAGVAR(hardcode_direct, $1)=no 5835602e473dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5836602e473dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 5837602e473dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 5838602e473dSmrg # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 5839602e473dSmrg # Instead, shared libraries are loaded at an image base (0x10000000 by 5840602e473dSmrg # default) and relocated if they conflict, which is a slow very memory 5841602e473dSmrg # consuming and fragmenting process. To avoid this, we pick a random, 5842602e473dSmrg # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 5843602e473dSmrg # time. Moving up from 0x10000000 also allows more sbrk(2) space. 5844602e473dSmrg _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' 5845602e473dSmrg _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' 5846602e473dSmrg ;; 5847602e473dSmrg irix5* | irix6*) 5848602e473dSmrg case $cc_basename in 5849602e473dSmrg CC*) 5850602e473dSmrg # SGI C++ 5851602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 5852602e473dSmrg 5853602e473dSmrg # Archives containing C++ object files must be created using 5854602e473dSmrg # "CC -ar", where "CC" is the IRIX C++ compiler. This is 5855602e473dSmrg # necessary to make sure instantiated templates are included 5856602e473dSmrg # in the archive. 5857602e473dSmrg _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' 5858602e473dSmrg ;; 5859602e473dSmrg *) 5860602e473dSmrg if test "$GXX" = yes; then 5861602e473dSmrg if test "$with_gnu_ld" = no; then 5862602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 5863602e473dSmrg else 5864602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib' 5865602e473dSmrg fi 5866602e473dSmrg fi 5867602e473dSmrg _LT_TAGVAR(link_all_deplibs, $1)=yes 5868602e473dSmrg ;; 5869602e473dSmrg esac 5870602e473dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 5871602e473dSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5872602e473dSmrg _LT_TAGVAR(inherit_rpath, $1)=yes 5873602e473dSmrg ;; 5874602e473dSmrg 5875602e473dSmrg linux* | k*bsd*-gnu | kopensolaris*-gnu) 5876602e473dSmrg case $cc_basename in 5877602e473dSmrg KCC*) 5878602e473dSmrg # Kuck and Associates, Inc. (KAI) C++ Compiler 5879602e473dSmrg 5880602e473dSmrg # KCC will only create a shared library if the output file 5881602e473dSmrg # ends with ".so" (or ".sl" for HP-UX), so rename the library 5882602e473dSmrg # to its proper name (with version) after linking. 5883602e473dSmrg _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' 5884602e473dSmrg _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' 5885602e473dSmrg # Commands to make compiler produce verbose output that lists 5886602e473dSmrg # what "hidden" libraries, object files and flags are used when 5887602e473dSmrg # linking a shared library. 5888602e473dSmrg # 5889602e473dSmrg # There doesn't appear to be a way to prevent this compiler from 5890602e473dSmrg # explicitly linking system object files so we need to strip them 5891602e473dSmrg # from the output so that they don't get included in the library 5892602e473dSmrg # dependencies. 5893602e473dSmrg 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; $ECHO "X$list" | $Xsed' 5894602e473dSmrg 5895602e473dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 5896602e473dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 5897602e473dSmrg 5898602e473dSmrg # Archives containing C++ object files must be created using 5899602e473dSmrg # "CC -Bstatic", where "CC" is the KAI C++ compiler. 5900602e473dSmrg _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' 5901602e473dSmrg ;; 5902602e473dSmrg icpc* | ecpc* ) 5903602e473dSmrg # Intel C++ 5904602e473dSmrg with_gnu_ld=yes 5905602e473dSmrg # version 8.0 and above of icpc choke on multiply defined symbols 5906602e473dSmrg # if we add $predep_objects and $postdep_objects, however 7.1 and 5907602e473dSmrg # earlier do not add the objects themselves. 5908602e473dSmrg case `$CC -V 2>&1` in 5909602e473dSmrg *"Version 7."*) 5910602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 5911602e473dSmrg _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' 5912602e473dSmrg ;; 5913602e473dSmrg *) # Version 8.0 or newer 5914602e473dSmrg tmp_idyn= 5915602e473dSmrg case $host_cpu in 5916602e473dSmrg ia64*) tmp_idyn=' -i_dynamic';; 5917602e473dSmrg esac 5918602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5919602e473dSmrg _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' 5920602e473dSmrg ;; 5921602e473dSmrg esac 5922602e473dSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=no 5923602e473dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 5924602e473dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 5925602e473dSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 5926602e473dSmrg ;; 5927602e473dSmrg pgCC* | pgcpp*) 5928602e473dSmrg # Portland Group C++ compiler 5929602e473dSmrg case `$CC -V` in 5930602e473dSmrg *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*) 5931602e473dSmrg _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ 5932602e473dSmrg rm -rf $tpldir~ 5933602e473dSmrg $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 5934602e473dSmrg compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' 5935602e473dSmrg _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ 5936602e473dSmrg rm -rf $tpldir~ 5937602e473dSmrg $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 5938602e473dSmrg $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ 5939602e473dSmrg $RANLIB $oldlib' 5940602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ 5941602e473dSmrg rm -rf $tpldir~ 5942602e473dSmrg $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 5943602e473dSmrg $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 5944602e473dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ 5945602e473dSmrg rm -rf $tpldir~ 5946602e473dSmrg $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 5947602e473dSmrg $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 5948602e473dSmrg ;; 5949602e473dSmrg *) # Version 6 will use weak symbols 5950602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 5951602e473dSmrg _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' 5952602e473dSmrg ;; 5953602e473dSmrg esac 5954602e473dSmrg 5955602e473dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 5956602e473dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 5957602e473dSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 5958602e473dSmrg ;; 5959602e473dSmrg cxx*) 5960602e473dSmrg # Compaq C++ 5961602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 5962602e473dSmrg _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' 5963602e473dSmrg 5964602e473dSmrg runpath_var=LD_RUN_PATH 5965602e473dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 5966602e473dSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5967602e473dSmrg 5968602e473dSmrg # Commands to make compiler produce verbose output that lists 5969602e473dSmrg # what "hidden" libraries, object files and flags are used when 5970602e473dSmrg # linking a shared library. 5971602e473dSmrg # 5972602e473dSmrg # There doesn't appear to be a way to prevent this compiler from 5973602e473dSmrg # explicitly linking system object files so we need to strip them 5974602e473dSmrg # from the output so that they don't get included in the library 5975602e473dSmrg # dependencies. 5976602e473dSmrg output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' 5977602e473dSmrg ;; 5978602e473dSmrg xl*) 5979602e473dSmrg # IBM XL 8.0 on PPC, with GNU ld 5980602e473dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 5981602e473dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 5982602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5983602e473dSmrg if test "x$supports_anon_versioning" = xyes; then 5984602e473dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 5985602e473dSmrg cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 5986602e473dSmrg echo "local: *; };" >> $output_objdir/$libname.ver~ 5987602e473dSmrg $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 5988602e473dSmrg fi 5989602e473dSmrg ;; 5990602e473dSmrg *) 5991602e473dSmrg case `$CC -V 2>&1 | sed 5q` in 5992602e473dSmrg *Sun\ C*) 5993602e473dSmrg # Sun C++ 5.9 5994602e473dSmrg _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' 5995602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 5996602e473dSmrg _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' 5997602e473dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 5998602e473dSmrg _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; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 5999602e473dSmrg _LT_TAGVAR(compiler_needs_object, $1)=yes 6000602e473dSmrg 6001602e473dSmrg # Not sure whether something based on 6002602e473dSmrg # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 6003602e473dSmrg # would be better. 6004602e473dSmrg output_verbose_link_cmd='echo' 6005602e473dSmrg 6006602e473dSmrg # Archives containing C++ object files must be created using 6007602e473dSmrg # "CC -xar", where "CC" is the Sun C++ compiler. This is 6008602e473dSmrg # necessary to make sure instantiated templates are included 6009602e473dSmrg # in the archive. 6010602e473dSmrg _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 6011602e473dSmrg ;; 6012602e473dSmrg esac 6013602e473dSmrg ;; 6014602e473dSmrg esac 6015602e473dSmrg ;; 6016602e473dSmrg 6017602e473dSmrg lynxos*) 6018602e473dSmrg # FIXME: insert proper C++ library support 6019602e473dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 6020602e473dSmrg ;; 6021602e473dSmrg 6022602e473dSmrg m88k*) 6023602e473dSmrg # FIXME: insert proper C++ library support 6024602e473dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 6025602e473dSmrg ;; 6026602e473dSmrg 6027602e473dSmrg mvs*) 6028602e473dSmrg case $cc_basename in 6029602e473dSmrg cxx*) 6030602e473dSmrg # FIXME: insert proper C++ library support 6031602e473dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 6032602e473dSmrg ;; 6033602e473dSmrg *) 6034602e473dSmrg # FIXME: insert proper C++ library support 6035602e473dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 6036602e473dSmrg ;; 6037602e473dSmrg esac 6038602e473dSmrg ;; 6039602e473dSmrg 6040602e473dSmrg netbsd*) 6041602e473dSmrg if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 6042602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 6043602e473dSmrg wlarc= 6044602e473dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6045602e473dSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 6046602e473dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6047602e473dSmrg fi 6048602e473dSmrg # Workaround some broken pre-1.5 toolchains 6049602e473dSmrg output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 6050602e473dSmrg ;; 6051602e473dSmrg 6052602e473dSmrg *nto* | *qnx*) 6053602e473dSmrg _LT_TAGVAR(ld_shlibs, $1)=yes 6054602e473dSmrg ;; 6055602e473dSmrg 6056602e473dSmrg openbsd2*) 6057602e473dSmrg # C++ shared libraries are fairly broken 6058602e473dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 6059602e473dSmrg ;; 6060602e473dSmrg 6061602e473dSmrg openbsd*) 6062602e473dSmrg if test -f /usr/libexec/ld.so; then 6063602e473dSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 6064602e473dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6065602e473dSmrg _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 6066602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 6067602e473dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 6068602e473dSmrg if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6069602e473dSmrg _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' 6070602e473dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 6071602e473dSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 6072602e473dSmrg fi 6073602e473dSmrg output_verbose_link_cmd=echo 6074602e473dSmrg else 6075602e473dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 6076602e473dSmrg fi 6077602e473dSmrg ;; 6078602e473dSmrg 6079602e473dSmrg osf3* | osf4* | osf5*) 6080602e473dSmrg case $cc_basename in 6081602e473dSmrg KCC*) 6082602e473dSmrg # Kuck and Associates, Inc. (KAI) C++ Compiler 6083602e473dSmrg 6084602e473dSmrg # KCC will only create a shared library if the output file 6085602e473dSmrg # ends with ".so" (or ".sl" for HP-UX), so rename the library 6086602e473dSmrg # to its proper name (with version) after linking. 6087602e473dSmrg _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' 6088602e473dSmrg 6089602e473dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 6090602e473dSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6091602e473dSmrg 6092602e473dSmrg # Archives containing C++ object files must be created using 6093602e473dSmrg # the KAI C++ compiler. 6094602e473dSmrg case $host in 6095602e473dSmrg osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; 6096602e473dSmrg *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; 6097602e473dSmrg esac 6098602e473dSmrg ;; 6099602e473dSmrg RCC*) 6100602e473dSmrg # Rational C++ 2.4.1 6101602e473dSmrg # FIXME: insert proper C++ library support 6102602e473dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 6103602e473dSmrg ;; 6104602e473dSmrg cxx*) 6105602e473dSmrg case $host in 6106602e473dSmrg osf3*) 6107602e473dSmrg _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 6108602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 6109602e473dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 6110602e473dSmrg ;; 6111602e473dSmrg *) 6112602e473dSmrg _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 6113602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 6114602e473dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 6115602e473dSmrg echo "-hidden">> $lib.exp~ 6116602e473dSmrg $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~ 6117602e473dSmrg $RM $lib.exp' 6118602e473dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 6119602e473dSmrg ;; 6120602e473dSmrg esac 6121602e473dSmrg 6122602e473dSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6123602e473dSmrg 6124602e473dSmrg # Commands to make compiler produce verbose output that lists 6125602e473dSmrg # what "hidden" libraries, object files and flags are used when 6126602e473dSmrg # linking a shared library. 6127602e473dSmrg # 6128602e473dSmrg # There doesn't appear to be a way to prevent this compiler from 6129602e473dSmrg # explicitly linking system object files so we need to strip them 6130602e473dSmrg # from the output so that they don't get included in the library 6131602e473dSmrg # dependencies. 6132602e473dSmrg output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' 6133602e473dSmrg ;; 6134602e473dSmrg *) 6135602e473dSmrg if test "$GXX" = yes && test "$with_gnu_ld" = no; then 6136602e473dSmrg _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 6137602e473dSmrg case $host in 6138602e473dSmrg osf3*) 6139602e473dSmrg _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" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 6140602e473dSmrg ;; 6141602e473dSmrg *) 6142602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 6143602e473dSmrg ;; 6144602e473dSmrg esac 6145602e473dSmrg 6146602e473dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 6147602e473dSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6148602e473dSmrg 6149602e473dSmrg # Commands to make compiler produce verbose output that lists 6150602e473dSmrg # what "hidden" libraries, object files and flags are used when 6151602e473dSmrg # linking a shared library. 6152602e473dSmrg output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 6153602e473dSmrg 6154602e473dSmrg else 6155602e473dSmrg # FIXME: insert proper C++ library support 6156602e473dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 6157602e473dSmrg fi 6158602e473dSmrg ;; 6159602e473dSmrg esac 6160602e473dSmrg ;; 6161602e473dSmrg 6162602e473dSmrg psos*) 6163602e473dSmrg # FIXME: insert proper C++ library support 6164602e473dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 6165602e473dSmrg ;; 6166602e473dSmrg 6167602e473dSmrg sunos4*) 6168602e473dSmrg case $cc_basename in 6169602e473dSmrg CC*) 6170602e473dSmrg # Sun C++ 4.x 6171602e473dSmrg # FIXME: insert proper C++ library support 6172602e473dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 6173602e473dSmrg ;; 6174602e473dSmrg lcc*) 6175602e473dSmrg # Lucid 6176602e473dSmrg # FIXME: insert proper C++ library support 6177602e473dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 6178602e473dSmrg ;; 6179602e473dSmrg *) 6180602e473dSmrg # FIXME: insert proper C++ library support 6181602e473dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 6182602e473dSmrg ;; 6183602e473dSmrg esac 6184602e473dSmrg ;; 6185602e473dSmrg 6186602e473dSmrg solaris*) 6187602e473dSmrg case $cc_basename in 6188602e473dSmrg CC*) 6189602e473dSmrg # Sun C++ 4.2, 5.x and Centerline C++ 6190602e473dSmrg _LT_TAGVAR(archive_cmds_need_lc,$1)=yes 6191602e473dSmrg _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' 6192602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 6193602e473dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 6194602e473dSmrg $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' 6195602e473dSmrg 6196602e473dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6197602e473dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6198602e473dSmrg case $host_os in 6199602e473dSmrg solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 6200602e473dSmrg *) 6201602e473dSmrg # The compiler driver will combine and reorder linker options, 6202602e473dSmrg # but understands `-z linker_flag'. 6203602e473dSmrg # Supported since Solaris 2.6 (maybe 2.5.1?) 6204602e473dSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 6205602e473dSmrg ;; 6206602e473dSmrg esac 6207602e473dSmrg _LT_TAGVAR(link_all_deplibs, $1)=yes 6208602e473dSmrg 6209602e473dSmrg output_verbose_link_cmd='echo' 6210602e473dSmrg 6211602e473dSmrg # Archives containing C++ object files must be created using 6212602e473dSmrg # "CC -xar", where "CC" is the Sun C++ compiler. This is 6213602e473dSmrg # necessary to make sure instantiated templates are included 6214602e473dSmrg # in the archive. 6215602e473dSmrg _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 6216602e473dSmrg ;; 6217602e473dSmrg gcx*) 6218602e473dSmrg # Green Hills C++ Compiler 6219602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 6220602e473dSmrg 6221602e473dSmrg # The C++ compiler must be used to create the archive. 6222602e473dSmrg _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 6223602e473dSmrg ;; 6224602e473dSmrg *) 6225602e473dSmrg # GNU C++ compiler with Solaris linker 6226602e473dSmrg if test "$GXX" = yes && test "$with_gnu_ld" = no; then 6227602e473dSmrg _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' 6228602e473dSmrg if $CC --version | $GREP -v '^2\.7' > /dev/null; then 6229602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 6230602e473dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 6231602e473dSmrg $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 6232602e473dSmrg 6233602e473dSmrg # Commands to make compiler produce verbose output that lists 6234602e473dSmrg # what "hidden" libraries, object files and flags are used when 6235602e473dSmrg # linking a shared library. 6236602e473dSmrg output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 6237602e473dSmrg else 6238602e473dSmrg # g++ 2.7 appears to require `-G' NOT `-shared' on this 6239602e473dSmrg # platform. 6240602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 6241602e473dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 6242602e473dSmrg $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 6243602e473dSmrg 6244602e473dSmrg # Commands to make compiler produce verbose output that lists 6245602e473dSmrg # what "hidden" libraries, object files and flags are used when 6246602e473dSmrg # linking a shared library. 6247602e473dSmrg output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 6248602e473dSmrg fi 6249602e473dSmrg 6250602e473dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' 6251602e473dSmrg case $host_os in 6252602e473dSmrg solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 6253602e473dSmrg *) 6254602e473dSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 6255602e473dSmrg ;; 6256602e473dSmrg esac 6257602e473dSmrg fi 6258602e473dSmrg ;; 6259602e473dSmrg esac 6260602e473dSmrg ;; 6261602e473dSmrg 6262602e473dSmrg sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 6263602e473dSmrg _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 6264602e473dSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=no 6265602e473dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6266602e473dSmrg runpath_var='LD_RUN_PATH' 6267602e473dSmrg 6268602e473dSmrg case $cc_basename in 6269602e473dSmrg CC*) 6270602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6271602e473dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6272602e473dSmrg ;; 6273602e473dSmrg *) 6274602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6275602e473dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6276602e473dSmrg ;; 6277602e473dSmrg esac 6278602e473dSmrg ;; 6279602e473dSmrg 6280602e473dSmrg sysv5* | sco3.2v5* | sco5v6*) 6281602e473dSmrg # Note: We can NOT use -z defs as we might desire, because we do not 6282602e473dSmrg # link with -lc, and that would cause any symbols used from libc to 6283602e473dSmrg # always be unresolved, which means just about no library would 6284602e473dSmrg # ever link correctly. If we're not using GNU ld we use -z text 6285602e473dSmrg # though, which does catch some bad symbols but isn't as heavy-handed 6286602e473dSmrg # as -z defs. 6287602e473dSmrg _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 6288602e473dSmrg _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' 6289602e473dSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=no 6290602e473dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6291602e473dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' 6292602e473dSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 6293602e473dSmrg _LT_TAGVAR(link_all_deplibs, $1)=yes 6294602e473dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' 6295602e473dSmrg runpath_var='LD_RUN_PATH' 6296602e473dSmrg 6297602e473dSmrg case $cc_basename in 6298602e473dSmrg CC*) 6299602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6300602e473dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6301602e473dSmrg ;; 6302602e473dSmrg *) 6303602e473dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6304602e473dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6305602e473dSmrg ;; 6306602e473dSmrg esac 6307602e473dSmrg ;; 6308602e473dSmrg 6309602e473dSmrg tandem*) 6310602e473dSmrg case $cc_basename in 6311602e473dSmrg NCC*) 6312602e473dSmrg # NonStop-UX NCC 3.20 6313602e473dSmrg # FIXME: insert proper C++ library support 6314602e473dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 6315602e473dSmrg ;; 6316602e473dSmrg *) 6317602e473dSmrg # FIXME: insert proper C++ library support 6318602e473dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 6319602e473dSmrg ;; 6320602e473dSmrg esac 6321602e473dSmrg ;; 6322602e473dSmrg 6323602e473dSmrg vxworks*) 6324602e473dSmrg # FIXME: insert proper C++ library support 6325602e473dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 6326602e473dSmrg ;; 6327602e473dSmrg 6328602e473dSmrg *) 6329602e473dSmrg # FIXME: insert proper C++ library support 6330602e473dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 6331602e473dSmrg ;; 6332602e473dSmrg esac 6333602e473dSmrg 6334602e473dSmrg AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) 6335602e473dSmrg test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 6336602e473dSmrg 6337602e473dSmrg _LT_TAGVAR(GCC, $1)="$GXX" 6338602e473dSmrg _LT_TAGVAR(LD, $1)="$LD" 6339602e473dSmrg 6340602e473dSmrg ## CAVEAT EMPTOR: 6341602e473dSmrg ## There is no encapsulation within the following macros, do not change 6342602e473dSmrg ## the running order or otherwise move them around unless you know exactly 6343602e473dSmrg ## what you are doing... 6344602e473dSmrg _LT_SYS_HIDDEN_LIBDEPS($1) 6345602e473dSmrg _LT_COMPILER_PIC($1) 6346602e473dSmrg _LT_COMPILER_C_O($1) 6347602e473dSmrg _LT_COMPILER_FILE_LOCKS($1) 6348602e473dSmrg _LT_LINKER_SHLIBS($1) 6349602e473dSmrg _LT_SYS_DYNAMIC_LINKER($1) 6350602e473dSmrg _LT_LINKER_HARDCODE_LIBPATH($1) 6351602e473dSmrg 6352602e473dSmrg _LT_CONFIG($1) 6353602e473dSmrg fi # test -n "$compiler" 6354602e473dSmrg 6355602e473dSmrg CC=$lt_save_CC 6356602e473dSmrg LDCXX=$LD 6357602e473dSmrg LD=$lt_save_LD 6358602e473dSmrg GCC=$lt_save_GCC 6359602e473dSmrg with_gnu_ld=$lt_save_with_gnu_ld 6360602e473dSmrg lt_cv_path_LDCXX=$lt_cv_path_LD 6361602e473dSmrg lt_cv_path_LD=$lt_save_path_LD 6362602e473dSmrg lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 6363602e473dSmrg lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 6364602e473dSmrgfi # test "$_lt_caught_CXX_error" != yes 6365602e473dSmrg 6366602e473dSmrgAC_LANG_POP 6367602e473dSmrg])# _LT_LANG_CXX_CONFIG 6368602e473dSmrg 6369602e473dSmrg 6370602e473dSmrg# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) 6371602e473dSmrg# --------------------------------- 6372602e473dSmrg# Figure out "hidden" library dependencies from verbose 6373602e473dSmrg# compiler output when linking a shared library. 6374602e473dSmrg# Parse the compiler output and extract the necessary 6375602e473dSmrg# objects, libraries and library flags. 6376602e473dSmrgm4_defun([_LT_SYS_HIDDEN_LIBDEPS], 6377602e473dSmrg[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 6378602e473dSmrg# Dependencies to place before and after the object being linked: 6379602e473dSmrg_LT_TAGVAR(predep_objects, $1)= 6380602e473dSmrg_LT_TAGVAR(postdep_objects, $1)= 6381602e473dSmrg_LT_TAGVAR(predeps, $1)= 6382602e473dSmrg_LT_TAGVAR(postdeps, $1)= 6383602e473dSmrg_LT_TAGVAR(compiler_lib_search_path, $1)= 6384602e473dSmrg 6385602e473dSmrgdnl we can't use the lt_simple_compile_test_code here, 6386602e473dSmrgdnl because it contains code intended for an executable, 6387602e473dSmrgdnl not a library. It's possible we should let each 6388602e473dSmrgdnl tag define a new lt_????_link_test_code variable, 6389602e473dSmrgdnl but it's only used here... 6390602e473dSmrgm4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF 6391602e473dSmrgint a; 6392602e473dSmrgvoid foo (void) { a = 0; } 6393602e473dSmrg_LT_EOF 6394602e473dSmrg], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF 6395602e473dSmrgclass Foo 6396602e473dSmrg{ 6397602e473dSmrgpublic: 6398602e473dSmrg Foo (void) { a = 0; } 6399602e473dSmrgprivate: 6400602e473dSmrg int a; 6401602e473dSmrg}; 6402602e473dSmrg_LT_EOF 6403602e473dSmrg], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF 6404602e473dSmrg subroutine foo 6405602e473dSmrg implicit none 6406602e473dSmrg integer*4 a 6407602e473dSmrg a=0 6408602e473dSmrg return 6409602e473dSmrg end 6410602e473dSmrg_LT_EOF 6411602e473dSmrg], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF 6412602e473dSmrg subroutine foo 6413602e473dSmrg implicit none 6414602e473dSmrg integer a 6415602e473dSmrg a=0 6416602e473dSmrg return 6417602e473dSmrg end 6418602e473dSmrg_LT_EOF 6419602e473dSmrg], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF 6420602e473dSmrgpublic class foo { 6421602e473dSmrg private int a; 6422602e473dSmrg public void bar (void) { 6423602e473dSmrg a = 0; 6424602e473dSmrg } 6425602e473dSmrg}; 6426602e473dSmrg_LT_EOF 6427602e473dSmrg]) 6428602e473dSmrgdnl Parse the compiler output and extract the necessary 6429602e473dSmrgdnl objects, libraries and library flags. 6430602e473dSmrgif AC_TRY_EVAL(ac_compile); then 6431602e473dSmrg # Parse the compiler output and extract the necessary 6432602e473dSmrg # objects, libraries and library flags. 6433602e473dSmrg 6434602e473dSmrg # Sentinel used to keep track of whether or not we are before 6435602e473dSmrg # the conftest object file. 6436602e473dSmrg pre_test_object_deps_done=no 6437602e473dSmrg 6438602e473dSmrg for p in `eval "$output_verbose_link_cmd"`; do 6439602e473dSmrg case $p in 6440602e473dSmrg 6441602e473dSmrg -L* | -R* | -l*) 6442602e473dSmrg # Some compilers place space between "-{L,R}" and the path. 6443602e473dSmrg # Remove the space. 6444602e473dSmrg if test $p = "-L" || 6445602e473dSmrg test $p = "-R"; then 6446602e473dSmrg prev=$p 6447602e473dSmrg continue 6448602e473dSmrg else 6449602e473dSmrg prev= 6450602e473dSmrg fi 6451602e473dSmrg 6452602e473dSmrg if test "$pre_test_object_deps_done" = no; then 6453602e473dSmrg case $p in 6454602e473dSmrg -L* | -R*) 6455602e473dSmrg # Internal compiler library paths should come after those 6456602e473dSmrg # provided the user. The postdeps already come after the 6457602e473dSmrg # user supplied libs so there is no need to process them. 6458602e473dSmrg if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then 6459602e473dSmrg _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" 6460602e473dSmrg else 6461602e473dSmrg _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" 6462602e473dSmrg fi 6463602e473dSmrg ;; 6464602e473dSmrg # The "-l" case would never come before the object being 6465602e473dSmrg # linked, so don't bother handling this case. 6466602e473dSmrg esac 6467602e473dSmrg else 6468602e473dSmrg if test -z "$_LT_TAGVAR(postdeps, $1)"; then 6469602e473dSmrg _LT_TAGVAR(postdeps, $1)="${prev}${p}" 6470602e473dSmrg else 6471602e473dSmrg _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}" 6472602e473dSmrg fi 6473602e473dSmrg fi 6474602e473dSmrg ;; 6475602e473dSmrg 6476602e473dSmrg *.$objext) 6477602e473dSmrg # This assumes that the test object file only shows up 6478602e473dSmrg # once in the compiler output. 6479602e473dSmrg if test "$p" = "conftest.$objext"; then 6480602e473dSmrg pre_test_object_deps_done=yes 6481602e473dSmrg continue 6482602e473dSmrg fi 6483602e473dSmrg 6484602e473dSmrg if test "$pre_test_object_deps_done" = no; then 6485602e473dSmrg if test -z "$_LT_TAGVAR(predep_objects, $1)"; then 6486602e473dSmrg _LT_TAGVAR(predep_objects, $1)="$p" 6487602e473dSmrg else 6488602e473dSmrg _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" 6489602e473dSmrg fi 6490602e473dSmrg else 6491602e473dSmrg if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then 6492602e473dSmrg _LT_TAGVAR(postdep_objects, $1)="$p" 6493602e473dSmrg else 6494602e473dSmrg _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" 6495602e473dSmrg fi 6496602e473dSmrg fi 6497602e473dSmrg ;; 6498602e473dSmrg 6499602e473dSmrg *) ;; # Ignore the rest. 6500602e473dSmrg 6501602e473dSmrg esac 6502602e473dSmrg done 6503602e473dSmrg 6504602e473dSmrg # Clean up. 6505602e473dSmrg rm -f a.out a.exe 6506602e473dSmrgelse 6507602e473dSmrg echo "libtool.m4: error: problem compiling $1 test program" 6508602e473dSmrgfi 6509602e473dSmrg 6510602e473dSmrg$RM -f confest.$objext 6511602e473dSmrg 6512602e473dSmrg# PORTME: override above test on systems where it is broken 6513602e473dSmrgm4_if([$1], [CXX], 6514602e473dSmrg[case $host_os in 6515602e473dSmrginterix[[3-9]]*) 6516602e473dSmrg # Interix 3.5 installs completely hosed .la files for C++, so rather than 6517602e473dSmrg # hack all around it, let's just trust "g++" to DTRT. 6518602e473dSmrg _LT_TAGVAR(predep_objects,$1)= 6519602e473dSmrg _LT_TAGVAR(postdep_objects,$1)= 6520602e473dSmrg _LT_TAGVAR(postdeps,$1)= 6521602e473dSmrg ;; 6522602e473dSmrg 6523602e473dSmrglinux*) 6524602e473dSmrg case `$CC -V 2>&1 | sed 5q` in 6525602e473dSmrg *Sun\ C*) 6526602e473dSmrg # Sun C++ 5.9 6527602e473dSmrg 6528602e473dSmrg # The more standards-conforming stlport4 library is 6529602e473dSmrg # incompatible with the Cstd library. Avoid specifying 6530602e473dSmrg # it if it's in CXXFLAGS. Ignore libCrun as 6531602e473dSmrg # -library=stlport4 depends on it. 6532602e473dSmrg case " $CXX $CXXFLAGS " in 6533602e473dSmrg *" -library=stlport4 "*) 6534602e473dSmrg solaris_use_stlport4=yes 6535602e473dSmrg ;; 6536602e473dSmrg esac 6537602e473dSmrg 6538602e473dSmrg if test "$solaris_use_stlport4" != yes; then 6539602e473dSmrg _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' 6540602e473dSmrg fi 6541602e473dSmrg ;; 6542602e473dSmrg esac 6543602e473dSmrg ;; 6544602e473dSmrg 6545602e473dSmrgsolaris*) 6546602e473dSmrg case $cc_basename in 6547602e473dSmrg CC*) 6548602e473dSmrg # The more standards-conforming stlport4 library is 6549602e473dSmrg # incompatible with the Cstd library. Avoid specifying 6550602e473dSmrg # it if it's in CXXFLAGS. Ignore libCrun as 6551602e473dSmrg # -library=stlport4 depends on it. 6552602e473dSmrg case " $CXX $CXXFLAGS " in 6553602e473dSmrg *" -library=stlport4 "*) 6554602e473dSmrg solaris_use_stlport4=yes 6555602e473dSmrg ;; 6556602e473dSmrg esac 6557602e473dSmrg 6558602e473dSmrg # Adding this requires a known-good setup of shared libraries for 6559602e473dSmrg # Sun compiler versions before 5.6, else PIC objects from an old 6560602e473dSmrg # archive will be linked into the output, leading to subtle bugs. 6561602e473dSmrg if test "$solaris_use_stlport4" != yes; then 6562602e473dSmrg _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' 6563602e473dSmrg fi 6564602e473dSmrg ;; 6565602e473dSmrg esac 6566602e473dSmrg ;; 6567602e473dSmrgesac 6568602e473dSmrg]) 6569602e473dSmrg 6570602e473dSmrgcase " $_LT_TAGVAR(postdeps, $1) " in 6571602e473dSmrg*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; 6572602e473dSmrgesac 6573602e473dSmrg _LT_TAGVAR(compiler_lib_search_dirs, $1)= 6574602e473dSmrgif test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then 6575602e473dSmrg _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 6576602e473dSmrgfi 6577602e473dSmrg_LT_TAGDECL([], [compiler_lib_search_dirs], [1], 6578602e473dSmrg [The directories searched by this compiler when creating a shared library]) 6579602e473dSmrg_LT_TAGDECL([], [predep_objects], [1], 6580602e473dSmrg [Dependencies to place before and after the objects being linked to 6581602e473dSmrg create a shared library]) 6582602e473dSmrg_LT_TAGDECL([], [postdep_objects], [1]) 6583602e473dSmrg_LT_TAGDECL([], [predeps], [1]) 6584602e473dSmrg_LT_TAGDECL([], [postdeps], [1]) 6585602e473dSmrg_LT_TAGDECL([], [compiler_lib_search_path], [1], 6586602e473dSmrg [The library search path used internally by the compiler when linking 6587602e473dSmrg a shared library]) 6588602e473dSmrg])# _LT_SYS_HIDDEN_LIBDEPS 6589602e473dSmrg 6590602e473dSmrg 6591602e473dSmrg# _LT_PROG_F77 6592602e473dSmrg# ------------ 6593602e473dSmrg# Since AC_PROG_F77 is broken, in that it returns the empty string 6594602e473dSmrg# if there is no fortran compiler, we have our own version here. 6595602e473dSmrgm4_defun([_LT_PROG_F77], 6596602e473dSmrg[ 6597602e473dSmrgpushdef([AC_MSG_ERROR], [_lt_disable_F77=yes]) 6598602e473dSmrgAC_PROG_F77 6599602e473dSmrgif test -z "$F77" || test "X$F77" = "Xno"; then 6600602e473dSmrg _lt_disable_F77=yes 6601602e473dSmrgfi 6602602e473dSmrgpopdef([AC_MSG_ERROR]) 6603602e473dSmrg])# _LT_PROG_F77 6604602e473dSmrg 6605602e473dSmrgdnl aclocal-1.4 backwards compatibility: 6606602e473dSmrgdnl AC_DEFUN([_LT_PROG_F77], []) 6607602e473dSmrg 6608602e473dSmrg 6609602e473dSmrg# _LT_LANG_F77_CONFIG([TAG]) 6610602e473dSmrg# -------------------------- 6611602e473dSmrg# Ensure that the configuration variables for a Fortran 77 compiler are 6612602e473dSmrg# suitably defined. These variables are subsequently used by _LT_CONFIG 6613602e473dSmrg# to write the compiler configuration to `libtool'. 6614602e473dSmrgm4_defun([_LT_LANG_F77_CONFIG], 6615602e473dSmrg[AC_REQUIRE([_LT_PROG_F77])dnl 6616602e473dSmrgAC_LANG_PUSH(Fortran 77) 6617602e473dSmrg 6618602e473dSmrg_LT_TAGVAR(archive_cmds_need_lc, $1)=no 6619602e473dSmrg_LT_TAGVAR(allow_undefined_flag, $1)= 6620602e473dSmrg_LT_TAGVAR(always_export_symbols, $1)=no 6621602e473dSmrg_LT_TAGVAR(archive_expsym_cmds, $1)= 6622602e473dSmrg_LT_TAGVAR(export_dynamic_flag_spec, $1)= 6623602e473dSmrg_LT_TAGVAR(hardcode_direct, $1)=no 6624602e473dSmrg_LT_TAGVAR(hardcode_direct_absolute, $1)=no 6625602e473dSmrg_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 6626602e473dSmrg_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 6627602e473dSmrg_LT_TAGVAR(hardcode_libdir_separator, $1)= 6628602e473dSmrg_LT_TAGVAR(hardcode_minus_L, $1)=no 6629602e473dSmrg_LT_TAGVAR(hardcode_automatic, $1)=no 6630602e473dSmrg_LT_TAGVAR(inherit_rpath, $1)=no 6631602e473dSmrg_LT_TAGVAR(module_cmds, $1)= 6632602e473dSmrg_LT_TAGVAR(module_expsym_cmds, $1)= 6633602e473dSmrg_LT_TAGVAR(link_all_deplibs, $1)=unknown 6634602e473dSmrg_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 6635602e473dSmrg_LT_TAGVAR(no_undefined_flag, $1)= 6636602e473dSmrg_LT_TAGVAR(whole_archive_flag_spec, $1)= 6637602e473dSmrg_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 6638602e473dSmrg 6639602e473dSmrg# Source file extension for f77 test sources. 6640602e473dSmrgac_ext=f 6641602e473dSmrg 6642602e473dSmrg# Object file extension for compiled f77 test sources. 6643602e473dSmrgobjext=o 6644602e473dSmrg_LT_TAGVAR(objext, $1)=$objext 6645602e473dSmrg 6646602e473dSmrg# No sense in running all these tests if we already determined that 6647602e473dSmrg# the F77 compiler isn't working. Some variables (like enable_shared) 6648602e473dSmrg# are currently assumed to apply to all compilers on this platform, 6649602e473dSmrg# and will be corrupted by setting them based on a non-working compiler. 6650602e473dSmrgif test "$_lt_disable_F77" != yes; then 6651602e473dSmrg # Code to be used in simple compile tests 6652602e473dSmrg lt_simple_compile_test_code="\ 6653602e473dSmrg subroutine t 6654602e473dSmrg return 6655602e473dSmrg end 6656602e473dSmrg" 6657602e473dSmrg 6658602e473dSmrg # Code to be used in simple link tests 6659602e473dSmrg lt_simple_link_test_code="\ 6660602e473dSmrg program t 6661602e473dSmrg end 6662602e473dSmrg" 6663602e473dSmrg 6664602e473dSmrg # ltmain only uses $CC for tagged configurations so make sure $CC is set. 6665602e473dSmrg _LT_TAG_COMPILER 6666602e473dSmrg 6667602e473dSmrg # save warnings/boilerplate of simple test code 6668602e473dSmrg _LT_COMPILER_BOILERPLATE 6669602e473dSmrg _LT_LINKER_BOILERPLATE 6670602e473dSmrg 6671602e473dSmrg # Allow CC to be a program name with arguments. 6672602e473dSmrg lt_save_CC="$CC" 6673602e473dSmrg lt_save_GCC=$GCC 6674602e473dSmrg CC=${F77-"f77"} 6675602e473dSmrg compiler=$CC 6676602e473dSmrg _LT_TAGVAR(compiler, $1)=$CC 6677602e473dSmrg _LT_CC_BASENAME([$compiler]) 6678602e473dSmrg GCC=$G77 6679602e473dSmrg if test -n "$compiler"; then 6680602e473dSmrg AC_MSG_CHECKING([if libtool supports shared libraries]) 6681602e473dSmrg AC_MSG_RESULT([$can_build_shared]) 6682602e473dSmrg 6683602e473dSmrg AC_MSG_CHECKING([whether to build shared libraries]) 6684602e473dSmrg test "$can_build_shared" = "no" && enable_shared=no 6685602e473dSmrg 6686602e473dSmrg # On AIX, shared libraries and static libraries use the same namespace, and 6687602e473dSmrg # are all built from PIC. 6688602e473dSmrg case $host_os in 6689602e473dSmrg aix3*) 6690602e473dSmrg test "$enable_shared" = yes && enable_static=no 6691602e473dSmrg if test -n "$RANLIB"; then 6692602e473dSmrg archive_cmds="$archive_cmds~\$RANLIB \$lib" 6693602e473dSmrg postinstall_cmds='$RANLIB $lib' 6694602e473dSmrg fi 6695602e473dSmrg ;; 6696602e473dSmrg aix[[4-9]]*) 6697602e473dSmrg if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 6698602e473dSmrg test "$enable_shared" = yes && enable_static=no 6699602e473dSmrg fi 6700602e473dSmrg ;; 6701602e473dSmrg esac 6702602e473dSmrg AC_MSG_RESULT([$enable_shared]) 6703602e473dSmrg 6704602e473dSmrg AC_MSG_CHECKING([whether to build static libraries]) 6705602e473dSmrg # Make sure either enable_shared or enable_static is yes. 6706602e473dSmrg test "$enable_shared" = yes || enable_static=yes 6707602e473dSmrg AC_MSG_RESULT([$enable_static]) 6708602e473dSmrg 6709602e473dSmrg _LT_TAGVAR(GCC, $1)="$G77" 6710602e473dSmrg _LT_TAGVAR(LD, $1)="$LD" 6711602e473dSmrg 6712602e473dSmrg ## CAVEAT EMPTOR: 6713602e473dSmrg ## There is no encapsulation within the following macros, do not change 6714602e473dSmrg ## the running order or otherwise move them around unless you know exactly 6715602e473dSmrg ## what you are doing... 6716602e473dSmrg _LT_COMPILER_PIC($1) 6717602e473dSmrg _LT_COMPILER_C_O($1) 6718602e473dSmrg _LT_COMPILER_FILE_LOCKS($1) 6719602e473dSmrg _LT_LINKER_SHLIBS($1) 6720602e473dSmrg _LT_SYS_DYNAMIC_LINKER($1) 6721602e473dSmrg _LT_LINKER_HARDCODE_LIBPATH($1) 6722602e473dSmrg 6723602e473dSmrg _LT_CONFIG($1) 6724602e473dSmrg fi # test -n "$compiler" 6725602e473dSmrg 6726602e473dSmrg GCC=$lt_save_GCC 6727602e473dSmrg CC="$lt_save_CC" 6728602e473dSmrgfi # test "$_lt_disable_F77" != yes 6729602e473dSmrg 6730602e473dSmrgAC_LANG_POP 6731602e473dSmrg])# _LT_LANG_F77_CONFIG 6732602e473dSmrg 6733602e473dSmrg 6734602e473dSmrg# _LT_PROG_FC 6735602e473dSmrg# ----------- 6736602e473dSmrg# Since AC_PROG_FC is broken, in that it returns the empty string 6737602e473dSmrg# if there is no fortran compiler, we have our own version here. 6738602e473dSmrgm4_defun([_LT_PROG_FC], 6739602e473dSmrg[ 6740602e473dSmrgpushdef([AC_MSG_ERROR], [_lt_disable_FC=yes]) 6741602e473dSmrgAC_PROG_FC 6742602e473dSmrgif test -z "$FC" || test "X$FC" = "Xno"; then 6743602e473dSmrg _lt_disable_FC=yes 6744602e473dSmrgfi 6745602e473dSmrgpopdef([AC_MSG_ERROR]) 6746602e473dSmrg])# _LT_PROG_FC 6747602e473dSmrg 6748602e473dSmrgdnl aclocal-1.4 backwards compatibility: 6749602e473dSmrgdnl AC_DEFUN([_LT_PROG_FC], []) 6750602e473dSmrg 6751602e473dSmrg 6752602e473dSmrg# _LT_LANG_FC_CONFIG([TAG]) 6753602e473dSmrg# ------------------------- 6754602e473dSmrg# Ensure that the configuration variables for a Fortran compiler are 6755602e473dSmrg# suitably defined. These variables are subsequently used by _LT_CONFIG 6756602e473dSmrg# to write the compiler configuration to `libtool'. 6757602e473dSmrgm4_defun([_LT_LANG_FC_CONFIG], 6758602e473dSmrg[AC_REQUIRE([_LT_PROG_FC])dnl 6759602e473dSmrgAC_LANG_PUSH(Fortran) 6760602e473dSmrg 6761602e473dSmrg_LT_TAGVAR(archive_cmds_need_lc, $1)=no 6762602e473dSmrg_LT_TAGVAR(allow_undefined_flag, $1)= 6763602e473dSmrg_LT_TAGVAR(always_export_symbols, $1)=no 6764602e473dSmrg_LT_TAGVAR(archive_expsym_cmds, $1)= 6765602e473dSmrg_LT_TAGVAR(export_dynamic_flag_spec, $1)= 6766602e473dSmrg_LT_TAGVAR(hardcode_direct, $1)=no 6767602e473dSmrg_LT_TAGVAR(hardcode_direct_absolute, $1)=no 6768602e473dSmrg_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 6769602e473dSmrg_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 6770602e473dSmrg_LT_TAGVAR(hardcode_libdir_separator, $1)= 6771602e473dSmrg_LT_TAGVAR(hardcode_minus_L, $1)=no 6772602e473dSmrg_LT_TAGVAR(hardcode_automatic, $1)=no 6773602e473dSmrg_LT_TAGVAR(inherit_rpath, $1)=no 6774602e473dSmrg_LT_TAGVAR(module_cmds, $1)= 6775602e473dSmrg_LT_TAGVAR(module_expsym_cmds, $1)= 6776602e473dSmrg_LT_TAGVAR(link_all_deplibs, $1)=unknown 6777602e473dSmrg_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 6778602e473dSmrg_LT_TAGVAR(no_undefined_flag, $1)= 6779602e473dSmrg_LT_TAGVAR(whole_archive_flag_spec, $1)= 6780602e473dSmrg_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 6781602e473dSmrg 6782602e473dSmrg# Source file extension for fc test sources. 6783602e473dSmrgac_ext=${ac_fc_srcext-f} 6784602e473dSmrg 6785602e473dSmrg# Object file extension for compiled fc test sources. 6786602e473dSmrgobjext=o 6787602e473dSmrg_LT_TAGVAR(objext, $1)=$objext 6788602e473dSmrg 6789602e473dSmrg# No sense in running all these tests if we already determined that 6790602e473dSmrg# the FC compiler isn't working. Some variables (like enable_shared) 6791602e473dSmrg# are currently assumed to apply to all compilers on this platform, 6792602e473dSmrg# and will be corrupted by setting them based on a non-working compiler. 6793602e473dSmrgif test "$_lt_disable_FC" != yes; then 6794602e473dSmrg # Code to be used in simple compile tests 6795602e473dSmrg lt_simple_compile_test_code="\ 6796602e473dSmrg subroutine t 6797602e473dSmrg return 6798602e473dSmrg end 6799602e473dSmrg" 6800602e473dSmrg 6801602e473dSmrg # Code to be used in simple link tests 6802602e473dSmrg lt_simple_link_test_code="\ 6803602e473dSmrg program t 6804602e473dSmrg end 6805602e473dSmrg" 6806602e473dSmrg 6807602e473dSmrg # ltmain only uses $CC for tagged configurations so make sure $CC is set. 6808602e473dSmrg _LT_TAG_COMPILER 6809602e473dSmrg 6810602e473dSmrg # save warnings/boilerplate of simple test code 6811602e473dSmrg _LT_COMPILER_BOILERPLATE 6812602e473dSmrg _LT_LINKER_BOILERPLATE 6813602e473dSmrg 6814602e473dSmrg # Allow CC to be a program name with arguments. 6815602e473dSmrg lt_save_CC="$CC" 6816602e473dSmrg lt_save_GCC=$GCC 6817602e473dSmrg CC=${FC-"f95"} 6818602e473dSmrg compiler=$CC 6819602e473dSmrg GCC=$ac_cv_fc_compiler_gnu 6820602e473dSmrg 6821602e473dSmrg _LT_TAGVAR(compiler, $1)=$CC 6822602e473dSmrg _LT_CC_BASENAME([$compiler]) 6823602e473dSmrg 6824602e473dSmrg if test -n "$compiler"; then 6825602e473dSmrg AC_MSG_CHECKING([if libtool supports shared libraries]) 6826602e473dSmrg AC_MSG_RESULT([$can_build_shared]) 6827602e473dSmrg 6828602e473dSmrg AC_MSG_CHECKING([whether to build shared libraries]) 6829602e473dSmrg test "$can_build_shared" = "no" && enable_shared=no 6830602e473dSmrg 6831602e473dSmrg # On AIX, shared libraries and static libraries use the same namespace, and 6832602e473dSmrg # are all built from PIC. 6833602e473dSmrg case $host_os in 6834602e473dSmrg aix3*) 6835602e473dSmrg test "$enable_shared" = yes && enable_static=no 6836602e473dSmrg if test -n "$RANLIB"; then 6837602e473dSmrg archive_cmds="$archive_cmds~\$RANLIB \$lib" 6838602e473dSmrg postinstall_cmds='$RANLIB $lib' 6839602e473dSmrg fi 6840602e473dSmrg ;; 6841602e473dSmrg aix[[4-9]]*) 6842602e473dSmrg if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 6843602e473dSmrg test "$enable_shared" = yes && enable_static=no 6844602e473dSmrg fi 6845602e473dSmrg ;; 6846602e473dSmrg esac 6847602e473dSmrg AC_MSG_RESULT([$enable_shared]) 6848602e473dSmrg 6849602e473dSmrg AC_MSG_CHECKING([whether to build static libraries]) 6850602e473dSmrg # Make sure either enable_shared or enable_static is yes. 6851602e473dSmrg test "$enable_shared" = yes || enable_static=yes 6852602e473dSmrg AC_MSG_RESULT([$enable_static]) 6853602e473dSmrg 6854602e473dSmrg _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu" 6855602e473dSmrg _LT_TAGVAR(LD, $1)="$LD" 6856602e473dSmrg 6857602e473dSmrg ## CAVEAT EMPTOR: 6858602e473dSmrg ## There is no encapsulation within the following macros, do not change 6859602e473dSmrg ## the running order or otherwise move them around unless you know exactly 6860602e473dSmrg ## what you are doing... 6861602e473dSmrg _LT_SYS_HIDDEN_LIBDEPS($1) 6862602e473dSmrg _LT_COMPILER_PIC($1) 6863602e473dSmrg _LT_COMPILER_C_O($1) 6864602e473dSmrg _LT_COMPILER_FILE_LOCKS($1) 6865602e473dSmrg _LT_LINKER_SHLIBS($1) 6866602e473dSmrg _LT_SYS_DYNAMIC_LINKER($1) 6867602e473dSmrg _LT_LINKER_HARDCODE_LIBPATH($1) 6868602e473dSmrg 6869602e473dSmrg _LT_CONFIG($1) 6870602e473dSmrg fi # test -n "$compiler" 6871602e473dSmrg 6872602e473dSmrg GCC=$lt_save_GCC 6873602e473dSmrg CC="$lt_save_CC" 6874602e473dSmrgfi # test "$_lt_disable_FC" != yes 6875602e473dSmrg 6876602e473dSmrgAC_LANG_POP 6877602e473dSmrg])# _LT_LANG_FC_CONFIG 6878602e473dSmrg 6879602e473dSmrg 6880602e473dSmrg# _LT_LANG_GCJ_CONFIG([TAG]) 6881602e473dSmrg# -------------------------- 6882602e473dSmrg# Ensure that the configuration variables for the GNU Java Compiler compiler 6883602e473dSmrg# are suitably defined. These variables are subsequently used by _LT_CONFIG 6884602e473dSmrg# to write the compiler configuration to `libtool'. 6885602e473dSmrgm4_defun([_LT_LANG_GCJ_CONFIG], 6886602e473dSmrg[AC_REQUIRE([LT_PROG_GCJ])dnl 6887602e473dSmrgAC_LANG_SAVE 6888602e473dSmrg 6889602e473dSmrg# Source file extension for Java test sources. 6890602e473dSmrgac_ext=java 6891602e473dSmrg 6892602e473dSmrg# Object file extension for compiled Java test sources. 6893602e473dSmrgobjext=o 6894602e473dSmrg_LT_TAGVAR(objext, $1)=$objext 6895602e473dSmrg 6896602e473dSmrg# Code to be used in simple compile tests 6897602e473dSmrglt_simple_compile_test_code="class foo {}" 6898602e473dSmrg 6899602e473dSmrg# Code to be used in simple link tests 6900602e473dSmrglt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' 6901602e473dSmrg 6902602e473dSmrg# ltmain only uses $CC for tagged configurations so make sure $CC is set. 6903602e473dSmrg_LT_TAG_COMPILER 6904602e473dSmrg 6905602e473dSmrg# save warnings/boilerplate of simple test code 6906602e473dSmrg_LT_COMPILER_BOILERPLATE 6907602e473dSmrg_LT_LINKER_BOILERPLATE 6908602e473dSmrg 6909602e473dSmrg# Allow CC to be a program name with arguments. 6910602e473dSmrglt_save_CC="$CC" 6911602e473dSmrglt_save_GCC=$GCC 6912602e473dSmrgGCC=yes 6913602e473dSmrgCC=${GCJ-"gcj"} 6914602e473dSmrgcompiler=$CC 6915602e473dSmrg_LT_TAGVAR(compiler, $1)=$CC 6916602e473dSmrg_LT_TAGVAR(LD, $1)="$LD" 6917602e473dSmrg_LT_CC_BASENAME([$compiler]) 6918602e473dSmrg 6919602e473dSmrg# GCJ did not exist at the time GCC didn't implicitly link libc in. 6920602e473dSmrg_LT_TAGVAR(archive_cmds_need_lc, $1)=no 6921602e473dSmrg 6922602e473dSmrg_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 6923602e473dSmrg 6924602e473dSmrgif test -n "$compiler"; then 6925602e473dSmrg _LT_COMPILER_NO_RTTI($1) 6926602e473dSmrg _LT_COMPILER_PIC($1) 6927602e473dSmrg _LT_COMPILER_C_O($1) 6928602e473dSmrg _LT_COMPILER_FILE_LOCKS($1) 6929602e473dSmrg _LT_LINKER_SHLIBS($1) 6930602e473dSmrg _LT_LINKER_HARDCODE_LIBPATH($1) 6931602e473dSmrg 6932602e473dSmrg _LT_CONFIG($1) 6933602e473dSmrgfi 6934602e473dSmrg 6935602e473dSmrgAC_LANG_RESTORE 6936602e473dSmrg 6937602e473dSmrgGCC=$lt_save_GCC 6938602e473dSmrgCC="$lt_save_CC" 6939602e473dSmrg])# _LT_LANG_GCJ_CONFIG 6940602e473dSmrg 6941602e473dSmrg 6942602e473dSmrg# _LT_LANG_RC_CONFIG([TAG]) 6943602e473dSmrg# ------------------------- 6944602e473dSmrg# Ensure that the configuration variables for the Windows resource compiler 6945602e473dSmrg# are suitably defined. These variables are subsequently used by _LT_CONFIG 6946602e473dSmrg# to write the compiler configuration to `libtool'. 6947602e473dSmrgm4_defun([_LT_LANG_RC_CONFIG], 6948602e473dSmrg[AC_REQUIRE([LT_PROG_RC])dnl 6949602e473dSmrgAC_LANG_SAVE 6950602e473dSmrg 6951602e473dSmrg# Source file extension for RC test sources. 6952602e473dSmrgac_ext=rc 6953602e473dSmrg 6954602e473dSmrg# Object file extension for compiled RC test sources. 6955602e473dSmrgobjext=o 6956602e473dSmrg_LT_TAGVAR(objext, $1)=$objext 6957602e473dSmrg 6958602e473dSmrg# Code to be used in simple compile tests 6959602e473dSmrglt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 6960602e473dSmrg 6961602e473dSmrg# Code to be used in simple link tests 6962602e473dSmrglt_simple_link_test_code="$lt_simple_compile_test_code" 6963602e473dSmrg 6964602e473dSmrg# ltmain only uses $CC for tagged configurations so make sure $CC is set. 6965602e473dSmrg_LT_TAG_COMPILER 6966602e473dSmrg 6967602e473dSmrg# save warnings/boilerplate of simple test code 6968602e473dSmrg_LT_COMPILER_BOILERPLATE 6969602e473dSmrg_LT_LINKER_BOILERPLATE 6970602e473dSmrg 6971602e473dSmrg# Allow CC to be a program name with arguments. 6972602e473dSmrglt_save_CC="$CC" 6973602e473dSmrglt_save_GCC=$GCC 6974602e473dSmrgGCC= 6975602e473dSmrgCC=${RC-"windres"} 6976602e473dSmrgcompiler=$CC 6977602e473dSmrg_LT_TAGVAR(compiler, $1)=$CC 6978602e473dSmrg_LT_CC_BASENAME([$compiler]) 6979602e473dSmrg_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 6980602e473dSmrg 6981602e473dSmrgif test -n "$compiler"; then 6982602e473dSmrg : 6983602e473dSmrg _LT_CONFIG($1) 6984602e473dSmrgfi 6985602e473dSmrg 6986602e473dSmrgGCC=$lt_save_GCC 6987602e473dSmrgAC_LANG_RESTORE 6988602e473dSmrgCC="$lt_save_CC" 6989602e473dSmrg])# _LT_LANG_RC_CONFIG 6990602e473dSmrg 6991602e473dSmrg 6992602e473dSmrg# LT_PROG_GCJ 6993602e473dSmrg# ----------- 6994602e473dSmrgAC_DEFUN([LT_PROG_GCJ], 6995602e473dSmrg[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], 6996602e473dSmrg [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], 6997602e473dSmrg [AC_CHECK_TOOL(GCJ, gcj,) 6998602e473dSmrg test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" 6999602e473dSmrg AC_SUBST(GCJFLAGS)])])[]dnl 7000602e473dSmrg]) 7001602e473dSmrg 7002602e473dSmrg# Old name: 7003602e473dSmrgAU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) 7004602e473dSmrgdnl aclocal-1.4 backwards compatibility: 7005602e473dSmrgdnl AC_DEFUN([LT_AC_PROG_GCJ], []) 7006602e473dSmrg 7007602e473dSmrg 7008602e473dSmrg# LT_PROG_RC 7009602e473dSmrg# ---------- 7010602e473dSmrgAC_DEFUN([LT_PROG_RC], 7011602e473dSmrg[AC_CHECK_TOOL(RC, windres,) 7012602e473dSmrg]) 7013602e473dSmrg 7014602e473dSmrg# Old name: 7015602e473dSmrgAU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) 7016602e473dSmrgdnl aclocal-1.4 backwards compatibility: 7017602e473dSmrgdnl AC_DEFUN([LT_AC_PROG_RC], []) 7018602e473dSmrg 7019602e473dSmrg 7020602e473dSmrg# _LT_DECL_EGREP 7021602e473dSmrg# -------------- 7022602e473dSmrg# If we don't have a new enough Autoconf to choose the best grep 7023602e473dSmrg# available, choose the one first in the user's PATH. 7024602e473dSmrgm4_defun([_LT_DECL_EGREP], 7025602e473dSmrg[AC_REQUIRE([AC_PROG_EGREP])dnl 7026602e473dSmrgAC_REQUIRE([AC_PROG_FGREP])dnl 7027602e473dSmrgtest -z "$GREP" && GREP=grep 7028602e473dSmrg_LT_DECL([], [GREP], [1], [A grep program that handles long lines]) 7029602e473dSmrg_LT_DECL([], [EGREP], [1], [An ERE matcher]) 7030602e473dSmrg_LT_DECL([], [FGREP], [1], [A literal string matcher]) 7031602e473dSmrgdnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too 7032602e473dSmrgAC_SUBST([GREP]) 7033602e473dSmrg]) 7034602e473dSmrg 7035602e473dSmrg 7036602e473dSmrg# _LT_DECL_OBJDUMP 7037602e473dSmrg# -------------- 7038602e473dSmrg# If we don't have a new enough Autoconf to choose the best objdump 7039602e473dSmrg# available, choose the one first in the user's PATH. 7040602e473dSmrgm4_defun([_LT_DECL_OBJDUMP], 7041602e473dSmrg[AC_CHECK_TOOL(OBJDUMP, objdump, false) 7042602e473dSmrgtest -z "$OBJDUMP" && OBJDUMP=objdump 7043602e473dSmrg_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) 7044602e473dSmrgAC_SUBST([OBJDUMP]) 7045602e473dSmrg]) 7046602e473dSmrg 7047602e473dSmrg 7048602e473dSmrg# _LT_DECL_SED 7049602e473dSmrg# ------------ 7050602e473dSmrg# Check for a fully-functional sed program, that truncates 7051602e473dSmrg# as few characters as possible. Prefer GNU sed if found. 7052602e473dSmrgm4_defun([_LT_DECL_SED], 7053602e473dSmrg[AC_PROG_SED 7054602e473dSmrgtest -z "$SED" && SED=sed 7055602e473dSmrgXsed="$SED -e 1s/^X//" 7056602e473dSmrg_LT_DECL([], [SED], [1], [A sed program that does not truncate output]) 7057602e473dSmrg_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], 7058602e473dSmrg [Sed that helps us avoid accidentally triggering echo(1) options like -n]) 7059602e473dSmrg])# _LT_DECL_SED 7060602e473dSmrg 7061602e473dSmrgm4_ifndef([AC_PROG_SED], [ 7062602e473dSmrg# NOTE: This macro has been submitted for inclusion into # 7063602e473dSmrg# GNU Autoconf as AC_PROG_SED. When it is available in # 7064602e473dSmrg# a released version of Autoconf we should remove this # 7065602e473dSmrg# macro and use it instead. # 7066602e473dSmrg 7067602e473dSmrgm4_defun([AC_PROG_SED], 7068602e473dSmrg[AC_MSG_CHECKING([for a sed that does not truncate output]) 7069602e473dSmrgAC_CACHE_VAL(lt_cv_path_SED, 7070602e473dSmrg[# Loop through the user's path and test for sed and gsed. 7071602e473dSmrg# Then use that list of sed's as ones to test for truncation. 7072602e473dSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7073602e473dSmrgfor as_dir in $PATH 7074602e473dSmrgdo 7075602e473dSmrg IFS=$as_save_IFS 7076602e473dSmrg test -z "$as_dir" && as_dir=. 7077602e473dSmrg for lt_ac_prog in sed gsed; do 7078602e473dSmrg for ac_exec_ext in '' $ac_executable_extensions; do 7079602e473dSmrg if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 7080602e473dSmrg lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 7081602e473dSmrg fi 7082602e473dSmrg done 7083602e473dSmrg done 7084602e473dSmrgdone 7085602e473dSmrgIFS=$as_save_IFS 7086602e473dSmrglt_ac_max=0 7087602e473dSmrglt_ac_count=0 7088602e473dSmrg# Add /usr/xpg4/bin/sed as it is typically found on Solaris 7089602e473dSmrg# along with /bin/sed that truncates output. 7090602e473dSmrgfor lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 7091602e473dSmrg test ! -f $lt_ac_sed && continue 7092602e473dSmrg cat /dev/null > conftest.in 7093602e473dSmrg lt_ac_count=0 7094602e473dSmrg echo $ECHO_N "0123456789$ECHO_C" >conftest.in 7095602e473dSmrg # Check for GNU sed and select it if it is found. 7096602e473dSmrg if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 7097602e473dSmrg lt_cv_path_SED=$lt_ac_sed 7098602e473dSmrg break 7099602e473dSmrg fi 7100602e473dSmrg while true; do 7101602e473dSmrg cat conftest.in conftest.in >conftest.tmp 7102602e473dSmrg mv conftest.tmp conftest.in 7103602e473dSmrg cp conftest.in conftest.nl 7104602e473dSmrg echo >>conftest.nl 7105602e473dSmrg $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 7106602e473dSmrg cmp -s conftest.out conftest.nl || break 7107602e473dSmrg # 10000 chars as input seems more than enough 7108602e473dSmrg test $lt_ac_count -gt 10 && break 7109602e473dSmrg lt_ac_count=`expr $lt_ac_count + 1` 7110602e473dSmrg if test $lt_ac_count -gt $lt_ac_max; then 7111602e473dSmrg lt_ac_max=$lt_ac_count 7112602e473dSmrg lt_cv_path_SED=$lt_ac_sed 7113602e473dSmrg fi 7114602e473dSmrg done 7115602e473dSmrgdone 7116602e473dSmrg]) 7117602e473dSmrgSED=$lt_cv_path_SED 7118602e473dSmrgAC_SUBST([SED]) 7119602e473dSmrgAC_MSG_RESULT([$SED]) 7120602e473dSmrg])#AC_PROG_SED 7121602e473dSmrg])#m4_ifndef 7122602e473dSmrg 7123602e473dSmrg# Old name: 7124602e473dSmrgAU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) 7125602e473dSmrgdnl aclocal-1.4 backwards compatibility: 7126602e473dSmrgdnl AC_DEFUN([LT_AC_PROG_SED], []) 7127602e473dSmrg 7128602e473dSmrg 7129602e473dSmrg# _LT_CHECK_SHELL_FEATURES 7130602e473dSmrg# ------------------------ 7131602e473dSmrg# Find out whether the shell is Bourne or XSI compatible, 7132602e473dSmrg# or has some other useful features. 7133602e473dSmrgm4_defun([_LT_CHECK_SHELL_FEATURES], 7134602e473dSmrg[AC_MSG_CHECKING([whether the shell understands some XSI constructs]) 7135602e473dSmrg# Try some XSI features 7136602e473dSmrgxsi_shell=no 7137602e473dSmrg( _lt_dummy="a/b/c" 7138602e473dSmrg test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 7139602e473dSmrg = c,a/b,, \ 7140602e473dSmrg && eval 'test $(( 1 + 1 )) -eq 2 \ 7141602e473dSmrg && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 7142602e473dSmrg && xsi_shell=yes 7143602e473dSmrgAC_MSG_RESULT([$xsi_shell]) 7144602e473dSmrg_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell']) 7145602e473dSmrg 7146602e473dSmrgAC_MSG_CHECKING([whether the shell understands "+="]) 7147602e473dSmrglt_shell_append=no 7148602e473dSmrg( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \ 7149602e473dSmrg >/dev/null 2>&1 \ 7150602e473dSmrg && lt_shell_append=yes 7151602e473dSmrgAC_MSG_RESULT([$lt_shell_append]) 7152602e473dSmrg_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append']) 7153602e473dSmrg 7154602e473dSmrgif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 7155602e473dSmrg lt_unset=unset 7156602e473dSmrgelse 7157602e473dSmrg lt_unset=false 7158602e473dSmrgfi 7159602e473dSmrg_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl 7160602e473dSmrg 7161602e473dSmrg# test EBCDIC or ASCII 7162602e473dSmrgcase `echo X|tr X '\101'` in 7163602e473dSmrg A) # ASCII based system 7164602e473dSmrg # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 7165602e473dSmrg lt_SP2NL='tr \040 \012' 7166602e473dSmrg lt_NL2SP='tr \015\012 \040\040' 7167602e473dSmrg ;; 7168602e473dSmrg *) # EBCDIC based system 7169602e473dSmrg lt_SP2NL='tr \100 \n' 7170602e473dSmrg lt_NL2SP='tr \r\n \100\100' 7171602e473dSmrg ;; 7172602e473dSmrgesac 7173602e473dSmrg_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl 7174602e473dSmrg_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl 7175602e473dSmrg])# _LT_CHECK_SHELL_FEATURES 7176602e473dSmrg 7177602e473dSmrg 7178602e473dSmrg# _LT_PROG_XSI_SHELLFNS 7179602e473dSmrg# --------------------- 7180602e473dSmrg# Bourne and XSI compatible variants of some useful shell functions. 7181602e473dSmrgm4_defun([_LT_PROG_XSI_SHELLFNS], 7182602e473dSmrg[case $xsi_shell in 7183602e473dSmrg yes) 7184602e473dSmrg cat << \_LT_EOF >> "$cfgfile" 7185602e473dSmrg 7186602e473dSmrg# func_dirname file append nondir_replacement 7187602e473dSmrg# Compute the dirname of FILE. If nonempty, add APPEND to the result, 7188602e473dSmrg# otherwise set result to NONDIR_REPLACEMENT. 7189602e473dSmrgfunc_dirname () 7190602e473dSmrg{ 7191602e473dSmrg case ${1} in 7192602e473dSmrg */*) func_dirname_result="${1%/*}${2}" ;; 7193602e473dSmrg * ) func_dirname_result="${3}" ;; 7194602e473dSmrg esac 7195602e473dSmrg} 7196602e473dSmrg 7197602e473dSmrg# func_basename file 7198602e473dSmrgfunc_basename () 7199602e473dSmrg{ 7200602e473dSmrg func_basename_result="${1##*/}" 7201602e473dSmrg} 7202602e473dSmrg 7203602e473dSmrg# func_dirname_and_basename file append nondir_replacement 7204602e473dSmrg# perform func_basename and func_dirname in a single function 7205602e473dSmrg# call: 7206602e473dSmrg# dirname: Compute the dirname of FILE. If nonempty, 7207602e473dSmrg# add APPEND to the result, otherwise set result 7208602e473dSmrg# to NONDIR_REPLACEMENT. 7209602e473dSmrg# value returned in "$func_dirname_result" 7210602e473dSmrg# basename: Compute filename of FILE. 7211602e473dSmrg# value retuned in "$func_basename_result" 7212602e473dSmrg# Implementation must be kept synchronized with func_dirname 7213602e473dSmrg# and func_basename. For efficiency, we do not delegate to 7214602e473dSmrg# those functions but instead duplicate the functionality here. 7215602e473dSmrgfunc_dirname_and_basename () 7216602e473dSmrg{ 7217602e473dSmrg case ${1} in 7218602e473dSmrg */*) func_dirname_result="${1%/*}${2}" ;; 7219602e473dSmrg * ) func_dirname_result="${3}" ;; 7220602e473dSmrg esac 7221602e473dSmrg func_basename_result="${1##*/}" 7222602e473dSmrg} 7223602e473dSmrg 7224602e473dSmrg# func_stripname prefix suffix name 7225602e473dSmrg# strip PREFIX and SUFFIX off of NAME. 7226602e473dSmrg# PREFIX and SUFFIX must not contain globbing or regex special 7227602e473dSmrg# characters, hashes, percent signs, but SUFFIX may contain a leading 7228602e473dSmrg# dot (in which case that matches only a dot). 7229602e473dSmrgfunc_stripname () 7230602e473dSmrg{ 7231602e473dSmrg # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 7232602e473dSmrg # positional parameters, so assign one to ordinary parameter first. 7233602e473dSmrg func_stripname_result=${3} 7234602e473dSmrg func_stripname_result=${func_stripname_result#"${1}"} 7235602e473dSmrg func_stripname_result=${func_stripname_result%"${2}"} 7236602e473dSmrg} 7237602e473dSmrg 7238602e473dSmrg# func_opt_split 7239602e473dSmrgfunc_opt_split () 7240602e473dSmrg{ 7241602e473dSmrg func_opt_split_opt=${1%%=*} 7242602e473dSmrg func_opt_split_arg=${1#*=} 7243602e473dSmrg} 7244602e473dSmrg 7245602e473dSmrg# func_lo2o object 7246602e473dSmrgfunc_lo2o () 7247602e473dSmrg{ 7248602e473dSmrg case ${1} in 7249602e473dSmrg *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 7250602e473dSmrg *) func_lo2o_result=${1} ;; 7251602e473dSmrg esac 7252602e473dSmrg} 7253602e473dSmrg 7254602e473dSmrg# func_xform libobj-or-source 7255602e473dSmrgfunc_xform () 7256602e473dSmrg{ 7257602e473dSmrg func_xform_result=${1%.*}.lo 7258602e473dSmrg} 7259602e473dSmrg 7260602e473dSmrg# func_arith arithmetic-term... 7261602e473dSmrgfunc_arith () 7262602e473dSmrg{ 7263602e473dSmrg func_arith_result=$(( $[*] )) 7264602e473dSmrg} 7265602e473dSmrg 7266602e473dSmrg# func_len string 7267602e473dSmrg# STRING may not start with a hyphen. 7268602e473dSmrgfunc_len () 7269602e473dSmrg{ 7270602e473dSmrg func_len_result=${#1} 7271602e473dSmrg} 7272602e473dSmrg 7273602e473dSmrg_LT_EOF 7274602e473dSmrg ;; 7275602e473dSmrg *) # Bourne compatible functions. 7276602e473dSmrg cat << \_LT_EOF >> "$cfgfile" 7277602e473dSmrg 7278602e473dSmrg# func_dirname file append nondir_replacement 7279602e473dSmrg# Compute the dirname of FILE. If nonempty, add APPEND to the result, 7280602e473dSmrg# otherwise set result to NONDIR_REPLACEMENT. 7281602e473dSmrgfunc_dirname () 7282602e473dSmrg{ 7283602e473dSmrg # Extract subdirectory from the argument. 7284602e473dSmrg func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 7285602e473dSmrg if test "X$func_dirname_result" = "X${1}"; then 7286602e473dSmrg func_dirname_result="${3}" 7287602e473dSmrg else 7288602e473dSmrg func_dirname_result="$func_dirname_result${2}" 7289602e473dSmrg fi 7290602e473dSmrg} 7291602e473dSmrg 7292602e473dSmrg# func_basename file 7293602e473dSmrgfunc_basename () 7294602e473dSmrg{ 7295602e473dSmrg func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 7296602e473dSmrg} 7297602e473dSmrg 7298602e473dSmrgdnl func_dirname_and_basename 7299602e473dSmrgdnl A portable version of this function is already defined in general.m4sh 7300602e473dSmrgdnl so there is no need for it here. 7301602e473dSmrg 7302602e473dSmrg# func_stripname prefix suffix name 7303602e473dSmrg# strip PREFIX and SUFFIX off of NAME. 7304602e473dSmrg# PREFIX and SUFFIX must not contain globbing or regex special 7305602e473dSmrg# characters, hashes, percent signs, but SUFFIX may contain a leading 7306602e473dSmrg# dot (in which case that matches only a dot). 7307602e473dSmrg# func_strip_suffix prefix name 7308602e473dSmrgfunc_stripname () 7309602e473dSmrg{ 7310602e473dSmrg case ${2} in 7311602e473dSmrg .*) func_stripname_result=`$ECHO "X${3}" \ 7312602e473dSmrg | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 7313602e473dSmrg *) func_stripname_result=`$ECHO "X${3}" \ 7314602e473dSmrg | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 7315602e473dSmrg esac 7316602e473dSmrg} 7317602e473dSmrg 7318602e473dSmrg# sed scripts: 7319602e473dSmrgmy_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q' 7320602e473dSmrgmy_sed_long_arg='1s/^-[[^=]]*=//' 7321602e473dSmrg 7322602e473dSmrg# func_opt_split 7323602e473dSmrgfunc_opt_split () 7324602e473dSmrg{ 7325602e473dSmrg func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 7326602e473dSmrg func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 7327602e473dSmrg} 7328602e473dSmrg 7329602e473dSmrg# func_lo2o object 7330602e473dSmrgfunc_lo2o () 7331602e473dSmrg{ 7332602e473dSmrg func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 7333602e473dSmrg} 7334602e473dSmrg 7335602e473dSmrg# func_xform libobj-or-source 7336602e473dSmrgfunc_xform () 7337602e473dSmrg{ 7338602e473dSmrg func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'` 7339602e473dSmrg} 7340602e473dSmrg 7341602e473dSmrg# func_arith arithmetic-term... 7342602e473dSmrgfunc_arith () 7343602e473dSmrg{ 7344602e473dSmrg func_arith_result=`expr "$[@]"` 7345602e473dSmrg} 7346602e473dSmrg 7347602e473dSmrg# func_len string 7348602e473dSmrg# STRING may not start with a hyphen. 7349602e473dSmrgfunc_len () 7350602e473dSmrg{ 7351602e473dSmrg func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len` 7352602e473dSmrg} 7353602e473dSmrg 7354602e473dSmrg_LT_EOF 7355602e473dSmrgesac 7356602e473dSmrg 7357602e473dSmrgcase $lt_shell_append in 7358602e473dSmrg yes) 7359602e473dSmrg cat << \_LT_EOF >> "$cfgfile" 7360602e473dSmrg 7361602e473dSmrg# func_append var value 7362602e473dSmrg# Append VALUE to the end of shell variable VAR. 7363602e473dSmrgfunc_append () 7364602e473dSmrg{ 7365602e473dSmrg eval "$[1]+=\$[2]" 7366602e473dSmrg} 7367602e473dSmrg_LT_EOF 7368602e473dSmrg ;; 7369602e473dSmrg *) 7370602e473dSmrg cat << \_LT_EOF >> "$cfgfile" 7371602e473dSmrg 7372602e473dSmrg# func_append var value 7373602e473dSmrg# Append VALUE to the end of shell variable VAR. 7374602e473dSmrgfunc_append () 7375602e473dSmrg{ 7376602e473dSmrg eval "$[1]=\$$[1]\$[2]" 7377602e473dSmrg} 7378602e473dSmrg 7379602e473dSmrg_LT_EOF 7380602e473dSmrg ;; 7381602e473dSmrg esac 7382602e473dSmrg]) 7383602e473dSmrg 7384602e473dSmrg# Helper functions for option handling. -*- Autoconf -*- 7385602e473dSmrg# 7386602e473dSmrg# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. 7387602e473dSmrg# Written by Gary V. Vaughan, 2004 7388602e473dSmrg# 7389602e473dSmrg# This file is free software; the Free Software Foundation gives 7390602e473dSmrg# unlimited permission to copy and/or distribute it, with or without 7391602e473dSmrg# modifications, as long as this notice is preserved. 7392602e473dSmrg 7393602e473dSmrg# serial 6 ltoptions.m4 7394602e473dSmrg 7395602e473dSmrg# This is to help aclocal find these macros, as it can't see m4_define. 7396602e473dSmrgAC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) 7397602e473dSmrg 7398602e473dSmrg 7399602e473dSmrg# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) 7400602e473dSmrg# ------------------------------------------ 7401602e473dSmrgm4_define([_LT_MANGLE_OPTION], 7402602e473dSmrg[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) 7403602e473dSmrg 7404602e473dSmrg 7405602e473dSmrg# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) 7406602e473dSmrg# --------------------------------------- 7407602e473dSmrg# Set option OPTION-NAME for macro MACRO-NAME, and if there is a 7408602e473dSmrg# matching handler defined, dispatch to it. Other OPTION-NAMEs are 7409602e473dSmrg# saved as a flag. 7410602e473dSmrgm4_define([_LT_SET_OPTION], 7411602e473dSmrg[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl 7412602e473dSmrgm4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), 7413602e473dSmrg _LT_MANGLE_DEFUN([$1], [$2]), 7414602e473dSmrg [m4_warning([Unknown $1 option `$2'])])[]dnl 7415602e473dSmrg]) 7416602e473dSmrg 7417602e473dSmrg 7418602e473dSmrg# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) 7419602e473dSmrg# ------------------------------------------------------------ 7420602e473dSmrg# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 7421602e473dSmrgm4_define([_LT_IF_OPTION], 7422602e473dSmrg[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) 7423602e473dSmrg 7424602e473dSmrg 7425602e473dSmrg# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) 7426602e473dSmrg# ------------------------------------------------------- 7427602e473dSmrg# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME 7428602e473dSmrg# are set. 7429602e473dSmrgm4_define([_LT_UNLESS_OPTIONS], 7430602e473dSmrg[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), 7431602e473dSmrg [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), 7432602e473dSmrg [m4_define([$0_found])])])[]dnl 7433602e473dSmrgm4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 7434602e473dSmrg])[]dnl 7435602e473dSmrg]) 7436602e473dSmrg 7437602e473dSmrg 7438602e473dSmrg# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) 7439602e473dSmrg# ---------------------------------------- 7440602e473dSmrg# OPTION-LIST is a space-separated list of Libtool options associated 7441602e473dSmrg# with MACRO-NAME. If any OPTION has a matching handler declared with 7442602e473dSmrg# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about 7443602e473dSmrg# the unknown option and exit. 7444602e473dSmrgm4_defun([_LT_SET_OPTIONS], 7445602e473dSmrg[# Set options 7446602e473dSmrgm4_foreach([_LT_Option], m4_split(m4_normalize([$2])), 7447602e473dSmrg [_LT_SET_OPTION([$1], _LT_Option)]) 7448602e473dSmrg 7449602e473dSmrgm4_if([$1],[LT_INIT],[ 7450602e473dSmrg dnl 7451602e473dSmrg dnl Simply set some default values (i.e off) if boolean options were not 7452602e473dSmrg dnl specified: 7453602e473dSmrg _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no 7454602e473dSmrg ]) 7455602e473dSmrg _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no 7456602e473dSmrg ]) 7457602e473dSmrg dnl 7458602e473dSmrg dnl If no reference was made to various pairs of opposing options, then 7459602e473dSmrg dnl we run the default mode handler for the pair. For example, if neither 7460602e473dSmrg dnl `shared' nor `disable-shared' was passed, we enable building of shared 7461602e473dSmrg dnl archives by default: 7462602e473dSmrg _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) 7463602e473dSmrg _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) 7464602e473dSmrg _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) 7465602e473dSmrg _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], 7466602e473dSmrg [_LT_ENABLE_FAST_INSTALL]) 7467602e473dSmrg ]) 7468602e473dSmrg])# _LT_SET_OPTIONS 7469602e473dSmrg 7470602e473dSmrg 7471602e473dSmrg 7472602e473dSmrg# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) 7473602e473dSmrg# ----------------------------------------- 7474602e473dSmrgm4_define([_LT_MANGLE_DEFUN], 7475602e473dSmrg[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) 7476602e473dSmrg 7477602e473dSmrg 7478602e473dSmrg# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) 7479602e473dSmrg# ----------------------------------------------- 7480602e473dSmrgm4_define([LT_OPTION_DEFINE], 7481602e473dSmrg[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl 7482602e473dSmrg])# LT_OPTION_DEFINE 7483602e473dSmrg 7484602e473dSmrg 7485602e473dSmrg# dlopen 7486602e473dSmrg# ------ 7487602e473dSmrgLT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes 7488602e473dSmrg]) 7489602e473dSmrg 7490602e473dSmrgAU_DEFUN([AC_LIBTOOL_DLOPEN], 7491602e473dSmrg[_LT_SET_OPTION([LT_INIT], [dlopen]) 7492602e473dSmrgAC_DIAGNOSE([obsolete], 7493602e473dSmrg[$0: Remove this warning and the call to _LT_SET_OPTION when you 7494602e473dSmrgput the `dlopen' option into LT_INIT's first parameter.]) 7495602e473dSmrg]) 7496602e473dSmrg 7497602e473dSmrgdnl aclocal-1.4 backwards compatibility: 7498602e473dSmrgdnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) 7499602e473dSmrg 7500602e473dSmrg 7501602e473dSmrg# win32-dll 7502602e473dSmrg# --------- 7503602e473dSmrg# Declare package support for building win32 dll's. 7504602e473dSmrgLT_OPTION_DEFINE([LT_INIT], [win32-dll], 7505602e473dSmrg[enable_win32_dll=yes 7506602e473dSmrg 7507602e473dSmrgcase $host in 7508602e473dSmrg*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*) 7509602e473dSmrg AC_CHECK_TOOL(AS, as, false) 7510602e473dSmrg AC_CHECK_TOOL(DLLTOOL, dlltool, false) 7511602e473dSmrg AC_CHECK_TOOL(OBJDUMP, objdump, false) 7512602e473dSmrg ;; 7513602e473dSmrgesac 7514602e473dSmrg 7515602e473dSmrgtest -z "$AS" && AS=as 7516602e473dSmrg_LT_DECL([], [AS], [0], [Assembler program])dnl 7517602e473dSmrg 7518602e473dSmrgtest -z "$DLLTOOL" && DLLTOOL=dlltool 7519602e473dSmrg_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl 7520602e473dSmrg 7521602e473dSmrgtest -z "$OBJDUMP" && OBJDUMP=objdump 7522602e473dSmrg_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl 7523602e473dSmrg])# win32-dll 7524602e473dSmrg 7525602e473dSmrgAU_DEFUN([AC_LIBTOOL_WIN32_DLL], 7526602e473dSmrg[AC_REQUIRE([AC_CANONICAL_HOST])dnl 7527602e473dSmrg_LT_SET_OPTION([LT_INIT], [win32-dll]) 7528602e473dSmrgAC_DIAGNOSE([obsolete], 7529602e473dSmrg[$0: Remove this warning and the call to _LT_SET_OPTION when you 7530602e473dSmrgput the `win32-dll' option into LT_INIT's first parameter.]) 7531602e473dSmrg]) 7532602e473dSmrg 7533602e473dSmrgdnl aclocal-1.4 backwards compatibility: 7534602e473dSmrgdnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) 7535602e473dSmrg 7536602e473dSmrg 7537602e473dSmrg# _LT_ENABLE_SHARED([DEFAULT]) 7538602e473dSmrg# ---------------------------- 7539602e473dSmrg# implement the --enable-shared flag, and supports the `shared' and 7540602e473dSmrg# `disable-shared' LT_INIT options. 7541602e473dSmrg# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 7542602e473dSmrgm4_define([_LT_ENABLE_SHARED], 7543602e473dSmrg[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl 7544602e473dSmrgAC_ARG_ENABLE([shared], 7545602e473dSmrg [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], 7546602e473dSmrg [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], 7547602e473dSmrg [p=${PACKAGE-default} 7548602e473dSmrg case $enableval in 7549602e473dSmrg yes) enable_shared=yes ;; 7550602e473dSmrg no) enable_shared=no ;; 7551602e473dSmrg *) 7552602e473dSmrg enable_shared=no 7553602e473dSmrg # Look at the argument we got. We use all the common list separators. 7554602e473dSmrg lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7555602e473dSmrg for pkg in $enableval; do 7556602e473dSmrg IFS="$lt_save_ifs" 7557602e473dSmrg if test "X$pkg" = "X$p"; then 7558602e473dSmrg enable_shared=yes 7559602e473dSmrg fi 7560602e473dSmrg done 7561602e473dSmrg IFS="$lt_save_ifs" 7562602e473dSmrg ;; 7563602e473dSmrg esac], 7564602e473dSmrg [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) 7565602e473dSmrg 7566602e473dSmrg _LT_DECL([build_libtool_libs], [enable_shared], [0], 7567602e473dSmrg [Whether or not to build shared libraries]) 7568602e473dSmrg])# _LT_ENABLE_SHARED 7569602e473dSmrg 7570602e473dSmrgLT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) 7571602e473dSmrgLT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) 7572602e473dSmrg 7573602e473dSmrg# Old names: 7574602e473dSmrgAC_DEFUN([AC_ENABLE_SHARED], 7575602e473dSmrg[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) 7576602e473dSmrg]) 7577602e473dSmrg 7578602e473dSmrgAC_DEFUN([AC_DISABLE_SHARED], 7579602e473dSmrg[_LT_SET_OPTION([LT_INIT], [disable-shared]) 7580602e473dSmrg]) 7581602e473dSmrg 7582602e473dSmrgAU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) 7583602e473dSmrgAU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) 7584602e473dSmrg 7585602e473dSmrgdnl aclocal-1.4 backwards compatibility: 7586602e473dSmrgdnl AC_DEFUN([AM_ENABLE_SHARED], []) 7587602e473dSmrgdnl AC_DEFUN([AM_DISABLE_SHARED], []) 7588602e473dSmrg 7589602e473dSmrg 7590602e473dSmrg 7591602e473dSmrg# _LT_ENABLE_STATIC([DEFAULT]) 7592602e473dSmrg# ---------------------------- 7593602e473dSmrg# implement the --enable-static flag, and support the `static' and 7594602e473dSmrg# `disable-static' LT_INIT options. 7595602e473dSmrg# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 7596602e473dSmrgm4_define([_LT_ENABLE_STATIC], 7597602e473dSmrg[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl 7598602e473dSmrgAC_ARG_ENABLE([static], 7599602e473dSmrg [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], 7600602e473dSmrg [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], 7601602e473dSmrg [p=${PACKAGE-default} 7602602e473dSmrg case $enableval in 7603602e473dSmrg yes) enable_static=yes ;; 7604602e473dSmrg no) enable_static=no ;; 7605602e473dSmrg *) 7606602e473dSmrg enable_static=no 7607602e473dSmrg # Look at the argument we got. We use all the common list separators. 7608602e473dSmrg lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7609602e473dSmrg for pkg in $enableval; do 7610602e473dSmrg IFS="$lt_save_ifs" 7611602e473dSmrg if test "X$pkg" = "X$p"; then 7612602e473dSmrg enable_static=yes 7613602e473dSmrg fi 7614602e473dSmrg done 7615602e473dSmrg IFS="$lt_save_ifs" 7616602e473dSmrg ;; 7617602e473dSmrg esac], 7618602e473dSmrg [enable_static=]_LT_ENABLE_STATIC_DEFAULT) 7619602e473dSmrg 7620602e473dSmrg _LT_DECL([build_old_libs], [enable_static], [0], 7621602e473dSmrg [Whether or not to build static libraries]) 7622602e473dSmrg])# _LT_ENABLE_STATIC 7623602e473dSmrg 7624602e473dSmrgLT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) 7625602e473dSmrgLT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) 7626602e473dSmrg 7627602e473dSmrg# Old names: 7628602e473dSmrgAC_DEFUN([AC_ENABLE_STATIC], 7629602e473dSmrg[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) 7630602e473dSmrg]) 7631602e473dSmrg 7632602e473dSmrgAC_DEFUN([AC_DISABLE_STATIC], 7633602e473dSmrg[_LT_SET_OPTION([LT_INIT], [disable-static]) 7634602e473dSmrg]) 7635602e473dSmrg 7636602e473dSmrgAU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) 7637602e473dSmrgAU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) 7638602e473dSmrg 7639602e473dSmrgdnl aclocal-1.4 backwards compatibility: 7640602e473dSmrgdnl AC_DEFUN([AM_ENABLE_STATIC], []) 7641602e473dSmrgdnl AC_DEFUN([AM_DISABLE_STATIC], []) 7642602e473dSmrg 7643602e473dSmrg 7644602e473dSmrg 7645602e473dSmrg# _LT_ENABLE_FAST_INSTALL([DEFAULT]) 7646602e473dSmrg# ---------------------------------- 7647602e473dSmrg# implement the --enable-fast-install flag, and support the `fast-install' 7648602e473dSmrg# and `disable-fast-install' LT_INIT options. 7649602e473dSmrg# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 7650602e473dSmrgm4_define([_LT_ENABLE_FAST_INSTALL], 7651602e473dSmrg[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl 7652602e473dSmrgAC_ARG_ENABLE([fast-install], 7653602e473dSmrg [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], 7654602e473dSmrg [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], 7655602e473dSmrg [p=${PACKAGE-default} 7656602e473dSmrg case $enableval in 7657602e473dSmrg yes) enable_fast_install=yes ;; 7658602e473dSmrg no) enable_fast_install=no ;; 7659602e473dSmrg *) 7660602e473dSmrg enable_fast_install=no 7661602e473dSmrg # Look at the argument we got. We use all the common list separators. 7662602e473dSmrg lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7663602e473dSmrg for pkg in $enableval; do 7664602e473dSmrg IFS="$lt_save_ifs" 7665602e473dSmrg if test "X$pkg" = "X$p"; then 7666602e473dSmrg enable_fast_install=yes 7667602e473dSmrg fi 7668602e473dSmrg done 7669602e473dSmrg IFS="$lt_save_ifs" 7670602e473dSmrg ;; 7671602e473dSmrg esac], 7672602e473dSmrg [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) 7673602e473dSmrg 7674602e473dSmrg_LT_DECL([fast_install], [enable_fast_install], [0], 7675602e473dSmrg [Whether or not to optimize for fast installation])dnl 7676602e473dSmrg])# _LT_ENABLE_FAST_INSTALL 7677602e473dSmrg 7678602e473dSmrgLT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) 7679602e473dSmrgLT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) 7680602e473dSmrg 7681602e473dSmrg# Old names: 7682602e473dSmrgAU_DEFUN([AC_ENABLE_FAST_INSTALL], 7683602e473dSmrg[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) 7684602e473dSmrgAC_DIAGNOSE([obsolete], 7685602e473dSmrg[$0: Remove this warning and the call to _LT_SET_OPTION when you put 7686602e473dSmrgthe `fast-install' option into LT_INIT's first parameter.]) 7687602e473dSmrg]) 7688602e473dSmrg 7689602e473dSmrgAU_DEFUN([AC_DISABLE_FAST_INSTALL], 7690602e473dSmrg[_LT_SET_OPTION([LT_INIT], [disable-fast-install]) 7691602e473dSmrgAC_DIAGNOSE([obsolete], 7692602e473dSmrg[$0: Remove this warning and the call to _LT_SET_OPTION when you put 7693602e473dSmrgthe `disable-fast-install' option into LT_INIT's first parameter.]) 7694602e473dSmrg]) 7695602e473dSmrg 7696602e473dSmrgdnl aclocal-1.4 backwards compatibility: 7697602e473dSmrgdnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) 7698602e473dSmrgdnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) 7699602e473dSmrg 7700602e473dSmrg 7701602e473dSmrg# _LT_WITH_PIC([MODE]) 7702602e473dSmrg# -------------------- 7703602e473dSmrg# implement the --with-pic flag, and support the `pic-only' and `no-pic' 7704602e473dSmrg# LT_INIT options. 7705602e473dSmrg# MODE is either `yes' or `no'. If omitted, it defaults to `both'. 7706602e473dSmrgm4_define([_LT_WITH_PIC], 7707602e473dSmrg[AC_ARG_WITH([pic], 7708602e473dSmrg [AS_HELP_STRING([--with-pic], 7709602e473dSmrg [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], 7710602e473dSmrg [pic_mode="$withval"], 7711602e473dSmrg [pic_mode=default]) 7712602e473dSmrg 7713602e473dSmrgtest -z "$pic_mode" && pic_mode=m4_default([$1], [default]) 7714602e473dSmrg 7715602e473dSmrg_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl 7716602e473dSmrg])# _LT_WITH_PIC 7717602e473dSmrg 7718602e473dSmrgLT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) 7719602e473dSmrgLT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) 7720602e473dSmrg 7721602e473dSmrg# Old name: 7722602e473dSmrgAU_DEFUN([AC_LIBTOOL_PICMODE], 7723602e473dSmrg[_LT_SET_OPTION([LT_INIT], [pic-only]) 7724602e473dSmrgAC_DIAGNOSE([obsolete], 7725602e473dSmrg[$0: Remove this warning and the call to _LT_SET_OPTION when you 7726602e473dSmrgput the `pic-only' option into LT_INIT's first parameter.]) 7727602e473dSmrg]) 7728602e473dSmrg 7729602e473dSmrgdnl aclocal-1.4 backwards compatibility: 7730602e473dSmrgdnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) 7731602e473dSmrg 7732602e473dSmrg 7733602e473dSmrgm4_define([_LTDL_MODE], []) 7734602e473dSmrgLT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], 7735602e473dSmrg [m4_define([_LTDL_MODE], [nonrecursive])]) 7736602e473dSmrgLT_OPTION_DEFINE([LTDL_INIT], [recursive], 7737602e473dSmrg [m4_define([_LTDL_MODE], [recursive])]) 7738602e473dSmrgLT_OPTION_DEFINE([LTDL_INIT], [subproject], 7739602e473dSmrg [m4_define([_LTDL_MODE], [subproject])]) 7740602e473dSmrg 7741602e473dSmrgm4_define([_LTDL_TYPE], []) 7742602e473dSmrgLT_OPTION_DEFINE([LTDL_INIT], [installable], 7743602e473dSmrg [m4_define([_LTDL_TYPE], [installable])]) 7744602e473dSmrgLT_OPTION_DEFINE([LTDL_INIT], [convenience], 7745602e473dSmrg [m4_define([_LTDL_TYPE], [convenience])]) 7746602e473dSmrg 7747602e473dSmrg# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- 7748602e473dSmrg# 7749602e473dSmrg# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. 7750602e473dSmrg# Written by Gary V. Vaughan, 2004 7751602e473dSmrg# 7752602e473dSmrg# This file is free software; the Free Software Foundation gives 7753602e473dSmrg# unlimited permission to copy and/or distribute it, with or without 7754602e473dSmrg# modifications, as long as this notice is preserved. 7755602e473dSmrg 7756602e473dSmrg# serial 6 ltsugar.m4 7757602e473dSmrg 7758602e473dSmrg# This is to help aclocal find these macros, as it can't see m4_define. 7759602e473dSmrgAC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) 7760602e473dSmrg 7761602e473dSmrg 7762602e473dSmrg# lt_join(SEP, ARG1, [ARG2...]) 7763602e473dSmrg# ----------------------------- 7764602e473dSmrg# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their 7765602e473dSmrg# associated separator. 7766602e473dSmrg# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier 7767602e473dSmrg# versions in m4sugar had bugs. 7768602e473dSmrgm4_define([lt_join], 7769602e473dSmrg[m4_if([$#], [1], [], 7770602e473dSmrg [$#], [2], [[$2]], 7771602e473dSmrg [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])]) 7772602e473dSmrgm4_define([_lt_join], 7773602e473dSmrg[m4_if([$#$2], [2], [], 7774602e473dSmrg [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) 7775602e473dSmrg 7776602e473dSmrg 7777602e473dSmrg# lt_car(LIST) 7778602e473dSmrg# lt_cdr(LIST) 7779602e473dSmrg# ------------ 7780602e473dSmrg# Manipulate m4 lists. 7781602e473dSmrg# These macros are necessary as long as will still need to support 7782602e473dSmrg# Autoconf-2.59 which quotes differently. 7783602e473dSmrgm4_define([lt_car], [[$1]]) 7784602e473dSmrgm4_define([lt_cdr], 7785602e473dSmrg[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], 7786602e473dSmrg [$#], 1, [], 7787602e473dSmrg [m4_dquote(m4_shift($@))])]) 7788602e473dSmrgm4_define([lt_unquote], $1) 7789602e473dSmrg 7790602e473dSmrg 7791602e473dSmrg# lt_append(MACRO-NAME, STRING, [SEPARATOR]) 7792602e473dSmrg# ------------------------------------------ 7793602e473dSmrg# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'. 7794602e473dSmrg# Note that neither SEPARATOR nor STRING are expanded; they are appended 7795602e473dSmrg# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). 7796602e473dSmrg# No SEPARATOR is output if MACRO-NAME was previously undefined (different 7797602e473dSmrg# than defined and empty). 7798602e473dSmrg# 7799602e473dSmrg# This macro is needed until we can rely on Autoconf 2.62, since earlier 7800602e473dSmrg# versions of m4sugar mistakenly expanded SEPARATOR but not STRING. 7801602e473dSmrgm4_define([lt_append], 7802602e473dSmrg[m4_define([$1], 7803602e473dSmrg m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) 7804602e473dSmrg 7805602e473dSmrg 7806602e473dSmrg 7807602e473dSmrg# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) 7808602e473dSmrg# ---------------------------------------------------------- 7809602e473dSmrg# Produce a SEP delimited list of all paired combinations of elements of 7810602e473dSmrg# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list 7811602e473dSmrg# has the form PREFIXmINFIXSUFFIXn. 7812602e473dSmrg# Needed until we can rely on m4_combine added in Autoconf 2.62. 7813602e473dSmrgm4_define([lt_combine], 7814602e473dSmrg[m4_if(m4_eval([$# > 3]), [1], 7815602e473dSmrg [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl 7816602e473dSmrg[[m4_foreach([_Lt_prefix], [$2], 7817602e473dSmrg [m4_foreach([_Lt_suffix], 7818602e473dSmrg ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[, 7819602e473dSmrg [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])]) 7820602e473dSmrg 7821602e473dSmrg 7822602e473dSmrg# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) 7823602e473dSmrg# ----------------------------------------------------------------------- 7824602e473dSmrg# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited 7825602e473dSmrg# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. 7826602e473dSmrgm4_define([lt_if_append_uniq], 7827602e473dSmrg[m4_ifdef([$1], 7828602e473dSmrg [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1], 7829602e473dSmrg [lt_append([$1], [$2], [$3])$4], 7830602e473dSmrg [$5])], 7831602e473dSmrg [lt_append([$1], [$2], [$3])$4])]) 7832602e473dSmrg 7833602e473dSmrg 7834602e473dSmrg# lt_dict_add(DICT, KEY, VALUE) 7835602e473dSmrg# ----------------------------- 7836602e473dSmrgm4_define([lt_dict_add], 7837602e473dSmrg[m4_define([$1($2)], [$3])]) 7838602e473dSmrg 7839602e473dSmrg 7840602e473dSmrg# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) 7841602e473dSmrg# -------------------------------------------- 7842602e473dSmrgm4_define([lt_dict_add_subkey], 7843602e473dSmrg[m4_define([$1($2:$3)], [$4])]) 7844602e473dSmrg 7845602e473dSmrg 7846602e473dSmrg# lt_dict_fetch(DICT, KEY, [SUBKEY]) 7847602e473dSmrg# ---------------------------------- 7848602e473dSmrgm4_define([lt_dict_fetch], 7849602e473dSmrg[m4_ifval([$3], 7850602e473dSmrg m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), 7851602e473dSmrg m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) 7852602e473dSmrg 7853602e473dSmrg 7854602e473dSmrg# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) 7855602e473dSmrg# ----------------------------------------------------------------- 7856602e473dSmrgm4_define([lt_if_dict_fetch], 7857602e473dSmrg[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], 7858602e473dSmrg [$5], 7859602e473dSmrg [$6])]) 7860602e473dSmrg 7861602e473dSmrg 7862602e473dSmrg# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) 7863602e473dSmrg# -------------------------------------------------------------- 7864602e473dSmrgm4_define([lt_dict_filter], 7865602e473dSmrg[m4_if([$5], [], [], 7866602e473dSmrg [lt_join(m4_quote(m4_default([$4], [[, ]])), 7867602e473dSmrg lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]), 7868602e473dSmrg [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl 7869602e473dSmrg]) 7870602e473dSmrg 7871602e473dSmrg# ltversion.m4 -- version numbers -*- Autoconf -*- 7872602e473dSmrg# 7873602e473dSmrg# Copyright (C) 2004 Free Software Foundation, Inc. 7874602e473dSmrg# Written by Scott James Remnant, 2004 7875602e473dSmrg# 7876602e473dSmrg# This file is free software; the Free Software Foundation gives 7877602e473dSmrg# unlimited permission to copy and/or distribute it, with or without 7878602e473dSmrg# modifications, as long as this notice is preserved. 7879602e473dSmrg 7880602e473dSmrg# Generated from ltversion.in. 7881602e473dSmrg 7882602e473dSmrg# serial 3017 ltversion.m4 7883602e473dSmrg# This file is part of GNU Libtool 7884602e473dSmrg 7885602e473dSmrgm4_define([LT_PACKAGE_VERSION], [2.2.6b]) 7886602e473dSmrgm4_define([LT_PACKAGE_REVISION], [1.3017]) 7887602e473dSmrg 7888602e473dSmrgAC_DEFUN([LTVERSION_VERSION], 7889602e473dSmrg[macro_version='2.2.6b' 7890602e473dSmrgmacro_revision='1.3017' 7891602e473dSmrg_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) 7892602e473dSmrg_LT_DECL(, macro_revision, 0) 7893602e473dSmrg]) 7894602e473dSmrg 7895602e473dSmrg# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- 7896602e473dSmrg# 7897602e473dSmrg# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc. 7898602e473dSmrg# Written by Scott James Remnant, 2004. 7899602e473dSmrg# 7900602e473dSmrg# This file is free software; the Free Software Foundation gives 7901602e473dSmrg# unlimited permission to copy and/or distribute it, with or without 7902602e473dSmrg# modifications, as long as this notice is preserved. 7903602e473dSmrg 7904602e473dSmrg# serial 4 lt~obsolete.m4 7905602e473dSmrg 7906602e473dSmrg# These exist entirely to fool aclocal when bootstrapping libtool. 7907602e473dSmrg# 7908602e473dSmrg# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN) 7909602e473dSmrg# which have later been changed to m4_define as they aren't part of the 7910602e473dSmrg# exported API, or moved to Autoconf or Automake where they belong. 7911602e473dSmrg# 7912602e473dSmrg# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN 7913602e473dSmrg# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us 7914602e473dSmrg# using a macro with the same name in our local m4/libtool.m4 it'll 7915602e473dSmrg# pull the old libtool.m4 in (it doesn't see our shiny new m4_define 7916602e473dSmrg# and doesn't know about Autoconf macros at all.) 7917602e473dSmrg# 7918602e473dSmrg# So we provide this file, which has a silly filename so it's always 7919602e473dSmrg# included after everything else. This provides aclocal with the 7920602e473dSmrg# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything 7921602e473dSmrg# because those macros already exist, or will be overwritten later. 7922602e473dSmrg# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. 7923602e473dSmrg# 7924602e473dSmrg# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. 7925602e473dSmrg# Yes, that means every name once taken will need to remain here until 7926602e473dSmrg# we give up compatibility with versions before 1.7, at which point 7927602e473dSmrg# we need to keep only those names which we still refer to. 7928602e473dSmrg 7929602e473dSmrg# This is to help aclocal find these macros, as it can't see m4_define. 7930602e473dSmrgAC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) 7931602e473dSmrg 7932602e473dSmrgm4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])]) 7933602e473dSmrgm4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])]) 7934602e473dSmrgm4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])]) 7935602e473dSmrgm4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])]) 7936602e473dSmrgm4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])]) 7937602e473dSmrgm4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])]) 7938602e473dSmrgm4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])]) 7939602e473dSmrgm4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])]) 7940602e473dSmrgm4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])]) 7941602e473dSmrgm4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])]) 7942602e473dSmrgm4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])]) 7943602e473dSmrgm4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])]) 7944602e473dSmrgm4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])]) 7945602e473dSmrgm4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])]) 7946602e473dSmrgm4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])]) 7947602e473dSmrgm4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])]) 7948602e473dSmrgm4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])]) 7949602e473dSmrgm4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])]) 7950602e473dSmrgm4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])]) 7951602e473dSmrgm4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])]) 7952602e473dSmrgm4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])]) 7953602e473dSmrgm4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])]) 7954602e473dSmrgm4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])]) 7955602e473dSmrgm4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])]) 7956602e473dSmrgm4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])]) 7957602e473dSmrgm4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])]) 7958602e473dSmrgm4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])]) 7959602e473dSmrgm4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])]) 7960602e473dSmrgm4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])]) 7961602e473dSmrgm4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])]) 7962602e473dSmrgm4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])]) 7963602e473dSmrgm4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])]) 7964602e473dSmrgm4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) 7965602e473dSmrgm4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) 7966602e473dSmrgm4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) 7967602e473dSmrgm4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) 7968602e473dSmrgm4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])]) 7969602e473dSmrgm4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) 7970602e473dSmrgm4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) 7971602e473dSmrgm4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) 7972602e473dSmrgm4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) 7973602e473dSmrgm4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) 7974602e473dSmrgm4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])]) 7975602e473dSmrgm4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) 7976602e473dSmrgm4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) 7977602e473dSmrgm4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) 7978602e473dSmrgm4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) 7979602e473dSmrgm4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]) 7980602e473dSmrgm4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) 7981602e473dSmrgm4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]) 7982602e473dSmrgm4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) 7983602e473dSmrgm4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) 7984602e473dSmrgm4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) 7985602e473dSmrgm4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) 7986602e473dSmrgm4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) 7987602e473dSmrg 7988602e473dSmrg# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 7989602e473dSmrg# 7990602e473dSmrg# Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 7991602e473dSmrg# 7992602e473dSmrg# This program is free software; you can redistribute it and/or modify 7993602e473dSmrg# it under the terms of the GNU General Public License as published by 7994602e473dSmrg# the Free Software Foundation; either version 2 of the License, or 7995602e473dSmrg# (at your option) any later version. 7996602e473dSmrg# 7997602e473dSmrg# This program is distributed in the hope that it will be useful, but 7998602e473dSmrg# WITHOUT ANY WARRANTY; without even the implied warranty of 7999602e473dSmrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 8000602e473dSmrg# General Public License for more details. 8001602e473dSmrg# 8002602e473dSmrg# You should have received a copy of the GNU General Public License 8003602e473dSmrg# along with this program; if not, write to the Free Software 8004602e473dSmrg# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 8005602e473dSmrg# 8006602e473dSmrg# As a special exception to the GNU General Public License, if you 8007602e473dSmrg# distribute this file as part of a program that contains a 8008602e473dSmrg# configuration script generated by Autoconf, you may include it under 8009602e473dSmrg# the same distribution terms that you use for the rest of that program. 8010602e473dSmrg 8011602e473dSmrg# PKG_PROG_PKG_CONFIG([MIN-VERSION]) 8012602e473dSmrg# ---------------------------------- 8013602e473dSmrgAC_DEFUN([PKG_PROG_PKG_CONFIG], 8014602e473dSmrg[m4_pattern_forbid([^_?PKG_[A-Z_]+$]) 8015602e473dSmrgm4_pattern_allow([^PKG_CONFIG(_PATH)?$]) 8016602e473dSmrgAC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl 8017602e473dSmrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 8018602e473dSmrg AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) 8019602e473dSmrgfi 8020602e473dSmrgif test -n "$PKG_CONFIG"; then 8021602e473dSmrg _pkg_min_version=m4_default([$1], [0.9.0]) 8022602e473dSmrg AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) 8023602e473dSmrg if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 8024602e473dSmrg AC_MSG_RESULT([yes]) 8025602e473dSmrg else 8026602e473dSmrg AC_MSG_RESULT([no]) 8027602e473dSmrg PKG_CONFIG="" 8028602e473dSmrg fi 8029602e473dSmrg 8030602e473dSmrgfi[]dnl 8031602e473dSmrg])# PKG_PROG_PKG_CONFIG 8032602e473dSmrg 8033602e473dSmrg# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 8034602e473dSmrg# 8035602e473dSmrg# Check to see whether a particular set of modules exists. Similar 8036602e473dSmrg# to PKG_CHECK_MODULES(), but does not set variables or print errors. 8037602e473dSmrg# 8038602e473dSmrg# 8039602e473dSmrg# Similar to PKG_CHECK_MODULES, make sure that the first instance of 8040602e473dSmrg# this or PKG_CHECK_MODULES is called, or make sure to call 8041602e473dSmrg# PKG_CHECK_EXISTS manually 8042602e473dSmrg# -------------------------------------------------------------- 8043602e473dSmrgAC_DEFUN([PKG_CHECK_EXISTS], 8044602e473dSmrg[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 8045602e473dSmrgif test -n "$PKG_CONFIG" && \ 8046602e473dSmrg AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then 8047602e473dSmrg m4_ifval([$2], [$2], [:]) 8048602e473dSmrgm4_ifvaln([$3], [else 8049602e473dSmrg $3])dnl 8050602e473dSmrgfi]) 8051602e473dSmrg 8052602e473dSmrg 8053602e473dSmrg# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 8054602e473dSmrg# --------------------------------------------- 8055602e473dSmrgm4_define([_PKG_CONFIG], 8056602e473dSmrg[if test -n "$PKG_CONFIG"; then 8057602e473dSmrg if test -n "$$1"; then 8058602e473dSmrg pkg_cv_[]$1="$$1" 8059602e473dSmrg else 8060602e473dSmrg PKG_CHECK_EXISTS([$3], 8061602e473dSmrg [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], 8062602e473dSmrg [pkg_failed=yes]) 8063602e473dSmrg fi 8064602e473dSmrgelse 8065602e473dSmrg pkg_failed=untried 8066602e473dSmrgfi[]dnl 8067602e473dSmrg])# _PKG_CONFIG 8068602e473dSmrg 8069602e473dSmrg# _PKG_SHORT_ERRORS_SUPPORTED 8070602e473dSmrg# ----------------------------- 8071602e473dSmrgAC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], 8072602e473dSmrg[AC_REQUIRE([PKG_PROG_PKG_CONFIG]) 8073602e473dSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 8074602e473dSmrg _pkg_short_errors_supported=yes 8075602e473dSmrgelse 8076602e473dSmrg _pkg_short_errors_supported=no 8077602e473dSmrgfi[]dnl 8078602e473dSmrg])# _PKG_SHORT_ERRORS_SUPPORTED 8079602e473dSmrg 8080602e473dSmrg 8081602e473dSmrg# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 8082602e473dSmrg# [ACTION-IF-NOT-FOUND]) 8083602e473dSmrg# 8084602e473dSmrg# 8085602e473dSmrg# Note that if there is a possibility the first call to 8086602e473dSmrg# PKG_CHECK_MODULES might not happen, you should be sure to include an 8087602e473dSmrg# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 8088602e473dSmrg# 8089602e473dSmrg# 8090602e473dSmrg# -------------------------------------------------------------- 8091602e473dSmrgAC_DEFUN([PKG_CHECK_MODULES], 8092602e473dSmrg[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 8093602e473dSmrgAC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl 8094602e473dSmrgAC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl 8095602e473dSmrg 8096602e473dSmrgpkg_failed=no 8097602e473dSmrgAC_MSG_CHECKING([for $1]) 8098602e473dSmrg 8099602e473dSmrg_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) 8100602e473dSmrg_PKG_CONFIG([$1][_LIBS], [libs], [$2]) 8101602e473dSmrg 8102602e473dSmrgm4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS 8103602e473dSmrgand $1[]_LIBS to avoid the need to call pkg-config. 8104602e473dSmrgSee the pkg-config man page for more details.]) 8105602e473dSmrg 8106602e473dSmrgif test $pkg_failed = yes; then 8107602e473dSmrg _PKG_SHORT_ERRORS_SUPPORTED 8108602e473dSmrg if test $_pkg_short_errors_supported = yes; then 8109602e473dSmrg $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"` 8110602e473dSmrg else 8111602e473dSmrg $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"` 8112602e473dSmrg fi 8113602e473dSmrg # Put the nasty error message in config.log where it belongs 8114602e473dSmrg echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD 8115602e473dSmrg 8116602e473dSmrg ifelse([$4], , [AC_MSG_ERROR(dnl 8117602e473dSmrg[Package requirements ($2) were not met: 8118602e473dSmrg 8119602e473dSmrg$$1_PKG_ERRORS 8120602e473dSmrg 8121602e473dSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 8122602e473dSmrginstalled software in a non-standard prefix. 8123602e473dSmrg 8124602e473dSmrg_PKG_TEXT 8125602e473dSmrg])], 8126602e473dSmrg [AC_MSG_RESULT([no]) 8127602e473dSmrg $4]) 8128602e473dSmrgelif test $pkg_failed = untried; then 8129602e473dSmrg ifelse([$4], , [AC_MSG_FAILURE(dnl 8130602e473dSmrg[The pkg-config script could not be found or is too old. Make sure it 8131602e473dSmrgis in your PATH or set the PKG_CONFIG environment variable to the full 8132602e473dSmrgpath to pkg-config. 8133602e473dSmrg 8134602e473dSmrg_PKG_TEXT 8135602e473dSmrg 8136602e473dSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.])], 8137602e473dSmrg [$4]) 8138602e473dSmrgelse 8139602e473dSmrg $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS 8140602e473dSmrg $1[]_LIBS=$pkg_cv_[]$1[]_LIBS 8141602e473dSmrg AC_MSG_RESULT([yes]) 8142602e473dSmrg ifelse([$3], , :, [$3]) 8143602e473dSmrgfi[]dnl 8144602e473dSmrg])# PKG_CHECK_MODULES 8145602e473dSmrg 8146602e473dSmrg# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 8147602e473dSmrg# 8148602e473dSmrg# This file is free software; the Free Software Foundation 8149602e473dSmrg# gives unlimited permission to copy and/or distribute it, 8150602e473dSmrg# with or without modifications, as long as this notice is preserved. 8151602e473dSmrg 8152602e473dSmrg# AM_AUTOMAKE_VERSION(VERSION) 8153602e473dSmrg# ---------------------------- 8154602e473dSmrg# Automake X.Y traces this macro to ensure aclocal.m4 has been 8155602e473dSmrg# generated from the m4 files accompanying Automake X.Y. 8156602e473dSmrg# (This private macro should not be called outside this file.) 8157602e473dSmrgAC_DEFUN([AM_AUTOMAKE_VERSION], 8158602e473dSmrg[am__api_version='1.11' 8159602e473dSmrgdnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to 8160602e473dSmrgdnl require some minimum version. Point them to the right macro. 8161602e473dSmrgm4_if([$1], [1.11.1], [], 8162602e473dSmrg [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl 8163602e473dSmrg]) 8164602e473dSmrg 8165602e473dSmrg# _AM_AUTOCONF_VERSION(VERSION) 8166602e473dSmrg# ----------------------------- 8167602e473dSmrg# aclocal traces this macro to find the Autoconf version. 8168602e473dSmrg# This is a private macro too. Using m4_define simplifies 8169602e473dSmrg# the logic in aclocal, which can simply ignore this definition. 8170602e473dSmrgm4_define([_AM_AUTOCONF_VERSION], []) 8171602e473dSmrg 8172602e473dSmrg# AM_SET_CURRENT_AUTOMAKE_VERSION 8173602e473dSmrg# ------------------------------- 8174602e473dSmrg# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. 8175602e473dSmrg# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. 8176602e473dSmrgAC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 8177602e473dSmrg[AM_AUTOMAKE_VERSION([1.11.1])dnl 8178602e473dSmrgm4_ifndef([AC_AUTOCONF_VERSION], 8179602e473dSmrg [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 8180602e473dSmrg_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) 8181602e473dSmrg 8182602e473dSmrg# AM_AUX_DIR_EXPAND -*- Autoconf -*- 8183602e473dSmrg 8184602e473dSmrg# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 8185602e473dSmrg# 8186602e473dSmrg# This file is free software; the Free Software Foundation 8187602e473dSmrg# gives unlimited permission to copy and/or distribute it, 8188602e473dSmrg# with or without modifications, as long as this notice is preserved. 8189602e473dSmrg 8190602e473dSmrg# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 8191602e473dSmrg# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to 8192602e473dSmrg# `$srcdir', `$srcdir/..', or `$srcdir/../..'. 8193602e473dSmrg# 8194602e473dSmrg# Of course, Automake must honor this variable whenever it calls a 8195602e473dSmrg# tool from the auxiliary directory. The problem is that $srcdir (and 8196602e473dSmrg# therefore $ac_aux_dir as well) can be either absolute or relative, 8197602e473dSmrg# depending on how configure is run. This is pretty annoying, since 8198602e473dSmrg# it makes $ac_aux_dir quite unusable in subdirectories: in the top 8199602e473dSmrg# source directory, any form will work fine, but in subdirectories a 8200602e473dSmrg# relative path needs to be adjusted first. 8201602e473dSmrg# 8202602e473dSmrg# $ac_aux_dir/missing 8203602e473dSmrg# fails when called from a subdirectory if $ac_aux_dir is relative 8204602e473dSmrg# $top_srcdir/$ac_aux_dir/missing 8205602e473dSmrg# fails if $ac_aux_dir is absolute, 8206602e473dSmrg# fails when called from a subdirectory in a VPATH build with 8207602e473dSmrg# a relative $ac_aux_dir 8208602e473dSmrg# 8209602e473dSmrg# The reason of the latter failure is that $top_srcdir and $ac_aux_dir 8210602e473dSmrg# are both prefixed by $srcdir. In an in-source build this is usually 8211602e473dSmrg# harmless because $srcdir is `.', but things will broke when you 8212602e473dSmrg# start a VPATH build or use an absolute $srcdir. 8213602e473dSmrg# 8214602e473dSmrg# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, 8215602e473dSmrg# iff we strip the leading $srcdir from $ac_aux_dir. That would be: 8216602e473dSmrg# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` 8217602e473dSmrg# and then we would define $MISSING as 8218602e473dSmrg# MISSING="\${SHELL} $am_aux_dir/missing" 8219602e473dSmrg# This will work as long as MISSING is not called from configure, because 8220602e473dSmrg# unfortunately $(top_srcdir) has no meaning in configure. 8221602e473dSmrg# However there are other variables, like CC, which are often used in 8222602e473dSmrg# configure, and could therefore not use this "fixed" $ac_aux_dir. 8223602e473dSmrg# 8224602e473dSmrg# Another solution, used here, is to always expand $ac_aux_dir to an 8225602e473dSmrg# absolute PATH. The drawback is that using absolute paths prevent a 8226602e473dSmrg# configured tree to be moved without reconfiguration. 8227602e473dSmrg 8228602e473dSmrgAC_DEFUN([AM_AUX_DIR_EXPAND], 8229602e473dSmrg[dnl Rely on autoconf to set up CDPATH properly. 8230602e473dSmrgAC_PREREQ([2.50])dnl 8231602e473dSmrg# expand $ac_aux_dir to an absolute path 8232602e473dSmrgam_aux_dir=`cd $ac_aux_dir && pwd` 8233602e473dSmrg]) 8234602e473dSmrg 8235602e473dSmrg# AM_CONDITIONAL -*- Autoconf -*- 8236602e473dSmrg 8237602e473dSmrg# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 8238602e473dSmrg# Free Software Foundation, Inc. 8239602e473dSmrg# 8240602e473dSmrg# This file is free software; the Free Software Foundation 8241602e473dSmrg# gives unlimited permission to copy and/or distribute it, 8242602e473dSmrg# with or without modifications, as long as this notice is preserved. 8243602e473dSmrg 8244602e473dSmrg# serial 9 8245602e473dSmrg 8246602e473dSmrg# AM_CONDITIONAL(NAME, SHELL-CONDITION) 8247602e473dSmrg# ------------------------------------- 8248602e473dSmrg# Define a conditional. 8249602e473dSmrgAC_DEFUN([AM_CONDITIONAL], 8250602e473dSmrg[AC_PREREQ(2.52)dnl 8251602e473dSmrg ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 8252602e473dSmrg [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 8253602e473dSmrgAC_SUBST([$1_TRUE])dnl 8254602e473dSmrgAC_SUBST([$1_FALSE])dnl 8255602e473dSmrg_AM_SUBST_NOTMAKE([$1_TRUE])dnl 8256602e473dSmrg_AM_SUBST_NOTMAKE([$1_FALSE])dnl 8257602e473dSmrgm4_define([_AM_COND_VALUE_$1], [$2])dnl 8258602e473dSmrgif $2; then 8259602e473dSmrg $1_TRUE= 8260602e473dSmrg $1_FALSE='#' 8261602e473dSmrgelse 8262602e473dSmrg $1_TRUE='#' 8263602e473dSmrg $1_FALSE= 8264602e473dSmrgfi 8265602e473dSmrgAC_CONFIG_COMMANDS_PRE( 8266602e473dSmrg[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then 8267602e473dSmrg AC_MSG_ERROR([[conditional "$1" was never defined. 8268602e473dSmrgUsually this means the macro was only invoked conditionally.]]) 8269602e473dSmrgfi])]) 8270602e473dSmrg 8271602e473dSmrg# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009 8272602e473dSmrg# Free Software Foundation, Inc. 8273602e473dSmrg# 8274602e473dSmrg# This file is free software; the Free Software Foundation 8275602e473dSmrg# gives unlimited permission to copy and/or distribute it, 8276602e473dSmrg# with or without modifications, as long as this notice is preserved. 8277602e473dSmrg 8278602e473dSmrg# serial 10 8279602e473dSmrg 8280602e473dSmrg# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be 8281602e473dSmrg# written in clear, in which case automake, when reading aclocal.m4, 8282602e473dSmrg# will think it sees a *use*, and therefore will trigger all it's 8283602e473dSmrg# C support machinery. Also note that it means that autoscan, seeing 8284602e473dSmrg# CC etc. in the Makefile, will ask for an AC_PROG_CC use... 8285602e473dSmrg 8286602e473dSmrg 8287602e473dSmrg# _AM_DEPENDENCIES(NAME) 8288602e473dSmrg# ---------------------- 8289602e473dSmrg# See how the compiler implements dependency checking. 8290602e473dSmrg# NAME is "CC", "CXX", "GCJ", or "OBJC". 8291602e473dSmrg# We try a few techniques and use that to set a single cache variable. 8292602e473dSmrg# 8293602e473dSmrg# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was 8294602e473dSmrg# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 8295602e473dSmrg# dependency, and given that the user is not expected to run this macro, 8296602e473dSmrg# just rely on AC_PROG_CC. 8297602e473dSmrgAC_DEFUN([_AM_DEPENDENCIES], 8298602e473dSmrg[AC_REQUIRE([AM_SET_DEPDIR])dnl 8299602e473dSmrgAC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl 8300602e473dSmrgAC_REQUIRE([AM_MAKE_INCLUDE])dnl 8301602e473dSmrgAC_REQUIRE([AM_DEP_TRACK])dnl 8302602e473dSmrg 8303602e473dSmrgifelse([$1], CC, [depcc="$CC" am_compiler_list=], 8304602e473dSmrg [$1], CXX, [depcc="$CXX" am_compiler_list=], 8305602e473dSmrg [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 8306602e473dSmrg [$1], UPC, [depcc="$UPC" am_compiler_list=], 8307602e473dSmrg [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 8308602e473dSmrg [depcc="$$1" am_compiler_list=]) 8309602e473dSmrg 8310602e473dSmrgAC_CACHE_CHECK([dependency style of $depcc], 8311602e473dSmrg [am_cv_$1_dependencies_compiler_type], 8312602e473dSmrg[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 8313602e473dSmrg # We make a subdir and do the tests there. Otherwise we can end up 8314602e473dSmrg # making bogus files that we don't know about and never remove. For 8315602e473dSmrg # instance it was reported that on HP-UX the gcc test will end up 8316602e473dSmrg # making a dummy file named `D' -- because `-MD' means `put the output 8317602e473dSmrg # in D'. 8318602e473dSmrg mkdir conftest.dir 8319602e473dSmrg # Copy depcomp to subdir because otherwise we won't find it if we're 8320602e473dSmrg # using a relative directory. 8321602e473dSmrg cp "$am_depcomp" conftest.dir 8322602e473dSmrg cd conftest.dir 8323602e473dSmrg # We will build objects and dependencies in a subdirectory because 8324602e473dSmrg # it helps to detect inapplicable dependency modes. For instance 8325602e473dSmrg # both Tru64's cc and ICC support -MD to output dependencies as a 8326602e473dSmrg # side effect of compilation, but ICC will put the dependencies in 8327602e473dSmrg # the current directory while Tru64 will put them in the object 8328602e473dSmrg # directory. 8329602e473dSmrg mkdir sub 8330602e473dSmrg 8331602e473dSmrg am_cv_$1_dependencies_compiler_type=none 8332602e473dSmrg if test "$am_compiler_list" = ""; then 8333602e473dSmrg am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` 8334602e473dSmrg fi 8335602e473dSmrg am__universal=false 8336602e473dSmrg m4_case([$1], [CC], 8337602e473dSmrg [case " $depcc " in #( 8338602e473dSmrg *\ -arch\ *\ -arch\ *) am__universal=true ;; 8339602e473dSmrg esac], 8340602e473dSmrg [CXX], 8341602e473dSmrg [case " $depcc " in #( 8342602e473dSmrg *\ -arch\ *\ -arch\ *) am__universal=true ;; 8343602e473dSmrg esac]) 8344602e473dSmrg 8345602e473dSmrg for depmode in $am_compiler_list; do 8346602e473dSmrg # Setup a source with many dependencies, because some compilers 8347602e473dSmrg # like to wrap large dependency lists on column 80 (with \), and 8348602e473dSmrg # we should not choose a depcomp mode which is confused by this. 8349602e473dSmrg # 8350602e473dSmrg # We need to recreate these files for each test, as the compiler may 8351602e473dSmrg # overwrite some of them when testing with obscure command lines. 8352602e473dSmrg # This happens at least with the AIX C compiler. 8353602e473dSmrg : > sub/conftest.c 8354602e473dSmrg for i in 1 2 3 4 5 6; do 8355602e473dSmrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 8356602e473dSmrg # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 8357602e473dSmrg # Solaris 8's {/usr,}/bin/sh. 8358602e473dSmrg touch sub/conftst$i.h 8359602e473dSmrg done 8360602e473dSmrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 8361602e473dSmrg 8362602e473dSmrg # We check with `-c' and `-o' for the sake of the "dashmstdout" 8363602e473dSmrg # mode. It turns out that the SunPro C++ compiler does not properly 8364602e473dSmrg # handle `-M -o', and we need to detect this. Also, some Intel 8365602e473dSmrg # versions had trouble with output in subdirs 8366602e473dSmrg am__obj=sub/conftest.${OBJEXT-o} 8367602e473dSmrg am__minus_obj="-o $am__obj" 8368602e473dSmrg case $depmode in 8369602e473dSmrg gcc) 8370602e473dSmrg # This depmode causes a compiler race in universal mode. 8371602e473dSmrg test "$am__universal" = false || continue 8372602e473dSmrg ;; 8373602e473dSmrg nosideeffect) 8374602e473dSmrg # after this tag, mechanisms are not by side-effect, so they'll 8375602e473dSmrg # only be used when explicitly requested 8376602e473dSmrg if test "x$enable_dependency_tracking" = xyes; then 8377602e473dSmrg continue 8378602e473dSmrg else 8379602e473dSmrg break 8380602e473dSmrg fi 8381602e473dSmrg ;; 8382602e473dSmrg msvisualcpp | msvcmsys) 8383602e473dSmrg # This compiler won't grok `-c -o', but also, the minuso test has 8384602e473dSmrg # not run yet. These depmodes are late enough in the game, and 8385602e473dSmrg # so weak that their functioning should not be impacted. 8386602e473dSmrg am__obj=conftest.${OBJEXT-o} 8387602e473dSmrg am__minus_obj= 8388602e473dSmrg ;; 8389602e473dSmrg none) break ;; 8390602e473dSmrg esac 8391602e473dSmrg if depmode=$depmode \ 8392602e473dSmrg source=sub/conftest.c object=$am__obj \ 8393602e473dSmrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 8394602e473dSmrg $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 8395602e473dSmrg >/dev/null 2>conftest.err && 8396602e473dSmrg grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 8397602e473dSmrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 8398602e473dSmrg grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 8399602e473dSmrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 8400602e473dSmrg # icc doesn't choke on unknown options, it will just issue warnings 8401602e473dSmrg # or remarks (even with -Werror). So we grep stderr for any message 8402602e473dSmrg # that says an option was ignored or not supported. 8403602e473dSmrg # When given -MP, icc 7.0 and 7.1 complain thusly: 8404602e473dSmrg # icc: Command line warning: ignoring option '-M'; no argument required 8405602e473dSmrg # The diagnosis changed in icc 8.0: 8406602e473dSmrg # icc: Command line remark: option '-MP' not supported 8407602e473dSmrg if (grep 'ignoring option' conftest.err || 8408602e473dSmrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 8409602e473dSmrg am_cv_$1_dependencies_compiler_type=$depmode 8410602e473dSmrg break 8411602e473dSmrg fi 8412602e473dSmrg fi 8413602e473dSmrg done 8414602e473dSmrg 8415602e473dSmrg cd .. 8416602e473dSmrg rm -rf conftest.dir 8417602e473dSmrgelse 8418602e473dSmrg am_cv_$1_dependencies_compiler_type=none 8419602e473dSmrgfi 8420602e473dSmrg]) 8421602e473dSmrgAC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) 8422602e473dSmrgAM_CONDITIONAL([am__fastdep$1], [ 8423602e473dSmrg test "x$enable_dependency_tracking" != xno \ 8424602e473dSmrg && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) 8425602e473dSmrg]) 8426602e473dSmrg 8427602e473dSmrg 8428602e473dSmrg# AM_SET_DEPDIR 8429602e473dSmrg# ------------- 8430602e473dSmrg# Choose a directory name for dependency files. 8431602e473dSmrg# This macro is AC_REQUIREd in _AM_DEPENDENCIES 8432602e473dSmrgAC_DEFUN([AM_SET_DEPDIR], 8433602e473dSmrg[AC_REQUIRE([AM_SET_LEADING_DOT])dnl 8434602e473dSmrgAC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl 8435602e473dSmrg]) 8436602e473dSmrg 8437602e473dSmrg 8438602e473dSmrg# AM_DEP_TRACK 8439602e473dSmrg# ------------ 8440602e473dSmrgAC_DEFUN([AM_DEP_TRACK], 8441602e473dSmrg[AC_ARG_ENABLE(dependency-tracking, 8442602e473dSmrg[ --disable-dependency-tracking speeds up one-time build 8443602e473dSmrg --enable-dependency-tracking do not reject slow dependency extractors]) 8444602e473dSmrgif test "x$enable_dependency_tracking" != xno; then 8445602e473dSmrg am_depcomp="$ac_aux_dir/depcomp" 8446602e473dSmrg AMDEPBACKSLASH='\' 8447602e473dSmrgfi 8448602e473dSmrgAM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 8449602e473dSmrgAC_SUBST([AMDEPBACKSLASH])dnl 8450602e473dSmrg_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl 8451602e473dSmrg]) 8452602e473dSmrg 8453602e473dSmrg# Generate code to set up dependency tracking. -*- Autoconf -*- 8454602e473dSmrg 8455602e473dSmrg# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 8456602e473dSmrg# Free Software Foundation, Inc. 8457602e473dSmrg# 8458602e473dSmrg# This file is free software; the Free Software Foundation 8459602e473dSmrg# gives unlimited permission to copy and/or distribute it, 8460602e473dSmrg# with or without modifications, as long as this notice is preserved. 8461602e473dSmrg 8462602e473dSmrg#serial 5 8463602e473dSmrg 8464602e473dSmrg# _AM_OUTPUT_DEPENDENCY_COMMANDS 8465602e473dSmrg# ------------------------------ 8466602e473dSmrgAC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 8467602e473dSmrg[{ 8468602e473dSmrg # Autoconf 2.62 quotes --file arguments for eval, but not when files 8469602e473dSmrg # are listed without --file. Let's play safe and only enable the eval 8470602e473dSmrg # if we detect the quoting. 8471602e473dSmrg case $CONFIG_FILES in 8472602e473dSmrg *\'*) eval set x "$CONFIG_FILES" ;; 8473602e473dSmrg *) set x $CONFIG_FILES ;; 8474602e473dSmrg esac 8475602e473dSmrg shift 8476602e473dSmrg for mf 8477602e473dSmrg do 8478602e473dSmrg # Strip MF so we end up with the name of the file. 8479602e473dSmrg mf=`echo "$mf" | sed -e 's/:.*$//'` 8480602e473dSmrg # Check whether this is an Automake generated Makefile or not. 8481602e473dSmrg # We used to match only the files named `Makefile.in', but 8482602e473dSmrg # some people rename them; so instead we look at the file content. 8483602e473dSmrg # Grep'ing the first line is not enough: some people post-process 8484602e473dSmrg # each Makefile.in and add a new line on top of each file to say so. 8485602e473dSmrg # Grep'ing the whole file is not good either: AIX grep has a line 8486602e473dSmrg # limit of 2048, but all sed's we know have understand at least 4000. 8487602e473dSmrg if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 8488602e473dSmrg dirpart=`AS_DIRNAME("$mf")` 8489602e473dSmrg else 8490602e473dSmrg continue 8491602e473dSmrg fi 8492602e473dSmrg # Extract the definition of DEPDIR, am__include, and am__quote 8493602e473dSmrg # from the Makefile without running `make'. 8494602e473dSmrg DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 8495602e473dSmrg test -z "$DEPDIR" && continue 8496602e473dSmrg am__include=`sed -n 's/^am__include = //p' < "$mf"` 8497602e473dSmrg test -z "am__include" && continue 8498602e473dSmrg am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 8499602e473dSmrg # When using ansi2knr, U may be empty or an underscore; expand it 8500602e473dSmrg U=`sed -n 's/^U = //p' < "$mf"` 8501602e473dSmrg # Find all dependency output files, they are included files with 8502602e473dSmrg # $(DEPDIR) in their names. We invoke sed twice because it is the 8503602e473dSmrg # simplest approach to changing $(DEPDIR) to its actual value in the 8504602e473dSmrg # expansion. 8505602e473dSmrg for file in `sed -n " 8506602e473dSmrg s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 8507602e473dSmrg sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 8508602e473dSmrg # Make sure the directory exists. 8509602e473dSmrg test -f "$dirpart/$file" && continue 8510602e473dSmrg fdir=`AS_DIRNAME(["$file"])` 8511602e473dSmrg AS_MKDIR_P([$dirpart/$fdir]) 8512602e473dSmrg # echo "creating $dirpart/$file" 8513602e473dSmrg echo '# dummy' > "$dirpart/$file" 8514602e473dSmrg done 8515602e473dSmrg done 8516602e473dSmrg} 8517602e473dSmrg])# _AM_OUTPUT_DEPENDENCY_COMMANDS 8518602e473dSmrg 8519602e473dSmrg 8520602e473dSmrg# AM_OUTPUT_DEPENDENCY_COMMANDS 8521602e473dSmrg# ----------------------------- 8522602e473dSmrg# This macro should only be invoked once -- use via AC_REQUIRE. 8523602e473dSmrg# 8524602e473dSmrg# This code is only required when automatic dependency tracking 8525602e473dSmrg# is enabled. FIXME. This creates each `.P' file that we will 8526602e473dSmrg# need in order to bootstrap the dependency handling code. 8527602e473dSmrgAC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], 8528602e473dSmrg[AC_CONFIG_COMMANDS([depfiles], 8529602e473dSmrg [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], 8530602e473dSmrg [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) 8531602e473dSmrg]) 8532602e473dSmrg 8533602e473dSmrg# Do all the work for Automake. -*- Autoconf -*- 8534602e473dSmrg 8535602e473dSmrg# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 8536602e473dSmrg# 2005, 2006, 2008, 2009 Free Software Foundation, Inc. 8537602e473dSmrg# 8538602e473dSmrg# This file is free software; the Free Software Foundation 8539602e473dSmrg# gives unlimited permission to copy and/or distribute it, 8540602e473dSmrg# with or without modifications, as long as this notice is preserved. 8541602e473dSmrg 8542602e473dSmrg# serial 16 8543602e473dSmrg 8544602e473dSmrg# This macro actually does too much. Some checks are only needed if 8545602e473dSmrg# your package does certain things. But this isn't really a big deal. 8546602e473dSmrg 8547602e473dSmrg# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) 8548602e473dSmrg# AM_INIT_AUTOMAKE([OPTIONS]) 8549602e473dSmrg# ----------------------------------------------- 8550602e473dSmrg# The call with PACKAGE and VERSION arguments is the old style 8551602e473dSmrg# call (pre autoconf-2.50), which is being phased out. PACKAGE 8552602e473dSmrg# and VERSION should now be passed to AC_INIT and removed from 8553602e473dSmrg# the call to AM_INIT_AUTOMAKE. 8554602e473dSmrg# We support both call styles for the transition. After 8555602e473dSmrg# the next Automake release, Autoconf can make the AC_INIT 8556602e473dSmrg# arguments mandatory, and then we can depend on a new Autoconf 8557602e473dSmrg# release and drop the old call support. 8558602e473dSmrgAC_DEFUN([AM_INIT_AUTOMAKE], 8559602e473dSmrg[AC_PREREQ([2.62])dnl 8560602e473dSmrgdnl Autoconf wants to disallow AM_ names. We explicitly allow 8561602e473dSmrgdnl the ones we care about. 8562602e473dSmrgm4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl 8563602e473dSmrgAC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 8564602e473dSmrgAC_REQUIRE([AC_PROG_INSTALL])dnl 8565602e473dSmrgif test "`cd $srcdir && pwd`" != "`pwd`"; then 8566602e473dSmrg # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 8567602e473dSmrg # is not polluted with repeated "-I." 8568602e473dSmrg AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl 8569602e473dSmrg # test to see if srcdir already configured 8570602e473dSmrg if test -f $srcdir/config.status; then 8571602e473dSmrg AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 8572602e473dSmrg fi 8573602e473dSmrgfi 8574602e473dSmrg 8575602e473dSmrg# test whether we have cygpath 8576602e473dSmrgif test -z "$CYGPATH_W"; then 8577602e473dSmrg if (cygpath --version) >/dev/null 2>/dev/null; then 8578602e473dSmrg CYGPATH_W='cygpath -w' 8579602e473dSmrg else 8580602e473dSmrg CYGPATH_W=echo 8581602e473dSmrg fi 8582602e473dSmrgfi 8583602e473dSmrgAC_SUBST([CYGPATH_W]) 8584602e473dSmrg 8585602e473dSmrg# Define the identity of the package. 8586602e473dSmrgdnl Distinguish between old-style and new-style calls. 8587602e473dSmrgm4_ifval([$2], 8588602e473dSmrg[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 8589602e473dSmrg AC_SUBST([PACKAGE], [$1])dnl 8590602e473dSmrg AC_SUBST([VERSION], [$2])], 8591602e473dSmrg[_AM_SET_OPTIONS([$1])dnl 8592602e473dSmrgdnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. 8593602e473dSmrgm4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, 8594602e473dSmrg [m4_fatal([AC_INIT should be called with package and version arguments])])dnl 8595602e473dSmrg AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl 8596602e473dSmrg AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl 8597602e473dSmrg 8598602e473dSmrg_AM_IF_OPTION([no-define],, 8599602e473dSmrg[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) 8600602e473dSmrg AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl 8601602e473dSmrg 8602602e473dSmrg# Some tools Automake needs. 8603602e473dSmrgAC_REQUIRE([AM_SANITY_CHECK])dnl 8604602e473dSmrgAC_REQUIRE([AC_ARG_PROGRAM])dnl 8605602e473dSmrgAM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) 8606602e473dSmrgAM_MISSING_PROG(AUTOCONF, autoconf) 8607602e473dSmrgAM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) 8608602e473dSmrgAM_MISSING_PROG(AUTOHEADER, autoheader) 8609602e473dSmrgAM_MISSING_PROG(MAKEINFO, makeinfo) 8610602e473dSmrgAC_REQUIRE([AM_PROG_INSTALL_SH])dnl 8611602e473dSmrgAC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl 8612602e473dSmrgAC_REQUIRE([AM_PROG_MKDIR_P])dnl 8613602e473dSmrg# We need awk for the "check" target. The system "awk" is bad on 8614602e473dSmrg# some platforms. 8615602e473dSmrgAC_REQUIRE([AC_PROG_AWK])dnl 8616602e473dSmrgAC_REQUIRE([AC_PROG_MAKE_SET])dnl 8617602e473dSmrgAC_REQUIRE([AM_SET_LEADING_DOT])dnl 8618602e473dSmrg_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], 8619602e473dSmrg [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], 8620602e473dSmrg [_AM_PROG_TAR([v7])])]) 8621602e473dSmrg_AM_IF_OPTION([no-dependencies],, 8622602e473dSmrg[AC_PROVIDE_IFELSE([AC_PROG_CC], 8623602e473dSmrg [_AM_DEPENDENCIES(CC)], 8624602e473dSmrg [define([AC_PROG_CC], 8625602e473dSmrg defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl 8626602e473dSmrgAC_PROVIDE_IFELSE([AC_PROG_CXX], 8627602e473dSmrg [_AM_DEPENDENCIES(CXX)], 8628602e473dSmrg [define([AC_PROG_CXX], 8629602e473dSmrg defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl 8630602e473dSmrgAC_PROVIDE_IFELSE([AC_PROG_OBJC], 8631602e473dSmrg [_AM_DEPENDENCIES(OBJC)], 8632602e473dSmrg [define([AC_PROG_OBJC], 8633602e473dSmrg defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl 8634602e473dSmrg]) 8635602e473dSmrg_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl 8636602e473dSmrgdnl The `parallel-tests' driver may need to know about EXEEXT, so add the 8637602e473dSmrgdnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro 8638602e473dSmrgdnl is hooked onto _AC_COMPILER_EXEEXT early, see below. 8639602e473dSmrgAC_CONFIG_COMMANDS_PRE(dnl 8640602e473dSmrg[m4_provide_if([_AM_COMPILER_EXEEXT], 8641602e473dSmrg [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl 8642602e473dSmrg]) 8643602e473dSmrg 8644602e473dSmrgdnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not 8645602e473dSmrgdnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further 8646602e473dSmrgdnl mangled by Autoconf and run in a shell conditional statement. 8647602e473dSmrgm4_define([_AC_COMPILER_EXEEXT], 8648602e473dSmrgm4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) 8649602e473dSmrg 8650602e473dSmrg 8651602e473dSmrg# When config.status generates a header, we must update the stamp-h file. 8652602e473dSmrg# This file resides in the same directory as the config header 8653602e473dSmrg# that is generated. The stamp files are numbered to have different names. 8654602e473dSmrg 8655602e473dSmrg# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the 8656602e473dSmrg# loop where config.status creates the headers, so we can generate 8657602e473dSmrg# our stamp files there. 8658602e473dSmrgAC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], 8659602e473dSmrg[# Compute $1's index in $config_headers. 8660602e473dSmrg_am_arg=$1 8661602e473dSmrg_am_stamp_count=1 8662602e473dSmrgfor _am_header in $config_headers :; do 8663602e473dSmrg case $_am_header in 8664602e473dSmrg $_am_arg | $_am_arg:* ) 8665602e473dSmrg break ;; 8666602e473dSmrg * ) 8667602e473dSmrg _am_stamp_count=`expr $_am_stamp_count + 1` ;; 8668602e473dSmrg esac 8669602e473dSmrgdone 8670602e473dSmrgecho "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) 8671602e473dSmrg 8672602e473dSmrg# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc. 8673602e473dSmrg# 8674602e473dSmrg# This file is free software; the Free Software Foundation 8675602e473dSmrg# gives unlimited permission to copy and/or distribute it, 8676602e473dSmrg# with or without modifications, as long as this notice is preserved. 8677602e473dSmrg 8678602e473dSmrg# AM_PROG_INSTALL_SH 8679602e473dSmrg# ------------------ 8680602e473dSmrg# Define $install_sh. 8681602e473dSmrgAC_DEFUN([AM_PROG_INSTALL_SH], 8682602e473dSmrg[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 8683602e473dSmrgif test x"${install_sh}" != xset; then 8684602e473dSmrg case $am_aux_dir in 8685602e473dSmrg *\ * | *\ *) 8686602e473dSmrg install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 8687602e473dSmrg *) 8688602e473dSmrg install_sh="\${SHELL} $am_aux_dir/install-sh" 8689602e473dSmrg esac 8690602e473dSmrgfi 8691602e473dSmrgAC_SUBST(install_sh)]) 8692602e473dSmrg 8693602e473dSmrg# Copyright (C) 2003, 2005 Free Software Foundation, Inc. 8694602e473dSmrg# 8695602e473dSmrg# This file is free software; the Free Software Foundation 8696602e473dSmrg# gives unlimited permission to copy and/or distribute it, 8697602e473dSmrg# with or without modifications, as long as this notice is preserved. 8698602e473dSmrg 8699602e473dSmrg# serial 2 8700602e473dSmrg 8701602e473dSmrg# Check whether the underlying file-system supports filenames 8702602e473dSmrg# with a leading dot. For instance MS-DOS doesn't. 8703602e473dSmrgAC_DEFUN([AM_SET_LEADING_DOT], 8704602e473dSmrg[rm -rf .tst 2>/dev/null 8705602e473dSmrgmkdir .tst 2>/dev/null 8706602e473dSmrgif test -d .tst; then 8707602e473dSmrg am__leading_dot=. 8708602e473dSmrgelse 8709602e473dSmrg am__leading_dot=_ 8710602e473dSmrgfi 8711602e473dSmrgrmdir .tst 2>/dev/null 8712602e473dSmrgAC_SUBST([am__leading_dot])]) 8713602e473dSmrg 8714602e473dSmrg# Check to see how 'make' treats includes. -*- Autoconf -*- 8715602e473dSmrg 8716602e473dSmrg# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. 8717602e473dSmrg# 8718602e473dSmrg# This file is free software; the Free Software Foundation 8719602e473dSmrg# gives unlimited permission to copy and/or distribute it, 8720602e473dSmrg# with or without modifications, as long as this notice is preserved. 8721602e473dSmrg 8722602e473dSmrg# serial 4 8723602e473dSmrg 8724602e473dSmrg# AM_MAKE_INCLUDE() 8725602e473dSmrg# ----------------- 8726602e473dSmrg# Check to see how make treats includes. 8727602e473dSmrgAC_DEFUN([AM_MAKE_INCLUDE], 8728602e473dSmrg[am_make=${MAKE-make} 8729602e473dSmrgcat > confinc << 'END' 8730602e473dSmrgam__doit: 8731602e473dSmrg @echo this is the am__doit target 8732602e473dSmrg.PHONY: am__doit 8733602e473dSmrgEND 8734602e473dSmrg# If we don't find an include directive, just comment out the code. 8735602e473dSmrgAC_MSG_CHECKING([for style of include used by $am_make]) 8736602e473dSmrgam__include="#" 8737602e473dSmrgam__quote= 8738602e473dSmrg_am_result=none 8739602e473dSmrg# First try GNU make style include. 8740602e473dSmrgecho "include confinc" > confmf 8741602e473dSmrg# Ignore all kinds of additional output from `make'. 8742602e473dSmrgcase `$am_make -s -f confmf 2> /dev/null` in #( 8743602e473dSmrg*the\ am__doit\ target*) 8744602e473dSmrg am__include=include 8745602e473dSmrg am__quote= 8746602e473dSmrg _am_result=GNU 8747602e473dSmrg ;; 8748602e473dSmrgesac 8749602e473dSmrg# Now try BSD make style include. 8750602e473dSmrgif test "$am__include" = "#"; then 8751602e473dSmrg echo '.include "confinc"' > confmf 8752602e473dSmrg case `$am_make -s -f confmf 2> /dev/null` in #( 8753602e473dSmrg *the\ am__doit\ target*) 8754602e473dSmrg am__include=.include 8755602e473dSmrg am__quote="\"" 8756602e473dSmrg _am_result=BSD 8757602e473dSmrg ;; 8758602e473dSmrg esac 8759602e473dSmrgfi 8760602e473dSmrgAC_SUBST([am__include]) 8761602e473dSmrgAC_SUBST([am__quote]) 8762602e473dSmrgAC_MSG_RESULT([$_am_result]) 8763602e473dSmrgrm -f confinc confmf 8764602e473dSmrg]) 8765602e473dSmrg 8766602e473dSmrg# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 8767602e473dSmrg 8768602e473dSmrg# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 8769602e473dSmrg# Free Software Foundation, Inc. 8770602e473dSmrg# 8771602e473dSmrg# This file is free software; the Free Software Foundation 8772602e473dSmrg# gives unlimited permission to copy and/or distribute it, 8773602e473dSmrg# with or without modifications, as long as this notice is preserved. 8774602e473dSmrg 8775602e473dSmrg# serial 6 8776602e473dSmrg 8777602e473dSmrg# AM_MISSING_PROG(NAME, PROGRAM) 8778602e473dSmrg# ------------------------------ 8779602e473dSmrgAC_DEFUN([AM_MISSING_PROG], 8780602e473dSmrg[AC_REQUIRE([AM_MISSING_HAS_RUN]) 8781602e473dSmrg$1=${$1-"${am_missing_run}$2"} 8782602e473dSmrgAC_SUBST($1)]) 8783602e473dSmrg 8784602e473dSmrg 8785602e473dSmrg# AM_MISSING_HAS_RUN 8786602e473dSmrg# ------------------ 8787602e473dSmrg# Define MISSING if not defined so far and test if it supports --run. 8788602e473dSmrg# If it does, set am_missing_run to use it, otherwise, to nothing. 8789602e473dSmrgAC_DEFUN([AM_MISSING_HAS_RUN], 8790602e473dSmrg[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 8791602e473dSmrgAC_REQUIRE_AUX_FILE([missing])dnl 8792602e473dSmrgif test x"${MISSING+set}" != xset; then 8793602e473dSmrg case $am_aux_dir in 8794602e473dSmrg *\ * | *\ *) 8795602e473dSmrg MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 8796602e473dSmrg *) 8797602e473dSmrg MISSING="\${SHELL} $am_aux_dir/missing" ;; 8798602e473dSmrg esac 8799602e473dSmrgfi 8800602e473dSmrg# Use eval to expand $SHELL 8801602e473dSmrgif eval "$MISSING --run true"; then 8802602e473dSmrg am_missing_run="$MISSING --run " 8803602e473dSmrgelse 8804602e473dSmrg am_missing_run= 8805602e473dSmrg AC_MSG_WARN([`missing' script is too old or missing]) 8806602e473dSmrgfi 8807602e473dSmrg]) 8808602e473dSmrg 8809602e473dSmrg# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 8810602e473dSmrg# 8811602e473dSmrg# This file is free software; the Free Software Foundation 8812602e473dSmrg# gives unlimited permission to copy and/or distribute it, 8813602e473dSmrg# with or without modifications, as long as this notice is preserved. 8814602e473dSmrg 8815602e473dSmrg# AM_PROG_MKDIR_P 8816602e473dSmrg# --------------- 8817602e473dSmrg# Check for `mkdir -p'. 8818602e473dSmrgAC_DEFUN([AM_PROG_MKDIR_P], 8819602e473dSmrg[AC_PREREQ([2.60])dnl 8820602e473dSmrgAC_REQUIRE([AC_PROG_MKDIR_P])dnl 8821602e473dSmrgdnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, 8822602e473dSmrgdnl while keeping a definition of mkdir_p for backward compatibility. 8823602e473dSmrgdnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. 8824602e473dSmrgdnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of 8825602e473dSmrgdnl Makefile.ins that do not define MKDIR_P, so we do our own 8826602e473dSmrgdnl adjustment using top_builddir (which is defined more often than 8827602e473dSmrgdnl MKDIR_P). 8828602e473dSmrgAC_SUBST([mkdir_p], ["$MKDIR_P"])dnl 8829602e473dSmrgcase $mkdir_p in 8830602e473dSmrg [[\\/$]]* | ?:[[\\/]]*) ;; 8831602e473dSmrg */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 8832602e473dSmrgesac 8833602e473dSmrg]) 8834602e473dSmrg 8835602e473dSmrg# Helper functions for option handling. -*- Autoconf -*- 8836602e473dSmrg 8837602e473dSmrg# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc. 8838602e473dSmrg# 8839602e473dSmrg# This file is free software; the Free Software Foundation 8840602e473dSmrg# gives unlimited permission to copy and/or distribute it, 8841602e473dSmrg# with or without modifications, as long as this notice is preserved. 8842602e473dSmrg 8843602e473dSmrg# serial 4 8844602e473dSmrg 8845602e473dSmrg# _AM_MANGLE_OPTION(NAME) 8846602e473dSmrg# ----------------------- 8847602e473dSmrgAC_DEFUN([_AM_MANGLE_OPTION], 8848602e473dSmrg[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) 8849602e473dSmrg 8850602e473dSmrg# _AM_SET_OPTION(NAME) 8851602e473dSmrg# ------------------------------ 8852602e473dSmrg# Set option NAME. Presently that only means defining a flag for this option. 8853602e473dSmrgAC_DEFUN([_AM_SET_OPTION], 8854602e473dSmrg[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) 8855602e473dSmrg 8856602e473dSmrg# _AM_SET_OPTIONS(OPTIONS) 8857602e473dSmrg# ---------------------------------- 8858602e473dSmrg# OPTIONS is a space-separated list of Automake options. 8859602e473dSmrgAC_DEFUN([_AM_SET_OPTIONS], 8860602e473dSmrg[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) 8861602e473dSmrg 8862602e473dSmrg# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) 8863602e473dSmrg# ------------------------------------------- 8864602e473dSmrg# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 8865602e473dSmrgAC_DEFUN([_AM_IF_OPTION], 8866602e473dSmrg[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 8867602e473dSmrg 8868602e473dSmrg# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008, 2009 8869602e473dSmrg# Free Software Foundation, Inc. 8870602e473dSmrg# 8871602e473dSmrg# This file is free software; the Free Software Foundation 8872602e473dSmrg# gives unlimited permission to copy and/or distribute it, 8873602e473dSmrg# with or without modifications, as long as this notice is preserved. 8874602e473dSmrg 8875602e473dSmrg# AM_PATH_PYTHON([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 8876602e473dSmrg# --------------------------------------------------------------------------- 8877602e473dSmrg# Adds support for distributing Python modules and packages. To 8878602e473dSmrg# install modules, copy them to $(pythondir), using the python_PYTHON 8879602e473dSmrg# automake variable. To install a package with the same name as the 8880602e473dSmrg# automake package, install to $(pkgpythondir), or use the 8881602e473dSmrg# pkgpython_PYTHON automake variable. 8882602e473dSmrg# 8883602e473dSmrg# The variables $(pyexecdir) and $(pkgpyexecdir) are provided as 8884602e473dSmrg# locations to install python extension modules (shared libraries). 8885602e473dSmrg# Another macro is required to find the appropriate flags to compile 8886602e473dSmrg# extension modules. 8887602e473dSmrg# 8888602e473dSmrg# If your package is configured with a different prefix to python, 8889602e473dSmrg# users will have to add the install directory to the PYTHONPATH 8890602e473dSmrg# environment variable, or create a .pth file (see the python 8891602e473dSmrg# documentation for details). 8892602e473dSmrg# 8893602e473dSmrg# If the MINIMUM-VERSION argument is passed, AM_PATH_PYTHON will 8894602e473dSmrg# cause an error if the version of python installed on the system 8895602e473dSmrg# doesn't meet the requirement. MINIMUM-VERSION should consist of 8896602e473dSmrg# numbers and dots only. 8897602e473dSmrgAC_DEFUN([AM_PATH_PYTHON], 8898602e473dSmrg [ 8899602e473dSmrg dnl Find a Python interpreter. Python versions prior to 2.0 are not 8900602e473dSmrg dnl supported. (2.0 was released on October 16, 2000). 8901602e473dSmrg m4_define_default([_AM_PYTHON_INTERPRETER_LIST], 8902602e473dSmrg [python python2 python3 python3.0 python2.6 python2.5 python2.4 python2.3 python2.2 dnl 8903602e473dSmrgpython2.1 python2.0]) 8904602e473dSmrg 8905602e473dSmrg m4_if([$1],[],[ 8906602e473dSmrg dnl No version check is needed. 8907602e473dSmrg # Find any Python interpreter. 8908602e473dSmrg if test -z "$PYTHON"; then 8909602e473dSmrg AC_PATH_PROGS([PYTHON], _AM_PYTHON_INTERPRETER_LIST, :) 8910602e473dSmrg fi 8911602e473dSmrg am_display_PYTHON=python 8912602e473dSmrg ], [ 8913602e473dSmrg dnl A version check is needed. 8914602e473dSmrg if test -n "$PYTHON"; then 8915602e473dSmrg # If the user set $PYTHON, use it and don't search something else. 8916602e473dSmrg AC_MSG_CHECKING([whether $PYTHON version >= $1]) 8917602e473dSmrg AM_PYTHON_CHECK_VERSION([$PYTHON], [$1], 8918602e473dSmrg [AC_MSG_RESULT(yes)], 8919602e473dSmrg [AC_MSG_ERROR(too old)]) 8920602e473dSmrg am_display_PYTHON=$PYTHON 8921602e473dSmrg else 8922602e473dSmrg # Otherwise, try each interpreter until we find one that satisfies 8923602e473dSmrg # VERSION. 8924602e473dSmrg AC_CACHE_CHECK([for a Python interpreter with version >= $1], 8925602e473dSmrg [am_cv_pathless_PYTHON],[ 8926602e473dSmrg for am_cv_pathless_PYTHON in _AM_PYTHON_INTERPRETER_LIST none; do 8927602e473dSmrg test "$am_cv_pathless_PYTHON" = none && break 8928602e473dSmrg AM_PYTHON_CHECK_VERSION([$am_cv_pathless_PYTHON], [$1], [break]) 8929602e473dSmrg done]) 8930602e473dSmrg # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON. 8931602e473dSmrg if test "$am_cv_pathless_PYTHON" = none; then 8932602e473dSmrg PYTHON=: 8933602e473dSmrg else 8934602e473dSmrg AC_PATH_PROG([PYTHON], [$am_cv_pathless_PYTHON]) 8935602e473dSmrg fi 8936602e473dSmrg am_display_PYTHON=$am_cv_pathless_PYTHON 8937602e473dSmrg fi 8938602e473dSmrg ]) 8939602e473dSmrg 8940602e473dSmrg if test "$PYTHON" = :; then 8941602e473dSmrg dnl Run any user-specified action, or abort. 8942602e473dSmrg m4_default([$3], [AC_MSG_ERROR([no suitable Python interpreter found])]) 8943602e473dSmrg else 8944602e473dSmrg 8945602e473dSmrg dnl Query Python for its version number. Getting [:3] seems to be 8946602e473dSmrg dnl the best way to do this; it's what "site.py" does in the standard 8947602e473dSmrg dnl library. 8948602e473dSmrg 8949602e473dSmrg AC_CACHE_CHECK([for $am_display_PYTHON version], [am_cv_python_version], 8950602e473dSmrg [am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[[:3]])"`]) 8951602e473dSmrg AC_SUBST([PYTHON_VERSION], [$am_cv_python_version]) 8952602e473dSmrg 8953602e473dSmrg dnl Use the values of $prefix and $exec_prefix for the corresponding 8954602e473dSmrg dnl values of PYTHON_PREFIX and PYTHON_EXEC_PREFIX. These are made 8955602e473dSmrg dnl distinct variables so they can be overridden if need be. However, 8956602e473dSmrg dnl general consensus is that you shouldn't need this ability. 8957602e473dSmrg 8958602e473dSmrg AC_SUBST([PYTHON_PREFIX], ['${prefix}']) 8959602e473dSmrg AC_SUBST([PYTHON_EXEC_PREFIX], ['${exec_prefix}']) 8960602e473dSmrg 8961602e473dSmrg dnl At times (like when building shared libraries) you may want 8962602e473dSmrg dnl to know which OS platform Python thinks this is. 8963602e473dSmrg 8964602e473dSmrg AC_CACHE_CHECK([for $am_display_PYTHON platform], [am_cv_python_platform], 8965602e473dSmrg [am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`]) 8966602e473dSmrg AC_SUBST([PYTHON_PLATFORM], [$am_cv_python_platform]) 8967602e473dSmrg 8968602e473dSmrg 8969602e473dSmrg dnl Set up 4 directories: 8970602e473dSmrg 8971602e473dSmrg dnl pythondir -- where to install python scripts. This is the 8972602e473dSmrg dnl site-packages directory, not the python standard library 8973602e473dSmrg dnl directory like in previous automake betas. This behavior 8974602e473dSmrg dnl is more consistent with lispdir.m4 for example. 8975602e473dSmrg dnl Query distutils for this directory. distutils does not exist in 8976602e473dSmrg dnl Python 1.5, so we fall back to the hardcoded directory if it 8977602e473dSmrg dnl doesn't work. 8978602e473dSmrg AC_CACHE_CHECK([for $am_display_PYTHON script directory], 8979602e473dSmrg [am_cv_python_pythondir], 8980602e473dSmrg [if test "x$prefix" = xNONE 8981602e473dSmrg then 8982602e473dSmrg am_py_prefix=$ac_default_prefix 8983602e473dSmrg else 8984602e473dSmrg am_py_prefix=$prefix 8985602e473dSmrg fi 8986602e473dSmrg am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null || 8987602e473dSmrg echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"` 8988602e473dSmrg case $am_cv_python_pythondir in 8989602e473dSmrg $am_py_prefix*) 8990602e473dSmrg am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'` 8991602e473dSmrg am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"` 8992602e473dSmrg ;; 8993602e473dSmrg *) 8994602e473dSmrg case $am_py_prefix in 8995602e473dSmrg /usr|/System*) ;; 8996602e473dSmrg *) 8997602e473dSmrg am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages 8998602e473dSmrg ;; 8999602e473dSmrg esac 9000602e473dSmrg ;; 9001602e473dSmrg esac 9002602e473dSmrg ]) 9003602e473dSmrg AC_SUBST([pythondir], [$am_cv_python_pythondir]) 9004602e473dSmrg 9005602e473dSmrg dnl pkgpythondir -- $PACKAGE directory under pythondir. Was 9006602e473dSmrg dnl PYTHON_SITE_PACKAGE in previous betas, but this naming is 9007602e473dSmrg dnl more consistent with the rest of automake. 9008602e473dSmrg 9009602e473dSmrg AC_SUBST([pkgpythondir], [\${pythondir}/$PACKAGE]) 9010602e473dSmrg 9011602e473dSmrg dnl pyexecdir -- directory for installing python extension modules 9012602e473dSmrg dnl (shared libraries) 9013602e473dSmrg dnl Query distutils for this directory. distutils does not exist in 9014602e473dSmrg dnl Python 1.5, so we fall back to the hardcoded directory if it 9015602e473dSmrg dnl doesn't work. 9016602e473dSmrg AC_CACHE_CHECK([for $am_display_PYTHON extension module directory], 9017602e473dSmrg [am_cv_python_pyexecdir], 9018602e473dSmrg [if test "x$exec_prefix" = xNONE 9019602e473dSmrg then 9020602e473dSmrg am_py_exec_prefix=$am_py_prefix 9021602e473dSmrg else 9022602e473dSmrg am_py_exec_prefix=$exec_prefix 9023602e473dSmrg fi 9024602e473dSmrg am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null || 9025602e473dSmrg echo "$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages"` 9026602e473dSmrg case $am_cv_python_pyexecdir in 9027602e473dSmrg $am_py_exec_prefix*) 9028602e473dSmrg am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'` 9029602e473dSmrg am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"` 9030602e473dSmrg ;; 9031602e473dSmrg *) 9032602e473dSmrg case $am_py_exec_prefix in 9033602e473dSmrg /usr|/System*) ;; 9034602e473dSmrg *) 9035602e473dSmrg am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages 9036602e473dSmrg ;; 9037602e473dSmrg esac 9038602e473dSmrg ;; 9039602e473dSmrg esac 9040602e473dSmrg ]) 9041602e473dSmrg AC_SUBST([pyexecdir], [$am_cv_python_pyexecdir]) 9042602e473dSmrg 9043602e473dSmrg dnl pkgpyexecdir -- $(pyexecdir)/$(PACKAGE) 9044602e473dSmrg 9045602e473dSmrg AC_SUBST([pkgpyexecdir], [\${pyexecdir}/$PACKAGE]) 9046602e473dSmrg 9047602e473dSmrg dnl Run any user-specified action. 9048602e473dSmrg $2 9049602e473dSmrg fi 9050602e473dSmrg 9051602e473dSmrg]) 9052602e473dSmrg 9053602e473dSmrg 9054602e473dSmrg# AM_PYTHON_CHECK_VERSION(PROG, VERSION, [ACTION-IF-TRUE], [ACTION-IF-FALSE]) 9055602e473dSmrg# --------------------------------------------------------------------------- 9056602e473dSmrg# Run ACTION-IF-TRUE if the Python interpreter PROG has version >= VERSION. 9057602e473dSmrg# Run ACTION-IF-FALSE otherwise. 9058602e473dSmrg# This test uses sys.hexversion instead of the string equivalent (first 9059602e473dSmrg# word of sys.version), in order to cope with versions such as 2.2c1. 9060602e473dSmrg# This supports Python 2.0 or higher. (2.0 was released on October 16, 2000). 9061602e473dSmrgAC_DEFUN([AM_PYTHON_CHECK_VERSION], 9062602e473dSmrg [prog="import sys 9063602e473dSmrg# split strings by '.' and convert to numeric. Append some zeros 9064602e473dSmrg# because we need at least 4 digits for the hex conversion. 9065602e473dSmrg# map returns an iterator in Python 3.0 and a list in 2.x 9066602e473dSmrgminver = list(map(int, '$2'.split('.'))) + [[0, 0, 0]] 9067602e473dSmrgminverhex = 0 9068602e473dSmrg# xrange is not present in Python 3.0 and range returns an iterator 9069602e473dSmrgfor i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[[i]] 9070602e473dSmrgsys.exit(sys.hexversion < minverhex)" 9071602e473dSmrg AS_IF([AM_RUN_LOG([$1 -c "$prog"])], [$3], [$4])]) 9072602e473dSmrg 9073602e473dSmrg# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 9074602e473dSmrg# 9075602e473dSmrg# This file is free software; the Free Software Foundation 9076602e473dSmrg# gives unlimited permission to copy and/or distribute it, 9077602e473dSmrg# with or without modifications, as long as this notice is preserved. 9078602e473dSmrg 9079602e473dSmrg# AM_RUN_LOG(COMMAND) 9080602e473dSmrg# ------------------- 9081602e473dSmrg# Run COMMAND, save the exit status in ac_status, and log it. 9082602e473dSmrg# (This has been adapted from Autoconf's _AC_RUN_LOG macro.) 9083602e473dSmrgAC_DEFUN([AM_RUN_LOG], 9084602e473dSmrg[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD 9085602e473dSmrg ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD 9086602e473dSmrg ac_status=$? 9087602e473dSmrg echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 9088602e473dSmrg (exit $ac_status); }]) 9089602e473dSmrg 9090602e473dSmrg# Check to make sure that the build environment is sane. -*- Autoconf -*- 9091602e473dSmrg 9092602e473dSmrg# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 9093602e473dSmrg# Free Software Foundation, Inc. 9094602e473dSmrg# 9095602e473dSmrg# This file is free software; the Free Software Foundation 9096602e473dSmrg# gives unlimited permission to copy and/or distribute it, 9097602e473dSmrg# with or without modifications, as long as this notice is preserved. 9098602e473dSmrg 9099602e473dSmrg# serial 5 9100602e473dSmrg 9101602e473dSmrg# AM_SANITY_CHECK 9102602e473dSmrg# --------------- 9103602e473dSmrgAC_DEFUN([AM_SANITY_CHECK], 9104602e473dSmrg[AC_MSG_CHECKING([whether build environment is sane]) 9105602e473dSmrg# Just in case 9106602e473dSmrgsleep 1 9107602e473dSmrgecho timestamp > conftest.file 9108602e473dSmrg# Reject unsafe characters in $srcdir or the absolute working directory 9109602e473dSmrg# name. Accept space and tab only in the latter. 9110602e473dSmrgam_lf=' 9111602e473dSmrg' 9112602e473dSmrgcase `pwd` in 9113602e473dSmrg *[[\\\"\#\$\&\'\`$am_lf]]*) 9114602e473dSmrg AC_MSG_ERROR([unsafe absolute working directory name]);; 9115602e473dSmrgesac 9116602e473dSmrgcase $srcdir in 9117602e473dSmrg *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) 9118602e473dSmrg AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; 9119602e473dSmrgesac 9120602e473dSmrg 9121602e473dSmrg# Do `set' in a subshell so we don't clobber the current shell's 9122602e473dSmrg# arguments. Must try -L first in case configure is actually a 9123602e473dSmrg# symlink; some systems play weird games with the mod time of symlinks 9124602e473dSmrg# (eg FreeBSD returns the mod time of the symlink's containing 9125602e473dSmrg# directory). 9126602e473dSmrgif ( 9127602e473dSmrg set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 9128602e473dSmrg if test "$[*]" = "X"; then 9129602e473dSmrg # -L didn't work. 9130602e473dSmrg set X `ls -t "$srcdir/configure" conftest.file` 9131602e473dSmrg fi 9132602e473dSmrg rm -f conftest.file 9133602e473dSmrg if test "$[*]" != "X $srcdir/configure conftest.file" \ 9134602e473dSmrg && test "$[*]" != "X conftest.file $srcdir/configure"; then 9135602e473dSmrg 9136602e473dSmrg # If neither matched, then we have a broken ls. This can happen 9137602e473dSmrg # if, for instance, CONFIG_SHELL is bash and it inherits a 9138602e473dSmrg # broken ls alias from the environment. This has actually 9139602e473dSmrg # happened. Such a system could not be considered "sane". 9140602e473dSmrg AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 9141602e473dSmrgalias in your environment]) 9142602e473dSmrg fi 9143602e473dSmrg 9144602e473dSmrg test "$[2]" = conftest.file 9145602e473dSmrg ) 9146602e473dSmrgthen 9147602e473dSmrg # Ok. 9148602e473dSmrg : 9149602e473dSmrgelse 9150602e473dSmrg AC_MSG_ERROR([newly created file is older than distributed files! 9151602e473dSmrgCheck your system clock]) 9152602e473dSmrgfi 9153602e473dSmrgAC_MSG_RESULT(yes)]) 9154602e473dSmrg 9155602e473dSmrg# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 9156602e473dSmrg# 9157602e473dSmrg# This file is free software; the Free Software Foundation 9158602e473dSmrg# gives unlimited permission to copy and/or distribute it, 9159602e473dSmrg# with or without modifications, as long as this notice is preserved. 9160602e473dSmrg 9161602e473dSmrg# AM_PROG_INSTALL_STRIP 9162602e473dSmrg# --------------------- 9163602e473dSmrg# One issue with vendor `install' (even GNU) is that you can't 9164602e473dSmrg# specify the program used to strip binaries. This is especially 9165602e473dSmrg# annoying in cross-compiling environments, where the build's strip 9166602e473dSmrg# is unlikely to handle the host's binaries. 9167602e473dSmrg# Fortunately install-sh will honor a STRIPPROG variable, so we 9168602e473dSmrg# always use install-sh in `make install-strip', and initialize 9169602e473dSmrg# STRIPPROG with the value of the STRIP variable (set by the user). 9170602e473dSmrgAC_DEFUN([AM_PROG_INSTALL_STRIP], 9171602e473dSmrg[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 9172602e473dSmrg# Installed binaries are usually stripped using `strip' when the user 9173602e473dSmrg# run `make install-strip'. However `strip' might not be the right 9174602e473dSmrg# tool to use in cross-compilation environments, therefore Automake 9175602e473dSmrg# will honor the `STRIP' environment variable to overrule this program. 9176602e473dSmrgdnl Don't test for $cross_compiling = yes, because it might be `maybe'. 9177602e473dSmrgif test "$cross_compiling" != no; then 9178602e473dSmrg AC_CHECK_TOOL([STRIP], [strip], :) 9179602e473dSmrgfi 9180602e473dSmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 9181602e473dSmrgAC_SUBST([INSTALL_STRIP_PROGRAM])]) 9182602e473dSmrg 9183602e473dSmrg# Copyright (C) 2006, 2008 Free Software Foundation, Inc. 9184602e473dSmrg# 9185602e473dSmrg# This file is free software; the Free Software Foundation 9186602e473dSmrg# gives unlimited permission to copy and/or distribute it, 9187602e473dSmrg# with or without modifications, as long as this notice is preserved. 9188602e473dSmrg 9189602e473dSmrg# serial 2 9190602e473dSmrg 9191602e473dSmrg# _AM_SUBST_NOTMAKE(VARIABLE) 9192602e473dSmrg# --------------------------- 9193602e473dSmrg# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. 9194602e473dSmrg# This macro is traced by Automake. 9195602e473dSmrgAC_DEFUN([_AM_SUBST_NOTMAKE]) 9196602e473dSmrg 9197602e473dSmrg# AM_SUBST_NOTMAKE(VARIABLE) 9198602e473dSmrg# --------------------------- 9199602e473dSmrg# Public sister of _AM_SUBST_NOTMAKE. 9200602e473dSmrgAC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) 9201602e473dSmrg 9202602e473dSmrg# Check how to create a tarball. -*- Autoconf -*- 9203602e473dSmrg 9204602e473dSmrg# Copyright (C) 2004, 2005 Free Software Foundation, Inc. 9205602e473dSmrg# 9206602e473dSmrg# This file is free software; the Free Software Foundation 9207602e473dSmrg# gives unlimited permission to copy and/or distribute it, 9208602e473dSmrg# with or without modifications, as long as this notice is preserved. 9209602e473dSmrg 9210602e473dSmrg# serial 2 9211602e473dSmrg 9212602e473dSmrg# _AM_PROG_TAR(FORMAT) 9213602e473dSmrg# -------------------- 9214602e473dSmrg# Check how to create a tarball in format FORMAT. 9215602e473dSmrg# FORMAT should be one of `v7', `ustar', or `pax'. 9216602e473dSmrg# 9217602e473dSmrg# Substitute a variable $(am__tar) that is a command 9218602e473dSmrg# writing to stdout a FORMAT-tarball containing the directory 9219602e473dSmrg# $tardir. 9220602e473dSmrg# tardir=directory && $(am__tar) > result.tar 9221602e473dSmrg# 9222602e473dSmrg# Substitute a variable $(am__untar) that extract such 9223602e473dSmrg# a tarball read from stdin. 9224602e473dSmrg# $(am__untar) < result.tar 9225602e473dSmrgAC_DEFUN([_AM_PROG_TAR], 9226602e473dSmrg[# Always define AMTAR for backward compatibility. 9227602e473dSmrgAM_MISSING_PROG([AMTAR], [tar]) 9228602e473dSmrgm4_if([$1], [v7], 9229602e473dSmrg [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], 9230602e473dSmrg [m4_case([$1], [ustar],, [pax],, 9231602e473dSmrg [m4_fatal([Unknown tar format])]) 9232602e473dSmrgAC_MSG_CHECKING([how to create a $1 tar archive]) 9233602e473dSmrg# Loop over all known methods to create a tar archive until one works. 9234602e473dSmrg_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' 9235602e473dSmrg_am_tools=${am_cv_prog_tar_$1-$_am_tools} 9236602e473dSmrg# Do not fold the above two line into one, because Tru64 sh and 9237602e473dSmrg# Solaris sh will not grok spaces in the rhs of `-'. 9238602e473dSmrgfor _am_tool in $_am_tools 9239602e473dSmrgdo 9240602e473dSmrg case $_am_tool in 9241602e473dSmrg gnutar) 9242602e473dSmrg for _am_tar in tar gnutar gtar; 9243602e473dSmrg do 9244602e473dSmrg AM_RUN_LOG([$_am_tar --version]) && break 9245602e473dSmrg done 9246602e473dSmrg am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' 9247602e473dSmrg am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' 9248602e473dSmrg am__untar="$_am_tar -xf -" 9249602e473dSmrg ;; 9250602e473dSmrg plaintar) 9251602e473dSmrg # Must skip GNU tar: if it does not support --format= it doesn't create 9252602e473dSmrg # ustar tarball either. 9253602e473dSmrg (tar --version) >/dev/null 2>&1 && continue 9254602e473dSmrg am__tar='tar chf - "$$tardir"' 9255602e473dSmrg am__tar_='tar chf - "$tardir"' 9256602e473dSmrg am__untar='tar xf -' 9257602e473dSmrg ;; 9258602e473dSmrg pax) 9259602e473dSmrg am__tar='pax -L -x $1 -w "$$tardir"' 9260602e473dSmrg am__tar_='pax -L -x $1 -w "$tardir"' 9261602e473dSmrg am__untar='pax -r' 9262602e473dSmrg ;; 9263602e473dSmrg cpio) 9264602e473dSmrg am__tar='find "$$tardir" -print | cpio -o -H $1 -L' 9265602e473dSmrg am__tar_='find "$tardir" -print | cpio -o -H $1 -L' 9266602e473dSmrg am__untar='cpio -i -H $1 -d' 9267602e473dSmrg ;; 9268602e473dSmrg none) 9269602e473dSmrg am__tar=false 9270602e473dSmrg am__tar_=false 9271602e473dSmrg am__untar=false 9272602e473dSmrg ;; 9273602e473dSmrg esac 9274602e473dSmrg 9275602e473dSmrg # If the value was cached, stop now. We just wanted to have am__tar 9276602e473dSmrg # and am__untar set. 9277602e473dSmrg test -n "${am_cv_prog_tar_$1}" && break 9278602e473dSmrg 9279602e473dSmrg # tar/untar a dummy directory, and stop if the command works 9280602e473dSmrg rm -rf conftest.dir 9281602e473dSmrg mkdir conftest.dir 9282602e473dSmrg echo GrepMe > conftest.dir/file 9283602e473dSmrg AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) 9284602e473dSmrg rm -rf conftest.dir 9285602e473dSmrg if test -s conftest.tar; then 9286602e473dSmrg AM_RUN_LOG([$am__untar <conftest.tar]) 9287602e473dSmrg grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 9288602e473dSmrg fi 9289602e473dSmrgdone 9290602e473dSmrgrm -rf conftest.dir 9291602e473dSmrg 9292602e473dSmrgAC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) 9293602e473dSmrgAC_MSG_RESULT([$am_cv_prog_tar_$1])]) 9294602e473dSmrgAC_SUBST([am__tar]) 9295602e473dSmrgAC_SUBST([am__untar]) 9296602e473dSmrg]) # _AM_PROG_TAR 9297602e473dSmrg 9298602e473dSmrgm4_include([acinclude.m4]) 9299