aclocal.m4 revision c4f7863a
1c4f7863aSmrg# generated automatically by aclocal 1.10.2 -*- Autoconf -*- 29bd41f2cSmrg 39bd41f2cSmrg# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 4c4f7863aSmrg# 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 59bd41f2cSmrg# This file is free software; the Free Software Foundation 69bd41f2cSmrg# gives unlimited permission to copy and/or distribute it, 79bd41f2cSmrg# with or without modifications, as long as this notice is preserved. 89bd41f2cSmrg 99bd41f2cSmrg# This program is distributed in the hope that it will be useful, 109bd41f2cSmrg# but WITHOUT ANY WARRANTY, to the extent permitted by law; without 119bd41f2cSmrg# even the implied warranty of MERCHANTABILITY or FITNESS FOR A 129bd41f2cSmrg# PARTICULAR PURPOSE. 139bd41f2cSmrg 14d075918cSmrgm4_ifndef([AC_AUTOCONF_VERSION], 15d075918cSmrg [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 169418810dSmrgm4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],, 17d075918cSmrg[m4_warning([this file was generated for autoconf 2.63. 18d075918cSmrgYou have another version of autoconf. It may work, but is not guaranteed to. 19d075918cSmrgIf you have problems, you may need to regenerate the build system entirely. 20d075918cSmrgTo do so, use the procedure documented by the package, typically `autoreconf'.])]) 219bd41f2cSmrg 229bd41f2cSmrg# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 239418810dSmrg# 249418810dSmrg# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 259418810dSmrg# 2006, 2007, 2008 Free Software Foundation, Inc. 269418810dSmrg# Written by Gordon Matzigkeit, 1996 279418810dSmrg# 289418810dSmrg# This file is free software; the Free Software Foundation gives 299418810dSmrg# unlimited permission to copy and/or distribute it, with or without 309418810dSmrg# modifications, as long as this notice is preserved. 319418810dSmrg 329418810dSmrgm4_define([_LT_COPYING], [dnl 339418810dSmrg# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 349418810dSmrg# 2006, 2007, 2008 Free Software Foundation, Inc. 359418810dSmrg# Written by Gordon Matzigkeit, 1996 369418810dSmrg# 379418810dSmrg# This file is part of GNU Libtool. 389418810dSmrg# 399418810dSmrg# GNU Libtool is free software; you can redistribute it and/or 409418810dSmrg# modify it under the terms of the GNU General Public License as 419418810dSmrg# published by the Free Software Foundation; either version 2 of 429418810dSmrg# the License, or (at your option) any later version. 439418810dSmrg# 449418810dSmrg# As a special exception to the GNU General Public License, 459418810dSmrg# if you distribute this file as part of a program or library that 469418810dSmrg# is built using GNU Libtool, you may include this file under the 479418810dSmrg# same distribution terms that you use for the rest of that program. 489418810dSmrg# 499418810dSmrg# GNU Libtool is distributed in the hope that it will be useful, 509418810dSmrg# but WITHOUT ANY WARRANTY; without even the implied warranty of 519418810dSmrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 529418810dSmrg# GNU General Public License for more details. 539418810dSmrg# 549418810dSmrg# You should have received a copy of the GNU General Public License 559418810dSmrg# along with GNU Libtool; see the file COPYING. If not, a copy 569418810dSmrg# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 579418810dSmrg# obtained by writing to the Free Software Foundation, Inc., 589418810dSmrg# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 599418810dSmrg]) 609bd41f2cSmrg 619418810dSmrg# serial 56 LT_INIT 629bd41f2cSmrg 639bd41f2cSmrg 649418810dSmrg# LT_PREREQ(VERSION) 659418810dSmrg# ------------------ 669418810dSmrg# Complain and exit if this libtool version is less that VERSION. 679418810dSmrgm4_defun([LT_PREREQ], 689418810dSmrg[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, 699418810dSmrg [m4_default([$3], 709418810dSmrg [m4_fatal([Libtool version $1 or higher is required], 719418810dSmrg 63)])], 729418810dSmrg [$2])]) 739bd41f2cSmrg 749bd41f2cSmrg 759418810dSmrg# _LT_CHECK_BUILDDIR 769418810dSmrg# ------------------ 779418810dSmrg# Complain if the absolute build directory name contains unusual characters 789418810dSmrgm4_defun([_LT_CHECK_BUILDDIR], 799418810dSmrg[case `pwd` in 809418810dSmrg *\ * | *\ *) 819418810dSmrg AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; 829418810dSmrgesac 839418810dSmrg]) 849418810dSmrg 859418810dSmrg 869418810dSmrg# LT_INIT([OPTIONS]) 879418810dSmrg# ------------------ 889418810dSmrgAC_DEFUN([LT_INIT], 899418810dSmrg[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT 909418810dSmrgAC_BEFORE([$0], [LT_LANG])dnl 919418810dSmrgAC_BEFORE([$0], [LT_OUTPUT])dnl 929418810dSmrgAC_BEFORE([$0], [LTDL_INIT])dnl 939418810dSmrgm4_require([_LT_CHECK_BUILDDIR])dnl 949418810dSmrg 959418810dSmrgdnl Autoconf doesn't catch unexpanded LT_ macros by default: 969418810dSmrgm4_pattern_forbid([^_?LT_[A-Z_]+$])dnl 979418810dSmrgm4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl 989418810dSmrgdnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 999418810dSmrgdnl unless we require an AC_DEFUNed macro: 1009418810dSmrgAC_REQUIRE([LTOPTIONS_VERSION])dnl 1019418810dSmrgAC_REQUIRE([LTSUGAR_VERSION])dnl 1029418810dSmrgAC_REQUIRE([LTVERSION_VERSION])dnl 1039418810dSmrgAC_REQUIRE([LTOBSOLETE_VERSION])dnl 1049418810dSmrgm4_require([_LT_PROG_LTMAIN])dnl 1059418810dSmrg 1069418810dSmrgdnl Parse OPTIONS 1079418810dSmrg_LT_SET_OPTIONS([$0], [$1]) 1089bd41f2cSmrg 1099bd41f2cSmrg# This can be used to rebuild libtool when needed 1109418810dSmrgLIBTOOL_DEPS="$ltmain" 1119bd41f2cSmrg 1129bd41f2cSmrg# Always use our own libtool. 1139bd41f2cSmrgLIBTOOL='$(SHELL) $(top_builddir)/libtool' 1149bd41f2cSmrgAC_SUBST(LIBTOOL)dnl 1159bd41f2cSmrg 1169418810dSmrg_LT_SETUP 1179bd41f2cSmrg 1189418810dSmrg# Only expand once: 1199418810dSmrgm4_define([LT_INIT]) 1209418810dSmrg])# LT_INIT 1219bd41f2cSmrg 1229418810dSmrg# Old names: 1239418810dSmrgAU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) 1249418810dSmrgAU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) 1259418810dSmrgdnl aclocal-1.4 backwards compatibility: 1269418810dSmrgdnl AC_DEFUN([AC_PROG_LIBTOOL], []) 1279418810dSmrgdnl AC_DEFUN([AM_PROG_LIBTOOL], []) 1289418810dSmrg 1299418810dSmrg 1309418810dSmrg# _LT_CC_BASENAME(CC) 1319418810dSmrg# ------------------- 1329418810dSmrg# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 1339418810dSmrgm4_defun([_LT_CC_BASENAME], 1349418810dSmrg[for cc_temp in $1""; do 1359418810dSmrg case $cc_temp in 1369418810dSmrg compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; 1379418810dSmrg distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; 1389418810dSmrg \-*) ;; 1399418810dSmrg *) break;; 1409418810dSmrg esac 1419418810dSmrgdone 1429418810dSmrgcc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 1439418810dSmrg]) 1449418810dSmrg 1459418810dSmrg 1469418810dSmrg# _LT_FILEUTILS_DEFAULTS 1479418810dSmrg# ---------------------- 1489418810dSmrg# It is okay to use these file commands and assume they have been set 1499418810dSmrg# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'. 1509418810dSmrgm4_defun([_LT_FILEUTILS_DEFAULTS], 1519418810dSmrg[: ${CP="cp -f"} 1529418810dSmrg: ${MV="mv -f"} 1539418810dSmrg: ${RM="rm -f"} 1549418810dSmrg])# _LT_FILEUTILS_DEFAULTS 1559418810dSmrg 1569418810dSmrg 1579418810dSmrg# _LT_SETUP 1589418810dSmrg# --------- 1599418810dSmrgm4_defun([_LT_SETUP], 1609418810dSmrg[AC_REQUIRE([AC_CANONICAL_HOST])dnl 1619bd41f2cSmrgAC_REQUIRE([AC_CANONICAL_BUILD])dnl 1629418810dSmrg_LT_DECL([], [host_alias], [0], [The host system])dnl 1639418810dSmrg_LT_DECL([], [host], [0])dnl 1649418810dSmrg_LT_DECL([], [host_os], [0])dnl 1659418810dSmrgdnl 1669418810dSmrg_LT_DECL([], [build_alias], [0], [The build system])dnl 1679418810dSmrg_LT_DECL([], [build], [0])dnl 1689418810dSmrg_LT_DECL([], [build_os], [0])dnl 1699418810dSmrgdnl 1709bd41f2cSmrgAC_REQUIRE([AC_PROG_CC])dnl 1719418810dSmrgAC_REQUIRE([LT_PATH_LD])dnl 1729418810dSmrgAC_REQUIRE([LT_PATH_NM])dnl 1739418810dSmrgdnl 1749bd41f2cSmrgAC_REQUIRE([AC_PROG_LN_S])dnl 1759418810dSmrgtest -z "$LN_S" && LN_S="ln -s" 1769418810dSmrg_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl 1779418810dSmrgdnl 1789418810dSmrgAC_REQUIRE([LT_CMD_MAX_LEN])dnl 1799418810dSmrg_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl 1809418810dSmrg_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl 1819bd41f2cSmrgdnl 1829418810dSmrgm4_require([_LT_FILEUTILS_DEFAULTS])dnl 1839418810dSmrgm4_require([_LT_CHECK_SHELL_FEATURES])dnl 1849418810dSmrgm4_require([_LT_CMD_RELOAD])dnl 1859418810dSmrgm4_require([_LT_CHECK_MAGIC_METHOD])dnl 1869418810dSmrgm4_require([_LT_CMD_OLD_ARCHIVE])dnl 1879418810dSmrgm4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl 1889418810dSmrg 1899418810dSmrg_LT_CONFIG_LIBTOOL_INIT([ 1909418810dSmrg# See if we are running on zsh, and set the options which allow our 1919418810dSmrg# commands through without removal of \ escapes INIT. 1929418810dSmrgif test -n "\${ZSH_VERSION+set}" ; then 1939418810dSmrg setopt NO_GLOB_SUBST 1949418810dSmrgfi 1959418810dSmrg]) 1969418810dSmrgif test -n "${ZSH_VERSION+set}" ; then 1979418810dSmrg setopt NO_GLOB_SUBST 1989418810dSmrgfi 1999418810dSmrg 2009418810dSmrg_LT_CHECK_OBJDIR 2019bd41f2cSmrg 2029418810dSmrgm4_require([_LT_TAG_COMPILER])dnl 2039418810dSmrg_LT_PROG_ECHO_BACKSLASH 2049bd41f2cSmrg 2059bd41f2cSmrgcase $host_os in 2069bd41f2cSmrgaix3*) 2079bd41f2cSmrg # AIX sometimes has problems with the GCC collect2 program. For some 2089bd41f2cSmrg # reason, if we set the COLLECT_NAMES environment variable, the problems 2099bd41f2cSmrg # vanish in a puff of smoke. 2109bd41f2cSmrg if test "X${COLLECT_NAMES+set}" != Xset; then 2119bd41f2cSmrg COLLECT_NAMES= 2129bd41f2cSmrg export COLLECT_NAMES 2139bd41f2cSmrg fi 2149bd41f2cSmrg ;; 2159bd41f2cSmrgesac 2169bd41f2cSmrg 2179bd41f2cSmrg# Sed substitution that helps us do robust quoting. It backslashifies 2189bd41f2cSmrg# metacharacters that are still active within double-quoted strings. 2199418810dSmrgsed_quote_subst='s/\([["`$\\]]\)/\\\1/g' 2209bd41f2cSmrg 2219bd41f2cSmrg# Same as above, but do not quote variable references. 2229418810dSmrgdouble_quote_subst='s/\([["`\\]]\)/\\\1/g' 2239bd41f2cSmrg 2249bd41f2cSmrg# Sed substitution to delay expansion of an escaped shell variable in a 2259bd41f2cSmrg# double_quote_subst'ed string. 2269bd41f2cSmrgdelay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 2279bd41f2cSmrg 2289418810dSmrg# Sed substitution to delay expansion of an escaped single quote. 2299418810dSmrgdelay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 2309418810dSmrg 2319bd41f2cSmrg# Sed substitution to avoid accidental globbing in evaled expressions 2329bd41f2cSmrgno_glob_subst='s/\*/\\\*/g' 2339bd41f2cSmrg 2349bd41f2cSmrg# Global variables: 2359418810dSmrgofile=libtool 2369bd41f2cSmrgcan_build_shared=yes 2379bd41f2cSmrg 2389bd41f2cSmrg# All known linkers require a `.a' archive for static linking (except MSVC, 2399bd41f2cSmrg# which needs '.lib'). 2409bd41f2cSmrglibext=a 2419bd41f2cSmrg 2429418810dSmrgwith_gnu_ld="$lt_cv_prog_gnu_ld" 2439bd41f2cSmrg 2449bd41f2cSmrgold_CC="$CC" 2459bd41f2cSmrgold_CFLAGS="$CFLAGS" 2469bd41f2cSmrg 2479bd41f2cSmrg# Set sane defaults for various variables 2489bd41f2cSmrgtest -z "$CC" && CC=cc 2499bd41f2cSmrgtest -z "$LTCC" && LTCC=$CC 2509bd41f2cSmrgtest -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 2519bd41f2cSmrgtest -z "$LD" && LD=ld 2529bd41f2cSmrgtest -z "$ac_objext" && ac_objext=o 2539bd41f2cSmrg 2549bd41f2cSmrg_LT_CC_BASENAME([$compiler]) 2559bd41f2cSmrg 2569bd41f2cSmrg# Only perform the check for file, if the check method requires it 2579418810dSmrgtest -z "$MAGIC_CMD" && MAGIC_CMD=file 2589bd41f2cSmrgcase $deplibs_check_method in 2599bd41f2cSmrgfile_magic*) 2609bd41f2cSmrg if test "$file_magic_cmd" = '$MAGIC_CMD'; then 2619418810dSmrg _LT_PATH_MAGIC 2629bd41f2cSmrg fi 2639bd41f2cSmrg ;; 2649bd41f2cSmrgesac 2659bd41f2cSmrg 2669418810dSmrg# Use C for the default configuration in the libtool script 2679418810dSmrgLT_SUPPORTED_TAG([CC]) 2689418810dSmrg_LT_LANG_C_CONFIG 2699418810dSmrg_LT_LANG_DEFAULT_CONFIG 2709418810dSmrg_LT_CONFIG_COMMANDS 2719418810dSmrg])# _LT_SETUP 272d075918cSmrg 2739bd41f2cSmrg 2749418810dSmrg# _LT_PROG_LTMAIN 2759418810dSmrg# --------------- 2769418810dSmrg# Note that this code is called both from `configure', and `config.status' 2779418810dSmrg# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, 2789418810dSmrg# `config.status' has no value for ac_aux_dir unless we are using Automake, 2799418810dSmrg# so we pass a copy along to make sure it has a sensible value anyway. 2809418810dSmrgm4_defun([_LT_PROG_LTMAIN], 2819418810dSmrg[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl 2829418810dSmrg_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) 2839418810dSmrgltmain="$ac_aux_dir/ltmain.sh" 2849418810dSmrg])# _LT_PROG_LTMAIN 2859bd41f2cSmrg 2869bd41f2cSmrg 2879418810dSmrg 2889418810dSmrg# So that we can recreate a full libtool script including additional 2899418810dSmrg# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS 2909418810dSmrg# in macros and then make a single call at the end using the `libtool' 2919418810dSmrg# label. 2929418810dSmrg 2939418810dSmrg 2949418810dSmrg# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) 2959418810dSmrg# ---------------------------------------- 2969418810dSmrg# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. 2979418810dSmrgm4_define([_LT_CONFIG_LIBTOOL_INIT], 2989418810dSmrg[m4_ifval([$1], 2999418810dSmrg [m4_append([_LT_OUTPUT_LIBTOOL_INIT], 3009418810dSmrg [$1 3019418810dSmrg])])]) 3029418810dSmrg 3039418810dSmrg# Initialize. 3049418810dSmrgm4_define([_LT_OUTPUT_LIBTOOL_INIT]) 3059418810dSmrg 3069418810dSmrg 3079418810dSmrg# _LT_CONFIG_LIBTOOL([COMMANDS]) 3089418810dSmrg# ------------------------------ 3099418810dSmrg# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. 3109418810dSmrgm4_define([_LT_CONFIG_LIBTOOL], 3119418810dSmrg[m4_ifval([$1], 3129418810dSmrg [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], 3139418810dSmrg [$1 3149418810dSmrg])])]) 3159418810dSmrg 3169418810dSmrg# Initialize. 3179418810dSmrgm4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) 3189418810dSmrg 3199418810dSmrg 3209418810dSmrg# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) 3219418810dSmrg# ----------------------------------------------------- 3229418810dSmrgm4_defun([_LT_CONFIG_SAVE_COMMANDS], 3239418810dSmrg[_LT_CONFIG_LIBTOOL([$1]) 3249418810dSmrg_LT_CONFIG_LIBTOOL_INIT([$2]) 3259418810dSmrg]) 3269418810dSmrg 3279418810dSmrg 3289418810dSmrg# _LT_FORMAT_COMMENT([COMMENT]) 3299418810dSmrg# ----------------------------- 3309418810dSmrg# Add leading comment marks to the start of each line, and a trailing 3319418810dSmrg# full-stop to the whole comment if one is not present already. 3329418810dSmrgm4_define([_LT_FORMAT_COMMENT], 3339418810dSmrg[m4_ifval([$1], [ 3349418810dSmrgm4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], 3359418810dSmrg [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) 3369418810dSmrg)]) 3379418810dSmrg 3389418810dSmrg 3399418810dSmrg 3409418810dSmrg 3419418810dSmrg 3429418810dSmrg# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) 3439418810dSmrg# ------------------------------------------------------------------- 3449418810dSmrg# CONFIGNAME is the name given to the value in the libtool script. 3459418810dSmrg# VARNAME is the (base) name used in the configure script. 3469418810dSmrg# VALUE may be 0, 1 or 2 for a computed quote escaped value based on 3479418810dSmrg# VARNAME. Any other value will be used directly. 3489418810dSmrgm4_define([_LT_DECL], 3499418810dSmrg[lt_if_append_uniq([lt_decl_varnames], [$2], [, ], 3509418810dSmrg [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], 3519418810dSmrg [m4_ifval([$1], [$1], [$2])]) 3529418810dSmrg lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) 3539418810dSmrg m4_ifval([$4], 3549418810dSmrg [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) 3559418810dSmrg lt_dict_add_subkey([lt_decl_dict], [$2], 3569418810dSmrg [tagged?], [m4_ifval([$5], [yes], [no])])]) 3579418810dSmrg]) 3589418810dSmrg 3599418810dSmrg 3609418810dSmrg# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) 3619418810dSmrg# -------------------------------------------------------- 3629418810dSmrgm4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) 3639418810dSmrg 3649418810dSmrg 3659418810dSmrg# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) 3669418810dSmrg# ------------------------------------------------ 3679418810dSmrgm4_define([lt_decl_tag_varnames], 3689418810dSmrg[_lt_decl_filter([tagged?], [yes], $@)]) 3699418810dSmrg 3709418810dSmrg 3719418810dSmrg# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) 3729418810dSmrg# --------------------------------------------------------- 3739418810dSmrgm4_define([_lt_decl_filter], 3749418810dSmrg[m4_case([$#], 3759418810dSmrg [0], [m4_fatal([$0: too few arguments: $#])], 3769418810dSmrg [1], [m4_fatal([$0: too few arguments: $#: $1])], 3779418810dSmrg [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], 3789418810dSmrg [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], 3799418810dSmrg [lt_dict_filter([lt_decl_dict], $@)])[]dnl 3809418810dSmrg]) 3819418810dSmrg 3829418810dSmrg 3839418810dSmrg# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) 3849418810dSmrg# -------------------------------------------------- 3859418810dSmrgm4_define([lt_decl_quote_varnames], 3869418810dSmrg[_lt_decl_filter([value], [1], $@)]) 3879418810dSmrg 3889418810dSmrg 3899418810dSmrg# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) 3909418810dSmrg# --------------------------------------------------- 3919418810dSmrgm4_define([lt_decl_dquote_varnames], 3929418810dSmrg[_lt_decl_filter([value], [2], $@)]) 3939418810dSmrg 3949418810dSmrg 3959418810dSmrg# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) 3969418810dSmrg# --------------------------------------------------- 3979418810dSmrgm4_define([lt_decl_varnames_tagged], 3989418810dSmrg[m4_assert([$# <= 2])dnl 3999418810dSmrg_$0(m4_quote(m4_default([$1], [[, ]])), 4009418810dSmrg m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), 4019418810dSmrg m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) 4029418810dSmrgm4_define([_lt_decl_varnames_tagged], 4039418810dSmrg[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) 4049418810dSmrg 4059418810dSmrg 4069418810dSmrg# lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) 4079418810dSmrg# ------------------------------------------------ 4089418810dSmrgm4_define([lt_decl_all_varnames], 4099418810dSmrg[_$0(m4_quote(m4_default([$1], [[, ]])), 4109418810dSmrg m4_if([$2], [], 4119418810dSmrg m4_quote(lt_decl_varnames), 4129418810dSmrg m4_quote(m4_shift($@))))[]dnl 4139418810dSmrg]) 4149418810dSmrgm4_define([_lt_decl_all_varnames], 4159418810dSmrg[lt_join($@, lt_decl_varnames_tagged([$1], 4169418810dSmrg lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl 4179418810dSmrg]) 4189418810dSmrg 4199418810dSmrg 4209418810dSmrg# _LT_CONFIG_STATUS_DECLARE([VARNAME]) 4219418810dSmrg# ------------------------------------ 4229418810dSmrg# Quote a variable value, and forward it to `config.status' so that its 4239418810dSmrg# declaration there will have the same value as in `configure'. VARNAME 4249418810dSmrg# must have a single quote delimited value for this to work. 4259418810dSmrgm4_define([_LT_CONFIG_STATUS_DECLARE], 4269418810dSmrg[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`']) 4279418810dSmrg 4289418810dSmrg 4299418810dSmrg# _LT_CONFIG_STATUS_DECLARATIONS 4309418810dSmrg# ------------------------------ 4319418810dSmrg# We delimit libtool config variables with single quotes, so when 4329418810dSmrg# we write them to config.status, we have to be sure to quote all 4339418810dSmrg# embedded single quotes properly. In configure, this macro expands 4349418810dSmrg# each variable declared with _LT_DECL (and _LT_TAGDECL) into: 4359418810dSmrg# 4369418810dSmrg# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`' 4379418810dSmrgm4_defun([_LT_CONFIG_STATUS_DECLARATIONS], 4389418810dSmrg[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), 4399418810dSmrg [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) 4409bd41f2cSmrg 4419bd41f2cSmrg 4429418810dSmrg# _LT_LIBTOOL_TAGS 4439418810dSmrg# ---------------- 4449418810dSmrg# Output comment and list of tags supported by the script 4459418810dSmrgm4_defun([_LT_LIBTOOL_TAGS], 4469418810dSmrg[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl 4479418810dSmrgavailable_tags="_LT_TAGS"dnl 4489418810dSmrg]) 4499418810dSmrg 4509418810dSmrg 4519418810dSmrg# _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) 4529418810dSmrg# ----------------------------------- 4539418810dSmrg# Extract the dictionary values for VARNAME (optionally with TAG) and 4549418810dSmrg# expand to a commented shell variable setting: 4559418810dSmrg# 4569418810dSmrg# # Some comment about what VAR is for. 4579418810dSmrg# visible_name=$lt_internal_name 4589418810dSmrgm4_define([_LT_LIBTOOL_DECLARE], 4599418810dSmrg[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], 4609418810dSmrg [description])))[]dnl 4619418810dSmrgm4_pushdef([_libtool_name], 4629418810dSmrg m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl 4639418810dSmrgm4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), 4649418810dSmrg [0], [_libtool_name=[$]$1], 4659418810dSmrg [1], [_libtool_name=$lt_[]$1], 4669418810dSmrg [2], [_libtool_name=$lt_[]$1], 4679418810dSmrg [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl 4689418810dSmrgm4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl 4699418810dSmrg]) 4709418810dSmrg 4719418810dSmrg 4729418810dSmrg# _LT_LIBTOOL_CONFIG_VARS 4739418810dSmrg# ----------------------- 4749418810dSmrg# Produce commented declarations of non-tagged libtool config variables 4759418810dSmrg# suitable for insertion in the LIBTOOL CONFIG section of the `libtool' 4769418810dSmrg# script. Tagged libtool config variables (even for the LIBTOOL CONFIG 4779418810dSmrg# section) are produced by _LT_LIBTOOL_TAG_VARS. 4789418810dSmrgm4_defun([_LT_LIBTOOL_CONFIG_VARS], 4799418810dSmrg[m4_foreach([_lt_var], 4809418810dSmrg m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), 4819418810dSmrg [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) 4829418810dSmrg 4839418810dSmrg 4849418810dSmrg# _LT_LIBTOOL_TAG_VARS(TAG) 4859418810dSmrg# ------------------------- 4869418810dSmrgm4_define([_LT_LIBTOOL_TAG_VARS], 4879418810dSmrg[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), 4889418810dSmrg [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) 4899418810dSmrg 4909418810dSmrg 4919418810dSmrg# _LT_TAGVAR(VARNAME, [TAGNAME]) 4929418810dSmrg# ------------------------------ 4939418810dSmrgm4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) 4949418810dSmrg 4959418810dSmrg 4969418810dSmrg# _LT_CONFIG_COMMANDS 4979bd41f2cSmrg# ------------------- 4989418810dSmrg# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of 4999418810dSmrg# variables for single and double quote escaping we saved from calls 5009418810dSmrg# to _LT_DECL, we can put quote escaped variables declarations 5019418810dSmrg# into `config.status', and then the shell code to quote escape them in 5029418810dSmrg# for loops in `config.status'. Finally, any additional code accumulated 5039418810dSmrg# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. 5049418810dSmrgm4_defun([_LT_CONFIG_COMMANDS], 5059418810dSmrg[AC_PROVIDE_IFELSE([LT_OUTPUT], 5069418810dSmrg dnl If the libtool generation code has been placed in $CONFIG_LT, 5079418810dSmrg dnl instead of duplicating it all over again into config.status, 5089418810dSmrg dnl then we will have config.status run $CONFIG_LT later, so it 5099418810dSmrg dnl needs to know what name is stored there: 5109418810dSmrg [AC_CONFIG_COMMANDS([libtool], 5119418810dSmrg [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], 5129418810dSmrg dnl If the libtool generation code is destined for config.status, 5139418810dSmrg dnl expand the accumulated commands and init code now: 5149418810dSmrg [AC_CONFIG_COMMANDS([libtool], 5159418810dSmrg [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) 5169418810dSmrg])#_LT_CONFIG_COMMANDS 5179418810dSmrg 5189418810dSmrg 5199418810dSmrg# Initialize. 5209418810dSmrgm4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], 5219418810dSmrg[ 5229418810dSmrg 5239418810dSmrg# The HP-UX ksh and POSIX shell print the target directory to stdout 5249418810dSmrg# if CDPATH is set. 5259418810dSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 5269418810dSmrg 5279418810dSmrgsed_quote_subst='$sed_quote_subst' 5289418810dSmrgdouble_quote_subst='$double_quote_subst' 5299418810dSmrgdelay_variable_subst='$delay_variable_subst' 5309418810dSmrg_LT_CONFIG_STATUS_DECLARATIONS 5319418810dSmrgLTCC='$LTCC' 5329418810dSmrgLTCFLAGS='$LTCFLAGS' 5339418810dSmrgcompiler='$compiler_DEFAULT' 5349418810dSmrg 5359418810dSmrg# Quote evaled strings. 5369418810dSmrgfor var in lt_decl_all_varnames([[ \ 5379418810dSmrg]], lt_decl_quote_varnames); do 5389418810dSmrg case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 5399418810dSmrg *[[\\\\\\\`\\"\\\$]]*) 5409418810dSmrg eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 5419418810dSmrg ;; 5429418810dSmrg *) 5439418810dSmrg eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 5449418810dSmrg ;; 5459418810dSmrg esac 5469418810dSmrgdone 5479418810dSmrg 5489418810dSmrg# Double-quote double-evaled strings. 5499418810dSmrgfor var in lt_decl_all_varnames([[ \ 5509418810dSmrg]], lt_decl_dquote_varnames); do 5519418810dSmrg case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 5529418810dSmrg *[[\\\\\\\`\\"\\\$]]*) 5539418810dSmrg eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 5549418810dSmrg ;; 5559418810dSmrg *) 5569418810dSmrg eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 5579418810dSmrg ;; 5589418810dSmrg esac 5599418810dSmrgdone 5609418810dSmrg 5619418810dSmrg# Fix-up fallback echo if it was mangled by the above quoting rules. 5629418810dSmrgcase \$lt_ECHO in 5639418810dSmrg*'\\\[$]0 --fallback-echo"')dnl " 5649418810dSmrg lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\` 5659418810dSmrg ;; 5669418810dSmrgesac 5679418810dSmrg 5689418810dSmrg_LT_OUTPUT_LIBTOOL_INIT 5699418810dSmrg]) 5709418810dSmrg 5719418810dSmrg 5729418810dSmrg# LT_OUTPUT 5739418810dSmrg# --------- 5749418810dSmrg# This macro allows early generation of the libtool script (before 5759418810dSmrg# AC_OUTPUT is called), incase it is used in configure for compilation 5769418810dSmrg# tests. 5779418810dSmrgAC_DEFUN([LT_OUTPUT], 5789418810dSmrg[: ${CONFIG_LT=./config.lt} 5799418810dSmrgAC_MSG_NOTICE([creating $CONFIG_LT]) 5809418810dSmrgcat >"$CONFIG_LT" <<_LTEOF 5819418810dSmrg#! $SHELL 5829418810dSmrg# Generated by $as_me. 5839418810dSmrg# Run this file to recreate a libtool stub with the current configuration. 5849418810dSmrg 5859418810dSmrglt_cl_silent=false 5869418810dSmrgSHELL=\${CONFIG_SHELL-$SHELL} 5879418810dSmrg_LTEOF 5889418810dSmrg 5899418810dSmrgcat >>"$CONFIG_LT" <<\_LTEOF 5909418810dSmrgAS_SHELL_SANITIZE 5919418810dSmrg_AS_PREPARE 5929418810dSmrg 5939418810dSmrgexec AS_MESSAGE_FD>&1 5949418810dSmrgexec AS_MESSAGE_LOG_FD>>config.log 5959418810dSmrg{ 5969418810dSmrg echo 5979418810dSmrg AS_BOX([Running $as_me.]) 5989418810dSmrg} >&AS_MESSAGE_LOG_FD 5999418810dSmrg 6009418810dSmrglt_cl_help="\ 6019418810dSmrg\`$as_me' creates a local libtool stub from the current configuration, 6029418810dSmrgfor use in further configure time tests before the real libtool is 6039418810dSmrggenerated. 6049418810dSmrg 6059418810dSmrgUsage: $[0] [[OPTIONS]] 6069418810dSmrg 6079418810dSmrg -h, --help print this help, then exit 6089418810dSmrg -V, --version print version number, then exit 6099418810dSmrg -q, --quiet do not print progress messages 6109418810dSmrg -d, --debug don't remove temporary files 6119418810dSmrg 6129418810dSmrgReport bugs to <bug-libtool@gnu.org>." 6139418810dSmrg 6149418810dSmrglt_cl_version="\ 6159418810dSmrgm4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl 6169418810dSmrgm4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) 6179418810dSmrgconfigured by $[0], generated by m4_PACKAGE_STRING. 6189418810dSmrg 6199418810dSmrgCopyright (C) 2008 Free Software Foundation, Inc. 6209418810dSmrgThis config.lt script is free software; the Free Software Foundation 6219418810dSmrggives unlimited permision to copy, distribute and modify it." 6229418810dSmrg 6239418810dSmrgwhile test $[#] != 0 6249418810dSmrgdo 6259418810dSmrg case $[1] in 6269418810dSmrg --version | --v* | -V ) 6279418810dSmrg echo "$lt_cl_version"; exit 0 ;; 6289418810dSmrg --help | --h* | -h ) 6299418810dSmrg echo "$lt_cl_help"; exit 0 ;; 6309418810dSmrg --debug | --d* | -d ) 6319418810dSmrg debug=: ;; 6329418810dSmrg --quiet | --q* | --silent | --s* | -q ) 6339418810dSmrg lt_cl_silent=: ;; 6349418810dSmrg 6359418810dSmrg -*) AC_MSG_ERROR([unrecognized option: $[1] 6369418810dSmrgTry \`$[0] --help' for more information.]) ;; 6379418810dSmrg 6389418810dSmrg *) AC_MSG_ERROR([unrecognized argument: $[1] 6399418810dSmrgTry \`$[0] --help' for more information.]) ;; 6409418810dSmrg esac 6419418810dSmrg shift 6429418810dSmrgdone 6439418810dSmrg 6449418810dSmrgif $lt_cl_silent; then 6459418810dSmrg exec AS_MESSAGE_FD>/dev/null 6469418810dSmrgfi 6479418810dSmrg_LTEOF 6489418810dSmrg 6499418810dSmrgcat >>"$CONFIG_LT" <<_LTEOF 6509418810dSmrg_LT_OUTPUT_LIBTOOL_COMMANDS_INIT 6519418810dSmrg_LTEOF 6529418810dSmrg 6539418810dSmrgcat >>"$CONFIG_LT" <<\_LTEOF 6549418810dSmrgAC_MSG_NOTICE([creating $ofile]) 6559418810dSmrg_LT_OUTPUT_LIBTOOL_COMMANDS 6569418810dSmrgAS_EXIT(0) 6579418810dSmrg_LTEOF 6589418810dSmrgchmod +x "$CONFIG_LT" 6599418810dSmrg 6609418810dSmrg# configure is writing to config.log, but config.lt does its own redirection, 6619418810dSmrg# appending to config.log, which fails on DOS, as config.log is still kept 6629418810dSmrg# open by configure. Here we exec the FD to /dev/null, effectively closing 6639418810dSmrg# config.log, so it can be properly (re)opened and appended to by config.lt. 6649418810dSmrgif test "$no_create" != yes; then 6659418810dSmrg lt_cl_success=: 6669418810dSmrg test "$silent" = yes && 6679418810dSmrg lt_config_lt_args="$lt_config_lt_args --quiet" 6689418810dSmrg exec AS_MESSAGE_LOG_FD>/dev/null 6699418810dSmrg $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false 6709418810dSmrg exec AS_MESSAGE_LOG_FD>>config.log 6719418810dSmrg $lt_cl_success || AS_EXIT(1) 6729418810dSmrgfi 6739418810dSmrg])# LT_OUTPUT 6749418810dSmrg 6759418810dSmrg 6769418810dSmrg# _LT_CONFIG(TAG) 6779418810dSmrg# --------------- 6789418810dSmrg# If TAG is the built-in tag, create an initial libtool script with a 6799418810dSmrg# default configuration from the untagged config vars. Otherwise add code 6809418810dSmrg# to config.status for appending the configuration named by TAG from the 6819418810dSmrg# matching tagged config vars. 6829418810dSmrgm4_defun([_LT_CONFIG], 6839418810dSmrg[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 6849418810dSmrg_LT_CONFIG_SAVE_COMMANDS([ 6859418810dSmrg m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl 6869418810dSmrg m4_if(_LT_TAG, [C], [ 6879418810dSmrg # See if we are running on zsh, and set the options which allow our 6889418810dSmrg # commands through without removal of \ escapes. 6899418810dSmrg if test -n "${ZSH_VERSION+set}" ; then 6909418810dSmrg setopt NO_GLOB_SUBST 6919418810dSmrg fi 6929418810dSmrg 6939418810dSmrg cfgfile="${ofile}T" 6949418810dSmrg trap "$RM \"$cfgfile\"; exit 1" 1 2 15 6959418810dSmrg $RM "$cfgfile" 6969418810dSmrg 6979418810dSmrg cat <<_LT_EOF >> "$cfgfile" 6989418810dSmrg#! $SHELL 6999418810dSmrg 7009418810dSmrg# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 7019418810dSmrg# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 7029418810dSmrg# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 7039418810dSmrg# NOTE: Changes made to this file will be lost: look at ltmain.sh. 7049418810dSmrg# 7059418810dSmrg_LT_COPYING 7069418810dSmrg_LT_LIBTOOL_TAGS 7079418810dSmrg 7089418810dSmrg# ### BEGIN LIBTOOL CONFIG 7099418810dSmrg_LT_LIBTOOL_CONFIG_VARS 7109418810dSmrg_LT_LIBTOOL_TAG_VARS 7119418810dSmrg# ### END LIBTOOL CONFIG 7129418810dSmrg 7139418810dSmrg_LT_EOF 7149418810dSmrg 7159418810dSmrg case $host_os in 7169418810dSmrg aix3*) 7179418810dSmrg cat <<\_LT_EOF >> "$cfgfile" 7189418810dSmrg# AIX sometimes has problems with the GCC collect2 program. For some 7199418810dSmrg# reason, if we set the COLLECT_NAMES environment variable, the problems 7209418810dSmrg# vanish in a puff of smoke. 7219418810dSmrgif test "X${COLLECT_NAMES+set}" != Xset; then 7229418810dSmrg COLLECT_NAMES= 7239418810dSmrg export COLLECT_NAMES 7249418810dSmrgfi 7259418810dSmrg_LT_EOF 7269418810dSmrg ;; 7279418810dSmrg esac 7289418810dSmrg 7299418810dSmrg _LT_PROG_LTMAIN 7309418810dSmrg 7319418810dSmrg # We use sed instead of cat because bash on DJGPP gets confused if 7329418810dSmrg # if finds mixed CR/LF and LF-only lines. Since sed operates in 7339418810dSmrg # text mode, it properly converts lines to CR/LF. This bash problem 7349418810dSmrg # is reportedly fixed, but why not run on old versions too? 7359418810dSmrg sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 7369418810dSmrg || (rm -f "$cfgfile"; exit 1) 7379418810dSmrg 7389418810dSmrg _LT_PROG_XSI_SHELLFNS 7399418810dSmrg 7409418810dSmrg sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 7419418810dSmrg || (rm -f "$cfgfile"; exit 1) 7429418810dSmrg 7439418810dSmrg mv -f "$cfgfile" "$ofile" || 7449418810dSmrg (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 7459418810dSmrg chmod +x "$ofile" 7469418810dSmrg], 7479418810dSmrg[cat <<_LT_EOF >> "$ofile" 7489418810dSmrg 7499418810dSmrgdnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded 7509418810dSmrgdnl in a comment (ie after a #). 7519418810dSmrg# ### BEGIN LIBTOOL TAG CONFIG: $1 7529418810dSmrg_LT_LIBTOOL_TAG_VARS(_LT_TAG) 7539418810dSmrg# ### END LIBTOOL TAG CONFIG: $1 7549418810dSmrg_LT_EOF 7559418810dSmrg])dnl /m4_if 7569418810dSmrg], 7579418810dSmrg[m4_if([$1], [], [ 7589418810dSmrg PACKAGE='$PACKAGE' 7599418810dSmrg VERSION='$VERSION' 7609418810dSmrg TIMESTAMP='$TIMESTAMP' 7619418810dSmrg RM='$RM' 7629418810dSmrg ofile='$ofile'], []) 7639418810dSmrg])dnl /_LT_CONFIG_SAVE_COMMANDS 7649418810dSmrg])# _LT_CONFIG 7659418810dSmrg 7669418810dSmrg 7679418810dSmrg# LT_SUPPORTED_TAG(TAG) 7689418810dSmrg# --------------------- 7699418810dSmrg# Trace this macro to discover what tags are supported by the libtool 7709418810dSmrg# --tag option, using: 7719418810dSmrg# autoconf --trace 'LT_SUPPORTED_TAG:$1' 7729418810dSmrgAC_DEFUN([LT_SUPPORTED_TAG], []) 7739418810dSmrg 7749418810dSmrg 7759418810dSmrg# C support is built-in for now 7769418810dSmrgm4_define([_LT_LANG_C_enabled], []) 7779418810dSmrgm4_define([_LT_TAGS], []) 7789418810dSmrg 7799418810dSmrg 7809418810dSmrg# LT_LANG(LANG) 7819418810dSmrg# ------------- 7829418810dSmrg# Enable libtool support for the given language if not already enabled. 7839418810dSmrgAC_DEFUN([LT_LANG], 7849418810dSmrg[AC_BEFORE([$0], [LT_OUTPUT])dnl 7859418810dSmrgm4_case([$1], 7869418810dSmrg [C], [_LT_LANG(C)], 7879418810dSmrg [C++], [_LT_LANG(CXX)], 7889418810dSmrg [Java], [_LT_LANG(GCJ)], 7899418810dSmrg [Fortran 77], [_LT_LANG(F77)], 7909418810dSmrg [Fortran], [_LT_LANG(FC)], 7919418810dSmrg [Windows Resource], [_LT_LANG(RC)], 7929418810dSmrg [m4_ifdef([_LT_LANG_]$1[_CONFIG], 7939418810dSmrg [_LT_LANG($1)], 7949418810dSmrg [m4_fatal([$0: unsupported language: "$1"])])])dnl 7959418810dSmrg])# LT_LANG 7969418810dSmrg 7979418810dSmrg 7989418810dSmrg# _LT_LANG(LANGNAME) 7999418810dSmrg# ------------------ 8009418810dSmrgm4_defun([_LT_LANG], 8019418810dSmrg[m4_ifdef([_LT_LANG_]$1[_enabled], [], 8029418810dSmrg [LT_SUPPORTED_TAG([$1])dnl 8039418810dSmrg m4_append([_LT_TAGS], [$1 ])dnl 8049418810dSmrg m4_define([_LT_LANG_]$1[_enabled], [])dnl 8059418810dSmrg _LT_LANG_$1_CONFIG($1)])dnl 8069418810dSmrg])# _LT_LANG 8079418810dSmrg 8089418810dSmrg 8099418810dSmrg# _LT_LANG_DEFAULT_CONFIG 8109418810dSmrg# ----------------------- 8119418810dSmrgm4_defun([_LT_LANG_DEFAULT_CONFIG], 8129418810dSmrg[AC_PROVIDE_IFELSE([AC_PROG_CXX], 8139418810dSmrg [LT_LANG(CXX)], 8149418810dSmrg [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) 8159418810dSmrg 8169418810dSmrgAC_PROVIDE_IFELSE([AC_PROG_F77], 8179418810dSmrg [LT_LANG(F77)], 8189418810dSmrg [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) 8199418810dSmrg 8209418810dSmrgAC_PROVIDE_IFELSE([AC_PROG_FC], 8219418810dSmrg [LT_LANG(FC)], 8229418810dSmrg [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) 8239418810dSmrg 8249418810dSmrgdnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal 8259418810dSmrgdnl pulling things in needlessly. 8269418810dSmrgAC_PROVIDE_IFELSE([AC_PROG_GCJ], 8279418810dSmrg [LT_LANG(GCJ)], 8289418810dSmrg [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], 8299418810dSmrg [LT_LANG(GCJ)], 8309418810dSmrg [AC_PROVIDE_IFELSE([LT_PROG_GCJ], 8319418810dSmrg [LT_LANG(GCJ)], 8329418810dSmrg [m4_ifdef([AC_PROG_GCJ], 8339418810dSmrg [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) 8349418810dSmrg m4_ifdef([A][M_PROG_GCJ], 8359418810dSmrg [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) 8369418810dSmrg m4_ifdef([LT_PROG_GCJ], 8379418810dSmrg [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) 8389418810dSmrg 8399418810dSmrgAC_PROVIDE_IFELSE([LT_PROG_RC], 8409418810dSmrg [LT_LANG(RC)], 8419418810dSmrg [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) 8429418810dSmrg])# _LT_LANG_DEFAULT_CONFIG 8439418810dSmrg 8449418810dSmrg# Obsolete macros: 8459418810dSmrgAU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) 8469418810dSmrgAU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) 8479418810dSmrgAU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) 8489418810dSmrgAU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) 8499418810dSmrgdnl aclocal-1.4 backwards compatibility: 8509418810dSmrgdnl AC_DEFUN([AC_LIBTOOL_CXX], []) 8519418810dSmrgdnl AC_DEFUN([AC_LIBTOOL_F77], []) 8529418810dSmrgdnl AC_DEFUN([AC_LIBTOOL_FC], []) 8539418810dSmrgdnl AC_DEFUN([AC_LIBTOOL_GCJ], []) 8549418810dSmrg 8559418810dSmrg 8569418810dSmrg# _LT_TAG_COMPILER 8579418810dSmrg# ---------------- 8589418810dSmrgm4_defun([_LT_TAG_COMPILER], 8599bd41f2cSmrg[AC_REQUIRE([AC_PROG_CC])dnl 8609bd41f2cSmrg 8619418810dSmrg_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl 8629418810dSmrg_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl 8639418810dSmrg_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl 8649418810dSmrg_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl 8659418810dSmrg 8669bd41f2cSmrg# If no C compiler was specified, use CC. 8679bd41f2cSmrgLTCC=${LTCC-"$CC"} 8689bd41f2cSmrg 8699bd41f2cSmrg# If no C compiler flags were specified, use CFLAGS. 8709bd41f2cSmrgLTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8719bd41f2cSmrg 8729bd41f2cSmrg# Allow CC to be a program name with arguments. 8739bd41f2cSmrgcompiler=$CC 8749418810dSmrg])# _LT_TAG_COMPILER 8759bd41f2cSmrg 8769bd41f2cSmrg 8779bd41f2cSmrg# _LT_COMPILER_BOILERPLATE 8789bd41f2cSmrg# ------------------------ 8799bd41f2cSmrg# Check for compiler boilerplate output or warnings with 8809bd41f2cSmrg# the simple compiler test code. 8819418810dSmrgm4_defun([_LT_COMPILER_BOILERPLATE], 8829418810dSmrg[m4_require([_LT_DECL_SED])dnl 8839bd41f2cSmrgac_outfile=conftest.$ac_objext 8849bd41f2cSmrgecho "$lt_simple_compile_test_code" >conftest.$ac_ext 8859bd41f2cSmrgeval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8869bd41f2cSmrg_lt_compiler_boilerplate=`cat conftest.err` 8879418810dSmrg$RM conftest* 8889bd41f2cSmrg])# _LT_COMPILER_BOILERPLATE 8899bd41f2cSmrg 8909bd41f2cSmrg 8919bd41f2cSmrg# _LT_LINKER_BOILERPLATE 8929bd41f2cSmrg# ---------------------- 8939bd41f2cSmrg# Check for linker boilerplate output or warnings with 8949bd41f2cSmrg# the simple link test code. 8959418810dSmrgm4_defun([_LT_LINKER_BOILERPLATE], 8969418810dSmrg[m4_require([_LT_DECL_SED])dnl 8979bd41f2cSmrgac_outfile=conftest.$ac_objext 8989bd41f2cSmrgecho "$lt_simple_link_test_code" >conftest.$ac_ext 8999bd41f2cSmrgeval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9009bd41f2cSmrg_lt_linker_boilerplate=`cat conftest.err` 9019418810dSmrg$RM -r conftest* 9029bd41f2cSmrg])# _LT_LINKER_BOILERPLATE 9039bd41f2cSmrg 904d075918cSmrg# _LT_REQUIRED_DARWIN_CHECKS 9059418810dSmrg# ------------------------- 9069418810dSmrgm4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ 907d075918cSmrg case $host_os in 908d075918cSmrg rhapsody* | darwin*) 909d075918cSmrg AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) 910d075918cSmrg AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) 9119418810dSmrg AC_CHECK_TOOL([LIPO], [lipo], [:]) 9129418810dSmrg AC_CHECK_TOOL([OTOOL], [otool], [:]) 9139418810dSmrg AC_CHECK_TOOL([OTOOL64], [otool64], [:]) 9149418810dSmrg _LT_DECL([], [DSYMUTIL], [1], 9159418810dSmrg [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) 9169418810dSmrg _LT_DECL([], [NMEDIT], [1], 9179418810dSmrg [Tool to change global to local symbols on Mac OS X]) 9189418810dSmrg _LT_DECL([], [LIPO], [1], 9199418810dSmrg [Tool to manipulate fat objects and archives on Mac OS X]) 9209418810dSmrg _LT_DECL([], [OTOOL], [1], 9219418810dSmrg [ldd/readelf like tool for Mach-O binaries on Mac OS X]) 9229418810dSmrg _LT_DECL([], [OTOOL64], [1], 9239418810dSmrg [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) 924d075918cSmrg 925d075918cSmrg AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], 926d075918cSmrg [lt_cv_apple_cc_single_mod=no 927d075918cSmrg if test -z "${LT_MULTI_MODULE}"; then 9289418810dSmrg # By default we will add the -single_module flag. You can override 9299418810dSmrg # by either setting the environment variable LT_MULTI_MODULE 9309418810dSmrg # non-empty at configure time, or by adding -multi_module to the 9319418810dSmrg # link flags. 9329418810dSmrg rm -rf libconftest.dylib* 9339418810dSmrg echo "int foo(void){return 1;}" > conftest.c 9349418810dSmrg echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9359418810dSmrg-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD 9369418810dSmrg $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9379418810dSmrg -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 9389418810dSmrg _lt_result=$? 9399418810dSmrg if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 9409418810dSmrg lt_cv_apple_cc_single_mod=yes 9419418810dSmrg else 9429418810dSmrg cat conftest.err >&AS_MESSAGE_LOG_FD 9439418810dSmrg fi 9449418810dSmrg rm -rf libconftest.dylib* 9459418810dSmrg rm -f conftest.* 946d075918cSmrg fi]) 947d075918cSmrg AC_CACHE_CHECK([for -exported_symbols_list linker flag], 948d075918cSmrg [lt_cv_ld_exported_symbols_list], 949d075918cSmrg [lt_cv_ld_exported_symbols_list=no 950d075918cSmrg save_LDFLAGS=$LDFLAGS 951d075918cSmrg echo "_main" > conftest.sym 952d075918cSmrg LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 953d075918cSmrg AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], 9549418810dSmrg [lt_cv_ld_exported_symbols_list=yes], 9559418810dSmrg [lt_cv_ld_exported_symbols_list=no]) 9569418810dSmrg LDFLAGS="$save_LDFLAGS" 957d075918cSmrg ]) 958d075918cSmrg case $host_os in 9599418810dSmrg rhapsody* | darwin1.[[012]]) 960d075918cSmrg _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 961d075918cSmrg darwin1.*) 9629418810dSmrg _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 9639418810dSmrg darwin*) # darwin 5.x on 964d075918cSmrg # if running on 10.5 or later, the deployment target defaults 965d075918cSmrg # to the OS version, if on x86, and 10.4, the deployment 966d075918cSmrg # target defaults to 10.4. Don't you love it? 967d075918cSmrg case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 9689418810dSmrg 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) 9699418810dSmrg _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 9709418810dSmrg 10.[[012]]*) 9719418810dSmrg _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 9729418810dSmrg 10.*) 9739418810dSmrg _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 974d075918cSmrg esac 975d075918cSmrg ;; 976d075918cSmrg esac 977d075918cSmrg if test "$lt_cv_apple_cc_single_mod" = "yes"; then 978d075918cSmrg _lt_dar_single_mod='$single_module' 979d075918cSmrg fi 980d075918cSmrg if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 981d075918cSmrg _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 982d075918cSmrg else 9839418810dSmrg _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 984d075918cSmrg fi 985d075918cSmrg if test "$DSYMUTIL" != ":"; then 9869418810dSmrg _lt_dsymutil='~$DSYMUTIL $lib || :' 987d075918cSmrg else 988d075918cSmrg _lt_dsymutil= 989d075918cSmrg fi 990d075918cSmrg ;; 991d075918cSmrg esac 992d075918cSmrg]) 9939bd41f2cSmrg 9949418810dSmrg 9959418810dSmrg# _LT_DARWIN_LINKER_FEATURES 9969418810dSmrg# -------------------------- 9979418810dSmrg# Checks for linker and compiler features on darwin 9989418810dSmrgm4_defun([_LT_DARWIN_LINKER_FEATURES], 9999418810dSmrg[ 10009418810dSmrg m4_require([_LT_REQUIRED_DARWIN_CHECKS]) 10019418810dSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=no 10029418810dSmrg _LT_TAGVAR(hardcode_direct, $1)=no 10039418810dSmrg _LT_TAGVAR(hardcode_automatic, $1)=yes 10049418810dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 10059418810dSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='' 10069418810dSmrg _LT_TAGVAR(link_all_deplibs, $1)=yes 10079418810dSmrg _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" 10089418810dSmrg case $cc_basename in 10099418810dSmrg ifort*) _lt_dar_can_shared=yes ;; 10109418810dSmrg *) _lt_dar_can_shared=$GCC ;; 10119418810dSmrg esac 10129418810dSmrg if test "$_lt_dar_can_shared" = "yes"; then 10139418810dSmrg output_verbose_link_cmd=echo 10149418810dSmrg _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}" 10159418810dSmrg _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 10169418810dSmrg _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}" 10179418810dSmrg _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}" 10189418810dSmrg m4_if([$1], [CXX], 10199418810dSmrg[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then 10209418810dSmrg _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}" 10219418810dSmrg _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}" 10229418810dSmrg fi 10239418810dSmrg],[]) 10249418810dSmrg else 10259418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 10269418810dSmrg fi 10279418810dSmrg]) 10289418810dSmrg 10299418810dSmrg# _LT_SYS_MODULE_PATH_AIX 10309418810dSmrg# ----------------------- 10319bd41f2cSmrg# Links a minimal program and checks the executable 10329bd41f2cSmrg# for the system default hardcoded library path. In most cases, 10339bd41f2cSmrg# this is /usr/lib:/lib, but when the MPI compilers are used 10349bd41f2cSmrg# the location of the communication and MPI libs are included too. 10359bd41f2cSmrg# If we don't find anything, use the default library path according 10369bd41f2cSmrg# to the aix ld manual. 10379418810dSmrgm4_defun([_LT_SYS_MODULE_PATH_AIX], 10389418810dSmrg[m4_require([_LT_DECL_SED])dnl 10399bd41f2cSmrgAC_LINK_IFELSE(AC_LANG_PROGRAM,[ 10409bd41f2cSmrglt_aix_libpath_sed=' 10419bd41f2cSmrg /Import File Strings/,/^$/ { 10429bd41f2cSmrg /^0/ { 10439bd41f2cSmrg s/^0 *\(.*\)$/\1/ 10449bd41f2cSmrg p 10459bd41f2cSmrg } 10469bd41f2cSmrg }' 10479bd41f2cSmrgaix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10489bd41f2cSmrg# Check for a 64-bit object if we didn't find anything. 10499bd41f2cSmrgif test -z "$aix_libpath"; then 10509bd41f2cSmrg aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10519bd41f2cSmrgfi],[]) 10529bd41f2cSmrgif test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10539418810dSmrg])# _LT_SYS_MODULE_PATH_AIX 10549bd41f2cSmrg 10559bd41f2cSmrg 10569418810dSmrg# _LT_SHELL_INIT(ARG) 10579418810dSmrg# ------------------- 10589418810dSmrgm4_define([_LT_SHELL_INIT], 10599bd41f2cSmrg[ifdef([AC_DIVERSION_NOTICE], 10609bd41f2cSmrg [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], 10619bd41f2cSmrg [AC_DIVERT_PUSH(NOTICE)]) 10629bd41f2cSmrg$1 10639bd41f2cSmrgAC_DIVERT_POP 10649418810dSmrg])# _LT_SHELL_INIT 10659bd41f2cSmrg 10669bd41f2cSmrg 10679418810dSmrg# _LT_PROG_ECHO_BACKSLASH 10689418810dSmrg# ----------------------- 10699bd41f2cSmrg# Add some code to the start of the generated configure script which 10709bd41f2cSmrg# will find an echo command which doesn't interpret backslashes. 10719418810dSmrgm4_defun([_LT_PROG_ECHO_BACKSLASH], 10729418810dSmrg[_LT_SHELL_INIT([ 10739bd41f2cSmrg# Check that we are running under the correct shell. 10749bd41f2cSmrgSHELL=${CONFIG_SHELL-/bin/sh} 10759bd41f2cSmrg 10769418810dSmrgcase X$lt_ECHO in 10779bd41f2cSmrgX*--fallback-echo) 10789bd41f2cSmrg # Remove one level of quotation (which was required for Make). 10799418810dSmrg ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` 10809bd41f2cSmrg ;; 10819bd41f2cSmrgesac 10829bd41f2cSmrg 10839418810dSmrgECHO=${lt_ECHO-echo} 10849bd41f2cSmrgif test "X[$]1" = X--no-reexec; then 10859bd41f2cSmrg # Discard the --no-reexec flag, and continue. 10869bd41f2cSmrg shift 10879bd41f2cSmrgelif test "X[$]1" = X--fallback-echo; then 10889bd41f2cSmrg # Avoid inline document here, it may be left over 10899bd41f2cSmrg : 10909418810dSmrgelif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 10919418810dSmrg # Yippee, $ECHO works! 10929bd41f2cSmrg : 10939bd41f2cSmrgelse 10949bd41f2cSmrg # Restart under the correct shell. 10959bd41f2cSmrg exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} 10969bd41f2cSmrgfi 10979bd41f2cSmrg 10989bd41f2cSmrgif test "X[$]1" = X--fallback-echo; then 10999bd41f2cSmrg # used as fallback echo 11009bd41f2cSmrg shift 11019418810dSmrg cat <<_LT_EOF 11029bd41f2cSmrg[$]* 11039418810dSmrg_LT_EOF 11049bd41f2cSmrg exit 0 11059bd41f2cSmrgfi 11069bd41f2cSmrg 11079bd41f2cSmrg# The HP-UX ksh and POSIX shell print the target directory to stdout 11089bd41f2cSmrg# if CDPATH is set. 11099bd41f2cSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11109bd41f2cSmrg 11119418810dSmrgif test -z "$lt_ECHO"; then 11129418810dSmrg if test "X${echo_test_string+set}" != Xset; then 11139418810dSmrg # find a string as large as possible, as long as the shell can cope with it 11149418810dSmrg for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do 11159418810dSmrg # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 11169418810dSmrg if { echo_test_string=`eval $cmd`; } 2>/dev/null && 11179418810dSmrg { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 11189418810dSmrg then 11199418810dSmrg break 11209418810dSmrg fi 11219418810dSmrg done 11229418810dSmrg fi 11239bd41f2cSmrg 11249418810dSmrg if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 11259418810dSmrg echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 11269418810dSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 11279418810dSmrg : 11289418810dSmrg else 11299418810dSmrg # The Solaris, AIX, and Digital Unix default echo programs unquote 11309418810dSmrg # backslashes. This makes it impossible to quote backslashes using 11319418810dSmrg # echo "$something" | sed 's/\\/\\\\/g' 11329418810dSmrg # 11339418810dSmrg # So, first we look for a working echo in the user's PATH. 11349bd41f2cSmrg 11359418810dSmrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11369418810dSmrg for dir in $PATH /usr/ucb; do 11379418810dSmrg IFS="$lt_save_ifs" 11389418810dSmrg if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 11399418810dSmrg test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 11409418810dSmrg echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 11419418810dSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 11429418810dSmrg ECHO="$dir/echo" 11439418810dSmrg break 11449418810dSmrg fi 11459418810dSmrg done 11469bd41f2cSmrg IFS="$lt_save_ifs" 11479bd41f2cSmrg 11489418810dSmrg if test "X$ECHO" = Xecho; then 11499418810dSmrg # We didn't find a better echo, so look for alternatives. 11509418810dSmrg if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 11519418810dSmrg echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 11529418810dSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 11539418810dSmrg # This shell has a builtin print -r that does the trick. 11549418810dSmrg ECHO='print -r' 11559418810dSmrg elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 11569418810dSmrg test "X$CONFIG_SHELL" != X/bin/ksh; then 11579418810dSmrg # If we have ksh, try running configure again with it. 11589418810dSmrg ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 11599418810dSmrg export ORIGINAL_CONFIG_SHELL 11609418810dSmrg CONFIG_SHELL=/bin/ksh 11619418810dSmrg export CONFIG_SHELL 11629418810dSmrg exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} 11639bd41f2cSmrg else 11649418810dSmrg # Try using printf. 11659418810dSmrg ECHO='printf %s\n' 11669418810dSmrg if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 11679418810dSmrg echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 11689418810dSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 11699418810dSmrg # Cool, printf works 11709418810dSmrg : 11719418810dSmrg elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && 11729418810dSmrg test "X$echo_testing_string" = 'X\t' && 11739418810dSmrg echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && 11749418810dSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 11759418810dSmrg CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 11769418810dSmrg export CONFIG_SHELL 11779418810dSmrg SHELL="$CONFIG_SHELL" 11789418810dSmrg export SHELL 11799418810dSmrg ECHO="$CONFIG_SHELL [$]0 --fallback-echo" 11809418810dSmrg elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && 11819418810dSmrg test "X$echo_testing_string" = 'X\t' && 11829418810dSmrg echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && 11839418810dSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 11849418810dSmrg ECHO="$CONFIG_SHELL [$]0 --fallback-echo" 11859418810dSmrg else 11869418810dSmrg # maybe with a smaller string... 11879418810dSmrg prev=: 11889bd41f2cSmrg 11899418810dSmrg for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do 11909418810dSmrg if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 11919418810dSmrg then 11929418810dSmrg break 11939418810dSmrg fi 11949418810dSmrg prev="$cmd" 11959418810dSmrg done 11969bd41f2cSmrg 11979418810dSmrg if test "$prev" != 'sed 50q "[$]0"'; then 11989418810dSmrg echo_test_string=`eval $prev` 11999418810dSmrg export echo_test_string 12009418810dSmrg exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} 12019418810dSmrg else 12029418810dSmrg # Oops. We lost completely, so just stick with echo. 12039418810dSmrg ECHO=echo 12049418810dSmrg fi 12059418810dSmrg fi 12069bd41f2cSmrg fi 12079bd41f2cSmrg fi 12089bd41f2cSmrg fi 12099bd41f2cSmrgfi 12109bd41f2cSmrg 12119bd41f2cSmrg# Copy echo and quote the copy suitably for passing to libtool from 12129bd41f2cSmrg# the Makefile, instead of quoting the original, which is used later. 12139418810dSmrglt_ECHO=$ECHO 12149418810dSmrgif test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then 12159418810dSmrg lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" 12169bd41f2cSmrgfi 12179bd41f2cSmrg 12189418810dSmrgAC_SUBST(lt_ECHO) 12199418810dSmrg]) 12209418810dSmrg_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) 12219418810dSmrg_LT_DECL([], [ECHO], [1], 12229418810dSmrg [An echo program that does not interpret backslashes]) 12239418810dSmrg])# _LT_PROG_ECHO_BACKSLASH 12249bd41f2cSmrg 12259bd41f2cSmrg 12269418810dSmrg# _LT_ENABLE_LOCK 12279418810dSmrg# --------------- 12289418810dSmrgm4_defun([_LT_ENABLE_LOCK], 12299bd41f2cSmrg[AC_ARG_ENABLE([libtool-lock], 12309418810dSmrg [AS_HELP_STRING([--disable-libtool-lock], 12319418810dSmrg [avoid locking (might break parallel builds)])]) 12329bd41f2cSmrgtest "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 12339bd41f2cSmrg 12349bd41f2cSmrg# Some flags need to be propagated to the compiler or linker for good 12359bd41f2cSmrg# libtool support. 12369bd41f2cSmrgcase $host in 12379bd41f2cSmrgia64-*-hpux*) 12389bd41f2cSmrg # Find out which ABI we are using. 12399bd41f2cSmrg echo 'int i;' > conftest.$ac_ext 12409bd41f2cSmrg if AC_TRY_EVAL(ac_compile); then 12419bd41f2cSmrg case `/usr/bin/file conftest.$ac_objext` in 12429418810dSmrg *ELF-32*) 12439418810dSmrg HPUX_IA64_MODE="32" 12449418810dSmrg ;; 12459418810dSmrg *ELF-64*) 12469418810dSmrg HPUX_IA64_MODE="64" 12479418810dSmrg ;; 12489bd41f2cSmrg esac 12499bd41f2cSmrg fi 12509bd41f2cSmrg rm -rf conftest* 12519bd41f2cSmrg ;; 12529bd41f2cSmrg*-*-irix6*) 12539bd41f2cSmrg # Find out which ABI we are using. 12549bd41f2cSmrg echo '[#]line __oline__ "configure"' > conftest.$ac_ext 12559bd41f2cSmrg if AC_TRY_EVAL(ac_compile); then 12569418810dSmrg if test "$lt_cv_prog_gnu_ld" = yes; then 12579418810dSmrg case `/usr/bin/file conftest.$ac_objext` in 12589418810dSmrg *32-bit*) 12599418810dSmrg LD="${LD-ld} -melf32bsmip" 12609418810dSmrg ;; 12619418810dSmrg *N32*) 12629418810dSmrg LD="${LD-ld} -melf32bmipn32" 12639418810dSmrg ;; 12649418810dSmrg *64-bit*) 12659418810dSmrg LD="${LD-ld} -melf64bmip" 12669418810dSmrg ;; 12679418810dSmrg esac 12689418810dSmrg else 12699418810dSmrg case `/usr/bin/file conftest.$ac_objext` in 12709418810dSmrg *32-bit*) 12719418810dSmrg LD="${LD-ld} -32" 12729418810dSmrg ;; 12739418810dSmrg *N32*) 12749418810dSmrg LD="${LD-ld} -n32" 12759418810dSmrg ;; 12769418810dSmrg *64-bit*) 12779418810dSmrg LD="${LD-ld} -64" 12789418810dSmrg ;; 12799418810dSmrg esac 12809418810dSmrg fi 12819bd41f2cSmrg fi 12829bd41f2cSmrg rm -rf conftest* 12839bd41f2cSmrg ;; 12849bd41f2cSmrg 12859bd41f2cSmrgx86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 12869418810dSmrgs390*-*linux*|s390*-*tpf*|sparc*-*linux*) 12879bd41f2cSmrg # Find out which ABI we are using. 12889bd41f2cSmrg echo 'int i;' > conftest.$ac_ext 12899bd41f2cSmrg if AC_TRY_EVAL(ac_compile); then 12909bd41f2cSmrg case `/usr/bin/file conftest.o` in 12919418810dSmrg *32-bit*) 12929418810dSmrg case $host in 12939418810dSmrg x86_64-*kfreebsd*-gnu) 12949418810dSmrg LD="${LD-ld} -m elf_i386_fbsd" 12959418810dSmrg ;; 12969418810dSmrg x86_64-*linux*) 12979418810dSmrg LD="${LD-ld} -m elf_i386" 12989418810dSmrg ;; 12999418810dSmrg ppc64-*linux*|powerpc64-*linux*) 13009418810dSmrg LD="${LD-ld} -m elf32ppclinux" 13019418810dSmrg ;; 13029418810dSmrg s390x-*linux*) 13039418810dSmrg LD="${LD-ld} -m elf_s390" 13049418810dSmrg ;; 13059418810dSmrg sparc64-*linux*) 13069418810dSmrg LD="${LD-ld} -m elf32_sparc" 13079418810dSmrg ;; 13089418810dSmrg esac 13099418810dSmrg ;; 13109418810dSmrg *64-bit*) 13119418810dSmrg case $host in 13129418810dSmrg x86_64-*kfreebsd*-gnu) 13139418810dSmrg LD="${LD-ld} -m elf_x86_64_fbsd" 13149418810dSmrg ;; 13159418810dSmrg x86_64-*linux*) 13169418810dSmrg LD="${LD-ld} -m elf_x86_64" 13179418810dSmrg ;; 13189418810dSmrg ppc*-*linux*|powerpc*-*linux*) 13199418810dSmrg LD="${LD-ld} -m elf64ppc" 13209418810dSmrg ;; 13219418810dSmrg s390*-*linux*|s390*-*tpf*) 13229418810dSmrg LD="${LD-ld} -m elf64_s390" 13239418810dSmrg ;; 13249418810dSmrg sparc*-*linux*) 13259418810dSmrg LD="${LD-ld} -m elf64_sparc" 13269418810dSmrg ;; 13279418810dSmrg esac 13289418810dSmrg ;; 13299bd41f2cSmrg esac 13309bd41f2cSmrg fi 13319bd41f2cSmrg rm -rf conftest* 13329bd41f2cSmrg ;; 13339bd41f2cSmrg 13349bd41f2cSmrg*-*-sco3.2v5*) 13359bd41f2cSmrg # On SCO OpenServer 5, we need -belf to get full-featured binaries. 13369bd41f2cSmrg SAVE_CFLAGS="$CFLAGS" 13379bd41f2cSmrg CFLAGS="$CFLAGS -belf" 13389bd41f2cSmrg AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, 13399bd41f2cSmrg [AC_LANG_PUSH(C) 13409418810dSmrg AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) 13419bd41f2cSmrg AC_LANG_POP]) 13429bd41f2cSmrg if test x"$lt_cv_cc_needs_belf" != x"yes"; then 13439bd41f2cSmrg # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 13449bd41f2cSmrg CFLAGS="$SAVE_CFLAGS" 13459bd41f2cSmrg fi 13469bd41f2cSmrg ;; 13479bd41f2cSmrgsparc*-*solaris*) 13489bd41f2cSmrg # Find out which ABI we are using. 13499bd41f2cSmrg echo 'int i;' > conftest.$ac_ext 13509bd41f2cSmrg if AC_TRY_EVAL(ac_compile); then 13519bd41f2cSmrg case `/usr/bin/file conftest.o` in 13529bd41f2cSmrg *64-bit*) 13539bd41f2cSmrg case $lt_cv_prog_gnu_ld in 13549bd41f2cSmrg yes*) LD="${LD-ld} -m elf64_sparc" ;; 1355d075918cSmrg *) 13569418810dSmrg if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 1357d075918cSmrg LD="${LD-ld} -64" 1358d075918cSmrg fi 1359d075918cSmrg ;; 13609bd41f2cSmrg esac 13619bd41f2cSmrg ;; 13629bd41f2cSmrg esac 13639bd41f2cSmrg fi 13649bd41f2cSmrg rm -rf conftest* 13659bd41f2cSmrg ;; 13669bd41f2cSmrgesac 13679bd41f2cSmrg 13689bd41f2cSmrgneed_locks="$enable_libtool_lock" 13699418810dSmrg])# _LT_ENABLE_LOCK 13709418810dSmrg 13719418810dSmrg 13729418810dSmrg# _LT_CMD_OLD_ARCHIVE 13739418810dSmrg# ------------------- 13749418810dSmrgm4_defun([_LT_CMD_OLD_ARCHIVE], 13759418810dSmrg[AC_CHECK_TOOL(AR, ar, false) 13769418810dSmrgtest -z "$AR" && AR=ar 13779418810dSmrgtest -z "$AR_FLAGS" && AR_FLAGS=cru 13789418810dSmrg_LT_DECL([], [AR], [1], [The archiver]) 13799418810dSmrg_LT_DECL([], [AR_FLAGS], [1]) 13809418810dSmrg 13819418810dSmrgAC_CHECK_TOOL(STRIP, strip, :) 13829418810dSmrgtest -z "$STRIP" && STRIP=: 13839418810dSmrg_LT_DECL([], [STRIP], [1], [A symbol stripping program]) 13849bd41f2cSmrg 13859418810dSmrgAC_CHECK_TOOL(RANLIB, ranlib, :) 13869418810dSmrgtest -z "$RANLIB" && RANLIB=: 13879418810dSmrg_LT_DECL([], [RANLIB], [1], 13889418810dSmrg [Commands used to install an old-style archive]) 13899418810dSmrg 13909418810dSmrg# Determine commands to create old-style static archives. 13919418810dSmrgold_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 13929418810dSmrgold_postinstall_cmds='chmod 644 $oldlib' 13939418810dSmrgold_postuninstall_cmds= 13949418810dSmrg 13959418810dSmrgif test -n "$RANLIB"; then 13969418810dSmrg case $host_os in 13979418810dSmrg openbsd*) 13989418810dSmrg old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 13999418810dSmrg ;; 14009418810dSmrg *) 14019418810dSmrg old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 14029418810dSmrg ;; 14039418810dSmrg esac 14049418810dSmrg old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 14059418810dSmrgfi 14069418810dSmrg_LT_DECL([], [old_postinstall_cmds], [2]) 14079418810dSmrg_LT_DECL([], [old_postuninstall_cmds], [2]) 14089418810dSmrg_LT_TAGDECL([], [old_archive_cmds], [2], 14099418810dSmrg [Commands used to build an old-style archive]) 14109418810dSmrg])# _LT_CMD_OLD_ARCHIVE 14119bd41f2cSmrg 14129bd41f2cSmrg 14139418810dSmrg# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 14149bd41f2cSmrg# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) 14159bd41f2cSmrg# ---------------------------------------------------------------- 14169bd41f2cSmrg# Check whether the given compiler option works 14179418810dSmrgAC_DEFUN([_LT_COMPILER_OPTION], 14189418810dSmrg[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 14199418810dSmrgm4_require([_LT_DECL_SED])dnl 14209bd41f2cSmrgAC_CACHE_CHECK([$1], [$2], 14219bd41f2cSmrg [$2=no 14229418810dSmrg m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) 14239bd41f2cSmrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14249bd41f2cSmrg lt_compiler_flag="$3" 14259bd41f2cSmrg # Insert the option either (1) after the last *FLAGS variable, or 14269bd41f2cSmrg # (2) before a word containing "conftest.", or (3) at the end. 14279bd41f2cSmrg # Note that $ac_compile itself does not contain backslashes and begins 14289bd41f2cSmrg # with a dollar sign (not a hyphen), so the echo should work correctly. 14299bd41f2cSmrg # The option is referenced via a variable to avoid confusing sed. 14309bd41f2cSmrg lt_compile=`echo "$ac_compile" | $SED \ 14319bd41f2cSmrg -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14329bd41f2cSmrg -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 14339bd41f2cSmrg -e 's:$: $lt_compiler_flag:'` 14349bd41f2cSmrg (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 14359bd41f2cSmrg (eval "$lt_compile" 2>conftest.err) 14369bd41f2cSmrg ac_status=$? 14379bd41f2cSmrg cat conftest.err >&AS_MESSAGE_LOG_FD 14389bd41f2cSmrg echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 14399bd41f2cSmrg if (exit $ac_status) && test -s "$ac_outfile"; then 14409bd41f2cSmrg # The compiler can only warn and ignore the option if not recognized 14419bd41f2cSmrg # So say no if there are warnings other than the usual output. 14429418810dSmrg $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14439bd41f2cSmrg $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14449bd41f2cSmrg if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14459bd41f2cSmrg $2=yes 14469bd41f2cSmrg fi 14479bd41f2cSmrg fi 14489418810dSmrg $RM conftest* 14499bd41f2cSmrg]) 14509bd41f2cSmrg 14519bd41f2cSmrgif test x"[$]$2" = xyes; then 14529418810dSmrg m4_if([$5], , :, [$5]) 14539bd41f2cSmrgelse 14549418810dSmrg m4_if([$6], , :, [$6]) 14559bd41f2cSmrgfi 14569418810dSmrg])# _LT_COMPILER_OPTION 14579bd41f2cSmrg 14589418810dSmrg# Old name: 14599418810dSmrgAU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) 14609418810dSmrgdnl aclocal-1.4 backwards compatibility: 14619418810dSmrgdnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) 14629bd41f2cSmrg 14639418810dSmrg 14649418810dSmrg# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 14659418810dSmrg# [ACTION-SUCCESS], [ACTION-FAILURE]) 14669418810dSmrg# ---------------------------------------------------- 14679418810dSmrg# Check whether the given linker option works 14689418810dSmrgAC_DEFUN([_LT_LINKER_OPTION], 14699418810dSmrg[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 14709418810dSmrgm4_require([_LT_DECL_SED])dnl 14719bd41f2cSmrgAC_CACHE_CHECK([$1], [$2], 14729bd41f2cSmrg [$2=no 14739bd41f2cSmrg save_LDFLAGS="$LDFLAGS" 14749bd41f2cSmrg LDFLAGS="$LDFLAGS $3" 14759bd41f2cSmrg echo "$lt_simple_link_test_code" > conftest.$ac_ext 14769bd41f2cSmrg if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14779bd41f2cSmrg # The linker can only warn and ignore the option if not recognized 14789bd41f2cSmrg # So say no if there are warnings 14799bd41f2cSmrg if test -s conftest.err; then 14809bd41f2cSmrg # Append any errors to the config.log. 14819bd41f2cSmrg cat conftest.err 1>&AS_MESSAGE_LOG_FD 14829418810dSmrg $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14839bd41f2cSmrg $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14849bd41f2cSmrg if diff conftest.exp conftest.er2 >/dev/null; then 14859bd41f2cSmrg $2=yes 14869bd41f2cSmrg fi 14879bd41f2cSmrg else 14889bd41f2cSmrg $2=yes 14899bd41f2cSmrg fi 14909bd41f2cSmrg fi 14919418810dSmrg $RM -r conftest* 14929bd41f2cSmrg LDFLAGS="$save_LDFLAGS" 14939bd41f2cSmrg]) 14949bd41f2cSmrg 14959bd41f2cSmrgif test x"[$]$2" = xyes; then 14969418810dSmrg m4_if([$4], , :, [$4]) 14979bd41f2cSmrgelse 14989418810dSmrg m4_if([$5], , :, [$5]) 14999bd41f2cSmrgfi 15009418810dSmrg])# _LT_LINKER_OPTION 15019bd41f2cSmrg 15029418810dSmrg# Old name: 15039418810dSmrgAU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) 15049418810dSmrgdnl aclocal-1.4 backwards compatibility: 15059418810dSmrgdnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) 15069bd41f2cSmrg 15079418810dSmrg 15089418810dSmrg# LT_CMD_MAX_LEN 15099418810dSmrg#--------------- 15109418810dSmrgAC_DEFUN([LT_CMD_MAX_LEN], 15119418810dSmrg[AC_REQUIRE([AC_CANONICAL_HOST])dnl 15129418810dSmrg# find the maximum length of command line arguments 15139bd41f2cSmrgAC_MSG_CHECKING([the maximum length of command line arguments]) 15149bd41f2cSmrgAC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl 15159bd41f2cSmrg i=0 15169bd41f2cSmrg teststring="ABCD" 15179bd41f2cSmrg 15189bd41f2cSmrg case $build_os in 15199bd41f2cSmrg msdosdjgpp*) 15209bd41f2cSmrg # On DJGPP, this test can blow up pretty badly due to problems in libc 15219bd41f2cSmrg # (any single argument exceeding 2000 bytes causes a buffer overrun 15229bd41f2cSmrg # during glob expansion). Even if it were fixed, the result of this 15239bd41f2cSmrg # check would be larger than it should be. 15249bd41f2cSmrg lt_cv_sys_max_cmd_len=12288; # 12K is about right 15259bd41f2cSmrg ;; 15269bd41f2cSmrg 15279bd41f2cSmrg gnu*) 15289bd41f2cSmrg # Under GNU Hurd, this test is not required because there is 15299bd41f2cSmrg # no limit to the length of command line arguments. 15309bd41f2cSmrg # Libtool will interpret -1 as no limit whatsoever 15319bd41f2cSmrg lt_cv_sys_max_cmd_len=-1; 15329bd41f2cSmrg ;; 15339bd41f2cSmrg 15349418810dSmrg cygwin* | mingw* | cegcc*) 15359bd41f2cSmrg # On Win9x/ME, this test blows up -- it succeeds, but takes 15369bd41f2cSmrg # about 5 minutes as the teststring grows exponentially. 15379bd41f2cSmrg # Worse, since 9x/ME are not pre-emptively multitasking, 15389bd41f2cSmrg # you end up with a "frozen" computer, even though with patience 15399bd41f2cSmrg # the test eventually succeeds (with a max line length of 256k). 15409bd41f2cSmrg # Instead, let's just punt: use the minimum linelength reported by 15419bd41f2cSmrg # all of the supported platforms: 8192 (on NT/2K/XP). 15429bd41f2cSmrg lt_cv_sys_max_cmd_len=8192; 15439bd41f2cSmrg ;; 15449bd41f2cSmrg 15459bd41f2cSmrg amigaos*) 15469bd41f2cSmrg # On AmigaOS with pdksh, this test takes hours, literally. 15479bd41f2cSmrg # So we just punt and use a minimum line length of 8192. 15489bd41f2cSmrg lt_cv_sys_max_cmd_len=8192; 15499bd41f2cSmrg ;; 15509bd41f2cSmrg 15519bd41f2cSmrg netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 15529bd41f2cSmrg # This has been around since 386BSD, at least. Likely further. 15539bd41f2cSmrg if test -x /sbin/sysctl; then 15549bd41f2cSmrg lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 15559bd41f2cSmrg elif test -x /usr/sbin/sysctl; then 15569bd41f2cSmrg lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 15579bd41f2cSmrg else 15589bd41f2cSmrg lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 15599bd41f2cSmrg fi 15609bd41f2cSmrg # And add a safety zone 15619bd41f2cSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 15629bd41f2cSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 15639bd41f2cSmrg ;; 15649bd41f2cSmrg 15659bd41f2cSmrg interix*) 15669bd41f2cSmrg # We know the value 262144 and hardcode it with a safety zone (like BSD) 15679bd41f2cSmrg lt_cv_sys_max_cmd_len=196608 15689bd41f2cSmrg ;; 15699bd41f2cSmrg 15709bd41f2cSmrg osf*) 15719bd41f2cSmrg # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 15729bd41f2cSmrg # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 15739bd41f2cSmrg # nice to cause kernel panics so lets avoid the loop below. 15749bd41f2cSmrg # First set a reasonable default. 15759bd41f2cSmrg lt_cv_sys_max_cmd_len=16384 15769bd41f2cSmrg # 15779bd41f2cSmrg if test -x /sbin/sysconfig; then 15789bd41f2cSmrg case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 15799bd41f2cSmrg *1*) lt_cv_sys_max_cmd_len=-1 ;; 15809bd41f2cSmrg esac 15819bd41f2cSmrg fi 15829bd41f2cSmrg ;; 15839bd41f2cSmrg sco3.2v5*) 15849bd41f2cSmrg lt_cv_sys_max_cmd_len=102400 15859bd41f2cSmrg ;; 15869bd41f2cSmrg sysv5* | sco5v6* | sysv4.2uw2*) 15879bd41f2cSmrg kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 15889bd41f2cSmrg if test -n "$kargmax"; then 15899418810dSmrg lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` 15909bd41f2cSmrg else 15919bd41f2cSmrg lt_cv_sys_max_cmd_len=32768 15929bd41f2cSmrg fi 15939bd41f2cSmrg ;; 15949bd41f2cSmrg *) 15959bd41f2cSmrg lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 15969bd41f2cSmrg if test -n "$lt_cv_sys_max_cmd_len"; then 15979bd41f2cSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 15989bd41f2cSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 15999bd41f2cSmrg else 16009418810dSmrg # Make teststring a little bigger before we do anything with it. 16019418810dSmrg # a 1K string should be a reasonable start. 16029418810dSmrg for i in 1 2 3 4 5 6 7 8 ; do 16039418810dSmrg teststring=$teststring$teststring 16049418810dSmrg done 16059bd41f2cSmrg SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 16069418810dSmrg # If test is not a shell built-in, we'll probably end up computing a 16079418810dSmrg # maximum length that is only half of the actual maximum length, but 16089418810dSmrg # we can't tell. 16099418810dSmrg while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 16109418810dSmrg = "XX$teststring$teststring"; } >/dev/null 2>&1 && 16119bd41f2cSmrg test $i != 17 # 1/2 MB should be enough 16129bd41f2cSmrg do 16139bd41f2cSmrg i=`expr $i + 1` 16149bd41f2cSmrg teststring=$teststring$teststring 16159bd41f2cSmrg done 16169418810dSmrg # Only check the string length outside the loop. 16179418810dSmrg lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 16189bd41f2cSmrg teststring= 16199418810dSmrg # Add a significant safety factor because C++ compilers can tack on 16209418810dSmrg # massive amounts of additional arguments before passing them to the 16219418810dSmrg # linker. It appears as though 1/2 is a usable value. 16229bd41f2cSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 16239bd41f2cSmrg fi 16249bd41f2cSmrg ;; 16259bd41f2cSmrg esac 16269bd41f2cSmrg]) 16279bd41f2cSmrgif test -n $lt_cv_sys_max_cmd_len ; then 16289bd41f2cSmrg AC_MSG_RESULT($lt_cv_sys_max_cmd_len) 16299bd41f2cSmrgelse 16309bd41f2cSmrg AC_MSG_RESULT(none) 16319bd41f2cSmrgfi 16329418810dSmrgmax_cmd_len=$lt_cv_sys_max_cmd_len 16339418810dSmrg_LT_DECL([], [max_cmd_len], [0], 16349418810dSmrg [What is the maximum length of a command?]) 16359418810dSmrg])# LT_CMD_MAX_LEN 16369bd41f2cSmrg 16379418810dSmrg# Old name: 16389418810dSmrgAU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) 16399418810dSmrgdnl aclocal-1.4 backwards compatibility: 16409418810dSmrgdnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) 16419bd41f2cSmrg 16429418810dSmrg 16439418810dSmrg# _LT_HEADER_DLFCN 16449418810dSmrg# ---------------- 16459418810dSmrgm4_defun([_LT_HEADER_DLFCN], 16469418810dSmrg[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl 16479418810dSmrg])# _LT_HEADER_DLFCN 16489bd41f2cSmrg 16499bd41f2cSmrg 16509418810dSmrg# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, 16519418810dSmrg# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) 16529418810dSmrg# ---------------------------------------------------------------- 16539418810dSmrgm4_defun([_LT_TRY_DLOPEN_SELF], 16549418810dSmrg[m4_require([_LT_HEADER_DLFCN])dnl 16559bd41f2cSmrgif test "$cross_compiling" = yes; then : 16569bd41f2cSmrg [$4] 16579bd41f2cSmrgelse 16589bd41f2cSmrg lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 16599bd41f2cSmrg lt_status=$lt_dlunknown 16609418810dSmrg cat > conftest.$ac_ext <<_LT_EOF 16619bd41f2cSmrg[#line __oline__ "configure" 16629bd41f2cSmrg#include "confdefs.h" 16639bd41f2cSmrg 16649bd41f2cSmrg#if HAVE_DLFCN_H 16659bd41f2cSmrg#include <dlfcn.h> 16669bd41f2cSmrg#endif 16679bd41f2cSmrg 16689bd41f2cSmrg#include <stdio.h> 16699bd41f2cSmrg 16709bd41f2cSmrg#ifdef RTLD_GLOBAL 16719bd41f2cSmrg# define LT_DLGLOBAL RTLD_GLOBAL 16729bd41f2cSmrg#else 16739bd41f2cSmrg# ifdef DL_GLOBAL 16749bd41f2cSmrg# define LT_DLGLOBAL DL_GLOBAL 16759bd41f2cSmrg# else 16769bd41f2cSmrg# define LT_DLGLOBAL 0 16779bd41f2cSmrg# endif 16789bd41f2cSmrg#endif 16799bd41f2cSmrg 16809bd41f2cSmrg/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 16819bd41f2cSmrg find out it does not work in some platform. */ 16829bd41f2cSmrg#ifndef LT_DLLAZY_OR_NOW 16839bd41f2cSmrg# ifdef RTLD_LAZY 16849bd41f2cSmrg# define LT_DLLAZY_OR_NOW RTLD_LAZY 16859bd41f2cSmrg# else 16869bd41f2cSmrg# ifdef DL_LAZY 16879bd41f2cSmrg# define LT_DLLAZY_OR_NOW DL_LAZY 16889bd41f2cSmrg# else 16899bd41f2cSmrg# ifdef RTLD_NOW 16909bd41f2cSmrg# define LT_DLLAZY_OR_NOW RTLD_NOW 16919bd41f2cSmrg# else 16929bd41f2cSmrg# ifdef DL_NOW 16939bd41f2cSmrg# define LT_DLLAZY_OR_NOW DL_NOW 16949bd41f2cSmrg# else 16959bd41f2cSmrg# define LT_DLLAZY_OR_NOW 0 16969bd41f2cSmrg# endif 16979bd41f2cSmrg# endif 16989bd41f2cSmrg# endif 16999bd41f2cSmrg# endif 17009bd41f2cSmrg#endif 17019bd41f2cSmrg 17029bd41f2cSmrgvoid fnord() { int i=42;} 17039bd41f2cSmrgint main () 17049bd41f2cSmrg{ 17059bd41f2cSmrg void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 17069bd41f2cSmrg int status = $lt_dlunknown; 17079bd41f2cSmrg 17089bd41f2cSmrg if (self) 17099bd41f2cSmrg { 17109bd41f2cSmrg if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 17119bd41f2cSmrg else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 17129bd41f2cSmrg /* dlclose (self); */ 17139bd41f2cSmrg } 17149bd41f2cSmrg else 17159bd41f2cSmrg puts (dlerror ()); 17169bd41f2cSmrg 17179418810dSmrg return status; 17189bd41f2cSmrg}] 17199418810dSmrg_LT_EOF 17209bd41f2cSmrg if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then 17219bd41f2cSmrg (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null 17229bd41f2cSmrg lt_status=$? 17239bd41f2cSmrg case x$lt_status in 17249bd41f2cSmrg x$lt_dlno_uscore) $1 ;; 17259bd41f2cSmrg x$lt_dlneed_uscore) $2 ;; 17269bd41f2cSmrg x$lt_dlunknown|x*) $3 ;; 17279bd41f2cSmrg esac 17289bd41f2cSmrg else : 17299bd41f2cSmrg # compilation failed 17309bd41f2cSmrg $3 17319bd41f2cSmrg fi 17329bd41f2cSmrgfi 17339bd41f2cSmrgrm -fr conftest* 17349418810dSmrg])# _LT_TRY_DLOPEN_SELF 17359bd41f2cSmrg 17369bd41f2cSmrg 17379418810dSmrg# LT_SYS_DLOPEN_SELF 17389418810dSmrg# ------------------ 17399418810dSmrgAC_DEFUN([LT_SYS_DLOPEN_SELF], 17409418810dSmrg[m4_require([_LT_HEADER_DLFCN])dnl 17419bd41f2cSmrgif test "x$enable_dlopen" != xyes; then 17429bd41f2cSmrg enable_dlopen=unknown 17439bd41f2cSmrg enable_dlopen_self=unknown 17449bd41f2cSmrg enable_dlopen_self_static=unknown 17459bd41f2cSmrgelse 17469bd41f2cSmrg lt_cv_dlopen=no 17479bd41f2cSmrg lt_cv_dlopen_libs= 17489bd41f2cSmrg 17499bd41f2cSmrg case $host_os in 17509bd41f2cSmrg beos*) 17519bd41f2cSmrg lt_cv_dlopen="load_add_on" 17529bd41f2cSmrg lt_cv_dlopen_libs= 17539bd41f2cSmrg lt_cv_dlopen_self=yes 17549bd41f2cSmrg ;; 17559bd41f2cSmrg 17569418810dSmrg mingw* | pw32* | cegcc*) 17579bd41f2cSmrg lt_cv_dlopen="LoadLibrary" 17589bd41f2cSmrg lt_cv_dlopen_libs= 17599418810dSmrg ;; 17609bd41f2cSmrg 17619bd41f2cSmrg cygwin*) 17629bd41f2cSmrg lt_cv_dlopen="dlopen" 17639bd41f2cSmrg lt_cv_dlopen_libs= 17649418810dSmrg ;; 17659bd41f2cSmrg 17669bd41f2cSmrg darwin*) 17679bd41f2cSmrg # if libdl is installed we need to link against it 17689bd41f2cSmrg AC_CHECK_LIB([dl], [dlopen], 17699bd41f2cSmrg [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ 17709bd41f2cSmrg lt_cv_dlopen="dyld" 17719bd41f2cSmrg lt_cv_dlopen_libs= 17729bd41f2cSmrg lt_cv_dlopen_self=yes 17739bd41f2cSmrg ]) 17749418810dSmrg ;; 17759bd41f2cSmrg 17769bd41f2cSmrg *) 17779bd41f2cSmrg AC_CHECK_FUNC([shl_load], 17789bd41f2cSmrg [lt_cv_dlopen="shl_load"], 17799bd41f2cSmrg [AC_CHECK_LIB([dld], [shl_load], 1780d075918cSmrg [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], 17819bd41f2cSmrg [AC_CHECK_FUNC([dlopen], 17829bd41f2cSmrg [lt_cv_dlopen="dlopen"], 17839bd41f2cSmrg [AC_CHECK_LIB([dl], [dlopen], 17849bd41f2cSmrg [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], 17859bd41f2cSmrg [AC_CHECK_LIB([svld], [dlopen], 17869bd41f2cSmrg [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], 17879bd41f2cSmrg [AC_CHECK_LIB([dld], [dld_link], 1788d075918cSmrg [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) 17899bd41f2cSmrg ]) 17909bd41f2cSmrg ]) 17919bd41f2cSmrg ]) 17929bd41f2cSmrg ]) 17939bd41f2cSmrg ]) 17949bd41f2cSmrg ;; 17959bd41f2cSmrg esac 17969bd41f2cSmrg 17979bd41f2cSmrg if test "x$lt_cv_dlopen" != xno; then 17989bd41f2cSmrg enable_dlopen=yes 17999bd41f2cSmrg else 18009bd41f2cSmrg enable_dlopen=no 18019bd41f2cSmrg fi 18029bd41f2cSmrg 18039bd41f2cSmrg case $lt_cv_dlopen in 18049bd41f2cSmrg dlopen) 18059bd41f2cSmrg save_CPPFLAGS="$CPPFLAGS" 18069bd41f2cSmrg test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 18079bd41f2cSmrg 18089bd41f2cSmrg save_LDFLAGS="$LDFLAGS" 18099bd41f2cSmrg wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 18109bd41f2cSmrg 18119bd41f2cSmrg save_LIBS="$LIBS" 18129bd41f2cSmrg LIBS="$lt_cv_dlopen_libs $LIBS" 18139bd41f2cSmrg 18149bd41f2cSmrg AC_CACHE_CHECK([whether a program can dlopen itself], 18159bd41f2cSmrg lt_cv_dlopen_self, [dnl 18169418810dSmrg _LT_TRY_DLOPEN_SELF( 18179bd41f2cSmrg lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, 18189bd41f2cSmrg lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) 18199bd41f2cSmrg ]) 18209bd41f2cSmrg 18219bd41f2cSmrg if test "x$lt_cv_dlopen_self" = xyes; then 18229bd41f2cSmrg wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 18239bd41f2cSmrg AC_CACHE_CHECK([whether a statically linked program can dlopen itself], 18249418810dSmrg lt_cv_dlopen_self_static, [dnl 18259418810dSmrg _LT_TRY_DLOPEN_SELF( 18269bd41f2cSmrg lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, 18279bd41f2cSmrg lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) 18289bd41f2cSmrg ]) 18299bd41f2cSmrg fi 18309bd41f2cSmrg 18319bd41f2cSmrg CPPFLAGS="$save_CPPFLAGS" 18329bd41f2cSmrg LDFLAGS="$save_LDFLAGS" 18339bd41f2cSmrg LIBS="$save_LIBS" 18349bd41f2cSmrg ;; 18359bd41f2cSmrg esac 18369bd41f2cSmrg 18379bd41f2cSmrg case $lt_cv_dlopen_self in 18389bd41f2cSmrg yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 18399bd41f2cSmrg *) enable_dlopen_self=unknown ;; 18409bd41f2cSmrg esac 18419bd41f2cSmrg 18429bd41f2cSmrg case $lt_cv_dlopen_self_static in 18439bd41f2cSmrg yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 18449bd41f2cSmrg *) enable_dlopen_self_static=unknown ;; 18459bd41f2cSmrg esac 18469bd41f2cSmrgfi 18479418810dSmrg_LT_DECL([dlopen_support], [enable_dlopen], [0], 18489418810dSmrg [Whether dlopen is supported]) 18499418810dSmrg_LT_DECL([dlopen_self], [enable_dlopen_self], [0], 18509418810dSmrg [Whether dlopen of programs is supported]) 18519418810dSmrg_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], 18529418810dSmrg [Whether dlopen of statically linked programs is supported]) 18539418810dSmrg])# LT_SYS_DLOPEN_SELF 18549bd41f2cSmrg 18559418810dSmrg# Old name: 18569418810dSmrgAU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) 18579418810dSmrgdnl aclocal-1.4 backwards compatibility: 18589418810dSmrgdnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) 18599bd41f2cSmrg 18609418810dSmrg 18619418810dSmrg# _LT_COMPILER_C_O([TAGNAME]) 18629418810dSmrg# --------------------------- 18639418810dSmrg# Check to see if options -c and -o are simultaneously supported by compiler. 18649418810dSmrg# This macro does not hard code the compiler like AC_PROG_CC_C_O. 18659418810dSmrgm4_defun([_LT_COMPILER_C_O], 18669418810dSmrg[m4_require([_LT_DECL_SED])dnl 18679418810dSmrgm4_require([_LT_FILEUTILS_DEFAULTS])dnl 18689418810dSmrgm4_require([_LT_TAG_COMPILER])dnl 18699bd41f2cSmrgAC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], 18709418810dSmrg [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], 18719418810dSmrg [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no 18729418810dSmrg $RM -r conftest 2>/dev/null 18739bd41f2cSmrg mkdir conftest 18749bd41f2cSmrg cd conftest 18759bd41f2cSmrg mkdir out 18769bd41f2cSmrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18779bd41f2cSmrg 18789bd41f2cSmrg lt_compiler_flag="-o out/conftest2.$ac_objext" 18799bd41f2cSmrg # Insert the option either (1) after the last *FLAGS variable, or 18809bd41f2cSmrg # (2) before a word containing "conftest.", or (3) at the end. 18819bd41f2cSmrg # Note that $ac_compile itself does not contain backslashes and begins 18829bd41f2cSmrg # with a dollar sign (not a hyphen), so the echo should work correctly. 18839bd41f2cSmrg lt_compile=`echo "$ac_compile" | $SED \ 18849bd41f2cSmrg -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 18859bd41f2cSmrg -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 18869bd41f2cSmrg -e 's:$: $lt_compiler_flag:'` 18879bd41f2cSmrg (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 18889bd41f2cSmrg (eval "$lt_compile" 2>out/conftest.err) 18899bd41f2cSmrg ac_status=$? 18909bd41f2cSmrg cat out/conftest.err >&AS_MESSAGE_LOG_FD 18919bd41f2cSmrg echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 18929bd41f2cSmrg if (exit $ac_status) && test -s out/conftest2.$ac_objext 18939bd41f2cSmrg then 18949bd41f2cSmrg # The compiler can only warn and ignore the option if not recognized 18959bd41f2cSmrg # So say no if there are warnings 18969418810dSmrg $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 18979bd41f2cSmrg $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 18989bd41f2cSmrg if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 18999418810dSmrg _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 19009bd41f2cSmrg fi 19019bd41f2cSmrg fi 19029bd41f2cSmrg chmod u+w . 2>&AS_MESSAGE_LOG_FD 19039418810dSmrg $RM conftest* 19049bd41f2cSmrg # SGI C++ compiler will create directory out/ii_files/ for 19059bd41f2cSmrg # template instantiation 19069418810dSmrg test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 19079418810dSmrg $RM out/* && rmdir out 19089bd41f2cSmrg cd .. 19099418810dSmrg $RM -r conftest 19109418810dSmrg $RM conftest* 19119bd41f2cSmrg]) 19129418810dSmrg_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], 19139418810dSmrg [Does compiler simultaneously support -c and -o options?]) 19149418810dSmrg])# _LT_COMPILER_C_O 19159bd41f2cSmrg 19169bd41f2cSmrg 19179418810dSmrg# _LT_COMPILER_FILE_LOCKS([TAGNAME]) 19189418810dSmrg# ---------------------------------- 19199bd41f2cSmrg# Check to see if we can do hard links to lock some files if needed 19209418810dSmrgm4_defun([_LT_COMPILER_FILE_LOCKS], 19219418810dSmrg[m4_require([_LT_ENABLE_LOCK])dnl 19229418810dSmrgm4_require([_LT_FILEUTILS_DEFAULTS])dnl 19239418810dSmrg_LT_COMPILER_C_O([$1]) 19249bd41f2cSmrg 19259bd41f2cSmrghard_links="nottested" 19269418810dSmrgif test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then 19279bd41f2cSmrg # do not overwrite the value of need_locks provided by the user 19289bd41f2cSmrg AC_MSG_CHECKING([if we can lock with hard links]) 19299bd41f2cSmrg hard_links=yes 19309418810dSmrg $RM conftest* 19319bd41f2cSmrg ln conftest.a conftest.b 2>/dev/null && hard_links=no 19329bd41f2cSmrg touch conftest.a 19339bd41f2cSmrg ln conftest.a conftest.b 2>&5 || hard_links=no 19349bd41f2cSmrg ln conftest.a conftest.b 2>/dev/null && hard_links=no 19359bd41f2cSmrg AC_MSG_RESULT([$hard_links]) 19369bd41f2cSmrg if test "$hard_links" = no; then 19379bd41f2cSmrg AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) 19389bd41f2cSmrg need_locks=warn 19399bd41f2cSmrg fi 19409bd41f2cSmrgelse 19419bd41f2cSmrg need_locks=no 19429bd41f2cSmrgfi 19439418810dSmrg_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) 19449418810dSmrg])# _LT_COMPILER_FILE_LOCKS 19459bd41f2cSmrg 19469bd41f2cSmrg 19479418810dSmrg# _LT_CHECK_OBJDIR 19489418810dSmrg# ---------------- 19499418810dSmrgm4_defun([_LT_CHECK_OBJDIR], 19509bd41f2cSmrg[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], 19519bd41f2cSmrg[rm -f .libs 2>/dev/null 19529bd41f2cSmrgmkdir .libs 2>/dev/null 19539bd41f2cSmrgif test -d .libs; then 19549bd41f2cSmrg lt_cv_objdir=.libs 19559bd41f2cSmrgelse 19569bd41f2cSmrg # MS-DOS does not allow filenames that begin with a dot. 19579bd41f2cSmrg lt_cv_objdir=_libs 19589bd41f2cSmrgfi 19599bd41f2cSmrgrmdir .libs 2>/dev/null]) 19609bd41f2cSmrgobjdir=$lt_cv_objdir 19619418810dSmrg_LT_DECL([], [objdir], [0], 19629418810dSmrg [The name of the directory that contains temporary libtool files])dnl 19639418810dSmrgm4_pattern_allow([LT_OBJDIR])dnl 19649418810dSmrgAC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/", 19659418810dSmrg [Define to the sub-directory in which libtool stores uninstalled libraries.]) 19669418810dSmrg])# _LT_CHECK_OBJDIR 19679bd41f2cSmrg 19689bd41f2cSmrg 19699418810dSmrg# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) 19709418810dSmrg# -------------------------------------- 19719bd41f2cSmrg# Check hardcoding attributes. 19729418810dSmrgm4_defun([_LT_LINKER_HARDCODE_LIBPATH], 19739bd41f2cSmrg[AC_MSG_CHECKING([how to hardcode library paths into programs]) 19749418810dSmrg_LT_TAGVAR(hardcode_action, $1)= 19759418810dSmrgif test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || 19769418810dSmrg test -n "$_LT_TAGVAR(runpath_var, $1)" || 19779418810dSmrg test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then 19789bd41f2cSmrg 19799418810dSmrg # We can hardcode non-existent directories. 19809418810dSmrg if test "$_LT_TAGVAR(hardcode_direct, $1)" != no && 19819bd41f2cSmrg # If the only mechanism to avoid hardcoding is shlibpath_var, we 19829bd41f2cSmrg # have to relink, otherwise we might link with an installed library 19839bd41f2cSmrg # when we should be linking with a yet-to-be-installed one 19849418810dSmrg ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no && 19859418810dSmrg test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then 19869bd41f2cSmrg # Linking always hardcodes the temporary library directory. 19879418810dSmrg _LT_TAGVAR(hardcode_action, $1)=relink 19889bd41f2cSmrg else 19899bd41f2cSmrg # We can link without hardcoding, and we can hardcode nonexisting dirs. 19909418810dSmrg _LT_TAGVAR(hardcode_action, $1)=immediate 19919bd41f2cSmrg fi 19929bd41f2cSmrgelse 19939bd41f2cSmrg # We cannot hardcode anything, or else we can only hardcode existing 19949bd41f2cSmrg # directories. 19959418810dSmrg _LT_TAGVAR(hardcode_action, $1)=unsupported 19969bd41f2cSmrgfi 19979418810dSmrgAC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) 19989bd41f2cSmrg 19999418810dSmrgif test "$_LT_TAGVAR(hardcode_action, $1)" = relink || 20009418810dSmrg test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then 20019bd41f2cSmrg # Fast installation is not supported 20029bd41f2cSmrg enable_fast_install=no 20039bd41f2cSmrgelif test "$shlibpath_overrides_runpath" = yes || 20049bd41f2cSmrg test "$enable_shared" = no; then 20059bd41f2cSmrg # Fast installation is not necessary 20069bd41f2cSmrg enable_fast_install=needless 20079bd41f2cSmrgfi 20089418810dSmrg_LT_TAGDECL([], [hardcode_action], [0], 20099418810dSmrg [How to hardcode a shared library path into an executable]) 20109418810dSmrg])# _LT_LINKER_HARDCODE_LIBPATH 20119bd41f2cSmrg 20129bd41f2cSmrg 20139418810dSmrg# _LT_CMD_STRIPLIB 20149418810dSmrg# ---------------- 20159418810dSmrgm4_defun([_LT_CMD_STRIPLIB], 20169418810dSmrg[m4_require([_LT_DECL_EGREP]) 20179418810dSmrgstriplib= 20189bd41f2cSmrgold_striplib= 20199bd41f2cSmrgAC_MSG_CHECKING([whether stripping libraries is possible]) 20209418810dSmrgif test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 20219bd41f2cSmrg test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 20229bd41f2cSmrg test -z "$striplib" && striplib="$STRIP --strip-unneeded" 20239bd41f2cSmrg AC_MSG_RESULT([yes]) 20249bd41f2cSmrgelse 20259bd41f2cSmrg# FIXME - insert some real tests, host_os isn't really good enough 20269bd41f2cSmrg case $host_os in 20279418810dSmrg darwin*) 20289418810dSmrg if test -n "$STRIP" ; then 20299418810dSmrg striplib="$STRIP -x" 20309418810dSmrg old_striplib="$STRIP -S" 20319418810dSmrg AC_MSG_RESULT([yes]) 20329418810dSmrg else 20339418810dSmrg AC_MSG_RESULT([no]) 20349418810dSmrg fi 20359418810dSmrg ;; 20369418810dSmrg *) 20379418810dSmrg AC_MSG_RESULT([no]) 20389bd41f2cSmrg ;; 20399bd41f2cSmrg esac 20409bd41f2cSmrgfi 20419418810dSmrg_LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) 20429418810dSmrg_LT_DECL([], [striplib], [1]) 20439418810dSmrg])# _LT_CMD_STRIPLIB 20449bd41f2cSmrg 20459bd41f2cSmrg 20469418810dSmrg# _LT_SYS_DYNAMIC_LINKER([TAG]) 20479bd41f2cSmrg# ----------------------------- 20489bd41f2cSmrg# PORTME Fill in your ld.so characteristics 20499418810dSmrgm4_defun([_LT_SYS_DYNAMIC_LINKER], 20509418810dSmrg[AC_REQUIRE([AC_CANONICAL_HOST])dnl 20519418810dSmrgm4_require([_LT_DECL_EGREP])dnl 20529418810dSmrgm4_require([_LT_FILEUTILS_DEFAULTS])dnl 20539418810dSmrgm4_require([_LT_DECL_OBJDUMP])dnl 20549418810dSmrgm4_require([_LT_DECL_SED])dnl 20559bd41f2cSmrgAC_MSG_CHECKING([dynamic linker characteristics]) 20569418810dSmrgm4_if([$1], 20579418810dSmrg [], [ 20589bd41f2cSmrgif test "$GCC" = yes; then 20599bd41f2cSmrg case $host_os in 20609bd41f2cSmrg darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 20619bd41f2cSmrg *) lt_awk_arg="/^libraries:/" ;; 20629bd41f2cSmrg esac 20639bd41f2cSmrg lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 20649418810dSmrg if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 20659bd41f2cSmrg # if the path contains ";" then we assume it to be the separator 20669bd41f2cSmrg # otherwise default to the standard path separator (i.e. ":") - it is 20679bd41f2cSmrg # assumed that no part of a normal pathname contains ";" but that should 20689bd41f2cSmrg # okay in the real world where ";" in dirpaths is itself problematic. 20699418810dSmrg lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 20709bd41f2cSmrg else 20719418810dSmrg lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 20729bd41f2cSmrg fi 20739bd41f2cSmrg # Ok, now we have the path, separated by spaces, we can step through it 20749bd41f2cSmrg # and add multilib dir if necessary. 20759bd41f2cSmrg lt_tmp_lt_search_path_spec= 20769bd41f2cSmrg lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 20779bd41f2cSmrg for lt_sys_path in $lt_search_path_spec; do 20789bd41f2cSmrg if test -d "$lt_sys_path/$lt_multi_os_dir"; then 20799bd41f2cSmrg lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 20809bd41f2cSmrg else 20819bd41f2cSmrg test -d "$lt_sys_path" && \ 20829bd41f2cSmrg lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 20839bd41f2cSmrg fi 20849bd41f2cSmrg done 20859418810dSmrg lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 20869bd41f2cSmrgBEGIN {RS=" "; FS="/|\n";} { 20879bd41f2cSmrg lt_foo=""; 20889bd41f2cSmrg lt_count=0; 20899bd41f2cSmrg for (lt_i = NF; lt_i > 0; lt_i--) { 20909bd41f2cSmrg if ($lt_i != "" && $lt_i != ".") { 20919bd41f2cSmrg if ($lt_i == "..") { 20929bd41f2cSmrg lt_count++; 20939bd41f2cSmrg } else { 20949bd41f2cSmrg if (lt_count == 0) { 20959bd41f2cSmrg lt_foo="/" $lt_i lt_foo; 20969bd41f2cSmrg } else { 20979bd41f2cSmrg lt_count--; 20989bd41f2cSmrg } 20999bd41f2cSmrg } 21009bd41f2cSmrg } 21019bd41f2cSmrg } 21029bd41f2cSmrg if (lt_foo != "") { lt_freq[[lt_foo]]++; } 21039bd41f2cSmrg if (lt_freq[[lt_foo]] == 1) { print lt_foo; } 21049bd41f2cSmrg}'` 21059418810dSmrg sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 21069bd41f2cSmrgelse 21079bd41f2cSmrg sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 21089bd41f2cSmrgfi]) 21099418810dSmrglibrary_names_spec= 21109418810dSmrglibname_spec='lib$name' 21119418810dSmrgsoname_spec= 21129418810dSmrgshrext_cmds=".so" 21139418810dSmrgpostinstall_cmds= 21149418810dSmrgpostuninstall_cmds= 21159418810dSmrgfinish_cmds= 21169418810dSmrgfinish_eval= 21179418810dSmrgshlibpath_var= 21189418810dSmrgshlibpath_overrides_runpath=unknown 21199418810dSmrgversion_type=none 21209418810dSmrgdynamic_linker="$host_os ld.so" 21219418810dSmrgsys_lib_dlsearch_path_spec="/lib /usr/lib" 21229bd41f2cSmrgneed_lib_prefix=unknown 21239bd41f2cSmrghardcode_into_libs=no 21249bd41f2cSmrg 21259bd41f2cSmrg# when you set need_version to no, make sure it does not cause -set_version 21269bd41f2cSmrg# flags to be left without arguments 21279bd41f2cSmrgneed_version=unknown 21289bd41f2cSmrg 21299bd41f2cSmrgcase $host_os in 21309bd41f2cSmrgaix3*) 21319bd41f2cSmrg version_type=linux 21329bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 21339bd41f2cSmrg shlibpath_var=LIBPATH 21349bd41f2cSmrg 21359bd41f2cSmrg # AIX 3 has no versioning support, so we append a major version to the name. 21369bd41f2cSmrg soname_spec='${libname}${release}${shared_ext}$major' 21379bd41f2cSmrg ;; 21389bd41f2cSmrg 2139d075918cSmrgaix[[4-9]]*) 21409bd41f2cSmrg version_type=linux 21419bd41f2cSmrg need_lib_prefix=no 21429bd41f2cSmrg need_version=no 21439bd41f2cSmrg hardcode_into_libs=yes 21449bd41f2cSmrg if test "$host_cpu" = ia64; then 21459bd41f2cSmrg # AIX 5 supports IA64 21469bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 21479bd41f2cSmrg shlibpath_var=LD_LIBRARY_PATH 21489bd41f2cSmrg else 21499bd41f2cSmrg # With GCC up to 2.95.x, collect2 would create an import file 21509bd41f2cSmrg # for dependence libraries. The import file would start with 21519bd41f2cSmrg # the line `#! .'. This would cause the generated library to 21529bd41f2cSmrg # depend on `.', always an invalid library. This was fixed in 21539bd41f2cSmrg # development snapshots of GCC prior to 3.0. 21549bd41f2cSmrg case $host_os in 21559bd41f2cSmrg aix4 | aix4.[[01]] | aix4.[[01]].*) 21569bd41f2cSmrg if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 21579bd41f2cSmrg echo ' yes ' 21589418810dSmrg echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 21599bd41f2cSmrg : 21609bd41f2cSmrg else 21619bd41f2cSmrg can_build_shared=no 21629bd41f2cSmrg fi 21639bd41f2cSmrg ;; 21649bd41f2cSmrg esac 21659bd41f2cSmrg # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 21669bd41f2cSmrg # soname into executable. Probably we can add versioning support to 21679bd41f2cSmrg # collect2, so additional links can be useful in future. 21689bd41f2cSmrg if test "$aix_use_runtimelinking" = yes; then 21699bd41f2cSmrg # If using run time linking (on AIX 4.2 or later) use lib<name>.so 21709bd41f2cSmrg # instead of lib<name>.a to let people know that these are not 21719bd41f2cSmrg # typical AIX shared libraries. 21729bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21739bd41f2cSmrg else 21749bd41f2cSmrg # We preserve .a as extension for shared libraries through AIX4.2 21759bd41f2cSmrg # and later when we are not doing run time linking. 21769bd41f2cSmrg library_names_spec='${libname}${release}.a $libname.a' 21779bd41f2cSmrg soname_spec='${libname}${release}${shared_ext}$major' 21789bd41f2cSmrg fi 21799bd41f2cSmrg shlibpath_var=LIBPATH 21809bd41f2cSmrg fi 21819bd41f2cSmrg ;; 21829bd41f2cSmrg 21839bd41f2cSmrgamigaos*) 21849418810dSmrg case $host_cpu in 21859418810dSmrg powerpc) 21869418810dSmrg # Since July 2007 AmigaOS4 officially supports .so libraries. 21879418810dSmrg # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 21889418810dSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21899418810dSmrg ;; 21909418810dSmrg m68k) 21919418810dSmrg library_names_spec='$libname.ixlibrary $libname.a' 21929418810dSmrg # Create ${libname}_ixlibrary.a entries in /sys/libs. 21939418810dSmrg 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' 21949418810dSmrg ;; 21959418810dSmrg esac 21969bd41f2cSmrg ;; 21979bd41f2cSmrg 21989bd41f2cSmrgbeos*) 21999bd41f2cSmrg library_names_spec='${libname}${shared_ext}' 22009bd41f2cSmrg dynamic_linker="$host_os ld.so" 22019bd41f2cSmrg shlibpath_var=LIBRARY_PATH 22029bd41f2cSmrg ;; 22039bd41f2cSmrg 22049bd41f2cSmrgbsdi[[45]]*) 22059bd41f2cSmrg version_type=linux 22069bd41f2cSmrg need_version=no 22079bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22089bd41f2cSmrg soname_spec='${libname}${release}${shared_ext}$major' 22099bd41f2cSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 22109bd41f2cSmrg shlibpath_var=LD_LIBRARY_PATH 22119bd41f2cSmrg sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 22129bd41f2cSmrg sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 22139bd41f2cSmrg # the default ld.so.conf also contains /usr/contrib/lib and 22149bd41f2cSmrg # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 22159bd41f2cSmrg # libtool to hard-code these into programs 22169bd41f2cSmrg ;; 22179bd41f2cSmrg 22189418810dSmrgcygwin* | mingw* | pw32* | cegcc*) 22199bd41f2cSmrg version_type=windows 22209bd41f2cSmrg shrext_cmds=".dll" 22219bd41f2cSmrg need_version=no 22229bd41f2cSmrg need_lib_prefix=no 22239bd41f2cSmrg 22249bd41f2cSmrg case $GCC,$host_os in 22259418810dSmrg yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 22269bd41f2cSmrg library_names_spec='$libname.dll.a' 22279bd41f2cSmrg # DLL is installed to $(libdir)/../bin by postinstall_cmds 22289bd41f2cSmrg postinstall_cmds='base_file=`basename \${file}`~ 22299418810dSmrg dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 22309bd41f2cSmrg dldir=$destdir/`dirname \$dlpath`~ 22319bd41f2cSmrg test -d \$dldir || mkdir -p \$dldir~ 22329bd41f2cSmrg $install_prog $dir/$dlname \$dldir/$dlname~ 22339418810dSmrg chmod a+x \$dldir/$dlname~ 22349418810dSmrg if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 22359418810dSmrg eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 22369418810dSmrg fi' 22379bd41f2cSmrg postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 22389bd41f2cSmrg dlpath=$dir/\$dldll~ 22399418810dSmrg $RM \$dlpath' 22409bd41f2cSmrg shlibpath_overrides_runpath=yes 22419bd41f2cSmrg 22429bd41f2cSmrg case $host_os in 22439bd41f2cSmrg cygwin*) 22449bd41f2cSmrg # Cygwin DLLs use 'cyg' prefix rather than 'lib' 22459bd41f2cSmrg soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 22469bd41f2cSmrg sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 22479bd41f2cSmrg ;; 22489418810dSmrg mingw* | cegcc*) 22499bd41f2cSmrg # MinGW DLLs use traditional 'lib' prefix 22509bd41f2cSmrg soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 22519418810dSmrg sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 22529418810dSmrg if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then 22539bd41f2cSmrg # It is most probably a Windows format PATH printed by 22549bd41f2cSmrg # mingw gcc, but we are running on Cygwin. Gcc prints its search 22559bd41f2cSmrg # path with ; separators, and with drive letters. We can handle the 22569bd41f2cSmrg # drive letters (cygwin fileutils understands them), so leave them, 22579bd41f2cSmrg # especially as we might pass files found there to a mingw objdump, 22589bd41f2cSmrg # which wouldn't understand a cygwinified path. Ahh. 22599418810dSmrg sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 22609bd41f2cSmrg else 22619418810dSmrg sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 22629bd41f2cSmrg fi 22639bd41f2cSmrg ;; 22649bd41f2cSmrg pw32*) 22659bd41f2cSmrg # pw32 DLLs use 'pw' prefix rather than 'lib' 22669bd41f2cSmrg library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 22679bd41f2cSmrg ;; 22689bd41f2cSmrg esac 22699bd41f2cSmrg ;; 22709bd41f2cSmrg 22719bd41f2cSmrg *) 22729bd41f2cSmrg library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' 22739bd41f2cSmrg ;; 22749bd41f2cSmrg esac 22759bd41f2cSmrg dynamic_linker='Win32 ld.exe' 22769bd41f2cSmrg # FIXME: first we should search . and the directory the executable is in 22779bd41f2cSmrg shlibpath_var=PATH 22789bd41f2cSmrg ;; 22799bd41f2cSmrg 22809bd41f2cSmrgdarwin* | rhapsody*) 22819bd41f2cSmrg dynamic_linker="$host_os dyld" 22829bd41f2cSmrg version_type=darwin 22839bd41f2cSmrg need_lib_prefix=no 22849bd41f2cSmrg need_version=no 22859418810dSmrg library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 22869bd41f2cSmrg soname_spec='${libname}${release}${major}$shared_ext' 22879bd41f2cSmrg shlibpath_overrides_runpath=yes 22889bd41f2cSmrg shlibpath_var=DYLD_LIBRARY_PATH 22899bd41f2cSmrg shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 22909418810dSmrgm4_if([$1], [],[ 22919418810dSmrg sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 22929bd41f2cSmrg sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 22939bd41f2cSmrg ;; 22949bd41f2cSmrg 22959bd41f2cSmrgdgux*) 22969bd41f2cSmrg version_type=linux 22979bd41f2cSmrg need_lib_prefix=no 22989bd41f2cSmrg need_version=no 22999bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 23009bd41f2cSmrg soname_spec='${libname}${release}${shared_ext}$major' 23019bd41f2cSmrg shlibpath_var=LD_LIBRARY_PATH 23029bd41f2cSmrg ;; 23039bd41f2cSmrg 23049bd41f2cSmrgfreebsd1*) 23059bd41f2cSmrg dynamic_linker=no 23069bd41f2cSmrg ;; 23079bd41f2cSmrg 23089bd41f2cSmrgfreebsd* | dragonfly*) 23099bd41f2cSmrg # DragonFly does not have aout. When/if they implement a new 23109bd41f2cSmrg # versioning mechanism, adjust this. 23119bd41f2cSmrg if test -x /usr/bin/objformat; then 23129bd41f2cSmrg objformat=`/usr/bin/objformat` 23139bd41f2cSmrg else 23149bd41f2cSmrg case $host_os in 23159bd41f2cSmrg freebsd[[123]]*) objformat=aout ;; 23169bd41f2cSmrg *) objformat=elf ;; 23179bd41f2cSmrg esac 23189bd41f2cSmrg fi 23199bd41f2cSmrg version_type=freebsd-$objformat 23209bd41f2cSmrg case $version_type in 23219bd41f2cSmrg freebsd-elf*) 23229bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 23239bd41f2cSmrg need_version=no 23249bd41f2cSmrg need_lib_prefix=no 23259bd41f2cSmrg ;; 23269bd41f2cSmrg freebsd-*) 23279bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 23289bd41f2cSmrg need_version=yes 23299bd41f2cSmrg ;; 23309bd41f2cSmrg esac 23319bd41f2cSmrg shlibpath_var=LD_LIBRARY_PATH 23329bd41f2cSmrg case $host_os in 23339bd41f2cSmrg freebsd2*) 23349bd41f2cSmrg shlibpath_overrides_runpath=yes 23359bd41f2cSmrg ;; 23369bd41f2cSmrg freebsd3.[[01]]* | freebsdelf3.[[01]]*) 23379bd41f2cSmrg shlibpath_overrides_runpath=yes 23389bd41f2cSmrg hardcode_into_libs=yes 23399bd41f2cSmrg ;; 23409bd41f2cSmrg freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ 23419bd41f2cSmrg freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) 23429bd41f2cSmrg shlibpath_overrides_runpath=no 23439bd41f2cSmrg hardcode_into_libs=yes 23449bd41f2cSmrg ;; 23459bd41f2cSmrg *) # from 4.6 on, and DragonFly 23469bd41f2cSmrg shlibpath_overrides_runpath=yes 23479bd41f2cSmrg hardcode_into_libs=yes 23489bd41f2cSmrg ;; 23499bd41f2cSmrg esac 23509bd41f2cSmrg ;; 23519bd41f2cSmrg 23529bd41f2cSmrggnu*) 23539bd41f2cSmrg version_type=linux 23549bd41f2cSmrg need_lib_prefix=no 23559bd41f2cSmrg need_version=no 23569bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 23579bd41f2cSmrg soname_spec='${libname}${release}${shared_ext}$major' 23589bd41f2cSmrg shlibpath_var=LD_LIBRARY_PATH 23599bd41f2cSmrg hardcode_into_libs=yes 23609bd41f2cSmrg ;; 23619bd41f2cSmrg 23629bd41f2cSmrghpux9* | hpux10* | hpux11*) 23639bd41f2cSmrg # Give a soname corresponding to the major version so that dld.sl refuses to 23649bd41f2cSmrg # link against other versions. 23659bd41f2cSmrg version_type=sunos 23669bd41f2cSmrg need_lib_prefix=no 23679bd41f2cSmrg need_version=no 23689bd41f2cSmrg case $host_cpu in 23699bd41f2cSmrg ia64*) 23709bd41f2cSmrg shrext_cmds='.so' 23719bd41f2cSmrg hardcode_into_libs=yes 23729bd41f2cSmrg dynamic_linker="$host_os dld.so" 23739bd41f2cSmrg shlibpath_var=LD_LIBRARY_PATH 23749bd41f2cSmrg shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 23759bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 23769bd41f2cSmrg soname_spec='${libname}${release}${shared_ext}$major' 23779bd41f2cSmrg if test "X$HPUX_IA64_MODE" = X32; then 23789bd41f2cSmrg sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 23799bd41f2cSmrg else 23809bd41f2cSmrg sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 23819bd41f2cSmrg fi 23829bd41f2cSmrg sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 23839bd41f2cSmrg ;; 23849418810dSmrg hppa*64*) 23859418810dSmrg shrext_cmds='.sl' 23869418810dSmrg hardcode_into_libs=yes 23879418810dSmrg dynamic_linker="$host_os dld.sl" 23889418810dSmrg shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 23899418810dSmrg shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 23909418810dSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 23919418810dSmrg soname_spec='${libname}${release}${shared_ext}$major' 23929418810dSmrg sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 23939418810dSmrg sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 23949418810dSmrg ;; 23959418810dSmrg *) 23969bd41f2cSmrg shrext_cmds='.sl' 23979bd41f2cSmrg dynamic_linker="$host_os dld.sl" 23989bd41f2cSmrg shlibpath_var=SHLIB_PATH 23999bd41f2cSmrg shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 24009bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 24019bd41f2cSmrg soname_spec='${libname}${release}${shared_ext}$major' 24029bd41f2cSmrg ;; 24039bd41f2cSmrg esac 24049bd41f2cSmrg # HP-UX runs *really* slowly unless shared libraries are mode 555. 24059bd41f2cSmrg postinstall_cmds='chmod 555 $lib' 24069bd41f2cSmrg ;; 24079bd41f2cSmrg 24089bd41f2cSmrginterix[[3-9]]*) 24099bd41f2cSmrg version_type=linux 24109bd41f2cSmrg need_lib_prefix=no 24119bd41f2cSmrg need_version=no 24129bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 24139bd41f2cSmrg soname_spec='${libname}${release}${shared_ext}$major' 24149bd41f2cSmrg dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 24159bd41f2cSmrg shlibpath_var=LD_LIBRARY_PATH 24169bd41f2cSmrg shlibpath_overrides_runpath=no 24179bd41f2cSmrg hardcode_into_libs=yes 24189bd41f2cSmrg ;; 24199bd41f2cSmrg 24209bd41f2cSmrgirix5* | irix6* | nonstopux*) 24219bd41f2cSmrg case $host_os in 24229bd41f2cSmrg nonstopux*) version_type=nonstopux ;; 24239bd41f2cSmrg *) 24249bd41f2cSmrg if test "$lt_cv_prog_gnu_ld" = yes; then 24259bd41f2cSmrg version_type=linux 24269bd41f2cSmrg else 24279bd41f2cSmrg version_type=irix 24289bd41f2cSmrg fi ;; 24299bd41f2cSmrg esac 24309bd41f2cSmrg need_lib_prefix=no 24319bd41f2cSmrg need_version=no 24329bd41f2cSmrg soname_spec='${libname}${release}${shared_ext}$major' 24339bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 24349bd41f2cSmrg case $host_os in 24359bd41f2cSmrg irix5* | nonstopux*) 24369bd41f2cSmrg libsuff= shlibsuff= 24379bd41f2cSmrg ;; 24389bd41f2cSmrg *) 24399bd41f2cSmrg case $LD in # libtool.m4 will add one of these switches to LD 24409bd41f2cSmrg *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 24419bd41f2cSmrg libsuff= shlibsuff= libmagic=32-bit;; 24429bd41f2cSmrg *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 24439bd41f2cSmrg libsuff=32 shlibsuff=N32 libmagic=N32;; 24449bd41f2cSmrg *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 24459bd41f2cSmrg libsuff=64 shlibsuff=64 libmagic=64-bit;; 24469bd41f2cSmrg *) libsuff= shlibsuff= libmagic=never-match;; 24479bd41f2cSmrg esac 24489bd41f2cSmrg ;; 24499bd41f2cSmrg esac 24509bd41f2cSmrg shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 24519bd41f2cSmrg shlibpath_overrides_runpath=no 24529bd41f2cSmrg sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 24539bd41f2cSmrg sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 24549bd41f2cSmrg hardcode_into_libs=yes 24559bd41f2cSmrg ;; 24569bd41f2cSmrg 24579bd41f2cSmrg# No shared lib support for Linux oldld, aout, or coff. 24589bd41f2cSmrglinux*oldld* | linux*aout* | linux*coff*) 24599bd41f2cSmrg dynamic_linker=no 24609bd41f2cSmrg ;; 24619bd41f2cSmrg 24629bd41f2cSmrg# This must be Linux ELF. 24639bd41f2cSmrglinux* | k*bsd*-gnu) 24649bd41f2cSmrg version_type=linux 24659bd41f2cSmrg need_lib_prefix=no 24669bd41f2cSmrg need_version=no 24679bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 24689bd41f2cSmrg soname_spec='${libname}${release}${shared_ext}$major' 24699bd41f2cSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 24709bd41f2cSmrg shlibpath_var=LD_LIBRARY_PATH 24719bd41f2cSmrg shlibpath_overrides_runpath=no 24729418810dSmrg # Some binutils ld are patched to set DT_RUNPATH 24739418810dSmrg save_LDFLAGS=$LDFLAGS 24749418810dSmrg save_libdir=$libdir 24759418810dSmrg eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ 24769418810dSmrg LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" 24779418810dSmrg AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], 24789418810dSmrg [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], 24799418810dSmrg [shlibpath_overrides_runpath=yes])]) 24809418810dSmrg LDFLAGS=$save_LDFLAGS 24819418810dSmrg libdir=$save_libdir 24829418810dSmrg 24839bd41f2cSmrg # This implies no fast_install, which is unacceptable. 24849bd41f2cSmrg # Some rework will be needed to allow for fast_install 24859bd41f2cSmrg # before this can be enabled. 24869bd41f2cSmrg hardcode_into_libs=yes 24879bd41f2cSmrg 2488c4f7863aSmrg # find out which ABI we are using 2489c4f7863aSmrg libsuff= 2490c4f7863aSmrg case "$host_cpu" in 2491c4f7863aSmrg x86_64*|s390x*|powerpc64*) 2492c4f7863aSmrg echo '[#]line __oline__ "configure"' > conftest.$ac_ext 2493c4f7863aSmrg if AC_TRY_EVAL(ac_compile); then 2494c4f7863aSmrg case `/usr/bin/file conftest.$ac_objext` in 2495c4f7863aSmrg *64-bit*) 2496c4f7863aSmrg libsuff=64 2497c4f7863aSmrg ;; 2498c4f7863aSmrg esac 2499c4f7863aSmrg fi 2500c4f7863aSmrg rm -rf conftest* 2501c4f7863aSmrg ;; 2502c4f7863aSmrg esac 2503c4f7863aSmrg 2504c4f7863aSmrg sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" 25059418810dSmrg 25069bd41f2cSmrg # Append ld.so.conf contents to the search path 25079bd41f2cSmrg if test -f /etc/ld.so.conf; then 25089418810dSmrg 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' ' '` 25099418810dSmrg sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 25109bd41f2cSmrg fi 25119bd41f2cSmrg 25129bd41f2cSmrg # We used to test for /lib/ld.so.1 and disable shared libraries on 25139bd41f2cSmrg # powerpc, because MkLinux only supported shared libraries with the 25149bd41f2cSmrg # GNU dynamic linker. Since this was broken with cross compilers, 25159bd41f2cSmrg # most powerpc-linux boxes support dynamic linking these days and 25169bd41f2cSmrg # people can always --disable-shared, the test was removed, and we 25179bd41f2cSmrg # assume the GNU/Linux dynamic linker is in use. 25189bd41f2cSmrg dynamic_linker='GNU/Linux ld.so' 25199bd41f2cSmrg ;; 25209bd41f2cSmrg 25219bd41f2cSmrgnetbsd*) 25229bd41f2cSmrg version_type=sunos 25239bd41f2cSmrg need_lib_prefix=no 25249bd41f2cSmrg need_version=no 25259418810dSmrg if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 25269bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 25279bd41f2cSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 25289bd41f2cSmrg dynamic_linker='NetBSD (a.out) ld.so' 25299bd41f2cSmrg else 25309bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 25319bd41f2cSmrg soname_spec='${libname}${release}${shared_ext}$major' 25329bd41f2cSmrg dynamic_linker='NetBSD ld.elf_so' 25339bd41f2cSmrg fi 25349bd41f2cSmrg shlibpath_var=LD_LIBRARY_PATH 25359bd41f2cSmrg shlibpath_overrides_runpath=yes 25369bd41f2cSmrg hardcode_into_libs=yes 25379bd41f2cSmrg ;; 25389bd41f2cSmrg 25399bd41f2cSmrgnewsos6) 25409bd41f2cSmrg version_type=linux 25419bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 25429bd41f2cSmrg shlibpath_var=LD_LIBRARY_PATH 25439bd41f2cSmrg shlibpath_overrides_runpath=yes 25449bd41f2cSmrg ;; 25459bd41f2cSmrg 25469418810dSmrg*nto* | *qnx*) 25479418810dSmrg version_type=qnx 25489bd41f2cSmrg need_lib_prefix=no 25499bd41f2cSmrg need_version=no 25509bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 25519bd41f2cSmrg soname_spec='${libname}${release}${shared_ext}$major' 25529bd41f2cSmrg shlibpath_var=LD_LIBRARY_PATH 25539418810dSmrg shlibpath_overrides_runpath=no 25549418810dSmrg hardcode_into_libs=yes 25559418810dSmrg dynamic_linker='ldqnx.so' 25569bd41f2cSmrg ;; 25579bd41f2cSmrg 25589bd41f2cSmrgopenbsd*) 25599bd41f2cSmrg version_type=sunos 25609bd41f2cSmrg sys_lib_dlsearch_path_spec="/usr/lib" 25619bd41f2cSmrg need_lib_prefix=no 25629bd41f2cSmrg # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 25639bd41f2cSmrg case $host_os in 25649418810dSmrg openbsd3.3 | openbsd3.3.*) need_version=yes ;; 25659418810dSmrg *) need_version=no ;; 25669bd41f2cSmrg esac 25679bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 25689bd41f2cSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 25699bd41f2cSmrg shlibpath_var=LD_LIBRARY_PATH 25709418810dSmrg if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 25719bd41f2cSmrg case $host_os in 25729bd41f2cSmrg openbsd2.[[89]] | openbsd2.[[89]].*) 25739bd41f2cSmrg shlibpath_overrides_runpath=no 25749bd41f2cSmrg ;; 25759bd41f2cSmrg *) 25769bd41f2cSmrg shlibpath_overrides_runpath=yes 25779bd41f2cSmrg ;; 25789bd41f2cSmrg esac 25799bd41f2cSmrg else 25809bd41f2cSmrg shlibpath_overrides_runpath=yes 25819bd41f2cSmrg fi 25829bd41f2cSmrg ;; 25839bd41f2cSmrg 25849bd41f2cSmrgos2*) 25859bd41f2cSmrg libname_spec='$name' 25869bd41f2cSmrg shrext_cmds=".dll" 25879bd41f2cSmrg need_lib_prefix=no 25889bd41f2cSmrg library_names_spec='$libname${shared_ext} $libname.a' 25899bd41f2cSmrg dynamic_linker='OS/2 ld.exe' 25909bd41f2cSmrg shlibpath_var=LIBPATH 25919bd41f2cSmrg ;; 25929bd41f2cSmrg 25939bd41f2cSmrgosf3* | osf4* | osf5*) 25949bd41f2cSmrg version_type=osf 25959bd41f2cSmrg need_lib_prefix=no 25969bd41f2cSmrg need_version=no 25979bd41f2cSmrg soname_spec='${libname}${release}${shared_ext}$major' 25989bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 25999bd41f2cSmrg shlibpath_var=LD_LIBRARY_PATH 26009bd41f2cSmrg sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 26019bd41f2cSmrg sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 26029bd41f2cSmrg ;; 26039bd41f2cSmrg 26049bd41f2cSmrgrdos*) 26059bd41f2cSmrg dynamic_linker=no 26069bd41f2cSmrg ;; 26079bd41f2cSmrg 26089bd41f2cSmrgsolaris*) 26099bd41f2cSmrg version_type=linux 26109bd41f2cSmrg need_lib_prefix=no 26119bd41f2cSmrg need_version=no 26129bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 26139bd41f2cSmrg soname_spec='${libname}${release}${shared_ext}$major' 26149bd41f2cSmrg shlibpath_var=LD_LIBRARY_PATH 26159bd41f2cSmrg shlibpath_overrides_runpath=yes 26169bd41f2cSmrg hardcode_into_libs=yes 26179bd41f2cSmrg # ldd complains unless libraries are executable 26189bd41f2cSmrg postinstall_cmds='chmod +x $lib' 26199bd41f2cSmrg ;; 26209bd41f2cSmrg 26219bd41f2cSmrgsunos4*) 26229bd41f2cSmrg version_type=sunos 26239bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 26249bd41f2cSmrg finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 26259bd41f2cSmrg shlibpath_var=LD_LIBRARY_PATH 26269bd41f2cSmrg shlibpath_overrides_runpath=yes 26279bd41f2cSmrg if test "$with_gnu_ld" = yes; then 26289bd41f2cSmrg need_lib_prefix=no 26299bd41f2cSmrg fi 26309bd41f2cSmrg need_version=yes 26319bd41f2cSmrg ;; 26329bd41f2cSmrg 26339bd41f2cSmrgsysv4 | sysv4.3*) 26349bd41f2cSmrg version_type=linux 26359bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 26369bd41f2cSmrg soname_spec='${libname}${release}${shared_ext}$major' 26379bd41f2cSmrg shlibpath_var=LD_LIBRARY_PATH 26389bd41f2cSmrg case $host_vendor in 26399bd41f2cSmrg sni) 26409bd41f2cSmrg shlibpath_overrides_runpath=no 26419bd41f2cSmrg need_lib_prefix=no 26429bd41f2cSmrg runpath_var=LD_RUN_PATH 26439bd41f2cSmrg ;; 26449bd41f2cSmrg siemens) 26459bd41f2cSmrg need_lib_prefix=no 26469bd41f2cSmrg ;; 26479bd41f2cSmrg motorola) 26489bd41f2cSmrg need_lib_prefix=no 26499bd41f2cSmrg need_version=no 26509bd41f2cSmrg shlibpath_overrides_runpath=no 26519bd41f2cSmrg sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 26529bd41f2cSmrg ;; 26539bd41f2cSmrg esac 26549bd41f2cSmrg ;; 26559bd41f2cSmrg 26569bd41f2cSmrgsysv4*MP*) 26579bd41f2cSmrg if test -d /usr/nec ;then 26589bd41f2cSmrg version_type=linux 26599bd41f2cSmrg library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 26609bd41f2cSmrg soname_spec='$libname${shared_ext}.$major' 26619bd41f2cSmrg shlibpath_var=LD_LIBRARY_PATH 26629bd41f2cSmrg fi 26639bd41f2cSmrg ;; 26649bd41f2cSmrg 26659bd41f2cSmrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 26669bd41f2cSmrg version_type=freebsd-elf 26679bd41f2cSmrg need_lib_prefix=no 26689bd41f2cSmrg need_version=no 26699bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 26709bd41f2cSmrg soname_spec='${libname}${release}${shared_ext}$major' 26719bd41f2cSmrg shlibpath_var=LD_LIBRARY_PATH 26729418810dSmrg shlibpath_overrides_runpath=yes 26739bd41f2cSmrg hardcode_into_libs=yes 26749bd41f2cSmrg if test "$with_gnu_ld" = yes; then 26759bd41f2cSmrg sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 26769bd41f2cSmrg else 26779bd41f2cSmrg sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 26789bd41f2cSmrg case $host_os in 26799bd41f2cSmrg sco3.2v5*) 26809bd41f2cSmrg sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 26819bd41f2cSmrg ;; 26829bd41f2cSmrg esac 26839bd41f2cSmrg fi 26849bd41f2cSmrg sys_lib_dlsearch_path_spec='/usr/lib' 26859bd41f2cSmrg ;; 26869bd41f2cSmrg 26879418810dSmrgtpf*) 26889418810dSmrg # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 26899418810dSmrg version_type=linux 26909418810dSmrg need_lib_prefix=no 26919418810dSmrg need_version=no 26929418810dSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 26939418810dSmrg shlibpath_var=LD_LIBRARY_PATH 26949418810dSmrg shlibpath_overrides_runpath=no 26959418810dSmrg hardcode_into_libs=yes 26969418810dSmrg ;; 26979418810dSmrg 26989bd41f2cSmrguts4*) 26999bd41f2cSmrg version_type=linux 27009bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 27019bd41f2cSmrg soname_spec='${libname}${release}${shared_ext}$major' 27029bd41f2cSmrg shlibpath_var=LD_LIBRARY_PATH 27039bd41f2cSmrg ;; 27049bd41f2cSmrg 27059bd41f2cSmrg*) 27069bd41f2cSmrg dynamic_linker=no 27079bd41f2cSmrg ;; 27089bd41f2cSmrgesac 27099bd41f2cSmrgAC_MSG_RESULT([$dynamic_linker]) 27109bd41f2cSmrgtest "$dynamic_linker" = no && can_build_shared=no 27119bd41f2cSmrg 27129bd41f2cSmrgvariables_saved_for_relink="PATH $shlibpath_var $runpath_var" 27139bd41f2cSmrgif test "$GCC" = yes; then 27149bd41f2cSmrg variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 27159bd41f2cSmrgfi 27169bd41f2cSmrg 27179418810dSmrgif test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 27189418810dSmrg sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 27199418810dSmrgfi 27209418810dSmrgif test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 27219418810dSmrg sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 27229418810dSmrgfi 27239bd41f2cSmrg 27249418810dSmrg_LT_DECL([], [variables_saved_for_relink], [1], 27259418810dSmrg [Variables whose values should be saved in libtool wrapper scripts and 27269418810dSmrg restored at link time]) 27279418810dSmrg_LT_DECL([], [need_lib_prefix], [0], 27289418810dSmrg [Do we need the "lib" prefix for modules?]) 27299418810dSmrg_LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) 27309418810dSmrg_LT_DECL([], [version_type], [0], [Library versioning type]) 27319418810dSmrg_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) 27329418810dSmrg_LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) 27339418810dSmrg_LT_DECL([], [shlibpath_overrides_runpath], [0], 27349418810dSmrg [Is shlibpath searched before the hard-coded library search path?]) 27359418810dSmrg_LT_DECL([], [libname_spec], [1], [Format of library name prefix]) 27369418810dSmrg_LT_DECL([], [library_names_spec], [1], 27379418810dSmrg [[List of archive names. First name is the real one, the rest are links. 27389418810dSmrg The last name is the one that the linker finds with -lNAME]]) 27399418810dSmrg_LT_DECL([], [soname_spec], [1], 27409418810dSmrg [[The coded name of the library, if different from the real name]]) 27419418810dSmrg_LT_DECL([], [postinstall_cmds], [2], 27429418810dSmrg [Command to use after installation of a shared archive]) 27439418810dSmrg_LT_DECL([], [postuninstall_cmds], [2], 27449418810dSmrg [Command to use after uninstallation of a shared archive]) 27459418810dSmrg_LT_DECL([], [finish_cmds], [2], 27469418810dSmrg [Commands used to finish a libtool library installation in a directory]) 27479418810dSmrg_LT_DECL([], [finish_eval], [1], 27489418810dSmrg [[As "finish_cmds", except a single script fragment to be evaled but 27499418810dSmrg not shown]]) 27509418810dSmrg_LT_DECL([], [hardcode_into_libs], [0], 27519418810dSmrg [Whether we should hardcode library paths into libraries]) 27529418810dSmrg_LT_DECL([], [sys_lib_search_path_spec], [2], 27539418810dSmrg [Compile-time system search path for libraries]) 27549418810dSmrg_LT_DECL([], [sys_lib_dlsearch_path_spec], [2], 27559418810dSmrg [Run-time system search path for libraries]) 27569418810dSmrg])# _LT_SYS_DYNAMIC_LINKER 27579418810dSmrg 27589418810dSmrg 27599418810dSmrg# _LT_PATH_TOOL_PREFIX(TOOL) 27609bd41f2cSmrg# -------------------------- 27619bd41f2cSmrg# find a file program which can recognize shared library 27629418810dSmrgAC_DEFUN([_LT_PATH_TOOL_PREFIX], 27639418810dSmrg[m4_require([_LT_DECL_EGREP])dnl 27649bd41f2cSmrgAC_MSG_CHECKING([for $1]) 27659bd41f2cSmrgAC_CACHE_VAL(lt_cv_path_MAGIC_CMD, 27669bd41f2cSmrg[case $MAGIC_CMD in 27679bd41f2cSmrg[[\\/*] | ?:[\\/]*]) 27689bd41f2cSmrg lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 27699bd41f2cSmrg ;; 27709bd41f2cSmrg*) 27719bd41f2cSmrg lt_save_MAGIC_CMD="$MAGIC_CMD" 27729bd41f2cSmrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 27739bd41f2cSmrgdnl $ac_dummy forces splitting on constant user-supplied paths. 27749bd41f2cSmrgdnl POSIX.2 word splitting is done only on the output of word expansions, 27759bd41f2cSmrgdnl not every word. This closes a longstanding sh security hole. 27769418810dSmrg ac_dummy="m4_if([$2], , $PATH, [$2])" 27779bd41f2cSmrg for ac_dir in $ac_dummy; do 27789bd41f2cSmrg IFS="$lt_save_ifs" 27799bd41f2cSmrg test -z "$ac_dir" && ac_dir=. 27809bd41f2cSmrg if test -f $ac_dir/$1; then 27819bd41f2cSmrg lt_cv_path_MAGIC_CMD="$ac_dir/$1" 27829bd41f2cSmrg if test -n "$file_magic_test_file"; then 27839bd41f2cSmrg case $deplibs_check_method in 27849bd41f2cSmrg "file_magic "*) 27859bd41f2cSmrg file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 27869bd41f2cSmrg MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 27879bd41f2cSmrg if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 27889bd41f2cSmrg $EGREP "$file_magic_regex" > /dev/null; then 27899bd41f2cSmrg : 27909bd41f2cSmrg else 27919418810dSmrg cat <<_LT_EOF 1>&2 27929bd41f2cSmrg 27939bd41f2cSmrg*** Warning: the command libtool uses to detect shared libraries, 27949bd41f2cSmrg*** $file_magic_cmd, produces output that libtool cannot recognize. 27959bd41f2cSmrg*** The result is that libtool may fail to recognize shared libraries 27969bd41f2cSmrg*** as such. This will affect the creation of libtool libraries that 27979bd41f2cSmrg*** depend on shared libraries, but programs linked with such libtool 27989bd41f2cSmrg*** libraries will work regardless of this problem. Nevertheless, you 27999bd41f2cSmrg*** may want to report the problem to your system manager and/or to 28009bd41f2cSmrg*** bug-libtool@gnu.org 28019bd41f2cSmrg 28029418810dSmrg_LT_EOF 28039bd41f2cSmrg fi ;; 28049bd41f2cSmrg esac 28059bd41f2cSmrg fi 28069bd41f2cSmrg break 28079bd41f2cSmrg fi 28089bd41f2cSmrg done 28099bd41f2cSmrg IFS="$lt_save_ifs" 28109bd41f2cSmrg MAGIC_CMD="$lt_save_MAGIC_CMD" 28119bd41f2cSmrg ;; 28129bd41f2cSmrgesac]) 28139bd41f2cSmrgMAGIC_CMD="$lt_cv_path_MAGIC_CMD" 28149bd41f2cSmrgif test -n "$MAGIC_CMD"; then 28159bd41f2cSmrg AC_MSG_RESULT($MAGIC_CMD) 28169bd41f2cSmrgelse 28179bd41f2cSmrg AC_MSG_RESULT(no) 28189bd41f2cSmrgfi 28199418810dSmrg_LT_DECL([], [MAGIC_CMD], [0], 28209418810dSmrg [Used to examine libraries when file_magic_cmd begins with "file"])dnl 28219418810dSmrg])# _LT_PATH_TOOL_PREFIX 28229bd41f2cSmrg 28239418810dSmrg# Old name: 28249418810dSmrgAU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) 28259418810dSmrgdnl aclocal-1.4 backwards compatibility: 28269418810dSmrgdnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) 28279bd41f2cSmrg 28289418810dSmrg 28299418810dSmrg# _LT_PATH_MAGIC 28309418810dSmrg# -------------- 28319bd41f2cSmrg# find a file program which can recognize a shared library 28329418810dSmrgm4_defun([_LT_PATH_MAGIC], 28339418810dSmrg[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) 28349bd41f2cSmrgif test -z "$lt_cv_path_MAGIC_CMD"; then 28359bd41f2cSmrg if test -n "$ac_tool_prefix"; then 28369418810dSmrg _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) 28379bd41f2cSmrg else 28389bd41f2cSmrg MAGIC_CMD=: 28399bd41f2cSmrg fi 28409bd41f2cSmrgfi 28419418810dSmrg])# _LT_PATH_MAGIC 28429bd41f2cSmrg 28439bd41f2cSmrg 28449418810dSmrg# LT_PATH_LD 28459bd41f2cSmrg# ---------- 28469bd41f2cSmrg# find the pathname to the GNU or non-GNU linker 28479418810dSmrgAC_DEFUN([LT_PATH_LD], 28489418810dSmrg[AC_REQUIRE([AC_PROG_CC])dnl 28499bd41f2cSmrgAC_REQUIRE([AC_CANONICAL_HOST])dnl 28509bd41f2cSmrgAC_REQUIRE([AC_CANONICAL_BUILD])dnl 28519418810dSmrgm4_require([_LT_DECL_SED])dnl 28529418810dSmrgm4_require([_LT_DECL_EGREP])dnl 28539418810dSmrg 28549418810dSmrgAC_ARG_WITH([gnu-ld], 28559418810dSmrg [AS_HELP_STRING([--with-gnu-ld], 28569418810dSmrg [assume the C compiler uses GNU ld @<:@default=no@:>@])], 28579418810dSmrg [test "$withval" = no || with_gnu_ld=yes], 28589418810dSmrg [with_gnu_ld=no])dnl 28599418810dSmrg 28609bd41f2cSmrgac_prog=ld 28619bd41f2cSmrgif test "$GCC" = yes; then 28629bd41f2cSmrg # Check if gcc -print-prog-name=ld gives a path. 28639bd41f2cSmrg AC_MSG_CHECKING([for ld used by $CC]) 28649bd41f2cSmrg case $host in 28659bd41f2cSmrg *-*-mingw*) 28669bd41f2cSmrg # gcc leaves a trailing carriage return which upsets mingw 28679bd41f2cSmrg ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 28689bd41f2cSmrg *) 28699bd41f2cSmrg ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 28709bd41f2cSmrg esac 28719bd41f2cSmrg case $ac_prog in 28729bd41f2cSmrg # Accept absolute paths. 28739bd41f2cSmrg [[\\/]]* | ?:[[\\/]]*) 28749bd41f2cSmrg re_direlt='/[[^/]][[^/]]*/\.\./' 28759bd41f2cSmrg # Canonicalize the pathname of ld 28769418810dSmrg ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 28779418810dSmrg while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 28789418810dSmrg ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 28799bd41f2cSmrg done 28809bd41f2cSmrg test -z "$LD" && LD="$ac_prog" 28819bd41f2cSmrg ;; 28829bd41f2cSmrg "") 28839bd41f2cSmrg # If it fails, then pretend we aren't using GCC. 28849bd41f2cSmrg ac_prog=ld 28859bd41f2cSmrg ;; 28869bd41f2cSmrg *) 28879bd41f2cSmrg # If it is relative, then search for the first ld in PATH. 28889bd41f2cSmrg with_gnu_ld=unknown 28899bd41f2cSmrg ;; 28909bd41f2cSmrg esac 28919bd41f2cSmrgelif test "$with_gnu_ld" = yes; then 28929bd41f2cSmrg AC_MSG_CHECKING([for GNU ld]) 28939bd41f2cSmrgelse 28949bd41f2cSmrg AC_MSG_CHECKING([for non-GNU ld]) 28959bd41f2cSmrgfi 28969bd41f2cSmrgAC_CACHE_VAL(lt_cv_path_LD, 28979bd41f2cSmrg[if test -z "$LD"; then 28989bd41f2cSmrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 28999bd41f2cSmrg for ac_dir in $PATH; do 29009bd41f2cSmrg IFS="$lt_save_ifs" 29019bd41f2cSmrg test -z "$ac_dir" && ac_dir=. 29029bd41f2cSmrg if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 29039bd41f2cSmrg lt_cv_path_LD="$ac_dir/$ac_prog" 29049bd41f2cSmrg # Check to see if the program is GNU ld. I'd rather use --version, 29059bd41f2cSmrg # but apparently some variants of GNU ld only accept -v. 29069bd41f2cSmrg # Break only if it was the GNU/non-GNU ld that we prefer. 29079bd41f2cSmrg case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 29089bd41f2cSmrg *GNU* | *'with BFD'*) 29099bd41f2cSmrg test "$with_gnu_ld" != no && break 29109bd41f2cSmrg ;; 29119bd41f2cSmrg *) 29129bd41f2cSmrg test "$with_gnu_ld" != yes && break 29139bd41f2cSmrg ;; 29149bd41f2cSmrg esac 29159bd41f2cSmrg fi 29169bd41f2cSmrg done 29179bd41f2cSmrg IFS="$lt_save_ifs" 29189bd41f2cSmrgelse 29199bd41f2cSmrg lt_cv_path_LD="$LD" # Let the user override the test with a path. 29209bd41f2cSmrgfi]) 29219bd41f2cSmrgLD="$lt_cv_path_LD" 29229bd41f2cSmrgif test -n "$LD"; then 29239bd41f2cSmrg AC_MSG_RESULT($LD) 29249bd41f2cSmrgelse 29259bd41f2cSmrg AC_MSG_RESULT(no) 29269bd41f2cSmrgfi 29279bd41f2cSmrgtest -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) 29289418810dSmrg_LT_PATH_LD_GNU 29299418810dSmrgAC_SUBST([LD]) 29309bd41f2cSmrg 29319418810dSmrg_LT_TAGDECL([], [LD], [1], [The linker used to build libraries]) 29329418810dSmrg])# LT_PATH_LD 29339bd41f2cSmrg 29349418810dSmrg# Old names: 29359418810dSmrgAU_ALIAS([AM_PROG_LD], [LT_PATH_LD]) 29369418810dSmrgAU_ALIAS([AC_PROG_LD], [LT_PATH_LD]) 29379418810dSmrgdnl aclocal-1.4 backwards compatibility: 29389418810dSmrgdnl AC_DEFUN([AM_PROG_LD], []) 29399418810dSmrgdnl AC_DEFUN([AC_PROG_LD], []) 29409418810dSmrg 29419418810dSmrg 29429418810dSmrg# _LT_PATH_LD_GNU 29439418810dSmrg#- -------------- 29449418810dSmrgm4_defun([_LT_PATH_LD_GNU], 29459418810dSmrg[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, 29469bd41f2cSmrg[# I'd rather use --version here, but apparently some GNU lds only accept -v. 29479bd41f2cSmrgcase `$LD -v 2>&1 </dev/null` in 29489bd41f2cSmrg*GNU* | *'with BFD'*) 29499bd41f2cSmrg lt_cv_prog_gnu_ld=yes 29509bd41f2cSmrg ;; 29519bd41f2cSmrg*) 29529bd41f2cSmrg lt_cv_prog_gnu_ld=no 29539bd41f2cSmrg ;; 29549bd41f2cSmrgesac]) 29559bd41f2cSmrgwith_gnu_ld=$lt_cv_prog_gnu_ld 29569418810dSmrg])# _LT_PATH_LD_GNU 29579bd41f2cSmrg 29589bd41f2cSmrg 29599418810dSmrg# _LT_CMD_RELOAD 29609418810dSmrg# -------------- 29619bd41f2cSmrg# find reload flag for linker 29629bd41f2cSmrg# -- PORTME Some linkers may need a different reload flag. 29639418810dSmrgm4_defun([_LT_CMD_RELOAD], 29649bd41f2cSmrg[AC_CACHE_CHECK([for $LD option to reload object files], 29659bd41f2cSmrg lt_cv_ld_reload_flag, 29669bd41f2cSmrg [lt_cv_ld_reload_flag='-r']) 29679bd41f2cSmrgreload_flag=$lt_cv_ld_reload_flag 29689bd41f2cSmrgcase $reload_flag in 29699bd41f2cSmrg"" | " "*) ;; 29709bd41f2cSmrg*) reload_flag=" $reload_flag" ;; 29719bd41f2cSmrgesac 29729bd41f2cSmrgreload_cmds='$LD$reload_flag -o $output$reload_objs' 29739bd41f2cSmrgcase $host_os in 29749bd41f2cSmrg darwin*) 29759bd41f2cSmrg if test "$GCC" = yes; then 29769bd41f2cSmrg reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 29779bd41f2cSmrg else 29789bd41f2cSmrg reload_cmds='$LD$reload_flag -o $output$reload_objs' 29799bd41f2cSmrg fi 29809bd41f2cSmrg ;; 29819bd41f2cSmrgesac 29829418810dSmrg_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl 29839418810dSmrg_LT_DECL([], [reload_cmds], [2])dnl 29849418810dSmrg])# _LT_CMD_RELOAD 29859bd41f2cSmrg 29869bd41f2cSmrg 29879418810dSmrg# _LT_CHECK_MAGIC_METHOD 29889418810dSmrg# ---------------------- 29899bd41f2cSmrg# how to check for library dependencies 29909bd41f2cSmrg# -- PORTME fill in with the dynamic library characteristics 29919418810dSmrgm4_defun([_LT_CHECK_MAGIC_METHOD], 29929418810dSmrg[m4_require([_LT_DECL_EGREP]) 29939418810dSmrgm4_require([_LT_DECL_OBJDUMP]) 29949418810dSmrgAC_CACHE_CHECK([how to recognize dependent libraries], 29959bd41f2cSmrglt_cv_deplibs_check_method, 29969bd41f2cSmrg[lt_cv_file_magic_cmd='$MAGIC_CMD' 29979bd41f2cSmrglt_cv_file_magic_test_file= 29989bd41f2cSmrglt_cv_deplibs_check_method='unknown' 29999bd41f2cSmrg# Need to set the preceding variable on all platforms that support 30009bd41f2cSmrg# interlibrary dependencies. 30019bd41f2cSmrg# 'none' -- dependencies not supported. 30029bd41f2cSmrg# `unknown' -- same as none, but documents that we really don't know. 30039bd41f2cSmrg# 'pass_all' -- all dependencies passed with no checks. 30049bd41f2cSmrg# 'test_compile' -- check by making test program. 30059bd41f2cSmrg# 'file_magic [[regex]]' -- check by looking for files in library path 30069bd41f2cSmrg# which responds to the $file_magic_cmd with a given extended regex. 30079bd41f2cSmrg# If you have `file' or equivalent on your system and you're not sure 30089bd41f2cSmrg# whether `pass_all' will *always* work, you probably want this one. 30099bd41f2cSmrg 30109bd41f2cSmrgcase $host_os in 3011d075918cSmrgaix[[4-9]]*) 30129bd41f2cSmrg lt_cv_deplibs_check_method=pass_all 30139bd41f2cSmrg ;; 30149bd41f2cSmrg 30159bd41f2cSmrgbeos*) 30169bd41f2cSmrg lt_cv_deplibs_check_method=pass_all 30179bd41f2cSmrg ;; 30189bd41f2cSmrg 30199bd41f2cSmrgbsdi[[45]]*) 30209bd41f2cSmrg lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' 30219bd41f2cSmrg lt_cv_file_magic_cmd='/usr/bin/file -L' 30229bd41f2cSmrg lt_cv_file_magic_test_file=/shlib/libc.so 30239bd41f2cSmrg ;; 30249bd41f2cSmrg 30259bd41f2cSmrgcygwin*) 30269bd41f2cSmrg # func_win32_libid is a shell function defined in ltmain.sh 30279bd41f2cSmrg lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 30289bd41f2cSmrg lt_cv_file_magic_cmd='func_win32_libid' 30299bd41f2cSmrg ;; 30309bd41f2cSmrg 30319bd41f2cSmrgmingw* | pw32*) 30329bd41f2cSmrg # Base MSYS/MinGW do not provide the 'file' command needed by 30339bd41f2cSmrg # func_win32_libid shell function, so use a weaker test based on 'objdump', 30349bd41f2cSmrg # unless we find 'file', for example because we are cross-compiling. 30359bd41f2cSmrg if ( file / ) >/dev/null 2>&1; then 30369bd41f2cSmrg lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 30379bd41f2cSmrg lt_cv_file_magic_cmd='func_win32_libid' 30389bd41f2cSmrg else 30399bd41f2cSmrg lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 30409bd41f2cSmrg lt_cv_file_magic_cmd='$OBJDUMP -f' 30419bd41f2cSmrg fi 30429bd41f2cSmrg ;; 30439bd41f2cSmrg 30449418810dSmrgcegcc) 30459418810dSmrg # use the weaker test based on 'objdump'. See mingw*. 30469418810dSmrg lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 30479418810dSmrg lt_cv_file_magic_cmd='$OBJDUMP -f' 30489418810dSmrg ;; 30499418810dSmrg 30509bd41f2cSmrgdarwin* | rhapsody*) 30519bd41f2cSmrg lt_cv_deplibs_check_method=pass_all 30529bd41f2cSmrg ;; 30539bd41f2cSmrg 30549bd41f2cSmrgfreebsd* | dragonfly*) 30559418810dSmrg if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 30569bd41f2cSmrg case $host_cpu in 30579bd41f2cSmrg i*86 ) 30589bd41f2cSmrg # Not sure whether the presence of OpenBSD here was a mistake. 30599bd41f2cSmrg # Let's accept both of them until this is cleared up. 30609bd41f2cSmrg lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' 30619bd41f2cSmrg lt_cv_file_magic_cmd=/usr/bin/file 30629bd41f2cSmrg lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 30639bd41f2cSmrg ;; 30649bd41f2cSmrg esac 30659bd41f2cSmrg else 30669bd41f2cSmrg lt_cv_deplibs_check_method=pass_all 30679bd41f2cSmrg fi 30689bd41f2cSmrg ;; 30699bd41f2cSmrg 30709bd41f2cSmrggnu*) 30719bd41f2cSmrg lt_cv_deplibs_check_method=pass_all 30729bd41f2cSmrg ;; 30739bd41f2cSmrg 30749bd41f2cSmrghpux10.20* | hpux11*) 30759bd41f2cSmrg lt_cv_file_magic_cmd=/usr/bin/file 30769bd41f2cSmrg case $host_cpu in 30779bd41f2cSmrg ia64*) 30789bd41f2cSmrg lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' 30799bd41f2cSmrg lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 30809bd41f2cSmrg ;; 30819bd41f2cSmrg hppa*64*) 30829bd41f2cSmrg [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]'] 30839bd41f2cSmrg lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 30849bd41f2cSmrg ;; 30859bd41f2cSmrg *) 30869bd41f2cSmrg lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' 30879bd41f2cSmrg lt_cv_file_magic_test_file=/usr/lib/libc.sl 30889bd41f2cSmrg ;; 30899bd41f2cSmrg esac 30909bd41f2cSmrg ;; 30919bd41f2cSmrg 30929bd41f2cSmrginterix[[3-9]]*) 30939bd41f2cSmrg # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 30949bd41f2cSmrg lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' 30959bd41f2cSmrg ;; 30969bd41f2cSmrg 30979bd41f2cSmrgirix5* | irix6* | nonstopux*) 30989bd41f2cSmrg case $LD in 30999bd41f2cSmrg *-32|*"-32 ") libmagic=32-bit;; 31009bd41f2cSmrg *-n32|*"-n32 ") libmagic=N32;; 31019bd41f2cSmrg *-64|*"-64 ") libmagic=64-bit;; 31029bd41f2cSmrg *) libmagic=never-match;; 31039bd41f2cSmrg esac 31049bd41f2cSmrg lt_cv_deplibs_check_method=pass_all 31059bd41f2cSmrg ;; 31069bd41f2cSmrg 31079bd41f2cSmrg# This must be Linux ELF. 31089bd41f2cSmrglinux* | k*bsd*-gnu) 31099bd41f2cSmrg lt_cv_deplibs_check_method=pass_all 31109bd41f2cSmrg ;; 31119bd41f2cSmrg 31129bd41f2cSmrgnetbsd*) 31139418810dSmrg if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 31149bd41f2cSmrg lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 31159bd41f2cSmrg else 31169bd41f2cSmrg lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' 31179bd41f2cSmrg fi 31189bd41f2cSmrg ;; 31199bd41f2cSmrg 31209bd41f2cSmrgnewos6*) 31219bd41f2cSmrg lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' 31229bd41f2cSmrg lt_cv_file_magic_cmd=/usr/bin/file 31239bd41f2cSmrg lt_cv_file_magic_test_file=/usr/lib/libnls.so 31249bd41f2cSmrg ;; 31259bd41f2cSmrg 31269418810dSmrg*nto* | *qnx*) 31279418810dSmrg lt_cv_deplibs_check_method=pass_all 31289bd41f2cSmrg ;; 31299bd41f2cSmrg 31309bd41f2cSmrgopenbsd*) 31319418810dSmrg if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 31329bd41f2cSmrg lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' 31339bd41f2cSmrg else 31349bd41f2cSmrg lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 31359bd41f2cSmrg fi 31369bd41f2cSmrg ;; 31379bd41f2cSmrg 31389bd41f2cSmrgosf3* | osf4* | osf5*) 31399bd41f2cSmrg lt_cv_deplibs_check_method=pass_all 31409bd41f2cSmrg ;; 31419bd41f2cSmrg 31429bd41f2cSmrgrdos*) 31439bd41f2cSmrg lt_cv_deplibs_check_method=pass_all 31449bd41f2cSmrg ;; 31459bd41f2cSmrg 31469bd41f2cSmrgsolaris*) 31479bd41f2cSmrg lt_cv_deplibs_check_method=pass_all 31489bd41f2cSmrg ;; 31499bd41f2cSmrg 31509418810dSmrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 31519418810dSmrg lt_cv_deplibs_check_method=pass_all 31529418810dSmrg ;; 31539418810dSmrg 31549bd41f2cSmrgsysv4 | sysv4.3*) 31559bd41f2cSmrg case $host_vendor in 31569bd41f2cSmrg motorola) 31579bd41f2cSmrg 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]]' 31589bd41f2cSmrg lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 31599bd41f2cSmrg ;; 31609bd41f2cSmrg ncr) 31619bd41f2cSmrg lt_cv_deplibs_check_method=pass_all 31629bd41f2cSmrg ;; 31639bd41f2cSmrg sequent) 31649bd41f2cSmrg lt_cv_file_magic_cmd='/bin/file' 31659bd41f2cSmrg lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' 31669bd41f2cSmrg ;; 31679bd41f2cSmrg sni) 31689bd41f2cSmrg lt_cv_file_magic_cmd='/bin/file' 31699bd41f2cSmrg lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" 31709bd41f2cSmrg lt_cv_file_magic_test_file=/lib/libc.so 31719bd41f2cSmrg ;; 31729bd41f2cSmrg siemens) 31739bd41f2cSmrg lt_cv_deplibs_check_method=pass_all 31749bd41f2cSmrg ;; 31759bd41f2cSmrg pc) 31769bd41f2cSmrg lt_cv_deplibs_check_method=pass_all 31779bd41f2cSmrg ;; 31789bd41f2cSmrg esac 31799bd41f2cSmrg ;; 31809bd41f2cSmrg 31819418810dSmrgtpf*) 31829bd41f2cSmrg lt_cv_deplibs_check_method=pass_all 31839bd41f2cSmrg ;; 31849bd41f2cSmrgesac 31859bd41f2cSmrg]) 31869bd41f2cSmrgfile_magic_cmd=$lt_cv_file_magic_cmd 31879bd41f2cSmrgdeplibs_check_method=$lt_cv_deplibs_check_method 31889bd41f2cSmrgtest -z "$deplibs_check_method" && deplibs_check_method=unknown 31899418810dSmrg 31909418810dSmrg_LT_DECL([], [deplibs_check_method], [1], 31919418810dSmrg [Method to check whether dependent libraries are shared objects]) 31929418810dSmrg_LT_DECL([], [file_magic_cmd], [1], 31939418810dSmrg [Command to use when deplibs_check_method == "file_magic"]) 31949418810dSmrg])# _LT_CHECK_MAGIC_METHOD 31959bd41f2cSmrg 31969bd41f2cSmrg 31979418810dSmrg# LT_PATH_NM 31989bd41f2cSmrg# ---------- 31999418810dSmrg# find the pathname to a BSD- or MS-compatible name lister 32009418810dSmrgAC_DEFUN([LT_PATH_NM], 32019418810dSmrg[AC_REQUIRE([AC_PROG_CC])dnl 32029418810dSmrgAC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, 32039bd41f2cSmrg[if test -n "$NM"; then 32049bd41f2cSmrg # Let the user override the test. 32059bd41f2cSmrg lt_cv_path_NM="$NM" 32069bd41f2cSmrgelse 32079bd41f2cSmrg lt_nm_to_check="${ac_tool_prefix}nm" 32089bd41f2cSmrg if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 32099bd41f2cSmrg lt_nm_to_check="$lt_nm_to_check nm" 32109bd41f2cSmrg fi 32119bd41f2cSmrg for lt_tmp_nm in $lt_nm_to_check; do 32129bd41f2cSmrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 32139bd41f2cSmrg for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 32149bd41f2cSmrg IFS="$lt_save_ifs" 32159bd41f2cSmrg test -z "$ac_dir" && ac_dir=. 32169bd41f2cSmrg tmp_nm="$ac_dir/$lt_tmp_nm" 32179bd41f2cSmrg if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 32189bd41f2cSmrg # Check to see if the nm accepts a BSD-compat flag. 32199bd41f2cSmrg # Adding the `sed 1q' prevents false positives on HP-UX, which says: 32209bd41f2cSmrg # nm: unknown option "B" ignored 32219bd41f2cSmrg # Tru64's nm complains that /dev/null is an invalid object file 32229bd41f2cSmrg case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 32239bd41f2cSmrg */dev/null* | *'Invalid file or object type'*) 32249bd41f2cSmrg lt_cv_path_NM="$tmp_nm -B" 32259bd41f2cSmrg break 32269bd41f2cSmrg ;; 32279bd41f2cSmrg *) 32289bd41f2cSmrg case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 32299bd41f2cSmrg */dev/null*) 32309bd41f2cSmrg lt_cv_path_NM="$tmp_nm -p" 32319bd41f2cSmrg break 32329bd41f2cSmrg ;; 32339bd41f2cSmrg *) 32349bd41f2cSmrg lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 32359bd41f2cSmrg continue # so that we can try to find one that supports BSD flags 32369bd41f2cSmrg ;; 32379bd41f2cSmrg esac 32389bd41f2cSmrg ;; 32399bd41f2cSmrg esac 32409bd41f2cSmrg fi 32419bd41f2cSmrg done 32429bd41f2cSmrg IFS="$lt_save_ifs" 32439bd41f2cSmrg done 32449418810dSmrg : ${lt_cv_path_NM=no} 32459bd41f2cSmrgfi]) 32469418810dSmrgif test "$lt_cv_path_NM" != "no"; then 32479418810dSmrg NM="$lt_cv_path_NM" 32489418810dSmrgelse 32499418810dSmrg # Didn't find any BSD compatible name lister, look for dumpbin. 32509418810dSmrg AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :) 32519418810dSmrg AC_SUBST([DUMPBIN]) 32529418810dSmrg if test "$DUMPBIN" != ":"; then 32539418810dSmrg NM="$DUMPBIN" 32549418810dSmrg fi 32559418810dSmrgfi 32569418810dSmrgtest -z "$NM" && NM=nm 32579418810dSmrgAC_SUBST([NM]) 32589418810dSmrg_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl 32599418810dSmrg 32609418810dSmrgAC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], 32619418810dSmrg [lt_cv_nm_interface="BSD nm" 32629418810dSmrg echo "int some_variable = 0;" > conftest.$ac_ext 32639418810dSmrg (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD) 32649418810dSmrg (eval "$ac_compile" 2>conftest.err) 32659418810dSmrg cat conftest.err >&AS_MESSAGE_LOG_FD 32669418810dSmrg (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) 32679418810dSmrg (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 32689418810dSmrg cat conftest.err >&AS_MESSAGE_LOG_FD 32699418810dSmrg (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD) 32709418810dSmrg cat conftest.out >&AS_MESSAGE_LOG_FD 32719418810dSmrg if $GREP 'External.*some_variable' conftest.out > /dev/null; then 32729418810dSmrg lt_cv_nm_interface="MS dumpbin" 32739418810dSmrg fi 32749418810dSmrg rm -f conftest*]) 32759418810dSmrg])# LT_PATH_NM 32769bd41f2cSmrg 32779418810dSmrg# Old names: 32789418810dSmrgAU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) 32799418810dSmrgAU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) 32809418810dSmrgdnl aclocal-1.4 backwards compatibility: 32819418810dSmrgdnl AC_DEFUN([AM_PROG_NM], []) 32829418810dSmrgdnl AC_DEFUN([AC_PROG_NM], []) 32839bd41f2cSmrg 32849418810dSmrg 32859418810dSmrg# LT_LIB_M 32869418810dSmrg# -------- 32879bd41f2cSmrg# check for math library 32889418810dSmrgAC_DEFUN([LT_LIB_M], 32899bd41f2cSmrg[AC_REQUIRE([AC_CANONICAL_HOST])dnl 32909bd41f2cSmrgLIBM= 32919bd41f2cSmrgcase $host in 32929bd41f2cSmrg*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) 32939bd41f2cSmrg # These system don't have libm, or don't need it 32949bd41f2cSmrg ;; 32959bd41f2cSmrg*-ncr-sysv4.3*) 32969bd41f2cSmrg AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") 32979bd41f2cSmrg AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") 32989bd41f2cSmrg ;; 32999bd41f2cSmrg*) 33009bd41f2cSmrg AC_CHECK_LIB(m, cos, LIBM="-lm") 33019bd41f2cSmrg ;; 33029bd41f2cSmrgesac 33039418810dSmrgAC_SUBST([LIBM]) 33049418810dSmrg])# LT_LIB_M 33059bd41f2cSmrg 33069418810dSmrg# Old name: 33079418810dSmrgAU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) 33089418810dSmrgdnl aclocal-1.4 backwards compatibility: 33099418810dSmrgdnl AC_DEFUN([AC_CHECK_LIBM], []) 33109bd41f2cSmrg 33119bd41f2cSmrg 33129418810dSmrg# _LT_COMPILER_NO_RTTI([TAGNAME]) 33139418810dSmrg# ------------------------------- 33149418810dSmrgm4_defun([_LT_COMPILER_NO_RTTI], 33159418810dSmrg[m4_require([_LT_TAG_COMPILER])dnl 33169bd41f2cSmrg 33179418810dSmrg_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 33189bd41f2cSmrg 33199418810dSmrgif test "$GCC" = yes; then 33209418810dSmrg _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 33219bd41f2cSmrg 33229418810dSmrg _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], 33239418810dSmrg lt_cv_prog_compiler_rtti_exceptions, 33249418810dSmrg [-fno-rtti -fno-exceptions], [], 33259418810dSmrg [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) 33269418810dSmrgfi 33279418810dSmrg_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], 33289418810dSmrg [Compiler flag to turn off builtin functions]) 33299418810dSmrg])# _LT_COMPILER_NO_RTTI 33309bd41f2cSmrg 33319bd41f2cSmrg 33329418810dSmrg# _LT_CMD_GLOBAL_SYMBOLS 33339418810dSmrg# ---------------------- 33349418810dSmrgm4_defun([_LT_CMD_GLOBAL_SYMBOLS], 33359418810dSmrg[AC_REQUIRE([AC_CANONICAL_HOST])dnl 33369418810dSmrgAC_REQUIRE([AC_PROG_CC])dnl 33379418810dSmrgAC_REQUIRE([LT_PATH_NM])dnl 33389418810dSmrgAC_REQUIRE([LT_PATH_LD])dnl 33399418810dSmrgm4_require([_LT_DECL_SED])dnl 33409418810dSmrgm4_require([_LT_DECL_EGREP])dnl 33419418810dSmrgm4_require([_LT_TAG_COMPILER])dnl 33429bd41f2cSmrg 33439418810dSmrg# Check for command to grab the raw symbol name followed by C symbol from nm. 33449418810dSmrgAC_MSG_CHECKING([command to parse $NM output from $compiler object]) 33459418810dSmrgAC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], 33469bd41f2cSmrg[ 33479418810dSmrg# These are sane defaults that work on at least a few old systems. 33489418810dSmrg# [They come from Ultrix. What could be older than Ultrix?!! ;)] 33499bd41f2cSmrg 33509418810dSmrg# Character class describing NM global symbol codes. 33519418810dSmrgsymcode='[[BCDEGRST]]' 33529bd41f2cSmrg 33539418810dSmrg# Regexp to match symbols that can be accessed directly from C. 33549418810dSmrgsympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' 33559bd41f2cSmrg 33569418810dSmrg# Define system-specific variables. 33579418810dSmrgcase $host_os in 33589418810dSmrgaix*) 33599418810dSmrg symcode='[[BCDT]]' 33609418810dSmrg ;; 33619418810dSmrgcygwin* | mingw* | pw32* | cegcc*) 33629418810dSmrg symcode='[[ABCDGISTW]]' 33639418810dSmrg ;; 33649418810dSmrghpux*) 33659418810dSmrg if test "$host_cpu" = ia64; then 33669418810dSmrg symcode='[[ABCDEGRST]]' 33679418810dSmrg fi 33689418810dSmrg ;; 33699418810dSmrgirix* | nonstopux*) 33709418810dSmrg symcode='[[BCDEGRST]]' 33719418810dSmrg ;; 33729418810dSmrgosf*) 33739418810dSmrg symcode='[[BCDEGQRST]]' 33749418810dSmrg ;; 33759418810dSmrgsolaris*) 33769418810dSmrg symcode='[[BDRT]]' 33779418810dSmrg ;; 33789418810dSmrgsco3.2v5*) 33799418810dSmrg symcode='[[DT]]' 33809418810dSmrg ;; 33819418810dSmrgsysv4.2uw2*) 33829418810dSmrg symcode='[[DT]]' 33839418810dSmrg ;; 33849418810dSmrgsysv5* | sco5v6* | unixware* | OpenUNIX*) 33859418810dSmrg symcode='[[ABDT]]' 33869418810dSmrg ;; 33879418810dSmrgsysv4) 33889418810dSmrg symcode='[[DFNSTU]]' 33899418810dSmrg ;; 33909418810dSmrgesac 33919bd41f2cSmrg 33929418810dSmrg# If we're using GNU nm, then use its standard symbol codes. 33939418810dSmrgcase `$NM -V 2>&1` in 33949418810dSmrg*GNU* | *'with BFD'*) 33959418810dSmrg symcode='[[ABCDGIRSTW]]' ;; 33969418810dSmrgesac 33979bd41f2cSmrg 33989418810dSmrg# Transform an extracted symbol line into a proper C declaration. 33999418810dSmrg# Some systems (esp. on ia64) link data and code symbols differently, 34009418810dSmrg# so use this general approach. 34019418810dSmrglt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 34029bd41f2cSmrg 34039418810dSmrg# Transform an extracted symbol line into symbol name and symbol address 34049418810dSmrglt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" 34059418810dSmrglt_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'" 34069bd41f2cSmrg 34079418810dSmrg# Handle CRLF in mingw tool chain 34089418810dSmrgopt_cr= 34099418810dSmrgcase $build_os in 34109418810dSmrgmingw*) 34119418810dSmrg opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 34129418810dSmrg ;; 34139418810dSmrgesac 34149bd41f2cSmrg 34159418810dSmrg# Try without a prefix underscore, then with it. 34169418810dSmrgfor ac_symprfx in "" "_"; do 34179bd41f2cSmrg 34189418810dSmrg # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 34199418810dSmrg symxfrm="\\1 $ac_symprfx\\2 \\2" 34209bd41f2cSmrg 34219418810dSmrg # Write the raw and C identifiers. 34229418810dSmrg if test "$lt_cv_nm_interface" = "MS dumpbin"; then 34239418810dSmrg # Fake it for dumpbin and say T for any non-static function 34249418810dSmrg # and D for any global variable. 34259418810dSmrg # Also find C++ and __fastcall symbols from MSVC++, 34269418810dSmrg # which start with @ or ?. 34279418810dSmrg lt_cv_sys_global_symbol_pipe="$AWK ['"\ 34289418810dSmrg" {last_section=section; section=\$ 3};"\ 34299418810dSmrg" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 34309418810dSmrg" \$ 0!~/External *\|/{next};"\ 34319418810dSmrg" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 34329418810dSmrg" {if(hide[section]) next};"\ 34339418810dSmrg" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 34349418810dSmrg" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 34359418810dSmrg" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 34369418810dSmrg" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 34379418810dSmrg" ' prfx=^$ac_symprfx]" 34389418810dSmrg else 34399418810dSmrg lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 34409bd41f2cSmrg fi 34419bd41f2cSmrg 34429418810dSmrg # Check to see that the pipe works correctly. 34439418810dSmrg pipe_works=no 34449bd41f2cSmrg 34459418810dSmrg rm -f conftest* 34469418810dSmrg cat > conftest.$ac_ext <<_LT_EOF 34479418810dSmrg#ifdef __cplusplus 34489418810dSmrgextern "C" { 34499418810dSmrg#endif 34509418810dSmrgchar nm_test_var; 34519418810dSmrgvoid nm_test_func(void); 34529418810dSmrgvoid nm_test_func(void){} 34539418810dSmrg#ifdef __cplusplus 34549418810dSmrg} 34559418810dSmrg#endif 34569418810dSmrgint main(){nm_test_var='a';nm_test_func();return(0);} 34579418810dSmrg_LT_EOF 34589bd41f2cSmrg 34599418810dSmrg if AC_TRY_EVAL(ac_compile); then 34609418810dSmrg # Now try to grab the symbols. 34619418810dSmrg nlist=conftest.nm 34629418810dSmrg if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then 34639418810dSmrg # Try sorting and uniquifying the output. 34649418810dSmrg if sort "$nlist" | uniq > "$nlist"T; then 34659418810dSmrg mv -f "$nlist"T "$nlist" 34669418810dSmrg else 34679418810dSmrg rm -f "$nlist"T 34689418810dSmrg fi 34699bd41f2cSmrg 34709418810dSmrg # Make sure that we snagged all the symbols we need. 34719418810dSmrg if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 34729418810dSmrg if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 34739418810dSmrg cat <<_LT_EOF > conftest.$ac_ext 34749418810dSmrg#ifdef __cplusplus 34759418810dSmrgextern "C" { 34769418810dSmrg#endif 34779bd41f2cSmrg 34789418810dSmrg_LT_EOF 34799418810dSmrg # Now generate the symbol file. 34809418810dSmrg eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 34819bd41f2cSmrg 34829418810dSmrg cat <<_LT_EOF >> conftest.$ac_ext 34839bd41f2cSmrg 34849418810dSmrg/* The mapping between symbol names and symbols. */ 34859418810dSmrgconst struct { 34869418810dSmrg const char *name; 34879418810dSmrg void *address; 34889418810dSmrg} 34899418810dSmrglt__PROGRAM__LTX_preloaded_symbols[[]] = 34909418810dSmrg{ 34919418810dSmrg { "@PROGRAM@", (void *) 0 }, 34929418810dSmrg_LT_EOF 34939418810dSmrg $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 34949418810dSmrg cat <<\_LT_EOF >> conftest.$ac_ext 34959418810dSmrg {0, (void *) 0} 34969418810dSmrg}; 34979bd41f2cSmrg 34989418810dSmrg/* This works around a problem in FreeBSD linker */ 34999418810dSmrg#ifdef FREEBSD_WORKAROUND 35009418810dSmrgstatic const void *lt_preloaded_setup() { 35019418810dSmrg return lt__PROGRAM__LTX_preloaded_symbols; 35029418810dSmrg} 35039418810dSmrg#endif 35049bd41f2cSmrg 35059418810dSmrg#ifdef __cplusplus 35069418810dSmrg} 35079418810dSmrg#endif 35089418810dSmrg_LT_EOF 35099418810dSmrg # Now try linking the two files. 35109418810dSmrg mv conftest.$ac_objext conftstm.$ac_objext 35119418810dSmrg lt_save_LIBS="$LIBS" 35129418810dSmrg lt_save_CFLAGS="$CFLAGS" 35139418810dSmrg LIBS="conftstm.$ac_objext" 35149418810dSmrg CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" 35159418810dSmrg if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then 35169418810dSmrg pipe_works=yes 35179418810dSmrg fi 35189418810dSmrg LIBS="$lt_save_LIBS" 35199418810dSmrg CFLAGS="$lt_save_CFLAGS" 35209418810dSmrg else 35219418810dSmrg echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD 35229418810dSmrg fi 35239418810dSmrg else 35249418810dSmrg echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD 35259418810dSmrg fi 35269bd41f2cSmrg else 35279418810dSmrg echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD 35289bd41f2cSmrg fi 35299bd41f2cSmrg else 35309418810dSmrg echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD 35319418810dSmrg cat conftest.$ac_ext >&5 35329bd41f2cSmrg fi 35339418810dSmrg rm -rf conftest* conftst* 35349bd41f2cSmrg 35359418810dSmrg # Do not use the global_symbol_pipe unless it works. 35369418810dSmrg if test "$pipe_works" = yes; then 35379418810dSmrg break 35389418810dSmrg else 35399418810dSmrg lt_cv_sys_global_symbol_pipe= 35409418810dSmrg fi 35419418810dSmrgdone 35429418810dSmrg]) 35439418810dSmrgif test -z "$lt_cv_sys_global_symbol_pipe"; then 35449418810dSmrg lt_cv_sys_global_symbol_to_cdecl= 35459418810dSmrgfi 35469418810dSmrgif test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 35479418810dSmrg AC_MSG_RESULT(failed) 35489bd41f2cSmrgelse 35499418810dSmrg AC_MSG_RESULT(ok) 35509bd41f2cSmrgfi 35519bd41f2cSmrg 35529418810dSmrg_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], 35539418810dSmrg [Take the output of nm and produce a listing of raw symbols and C names]) 35549418810dSmrg_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], 35559418810dSmrg [Transform the output of nm in a proper C declaration]) 35569418810dSmrg_LT_DECL([global_symbol_to_c_name_address], 35579418810dSmrg [lt_cv_sys_global_symbol_to_c_name_address], [1], 35589418810dSmrg [Transform the output of nm in a C name address pair]) 35599418810dSmrg_LT_DECL([global_symbol_to_c_name_address_lib_prefix], 35609418810dSmrg [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], 35619418810dSmrg [Transform the output of nm in a C name address pair when lib prefix is needed]) 35629418810dSmrg]) # _LT_CMD_GLOBAL_SYMBOLS 35639bd41f2cSmrg 35649bd41f2cSmrg 35659418810dSmrg# _LT_COMPILER_PIC([TAGNAME]) 35669418810dSmrg# --------------------------- 35679418810dSmrgm4_defun([_LT_COMPILER_PIC], 35689418810dSmrg[m4_require([_LT_TAG_COMPILER])dnl 35699418810dSmrg_LT_TAGVAR(lt_prog_compiler_wl, $1)= 35709418810dSmrg_LT_TAGVAR(lt_prog_compiler_pic, $1)= 35719418810dSmrg_LT_TAGVAR(lt_prog_compiler_static, $1)= 35729bd41f2cSmrg 35739418810dSmrgAC_MSG_CHECKING([for $compiler option to produce PIC]) 35749418810dSmrgm4_if([$1], [CXX], [ 35759418810dSmrg # C++ specific cases for pic, static, wl, etc. 35769418810dSmrg if test "$GXX" = yes; then 35779418810dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 35789418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 35799bd41f2cSmrg 35809418810dSmrg case $host_os in 35819418810dSmrg aix*) 35829418810dSmrg # All AIX code is PIC. 35839bd41f2cSmrg if test "$host_cpu" = ia64; then 35849418810dSmrg # AIX 5 now supports IA64 processor 35859418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 35869bd41f2cSmrg fi 35879bd41f2cSmrg ;; 35889bd41f2cSmrg 35899418810dSmrg amigaos*) 35909bd41f2cSmrg case $host_cpu in 35919418810dSmrg powerpc) 35929418810dSmrg # see comment about AmigaOS4 .so support 35939418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 35949418810dSmrg ;; 35959418810dSmrg m68k) 35969418810dSmrg # FIXME: we need at least 68020 code to build shared libraries, but 35979418810dSmrg # adding the `-m68020' flag to GCC prevents building anything better, 35989418810dSmrg # like `-m68040'. 35999418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 36009bd41f2cSmrg ;; 36019bd41f2cSmrg esac 36029bd41f2cSmrg ;; 36039bd41f2cSmrg 36049418810dSmrg beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 36059418810dSmrg # PIC is the default for these OSes. 36069418810dSmrg ;; 36079418810dSmrg mingw* | cygwin* | os2* | pw32* | cegcc*) 36089418810dSmrg # This hack is so that the source file can tell whether it is being 36099418810dSmrg # built for inclusion in a dll (and should export symbols for example). 36109418810dSmrg # Although the cygwin gcc ignores -fPIC, still need this for old-style 36119418810dSmrg # (--disable-auto-import) libraries 36129418810dSmrg m4_if([$1], [GCJ], [], 36139418810dSmrg [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 36149418810dSmrg ;; 36159418810dSmrg darwin* | rhapsody*) 36169418810dSmrg # PIC is the default on this platform 36179418810dSmrg # Common symbols not allowed in MH_DYLIB files 36189418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 36199418810dSmrg ;; 36209418810dSmrg *djgpp*) 36219418810dSmrg # DJGPP does not support shared libraries at all 36229418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)= 36239418810dSmrg ;; 36249418810dSmrg interix[[3-9]]*) 36259418810dSmrg # Interix 3.x gcc -fpic/-fPIC options generate broken code. 36269418810dSmrg # Instead, we relocate shared libraries at runtime. 36279418810dSmrg ;; 36289418810dSmrg sysv4*MP*) 36299418810dSmrg if test -d /usr/nec; then 36309418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 36319418810dSmrg fi 36329418810dSmrg ;; 36339418810dSmrg hpux*) 36349418810dSmrg # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 36359418810dSmrg # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 36369418810dSmrg # sets the default TLS model and affects inlining. 36379418810dSmrg case $host_cpu in 36389418810dSmrg hppa*64*) 36399bd41f2cSmrg ;; 36409bd41f2cSmrg *) 36419418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 36429bd41f2cSmrg ;; 36439418810dSmrg esac 36449418810dSmrg ;; 36459418810dSmrg *qnx* | *nto*) 36469418810dSmrg # QNX uses GNU C++, but need to define -shared option too, otherwise 36479418810dSmrg # it will coredump. 36489418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 36499418810dSmrg ;; 36509418810dSmrg *) 36519418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 36529418810dSmrg ;; 36539bd41f2cSmrg esac 36549418810dSmrg else 36559418810dSmrg case $host_os in 36569418810dSmrg aix[[4-9]]*) 36579418810dSmrg # All AIX code is PIC. 36589418810dSmrg if test "$host_cpu" = ia64; then 36599418810dSmrg # AIX 5 now supports IA64 processor 36609418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 36619418810dSmrg else 36629418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 36639418810dSmrg fi 36649bd41f2cSmrg ;; 36659418810dSmrg chorus*) 36669418810dSmrg case $cc_basename in 36679418810dSmrg cxch68*) 36689418810dSmrg # Green Hills C++ Compiler 36699418810dSmrg # _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" 36709bd41f2cSmrg ;; 36719bd41f2cSmrg esac 36729bd41f2cSmrg ;; 36739418810dSmrg dgux*) 36749418810dSmrg case $cc_basename in 36759418810dSmrg ec++*) 36769418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 36779418810dSmrg ;; 36789418810dSmrg ghcx*) 36799418810dSmrg # Green Hills C++ Compiler 36809418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 36819418810dSmrg ;; 36829418810dSmrg *) 36839418810dSmrg ;; 36849bd41f2cSmrg esac 36859bd41f2cSmrg ;; 36869418810dSmrg freebsd* | dragonfly*) 36879418810dSmrg # FreeBSD uses GNU C++ 36889bd41f2cSmrg ;; 36899418810dSmrg hpux9* | hpux10* | hpux11*) 36909418810dSmrg case $cc_basename in 36919418810dSmrg CC*) 36929418810dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 36939418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 36949418810dSmrg if test "$host_cpu" != ia64; then 36959418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 36969418810dSmrg fi 36979418810dSmrg ;; 36989418810dSmrg aCC*) 36999418810dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 37009418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 37019418810dSmrg case $host_cpu in 37029418810dSmrg hppa*64*|ia64*) 37039418810dSmrg # +Z the default 37049418810dSmrg ;; 37059418810dSmrg *) 37069418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 37079418810dSmrg ;; 37089418810dSmrg esac 37099418810dSmrg ;; 37109418810dSmrg *) 37119418810dSmrg ;; 37129418810dSmrg esac 37139bd41f2cSmrg ;; 37149418810dSmrg interix*) 37159418810dSmrg # This is c89, which is MS Visual C++ (no shared libs) 37169418810dSmrg # Anyone wants to do a port? 37179bd41f2cSmrg ;; 37189418810dSmrg irix5* | irix6* | nonstopux*) 37199418810dSmrg case $cc_basename in 37209418810dSmrg CC*) 37219418810dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 37229418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 37239418810dSmrg # CC pic flag -KPIC is the default. 37249418810dSmrg ;; 37259418810dSmrg *) 37269418810dSmrg ;; 37279418810dSmrg esac 37289bd41f2cSmrg ;; 37299418810dSmrg linux* | k*bsd*-gnu) 37309418810dSmrg case $cc_basename in 37319418810dSmrg KCC*) 37329418810dSmrg # KAI C++ Compiler 37339418810dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 37349418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 37359418810dSmrg ;; 37369418810dSmrg ecpc* ) 37379418810dSmrg # old Intel C++ for x86_64 which still supported -KPIC. 37389418810dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 37399418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 37409418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 37419418810dSmrg ;; 37429418810dSmrg icpc* ) 37439418810dSmrg # Intel C++, used to be incompatible with GCC. 37449418810dSmrg # ICC 10 doesn't accept -KPIC any more. 37459418810dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 37469418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 37479418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 37489418810dSmrg ;; 37499418810dSmrg pgCC* | pgcpp*) 37509418810dSmrg # Portland Group C++ compiler 37519418810dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 37529418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 37539418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 37549418810dSmrg ;; 37559418810dSmrg cxx*) 37569418810dSmrg # Compaq C++ 37579418810dSmrg # Make sure the PIC flag is empty. It appears that all Alpha 37589418810dSmrg # Linux and Compaq Tru64 Unix objects are PIC. 37599418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)= 37609418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 37619418810dSmrg ;; 37629418810dSmrg xlc* | xlC*) 37639418810dSmrg # IBM XL 8.0 on PPC 37649418810dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 37659418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' 37669418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' 37679418810dSmrg ;; 37689418810dSmrg *) 37699418810dSmrg case `$CC -V 2>&1 | sed 5q` in 37709418810dSmrg *Sun\ C*) 37719418810dSmrg # Sun C++ 5.9 37729418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 37739418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 37749418810dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 37759418810dSmrg ;; 37769418810dSmrg esac 37779418810dSmrg ;; 37789418810dSmrg esac 37799bd41f2cSmrg ;; 37809418810dSmrg lynxos*) 37819bd41f2cSmrg ;; 37829418810dSmrg m88k*) 37839bd41f2cSmrg ;; 37849418810dSmrg mvs*) 37859418810dSmrg case $cc_basename in 37869418810dSmrg cxx*) 37879418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' 37889418810dSmrg ;; 37899418810dSmrg *) 37909418810dSmrg ;; 37919418810dSmrg esac 37929bd41f2cSmrg ;; 37939418810dSmrg netbsd*) 37949bd41f2cSmrg ;; 37959418810dSmrg *qnx* | *nto*) 37969418810dSmrg # QNX uses GNU C++, but need to define -shared option too, otherwise 37979418810dSmrg # it will coredump. 37989418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 37999418810dSmrg ;; 38009418810dSmrg osf3* | osf4* | osf5*) 38019418810dSmrg case $cc_basename in 38029418810dSmrg KCC*) 38039418810dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 38049418810dSmrg ;; 38059418810dSmrg RCC*) 38069418810dSmrg # Rational C++ 2.4.1 38079418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 38089418810dSmrg ;; 38099418810dSmrg cxx*) 38109418810dSmrg # Digital/Compaq C++ 38119418810dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 38129418810dSmrg # Make sure the PIC flag is empty. It appears that all Alpha 38139418810dSmrg # Linux and Compaq Tru64 Unix objects are PIC. 38149418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)= 38159418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 38169418810dSmrg ;; 38179418810dSmrg *) 38189418810dSmrg ;; 38199418810dSmrg esac 38209bd41f2cSmrg ;; 38219418810dSmrg psos*) 38229bd41f2cSmrg ;; 38239418810dSmrg solaris*) 38249418810dSmrg case $cc_basename in 38259418810dSmrg CC*) 38269418810dSmrg # Sun C++ 4.2, 5.x and Centerline C++ 38279418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 38289418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 38299418810dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 38309418810dSmrg ;; 38319418810dSmrg gcx*) 38329418810dSmrg # Green Hills C++ Compiler 38339418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 38349418810dSmrg ;; 38359418810dSmrg *) 38369418810dSmrg ;; 38379418810dSmrg esac 38389bd41f2cSmrg ;; 38399418810dSmrg sunos4*) 38409418810dSmrg case $cc_basename in 38419418810dSmrg CC*) 38429418810dSmrg # Sun C++ 4.x 38439418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 38449418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 38459418810dSmrg ;; 38469418810dSmrg lcc*) 38479418810dSmrg # Lucid 38489418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 38499418810dSmrg ;; 38509bd41f2cSmrg *) 38519bd41f2cSmrg ;; 38529bd41f2cSmrg esac 38539bd41f2cSmrg ;; 38549418810dSmrg sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 38559418810dSmrg case $cc_basename in 38569418810dSmrg CC*) 38579418810dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 38589418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 38599418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 38609418810dSmrg ;; 38619418810dSmrg esac 38629bd41f2cSmrg ;; 38639418810dSmrg tandem*) 38649418810dSmrg case $cc_basename in 38659418810dSmrg NCC*) 38669418810dSmrg # NonStop-UX NCC 3.20 38679418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 38689418810dSmrg ;; 38699bd41f2cSmrg *) 38709bd41f2cSmrg ;; 38719418810dSmrg esac 38729bd41f2cSmrg ;; 38739418810dSmrg vxworks*) 38749bd41f2cSmrg ;; 38759bd41f2cSmrg *) 38769418810dSmrg _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 38779bd41f2cSmrg ;; 38789bd41f2cSmrg esac 38799418810dSmrg fi 38809418810dSmrg], 38819418810dSmrg[ 38829418810dSmrg if test "$GCC" = yes; then 38839418810dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 38849418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 38859418810dSmrg 38869418810dSmrg case $host_os in 38879418810dSmrg aix*) 38889418810dSmrg # All AIX code is PIC. 38899418810dSmrg if test "$host_cpu" = ia64; then 38909418810dSmrg # AIX 5 now supports IA64 processor 38919418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 38929418810dSmrg fi 38939418810dSmrg ;; 38949418810dSmrg 38959418810dSmrg amigaos*) 38969418810dSmrg case $host_cpu in 38979418810dSmrg powerpc) 38989418810dSmrg # see comment about AmigaOS4 .so support 38999418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 39009418810dSmrg ;; 39019418810dSmrg m68k) 39029418810dSmrg # FIXME: we need at least 68020 code to build shared libraries, but 39039418810dSmrg # adding the `-m68020' flag to GCC prevents building anything better, 39049418810dSmrg # like `-m68040'. 39059418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 39069418810dSmrg ;; 39079418810dSmrg esac 39089418810dSmrg ;; 39099418810dSmrg 39109418810dSmrg beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 39119418810dSmrg # PIC is the default for these OSes. 39129418810dSmrg ;; 39139418810dSmrg 39149418810dSmrg mingw* | cygwin* | pw32* | os2* | cegcc*) 39159418810dSmrg # This hack is so that the source file can tell whether it is being 39169418810dSmrg # built for inclusion in a dll (and should export symbols for example). 39179418810dSmrg # Although the cygwin gcc ignores -fPIC, still need this for old-style 39189418810dSmrg # (--disable-auto-import) libraries 39199418810dSmrg m4_if([$1], [GCJ], [], 39209418810dSmrg [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 39219418810dSmrg ;; 39229418810dSmrg 39239418810dSmrg darwin* | rhapsody*) 39249418810dSmrg # PIC is the default on this platform 39259418810dSmrg # Common symbols not allowed in MH_DYLIB files 39269418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 39279418810dSmrg ;; 39289418810dSmrg 39299418810dSmrg hpux*) 39309418810dSmrg # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 39319418810dSmrg # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 39329418810dSmrg # sets the default TLS model and affects inlining. 39339418810dSmrg case $host_cpu in 39349418810dSmrg hppa*64*) 39359418810dSmrg # +Z the default 39369bd41f2cSmrg ;; 39379bd41f2cSmrg *) 39389418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 39399bd41f2cSmrg ;; 39409418810dSmrg esac 39419418810dSmrg ;; 39429418810dSmrg 39439418810dSmrg interix[[3-9]]*) 39449418810dSmrg # Interix 3.x gcc -fpic/-fPIC options generate broken code. 39459418810dSmrg # Instead, we relocate shared libraries at runtime. 39469418810dSmrg ;; 39479418810dSmrg 39489418810dSmrg msdosdjgpp*) 39499418810dSmrg # Just because we use GCC doesn't mean we suddenly get shared libraries 39509418810dSmrg # on systems that don't support them. 39519418810dSmrg _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 39529418810dSmrg enable_shared=no 39539418810dSmrg ;; 39549418810dSmrg 39559418810dSmrg *nto* | *qnx*) 39569418810dSmrg # QNX uses GNU C++, but need to define -shared option too, otherwise 39579418810dSmrg # it will coredump. 39589418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 39599418810dSmrg ;; 39609418810dSmrg 39619418810dSmrg sysv4*MP*) 39629418810dSmrg if test -d /usr/nec; then 39639418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 39649418810dSmrg fi 39659418810dSmrg ;; 39669418810dSmrg 39679418810dSmrg *) 39689418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 39699418810dSmrg ;; 39709bd41f2cSmrg esac 39719418810dSmrg else 39729418810dSmrg # PORTME Check for flag to pass linker flags through the system compiler. 39739418810dSmrg case $host_os in 39749418810dSmrg aix*) 39759418810dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 39769418810dSmrg if test "$host_cpu" = ia64; then 39779418810dSmrg # AIX 5 now supports IA64 processor 39789418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 39799418810dSmrg else 39809418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 39819418810dSmrg fi 39829418810dSmrg ;; 39839418810dSmrg 39849418810dSmrg mingw* | cygwin* | pw32* | os2* | cegcc*) 39859418810dSmrg # This hack is so that the source file can tell whether it is being 39869418810dSmrg # built for inclusion in a dll (and should export symbols for example). 39879418810dSmrg m4_if([$1], [GCJ], [], 39889418810dSmrg [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 39899418810dSmrg ;; 39909418810dSmrg 39919418810dSmrg hpux9* | hpux10* | hpux11*) 39929418810dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 39939418810dSmrg # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 39949418810dSmrg # not for PA HP-UX. 39959418810dSmrg case $host_cpu in 39969418810dSmrg hppa*64*|ia64*) 39979418810dSmrg # +Z the default 39989bd41f2cSmrg ;; 39999bd41f2cSmrg *) 40009418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 40019bd41f2cSmrg ;; 40029418810dSmrg esac 40039418810dSmrg # Is there a better lt_prog_compiler_static that works with the bundled CC? 40049418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 40059418810dSmrg ;; 40069bd41f2cSmrg 40079418810dSmrg irix5* | irix6* | nonstopux*) 40089418810dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 40099418810dSmrg # PIC (with -KPIC) is the default. 40109418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 40119418810dSmrg ;; 40129bd41f2cSmrg 40139418810dSmrg linux* | k*bsd*-gnu) 40149418810dSmrg case $cc_basename in 40159418810dSmrg # old Intel for x86_64 which still supported -KPIC. 40169418810dSmrg ecc*) 40179418810dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 40189418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 40199418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 40209418810dSmrg ;; 40219418810dSmrg # icc used to be incompatible with GCC. 40229418810dSmrg # ICC 10 doesn't accept -KPIC any more. 40239418810dSmrg icc* | ifort*) 40249418810dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 40259418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 40269418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 40279418810dSmrg ;; 40289418810dSmrg # Lahey Fortran 8.1. 40299418810dSmrg lf95*) 40309418810dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 40319418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' 40329418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' 40339418810dSmrg ;; 40349418810dSmrg pgcc* | pgf77* | pgf90* | pgf95*) 40359418810dSmrg # Portland Group compilers (*not* the Pentium gcc compiler, 40369418810dSmrg # which looks to be a dead project) 40379418810dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 40389418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 40399418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 40409418810dSmrg ;; 40419418810dSmrg ccc*) 40429418810dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 40439418810dSmrg # All Alpha code is PIC. 40449418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 40459418810dSmrg ;; 40469418810dSmrg xl*) 40479418810dSmrg # IBM XL C 8.0/Fortran 10.1 on PPC 40489418810dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 40499418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' 40509418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' 40519418810dSmrg ;; 40529418810dSmrg *) 40539418810dSmrg case `$CC -V 2>&1 | sed 5q` in 40549418810dSmrg *Sun\ C*) 40559418810dSmrg # Sun C 5.9 40569418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 40579418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 40589418810dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 40599418810dSmrg ;; 40609418810dSmrg *Sun\ F*) 40619418810dSmrg # Sun Fortran 8.3 passes all unrecognized flags to the linker 40629418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 40639418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 40649418810dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='' 40659418810dSmrg ;; 40669418810dSmrg esac 40679418810dSmrg ;; 40689418810dSmrg esac 40699418810dSmrg ;; 40709bd41f2cSmrg 40719418810dSmrg newsos6) 40729418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 40739418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 40749418810dSmrg ;; 40759bd41f2cSmrg 40769418810dSmrg *nto* | *qnx*) 40779418810dSmrg # QNX uses GNU C++, but need to define -shared option too, otherwise 40789418810dSmrg # it will coredump. 40799418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 40809418810dSmrg ;; 40819bd41f2cSmrg 40829418810dSmrg osf3* | osf4* | osf5*) 40839418810dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 40849418810dSmrg # All OSF/1 code is PIC. 40859418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 40869418810dSmrg ;; 40879bd41f2cSmrg 40889418810dSmrg rdos*) 40899418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 40909418810dSmrg ;; 40919bd41f2cSmrg 40929418810dSmrg solaris*) 40939418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 40949418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 40959418810dSmrg case $cc_basename in 40969418810dSmrg f77* | f90* | f95*) 40979418810dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; 40989418810dSmrg *) 40999418810dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; 41009418810dSmrg esac 41019418810dSmrg ;; 41029bd41f2cSmrg 41039418810dSmrg sunos4*) 41049418810dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 41059418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 41069418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 41079418810dSmrg ;; 41089bd41f2cSmrg 41099418810dSmrg sysv4 | sysv4.2uw2* | sysv4.3*) 41109418810dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 41119418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 41129418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 41139418810dSmrg ;; 41149bd41f2cSmrg 41159418810dSmrg sysv4*MP*) 41169418810dSmrg if test -d /usr/nec ;then 41179418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' 41189418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 41199418810dSmrg fi 41209418810dSmrg ;; 41219bd41f2cSmrg 41229418810dSmrg sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 41239418810dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 41249418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 41259418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 41269418810dSmrg ;; 41279bd41f2cSmrg 41289418810dSmrg unicos*) 41299418810dSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 41309418810dSmrg _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 41319418810dSmrg ;; 41329bd41f2cSmrg 41339418810dSmrg uts4*) 41349418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 41359418810dSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 41369418810dSmrg ;; 41379bd41f2cSmrg 41389418810dSmrg *) 41399418810dSmrg _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 41409418810dSmrg ;; 41419418810dSmrg esac 41429418810dSmrg fi 41439418810dSmrg]) 41449418810dSmrgcase $host_os in 41459418810dSmrg # For platforms which do not support PIC, -DPIC is meaningless: 41469418810dSmrg *djgpp*) 41479418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)= 41489418810dSmrg ;; 41499418810dSmrg *) 41509418810dSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" 41519418810dSmrg ;; 41529418810dSmrgesac 41539418810dSmrgAC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) 41549418810dSmrg_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], 41559418810dSmrg [How to pass a linker flag through the compiler]) 41569bd41f2cSmrg 41579418810dSmrg# 41589418810dSmrg# Check to make sure the PIC flag actually works. 41599418810dSmrg# 41609418810dSmrgif test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then 41619418810dSmrg _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], 41629418810dSmrg [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], 41639418810dSmrg [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], 41649418810dSmrg [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in 41659418810dSmrg "" | " "*) ;; 41669418810dSmrg *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; 41679418810dSmrg esac], 41689418810dSmrg [_LT_TAGVAR(lt_prog_compiler_pic, $1)= 41699418810dSmrg _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) 41709418810dSmrgfi 41719418810dSmrg_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], 41729418810dSmrg [Additional compiler flags for building library objects]) 4173d075918cSmrg 41749418810dSmrg# 41759418810dSmrg# Check to make sure the static flag actually works. 41769418810dSmrg# 41779418810dSmrgwl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" 41789418810dSmrg_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], 41799418810dSmrg _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), 41809418810dSmrg $lt_tmp_static_flag, 41819418810dSmrg [], 41829418810dSmrg [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) 41839418810dSmrg_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], 41849418810dSmrg [Compiler flag to prevent dynamic linking]) 41859418810dSmrg])# _LT_COMPILER_PIC 41869bd41f2cSmrg 41879418810dSmrg 41889418810dSmrg# _LT_LINKER_SHLIBS([TAGNAME]) 41899418810dSmrg# ---------------------------- 41909418810dSmrg# See if the linker supports building shared libraries. 41919418810dSmrgm4_defun([_LT_LINKER_SHLIBS], 41929418810dSmrg[AC_REQUIRE([LT_PATH_LD])dnl 41939418810dSmrgAC_REQUIRE([LT_PATH_NM])dnl 41949418810dSmrgm4_require([_LT_FILEUTILS_DEFAULTS])dnl 41959418810dSmrgm4_require([_LT_DECL_EGREP])dnl 41969418810dSmrgm4_require([_LT_DECL_SED])dnl 41979418810dSmrgm4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl 41989418810dSmrgm4_require([_LT_TAG_COMPILER])dnl 41999418810dSmrgAC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 42009418810dSmrgm4_if([$1], [CXX], [ 42019418810dSmrg _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 42029418810dSmrg case $host_os in 42039418810dSmrg aix[[4-9]]*) 42049418810dSmrg # If we're using GNU nm, then we don't want the "-C" option. 42059418810dSmrg # -C means demangle to AIX nm, but means don't demangle with GNU nm 42069418810dSmrg if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 42079418810dSmrg _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' 42089418810dSmrg else 42099418810dSmrg _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' 42109bd41f2cSmrg fi 42119bd41f2cSmrg ;; 42129418810dSmrg pw32*) 42139418810dSmrg _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" 42149bd41f2cSmrg ;; 42159418810dSmrg cygwin* | mingw* | cegcc*) 42169418810dSmrg _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' 42179418810dSmrg ;; 4218c4f7863aSmrg linux* | k*bsd*-gnu) 4219c4f7863aSmrg _LT_TAGVAR(link_all_deplibs, $1)=no 4220c4f7863aSmrg ;; 42219418810dSmrg *) 42229418810dSmrg _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 42239418810dSmrg ;; 42249418810dSmrg esac 42259418810dSmrg _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 42269418810dSmrg], [ 42279418810dSmrg runpath_var= 42289418810dSmrg _LT_TAGVAR(allow_undefined_flag, $1)= 42299418810dSmrg _LT_TAGVAR(always_export_symbols, $1)=no 42309418810dSmrg _LT_TAGVAR(archive_cmds, $1)= 42319418810dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)= 42329418810dSmrg _LT_TAGVAR(compiler_needs_object, $1)=no 42339418810dSmrg _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 42349418810dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)= 42359418810dSmrg _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 42369418810dSmrg _LT_TAGVAR(hardcode_automatic, $1)=no 42379418810dSmrg _LT_TAGVAR(hardcode_direct, $1)=no 42389418810dSmrg _LT_TAGVAR(hardcode_direct_absolute, $1)=no 42399418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 42409418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 42419418810dSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)= 42429418810dSmrg _LT_TAGVAR(hardcode_minus_L, $1)=no 42439418810dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 42449418810dSmrg _LT_TAGVAR(inherit_rpath, $1)=no 42459418810dSmrg _LT_TAGVAR(link_all_deplibs, $1)=unknown 42469418810dSmrg _LT_TAGVAR(module_cmds, $1)= 42479418810dSmrg _LT_TAGVAR(module_expsym_cmds, $1)= 42489418810dSmrg _LT_TAGVAR(old_archive_from_new_cmds, $1)= 42499418810dSmrg _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= 42509418810dSmrg _LT_TAGVAR(thread_safe_flag_spec, $1)= 42519418810dSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)= 42529418810dSmrg # include_expsyms should be a list of space-separated symbols to be *always* 42539418810dSmrg # included in the symbol list 42549418810dSmrg _LT_TAGVAR(include_expsyms, $1)= 42559418810dSmrg # exclude_expsyms can be an extended regexp of symbols to exclude 42569418810dSmrg # it will be wrapped by ` (' and `)$', so one must not match beginning or 42579418810dSmrg # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 42589418810dSmrg # as well as any symbol that contains `d'. 42599418810dSmrg _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 42609418810dSmrg # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 42619418810dSmrg # platforms (ab)use it in PIC code, but their linkers get confused if 42629418810dSmrg # the symbol is explicitly referenced. Since portable code cannot 42639418810dSmrg # rely on this symbol name, it's probably fine to never include it in 42649418810dSmrg # preloaded symbol tables. 42659418810dSmrg # Exclude shared library initialization/finalization symbols. 42669418810dSmrgdnl Note also adjust exclude_expsyms for C++ above. 42679418810dSmrg extract_expsyms_cmds= 42689bd41f2cSmrg 42699418810dSmrg case $host_os in 42709418810dSmrg cygwin* | mingw* | pw32* | cegcc*) 42719418810dSmrg # FIXME: the MSVC++ port hasn't been tested in a loooong time 42729418810dSmrg # When not using gcc, we currently assume that we are using 42739418810dSmrg # Microsoft Visual C++. 42749418810dSmrg if test "$GCC" != yes; then 42759418810dSmrg with_gnu_ld=no 42769bd41f2cSmrg fi 42779bd41f2cSmrg ;; 42789418810dSmrg interix*) 42799418810dSmrg # we just hope/assume this is gcc and not c89 (= MSVC++) 42809418810dSmrg with_gnu_ld=yes 42819418810dSmrg ;; 42829418810dSmrg openbsd*) 42839418810dSmrg with_gnu_ld=no 42849418810dSmrg ;; 42859bd41f2cSmrg esac 42869bd41f2cSmrg 42879418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=yes 42889418810dSmrg if test "$with_gnu_ld" = yes; then 42899418810dSmrg # If archive_cmds runs LD, not CC, wlarc should be empty 42909418810dSmrg wlarc='${wl}' 42919bd41f2cSmrg 42929418810dSmrg # Set some defaults for GNU ld with shared library support. These 42939418810dSmrg # are reset later if shared libraries are not supported. Putting them 42949418810dSmrg # here allows them to be overridden if necessary. 42959418810dSmrg runpath_var=LD_RUN_PATH 42969418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 42979418810dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 42989418810dSmrg # ancient GNU ld didn't support --whole-archive et. al. 42999418810dSmrg if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 43009418810dSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 43019418810dSmrg else 43029418810dSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)= 43039418810dSmrg fi 43049418810dSmrg supports_anon_versioning=no 43059418810dSmrg case `$LD -v 2>&1` in 43069418810dSmrg *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 43079418810dSmrg *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 43089418810dSmrg *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 43099418810dSmrg *\ 2.11.*) ;; # other 2.11 versions 43109418810dSmrg *) supports_anon_versioning=yes ;; 43119418810dSmrg esac 43129bd41f2cSmrg 43139418810dSmrg # See if GNU ld supports shared libraries. 43149418810dSmrg case $host_os in 43159418810dSmrg aix[[3-9]]*) 43169418810dSmrg # On AIX/PPC, the GNU linker is very broken 43179418810dSmrg if test "$host_cpu" != ia64; then 43189418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 43199418810dSmrg cat <<_LT_EOF 1>&2 43209bd41f2cSmrg 43219418810dSmrg*** Warning: the GNU linker, at least up to release 2.9.1, is reported 43229418810dSmrg*** to be unable to reliably create shared libraries on AIX. 43239418810dSmrg*** Therefore, libtool is disabling shared libraries support. If you 43249418810dSmrg*** really care for shared libraries, you may want to modify your PATH 43259418810dSmrg*** so that a non-GNU linker is found, and then restart. 43269bd41f2cSmrg 43279418810dSmrg_LT_EOF 43289418810dSmrg fi 43299418810dSmrg ;; 43309bd41f2cSmrg 43319418810dSmrg amigaos*) 43329418810dSmrg case $host_cpu in 43339418810dSmrg powerpc) 43349418810dSmrg # see comment about AmigaOS4 .so support 43359418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 43369418810dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='' 43379418810dSmrg ;; 43389418810dSmrg m68k) 43399418810dSmrg _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)' 43409418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 43419418810dSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 43429418810dSmrg ;; 43439418810dSmrg esac 43449418810dSmrg ;; 43459bd41f2cSmrg 43469418810dSmrg beos*) 43479418810dSmrg if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 43489418810dSmrg _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 43499418810dSmrg # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 43509418810dSmrg # support --undefined. This deserves some investigation. FIXME 43519418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 43529418810dSmrg else 43539418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 43549418810dSmrg fi 43559418810dSmrg ;; 43569bd41f2cSmrg 43579418810dSmrg cygwin* | mingw* | pw32* | cegcc*) 43589418810dSmrg # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 43599418810dSmrg # as there is no search path for DLLs. 43609418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 43619418810dSmrg _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 43629418810dSmrg _LT_TAGVAR(always_export_symbols, $1)=no 43639418810dSmrg _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 43649418810dSmrg _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' 43659418810dSmrg 43669418810dSmrg if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 43679418810dSmrg _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' 43689418810dSmrg # If the export-symbols file already is a .def file (1st line 43699418810dSmrg # is EXPORTS), use it as is; otherwise, prepend... 43709418810dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 43719418810dSmrg cp $export_symbols $output_objdir/$soname.def; 43729418810dSmrg else 43739418810dSmrg echo EXPORTS > $output_objdir/$soname.def; 43749418810dSmrg cat $export_symbols >> $output_objdir/$soname.def; 43759418810dSmrg fi~ 43769418810dSmrg $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 43779418810dSmrg else 43789418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 43799418810dSmrg fi 43809418810dSmrg ;; 43819bd41f2cSmrg 43829418810dSmrg interix[[3-9]]*) 43839418810dSmrg _LT_TAGVAR(hardcode_direct, $1)=no 43849418810dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 43859418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 43869418810dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 43879418810dSmrg # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 43889418810dSmrg # Instead, shared libraries are loaded at an image base (0x10000000 by 43899418810dSmrg # default) and relocated if they conflict, which is a slow very memory 43909418810dSmrg # consuming and fragmenting process. To avoid this, we pick a random, 43919418810dSmrg # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 43929418810dSmrg # time. Moving up from 0x10000000 also allows more sbrk(2) space. 43939418810dSmrg _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' 43949418810dSmrg _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' 43959418810dSmrg ;; 43969bd41f2cSmrg 43979418810dSmrg gnu* | linux* | tpf* | k*bsd*-gnu) 43989418810dSmrg tmp_diet=no 43999418810dSmrg if test "$host_os" = linux-dietlibc; then 44009418810dSmrg case $cc_basename in 44019418810dSmrg diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 44029418810dSmrg esac 44039418810dSmrg fi 44049418810dSmrg if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 44059418810dSmrg && test "$tmp_diet" = no 44069418810dSmrg then 44079418810dSmrg tmp_addflag= 44089418810dSmrg tmp_sharedflag='-shared' 44099418810dSmrg case $cc_basename,$host_cpu in 44109418810dSmrg pgcc*) # Portland Group C compiler 44119418810dSmrg _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' 44129418810dSmrg tmp_addflag=' $pic_flag' 44139418810dSmrg ;; 44149418810dSmrg pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 44159418810dSmrg _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' 44169418810dSmrg tmp_addflag=' $pic_flag -Mnomain' ;; 44179418810dSmrg ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 44189418810dSmrg tmp_addflag=' -i_dynamic' ;; 44199418810dSmrg efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 44209418810dSmrg tmp_addflag=' -i_dynamic -nofor_main' ;; 44219418810dSmrg ifc* | ifort*) # Intel Fortran compiler 44229418810dSmrg tmp_addflag=' -nofor_main' ;; 44239418810dSmrg lf95*) # Lahey Fortran 8.1 44249418810dSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)= 44259418810dSmrg tmp_sharedflag='--shared' ;; 44269418810dSmrg xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) 44279418810dSmrg tmp_sharedflag='-qmkshrobj' 44289418810dSmrg tmp_addflag= ;; 44299418810dSmrg esac 44309418810dSmrg case `$CC -V 2>&1 | sed 5q` in 44319418810dSmrg *Sun\ C*) # Sun C 5.9 44329418810dSmrg _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' 44339418810dSmrg _LT_TAGVAR(compiler_needs_object, $1)=yes 44349418810dSmrg tmp_sharedflag='-G' ;; 44359418810dSmrg *Sun\ F*) # Sun Fortran 8.3 44369418810dSmrg tmp_sharedflag='-G' ;; 44379418810dSmrg esac 44389418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 44399bd41f2cSmrg 44409418810dSmrg if test "x$supports_anon_versioning" = xyes; then 44419418810dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 44429418810dSmrg cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 44439418810dSmrg echo "local: *; };" >> $output_objdir/$libname.ver~ 44449418810dSmrg $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 44459418810dSmrg fi 44469bd41f2cSmrg 44479418810dSmrg case $cc_basename in 44489418810dSmrg xlf*) 44499418810dSmrg # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 44509418810dSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' 44519418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 44529418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' 44539418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 44549418810dSmrg if test "x$supports_anon_versioning" = xyes; then 44559418810dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 44569418810dSmrg cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 44579418810dSmrg echo "local: *; };" >> $output_objdir/$libname.ver~ 44589418810dSmrg $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 44599418810dSmrg fi 44609418810dSmrg ;; 44619418810dSmrg esac 44629418810dSmrg else 44639418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 44649418810dSmrg fi 44659418810dSmrg ;; 44669bd41f2cSmrg 44679418810dSmrg netbsd*) 44689418810dSmrg if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 44699418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 44709418810dSmrg wlarc= 44719418810dSmrg else 44729418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 44739418810dSmrg _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' 44749418810dSmrg fi 44759418810dSmrg ;; 44769bd41f2cSmrg 44779418810dSmrg solaris*) 44789418810dSmrg if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 44799418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 44809418810dSmrg cat <<_LT_EOF 1>&2 44819bd41f2cSmrg 44829418810dSmrg*** Warning: The releases 2.8.* of the GNU linker cannot reliably 44839418810dSmrg*** create shared libraries on Solaris systems. Therefore, libtool 44849418810dSmrg*** is disabling shared libraries support. We urge you to upgrade GNU 44859418810dSmrg*** binutils to release 2.9.1 or newer. Another option is to modify 44869418810dSmrg*** your PATH or compiler configuration so that the native linker is 44879418810dSmrg*** used, and then restart. 44889bd41f2cSmrg 44899418810dSmrg_LT_EOF 44909418810dSmrg elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 44919418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 44929418810dSmrg _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' 44939418810dSmrg else 44949418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 44959418810dSmrg fi 44969418810dSmrg ;; 44979bd41f2cSmrg 44989418810dSmrg sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 44999418810dSmrg case `$LD -v 2>&1` in 45009418810dSmrg *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 45019418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 45029418810dSmrg cat <<_LT_EOF 1>&2 45039bd41f2cSmrg 45049418810dSmrg*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 45059418810dSmrg*** reliably create shared libraries on SCO systems. Therefore, libtool 45069418810dSmrg*** is disabling shared libraries support. We urge you to upgrade GNU 45079418810dSmrg*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 45089418810dSmrg*** your PATH or compiler configuration so that the native linker is 45099418810dSmrg*** used, and then restart. 45109bd41f2cSmrg 45119418810dSmrg_LT_EOF 45129418810dSmrg ;; 45139418810dSmrg *) 45149418810dSmrg # For security reasons, it is highly recommended that you always 45159418810dSmrg # use absolute paths for naming shared libraries, and exclude the 45169418810dSmrg # DT_RUNPATH tag from executables and libraries. But doing so 45179418810dSmrg # requires that you compile everything twice, which is a pain. 45189418810dSmrg if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 45199418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 45209418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 45219418810dSmrg _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' 45229418810dSmrg else 45239418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 45249418810dSmrg fi 45259418810dSmrg ;; 45269418810dSmrg esac 45279418810dSmrg ;; 45289bd41f2cSmrg 45299418810dSmrg sunos4*) 45309418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 45319418810dSmrg wlarc= 45329418810dSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 45339418810dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 45349418810dSmrg ;; 45359bd41f2cSmrg 45369418810dSmrg *) 45379418810dSmrg if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 45389418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 45399418810dSmrg _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' 45409418810dSmrg else 45419418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 45429418810dSmrg fi 45439418810dSmrg ;; 45449418810dSmrg esac 45459bd41f2cSmrg 45469418810dSmrg if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then 45479418810dSmrg runpath_var= 45489418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 45499418810dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)= 45509418810dSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)= 45519418810dSmrg fi 45529418810dSmrg else 45539418810dSmrg # PORTME fill in a description of your system's linker (not GNU ld) 45549418810dSmrg case $host_os in 45559418810dSmrg aix3*) 45569418810dSmrg _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 45579418810dSmrg _LT_TAGVAR(always_export_symbols, $1)=yes 45589418810dSmrg _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' 45599418810dSmrg # Note: this linker hardcodes the directories in LIBPATH if there 45609418810dSmrg # are no directories specified by -L. 45619418810dSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 45629418810dSmrg if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 45639418810dSmrg # Neither direct hardcoding nor static linking is supported with a 45649418810dSmrg # broken collect2. 45659418810dSmrg _LT_TAGVAR(hardcode_direct, $1)=unsupported 45669418810dSmrg fi 45679418810dSmrg ;; 45689bd41f2cSmrg 45699418810dSmrg aix[[4-9]]*) 45709418810dSmrg if test "$host_cpu" = ia64; then 45719418810dSmrg # On IA64, the linker does run time linking by default, so we don't 45729418810dSmrg # have to do anything special. 45739418810dSmrg aix_use_runtimelinking=no 45749418810dSmrg exp_sym_flag='-Bexport' 45759418810dSmrg no_entry_flag="" 45769418810dSmrg else 45779418810dSmrg # If we're using GNU nm, then we don't want the "-C" option. 45789418810dSmrg # -C means demangle to AIX nm, but means don't demangle with GNU nm 45799418810dSmrg if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 45809418810dSmrg _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' 45819418810dSmrg else 45829418810dSmrg _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' 45839418810dSmrg fi 45849418810dSmrg aix_use_runtimelinking=no 45859bd41f2cSmrg 45869418810dSmrg # Test if we are trying to use run time linking or normal 45879418810dSmrg # AIX style linking. If -brtl is somewhere in LDFLAGS, we 45889418810dSmrg # need to do runtime linking. 45899418810dSmrg case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 45909418810dSmrg for ld_flag in $LDFLAGS; do 45919418810dSmrg if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 45929418810dSmrg aix_use_runtimelinking=yes 45939418810dSmrg break 45949418810dSmrg fi 45959418810dSmrg done 45969418810dSmrg ;; 45979418810dSmrg esac 45989bd41f2cSmrg 45999418810dSmrg exp_sym_flag='-bexport' 46009418810dSmrg no_entry_flag='-bnoentry' 46019418810dSmrg fi 46029418810dSmrg 46039418810dSmrg # When large executables or shared objects are built, AIX ld can 46049418810dSmrg # have problems creating the table of contents. If linking a library 46059418810dSmrg # or program results in "error TOC overflow" add -mminimal-toc to 46069418810dSmrg # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 46079418810dSmrg # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 46089bd41f2cSmrg 46099418810dSmrg _LT_TAGVAR(archive_cmds, $1)='' 46109418810dSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 46119418810dSmrg _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 46129418810dSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 46139418810dSmrg _LT_TAGVAR(link_all_deplibs, $1)=yes 46149418810dSmrg _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' 46159bd41f2cSmrg 46169418810dSmrg if test "$GCC" = yes; then 46179418810dSmrg case $host_os in aix4.[[012]]|aix4.[[012]].*) 46189418810dSmrg # We only want to do this on AIX 4.2 and lower, the check 46199418810dSmrg # below for broken collect2 doesn't work under 4.3+ 46209418810dSmrg collect2name=`${CC} -print-prog-name=collect2` 46219418810dSmrg if test -f "$collect2name" && 46229418810dSmrg strings "$collect2name" | $GREP resolve_lib_name >/dev/null 46239418810dSmrg then 46249418810dSmrg # We have reworked collect2 46259418810dSmrg : 46269418810dSmrg else 46279418810dSmrg # We have old collect2 46289418810dSmrg _LT_TAGVAR(hardcode_direct, $1)=unsupported 46299418810dSmrg # It fails to find uninstalled libraries when the uninstalled 46309418810dSmrg # path is not listed in the libpath. Setting hardcode_minus_L 46319418810dSmrg # to unsupported forces relinking 46329418810dSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 46339418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 46349418810dSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)= 46359418810dSmrg fi 46369418810dSmrg ;; 46379418810dSmrg esac 46389418810dSmrg shared_flag='-shared' 46399418810dSmrg if test "$aix_use_runtimelinking" = yes; then 46409418810dSmrg shared_flag="$shared_flag "'${wl}-G' 46419418810dSmrg fi 4642c4f7863aSmrg _LT_TAGVAR(link_all_deplibs, $1)=no 46439418810dSmrg else 46449418810dSmrg # not using gcc 46459418810dSmrg if test "$host_cpu" = ia64; then 46469418810dSmrg # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 46479418810dSmrg # chokes on -Wl,-G. The following line is correct: 46489418810dSmrg shared_flag='-G' 46499418810dSmrg else 46509418810dSmrg if test "$aix_use_runtimelinking" = yes; then 46519418810dSmrg shared_flag='${wl}-G' 46529418810dSmrg else 46539418810dSmrg shared_flag='${wl}-bM:SRE' 46549418810dSmrg fi 46559418810dSmrg fi 46569418810dSmrg fi 46579bd41f2cSmrg 46589418810dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' 46599418810dSmrg # It seems that -bexpall does not export symbols beginning with 46609418810dSmrg # underscore (_), so it is better to generate a list of symbols to export. 46619418810dSmrg _LT_TAGVAR(always_export_symbols, $1)=yes 46629418810dSmrg if test "$aix_use_runtimelinking" = yes; then 46639418810dSmrg # Warning - without using the other runtime loading flags (-brtl), 46649418810dSmrg # -berok will link without error, but may produce a broken library. 46659418810dSmrg _LT_TAGVAR(allow_undefined_flag, $1)='-berok' 46669418810dSmrg # Determine the default libpath from the value encoded in an 46679418810dSmrg # empty executable. 46689418810dSmrg _LT_SYS_MODULE_PATH_AIX 46699418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 46709418810dSmrg _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" 46719418810dSmrg else 46729418810dSmrg if test "$host_cpu" = ia64; then 46739418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 46749418810dSmrg _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 46759418810dSmrg _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" 46769418810dSmrg else 46779418810dSmrg # Determine the default libpath from the value encoded in an 46789418810dSmrg # empty executable. 46799418810dSmrg _LT_SYS_MODULE_PATH_AIX 46809418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 46819418810dSmrg # Warning - without using the other run time loading flags, 46829418810dSmrg # -berok will link without error, but may produce a broken library. 46839418810dSmrg _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 46849418810dSmrg _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 46859418810dSmrg # Exported symbols can be pulled into shared objects from archives 46869418810dSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 46879418810dSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 46889418810dSmrg # This is similar to how AIX traditionally builds its shared libraries. 46899418810dSmrg _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' 46909418810dSmrg fi 46919418810dSmrg fi 46929418810dSmrg ;; 46939bd41f2cSmrg 46949418810dSmrg amigaos*) 46959418810dSmrg case $host_cpu in 46969418810dSmrg powerpc) 46979418810dSmrg # see comment about AmigaOS4 .so support 46989418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 46999418810dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='' 47009418810dSmrg ;; 47019418810dSmrg m68k) 47029418810dSmrg _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)' 47039418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 47049418810dSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 47059418810dSmrg ;; 47069418810dSmrg esac 47079418810dSmrg ;; 47089bd41f2cSmrg 47099418810dSmrg bsdi[[45]]*) 47109418810dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic 47119418810dSmrg ;; 47129bd41f2cSmrg 47139418810dSmrg cygwin* | mingw* | pw32* | cegcc*) 47149418810dSmrg # When not using gcc, we currently assume that we are using 47159418810dSmrg # Microsoft Visual C++. 47169418810dSmrg # hardcode_libdir_flag_spec is actually meaningless, as there is 47179418810dSmrg # no search path for DLLs. 47189418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 47199418810dSmrg _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 47209418810dSmrg # Tell ltmain to make .lib files, not .a files. 47219418810dSmrg libext=lib 47229418810dSmrg # Tell ltmain to make .dll files, not .so files. 47239418810dSmrg shrext_cmds=".dll" 47249418810dSmrg # FIXME: Setting linknames here is a bad hack. 47259418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 47269418810dSmrg # The linker will automatically build a .lib file if we build a DLL. 47279418810dSmrg _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 47289418810dSmrg # FIXME: Should let the user specify the lib program. 47299418810dSmrg _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' 47309418810dSmrg _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' 47319418810dSmrg _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 47329418810dSmrg ;; 47339bd41f2cSmrg 47349418810dSmrg darwin* | rhapsody*) 47359418810dSmrg _LT_DARWIN_LINKER_FEATURES($1) 47369418810dSmrg ;; 47379bd41f2cSmrg 47389418810dSmrg dgux*) 47399418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 47409418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 47419418810dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 47429418810dSmrg ;; 47439bd41f2cSmrg 47449418810dSmrg freebsd1*) 47459418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 47469418810dSmrg ;; 47479bd41f2cSmrg 47489418810dSmrg # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 47499418810dSmrg # support. Future versions do this automatically, but an explicit c++rt0.o 47509418810dSmrg # does not break anything, and helps significantly (at the cost of a little 47519418810dSmrg # extra space). 47529418810dSmrg freebsd2.2*) 47539418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 47549418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 47559418810dSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 47569418810dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 47579418810dSmrg ;; 47589bd41f2cSmrg 47599418810dSmrg # Unfortunately, older versions of FreeBSD 2 do not have this feature. 47609418810dSmrg freebsd2*) 47619418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 47629418810dSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 47639418810dSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 47649418810dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 47659418810dSmrg ;; 47669bd41f2cSmrg 47679418810dSmrg # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 47689418810dSmrg freebsd* | dragonfly*) 47699418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 47709418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 47719418810dSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 47729418810dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 47739418810dSmrg ;; 47749bd41f2cSmrg 47759418810dSmrg hpux9*) 47769418810dSmrg if test "$GCC" = yes; then 47779418810dSmrg _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' 47789418810dSmrg else 47799418810dSmrg _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' 47809418810dSmrg fi 47819418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 47829418810dSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 47839418810dSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 47849bd41f2cSmrg 47859418810dSmrg # hardcode_minus_L: Not really in the search PATH, 47869418810dSmrg # but as the default location of the library. 47879418810dSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 47889418810dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 47899418810dSmrg ;; 47909bd41f2cSmrg 47919418810dSmrg hpux10*) 47929418810dSmrg if test "$GCC" = yes -a "$with_gnu_ld" = no; then 47939418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 47949418810dSmrg else 47959418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 47969418810dSmrg fi 47979418810dSmrg if test "$with_gnu_ld" = no; then 47989418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 47999418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' 48009418810dSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 48019418810dSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 48029418810dSmrg _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 48039418810dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 48049418810dSmrg # hardcode_minus_L: Not really in the search PATH, 48059418810dSmrg # but as the default location of the library. 48069418810dSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 48079418810dSmrg fi 48089418810dSmrg ;; 48099bd41f2cSmrg 48109418810dSmrg hpux11*) 48119418810dSmrg if test "$GCC" = yes -a "$with_gnu_ld" = no; then 48129418810dSmrg case $host_cpu in 48139418810dSmrg hppa*64*) 48149418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 48159418810dSmrg ;; 48169418810dSmrg ia64*) 48179418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 48189418810dSmrg ;; 48199418810dSmrg *) 48209418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 48219418810dSmrg ;; 48229418810dSmrg esac 48239418810dSmrg else 48249418810dSmrg case $host_cpu in 48259418810dSmrg hppa*64*) 48269418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 48279418810dSmrg ;; 48289418810dSmrg ia64*) 48299418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 48309418810dSmrg ;; 48319418810dSmrg *) 48329418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 48339418810dSmrg ;; 48349418810dSmrg esac 48359418810dSmrg fi 48369418810dSmrg if test "$with_gnu_ld" = no; then 48379418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 48389418810dSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 48399bd41f2cSmrg 48409418810dSmrg case $host_cpu in 48419418810dSmrg hppa*64*|ia64*) 48429418810dSmrg _LT_TAGVAR(hardcode_direct, $1)=no 48439418810dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 48449418810dSmrg ;; 48459418810dSmrg *) 48469418810dSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 48479418810dSmrg _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 48489418810dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 48499418810dSmrg 48509418810dSmrg # hardcode_minus_L: Not really in the search PATH, 48519418810dSmrg # but as the default location of the library. 48529418810dSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 48539418810dSmrg ;; 48549418810dSmrg esac 48559418810dSmrg fi 48569bd41f2cSmrg ;; 48579418810dSmrg 48589418810dSmrg irix5* | irix6* | nonstopux*) 48599418810dSmrg if test "$GCC" = yes; then 48609418810dSmrg _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' 48619418810dSmrg # Try to use the -exported_symbol ld option, if it does not 48629418810dSmrg # work, assume that -exports_file does not work either and 48639418810dSmrg # implicitly export all symbols. 48649418810dSmrg save_LDFLAGS="$LDFLAGS" 48659418810dSmrg LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 48669418810dSmrg AC_LINK_IFELSE(int foo(void) {}, 48679418810dSmrg _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' 48689418810dSmrg ) 48699418810dSmrg LDFLAGS="$save_LDFLAGS" 48709418810dSmrg else 48719418810dSmrg _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' 48729418810dSmrg _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' 48739418810dSmrg fi 48749418810dSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 48759418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 48769418810dSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 48779418810dSmrg _LT_TAGVAR(inherit_rpath, $1)=yes 48789418810dSmrg _LT_TAGVAR(link_all_deplibs, $1)=yes 48799bd41f2cSmrg ;; 48809bd41f2cSmrg 48819418810dSmrg netbsd*) 48829418810dSmrg if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 48839418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 48849418810dSmrg else 48859418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 48869418810dSmrg fi 48879418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 48889418810dSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 48899418810dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 48909418810dSmrg ;; 48919bd41f2cSmrg 48929418810dSmrg newsos6) 48939418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 48949418810dSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 48959418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 48969418810dSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 48979418810dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 48989418810dSmrg ;; 48999bd41f2cSmrg 49009418810dSmrg *nto* | *qnx*) 49019418810dSmrg ;; 49029bd41f2cSmrg 49039418810dSmrg openbsd*) 49049418810dSmrg if test -f /usr/libexec/ld.so; then 49059418810dSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 49069418810dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 49079418810dSmrg _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 49089418810dSmrg if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 49099418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 49109418810dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 49119418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 49129418810dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 49139418810dSmrg else 49149418810dSmrg case $host_os in 49159418810dSmrg openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) 49169418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 49179418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 49189418810dSmrg ;; 49199418810dSmrg *) 49209418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 49219418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 49229418810dSmrg ;; 49239418810dSmrg esac 49249418810dSmrg fi 49259418810dSmrg else 49269418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 49279418810dSmrg fi 49289418810dSmrg ;; 49299bd41f2cSmrg 49309418810dSmrg os2*) 49319418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 49329418810dSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 49339418810dSmrg _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 49349418810dSmrg _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' 49359418810dSmrg _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 49369418810dSmrg ;; 49379bd41f2cSmrg 49389418810dSmrg osf3*) 49399418810dSmrg if test "$GCC" = yes; then 49409418810dSmrg _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 49419418810dSmrg _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' 49429418810dSmrg else 49439418810dSmrg _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 49449418810dSmrg _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' 49459418810dSmrg fi 49469418810dSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 49479418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 49489418810dSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 49499418810dSmrg ;; 49509bd41f2cSmrg 49519418810dSmrg osf4* | osf5*) # as osf3* with the addition of -msym flag 49529418810dSmrg if test "$GCC" = yes; then 49539418810dSmrg _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 49549418810dSmrg _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' 49559418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 49569418810dSmrg else 49579418810dSmrg _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 49589418810dSmrg _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' 49599418810dSmrg _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~ 49609418810dSmrg $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' 49619bd41f2cSmrg 49629418810dSmrg # Both c and cxx compiler support -rpath directly 49639418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 49649418810dSmrg fi 49659418810dSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 49669418810dSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 49679418810dSmrg ;; 49689bd41f2cSmrg 49699418810dSmrg solaris*) 49709418810dSmrg _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' 49719418810dSmrg if test "$GCC" = yes; then 49729418810dSmrg wlarc='${wl}' 49739418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 49749418810dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 49759418810dSmrg $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 49769418810dSmrg else 49779418810dSmrg case `$CC -V 2>&1` in 49789418810dSmrg *"Compilers 5.0"*) 49799418810dSmrg wlarc='' 49809418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 49819418810dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 49829418810dSmrg $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 49839418810dSmrg ;; 49849418810dSmrg *) 49859418810dSmrg wlarc='${wl}' 49869418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 49879418810dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 49889418810dSmrg $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 49899418810dSmrg ;; 49909418810dSmrg esac 49919418810dSmrg fi 49929418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 49939418810dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 49949418810dSmrg case $host_os in 49959418810dSmrg solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 49969418810dSmrg *) 49979418810dSmrg # The compiler driver will combine and reorder linker options, 49989418810dSmrg # but understands `-z linker_flag'. GCC discards it without `$wl', 49999418810dSmrg # but is careful enough not to reorder. 50009418810dSmrg # Supported since Solaris 2.6 (maybe 2.5.1?) 50019418810dSmrg if test "$GCC" = yes; then 50029418810dSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 50039418810dSmrg else 50049418810dSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 50059418810dSmrg fi 50069418810dSmrg ;; 50079418810dSmrg esac 50089418810dSmrg _LT_TAGVAR(link_all_deplibs, $1)=yes 50099418810dSmrg ;; 50109bd41f2cSmrg 50119418810dSmrg sunos4*) 50129418810dSmrg if test "x$host_vendor" = xsequent; then 50139418810dSmrg # Use $CC to link under sequent, because it throws in some extra .o 50149418810dSmrg # files that make .init and .fini sections work. 50159418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 50169418810dSmrg else 50179418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 50189418810dSmrg fi 50199418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 50209418810dSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 50219418810dSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 50229418810dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 50239418810dSmrg ;; 50249bd41f2cSmrg 50259418810dSmrg sysv4) 50269418810dSmrg case $host_vendor in 50279418810dSmrg sni) 50289418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 50299418810dSmrg _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? 50309418810dSmrg ;; 50319418810dSmrg siemens) 50329418810dSmrg ## LD is ld it makes a PLAMLIB 50339418810dSmrg ## CC just makes a GrossModule. 50349418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' 50359418810dSmrg _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' 50369418810dSmrg _LT_TAGVAR(hardcode_direct, $1)=no 50379418810dSmrg ;; 50389418810dSmrg motorola) 50399418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 50409418810dSmrg _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie 50419418810dSmrg ;; 50429418810dSmrg esac 50439418810dSmrg runpath_var='LD_RUN_PATH' 50449418810dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 50459418810dSmrg ;; 50469bd41f2cSmrg 50479418810dSmrg sysv4.3*) 50489418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 50499418810dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 50509418810dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' 50519418810dSmrg ;; 50529bd41f2cSmrg 50539418810dSmrg sysv4*MP*) 50549418810dSmrg if test -d /usr/nec; then 50559418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 50569418810dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 50579418810dSmrg runpath_var=LD_RUN_PATH 50589418810dSmrg hardcode_runpath_var=yes 50599418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=yes 50609418810dSmrg fi 50619418810dSmrg ;; 50629bd41f2cSmrg 50639418810dSmrg sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 50649418810dSmrg _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 50659418810dSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=no 50669418810dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 50679418810dSmrg runpath_var='LD_RUN_PATH' 50689bd41f2cSmrg 50699418810dSmrg if test "$GCC" = yes; then 50709418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 50719418810dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 50729418810dSmrg else 50739418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 50749418810dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 50759418810dSmrg fi 50769418810dSmrg ;; 50779bd41f2cSmrg 50789418810dSmrg sysv5* | sco3.2v5* | sco5v6*) 50799418810dSmrg # Note: We can NOT use -z defs as we might desire, because we do not 50809418810dSmrg # link with -lc, and that would cause any symbols used from libc to 50819418810dSmrg # always be unresolved, which means just about no library would 50829418810dSmrg # ever link correctly. If we're not using GNU ld we use -z text 50839418810dSmrg # though, which does catch some bad symbols but isn't as heavy-handed 50849418810dSmrg # as -z defs. 50859418810dSmrg _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 50869418810dSmrg _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' 50879418810dSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=no 50889418810dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 50899418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' 50909418810dSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 50919418810dSmrg _LT_TAGVAR(link_all_deplibs, $1)=yes 50929418810dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' 50939418810dSmrg runpath_var='LD_RUN_PATH' 50949bd41f2cSmrg 50959418810dSmrg if test "$GCC" = yes; then 50969418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 50979418810dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 50989418810dSmrg else 50999418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 51009418810dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 51019418810dSmrg fi 51029418810dSmrg ;; 51039bd41f2cSmrg 51049418810dSmrg uts4*) 51059418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 51069418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 51079418810dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 51089418810dSmrg ;; 51099bd41f2cSmrg 51109418810dSmrg *) 51119418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 51129418810dSmrg ;; 51139418810dSmrg esac 51149bd41f2cSmrg 51159418810dSmrg if test x$host_vendor = xsni; then 51169418810dSmrg case $host in 51179418810dSmrg sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 51189418810dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym' 51199418810dSmrg ;; 51209418810dSmrg esac 51219418810dSmrg fi 51229418810dSmrg fi 51239418810dSmrg]) 51249418810dSmrgAC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) 51259418810dSmrgtest "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 51269bd41f2cSmrg 51279418810dSmrg_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld 51289bd41f2cSmrg 51299418810dSmrg_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl 51309418810dSmrg_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl 51319418810dSmrg_LT_DECL([], [extract_expsyms_cmds], [2], 51329418810dSmrg [The commands to extract the exported symbol list from a shared archive]) 51339bd41f2cSmrg 51349418810dSmrg# 51359418810dSmrg# Do we need to explicitly link libc? 51369418810dSmrg# 51379418810dSmrgcase "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in 51389418810dSmrgx|xyes) 51399418810dSmrg # Assume -lc should be added 51409418810dSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 51419bd41f2cSmrg 51429418810dSmrg if test "$enable_shared" = yes && test "$GCC" = yes; then 51439418810dSmrg case $_LT_TAGVAR(archive_cmds, $1) in 51449418810dSmrg *'~'*) 51459418810dSmrg # FIXME: we may have to deal with multi-command sequences. 51469418810dSmrg ;; 51479418810dSmrg '$CC '*) 51489418810dSmrg # Test whether the compiler implicitly links with -lc since on some 51499418810dSmrg # systems, -lgcc has to come before -lc. If gcc already passes -lc 51509418810dSmrg # to ld, don't add -lc before -lgcc. 51519418810dSmrg AC_MSG_CHECKING([whether -lc should be explicitly linked in]) 51529418810dSmrg $RM conftest* 51539418810dSmrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 51549bd41f2cSmrg 51559418810dSmrg if AC_TRY_EVAL(ac_compile) 2>conftest.err; then 51569418810dSmrg soname=conftest 51579418810dSmrg lib=conftest 51589418810dSmrg libobjs=conftest.$ac_objext 51599418810dSmrg deplibs= 51609418810dSmrg wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) 51619418810dSmrg pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) 51629418810dSmrg compiler_flags=-v 51639418810dSmrg linker_flags=-v 51649418810dSmrg verstring= 51659418810dSmrg output_objdir=. 51669418810dSmrg libname=conftest 51679418810dSmrg lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) 51689418810dSmrg _LT_TAGVAR(allow_undefined_flag, $1)= 51699418810dSmrg if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 51709418810dSmrg then 51719418810dSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=no 51729418810dSmrg else 51739418810dSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 51749418810dSmrg fi 51759418810dSmrg _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag 51769418810dSmrg else 51779418810dSmrg cat conftest.err 1>&5 51789418810dSmrg fi 51799418810dSmrg $RM conftest* 51809418810dSmrg AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)]) 51819418810dSmrg ;; 51829418810dSmrg esac 51839418810dSmrg fi 51849418810dSmrg ;; 51859418810dSmrgesac 51869bd41f2cSmrg 51879418810dSmrg_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], 51889418810dSmrg [Whether or not to add -lc for building shared libraries]) 51899418810dSmrg_LT_TAGDECL([allow_libtool_libs_with_static_runtimes], 51909418810dSmrg [enable_shared_with_static_runtimes], [0], 51919418810dSmrg [Whether or not to disallow shared libs when runtime libs are static]) 51929418810dSmrg_LT_TAGDECL([], [export_dynamic_flag_spec], [1], 51939418810dSmrg [Compiler flag to allow reflexive dlopens]) 51949418810dSmrg_LT_TAGDECL([], [whole_archive_flag_spec], [1], 51959418810dSmrg [Compiler flag to generate shared objects directly from archives]) 51969418810dSmrg_LT_TAGDECL([], [compiler_needs_object], [1], 51979418810dSmrg [Whether the compiler copes with passing no objects directly]) 51989418810dSmrg_LT_TAGDECL([], [old_archive_from_new_cmds], [2], 51999418810dSmrg [Create an old-style archive from a shared archive]) 52009418810dSmrg_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], 52019418810dSmrg [Create a temporary old-style archive to link instead of a shared archive]) 52029418810dSmrg_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) 52039418810dSmrg_LT_TAGDECL([], [archive_expsym_cmds], [2]) 52049418810dSmrg_LT_TAGDECL([], [module_cmds], [2], 52059418810dSmrg [Commands used to build a loadable module if different from building 52069418810dSmrg a shared archive.]) 52079418810dSmrg_LT_TAGDECL([], [module_expsym_cmds], [2]) 52089418810dSmrg_LT_TAGDECL([], [with_gnu_ld], [1], 52099418810dSmrg [Whether we are building with GNU ld or not]) 52109418810dSmrg_LT_TAGDECL([], [allow_undefined_flag], [1], 52119418810dSmrg [Flag that allows shared libraries with undefined symbols to be built]) 52129418810dSmrg_LT_TAGDECL([], [no_undefined_flag], [1], 52139418810dSmrg [Flag that enforces no undefined symbols]) 52149418810dSmrg_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], 52159418810dSmrg [Flag to hardcode $libdir into a binary during linking. 52169418810dSmrg This must work even if $libdir does not exist]) 52179418810dSmrg_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1], 52189418810dSmrg [[If ld is used when linking, flag to hardcode $libdir into a binary 52199418810dSmrg during linking. This must work even if $libdir does not exist]]) 52209418810dSmrg_LT_TAGDECL([], [hardcode_libdir_separator], [1], 52219418810dSmrg [Whether we need a single "-rpath" flag with a separated argument]) 52229418810dSmrg_LT_TAGDECL([], [hardcode_direct], [0], 52239418810dSmrg [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes 52249418810dSmrg DIR into the resulting binary]) 52259418810dSmrg_LT_TAGDECL([], [hardcode_direct_absolute], [0], 52269418810dSmrg [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes 52279418810dSmrg DIR into the resulting binary and the resulting library dependency is 52289418810dSmrg "absolute", i.e impossible to change by setting ${shlibpath_var} if the 52299418810dSmrg library is relocated]) 52309418810dSmrg_LT_TAGDECL([], [hardcode_minus_L], [0], 52319418810dSmrg [Set to "yes" if using the -LDIR flag during linking hardcodes DIR 52329418810dSmrg into the resulting binary]) 52339418810dSmrg_LT_TAGDECL([], [hardcode_shlibpath_var], [0], 52349418810dSmrg [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 52359418810dSmrg into the resulting binary]) 52369418810dSmrg_LT_TAGDECL([], [hardcode_automatic], [0], 52379418810dSmrg [Set to "yes" if building a shared library automatically hardcodes DIR 52389418810dSmrg into the library and all subsequent libraries and executables linked 52399418810dSmrg against it]) 52409418810dSmrg_LT_TAGDECL([], [inherit_rpath], [0], 52419418810dSmrg [Set to yes if linker adds runtime paths of dependent libraries 52429418810dSmrg to runtime path list]) 52439418810dSmrg_LT_TAGDECL([], [link_all_deplibs], [0], 52449418810dSmrg [Whether libtool must link a program against all its dependency libraries]) 52459418810dSmrg_LT_TAGDECL([], [fix_srcfile_path], [1], 52469418810dSmrg [Fix the shell variable $srcfile for the compiler]) 52479418810dSmrg_LT_TAGDECL([], [always_export_symbols], [0], 52489418810dSmrg [Set to "yes" if exported symbols are required]) 52499418810dSmrg_LT_TAGDECL([], [export_symbols_cmds], [2], 52509418810dSmrg [The commands to list exported symbols]) 52519418810dSmrg_LT_TAGDECL([], [exclude_expsyms], [1], 52529418810dSmrg [Symbols that should not be listed in the preloaded symbols]) 52539418810dSmrg_LT_TAGDECL([], [include_expsyms], [1], 52549418810dSmrg [Symbols that must always be exported]) 52559418810dSmrg_LT_TAGDECL([], [prelink_cmds], [2], 52569418810dSmrg [Commands necessary for linking programs (against libraries) with templates]) 52579418810dSmrg_LT_TAGDECL([], [file_list_spec], [1], 52589418810dSmrg [Specify filename containing input files]) 52599418810dSmrgdnl FIXME: Not yet implemented 52609418810dSmrgdnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], 52619418810dSmrgdnl [Compiler flag to generate thread safe objects]) 52629418810dSmrg])# _LT_LINKER_SHLIBS 52639418810dSmrg 52649418810dSmrg 52659418810dSmrg# _LT_LANG_C_CONFIG([TAG]) 52669418810dSmrg# ------------------------ 52679418810dSmrg# Ensure that the configuration variables for a C compiler are suitably 52689418810dSmrg# defined. These variables are subsequently used by _LT_CONFIG to write 52699418810dSmrg# the compiler configuration to `libtool'. 52709418810dSmrgm4_defun([_LT_LANG_C_CONFIG], 52719418810dSmrg[m4_require([_LT_DECL_EGREP])dnl 52729418810dSmrglt_save_CC="$CC" 52739418810dSmrgAC_LANG_PUSH(C) 52749bd41f2cSmrg 52759418810dSmrg# Source file extension for C test sources. 52769418810dSmrgac_ext=c 52779bd41f2cSmrg 52789418810dSmrg# Object file extension for compiled C test sources. 52799418810dSmrgobjext=o 52809418810dSmrg_LT_TAGVAR(objext, $1)=$objext 52819bd41f2cSmrg 52829418810dSmrg# Code to be used in simple compile tests 52839418810dSmrglt_simple_compile_test_code="int some_variable = 0;" 52849bd41f2cSmrg 52859418810dSmrg# Code to be used in simple link tests 52869418810dSmrglt_simple_link_test_code='int main(){return(0);}' 52879bd41f2cSmrg 52889418810dSmrg_LT_TAG_COMPILER 52899418810dSmrg# Save the default compiler, since it gets overwritten when the other 52909418810dSmrg# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 52919418810dSmrgcompiler_DEFAULT=$CC 52929bd41f2cSmrg 52939418810dSmrg# save warnings/boilerplate of simple test code 52949418810dSmrg_LT_COMPILER_BOILERPLATE 52959418810dSmrg_LT_LINKER_BOILERPLATE 52969bd41f2cSmrg 52979418810dSmrgif test -n "$compiler"; then 52989418810dSmrg _LT_COMPILER_NO_RTTI($1) 52999418810dSmrg _LT_COMPILER_PIC($1) 53009418810dSmrg _LT_COMPILER_C_O($1) 53019418810dSmrg _LT_COMPILER_FILE_LOCKS($1) 53029418810dSmrg _LT_LINKER_SHLIBS($1) 53039418810dSmrg _LT_SYS_DYNAMIC_LINKER($1) 53049418810dSmrg _LT_LINKER_HARDCODE_LIBPATH($1) 53059418810dSmrg LT_SYS_DLOPEN_SELF 53069418810dSmrg _LT_CMD_STRIPLIB 53079418810dSmrg 53089418810dSmrg # Report which library types will actually be built 53099418810dSmrg AC_MSG_CHECKING([if libtool supports shared libraries]) 53109418810dSmrg AC_MSG_RESULT([$can_build_shared]) 53119418810dSmrg 53129418810dSmrg AC_MSG_CHECKING([whether to build shared libraries]) 53139418810dSmrg test "$can_build_shared" = "no" && enable_shared=no 53149418810dSmrg 53159418810dSmrg # On AIX, shared libraries and static libraries use the same namespace, and 53169418810dSmrg # are all built from PIC. 53179418810dSmrg case $host_os in 53189418810dSmrg aix3*) 53199418810dSmrg test "$enable_shared" = yes && enable_static=no 53209418810dSmrg if test -n "$RANLIB"; then 53219418810dSmrg archive_cmds="$archive_cmds~\$RANLIB \$lib" 53229418810dSmrg postinstall_cmds='$RANLIB $lib' 53239418810dSmrg fi 53249418810dSmrg ;; 53259bd41f2cSmrg 53269418810dSmrg aix[[4-9]]*) 53279418810dSmrg if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 53289418810dSmrg test "$enable_shared" = yes && enable_static=no 53299418810dSmrg fi 53309418810dSmrg ;; 53319418810dSmrg esac 53329418810dSmrg AC_MSG_RESULT([$enable_shared]) 53339bd41f2cSmrg 53349418810dSmrg AC_MSG_CHECKING([whether to build static libraries]) 53359418810dSmrg # Make sure either enable_shared or enable_static is yes. 53369418810dSmrg test "$enable_shared" = yes || enable_static=yes 53379418810dSmrg AC_MSG_RESULT([$enable_static]) 53389bd41f2cSmrg 53399418810dSmrg _LT_CONFIG($1) 53409418810dSmrgfi 53419418810dSmrgAC_LANG_POP 53429418810dSmrgCC="$lt_save_CC" 53439418810dSmrg])# _LT_LANG_C_CONFIG 53449bd41f2cSmrg 53459bd41f2cSmrg 53469418810dSmrg# _LT_PROG_CXX 53479418810dSmrg# ------------ 53489418810dSmrg# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++ 53499418810dSmrg# compiler, we have our own version here. 53509418810dSmrgm4_defun([_LT_PROG_CXX], 53519418810dSmrg[ 53529418810dSmrgpushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes]) 53539418810dSmrgAC_PROG_CXX 53549418810dSmrgif test -n "$CXX" && ( test "X$CXX" != "Xno" && 53559418810dSmrg ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 53569418810dSmrg (test "X$CXX" != "Xg++"))) ; then 53579418810dSmrg AC_PROG_CXXCPP 53589418810dSmrgelse 53599418810dSmrg _lt_caught_CXX_error=yes 53609418810dSmrgfi 53619418810dSmrgpopdef([AC_MSG_ERROR]) 53629418810dSmrg])# _LT_PROG_CXX 53639bd41f2cSmrg 53649418810dSmrgdnl aclocal-1.4 backwards compatibility: 53659418810dSmrgdnl AC_DEFUN([_LT_PROG_CXX], []) 53669bd41f2cSmrg 53679bd41f2cSmrg 53689418810dSmrg# _LT_LANG_CXX_CONFIG([TAG]) 53699418810dSmrg# -------------------------- 53709418810dSmrg# Ensure that the configuration variables for a C++ compiler are suitably 53719418810dSmrg# defined. These variables are subsequently used by _LT_CONFIG to write 53729418810dSmrg# the compiler configuration to `libtool'. 53739418810dSmrgm4_defun([_LT_LANG_CXX_CONFIG], 53749418810dSmrg[AC_REQUIRE([_LT_PROG_CXX])dnl 53759418810dSmrgm4_require([_LT_FILEUTILS_DEFAULTS])dnl 53769418810dSmrgm4_require([_LT_DECL_EGREP])dnl 53779418810dSmrg 53789418810dSmrgAC_LANG_PUSH(C++) 53799418810dSmrg_LT_TAGVAR(archive_cmds_need_lc, $1)=no 53809418810dSmrg_LT_TAGVAR(allow_undefined_flag, $1)= 53819418810dSmrg_LT_TAGVAR(always_export_symbols, $1)=no 53829418810dSmrg_LT_TAGVAR(archive_expsym_cmds, $1)= 53839418810dSmrg_LT_TAGVAR(compiler_needs_object, $1)=no 53849418810dSmrg_LT_TAGVAR(export_dynamic_flag_spec, $1)= 53859418810dSmrg_LT_TAGVAR(hardcode_direct, $1)=no 53869418810dSmrg_LT_TAGVAR(hardcode_direct_absolute, $1)=no 53879418810dSmrg_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 53889418810dSmrg_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 53899418810dSmrg_LT_TAGVAR(hardcode_libdir_separator, $1)= 53909418810dSmrg_LT_TAGVAR(hardcode_minus_L, $1)=no 53919418810dSmrg_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 53929418810dSmrg_LT_TAGVAR(hardcode_automatic, $1)=no 53939418810dSmrg_LT_TAGVAR(inherit_rpath, $1)=no 53949418810dSmrg_LT_TAGVAR(module_cmds, $1)= 53959418810dSmrg_LT_TAGVAR(module_expsym_cmds, $1)= 53969418810dSmrg_LT_TAGVAR(link_all_deplibs, $1)=unknown 53979418810dSmrg_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 53989418810dSmrg_LT_TAGVAR(no_undefined_flag, $1)= 53999418810dSmrg_LT_TAGVAR(whole_archive_flag_spec, $1)= 54009418810dSmrg_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 54019bd41f2cSmrg 54029418810dSmrg# Source file extension for C++ test sources. 54039418810dSmrgac_ext=cpp 54049bd41f2cSmrg 54059418810dSmrg# Object file extension for compiled C++ test sources. 54069418810dSmrgobjext=o 54079418810dSmrg_LT_TAGVAR(objext, $1)=$objext 54089418810dSmrg 54099418810dSmrg# No sense in running all these tests if we already determined that 54109418810dSmrg# the CXX compiler isn't working. Some variables (like enable_shared) 54119418810dSmrg# are currently assumed to apply to all compilers on this platform, 54129418810dSmrg# and will be corrupted by setting them based on a non-working compiler. 54139418810dSmrgif test "$_lt_caught_CXX_error" != yes; then 54149418810dSmrg # Code to be used in simple compile tests 54159418810dSmrg lt_simple_compile_test_code="int some_variable = 0;" 54169418810dSmrg 54179418810dSmrg # Code to be used in simple link tests 54189418810dSmrg lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' 54199418810dSmrg 54209418810dSmrg # ltmain only uses $CC for tagged configurations so make sure $CC is set. 54219418810dSmrg _LT_TAG_COMPILER 54229418810dSmrg 54239418810dSmrg # save warnings/boilerplate of simple test code 54249418810dSmrg _LT_COMPILER_BOILERPLATE 54259418810dSmrg _LT_LINKER_BOILERPLATE 54269418810dSmrg 54279418810dSmrg # Allow CC to be a program name with arguments. 54289418810dSmrg lt_save_CC=$CC 54299418810dSmrg lt_save_LD=$LD 54309418810dSmrg lt_save_GCC=$GCC 54319418810dSmrg GCC=$GXX 54329418810dSmrg lt_save_with_gnu_ld=$with_gnu_ld 54339418810dSmrg lt_save_path_LD=$lt_cv_path_LD 54349418810dSmrg if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 54359418810dSmrg lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 54369418810dSmrg else 54379418810dSmrg $as_unset lt_cv_prog_gnu_ld 54389418810dSmrg fi 54399418810dSmrg if test -n "${lt_cv_path_LDCXX+set}"; then 54409418810dSmrg lt_cv_path_LD=$lt_cv_path_LDCXX 54419418810dSmrg else 54429418810dSmrg $as_unset lt_cv_path_LD 54439418810dSmrg fi 54449418810dSmrg test -z "${LDCXX+set}" || LD=$LDCXX 54459418810dSmrg CC=${CXX-"c++"} 54469418810dSmrg compiler=$CC 54479418810dSmrg _LT_TAGVAR(compiler, $1)=$CC 54489418810dSmrg _LT_CC_BASENAME([$compiler]) 54499bd41f2cSmrg 54509418810dSmrg if test -n "$compiler"; then 54519418810dSmrg # We don't want -fno-exception when compiling C++ code, so set the 54529418810dSmrg # no_builtin_flag separately 54539418810dSmrg if test "$GXX" = yes; then 54549418810dSmrg _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 54559418810dSmrg else 54569418810dSmrg _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 54579418810dSmrg fi 54589bd41f2cSmrg 54599418810dSmrg if test "$GXX" = yes; then 54609418810dSmrg # Set up default GNU C++ configuration 54619bd41f2cSmrg 54629418810dSmrg LT_PATH_LD 54639bd41f2cSmrg 54649418810dSmrg # Check if GNU C++ uses GNU ld as the underlying linker, since the 54659418810dSmrg # archiving commands below assume that GNU ld is being used. 54669418810dSmrg if test "$with_gnu_ld" = yes; then 54679418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 54689418810dSmrg _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' 54699bd41f2cSmrg 54709418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 54719418810dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 54729bd41f2cSmrg 54739418810dSmrg # If archive_cmds runs LD, not CC, wlarc should be empty 54749418810dSmrg # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 54759418810dSmrg # investigate it a little bit more. (MM) 54769418810dSmrg wlarc='${wl}' 54779bd41f2cSmrg 54789418810dSmrg # ancient GNU ld didn't support --whole-archive et. al. 54799418810dSmrg if eval "`$CC -print-prog-name=ld` --help 2>&1" | 54809418810dSmrg $GREP 'no-whole-archive' > /dev/null; then 54819418810dSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 54829418810dSmrg else 54839418810dSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)= 54849418810dSmrg fi 54859418810dSmrg else 54869418810dSmrg with_gnu_ld=no 54879418810dSmrg wlarc= 54889418810dSmrg 54899418810dSmrg # A generic and very simple default shared library creation 54909418810dSmrg # command for GNU C++ for the case where it uses the native 54919418810dSmrg # linker, instead of GNU ld. If possible, this setting should 54929418810dSmrg # overridden to take advantage of the native linker features on 54939418810dSmrg # the platform it is being used on. 54949418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 54959418810dSmrg fi 54969bd41f2cSmrg 54979418810dSmrg # Commands to make compiler produce verbose output that lists 54989418810dSmrg # what "hidden" libraries, object files and flags are used when 54999418810dSmrg # linking a shared library. 55009418810dSmrg output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 55019bd41f2cSmrg 55029418810dSmrg else 55039418810dSmrg GXX=no 55049418810dSmrg with_gnu_ld=no 55059418810dSmrg wlarc= 55069418810dSmrg fi 55079bd41f2cSmrg 55089418810dSmrg # PORTME: fill in a description of your system's C++ link characteristics 55099418810dSmrg AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 55109418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=yes 55119418810dSmrg case $host_os in 55129418810dSmrg aix3*) 55139418810dSmrg # FIXME: insert proper C++ library support 55149418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 55159418810dSmrg ;; 55169418810dSmrg aix[[4-9]]*) 55179418810dSmrg if test "$host_cpu" = ia64; then 55189418810dSmrg # On IA64, the linker does run time linking by default, so we don't 55199418810dSmrg # have to do anything special. 55209418810dSmrg aix_use_runtimelinking=no 55219418810dSmrg exp_sym_flag='-Bexport' 55229418810dSmrg no_entry_flag="" 55239418810dSmrg else 55249418810dSmrg aix_use_runtimelinking=no 55259418810dSmrg 55269418810dSmrg # Test if we are trying to use run time linking or normal 55279418810dSmrg # AIX style linking. If -brtl is somewhere in LDFLAGS, we 55289418810dSmrg # need to do runtime linking. 55299418810dSmrg case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 55309418810dSmrg for ld_flag in $LDFLAGS; do 55319418810dSmrg case $ld_flag in 55329418810dSmrg *-brtl*) 55339418810dSmrg aix_use_runtimelinking=yes 55349418810dSmrg break 55359418810dSmrg ;; 55369418810dSmrg esac 55379418810dSmrg done 55389418810dSmrg ;; 55399418810dSmrg esac 55409bd41f2cSmrg 55419418810dSmrg exp_sym_flag='-bexport' 55429418810dSmrg no_entry_flag='-bnoentry' 55439418810dSmrg fi 55449bd41f2cSmrg 55459418810dSmrg # When large executables or shared objects are built, AIX ld can 55469418810dSmrg # have problems creating the table of contents. If linking a library 55479418810dSmrg # or program results in "error TOC overflow" add -mminimal-toc to 55489418810dSmrg # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 55499418810dSmrg # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 55509418810dSmrg 55519418810dSmrg _LT_TAGVAR(archive_cmds, $1)='' 55529418810dSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 55539418810dSmrg _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 55549418810dSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 55559418810dSmrg _LT_TAGVAR(link_all_deplibs, $1)=yes 55569418810dSmrg _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' 55579418810dSmrg 55589418810dSmrg if test "$GXX" = yes; then 55599418810dSmrg case $host_os in aix4.[[012]]|aix4.[[012]].*) 55609418810dSmrg # We only want to do this on AIX 4.2 and lower, the check 55619418810dSmrg # below for broken collect2 doesn't work under 4.3+ 55629418810dSmrg collect2name=`${CC} -print-prog-name=collect2` 55639418810dSmrg if test -f "$collect2name" && 55649418810dSmrg strings "$collect2name" | $GREP resolve_lib_name >/dev/null 55659418810dSmrg then 55669418810dSmrg # We have reworked collect2 55679418810dSmrg : 55689418810dSmrg else 55699418810dSmrg # We have old collect2 55709418810dSmrg _LT_TAGVAR(hardcode_direct, $1)=unsupported 55719418810dSmrg # It fails to find uninstalled libraries when the uninstalled 55729418810dSmrg # path is not listed in the libpath. Setting hardcode_minus_L 55739418810dSmrg # to unsupported forces relinking 55749418810dSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 55759418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 55769418810dSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)= 55779418810dSmrg fi 55789418810dSmrg esac 55799418810dSmrg shared_flag='-shared' 55809418810dSmrg if test "$aix_use_runtimelinking" = yes; then 55819418810dSmrg shared_flag="$shared_flag "'${wl}-G' 55829418810dSmrg fi 55839418810dSmrg else 55849418810dSmrg # not using gcc 55859418810dSmrg if test "$host_cpu" = ia64; then 55869418810dSmrg # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 55879418810dSmrg # chokes on -Wl,-G. The following line is correct: 55889418810dSmrg shared_flag='-G' 55899418810dSmrg else 55909418810dSmrg if test "$aix_use_runtimelinking" = yes; then 55919418810dSmrg shared_flag='${wl}-G' 55929418810dSmrg else 55939418810dSmrg shared_flag='${wl}-bM:SRE' 55949418810dSmrg fi 55959418810dSmrg fi 55969418810dSmrg fi 55979bd41f2cSmrg 55989418810dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' 55999418810dSmrg # It seems that -bexpall does not export symbols beginning with 56009418810dSmrg # underscore (_), so it is better to generate a list of symbols to 56019418810dSmrg # export. 56029418810dSmrg _LT_TAGVAR(always_export_symbols, $1)=yes 56039418810dSmrg if test "$aix_use_runtimelinking" = yes; then 56049418810dSmrg # Warning - without using the other runtime loading flags (-brtl), 56059418810dSmrg # -berok will link without error, but may produce a broken library. 56069418810dSmrg _LT_TAGVAR(allow_undefined_flag, $1)='-berok' 56079418810dSmrg # Determine the default libpath from the value encoded in an empty 56089418810dSmrg # executable. 56099418810dSmrg _LT_SYS_MODULE_PATH_AIX 56109418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 56119418810dSmrg 56129418810dSmrg _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" 56139418810dSmrg else 56149418810dSmrg if test "$host_cpu" = ia64; then 56159418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 56169418810dSmrg _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 56179418810dSmrg _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" 56189418810dSmrg else 56199418810dSmrg # Determine the default libpath from the value encoded in an 56209418810dSmrg # empty executable. 56219418810dSmrg _LT_SYS_MODULE_PATH_AIX 56229418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 56239418810dSmrg # Warning - without using the other run time loading flags, 56249418810dSmrg # -berok will link without error, but may produce a broken library. 56259418810dSmrg _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 56269418810dSmrg _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 56279418810dSmrg # Exported symbols can be pulled into shared objects from archives 56289418810dSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 56299418810dSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 56309418810dSmrg # This is similar to how AIX traditionally builds its shared 56319418810dSmrg # libraries. 56329418810dSmrg _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' 56339418810dSmrg fi 56349418810dSmrg fi 56359418810dSmrg ;; 56369bd41f2cSmrg 56379418810dSmrg beos*) 56389418810dSmrg if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 56399418810dSmrg _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 56409418810dSmrg # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 56419418810dSmrg # support --undefined. This deserves some investigation. FIXME 56429418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 56439418810dSmrg else 56449418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 56459418810dSmrg fi 56469418810dSmrg ;; 56479bd41f2cSmrg 56489418810dSmrg chorus*) 56499418810dSmrg case $cc_basename in 56509418810dSmrg *) 56519418810dSmrg # FIXME: insert proper C++ library support 56529418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 56539418810dSmrg ;; 56549418810dSmrg esac 56559418810dSmrg ;; 56569bd41f2cSmrg 56579418810dSmrg cygwin* | mingw* | pw32* | cegcc*) 56589418810dSmrg # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 56599418810dSmrg # as there is no search path for DLLs. 56609418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 56619418810dSmrg _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 56629418810dSmrg _LT_TAGVAR(always_export_symbols, $1)=no 56639418810dSmrg _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 56649418810dSmrg 56659418810dSmrg if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 56669418810dSmrg _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' 56679418810dSmrg # If the export-symbols file already is a .def file (1st line 56689418810dSmrg # is EXPORTS), use it as is; otherwise, prepend... 56699418810dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 56709418810dSmrg cp $export_symbols $output_objdir/$soname.def; 56719418810dSmrg else 56729418810dSmrg echo EXPORTS > $output_objdir/$soname.def; 56739418810dSmrg cat $export_symbols >> $output_objdir/$soname.def; 56749418810dSmrg fi~ 56759418810dSmrg $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' 56769418810dSmrg else 56779418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 56789418810dSmrg fi 56799418810dSmrg ;; 56809418810dSmrg darwin* | rhapsody*) 56819418810dSmrg _LT_DARWIN_LINKER_FEATURES($1) 56829418810dSmrg ;; 56839bd41f2cSmrg 56849418810dSmrg dgux*) 56859418810dSmrg case $cc_basename in 56869418810dSmrg ec++*) 56879418810dSmrg # FIXME: insert proper C++ library support 56889418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 56899418810dSmrg ;; 56909418810dSmrg ghcx*) 56919418810dSmrg # Green Hills C++ Compiler 56929418810dSmrg # FIXME: insert proper C++ library support 56939418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 56949418810dSmrg ;; 56959418810dSmrg *) 56969418810dSmrg # FIXME: insert proper C++ library support 56979418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 56989418810dSmrg ;; 56999418810dSmrg esac 57009418810dSmrg ;; 57019418810dSmrg 57029418810dSmrg freebsd[[12]]*) 57039418810dSmrg # C++ shared libraries reported to be fairly broken before 57049418810dSmrg # switch to ELF 57059418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 57069418810dSmrg ;; 57079bd41f2cSmrg 57089418810dSmrg freebsd-elf*) 57099418810dSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=no 57109418810dSmrg ;; 57119bd41f2cSmrg 57129418810dSmrg freebsd* | dragonfly*) 57139418810dSmrg # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 57149418810dSmrg # conventions 57159418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=yes 57169418810dSmrg ;; 57179bd41f2cSmrg 57189418810dSmrg gnu*) 57199418810dSmrg ;; 57209bd41f2cSmrg 57219418810dSmrg hpux9*) 57229418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 57239418810dSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 57249418810dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 57259418810dSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 57269418810dSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 57279418810dSmrg # but as the default 57289418810dSmrg # location of the library. 57299418810dSmrg 57309418810dSmrg case $cc_basename in 57319418810dSmrg CC*) 57329418810dSmrg # FIXME: insert proper C++ library support 57339418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 57349418810dSmrg ;; 57359418810dSmrg aCC*) 57369418810dSmrg _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' 57379418810dSmrg # Commands to make compiler produce verbose output that lists 57389418810dSmrg # what "hidden" libraries, object files and flags are used when 57399418810dSmrg # linking a shared library. 57409418810dSmrg # 57419418810dSmrg # There doesn't appear to be a way to prevent this compiler from 57429418810dSmrg # explicitly linking system object files so we need to strip them 57439418810dSmrg # from the output so that they don't get included in the library 57449418810dSmrg # dependencies. 57459418810dSmrg 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' 57469418810dSmrg ;; 57479418810dSmrg *) 57489418810dSmrg if test "$GXX" = yes; then 57499418810dSmrg _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' 57509418810dSmrg else 57519418810dSmrg # FIXME: insert proper C++ library support 57529418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 57539418810dSmrg fi 57549418810dSmrg ;; 57559418810dSmrg esac 57569418810dSmrg ;; 57579bd41f2cSmrg 57589418810dSmrg hpux10*|hpux11*) 57599418810dSmrg if test $with_gnu_ld = no; then 57609418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 57619418810dSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 57629418810dSmrg 57639418810dSmrg case $host_cpu in 57649418810dSmrg hppa*64*|ia64*) 57659418810dSmrg ;; 57669418810dSmrg *) 57679418810dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 57689418810dSmrg ;; 57699418810dSmrg esac 57709418810dSmrg fi 57719418810dSmrg case $host_cpu in 57729418810dSmrg hppa*64*|ia64*) 57739418810dSmrg _LT_TAGVAR(hardcode_direct, $1)=no 57749418810dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 57759418810dSmrg ;; 57769418810dSmrg *) 57779418810dSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 57789418810dSmrg _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 57799418810dSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 57809418810dSmrg # but as the default 57819418810dSmrg # location of the library. 57829418810dSmrg ;; 57839418810dSmrg esac 57849418810dSmrg 57859418810dSmrg case $cc_basename in 57869418810dSmrg CC*) 57879418810dSmrg # FIXME: insert proper C++ library support 57889418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 57899418810dSmrg ;; 57909418810dSmrg aCC*) 57919418810dSmrg case $host_cpu in 57929418810dSmrg hppa*64*) 57939418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 57949418810dSmrg ;; 57959418810dSmrg ia64*) 57969418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 57979418810dSmrg ;; 57989418810dSmrg *) 57999418810dSmrg _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' 58009418810dSmrg ;; 58019418810dSmrg esac 58029418810dSmrg # Commands to make compiler produce verbose output that lists 58039418810dSmrg # what "hidden" libraries, object files and flags are used when 58049418810dSmrg # linking a shared library. 58059418810dSmrg # 58069418810dSmrg # There doesn't appear to be a way to prevent this compiler from 58079418810dSmrg # explicitly linking system object files so we need to strip them 58089418810dSmrg # from the output so that they don't get included in the library 58099418810dSmrg # dependencies. 58109418810dSmrg 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' 58119418810dSmrg ;; 58129418810dSmrg *) 58139418810dSmrg if test "$GXX" = yes; then 58149418810dSmrg if test $with_gnu_ld = no; then 58159418810dSmrg case $host_cpu in 58169418810dSmrg hppa*64*) 58179418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 58189418810dSmrg ;; 58199418810dSmrg ia64*) 58209418810dSmrg _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' 58219418810dSmrg ;; 58229418810dSmrg *) 58239418810dSmrg _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' 58249418810dSmrg ;; 58259418810dSmrg esac 58269418810dSmrg fi 58279418810dSmrg else 58289418810dSmrg # FIXME: insert proper C++ library support 58299418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 58309418810dSmrg fi 58319418810dSmrg ;; 58329418810dSmrg esac 58339418810dSmrg ;; 58349bd41f2cSmrg 58359418810dSmrg interix[[3-9]]*) 58369418810dSmrg _LT_TAGVAR(hardcode_direct, $1)=no 58379418810dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 58389418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 58399418810dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 58409418810dSmrg # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 58419418810dSmrg # Instead, shared libraries are loaded at an image base (0x10000000 by 58429418810dSmrg # default) and relocated if they conflict, which is a slow very memory 58439418810dSmrg # consuming and fragmenting process. To avoid this, we pick a random, 58449418810dSmrg # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 58459418810dSmrg # time. Moving up from 0x10000000 also allows more sbrk(2) space. 58469418810dSmrg _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' 58479418810dSmrg _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' 58489418810dSmrg ;; 58499418810dSmrg irix5* | irix6*) 58509418810dSmrg case $cc_basename in 58519418810dSmrg CC*) 58529418810dSmrg # SGI C++ 58539418810dSmrg _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' 58549418810dSmrg 58559418810dSmrg # Archives containing C++ object files must be created using 58569418810dSmrg # "CC -ar", where "CC" is the IRIX C++ compiler. This is 58579418810dSmrg # necessary to make sure instantiated templates are included 58589418810dSmrg # in the archive. 58599418810dSmrg _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' 58609418810dSmrg ;; 58619418810dSmrg *) 58629418810dSmrg if test "$GXX" = yes; then 58639418810dSmrg if test "$with_gnu_ld" = no; then 58649418810dSmrg _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' 58659418810dSmrg else 58669418810dSmrg _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' 58679418810dSmrg fi 58689418810dSmrg fi 58699418810dSmrg _LT_TAGVAR(link_all_deplibs, $1)=yes 58709418810dSmrg ;; 58719418810dSmrg esac 58729418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 58739418810dSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 58749418810dSmrg _LT_TAGVAR(inherit_rpath, $1)=yes 58759418810dSmrg ;; 58769bd41f2cSmrg 58779418810dSmrg linux* | k*bsd*-gnu) 58789418810dSmrg case $cc_basename in 58799418810dSmrg KCC*) 58809418810dSmrg # Kuck and Associates, Inc. (KAI) C++ Compiler 58819418810dSmrg 58829418810dSmrg # KCC will only create a shared library if the output file 58839418810dSmrg # ends with ".so" (or ".sl" for HP-UX), so rename the library 58849418810dSmrg # to its proper name (with version) after linking. 58859418810dSmrg _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' 58869418810dSmrg _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' 58879418810dSmrg # Commands to make compiler produce verbose output that lists 58889418810dSmrg # what "hidden" libraries, object files and flags are used when 58899418810dSmrg # linking a shared library. 58909418810dSmrg # 58919418810dSmrg # There doesn't appear to be a way to prevent this compiler from 58929418810dSmrg # explicitly linking system object files so we need to strip them 58939418810dSmrg # from the output so that they don't get included in the library 58949418810dSmrg # dependencies. 58959418810dSmrg 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' 58969418810dSmrg 58979418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 58989418810dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 58999418810dSmrg 59009418810dSmrg # Archives containing C++ object files must be created using 59019418810dSmrg # "CC -Bstatic", where "CC" is the KAI C++ compiler. 59029418810dSmrg _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' 59039418810dSmrg ;; 59049418810dSmrg icpc* | ecpc* ) 59059418810dSmrg # Intel C++ 59069418810dSmrg with_gnu_ld=yes 59079418810dSmrg # version 8.0 and above of icpc choke on multiply defined symbols 59089418810dSmrg # if we add $predep_objects and $postdep_objects, however 7.1 and 59099418810dSmrg # earlier do not add the objects themselves. 59109418810dSmrg case `$CC -V 2>&1` in 59119418810dSmrg *"Version 7."*) 59129418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 59139418810dSmrg _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' 59149418810dSmrg ;; 59159418810dSmrg *) # Version 8.0 or newer 59169418810dSmrg tmp_idyn= 59179418810dSmrg case $host_cpu in 59189418810dSmrg ia64*) tmp_idyn=' -i_dynamic';; 59199418810dSmrg esac 59209418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 59219418810dSmrg _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' 59229418810dSmrg ;; 59239418810dSmrg esac 59249418810dSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=no 59259418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 59269418810dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 59279418810dSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 59289418810dSmrg ;; 59299418810dSmrg pgCC* | pgcpp*) 59309418810dSmrg # Portland Group C++ compiler 59319418810dSmrg case `$CC -V` in 59329418810dSmrg *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*) 59339418810dSmrg _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ 59349418810dSmrg rm -rf $tpldir~ 59359418810dSmrg $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 59369418810dSmrg compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' 59379418810dSmrg _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ 59389418810dSmrg rm -rf $tpldir~ 59399418810dSmrg $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 59409418810dSmrg $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ 59419418810dSmrg $RANLIB $oldlib' 59429418810dSmrg _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ 59439418810dSmrg rm -rf $tpldir~ 59449418810dSmrg $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 59459418810dSmrg $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 59469418810dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ 59479418810dSmrg rm -rf $tpldir~ 59489418810dSmrg $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 59499418810dSmrg $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' 59509418810dSmrg ;; 59519418810dSmrg *) # Version 6 will use weak symbols 59529418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 59539418810dSmrg _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' 59549418810dSmrg ;; 59559418810dSmrg esac 59569bd41f2cSmrg 59579418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 59589418810dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 59599418810dSmrg _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' 59609418810dSmrg ;; 59619418810dSmrg cxx*) 59629418810dSmrg # Compaq C++ 59639418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 59649418810dSmrg _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' 59659bd41f2cSmrg 59669418810dSmrg runpath_var=LD_RUN_PATH 59679418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 59689418810dSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5969d075918cSmrg 59709418810dSmrg # Commands to make compiler produce verbose output that lists 59719418810dSmrg # what "hidden" libraries, object files and flags are used when 59729418810dSmrg # linking a shared library. 59739418810dSmrg # 59749418810dSmrg # There doesn't appear to be a way to prevent this compiler from 59759418810dSmrg # explicitly linking system object files so we need to strip them 59769418810dSmrg # from the output so that they don't get included in the library 59779418810dSmrg # dependencies. 59789418810dSmrg 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' 59799418810dSmrg ;; 59809418810dSmrg xl*) 59819418810dSmrg # IBM XL 8.0 on PPC, with GNU ld 59829418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 59839418810dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 59849418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 59859418810dSmrg if test "x$supports_anon_versioning" = xyes; then 59869418810dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 59879418810dSmrg cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 59889418810dSmrg echo "local: *; };" >> $output_objdir/$libname.ver~ 59899418810dSmrg $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 59909418810dSmrg fi 59919418810dSmrg ;; 59929418810dSmrg *) 59939418810dSmrg case `$CC -V 2>&1 | sed 5q` in 59949418810dSmrg *Sun\ C*) 59959418810dSmrg # Sun C++ 5.9 59969418810dSmrg _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' 59979418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 59989418810dSmrg _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' 59999418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 60009418810dSmrg _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' 60019418810dSmrg _LT_TAGVAR(compiler_needs_object, $1)=yes 60029418810dSmrg 60039418810dSmrg # Not sure whether something based on 60049418810dSmrg # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 60059418810dSmrg # would be better. 60069418810dSmrg output_verbose_link_cmd='echo' 60079418810dSmrg 60089418810dSmrg # Archives containing C++ object files must be created using 60099418810dSmrg # "CC -xar", where "CC" is the Sun C++ compiler. This is 60109418810dSmrg # necessary to make sure instantiated templates are included 60119418810dSmrg # in the archive. 60129418810dSmrg _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 60139418810dSmrg ;; 60149418810dSmrg esac 60159418810dSmrg ;; 60169418810dSmrg esac 60179418810dSmrg ;; 60189bd41f2cSmrg 60199418810dSmrg lynxos*) 60209418810dSmrg # FIXME: insert proper C++ library support 60219418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 60229418810dSmrg ;; 60239bd41f2cSmrg 60249418810dSmrg m88k*) 60259418810dSmrg # FIXME: insert proper C++ library support 60269418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 60279418810dSmrg ;; 60289bd41f2cSmrg 60299418810dSmrg mvs*) 60309418810dSmrg case $cc_basename in 60319418810dSmrg cxx*) 60329418810dSmrg # FIXME: insert proper C++ library support 60339418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 60349418810dSmrg ;; 60359418810dSmrg *) 60369418810dSmrg # FIXME: insert proper C++ library support 60379418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 60389418810dSmrg ;; 60399418810dSmrg esac 60409418810dSmrg ;; 60419bd41f2cSmrg 60429418810dSmrg netbsd*) 60439418810dSmrg if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 60449418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 60459418810dSmrg wlarc= 60469418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 60479418810dSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 60489418810dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 60499418810dSmrg fi 60509418810dSmrg # Workaround some broken pre-1.5 toolchains 60519418810dSmrg output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 60529418810dSmrg ;; 60539bd41f2cSmrg 60549418810dSmrg *nto* | *qnx*) 60559418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=yes 60569418810dSmrg ;; 60579bd41f2cSmrg 60589418810dSmrg openbsd2*) 60599418810dSmrg # C++ shared libraries are fairly broken 60609418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 60619418810dSmrg ;; 60629bd41f2cSmrg 60639418810dSmrg openbsd*) 60649418810dSmrg if test -f /usr/libexec/ld.so; then 60659418810dSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 60669418810dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 60679418810dSmrg _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 60689418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 60699418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 60709418810dSmrg if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 60719418810dSmrg _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' 60729418810dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 60739418810dSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 60749418810dSmrg fi 60759418810dSmrg output_verbose_link_cmd=echo 60769418810dSmrg else 60779418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 60789418810dSmrg fi 60799418810dSmrg ;; 60809bd41f2cSmrg 60819418810dSmrg osf3* | osf4* | osf5*) 60829418810dSmrg case $cc_basename in 60839418810dSmrg KCC*) 60849418810dSmrg # Kuck and Associates, Inc. (KAI) C++ Compiler 60859418810dSmrg 60869418810dSmrg # KCC will only create a shared library if the output file 60879418810dSmrg # ends with ".so" (or ".sl" for HP-UX), so rename the library 60889418810dSmrg # to its proper name (with version) after linking. 60899418810dSmrg _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' 60909418810dSmrg 60919418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 60929418810dSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 60939418810dSmrg 60949418810dSmrg # Archives containing C++ object files must be created using 60959418810dSmrg # the KAI C++ compiler. 60969418810dSmrg case $host in 60979418810dSmrg osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; 60989418810dSmrg *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; 60999418810dSmrg esac 61009418810dSmrg ;; 61019418810dSmrg RCC*) 61029418810dSmrg # Rational C++ 2.4.1 61039418810dSmrg # FIXME: insert proper C++ library support 61049418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 61059418810dSmrg ;; 61069418810dSmrg cxx*) 61079418810dSmrg case $host in 61089418810dSmrg osf3*) 61099418810dSmrg _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 61109418810dSmrg _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' 61119418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 61129418810dSmrg ;; 61139418810dSmrg *) 61149418810dSmrg _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 61159418810dSmrg _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' 61169418810dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 61179418810dSmrg echo "-hidden">> $lib.exp~ 61189418810dSmrg $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~ 61199418810dSmrg $RM $lib.exp' 61209418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 61219418810dSmrg ;; 61229418810dSmrg esac 61239bd41f2cSmrg 61249418810dSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 61259bd41f2cSmrg 61269418810dSmrg # Commands to make compiler produce verbose output that lists 61279418810dSmrg # what "hidden" libraries, object files and flags are used when 61289418810dSmrg # linking a shared library. 61299418810dSmrg # 61309418810dSmrg # There doesn't appear to be a way to prevent this compiler from 61319418810dSmrg # explicitly linking system object files so we need to strip them 61329418810dSmrg # from the output so that they don't get included in the library 61339418810dSmrg # dependencies. 61349418810dSmrg 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' 61359418810dSmrg ;; 61369418810dSmrg *) 61379418810dSmrg if test "$GXX" = yes && test "$with_gnu_ld" = no; then 61389418810dSmrg _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 61399418810dSmrg case $host in 61409418810dSmrg osf3*) 61419418810dSmrg _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' 61429418810dSmrg ;; 61439418810dSmrg *) 61449418810dSmrg _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' 61459418810dSmrg ;; 61469418810dSmrg esac 61479418810dSmrg 61489418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 61499418810dSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 61509418810dSmrg 61519418810dSmrg # Commands to make compiler produce verbose output that lists 61529418810dSmrg # what "hidden" libraries, object files and flags are used when 61539418810dSmrg # linking a shared library. 61549418810dSmrg output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 61559418810dSmrg 61569418810dSmrg else 61579418810dSmrg # FIXME: insert proper C++ library support 61589418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 61599418810dSmrg fi 61609418810dSmrg ;; 61619418810dSmrg esac 61629418810dSmrg ;; 61639bd41f2cSmrg 61649418810dSmrg psos*) 61659418810dSmrg # FIXME: insert proper C++ library support 61669418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 61679418810dSmrg ;; 61689bd41f2cSmrg 61699418810dSmrg sunos4*) 61709418810dSmrg case $cc_basename in 61719418810dSmrg CC*) 61729418810dSmrg # Sun C++ 4.x 61739418810dSmrg # FIXME: insert proper C++ library support 61749418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 61759418810dSmrg ;; 61769418810dSmrg lcc*) 61779418810dSmrg # Lucid 61789418810dSmrg # FIXME: insert proper C++ library support 61799418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 61809418810dSmrg ;; 61819418810dSmrg *) 61829418810dSmrg # FIXME: insert proper C++ library support 61839418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 61849418810dSmrg ;; 61859418810dSmrg esac 61869418810dSmrg ;; 61879bd41f2cSmrg 61889418810dSmrg solaris*) 61899418810dSmrg case $cc_basename in 61909418810dSmrg CC*) 61919418810dSmrg # Sun C++ 4.2, 5.x and Centerline C++ 61929418810dSmrg _LT_TAGVAR(archive_cmds_need_lc,$1)=yes 61939418810dSmrg _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' 61949418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 61959418810dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 61969418810dSmrg $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' 61979418810dSmrg 61989418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 61999418810dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 62009418810dSmrg case $host_os in 62019418810dSmrg solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 62029418810dSmrg *) 62039418810dSmrg # The compiler driver will combine and reorder linker options, 62049418810dSmrg # but understands `-z linker_flag'. 62059418810dSmrg # Supported since Solaris 2.6 (maybe 2.5.1?) 62069418810dSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 62079418810dSmrg ;; 62089418810dSmrg esac 62099418810dSmrg _LT_TAGVAR(link_all_deplibs, $1)=yes 62109bd41f2cSmrg 62119418810dSmrg output_verbose_link_cmd='echo' 62129bd41f2cSmrg 62139418810dSmrg # Archives containing C++ object files must be created using 62149418810dSmrg # "CC -xar", where "CC" is the Sun C++ compiler. This is 62159418810dSmrg # necessary to make sure instantiated templates are included 62169418810dSmrg # in the archive. 62179418810dSmrg _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 62189418810dSmrg ;; 62199418810dSmrg gcx*) 62209418810dSmrg # Green Hills C++ Compiler 62219418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 62229bd41f2cSmrg 62239418810dSmrg # The C++ compiler must be used to create the archive. 62249418810dSmrg _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 62259418810dSmrg ;; 62269418810dSmrg *) 62279418810dSmrg # GNU C++ compiler with Solaris linker 62289418810dSmrg if test "$GXX" = yes && test "$with_gnu_ld" = no; then 62299418810dSmrg _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' 62309418810dSmrg if $CC --version | $GREP -v '^2\.7' > /dev/null; then 62319418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 62329418810dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 62339418810dSmrg $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 62349418810dSmrg 62359418810dSmrg # Commands to make compiler produce verbose output that lists 62369418810dSmrg # what "hidden" libraries, object files and flags are used when 62379418810dSmrg # linking a shared library. 62389418810dSmrg output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 62399418810dSmrg else 62409418810dSmrg # g++ 2.7 appears to require `-G' NOT `-shared' on this 62419418810dSmrg # platform. 62429418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 62439418810dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 62449418810dSmrg $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 62459418810dSmrg 62469418810dSmrg # Commands to make compiler produce verbose output that lists 62479418810dSmrg # what "hidden" libraries, object files and flags are used when 62489418810dSmrg # linking a shared library. 62499418810dSmrg output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 62509418810dSmrg fi 62519418810dSmrg 62529418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' 62539418810dSmrg case $host_os in 62549418810dSmrg solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 62559418810dSmrg *) 62569418810dSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 62579418810dSmrg ;; 62589418810dSmrg esac 62599418810dSmrg fi 62609418810dSmrg ;; 62619418810dSmrg esac 62629418810dSmrg ;; 62639bd41f2cSmrg 62649418810dSmrg sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 62659418810dSmrg _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 62669418810dSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=no 62679418810dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 62689418810dSmrg runpath_var='LD_RUN_PATH' 62699bd41f2cSmrg 62709418810dSmrg case $cc_basename in 62719418810dSmrg CC*) 62729418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 62739418810dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 62749418810dSmrg ;; 62759418810dSmrg *) 62769418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 62779418810dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 62789418810dSmrg ;; 62799418810dSmrg esac 62809418810dSmrg ;; 62819bd41f2cSmrg 62829418810dSmrg sysv5* | sco3.2v5* | sco5v6*) 62839418810dSmrg # Note: We can NOT use -z defs as we might desire, because we do not 62849418810dSmrg # link with -lc, and that would cause any symbols used from libc to 62859418810dSmrg # always be unresolved, which means just about no library would 62869418810dSmrg # ever link correctly. If we're not using GNU ld we use -z text 62879418810dSmrg # though, which does catch some bad symbols but isn't as heavy-handed 62889418810dSmrg # as -z defs. 62899418810dSmrg _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 62909418810dSmrg _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' 62919418810dSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=no 62929418810dSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 62939418810dSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' 62949418810dSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 62959418810dSmrg _LT_TAGVAR(link_all_deplibs, $1)=yes 62969418810dSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' 62979418810dSmrg runpath_var='LD_RUN_PATH' 62989bd41f2cSmrg 62999418810dSmrg case $cc_basename in 63009418810dSmrg CC*) 63019418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 63029418810dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 63039418810dSmrg ;; 63049418810dSmrg *) 63059418810dSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 63069418810dSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 63079418810dSmrg ;; 63089418810dSmrg esac 63099418810dSmrg ;; 63109bd41f2cSmrg 63119418810dSmrg tandem*) 63129418810dSmrg case $cc_basename in 63139418810dSmrg NCC*) 63149418810dSmrg # NonStop-UX NCC 3.20 63159418810dSmrg # FIXME: insert proper C++ library support 63169418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 63179418810dSmrg ;; 63189418810dSmrg *) 63199418810dSmrg # FIXME: insert proper C++ library support 63209418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 63219418810dSmrg ;; 63229418810dSmrg esac 63239418810dSmrg ;; 63249bd41f2cSmrg 63259418810dSmrg vxworks*) 63269418810dSmrg # FIXME: insert proper C++ library support 63279418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 63289418810dSmrg ;; 63299bd41f2cSmrg 63309418810dSmrg *) 63319418810dSmrg # FIXME: insert proper C++ library support 63329418810dSmrg _LT_TAGVAR(ld_shlibs, $1)=no 63339418810dSmrg ;; 63349418810dSmrg esac 63359bd41f2cSmrg 63369418810dSmrg AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) 63379418810dSmrg test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 63389418810dSmrg 63399418810dSmrg _LT_TAGVAR(GCC, $1)="$GXX" 63409418810dSmrg _LT_TAGVAR(LD, $1)="$LD" 63419418810dSmrg 63429418810dSmrg ## CAVEAT EMPTOR: 63439418810dSmrg ## There is no encapsulation within the following macros, do not change 63449418810dSmrg ## the running order or otherwise move them around unless you know exactly 63459418810dSmrg ## what you are doing... 63469418810dSmrg _LT_SYS_HIDDEN_LIBDEPS($1) 63479418810dSmrg _LT_COMPILER_PIC($1) 63489418810dSmrg _LT_COMPILER_C_O($1) 63499418810dSmrg _LT_COMPILER_FILE_LOCKS($1) 63509418810dSmrg _LT_LINKER_SHLIBS($1) 63519418810dSmrg _LT_SYS_DYNAMIC_LINKER($1) 63529418810dSmrg _LT_LINKER_HARDCODE_LIBPATH($1) 63539418810dSmrg 63549418810dSmrg _LT_CONFIG($1) 63559418810dSmrg fi # test -n "$compiler" 63569418810dSmrg 63579418810dSmrg CC=$lt_save_CC 63589418810dSmrg LDCXX=$LD 63599418810dSmrg LD=$lt_save_LD 63609418810dSmrg GCC=$lt_save_GCC 63619418810dSmrg with_gnu_ld=$lt_save_with_gnu_ld 63629418810dSmrg lt_cv_path_LDCXX=$lt_cv_path_LD 63639418810dSmrg lt_cv_path_LD=$lt_save_path_LD 63649418810dSmrg lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 63659418810dSmrg lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 63669418810dSmrgfi # test "$_lt_caught_CXX_error" != yes 63679bd41f2cSmrg 63689418810dSmrgAC_LANG_POP 63699418810dSmrg])# _LT_LANG_CXX_CONFIG 63709bd41f2cSmrg 63719bd41f2cSmrg 63729418810dSmrg# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) 63739418810dSmrg# --------------------------------- 63749418810dSmrg# Figure out "hidden" library dependencies from verbose 63759418810dSmrg# compiler output when linking a shared library. 63769418810dSmrg# Parse the compiler output and extract the necessary 63779418810dSmrg# objects, libraries and library flags. 63789418810dSmrgm4_defun([_LT_SYS_HIDDEN_LIBDEPS], 63799418810dSmrg[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 63809418810dSmrg# Dependencies to place before and after the object being linked: 63819418810dSmrg_LT_TAGVAR(predep_objects, $1)= 63829418810dSmrg_LT_TAGVAR(postdep_objects, $1)= 63839418810dSmrg_LT_TAGVAR(predeps, $1)= 63849418810dSmrg_LT_TAGVAR(postdeps, $1)= 63859418810dSmrg_LT_TAGVAR(compiler_lib_search_path, $1)= 63869bd41f2cSmrg 63879418810dSmrgdnl we can't use the lt_simple_compile_test_code here, 63889418810dSmrgdnl because it contains code intended for an executable, 63899418810dSmrgdnl not a library. It's possible we should let each 63909418810dSmrgdnl tag define a new lt_????_link_test_code variable, 63919418810dSmrgdnl but it's only used here... 63929418810dSmrgm4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF 63939418810dSmrgint a; 63949418810dSmrgvoid foo (void) { a = 0; } 63959418810dSmrg_LT_EOF 63969418810dSmrg], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF 63979418810dSmrgclass Foo 63989418810dSmrg{ 63999418810dSmrgpublic: 64009418810dSmrg Foo (void) { a = 0; } 64019418810dSmrgprivate: 64029418810dSmrg int a; 64039418810dSmrg}; 64049418810dSmrg_LT_EOF 64059418810dSmrg], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF 64069418810dSmrg subroutine foo 64079418810dSmrg implicit none 64089418810dSmrg integer*4 a 64099418810dSmrg a=0 64109418810dSmrg return 64119418810dSmrg end 64129418810dSmrg_LT_EOF 64139418810dSmrg], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF 64149418810dSmrg subroutine foo 64159418810dSmrg implicit none 64169418810dSmrg integer a 64179418810dSmrg a=0 64189418810dSmrg return 64199418810dSmrg end 64209418810dSmrg_LT_EOF 64219418810dSmrg], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF 64229418810dSmrgpublic class foo { 64239418810dSmrg private int a; 64249418810dSmrg public void bar (void) { 64259418810dSmrg a = 0; 64269418810dSmrg } 64279418810dSmrg}; 64289418810dSmrg_LT_EOF 64299418810dSmrg]) 64309418810dSmrgdnl Parse the compiler output and extract the necessary 64319418810dSmrgdnl objects, libraries and library flags. 64329418810dSmrgif AC_TRY_EVAL(ac_compile); then 64339418810dSmrg # Parse the compiler output and extract the necessary 64349418810dSmrg # objects, libraries and library flags. 64359bd41f2cSmrg 64369418810dSmrg # Sentinel used to keep track of whether or not we are before 64379418810dSmrg # the conftest object file. 64389418810dSmrg pre_test_object_deps_done=no 64399bd41f2cSmrg 64409418810dSmrg for p in `eval "$output_verbose_link_cmd"`; do 64419418810dSmrg case $p in 64429bd41f2cSmrg 64439418810dSmrg -L* | -R* | -l*) 64449418810dSmrg # Some compilers place space between "-{L,R}" and the path. 64459418810dSmrg # Remove the space. 64469418810dSmrg if test $p = "-L" || 64479418810dSmrg test $p = "-R"; then 64489418810dSmrg prev=$p 64499418810dSmrg continue 64509418810dSmrg else 64519418810dSmrg prev= 64529418810dSmrg fi 64539bd41f2cSmrg 64549418810dSmrg if test "$pre_test_object_deps_done" = no; then 64559418810dSmrg case $p in 64569418810dSmrg -L* | -R*) 64579418810dSmrg # Internal compiler library paths should come after those 64589418810dSmrg # provided the user. The postdeps already come after the 64599418810dSmrg # user supplied libs so there is no need to process them. 64609418810dSmrg if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then 64619418810dSmrg _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" 64629418810dSmrg else 64639418810dSmrg _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" 64649418810dSmrg fi 64659418810dSmrg ;; 64669418810dSmrg # The "-l" case would never come before the object being 64679418810dSmrg # linked, so don't bother handling this case. 64689418810dSmrg esac 64699418810dSmrg else 64709418810dSmrg if test -z "$_LT_TAGVAR(postdeps, $1)"; then 64719418810dSmrg _LT_TAGVAR(postdeps, $1)="${prev}${p}" 64729418810dSmrg else 64739418810dSmrg _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}" 64749418810dSmrg fi 64759418810dSmrg fi 64769418810dSmrg ;; 64779bd41f2cSmrg 64789418810dSmrg *.$objext) 64799418810dSmrg # This assumes that the test object file only shows up 64809418810dSmrg # once in the compiler output. 64819418810dSmrg if test "$p" = "conftest.$objext"; then 64829418810dSmrg pre_test_object_deps_done=yes 64839418810dSmrg continue 64849418810dSmrg fi 64859bd41f2cSmrg 64869418810dSmrg if test "$pre_test_object_deps_done" = no; then 64879418810dSmrg if test -z "$_LT_TAGVAR(predep_objects, $1)"; then 64889418810dSmrg _LT_TAGVAR(predep_objects, $1)="$p" 64899418810dSmrg else 64909418810dSmrg _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" 64919418810dSmrg fi 64929418810dSmrg else 64939418810dSmrg if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then 64949418810dSmrg _LT_TAGVAR(postdep_objects, $1)="$p" 64959418810dSmrg else 64969418810dSmrg _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" 64979418810dSmrg fi 64989418810dSmrg fi 64999418810dSmrg ;; 65009bd41f2cSmrg 65019418810dSmrg *) ;; # Ignore the rest. 65029bd41f2cSmrg 65039418810dSmrg esac 65049418810dSmrg done 65059bd41f2cSmrg 65069418810dSmrg # Clean up. 65079418810dSmrg rm -f a.out a.exe 65089bd41f2cSmrgelse 65099418810dSmrg echo "libtool.m4: error: problem compiling $1 test program" 65109bd41f2cSmrgfi 65119bd41f2cSmrg 65129418810dSmrg$RM -f confest.$objext 65139bd41f2cSmrg 65149418810dSmrg# PORTME: override above test on systems where it is broken 65159418810dSmrgm4_if([$1], [CXX], 65169418810dSmrg[case $host_os in 65179418810dSmrginterix[[3-9]]*) 65189418810dSmrg # Interix 3.5 installs completely hosed .la files for C++, so rather than 65199418810dSmrg # hack all around it, let's just trust "g++" to DTRT. 65209418810dSmrg _LT_TAGVAR(predep_objects,$1)= 65219418810dSmrg _LT_TAGVAR(postdep_objects,$1)= 65229418810dSmrg _LT_TAGVAR(postdeps,$1)= 65239418810dSmrg ;; 65249bd41f2cSmrg 65259418810dSmrglinux*) 65269418810dSmrg case `$CC -V 2>&1 | sed 5q` in 65279418810dSmrg *Sun\ C*) 65289418810dSmrg # Sun C++ 5.9 65299bd41f2cSmrg 65309418810dSmrg # The more standards-conforming stlport4 library is 65319418810dSmrg # incompatible with the Cstd library. Avoid specifying 65329418810dSmrg # it if it's in CXXFLAGS. Ignore libCrun as 65339418810dSmrg # -library=stlport4 depends on it. 65349418810dSmrg case " $CXX $CXXFLAGS " in 65359418810dSmrg *" -library=stlport4 "*) 65369418810dSmrg solaris_use_stlport4=yes 65379418810dSmrg ;; 65389418810dSmrg esac 65399bd41f2cSmrg 65409418810dSmrg if test "$solaris_use_stlport4" != yes; then 65419418810dSmrg _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' 65429418810dSmrg fi 65439418810dSmrg ;; 65449418810dSmrg esac 65459418810dSmrg ;; 65469418810dSmrg 65479418810dSmrgsolaris*) 65489418810dSmrg case $cc_basename in 65499418810dSmrg CC*) 65509418810dSmrg # The more standards-conforming stlport4 library is 65519418810dSmrg # incompatible with the Cstd library. Avoid specifying 65529418810dSmrg # it if it's in CXXFLAGS. Ignore libCrun as 65539418810dSmrg # -library=stlport4 depends on it. 65549418810dSmrg case " $CXX $CXXFLAGS " in 65559418810dSmrg *" -library=stlport4 "*) 65569418810dSmrg solaris_use_stlport4=yes 65579418810dSmrg ;; 65589418810dSmrg esac 65599bd41f2cSmrg 65609418810dSmrg # Adding this requires a known-good setup of shared libraries for 65619418810dSmrg # Sun compiler versions before 5.6, else PIC objects from an old 65629418810dSmrg # archive will be linked into the output, leading to subtle bugs. 65639418810dSmrg if test "$solaris_use_stlport4" != yes; then 65649418810dSmrg _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' 65659418810dSmrg fi 65669418810dSmrg ;; 65679418810dSmrg esac 65689418810dSmrg ;; 65699418810dSmrgesac 65709418810dSmrg]) 65719bd41f2cSmrg 65729418810dSmrgcase " $_LT_TAGVAR(postdeps, $1) " in 65739418810dSmrg*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; 65749418810dSmrgesac 65759418810dSmrg _LT_TAGVAR(compiler_lib_search_dirs, $1)= 65769418810dSmrgif test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then 65779418810dSmrg _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 65789418810dSmrgfi 65799418810dSmrg_LT_TAGDECL([], [compiler_lib_search_dirs], [1], 65809418810dSmrg [The directories searched by this compiler when creating a shared library]) 65819418810dSmrg_LT_TAGDECL([], [predep_objects], [1], 65829418810dSmrg [Dependencies to place before and after the objects being linked to 65839418810dSmrg create a shared library]) 65849418810dSmrg_LT_TAGDECL([], [postdep_objects], [1]) 65859418810dSmrg_LT_TAGDECL([], [predeps], [1]) 65869418810dSmrg_LT_TAGDECL([], [postdeps], [1]) 65879418810dSmrg_LT_TAGDECL([], [compiler_lib_search_path], [1], 65889418810dSmrg [The library search path used internally by the compiler when linking 65899418810dSmrg a shared library]) 65909418810dSmrg])# _LT_SYS_HIDDEN_LIBDEPS 65919418810dSmrg 65929418810dSmrg 65939418810dSmrg# _LT_PROG_F77 65949418810dSmrg# ------------ 65959418810dSmrg# Since AC_PROG_F77 is broken, in that it returns the empty string 65969418810dSmrg# if there is no fortran compiler, we have our own version here. 65979418810dSmrgm4_defun([_LT_PROG_F77], 65989bd41f2cSmrg[ 65999418810dSmrgpushdef([AC_MSG_ERROR], [_lt_disable_F77=yes]) 66009418810dSmrgAC_PROG_F77 66019418810dSmrgif test -z "$F77" || test "X$F77" = "Xno"; then 66029418810dSmrg _lt_disable_F77=yes 66039418810dSmrgfi 66049418810dSmrgpopdef([AC_MSG_ERROR]) 66059418810dSmrg])# _LT_PROG_F77 66069bd41f2cSmrg 66079418810dSmrgdnl aclocal-1.4 backwards compatibility: 66089418810dSmrgdnl AC_DEFUN([_LT_PROG_F77], []) 66099bd41f2cSmrg 66109bd41f2cSmrg 66119418810dSmrg# _LT_LANG_F77_CONFIG([TAG]) 66129418810dSmrg# -------------------------- 66139418810dSmrg# Ensure that the configuration variables for a Fortran 77 compiler are 66149418810dSmrg# suitably defined. These variables are subsequently used by _LT_CONFIG 66159418810dSmrg# to write the compiler configuration to `libtool'. 66169418810dSmrgm4_defun([_LT_LANG_F77_CONFIG], 66179418810dSmrg[AC_REQUIRE([_LT_PROG_F77])dnl 66189418810dSmrgAC_LANG_PUSH(Fortran 77) 66199bd41f2cSmrg 66209418810dSmrg_LT_TAGVAR(archive_cmds_need_lc, $1)=no 66219418810dSmrg_LT_TAGVAR(allow_undefined_flag, $1)= 66229418810dSmrg_LT_TAGVAR(always_export_symbols, $1)=no 66239418810dSmrg_LT_TAGVAR(archive_expsym_cmds, $1)= 66249418810dSmrg_LT_TAGVAR(export_dynamic_flag_spec, $1)= 66259418810dSmrg_LT_TAGVAR(hardcode_direct, $1)=no 66269418810dSmrg_LT_TAGVAR(hardcode_direct_absolute, $1)=no 66279418810dSmrg_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 66289418810dSmrg_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 66299418810dSmrg_LT_TAGVAR(hardcode_libdir_separator, $1)= 66309418810dSmrg_LT_TAGVAR(hardcode_minus_L, $1)=no 66319418810dSmrg_LT_TAGVAR(hardcode_automatic, $1)=no 66329418810dSmrg_LT_TAGVAR(inherit_rpath, $1)=no 66339418810dSmrg_LT_TAGVAR(module_cmds, $1)= 66349418810dSmrg_LT_TAGVAR(module_expsym_cmds, $1)= 66359418810dSmrg_LT_TAGVAR(link_all_deplibs, $1)=unknown 66369418810dSmrg_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 66379418810dSmrg_LT_TAGVAR(no_undefined_flag, $1)= 66389418810dSmrg_LT_TAGVAR(whole_archive_flag_spec, $1)= 66399418810dSmrg_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 66409bd41f2cSmrg 66419418810dSmrg# Source file extension for f77 test sources. 66429418810dSmrgac_ext=f 66439bd41f2cSmrg 66449418810dSmrg# Object file extension for compiled f77 test sources. 66459418810dSmrgobjext=o 66469418810dSmrg_LT_TAGVAR(objext, $1)=$objext 66479418810dSmrg 66489418810dSmrg# No sense in running all these tests if we already determined that 66499418810dSmrg# the F77 compiler isn't working. Some variables (like enable_shared) 66509418810dSmrg# are currently assumed to apply to all compilers on this platform, 66519418810dSmrg# and will be corrupted by setting them based on a non-working compiler. 66529418810dSmrgif test "$_lt_disable_F77" != yes; then 66539418810dSmrg # Code to be used in simple compile tests 66549418810dSmrg lt_simple_compile_test_code="\ 66559418810dSmrg subroutine t 66569418810dSmrg return 66579418810dSmrg end 66589418810dSmrg" 66599bd41f2cSmrg 66609418810dSmrg # Code to be used in simple link tests 66619418810dSmrg lt_simple_link_test_code="\ 66629418810dSmrg program t 66639418810dSmrg end 66649418810dSmrg" 66659bd41f2cSmrg 66669418810dSmrg # ltmain only uses $CC for tagged configurations so make sure $CC is set. 66679418810dSmrg _LT_TAG_COMPILER 66689bd41f2cSmrg 66699418810dSmrg # save warnings/boilerplate of simple test code 66709418810dSmrg _LT_COMPILER_BOILERPLATE 66719418810dSmrg _LT_LINKER_BOILERPLATE 66729bd41f2cSmrg 66739418810dSmrg # Allow CC to be a program name with arguments. 66749418810dSmrg lt_save_CC="$CC" 66759418810dSmrg lt_save_GCC=$GCC 66769418810dSmrg CC=${F77-"f77"} 66779418810dSmrg compiler=$CC 66789418810dSmrg _LT_TAGVAR(compiler, $1)=$CC 66799418810dSmrg _LT_CC_BASENAME([$compiler]) 66809418810dSmrg GCC=$G77 66819418810dSmrg if test -n "$compiler"; then 66829418810dSmrg AC_MSG_CHECKING([if libtool supports shared libraries]) 66839418810dSmrg AC_MSG_RESULT([$can_build_shared]) 66849bd41f2cSmrg 66859418810dSmrg AC_MSG_CHECKING([whether to build shared libraries]) 66869418810dSmrg test "$can_build_shared" = "no" && enable_shared=no 66879bd41f2cSmrg 66889418810dSmrg # On AIX, shared libraries and static libraries use the same namespace, and 66899418810dSmrg # are all built from PIC. 66909418810dSmrg case $host_os in 66919418810dSmrg aix3*) 66929418810dSmrg test "$enable_shared" = yes && enable_static=no 66939418810dSmrg if test -n "$RANLIB"; then 66949418810dSmrg archive_cmds="$archive_cmds~\$RANLIB \$lib" 66959418810dSmrg postinstall_cmds='$RANLIB $lib' 66969418810dSmrg fi 66979418810dSmrg ;; 66989418810dSmrg aix[[4-9]]*) 66999418810dSmrg if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 67009418810dSmrg test "$enable_shared" = yes && enable_static=no 67019418810dSmrg fi 67029418810dSmrg ;; 67039418810dSmrg esac 67049418810dSmrg AC_MSG_RESULT([$enable_shared]) 67059418810dSmrg 67069418810dSmrg AC_MSG_CHECKING([whether to build static libraries]) 67079418810dSmrg # Make sure either enable_shared or enable_static is yes. 67089418810dSmrg test "$enable_shared" = yes || enable_static=yes 67099418810dSmrg AC_MSG_RESULT([$enable_static]) 67109418810dSmrg 67119418810dSmrg _LT_TAGVAR(GCC, $1)="$G77" 67129418810dSmrg _LT_TAGVAR(LD, $1)="$LD" 67139418810dSmrg 67149418810dSmrg ## CAVEAT EMPTOR: 67159418810dSmrg ## There is no encapsulation within the following macros, do not change 67169418810dSmrg ## the running order or otherwise move them around unless you know exactly 67179418810dSmrg ## what you are doing... 67189418810dSmrg _LT_COMPILER_PIC($1) 67199418810dSmrg _LT_COMPILER_C_O($1) 67209418810dSmrg _LT_COMPILER_FILE_LOCKS($1) 67219418810dSmrg _LT_LINKER_SHLIBS($1) 67229418810dSmrg _LT_SYS_DYNAMIC_LINKER($1) 67239418810dSmrg _LT_LINKER_HARDCODE_LIBPATH($1) 67249418810dSmrg 67259418810dSmrg _LT_CONFIG($1) 67269418810dSmrg fi # test -n "$compiler" 67279418810dSmrg 67289418810dSmrg GCC=$lt_save_GCC 67299418810dSmrg CC="$lt_save_CC" 67309418810dSmrgfi # test "$_lt_disable_F77" != yes 67319bd41f2cSmrg 67329418810dSmrgAC_LANG_POP 67339418810dSmrg])# _LT_LANG_F77_CONFIG 67349bd41f2cSmrg 67359bd41f2cSmrg 67369418810dSmrg# _LT_PROG_FC 67379418810dSmrg# ----------- 67389418810dSmrg# Since AC_PROG_FC is broken, in that it returns the empty string 67399418810dSmrg# if there is no fortran compiler, we have our own version here. 67409418810dSmrgm4_defun([_LT_PROG_FC], 67419418810dSmrg[ 67429418810dSmrgpushdef([AC_MSG_ERROR], [_lt_disable_FC=yes]) 67439418810dSmrgAC_PROG_FC 67449418810dSmrgif test -z "$FC" || test "X$FC" = "Xno"; then 67459418810dSmrg _lt_disable_FC=yes 67469418810dSmrgfi 67479418810dSmrgpopdef([AC_MSG_ERROR]) 67489418810dSmrg])# _LT_PROG_FC 67499bd41f2cSmrg 67509418810dSmrgdnl aclocal-1.4 backwards compatibility: 67519418810dSmrgdnl AC_DEFUN([_LT_PROG_FC], []) 67529bd41f2cSmrg 67539bd41f2cSmrg 67549418810dSmrg# _LT_LANG_FC_CONFIG([TAG]) 67559418810dSmrg# ------------------------- 67569418810dSmrg# Ensure that the configuration variables for a Fortran compiler are 67579418810dSmrg# suitably defined. These variables are subsequently used by _LT_CONFIG 67589418810dSmrg# to write the compiler configuration to `libtool'. 67599418810dSmrgm4_defun([_LT_LANG_FC_CONFIG], 67609418810dSmrg[AC_REQUIRE([_LT_PROG_FC])dnl 67619418810dSmrgAC_LANG_PUSH(Fortran) 67629418810dSmrg 67639418810dSmrg_LT_TAGVAR(archive_cmds_need_lc, $1)=no 67649418810dSmrg_LT_TAGVAR(allow_undefined_flag, $1)= 67659418810dSmrg_LT_TAGVAR(always_export_symbols, $1)=no 67669418810dSmrg_LT_TAGVAR(archive_expsym_cmds, $1)= 67679418810dSmrg_LT_TAGVAR(export_dynamic_flag_spec, $1)= 67689418810dSmrg_LT_TAGVAR(hardcode_direct, $1)=no 67699418810dSmrg_LT_TAGVAR(hardcode_direct_absolute, $1)=no 67709418810dSmrg_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 67719418810dSmrg_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 67729418810dSmrg_LT_TAGVAR(hardcode_libdir_separator, $1)= 67739418810dSmrg_LT_TAGVAR(hardcode_minus_L, $1)=no 67749418810dSmrg_LT_TAGVAR(hardcode_automatic, $1)=no 67759418810dSmrg_LT_TAGVAR(inherit_rpath, $1)=no 67769418810dSmrg_LT_TAGVAR(module_cmds, $1)= 67779418810dSmrg_LT_TAGVAR(module_expsym_cmds, $1)= 67789418810dSmrg_LT_TAGVAR(link_all_deplibs, $1)=unknown 67799418810dSmrg_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 67809418810dSmrg_LT_TAGVAR(no_undefined_flag, $1)= 67819418810dSmrg_LT_TAGVAR(whole_archive_flag_spec, $1)= 67829418810dSmrg_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 67839418810dSmrg 67849418810dSmrg# Source file extension for fc test sources. 67859418810dSmrgac_ext=${ac_fc_srcext-f} 67869418810dSmrg 67879418810dSmrg# Object file extension for compiled fc test sources. 67889418810dSmrgobjext=o 67899418810dSmrg_LT_TAGVAR(objext, $1)=$objext 67909418810dSmrg 67919418810dSmrg# No sense in running all these tests if we already determined that 67929418810dSmrg# the FC compiler isn't working. Some variables (like enable_shared) 67939418810dSmrg# are currently assumed to apply to all compilers on this platform, 67949418810dSmrg# and will be corrupted by setting them based on a non-working compiler. 67959418810dSmrgif test "$_lt_disable_FC" != yes; then 67969418810dSmrg # Code to be used in simple compile tests 67979418810dSmrg lt_simple_compile_test_code="\ 67989418810dSmrg subroutine t 67999418810dSmrg return 68009418810dSmrg end 68019418810dSmrg" 68029bd41f2cSmrg 68039418810dSmrg # Code to be used in simple link tests 68049418810dSmrg lt_simple_link_test_code="\ 68059418810dSmrg program t 68069418810dSmrg end 68079418810dSmrg" 68089bd41f2cSmrg 68099418810dSmrg # ltmain only uses $CC for tagged configurations so make sure $CC is set. 68109418810dSmrg _LT_TAG_COMPILER 68119bd41f2cSmrg 68129418810dSmrg # save warnings/boilerplate of simple test code 68139418810dSmrg _LT_COMPILER_BOILERPLATE 68149418810dSmrg _LT_LINKER_BOILERPLATE 68159bd41f2cSmrg 68169418810dSmrg # Allow CC to be a program name with arguments. 68179418810dSmrg lt_save_CC="$CC" 68189418810dSmrg lt_save_GCC=$GCC 68199418810dSmrg CC=${FC-"f95"} 68209418810dSmrg compiler=$CC 68219418810dSmrg GCC=$ac_cv_fc_compiler_gnu 68229418810dSmrg 68239418810dSmrg _LT_TAGVAR(compiler, $1)=$CC 68249418810dSmrg _LT_CC_BASENAME([$compiler]) 68259418810dSmrg 68269418810dSmrg if test -n "$compiler"; then 68279418810dSmrg AC_MSG_CHECKING([if libtool supports shared libraries]) 68289418810dSmrg AC_MSG_RESULT([$can_build_shared]) 68299bd41f2cSmrg 68309418810dSmrg AC_MSG_CHECKING([whether to build shared libraries]) 68319418810dSmrg test "$can_build_shared" = "no" && enable_shared=no 68329418810dSmrg 68339418810dSmrg # On AIX, shared libraries and static libraries use the same namespace, and 68349418810dSmrg # are all built from PIC. 68359bd41f2cSmrg case $host_os in 68369418810dSmrg aix3*) 68379418810dSmrg test "$enable_shared" = yes && enable_static=no 68389418810dSmrg if test -n "$RANLIB"; then 68399418810dSmrg archive_cmds="$archive_cmds~\$RANLIB \$lib" 68409418810dSmrg postinstall_cmds='$RANLIB $lib' 68419418810dSmrg fi 68429418810dSmrg ;; 6843d075918cSmrg aix[[4-9]]*) 68449418810dSmrg if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 68459418810dSmrg test "$enable_shared" = yes && enable_static=no 68469bd41f2cSmrg fi 68479418810dSmrg ;; 68489bd41f2cSmrg esac 68499418810dSmrg AC_MSG_RESULT([$enable_shared]) 68509418810dSmrg 68519418810dSmrg AC_MSG_CHECKING([whether to build static libraries]) 68529418810dSmrg # Make sure either enable_shared or enable_static is yes. 68539418810dSmrg test "$enable_shared" = yes || enable_static=yes 68549418810dSmrg AC_MSG_RESULT([$enable_static]) 68559418810dSmrg 68569418810dSmrg _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu" 68579418810dSmrg _LT_TAGVAR(LD, $1)="$LD" 68589418810dSmrg 68599418810dSmrg ## CAVEAT EMPTOR: 68609418810dSmrg ## There is no encapsulation within the following macros, do not change 68619418810dSmrg ## the running order or otherwise move them around unless you know exactly 68629418810dSmrg ## what you are doing... 68639418810dSmrg _LT_SYS_HIDDEN_LIBDEPS($1) 68649418810dSmrg _LT_COMPILER_PIC($1) 68659418810dSmrg _LT_COMPILER_C_O($1) 68669418810dSmrg _LT_COMPILER_FILE_LOCKS($1) 68679418810dSmrg _LT_LINKER_SHLIBS($1) 68689418810dSmrg _LT_SYS_DYNAMIC_LINKER($1) 68699418810dSmrg _LT_LINKER_HARDCODE_LIBPATH($1) 68709418810dSmrg 68719418810dSmrg _LT_CONFIG($1) 68729418810dSmrg fi # test -n "$compiler" 68739418810dSmrg 68749418810dSmrg GCC=$lt_save_GCC 68759418810dSmrg CC="$lt_save_CC" 68769418810dSmrgfi # test "$_lt_disable_FC" != yes 68779bd41f2cSmrg 68789418810dSmrgAC_LANG_POP 68799418810dSmrg])# _LT_LANG_FC_CONFIG 68809bd41f2cSmrg 68819bd41f2cSmrg 68829418810dSmrg# _LT_LANG_GCJ_CONFIG([TAG]) 68839418810dSmrg# -------------------------- 68849418810dSmrg# Ensure that the configuration variables for the GNU Java Compiler compiler 68859418810dSmrg# are suitably defined. These variables are subsequently used by _LT_CONFIG 68869418810dSmrg# to write the compiler configuration to `libtool'. 68879418810dSmrgm4_defun([_LT_LANG_GCJ_CONFIG], 68889418810dSmrg[AC_REQUIRE([LT_PROG_GCJ])dnl 68899418810dSmrgAC_LANG_SAVE 68909bd41f2cSmrg 68919418810dSmrg# Source file extension for Java test sources. 68929418810dSmrgac_ext=java 68939bd41f2cSmrg 68949418810dSmrg# Object file extension for compiled Java test sources. 68959418810dSmrgobjext=o 68969418810dSmrg_LT_TAGVAR(objext, $1)=$objext 68979bd41f2cSmrg 68989418810dSmrg# Code to be used in simple compile tests 68999418810dSmrglt_simple_compile_test_code="class foo {}" 69009bd41f2cSmrg 69019418810dSmrg# Code to be used in simple link tests 69029418810dSmrglt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' 69039bd41f2cSmrg 69049418810dSmrg# ltmain only uses $CC for tagged configurations so make sure $CC is set. 69059418810dSmrg_LT_TAG_COMPILER 69069bd41f2cSmrg 69079418810dSmrg# save warnings/boilerplate of simple test code 69089418810dSmrg_LT_COMPILER_BOILERPLATE 69099418810dSmrg_LT_LINKER_BOILERPLATE 69109418810dSmrg 69119418810dSmrg# Allow CC to be a program name with arguments. 69129418810dSmrglt_save_CC="$CC" 69139418810dSmrglt_save_GCC=$GCC 69149418810dSmrgGCC=yes 69159418810dSmrgCC=${GCJ-"gcj"} 69169418810dSmrgcompiler=$CC 69179418810dSmrg_LT_TAGVAR(compiler, $1)=$CC 69189418810dSmrg_LT_TAGVAR(LD, $1)="$LD" 69199418810dSmrg_LT_CC_BASENAME([$compiler]) 69209418810dSmrg 69219418810dSmrg# GCJ did not exist at the time GCC didn't implicitly link libc in. 69229418810dSmrg_LT_TAGVAR(archive_cmds_need_lc, $1)=no 69239418810dSmrg 69249418810dSmrg_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 69259418810dSmrg 69269418810dSmrgif test -n "$compiler"; then 69279418810dSmrg _LT_COMPILER_NO_RTTI($1) 69289418810dSmrg _LT_COMPILER_PIC($1) 69299418810dSmrg _LT_COMPILER_C_O($1) 69309418810dSmrg _LT_COMPILER_FILE_LOCKS($1) 69319418810dSmrg _LT_LINKER_SHLIBS($1) 69329418810dSmrg _LT_LINKER_HARDCODE_LIBPATH($1) 69339418810dSmrg 69349418810dSmrg _LT_CONFIG($1) 69359418810dSmrgfi 69369418810dSmrg 69379418810dSmrgAC_LANG_RESTORE 69389bd41f2cSmrg 69399418810dSmrgGCC=$lt_save_GCC 69409418810dSmrgCC="$lt_save_CC" 69419418810dSmrg])# _LT_LANG_GCJ_CONFIG 69429bd41f2cSmrg 69439bd41f2cSmrg 69449418810dSmrg# _LT_LANG_RC_CONFIG([TAG]) 69459418810dSmrg# ------------------------- 69469418810dSmrg# Ensure that the configuration variables for the Windows resource compiler 69479418810dSmrg# are suitably defined. These variables are subsequently used by _LT_CONFIG 69489418810dSmrg# to write the compiler configuration to `libtool'. 69499418810dSmrgm4_defun([_LT_LANG_RC_CONFIG], 69509418810dSmrg[AC_REQUIRE([LT_PROG_RC])dnl 69519418810dSmrgAC_LANG_SAVE 69529bd41f2cSmrg 69539418810dSmrg# Source file extension for RC test sources. 69549418810dSmrgac_ext=rc 69559bd41f2cSmrg 69569418810dSmrg# Object file extension for compiled RC test sources. 69579418810dSmrgobjext=o 69589418810dSmrg_LT_TAGVAR(objext, $1)=$objext 69599bd41f2cSmrg 69609418810dSmrg# Code to be used in simple compile tests 69619418810dSmrglt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 69629bd41f2cSmrg 69639418810dSmrg# Code to be used in simple link tests 69649418810dSmrglt_simple_link_test_code="$lt_simple_compile_test_code" 69659bd41f2cSmrg 69669418810dSmrg# ltmain only uses $CC for tagged configurations so make sure $CC is set. 69679418810dSmrg_LT_TAG_COMPILER 69689bd41f2cSmrg 69699418810dSmrg# save warnings/boilerplate of simple test code 69709418810dSmrg_LT_COMPILER_BOILERPLATE 69719418810dSmrg_LT_LINKER_BOILERPLATE 69729bd41f2cSmrg 69739418810dSmrg# Allow CC to be a program name with arguments. 69749418810dSmrglt_save_CC="$CC" 69759418810dSmrglt_save_GCC=$GCC 69769418810dSmrgGCC= 69779418810dSmrgCC=${RC-"windres"} 69789418810dSmrgcompiler=$CC 69799418810dSmrg_LT_TAGVAR(compiler, $1)=$CC 69809418810dSmrg_LT_CC_BASENAME([$compiler]) 69819418810dSmrg_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 69829bd41f2cSmrg 69839418810dSmrgif test -n "$compiler"; then 69849418810dSmrg : 69859418810dSmrg _LT_CONFIG($1) 69869418810dSmrgfi 69879bd41f2cSmrg 69889418810dSmrgGCC=$lt_save_GCC 69899418810dSmrgAC_LANG_RESTORE 69909418810dSmrgCC="$lt_save_CC" 69919418810dSmrg])# _LT_LANG_RC_CONFIG 69929bd41f2cSmrg 69939bd41f2cSmrg 69949418810dSmrg# LT_PROG_GCJ 69959418810dSmrg# ----------- 69969418810dSmrgAC_DEFUN([LT_PROG_GCJ], 69979418810dSmrg[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], 69989418810dSmrg [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], 69999418810dSmrg [AC_CHECK_TOOL(GCJ, gcj,) 70009418810dSmrg test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" 70019418810dSmrg AC_SUBST(GCJFLAGS)])])[]dnl 70029418810dSmrg]) 70039bd41f2cSmrg 70049418810dSmrg# Old name: 70059418810dSmrgAU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) 70069418810dSmrgdnl aclocal-1.4 backwards compatibility: 70079418810dSmrgdnl AC_DEFUN([LT_AC_PROG_GCJ], []) 70089bd41f2cSmrg 70099418810dSmrg 70109418810dSmrg# LT_PROG_RC 70119418810dSmrg# ---------- 70129418810dSmrgAC_DEFUN([LT_PROG_RC], 70139418810dSmrg[AC_CHECK_TOOL(RC, windres,) 70149bd41f2cSmrg]) 70159bd41f2cSmrg 70169418810dSmrg# Old name: 70179418810dSmrgAU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) 70189418810dSmrgdnl aclocal-1.4 backwards compatibility: 70199418810dSmrgdnl AC_DEFUN([LT_AC_PROG_RC], []) 70209bd41f2cSmrg 70219418810dSmrg 70229418810dSmrg# _LT_DECL_EGREP 70239418810dSmrg# -------------- 70249418810dSmrg# If we don't have a new enough Autoconf to choose the best grep 70259418810dSmrg# available, choose the one first in the user's PATH. 70269418810dSmrgm4_defun([_LT_DECL_EGREP], 70279418810dSmrg[AC_REQUIRE([AC_PROG_EGREP])dnl 70289418810dSmrgAC_REQUIRE([AC_PROG_FGREP])dnl 70299418810dSmrgtest -z "$GREP" && GREP=grep 70309418810dSmrg_LT_DECL([], [GREP], [1], [A grep program that handles long lines]) 70319418810dSmrg_LT_DECL([], [EGREP], [1], [An ERE matcher]) 70329418810dSmrg_LT_DECL([], [FGREP], [1], [A literal string matcher]) 70339418810dSmrgdnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too 70349418810dSmrgAC_SUBST([GREP]) 70359bd41f2cSmrg]) 70369bd41f2cSmrg 70379bd41f2cSmrg 70389418810dSmrg# _LT_DECL_OBJDUMP 70399418810dSmrg# -------------- 70409418810dSmrg# If we don't have a new enough Autoconf to choose the best objdump 70419418810dSmrg# available, choose the one first in the user's PATH. 70429418810dSmrgm4_defun([_LT_DECL_OBJDUMP], 70439418810dSmrg[AC_CHECK_TOOL(OBJDUMP, objdump, false) 70449418810dSmrgtest -z "$OBJDUMP" && OBJDUMP=objdump 70459418810dSmrg_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) 70469418810dSmrgAC_SUBST([OBJDUMP]) 70479418810dSmrg]) 70489418810dSmrg 70499418810dSmrg 70509418810dSmrg# _LT_DECL_SED 70519418810dSmrg# ------------ 70529418810dSmrg# Check for a fully-functional sed program, that truncates 70539418810dSmrg# as few characters as possible. Prefer GNU sed if found. 70549418810dSmrgm4_defun([_LT_DECL_SED], 70559418810dSmrg[AC_PROG_SED 70569418810dSmrgtest -z "$SED" && SED=sed 70579418810dSmrgXsed="$SED -e 1s/^X//" 70589418810dSmrg_LT_DECL([], [SED], [1], [A sed program that does not truncate output]) 70599418810dSmrg_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], 70609418810dSmrg [Sed that helps us avoid accidentally triggering echo(1) options like -n]) 70619418810dSmrg])# _LT_DECL_SED 70629418810dSmrg 70639418810dSmrgm4_ifndef([AC_PROG_SED], [ 70649418810dSmrg# NOTE: This macro has been submitted for inclusion into # 70659418810dSmrg# GNU Autoconf as AC_PROG_SED. When it is available in # 70669418810dSmrg# a released version of Autoconf we should remove this # 70679418810dSmrg# macro and use it instead. # 70689418810dSmrg 70699418810dSmrgm4_defun([AC_PROG_SED], 70709418810dSmrg[AC_MSG_CHECKING([for a sed that does not truncate output]) 70719418810dSmrgAC_CACHE_VAL(lt_cv_path_SED, 70729418810dSmrg[# Loop through the user's path and test for sed and gsed. 70739418810dSmrg# Then use that list of sed's as ones to test for truncation. 70749418810dSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 70759418810dSmrgfor as_dir in $PATH 70769418810dSmrgdo 70779418810dSmrg IFS=$as_save_IFS 70789418810dSmrg test -z "$as_dir" && as_dir=. 70799418810dSmrg for lt_ac_prog in sed gsed; do 70809418810dSmrg for ac_exec_ext in '' $ac_executable_extensions; do 70819418810dSmrg if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 70829418810dSmrg lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 70839418810dSmrg fi 70849418810dSmrg done 70859418810dSmrg done 70869418810dSmrgdone 70879418810dSmrgIFS=$as_save_IFS 70889418810dSmrglt_ac_max=0 70899418810dSmrglt_ac_count=0 70909418810dSmrg# Add /usr/xpg4/bin/sed as it is typically found on Solaris 70919418810dSmrg# along with /bin/sed that truncates output. 70929418810dSmrgfor lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 70939418810dSmrg test ! -f $lt_ac_sed && continue 70949418810dSmrg cat /dev/null > conftest.in 70959418810dSmrg lt_ac_count=0 70969418810dSmrg echo $ECHO_N "0123456789$ECHO_C" >conftest.in 70979418810dSmrg # Check for GNU sed and select it if it is found. 70989418810dSmrg if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 70999418810dSmrg lt_cv_path_SED=$lt_ac_sed 71009418810dSmrg break 71019418810dSmrg fi 71029418810dSmrg while true; do 71039418810dSmrg cat conftest.in conftest.in >conftest.tmp 71049418810dSmrg mv conftest.tmp conftest.in 71059418810dSmrg cp conftest.in conftest.nl 71069418810dSmrg echo >>conftest.nl 71079418810dSmrg $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 71089418810dSmrg cmp -s conftest.out conftest.nl || break 71099418810dSmrg # 10000 chars as input seems more than enough 71109418810dSmrg test $lt_ac_count -gt 10 && break 71119418810dSmrg lt_ac_count=`expr $lt_ac_count + 1` 71129418810dSmrg if test $lt_ac_count -gt $lt_ac_max; then 71139418810dSmrg lt_ac_max=$lt_ac_count 71149418810dSmrg lt_cv_path_SED=$lt_ac_sed 71159bd41f2cSmrg fi 71169418810dSmrg done 71179418810dSmrgdone 71189418810dSmrg]) 71199418810dSmrgSED=$lt_cv_path_SED 71209418810dSmrgAC_SUBST([SED]) 71219418810dSmrgAC_MSG_RESULT([$SED]) 71229418810dSmrg])#AC_PROG_SED 71239418810dSmrg])#m4_ifndef 71249418810dSmrg 71259418810dSmrg# Old name: 71269418810dSmrgAU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) 71279418810dSmrgdnl aclocal-1.4 backwards compatibility: 71289418810dSmrgdnl AC_DEFUN([LT_AC_PROG_SED], []) 71299418810dSmrg 71309418810dSmrg 71319418810dSmrg# _LT_CHECK_SHELL_FEATURES 71329418810dSmrg# ------------------------ 71339418810dSmrg# Find out whether the shell is Bourne or XSI compatible, 71349418810dSmrg# or has some other useful features. 71359418810dSmrgm4_defun([_LT_CHECK_SHELL_FEATURES], 71369418810dSmrg[AC_MSG_CHECKING([whether the shell understands some XSI constructs]) 71379418810dSmrg# Try some XSI features 71389418810dSmrgxsi_shell=no 71399418810dSmrg( _lt_dummy="a/b/c" 71409418810dSmrg test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 71419418810dSmrg = c,a/b,, \ 71429418810dSmrg && eval 'test $(( 1 + 1 )) -eq 2 \ 71439418810dSmrg && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 71449418810dSmrg && xsi_shell=yes 71459418810dSmrgAC_MSG_RESULT([$xsi_shell]) 71469418810dSmrg_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell']) 71479418810dSmrg 71489418810dSmrgAC_MSG_CHECKING([whether the shell understands "+="]) 71499418810dSmrglt_shell_append=no 71509418810dSmrg( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \ 71519418810dSmrg >/dev/null 2>&1 \ 71529418810dSmrg && lt_shell_append=yes 71539418810dSmrgAC_MSG_RESULT([$lt_shell_append]) 71549418810dSmrg_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append']) 71559418810dSmrg 71569418810dSmrgif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 71579418810dSmrg lt_unset=unset 71589418810dSmrgelse 71599418810dSmrg lt_unset=false 71609418810dSmrgfi 71619418810dSmrg_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl 71629418810dSmrg 71639418810dSmrg# test EBCDIC or ASCII 71649418810dSmrgcase `echo X|tr X '\101'` in 71659418810dSmrg A) # ASCII based system 71669418810dSmrg # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 71679418810dSmrg lt_SP2NL='tr \040 \012' 71689418810dSmrg lt_NL2SP='tr \015\012 \040\040' 71699bd41f2cSmrg ;; 71709418810dSmrg *) # EBCDIC based system 71719418810dSmrg lt_SP2NL='tr \100 \n' 71729418810dSmrg lt_NL2SP='tr \r\n \100\100' 71739bd41f2cSmrg ;; 71749418810dSmrgesac 71759418810dSmrg_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl 71769418810dSmrg_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl 71779418810dSmrg])# _LT_CHECK_SHELL_FEATURES 71789418810dSmrg 71799418810dSmrg 71809418810dSmrg# _LT_PROG_XSI_SHELLFNS 71819418810dSmrg# --------------------- 71829418810dSmrg# Bourne and XSI compatible variants of some useful shell functions. 71839418810dSmrgm4_defun([_LT_PROG_XSI_SHELLFNS], 71849418810dSmrg[case $xsi_shell in 71859418810dSmrg yes) 71869418810dSmrg cat << \_LT_EOF >> "$cfgfile" 71879418810dSmrg 71889418810dSmrg# func_dirname file append nondir_replacement 71899418810dSmrg# Compute the dirname of FILE. If nonempty, add APPEND to the result, 71909418810dSmrg# otherwise set result to NONDIR_REPLACEMENT. 71919418810dSmrgfunc_dirname () 71929418810dSmrg{ 71939418810dSmrg case ${1} in 71949418810dSmrg */*) func_dirname_result="${1%/*}${2}" ;; 71959418810dSmrg * ) func_dirname_result="${3}" ;; 71969bd41f2cSmrg esac 71979418810dSmrg} 71989418810dSmrg 71999418810dSmrg# func_basename file 72009418810dSmrgfunc_basename () 72019418810dSmrg{ 72029418810dSmrg func_basename_result="${1##*/}" 72039418810dSmrg} 72049418810dSmrg 72059418810dSmrg# func_dirname_and_basename file append nondir_replacement 72069418810dSmrg# perform func_basename and func_dirname in a single function 72079418810dSmrg# call: 72089418810dSmrg# dirname: Compute the dirname of FILE. If nonempty, 72099418810dSmrg# add APPEND to the result, otherwise set result 72109418810dSmrg# to NONDIR_REPLACEMENT. 72119418810dSmrg# value returned in "$func_dirname_result" 72129418810dSmrg# basename: Compute filename of FILE. 72139418810dSmrg# value retuned in "$func_basename_result" 72149418810dSmrg# Implementation must be kept synchronized with func_dirname 72159418810dSmrg# and func_basename. For efficiency, we do not delegate to 72169418810dSmrg# those functions but instead duplicate the functionality here. 72179418810dSmrgfunc_dirname_and_basename () 72189418810dSmrg{ 72199418810dSmrg case ${1} in 72209418810dSmrg */*) func_dirname_result="${1%/*}${2}" ;; 72219418810dSmrg * ) func_dirname_result="${3}" ;; 72229bd41f2cSmrg esac 72239418810dSmrg func_basename_result="${1##*/}" 72249418810dSmrg} 72259bd41f2cSmrg 72269418810dSmrg# func_stripname prefix suffix name 72279418810dSmrg# strip PREFIX and SUFFIX off of NAME. 72289418810dSmrg# PREFIX and SUFFIX must not contain globbing or regex special 72299418810dSmrg# characters, hashes, percent signs, but SUFFIX may contain a leading 72309418810dSmrg# dot (in which case that matches only a dot). 72319418810dSmrgfunc_stripname () 72329418810dSmrg{ 72339418810dSmrg # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 72349418810dSmrg # positional parameters, so assign one to ordinary parameter first. 72359418810dSmrg func_stripname_result=${3} 72369418810dSmrg func_stripname_result=${func_stripname_result#"${1}"} 72379418810dSmrg func_stripname_result=${func_stripname_result%"${2}"} 72389418810dSmrg} 72399bd41f2cSmrg 72409418810dSmrg# func_opt_split 72419418810dSmrgfunc_opt_split () 72429418810dSmrg{ 72439418810dSmrg func_opt_split_opt=${1%%=*} 72449418810dSmrg func_opt_split_arg=${1#*=} 72459418810dSmrg} 72469bd41f2cSmrg 72479418810dSmrg# func_lo2o object 72489418810dSmrgfunc_lo2o () 72499418810dSmrg{ 72509418810dSmrg case ${1} in 72519418810dSmrg *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 72529418810dSmrg *) func_lo2o_result=${1} ;; 72539418810dSmrg esac 72549418810dSmrg} 72559bd41f2cSmrg 72569418810dSmrg# func_xform libobj-or-source 72579418810dSmrgfunc_xform () 72589418810dSmrg{ 72599418810dSmrg func_xform_result=${1%.*}.lo 72609418810dSmrg} 72619bd41f2cSmrg 72629418810dSmrg# func_arith arithmetic-term... 72639418810dSmrgfunc_arith () 72649418810dSmrg{ 72659418810dSmrg func_arith_result=$(( $[*] )) 72669418810dSmrg} 72679bd41f2cSmrg 72689418810dSmrg# func_len string 72699418810dSmrg# STRING may not start with a hyphen. 72709418810dSmrgfunc_len () 72719418810dSmrg{ 72729418810dSmrg func_len_result=${#1} 72739418810dSmrg} 72749bd41f2cSmrg 72759418810dSmrg_LT_EOF 72769418810dSmrg ;; 72779418810dSmrg *) # Bourne compatible functions. 72789418810dSmrg cat << \_LT_EOF >> "$cfgfile" 72799bd41f2cSmrg 72809418810dSmrg# func_dirname file append nondir_replacement 72819418810dSmrg# Compute the dirname of FILE. If nonempty, add APPEND to the result, 72829418810dSmrg# otherwise set result to NONDIR_REPLACEMENT. 72839418810dSmrgfunc_dirname () 72849418810dSmrg{ 72859418810dSmrg # Extract subdirectory from the argument. 72869418810dSmrg func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 72879418810dSmrg if test "X$func_dirname_result" = "X${1}"; then 72889418810dSmrg func_dirname_result="${3}" 72899418810dSmrg else 72909418810dSmrg func_dirname_result="$func_dirname_result${2}" 72919418810dSmrg fi 72929418810dSmrg} 72939bd41f2cSmrg 72949418810dSmrg# func_basename file 72959418810dSmrgfunc_basename () 72969418810dSmrg{ 72979418810dSmrg func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 72989418810dSmrg} 72999bd41f2cSmrg 73009418810dSmrgdnl func_dirname_and_basename 73019418810dSmrgdnl A portable version of this function is already defined in general.m4sh 73029418810dSmrgdnl so there is no need for it here. 73039418810dSmrg 73049418810dSmrg# func_stripname prefix suffix name 73059418810dSmrg# strip PREFIX and SUFFIX off of NAME. 73069418810dSmrg# PREFIX and SUFFIX must not contain globbing or regex special 73079418810dSmrg# characters, hashes, percent signs, but SUFFIX may contain a leading 73089418810dSmrg# dot (in which case that matches only a dot). 73099418810dSmrg# func_strip_suffix prefix name 73109418810dSmrgfunc_stripname () 73119418810dSmrg{ 73129418810dSmrg case ${2} in 73139418810dSmrg .*) func_stripname_result=`$ECHO "X${3}" \ 73149418810dSmrg | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 73159418810dSmrg *) func_stripname_result=`$ECHO "X${3}" \ 73169418810dSmrg | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 73179418810dSmrg esac 73189418810dSmrg} 73199bd41f2cSmrg 73209418810dSmrg# sed scripts: 73219418810dSmrgmy_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q' 73229418810dSmrgmy_sed_long_arg='1s/^-[[^=]]*=//' 73239bd41f2cSmrg 73249418810dSmrg# func_opt_split 73259418810dSmrgfunc_opt_split () 73269418810dSmrg{ 73279418810dSmrg func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 73289418810dSmrg func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 73299418810dSmrg} 73309bd41f2cSmrg 73319418810dSmrg# func_lo2o object 73329418810dSmrgfunc_lo2o () 73339418810dSmrg{ 73349418810dSmrg func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 73359418810dSmrg} 73369bd41f2cSmrg 73379418810dSmrg# func_xform libobj-or-source 73389418810dSmrgfunc_xform () 73399418810dSmrg{ 73409418810dSmrg func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'` 73419418810dSmrg} 73429bd41f2cSmrg 73439418810dSmrg# func_arith arithmetic-term... 73449418810dSmrgfunc_arith () 73459418810dSmrg{ 73469418810dSmrg func_arith_result=`expr "$[@]"` 73479418810dSmrg} 73489bd41f2cSmrg 73499418810dSmrg# func_len string 73509418810dSmrg# STRING may not start with a hyphen. 73519418810dSmrgfunc_len () 73529418810dSmrg{ 73539418810dSmrg func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len` 73549418810dSmrg} 73559bd41f2cSmrg 73569418810dSmrg_LT_EOF 73579418810dSmrgesac 73589bd41f2cSmrg 73599418810dSmrgcase $lt_shell_append in 73609418810dSmrg yes) 73619418810dSmrg cat << \_LT_EOF >> "$cfgfile" 73629418810dSmrg 73639418810dSmrg# func_append var value 73649418810dSmrg# Append VALUE to the end of shell variable VAR. 73659418810dSmrgfunc_append () 73669418810dSmrg{ 73679418810dSmrg eval "$[1]+=\$[2]" 73689418810dSmrg} 73699bd41f2cSmrg_LT_EOF 73709418810dSmrg ;; 73719418810dSmrg *) 73729418810dSmrg cat << \_LT_EOF >> "$cfgfile" 73739bd41f2cSmrg 73749418810dSmrg# func_append var value 73759418810dSmrg# Append VALUE to the end of shell variable VAR. 73769418810dSmrgfunc_append () 73779418810dSmrg{ 73789418810dSmrg eval "$[1]=\$$[1]\$[2]" 73799418810dSmrg} 73809bd41f2cSmrg 73819418810dSmrg_LT_EOF 73829418810dSmrg ;; 73839418810dSmrg esac 73849418810dSmrg]) 73859bd41f2cSmrg 73869418810dSmrg# Helper functions for option handling. -*- Autoconf -*- 73879418810dSmrg# 73889418810dSmrg# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. 73899418810dSmrg# Written by Gary V. Vaughan, 2004 73909418810dSmrg# 73919418810dSmrg# This file is free software; the Free Software Foundation gives 73929418810dSmrg# unlimited permission to copy and/or distribute it, with or without 73939418810dSmrg# modifications, as long as this notice is preserved. 73949bd41f2cSmrg 73959418810dSmrg# serial 6 ltoptions.m4 73969bd41f2cSmrg 73979418810dSmrg# This is to help aclocal find these macros, as it can't see m4_define. 73989418810dSmrgAC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) 73999bd41f2cSmrg 74009bd41f2cSmrg 74019418810dSmrg# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) 74029418810dSmrg# ------------------------------------------ 74039418810dSmrgm4_define([_LT_MANGLE_OPTION], 74049418810dSmrg[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) 74059bd41f2cSmrg 74069bd41f2cSmrg 74079418810dSmrg# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) 74089418810dSmrg# --------------------------------------- 74099418810dSmrg# Set option OPTION-NAME for macro MACRO-NAME, and if there is a 74109418810dSmrg# matching handler defined, dispatch to it. Other OPTION-NAMEs are 74119418810dSmrg# saved as a flag. 74129418810dSmrgm4_define([_LT_SET_OPTION], 74139418810dSmrg[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl 74149418810dSmrgm4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), 74159418810dSmrg _LT_MANGLE_DEFUN([$1], [$2]), 74169418810dSmrg [m4_warning([Unknown $1 option `$2'])])[]dnl 74179418810dSmrg]) 74189418810dSmrg 74199418810dSmrg 74209418810dSmrg# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) 74219418810dSmrg# ------------------------------------------------------------ 74229418810dSmrg# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 74239418810dSmrgm4_define([_LT_IF_OPTION], 74249418810dSmrg[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) 74259418810dSmrg 74269418810dSmrg 74279418810dSmrg# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) 74289418810dSmrg# ------------------------------------------------------- 74299418810dSmrg# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME 74309418810dSmrg# are set. 74319418810dSmrgm4_define([_LT_UNLESS_OPTIONS], 74329418810dSmrg[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), 74339418810dSmrg [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), 74349418810dSmrg [m4_define([$0_found])])])[]dnl 74359418810dSmrgm4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 74369418810dSmrg])[]dnl 74379418810dSmrg]) 74389418810dSmrg 74399418810dSmrg 74409418810dSmrg# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) 74419418810dSmrg# ---------------------------------------- 74429418810dSmrg# OPTION-LIST is a space-separated list of Libtool options associated 74439418810dSmrg# with MACRO-NAME. If any OPTION has a matching handler declared with 74449418810dSmrg# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about 74459418810dSmrg# the unknown option and exit. 74469418810dSmrgm4_defun([_LT_SET_OPTIONS], 74479418810dSmrg[# Set options 74489418810dSmrgm4_foreach([_LT_Option], m4_split(m4_normalize([$2])), 74499418810dSmrg [_LT_SET_OPTION([$1], _LT_Option)]) 74509418810dSmrg 74519418810dSmrgm4_if([$1],[LT_INIT],[ 74529418810dSmrg dnl 74539418810dSmrg dnl Simply set some default values (i.e off) if boolean options were not 74549418810dSmrg dnl specified: 74559418810dSmrg _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no 74569418810dSmrg ]) 74579418810dSmrg _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no 74589418810dSmrg ]) 74599418810dSmrg dnl 74609418810dSmrg dnl If no reference was made to various pairs of opposing options, then 74619418810dSmrg dnl we run the default mode handler for the pair. For example, if neither 74629418810dSmrg dnl `shared' nor `disable-shared' was passed, we enable building of shared 74639418810dSmrg dnl archives by default: 74649418810dSmrg _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) 74659418810dSmrg _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) 74669418810dSmrg _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) 74679418810dSmrg _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], 74689418810dSmrg [_LT_ENABLE_FAST_INSTALL]) 74699418810dSmrg ]) 74709418810dSmrg])# _LT_SET_OPTIONS 74719bd41f2cSmrg 74729bd41f2cSmrg 74739bd41f2cSmrg 74749418810dSmrg# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) 74759418810dSmrg# ----------------------------------------- 74769418810dSmrgm4_define([_LT_MANGLE_DEFUN], 74779418810dSmrg[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) 74789bd41f2cSmrg 74799bd41f2cSmrg 74809418810dSmrg# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) 74819418810dSmrg# ----------------------------------------------- 74829418810dSmrgm4_define([LT_OPTION_DEFINE], 74839418810dSmrg[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl 74849418810dSmrg])# LT_OPTION_DEFINE 74859bd41f2cSmrg 74869bd41f2cSmrg 74879418810dSmrg# dlopen 74889418810dSmrg# ------ 74899418810dSmrgLT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes 74909418810dSmrg]) 74919bd41f2cSmrg 74929418810dSmrgAU_DEFUN([AC_LIBTOOL_DLOPEN], 74939418810dSmrg[_LT_SET_OPTION([LT_INIT], [dlopen]) 74949418810dSmrgAC_DIAGNOSE([obsolete], 74959418810dSmrg[$0: Remove this warning and the call to _LT_SET_OPTION when you 74969418810dSmrgput the `dlopen' option into LT_INIT's first parameter.]) 74979418810dSmrg]) 74989bd41f2cSmrg 74999418810dSmrgdnl aclocal-1.4 backwards compatibility: 75009418810dSmrgdnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) 75019bd41f2cSmrg 75029bd41f2cSmrg 75039418810dSmrg# win32-dll 75049418810dSmrg# --------- 75059418810dSmrg# Declare package support for building win32 dll's. 75069418810dSmrgLT_OPTION_DEFINE([LT_INIT], [win32-dll], 75079418810dSmrg[enable_win32_dll=yes 75089bd41f2cSmrg 75099418810dSmrgcase $host in 75109418810dSmrg*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*) 75119418810dSmrg AC_CHECK_TOOL(AS, as, false) 75129418810dSmrg AC_CHECK_TOOL(DLLTOOL, dlltool, false) 75139418810dSmrg AC_CHECK_TOOL(OBJDUMP, objdump, false) 75149418810dSmrg ;; 75159418810dSmrgesac 75169bd41f2cSmrg 75179418810dSmrgtest -z "$AS" && AS=as 75189418810dSmrg_LT_DECL([], [AS], [0], [Assembler program])dnl 75199bd41f2cSmrg 75209418810dSmrgtest -z "$DLLTOOL" && DLLTOOL=dlltool 75219418810dSmrg_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl 75229bd41f2cSmrg 75239418810dSmrgtest -z "$OBJDUMP" && OBJDUMP=objdump 75249418810dSmrg_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl 75259418810dSmrg])# win32-dll 75269bd41f2cSmrg 75279418810dSmrgAU_DEFUN([AC_LIBTOOL_WIN32_DLL], 75289418810dSmrg[AC_REQUIRE([AC_CANONICAL_HOST])dnl 75299418810dSmrg_LT_SET_OPTION([LT_INIT], [win32-dll]) 75309418810dSmrgAC_DIAGNOSE([obsolete], 75319418810dSmrg[$0: Remove this warning and the call to _LT_SET_OPTION when you 75329418810dSmrgput the `win32-dll' option into LT_INIT's first parameter.]) 75339418810dSmrg]) 75349bd41f2cSmrg 75359418810dSmrgdnl aclocal-1.4 backwards compatibility: 75369418810dSmrgdnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) 75379bd41f2cSmrg 75389bd41f2cSmrg 75399418810dSmrg# _LT_ENABLE_SHARED([DEFAULT]) 75409418810dSmrg# ---------------------------- 75419418810dSmrg# implement the --enable-shared flag, and supports the `shared' and 75429418810dSmrg# `disable-shared' LT_INIT options. 75439418810dSmrg# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 75449418810dSmrgm4_define([_LT_ENABLE_SHARED], 75459418810dSmrg[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl 75469418810dSmrgAC_ARG_ENABLE([shared], 75479418810dSmrg [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], 75489418810dSmrg [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], 75499418810dSmrg [p=${PACKAGE-default} 75509418810dSmrg case $enableval in 75519418810dSmrg yes) enable_shared=yes ;; 75529418810dSmrg no) enable_shared=no ;; 75539418810dSmrg *) 75549418810dSmrg enable_shared=no 75559418810dSmrg # Look at the argument we got. We use all the common list separators. 75569418810dSmrg lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 75579418810dSmrg for pkg in $enableval; do 75589418810dSmrg IFS="$lt_save_ifs" 75599418810dSmrg if test "X$pkg" = "X$p"; then 75609418810dSmrg enable_shared=yes 75619418810dSmrg fi 75629418810dSmrg done 75639418810dSmrg IFS="$lt_save_ifs" 75649bd41f2cSmrg ;; 75659418810dSmrg esac], 75669418810dSmrg [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) 75679bd41f2cSmrg 75689418810dSmrg _LT_DECL([build_libtool_libs], [enable_shared], [0], 75699418810dSmrg [Whether or not to build shared libraries]) 75709418810dSmrg])# _LT_ENABLE_SHARED 75719bd41f2cSmrg 75729418810dSmrgLT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) 75739418810dSmrgLT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) 75749bd41f2cSmrg 75759418810dSmrg# Old names: 75769418810dSmrgAC_DEFUN([AC_ENABLE_SHARED], 75779418810dSmrg[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) 75789418810dSmrg]) 75799bd41f2cSmrg 75809418810dSmrgAC_DEFUN([AC_DISABLE_SHARED], 75819418810dSmrg[_LT_SET_OPTION([LT_INIT], [disable-shared]) 75829418810dSmrg]) 75839bd41f2cSmrg 75849418810dSmrgAU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) 75859418810dSmrgAU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) 75869bd41f2cSmrg 75879418810dSmrgdnl aclocal-1.4 backwards compatibility: 75889418810dSmrgdnl AC_DEFUN([AM_ENABLE_SHARED], []) 75899418810dSmrgdnl AC_DEFUN([AM_DISABLE_SHARED], []) 75909bd41f2cSmrg 75919bd41f2cSmrg 75929418810dSmrg 75939418810dSmrg# _LT_ENABLE_STATIC([DEFAULT]) 75949418810dSmrg# ---------------------------- 75959418810dSmrg# implement the --enable-static flag, and support the `static' and 75969418810dSmrg# `disable-static' LT_INIT options. 75979418810dSmrg# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 75989418810dSmrgm4_define([_LT_ENABLE_STATIC], 75999418810dSmrg[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl 76009418810dSmrgAC_ARG_ENABLE([static], 76019418810dSmrg [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], 76029418810dSmrg [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], 76039418810dSmrg [p=${PACKAGE-default} 76049418810dSmrg case $enableval in 76059418810dSmrg yes) enable_static=yes ;; 76069418810dSmrg no) enable_static=no ;; 76079418810dSmrg *) 76089418810dSmrg enable_static=no 76099418810dSmrg # Look at the argument we got. We use all the common list separators. 76109418810dSmrg lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 76119418810dSmrg for pkg in $enableval; do 76129418810dSmrg IFS="$lt_save_ifs" 76139418810dSmrg if test "X$pkg" = "X$p"; then 76149418810dSmrg enable_static=yes 76159bd41f2cSmrg fi 76169418810dSmrg done 76179418810dSmrg IFS="$lt_save_ifs" 76189bd41f2cSmrg ;; 76199418810dSmrg esac], 76209418810dSmrg [enable_static=]_LT_ENABLE_STATIC_DEFAULT) 76219bd41f2cSmrg 76229418810dSmrg _LT_DECL([build_old_libs], [enable_static], [0], 76239418810dSmrg [Whether or not to build static libraries]) 76249418810dSmrg])# _LT_ENABLE_STATIC 76259bd41f2cSmrg 76269418810dSmrgLT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) 76279418810dSmrgLT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) 76289418810dSmrg 76299418810dSmrg# Old names: 76309418810dSmrgAC_DEFUN([AC_ENABLE_STATIC], 76319418810dSmrg[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) 76329418810dSmrg]) 76339418810dSmrg 76349418810dSmrgAC_DEFUN([AC_DISABLE_STATIC], 76359418810dSmrg[_LT_SET_OPTION([LT_INIT], [disable-static]) 76369418810dSmrg]) 76379418810dSmrg 76389418810dSmrgAU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) 76399418810dSmrgAU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) 76409418810dSmrg 76419418810dSmrgdnl aclocal-1.4 backwards compatibility: 76429418810dSmrgdnl AC_DEFUN([AM_ENABLE_STATIC], []) 76439418810dSmrgdnl AC_DEFUN([AM_DISABLE_STATIC], []) 76449418810dSmrg 76459418810dSmrg 76469418810dSmrg 76479418810dSmrg# _LT_ENABLE_FAST_INSTALL([DEFAULT]) 76489418810dSmrg# ---------------------------------- 76499418810dSmrg# implement the --enable-fast-install flag, and support the `fast-install' 76509418810dSmrg# and `disable-fast-install' LT_INIT options. 76519418810dSmrg# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 76529418810dSmrgm4_define([_LT_ENABLE_FAST_INSTALL], 76539418810dSmrg[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl 76549418810dSmrgAC_ARG_ENABLE([fast-install], 76559418810dSmrg [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], 76569418810dSmrg [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], 76579418810dSmrg [p=${PACKAGE-default} 76589418810dSmrg case $enableval in 76599418810dSmrg yes) enable_fast_install=yes ;; 76609418810dSmrg no) enable_fast_install=no ;; 76619418810dSmrg *) 76629418810dSmrg enable_fast_install=no 76639418810dSmrg # Look at the argument we got. We use all the common list separators. 76649418810dSmrg lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 76659418810dSmrg for pkg in $enableval; do 76669418810dSmrg IFS="$lt_save_ifs" 76679418810dSmrg if test "X$pkg" = "X$p"; then 76689418810dSmrg enable_fast_install=yes 76699418810dSmrg fi 76709418810dSmrg done 76719418810dSmrg IFS="$lt_save_ifs" 76729bd41f2cSmrg ;; 76739418810dSmrg esac], 76749418810dSmrg [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) 76759bd41f2cSmrg 76769418810dSmrg_LT_DECL([fast_install], [enable_fast_install], [0], 76779418810dSmrg [Whether or not to optimize for fast installation])dnl 76789418810dSmrg])# _LT_ENABLE_FAST_INSTALL 76799bd41f2cSmrg 76809418810dSmrgLT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) 76819418810dSmrgLT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) 76829bd41f2cSmrg 76839418810dSmrg# Old names: 76849418810dSmrgAU_DEFUN([AC_ENABLE_FAST_INSTALL], 76859418810dSmrg[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) 76869418810dSmrgAC_DIAGNOSE([obsolete], 76879418810dSmrg[$0: Remove this warning and the call to _LT_SET_OPTION when you put 76889418810dSmrgthe `fast-install' option into LT_INIT's first parameter.]) 76899418810dSmrg]) 76909bd41f2cSmrg 76919418810dSmrgAU_DEFUN([AC_DISABLE_FAST_INSTALL], 76929418810dSmrg[_LT_SET_OPTION([LT_INIT], [disable-fast-install]) 76939418810dSmrgAC_DIAGNOSE([obsolete], 76949418810dSmrg[$0: Remove this warning and the call to _LT_SET_OPTION when you put 76959418810dSmrgthe `disable-fast-install' option into LT_INIT's first parameter.]) 76969418810dSmrg]) 76979bd41f2cSmrg 76989418810dSmrgdnl aclocal-1.4 backwards compatibility: 76999418810dSmrgdnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) 77009418810dSmrgdnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) 77019bd41f2cSmrg 77029bd41f2cSmrg 77039418810dSmrg# _LT_WITH_PIC([MODE]) 77049418810dSmrg# -------------------- 77059418810dSmrg# implement the --with-pic flag, and support the `pic-only' and `no-pic' 77069418810dSmrg# LT_INIT options. 77079418810dSmrg# MODE is either `yes' or `no'. If omitted, it defaults to `both'. 77089418810dSmrgm4_define([_LT_WITH_PIC], 77099418810dSmrg[AC_ARG_WITH([pic], 77109418810dSmrg [AS_HELP_STRING([--with-pic], 77119418810dSmrg [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], 77129418810dSmrg [pic_mode="$withval"], 77139418810dSmrg [pic_mode=default]) 77149bd41f2cSmrg 77159418810dSmrgtest -z "$pic_mode" && pic_mode=m4_default([$1], [default]) 77169418810dSmrg 77179418810dSmrg_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl 77189418810dSmrg])# _LT_WITH_PIC 77199418810dSmrg 77209418810dSmrgLT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) 77219418810dSmrgLT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) 77229418810dSmrg 77239418810dSmrg# Old name: 77249418810dSmrgAU_DEFUN([AC_LIBTOOL_PICMODE], 77259418810dSmrg[_LT_SET_OPTION([LT_INIT], [pic-only]) 77269418810dSmrgAC_DIAGNOSE([obsolete], 77279418810dSmrg[$0: Remove this warning and the call to _LT_SET_OPTION when you 77289418810dSmrgput the `pic-only' option into LT_INIT's first parameter.]) 77299bd41f2cSmrg]) 77309bd41f2cSmrg 77319418810dSmrgdnl aclocal-1.4 backwards compatibility: 77329418810dSmrgdnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) 77339bd41f2cSmrg 77349bd41f2cSmrg 77359418810dSmrgm4_define([_LTDL_MODE], []) 77369418810dSmrgLT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], 77379418810dSmrg [m4_define([_LTDL_MODE], [nonrecursive])]) 77389418810dSmrgLT_OPTION_DEFINE([LTDL_INIT], [recursive], 77399418810dSmrg [m4_define([_LTDL_MODE], [recursive])]) 77409418810dSmrgLT_OPTION_DEFINE([LTDL_INIT], [subproject], 77419418810dSmrg [m4_define([_LTDL_MODE], [subproject])]) 77429bd41f2cSmrg 77439418810dSmrgm4_define([_LTDL_TYPE], []) 77449418810dSmrgLT_OPTION_DEFINE([LTDL_INIT], [installable], 77459418810dSmrg [m4_define([_LTDL_TYPE], [installable])]) 77469418810dSmrgLT_OPTION_DEFINE([LTDL_INIT], [convenience], 77479418810dSmrg [m4_define([_LTDL_TYPE], [convenience])]) 77489bd41f2cSmrg 77499418810dSmrg# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- 77509bd41f2cSmrg# 77519418810dSmrg# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. 77529418810dSmrg# Written by Gary V. Vaughan, 2004 77539bd41f2cSmrg# 77549418810dSmrg# This file is free software; the Free Software Foundation gives 77559418810dSmrg# unlimited permission to copy and/or distribute it, with or without 77569418810dSmrg# modifications, as long as this notice is preserved. 77579418810dSmrg 77589418810dSmrg# serial 6 ltsugar.m4 77599418810dSmrg 77609418810dSmrg# This is to help aclocal find these macros, as it can't see m4_define. 77619418810dSmrgAC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) 77629418810dSmrg 77639418810dSmrg 77649418810dSmrg# lt_join(SEP, ARG1, [ARG2...]) 77659418810dSmrg# ----------------------------- 77669418810dSmrg# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their 77679418810dSmrg# associated separator. 77689418810dSmrg# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier 77699418810dSmrg# versions in m4sugar had bugs. 77709418810dSmrgm4_define([lt_join], 77719418810dSmrg[m4_if([$#], [1], [], 77729418810dSmrg [$#], [2], [[$2]], 77739418810dSmrg [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])]) 77749418810dSmrgm4_define([_lt_join], 77759418810dSmrg[m4_if([$#$2], [2], [], 77769418810dSmrg [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) 77779418810dSmrg 77789418810dSmrg 77799418810dSmrg# lt_car(LIST) 77809418810dSmrg# lt_cdr(LIST) 77819418810dSmrg# ------------ 77829418810dSmrg# Manipulate m4 lists. 77839418810dSmrg# These macros are necessary as long as will still need to support 77849418810dSmrg# Autoconf-2.59 which quotes differently. 77859418810dSmrgm4_define([lt_car], [[$1]]) 77869418810dSmrgm4_define([lt_cdr], 77879418810dSmrg[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], 77889418810dSmrg [$#], 1, [], 77899418810dSmrg [m4_dquote(m4_shift($@))])]) 77909418810dSmrgm4_define([lt_unquote], $1) 77919418810dSmrg 77929418810dSmrg 77939418810dSmrg# lt_append(MACRO-NAME, STRING, [SEPARATOR]) 77949418810dSmrg# ------------------------------------------ 77959418810dSmrg# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'. 77969418810dSmrg# Note that neither SEPARATOR nor STRING are expanded; they are appended 77979418810dSmrg# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). 77989418810dSmrg# No SEPARATOR is output if MACRO-NAME was previously undefined (different 77999418810dSmrg# than defined and empty). 78009bd41f2cSmrg# 78019418810dSmrg# This macro is needed until we can rely on Autoconf 2.62, since earlier 78029418810dSmrg# versions of m4sugar mistakenly expanded SEPARATOR but not STRING. 78039418810dSmrgm4_define([lt_append], 78049418810dSmrg[m4_define([$1], 78059418810dSmrg m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) 78069418810dSmrg 78079418810dSmrg 78089418810dSmrg 78099418810dSmrg# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) 78109418810dSmrg# ---------------------------------------------------------- 78119418810dSmrg# Produce a SEP delimited list of all paired combinations of elements of 78129418810dSmrg# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list 78139418810dSmrg# has the form PREFIXmINFIXSUFFIXn. 78149418810dSmrg# Needed until we can rely on m4_combine added in Autoconf 2.62. 78159418810dSmrgm4_define([lt_combine], 78169418810dSmrg[m4_if(m4_eval([$# > 3]), [1], 78179418810dSmrg [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl 78189418810dSmrg[[m4_foreach([_Lt_prefix], [$2], 78199418810dSmrg [m4_foreach([_Lt_suffix], 78209418810dSmrg ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[, 78219418810dSmrg [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])]) 78229418810dSmrg 78239418810dSmrg 78249418810dSmrg# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) 78259418810dSmrg# ----------------------------------------------------------------------- 78269418810dSmrg# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited 78279418810dSmrg# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. 78289418810dSmrgm4_define([lt_if_append_uniq], 78299418810dSmrg[m4_ifdef([$1], 78309418810dSmrg [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1], 78319418810dSmrg [lt_append([$1], [$2], [$3])$4], 78329418810dSmrg [$5])], 78339418810dSmrg [lt_append([$1], [$2], [$3])$4])]) 78349418810dSmrg 78359418810dSmrg 78369418810dSmrg# lt_dict_add(DICT, KEY, VALUE) 78379418810dSmrg# ----------------------------- 78389418810dSmrgm4_define([lt_dict_add], 78399418810dSmrg[m4_define([$1($2)], [$3])]) 78409bd41f2cSmrg 78419bd41f2cSmrg 78429418810dSmrg# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) 78439418810dSmrg# -------------------------------------------- 78449418810dSmrgm4_define([lt_dict_add_subkey], 78459418810dSmrg[m4_define([$1($2:$3)], [$4])]) 78469418810dSmrg 78479bd41f2cSmrg 78489418810dSmrg# lt_dict_fetch(DICT, KEY, [SUBKEY]) 78499418810dSmrg# ---------------------------------- 78509418810dSmrgm4_define([lt_dict_fetch], 78519418810dSmrg[m4_ifval([$3], 78529418810dSmrg m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), 78539418810dSmrg m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) 78549bd41f2cSmrg 78559bd41f2cSmrg 78569418810dSmrg# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) 78579418810dSmrg# ----------------------------------------------------------------- 78589418810dSmrgm4_define([lt_if_dict_fetch], 78599418810dSmrg[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], 78609418810dSmrg [$5], 78619418810dSmrg [$6])]) 78629bd41f2cSmrg 78639bd41f2cSmrg 78649418810dSmrg# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) 78659418810dSmrg# -------------------------------------------------------------- 78669418810dSmrgm4_define([lt_dict_filter], 78679418810dSmrg[m4_if([$5], [], [], 78689418810dSmrg [lt_join(m4_quote(m4_default([$4], [[, ]])), 78699418810dSmrg lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]), 78709418810dSmrg [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl 78719bd41f2cSmrg]) 78729bd41f2cSmrg 78739418810dSmrg# ltversion.m4 -- version numbers -*- Autoconf -*- 78749418810dSmrg# 78759418810dSmrg# Copyright (C) 2004 Free Software Foundation, Inc. 78769418810dSmrg# Written by Scott James Remnant, 2004 78779418810dSmrg# 78789418810dSmrg# This file is free software; the Free Software Foundation gives 78799418810dSmrg# unlimited permission to copy and/or distribute it, with or without 78809418810dSmrg# modifications, as long as this notice is preserved. 78819bd41f2cSmrg 78829418810dSmrg# Generated from ltversion.in. 78839bd41f2cSmrg 7884c4f7863aSmrg# serial 3012 ltversion.m4 78859418810dSmrg# This file is part of GNU Libtool 78869bd41f2cSmrg 7887c4f7863aSmrgm4_define([LT_PACKAGE_VERSION], [2.2.6]) 7888c4f7863aSmrgm4_define([LT_PACKAGE_REVISION], [1.3012]) 78899bd41f2cSmrg 78909418810dSmrgAC_DEFUN([LTVERSION_VERSION], 7891c4f7863aSmrg[macro_version='2.2.6' 7892c4f7863aSmrgmacro_revision='1.3012' 78939418810dSmrg_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) 78949418810dSmrg_LT_DECL(, macro_revision, 0) 78959bd41f2cSmrg]) 78969bd41f2cSmrg 78979418810dSmrg# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- 78989418810dSmrg# 78999418810dSmrg# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc. 79009418810dSmrg# Written by Scott James Remnant, 2004. 79019418810dSmrg# 79029418810dSmrg# This file is free software; the Free Software Foundation gives 79039418810dSmrg# unlimited permission to copy and/or distribute it, with or without 79049418810dSmrg# modifications, as long as this notice is preserved. 79059418810dSmrg 79069418810dSmrg# serial 4 lt~obsolete.m4 79079418810dSmrg 79089418810dSmrg# These exist entirely to fool aclocal when bootstrapping libtool. 79099418810dSmrg# 79109418810dSmrg# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN) 79119418810dSmrg# which have later been changed to m4_define as they aren't part of the 79129418810dSmrg# exported API, or moved to Autoconf or Automake where they belong. 79139418810dSmrg# 79149418810dSmrg# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN 79159418810dSmrg# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us 79169418810dSmrg# using a macro with the same name in our local m4/libtool.m4 it'll 79179418810dSmrg# pull the old libtool.m4 in (it doesn't see our shiny new m4_define 79189418810dSmrg# and doesn't know about Autoconf macros at all.) 79199418810dSmrg# 79209418810dSmrg# So we provide this file, which has a silly filename so it's always 79219418810dSmrg# included after everything else. This provides aclocal with the 79229418810dSmrg# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything 79239418810dSmrg# because those macros already exist, or will be overwritten later. 79249418810dSmrg# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. 79259418810dSmrg# 79269418810dSmrg# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. 79279418810dSmrg# Yes, that means every name once taken will need to remain here until 79289418810dSmrg# we give up compatibility with versions before 1.7, at which point 79299418810dSmrg# we need to keep only those names which we still refer to. 79309418810dSmrg 79319418810dSmrg# This is to help aclocal find these macros, as it can't see m4_define. 79329418810dSmrgAC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) 79339418810dSmrg 79349418810dSmrgm4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])]) 79359418810dSmrgm4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])]) 79369418810dSmrgm4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])]) 79379418810dSmrgm4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])]) 79389418810dSmrgm4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])]) 79399418810dSmrgm4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])]) 79409418810dSmrgm4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])]) 79419418810dSmrgm4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])]) 79429418810dSmrgm4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])]) 79439418810dSmrgm4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])]) 79449418810dSmrgm4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])]) 79459418810dSmrgm4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])]) 79469418810dSmrgm4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])]) 79479418810dSmrgm4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])]) 79489418810dSmrgm4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])]) 79499418810dSmrgm4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])]) 79509418810dSmrgm4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])]) 79519418810dSmrgm4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])]) 79529418810dSmrgm4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])]) 79539418810dSmrgm4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])]) 79549418810dSmrgm4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])]) 79559418810dSmrgm4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])]) 79569418810dSmrgm4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])]) 79579418810dSmrgm4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])]) 79589418810dSmrgm4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])]) 79599418810dSmrgm4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])]) 79609418810dSmrgm4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])]) 79619418810dSmrgm4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])]) 79629418810dSmrgm4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])]) 79639418810dSmrgm4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])]) 79649418810dSmrgm4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])]) 79659418810dSmrgm4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])]) 79669418810dSmrgm4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) 79679418810dSmrgm4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) 79689418810dSmrgm4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) 79699418810dSmrgm4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) 79709418810dSmrgm4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])]) 79719418810dSmrgm4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) 79729418810dSmrgm4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) 79739418810dSmrgm4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) 79749418810dSmrgm4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) 79759418810dSmrgm4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) 79769418810dSmrgm4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])]) 79779418810dSmrgm4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) 79789418810dSmrgm4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) 79799418810dSmrgm4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) 79809418810dSmrgm4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) 79819418810dSmrgm4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]) 79829418810dSmrgm4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) 79839418810dSmrgm4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]) 79849418810dSmrgm4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) 79859418810dSmrgm4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) 79869418810dSmrgm4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) 79879418810dSmrgm4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) 79889418810dSmrgm4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) 79899418810dSmrg 79909bd41f2cSmrg# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 79919bd41f2cSmrg# 79929bd41f2cSmrg# Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 79939bd41f2cSmrg# 79949bd41f2cSmrg# This program is free software; you can redistribute it and/or modify 79959bd41f2cSmrg# it under the terms of the GNU General Public License as published by 79969bd41f2cSmrg# the Free Software Foundation; either version 2 of the License, or 79979bd41f2cSmrg# (at your option) any later version. 79989bd41f2cSmrg# 79999bd41f2cSmrg# This program is distributed in the hope that it will be useful, but 80009bd41f2cSmrg# WITHOUT ANY WARRANTY; without even the implied warranty of 80019bd41f2cSmrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 80029bd41f2cSmrg# General Public License for more details. 80039bd41f2cSmrg# 80049bd41f2cSmrg# You should have received a copy of the GNU General Public License 80059bd41f2cSmrg# along with this program; if not, write to the Free Software 80069bd41f2cSmrg# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 80079bd41f2cSmrg# 80089bd41f2cSmrg# As a special exception to the GNU General Public License, if you 80099bd41f2cSmrg# distribute this file as part of a program that contains a 80109bd41f2cSmrg# configuration script generated by Autoconf, you may include it under 80119bd41f2cSmrg# the same distribution terms that you use for the rest of that program. 80129bd41f2cSmrg 80139bd41f2cSmrg# PKG_PROG_PKG_CONFIG([MIN-VERSION]) 80149bd41f2cSmrg# ---------------------------------- 80159bd41f2cSmrgAC_DEFUN([PKG_PROG_PKG_CONFIG], 80169bd41f2cSmrg[m4_pattern_forbid([^_?PKG_[A-Z_]+$]) 80179bd41f2cSmrgm4_pattern_allow([^PKG_CONFIG(_PATH)?$]) 80189bd41f2cSmrgAC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl 80199bd41f2cSmrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 80209bd41f2cSmrg AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) 80219bd41f2cSmrgfi 80229bd41f2cSmrgif test -n "$PKG_CONFIG"; then 80239bd41f2cSmrg _pkg_min_version=m4_default([$1], [0.9.0]) 80249bd41f2cSmrg AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) 80259bd41f2cSmrg if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 80269bd41f2cSmrg AC_MSG_RESULT([yes]) 80279bd41f2cSmrg else 80289bd41f2cSmrg AC_MSG_RESULT([no]) 80299bd41f2cSmrg PKG_CONFIG="" 80309bd41f2cSmrg fi 80319bd41f2cSmrg 80329bd41f2cSmrgfi[]dnl 80339bd41f2cSmrg])# PKG_PROG_PKG_CONFIG 80349bd41f2cSmrg 80359bd41f2cSmrg# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 80369bd41f2cSmrg# 80379bd41f2cSmrg# Check to see whether a particular set of modules exists. Similar 80389bd41f2cSmrg# to PKG_CHECK_MODULES(), but does not set variables or print errors. 80399bd41f2cSmrg# 80409bd41f2cSmrg# 80419bd41f2cSmrg# Similar to PKG_CHECK_MODULES, make sure that the first instance of 80429bd41f2cSmrg# this or PKG_CHECK_MODULES is called, or make sure to call 80439bd41f2cSmrg# PKG_CHECK_EXISTS manually 80449bd41f2cSmrg# -------------------------------------------------------------- 80459bd41f2cSmrgAC_DEFUN([PKG_CHECK_EXISTS], 80469bd41f2cSmrg[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 80479bd41f2cSmrgif test -n "$PKG_CONFIG" && \ 80489bd41f2cSmrg AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then 80499bd41f2cSmrg m4_ifval([$2], [$2], [:]) 80509bd41f2cSmrgm4_ifvaln([$3], [else 80519bd41f2cSmrg $3])dnl 80529bd41f2cSmrgfi]) 80539bd41f2cSmrg 80549bd41f2cSmrg 80559bd41f2cSmrg# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 80569bd41f2cSmrg# --------------------------------------------- 80579bd41f2cSmrgm4_define([_PKG_CONFIG], 8058d075918cSmrg[if test -n "$$1"; then 8059d075918cSmrg pkg_cv_[]$1="$$1" 8060d075918cSmrg elif test -n "$PKG_CONFIG"; then 8061d075918cSmrg PKG_CHECK_EXISTS([$3], 8062d075918cSmrg [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], 8063d075918cSmrg [pkg_failed=yes]) 8064d075918cSmrg else 8065d075918cSmrg pkg_failed=untried 80669bd41f2cSmrgfi[]dnl 80679bd41f2cSmrg])# _PKG_CONFIG 80689bd41f2cSmrg 80699bd41f2cSmrg# _PKG_SHORT_ERRORS_SUPPORTED 80709bd41f2cSmrg# ----------------------------- 80719bd41f2cSmrgAC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], 80729bd41f2cSmrg[AC_REQUIRE([PKG_PROG_PKG_CONFIG]) 80739bd41f2cSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 80749bd41f2cSmrg _pkg_short_errors_supported=yes 80759bd41f2cSmrgelse 80769bd41f2cSmrg _pkg_short_errors_supported=no 80779bd41f2cSmrgfi[]dnl 80789bd41f2cSmrg])# _PKG_SHORT_ERRORS_SUPPORTED 80799bd41f2cSmrg 80809bd41f2cSmrg 80819bd41f2cSmrg# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 80829bd41f2cSmrg# [ACTION-IF-NOT-FOUND]) 80839bd41f2cSmrg# 80849bd41f2cSmrg# 80859bd41f2cSmrg# Note that if there is a possibility the first call to 80869bd41f2cSmrg# PKG_CHECK_MODULES might not happen, you should be sure to include an 80879bd41f2cSmrg# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 80889bd41f2cSmrg# 80899bd41f2cSmrg# 80909bd41f2cSmrg# -------------------------------------------------------------- 80919bd41f2cSmrgAC_DEFUN([PKG_CHECK_MODULES], 80929bd41f2cSmrg[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 80939bd41f2cSmrgAC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl 80949bd41f2cSmrgAC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl 80959bd41f2cSmrg 80969bd41f2cSmrgpkg_failed=no 80979bd41f2cSmrgAC_MSG_CHECKING([for $1]) 80989bd41f2cSmrg 80999bd41f2cSmrg_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) 81009bd41f2cSmrg_PKG_CONFIG([$1][_LIBS], [libs], [$2]) 81019bd41f2cSmrg 81029bd41f2cSmrgm4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS 81039bd41f2cSmrgand $1[]_LIBS to avoid the need to call pkg-config. 81049bd41f2cSmrgSee the pkg-config man page for more details.]) 81059bd41f2cSmrg 81069bd41f2cSmrgif test $pkg_failed = yes; then 81079bd41f2cSmrg _PKG_SHORT_ERRORS_SUPPORTED 81089bd41f2cSmrg if test $_pkg_short_errors_supported = yes; then 8109d075918cSmrg $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1` 81109bd41f2cSmrg else 8111d075918cSmrg $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1` 81129bd41f2cSmrg fi 81139bd41f2cSmrg # Put the nasty error message in config.log where it belongs 81149bd41f2cSmrg echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD 81159bd41f2cSmrg 81169bd41f2cSmrg ifelse([$4], , [AC_MSG_ERROR(dnl 81179bd41f2cSmrg[Package requirements ($2) were not met: 81189bd41f2cSmrg 81199bd41f2cSmrg$$1_PKG_ERRORS 81209bd41f2cSmrg 81219bd41f2cSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 81229bd41f2cSmrginstalled software in a non-standard prefix. 81239bd41f2cSmrg 81249bd41f2cSmrg_PKG_TEXT 81259bd41f2cSmrg])], 81269bd41f2cSmrg [AC_MSG_RESULT([no]) 81279bd41f2cSmrg $4]) 81289bd41f2cSmrgelif test $pkg_failed = untried; then 81299bd41f2cSmrg ifelse([$4], , [AC_MSG_FAILURE(dnl 81309bd41f2cSmrg[The pkg-config script could not be found or is too old. Make sure it 81319bd41f2cSmrgis in your PATH or set the PKG_CONFIG environment variable to the full 81329bd41f2cSmrgpath to pkg-config. 81339bd41f2cSmrg 81349bd41f2cSmrg_PKG_TEXT 81359bd41f2cSmrg 81369bd41f2cSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.])], 81379bd41f2cSmrg [$4]) 81389bd41f2cSmrgelse 81399bd41f2cSmrg $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS 81409bd41f2cSmrg $1[]_LIBS=$pkg_cv_[]$1[]_LIBS 81419bd41f2cSmrg AC_MSG_RESULT([yes]) 81429bd41f2cSmrg ifelse([$3], , :, [$3]) 81439bd41f2cSmrgfi[]dnl 81449bd41f2cSmrg])# PKG_CHECK_MODULES 81459bd41f2cSmrg 8146ea0de359Smrgdnl xorg-macros.m4. Generated from xorg-macros.m4.in xorgversion.m4 by configure. 8147ea0de359Smrgdnl 8148c4f7863aSmrgdnl Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved. 8149ea0de359Smrgdnl 8150ea0de359Smrgdnl Permission is hereby granted, free of charge, to any person obtaining a 8151ea0de359Smrgdnl copy of this software and associated documentation files (the "Software"), 8152ea0de359Smrgdnl to deal in the Software without restriction, including without limitation 8153ea0de359Smrgdnl the rights to use, copy, modify, merge, publish, distribute, sublicense, 8154ea0de359Smrgdnl and/or sell copies of the Software, and to permit persons to whom the 8155ea0de359Smrgdnl Software is furnished to do so, subject to the following conditions: 8156ea0de359Smrgdnl 8157ea0de359Smrgdnl The above copyright notice and this permission notice (including the next 8158ea0de359Smrgdnl paragraph) shall be included in all copies or substantial portions of the 8159ea0de359Smrgdnl Software. 8160ea0de359Smrgdnl 8161ea0de359Smrgdnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 8162ea0de359Smrgdnl IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 8163ea0de359Smrgdnl FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 8164ea0de359Smrgdnl THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 8165ea0de359Smrgdnl LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 8166ea0de359Smrgdnl FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 8167ea0de359Smrgdnl DEALINGS IN THE SOFTWARE. 81689418810dSmrg 8169ea0de359Smrg# XORG_MACROS_VERSION(required-version) 8170ea0de359Smrg# ------------------------------------- 8171ea0de359Smrg# Minimum version: 1.1.0 81729bd41f2cSmrg# 8173ea0de359Smrg# If you're using a macro added in Version 1.1 or newer, include this in 8174ea0de359Smrg# your configure.ac with the minimum required version, such as: 8175ea0de359Smrg# XORG_MACROS_VERSION(1.1) 81769bd41f2cSmrg# 8177ea0de359Smrg# To ensure that this macro is defined, also add: 8178ea0de359Smrg# m4_ifndef([XORG_MACROS_VERSION], 8179ea0de359Smrg# [m4_fatal([must install xorg-macros 1.1 or later before running autoconf/autogen])]) 81809418810dSmrg# 81819418810dSmrg# 8182ea0de359Smrg# See the "minimum version" comment for each macro you use to see what 8183ea0de359Smrg# version you require. 8184ea0de359Smrgm4_defun([XORG_MACROS_VERSION],[ 8185c4f7863aSmrgm4_define([vers_have], [1.11.0]) 8186ea0de359Smrgm4_define([maj_have], m4_substr(vers_have, 0, m4_index(vers_have, [.]))) 8187ea0de359Smrgm4_define([maj_needed], m4_substr([$1], 0, m4_index([$1], [.]))) 8188ea0de359Smrgm4_if(m4_cmp(maj_have, maj_needed), 0,, 8189ea0de359Smrg [m4_fatal([xorg-macros major version ]maj_needed[ is required but ]vers_have[ found])]) 8190ea0de359Smrgm4_if(m4_version_compare(vers_have, [$1]), -1, 8191ea0de359Smrg [m4_fatal([xorg-macros version $1 or higher is required but ]vers_have[ found])]) 8192ea0de359Smrgm4_undefine([vers_have]) 8193ea0de359Smrgm4_undefine([maj_have]) 8194ea0de359Smrgm4_undefine([maj_needed]) 8195ea0de359Smrg]) # XORG_MACROS_VERSION 81969418810dSmrg 8197ea0de359Smrg# XORG_PROG_RAWCPP() 8198ea0de359Smrg# ------------------ 8199ea0de359Smrg# Minimum version: 1.0.0 82009bd41f2cSmrg# 8201ea0de359Smrg# Find cpp program and necessary flags for use in pre-processing text files 8202ea0de359Smrg# such as man pages and config files 8203ea0de359SmrgAC_DEFUN([XORG_PROG_RAWCPP],[ 8204ea0de359SmrgAC_REQUIRE([AC_PROG_CPP]) 8205ea0de359SmrgAC_PATH_PROGS(RAWCPP, [cpp], [${CPP}], 8206ea0de359Smrg [$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib]) 82079bd41f2cSmrg 8208ea0de359Smrg# Check for flag to avoid builtin definitions - assumes unix is predefined, 8209ea0de359Smrg# which is not the best choice for supporting other OS'es, but covers most 8210ea0de359Smrg# of the ones we need for now. 8211ea0de359SmrgAC_MSG_CHECKING([if $RAWCPP requires -undef]) 8212ea0de359SmrgAC_LANG_CONFTEST([Does cpp redefine unix ?]) 8213ea0de359Smrgif test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 8214ea0de359Smrg AC_MSG_RESULT([no]) 8215ea0de359Smrgelse 8216ea0de359Smrg if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 8217ea0de359Smrg RAWCPPFLAGS=-undef 8218ea0de359Smrg AC_MSG_RESULT([yes]) 8219ea0de359Smrg # under Cygwin unix is still defined even with -undef 8220ea0de359Smrg elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 8221ea0de359Smrg RAWCPPFLAGS="-undef -ansi" 8222ea0de359Smrg AC_MSG_RESULT([yes, with -ansi]) 8223ea0de359Smrg else 8224ea0de359Smrg AC_MSG_ERROR([${RAWCPP} defines unix with or without -undef. I don't know what to do.]) 8225ea0de359Smrg fi 8226ea0de359Smrgfi 8227ea0de359Smrgrm -f conftest.$ac_ext 82289bd41f2cSmrg 8229ea0de359SmrgAC_MSG_CHECKING([if $RAWCPP requires -traditional]) 8230ea0de359SmrgAC_LANG_CONFTEST([Does cpp preserve "whitespace"?]) 8231ea0de359Smrgif test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 8232ea0de359Smrg AC_MSG_RESULT([no]) 82339bd41f2cSmrgelse 8234ea0de359Smrg if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 8235ea0de359Smrg RAWCPPFLAGS="${RAWCPPFLAGS} -traditional" 8236ea0de359Smrg AC_MSG_RESULT([yes]) 8237ea0de359Smrg else 8238ea0de359Smrg AC_MSG_ERROR([${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do.]) 8239ea0de359Smrg fi 82409bd41f2cSmrgfi 8241ea0de359Smrgrm -f conftest.$ac_ext 8242ea0de359SmrgAC_SUBST(RAWCPPFLAGS) 8243ea0de359Smrg]) # XORG_PROG_RAWCPP 82449bd41f2cSmrg 8245ea0de359Smrg# XORG_MANPAGE_SECTIONS() 8246ea0de359Smrg# ----------------------- 8247ea0de359Smrg# Minimum version: 1.0.0 82489bd41f2cSmrg# 8249ea0de359Smrg# Determine which sections man pages go in for the different man page types 8250ea0de359Smrg# on this OS - replaces *ManSuffix settings in old Imake *.cf per-os files. 8251ea0de359Smrg# Not sure if there's any better way than just hardcoding by OS name. 8252ea0de359Smrg# Override default settings by setting environment variables 8253ea0de359Smrg# Added MAN_SUBSTS in version 1.8 8254ea0de359Smrg# Added AC_PROG_SED in version 1.8 82559bd41f2cSmrg 8256ea0de359SmrgAC_DEFUN([XORG_MANPAGE_SECTIONS],[ 8257ea0de359SmrgAC_REQUIRE([AC_CANONICAL_HOST]) 8258ea0de359SmrgAC_REQUIRE([AC_PROG_SED]) 82599bd41f2cSmrg 8260ea0de359Smrgif test x$APP_MAN_SUFFIX = x ; then 8261ea0de359Smrg APP_MAN_SUFFIX=1 8262ea0de359Smrgfi 8263ea0de359Smrgif test x$APP_MAN_DIR = x ; then 8264ea0de359Smrg APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 8265ea0de359Smrgfi 82669bd41f2cSmrg 8267ea0de359Smrgif test x$LIB_MAN_SUFFIX = x ; then 8268ea0de359Smrg LIB_MAN_SUFFIX=3 8269ea0de359Smrgfi 8270ea0de359Smrgif test x$LIB_MAN_DIR = x ; then 8271ea0de359Smrg LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 8272ea0de359Smrgfi 82739bd41f2cSmrg 8274ea0de359Smrgif test x$FILE_MAN_SUFFIX = x ; then 8275ea0de359Smrg case $host_os in 8276ea0de359Smrg solaris*) FILE_MAN_SUFFIX=4 ;; 8277ea0de359Smrg *) FILE_MAN_SUFFIX=5 ;; 8278ea0de359Smrg esac 8279ea0de359Smrgfi 8280ea0de359Smrgif test x$FILE_MAN_DIR = x ; then 8281ea0de359Smrg FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 8282ea0de359Smrgfi 82839bd41f2cSmrg 8284ea0de359Smrgif test x$MISC_MAN_SUFFIX = x ; then 8285ea0de359Smrg case $host_os in 8286ea0de359Smrg solaris*) MISC_MAN_SUFFIX=5 ;; 8287ea0de359Smrg *) MISC_MAN_SUFFIX=7 ;; 8288ea0de359Smrg esac 8289ea0de359Smrgfi 8290ea0de359Smrgif test x$MISC_MAN_DIR = x ; then 8291ea0de359Smrg MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 8292ea0de359Smrgfi 82939bd41f2cSmrg 8294ea0de359Smrgif test x$DRIVER_MAN_SUFFIX = x ; then 8295ea0de359Smrg case $host_os in 8296ea0de359Smrg solaris*) DRIVER_MAN_SUFFIX=7 ;; 8297ea0de359Smrg *) DRIVER_MAN_SUFFIX=4 ;; 8298ea0de359Smrg esac 8299ea0de359Smrgfi 8300ea0de359Smrgif test x$DRIVER_MAN_DIR = x ; then 8301ea0de359Smrg DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 8302ea0de359Smrgfi 83039bd41f2cSmrg 8304ea0de359Smrgif test x$ADMIN_MAN_SUFFIX = x ; then 8305ea0de359Smrg case $host_os in 8306ea0de359Smrg solaris*) ADMIN_MAN_SUFFIX=1m ;; 8307ea0de359Smrg *) ADMIN_MAN_SUFFIX=8 ;; 8308ea0de359Smrg esac 8309ea0de359Smrgfi 8310ea0de359Smrgif test x$ADMIN_MAN_DIR = x ; then 8311ea0de359Smrg ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 8312ea0de359Smrgfi 83139418810dSmrg 83149418810dSmrg 8315ea0de359SmrgAC_SUBST([APP_MAN_SUFFIX]) 8316ea0de359SmrgAC_SUBST([LIB_MAN_SUFFIX]) 8317ea0de359SmrgAC_SUBST([FILE_MAN_SUFFIX]) 8318ea0de359SmrgAC_SUBST([MISC_MAN_SUFFIX]) 8319ea0de359SmrgAC_SUBST([DRIVER_MAN_SUFFIX]) 8320ea0de359SmrgAC_SUBST([ADMIN_MAN_SUFFIX]) 8321ea0de359SmrgAC_SUBST([APP_MAN_DIR]) 8322ea0de359SmrgAC_SUBST([LIB_MAN_DIR]) 8323ea0de359SmrgAC_SUBST([FILE_MAN_DIR]) 8324ea0de359SmrgAC_SUBST([MISC_MAN_DIR]) 8325ea0de359SmrgAC_SUBST([DRIVER_MAN_DIR]) 8326ea0de359SmrgAC_SUBST([ADMIN_MAN_DIR]) 83279418810dSmrg 8328ea0de359SmrgXORG_MAN_PAGE="X Version 11" 8329ea0de359SmrgAC_SUBST([XORG_MAN_PAGE]) 8330ea0de359SmrgMAN_SUBSTS="\ 8331ea0de359Smrg -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 8332ea0de359Smrg -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 8333ea0de359Smrg -e 's|__xservername__|Xorg|g' \ 8334ea0de359Smrg -e 's|__xconfigfile__|xorg.conf|g' \ 8335ea0de359Smrg -e 's|__projectroot__|\$(prefix)|g' \ 8336c4f7863aSmrg -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 8337ea0de359Smrg -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 8338ea0de359Smrg -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 8339ea0de359Smrg -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 8340ea0de359Smrg -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 8341ea0de359Smrg -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 8342ea0de359Smrg -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 8343ea0de359SmrgAC_SUBST([MAN_SUBSTS]) 8344ea0de359Smrg 8345ea0de359Smrg]) # XORG_MANPAGE_SECTIONS 8346ea0de359Smrg 8347ea0de359Smrg# XORG_CHECK_SGML_DOCTOOLS([MIN-VERSION]) 8348ea0de359Smrg# ------------------------ 8349ea0de359Smrg# Minimum version: 1.7.0 8350ea0de359Smrg# 8351ea0de359Smrg# Defines the variable XORG_SGML_PATH containing the location of X11/defs.ent 8352ea0de359Smrg# provided by xorg-sgml-doctools, if installed. 8353ea0de359SmrgAC_DEFUN([XORG_CHECK_SGML_DOCTOOLS],[ 8354ea0de359SmrgAC_MSG_CHECKING([for X.Org SGML entities m4_ifval([$1],[>= $1])]) 8355ea0de359SmrgXORG_SGML_PATH= 8356ea0de359SmrgPKG_CHECK_EXISTS([xorg-sgml-doctools m4_ifval([$1],[>= $1])], 8357ea0de359Smrg [XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`], 8358ea0de359Smrg [m4_ifval([$1],[:], 8359ea0de359Smrg [if test x"$cross_compiling" != x"yes" ; then 8360ea0de359Smrg AC_CHECK_FILE([$prefix/share/sgml/X11/defs.ent], 8361ea0de359Smrg [XORG_SGML_PATH=$prefix/share/sgml]) 8362ea0de359Smrg fi]) 8363ea0de359Smrg ]) 8364ea0de359Smrg 8365ea0de359Smrg# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 8366ea0de359Smrg# the path and the name of the doc stylesheet 8367ea0de359Smrgif test "x$XORG_SGML_PATH" != "x" ; then 8368ea0de359Smrg AC_MSG_RESULT([$XORG_SGML_PATH]) 8369ea0de359Smrg STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 8370ea0de359Smrg XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 83719418810dSmrgelse 8372ea0de359Smrg AC_MSG_RESULT([no]) 83739bd41f2cSmrgfi 83749bd41f2cSmrg 8375ea0de359SmrgAC_SUBST(XORG_SGML_PATH) 8376ea0de359SmrgAC_SUBST(STYLESHEET_SRCDIR) 8377ea0de359SmrgAC_SUBST(XSL_STYLESHEET) 8378ea0de359SmrgAM_CONDITIONAL([HAVE_STYLESHEETS], [test "x$XSL_STYLESHEET" != "x"]) 8379ea0de359Smrg]) # XORG_CHECK_SGML_DOCTOOLS 83809bd41f2cSmrg 8381ea0de359Smrg# XORG_CHECK_LINUXDOC 8382ea0de359Smrg# ------------------- 8383ea0de359Smrg# Minimum version: 1.0.0 8384ea0de359Smrg# 8385ea0de359Smrg# Defines the variable MAKE_TEXT if the necessary tools and 8386ea0de359Smrg# files are found. $(MAKE_TEXT) blah.sgml will then produce blah.txt. 8387ea0de359Smrg# Whether or not the necessary tools and files are found can be checked 8388ea0de359Smrg# with the AM_CONDITIONAL "BUILD_LINUXDOC" 8389ea0de359SmrgAC_DEFUN([XORG_CHECK_LINUXDOC],[ 8390ea0de359SmrgAC_REQUIRE([XORG_CHECK_SGML_DOCTOOLS]) 8391ea0de359SmrgAC_REQUIRE([XORG_WITH_PS2PDF]) 83929bd41f2cSmrg 8393ea0de359SmrgAC_PATH_PROG(LINUXDOC, linuxdoc) 83949bd41f2cSmrg 8395ea0de359SmrgAC_MSG_CHECKING([whether to build documentation]) 8396ea0de359Smrg 8397ea0de359Smrgif test x$XORG_SGML_PATH != x && test x$LINUXDOC != x ; then 8398ea0de359Smrg BUILDDOC=yes 8399ea0de359Smrgelse 8400ea0de359Smrg BUILDDOC=no 84019bd41f2cSmrgfi 84029bd41f2cSmrg 8403ea0de359SmrgAM_CONDITIONAL(BUILD_LINUXDOC, [test x$BUILDDOC = xyes]) 84049bd41f2cSmrg 8405ea0de359SmrgAC_MSG_RESULT([$BUILDDOC]) 8406ea0de359Smrg 8407ea0de359SmrgAC_MSG_CHECKING([whether to build pdf documentation]) 8408ea0de359Smrg 8409ea0de359Smrgif test x$have_ps2pdf != xno && test x$BUILD_PDFDOC != xno; then 8410ea0de359Smrg BUILDPDFDOC=yes 8411ea0de359Smrgelse 8412ea0de359Smrg BUILDPDFDOC=no 8413ea0de359Smrgfi 8414ea0de359Smrg 8415ea0de359SmrgAM_CONDITIONAL(BUILD_PDFDOC, [test x$BUILDPDFDOC = xyes]) 8416ea0de359Smrg 8417ea0de359SmrgAC_MSG_RESULT([$BUILDPDFDOC]) 8418ea0de359Smrg 8419ea0de359SmrgMAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH GROFF_NO_SGR=y $LINUXDOC -B txt -f" 8420ea0de359SmrgMAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B latex --papersize=letter --output=ps" 8421ea0de359SmrgMAKE_PDF="$PS2PDF" 8422ea0de359SmrgMAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B html --split=0" 8423ea0de359Smrg 8424ea0de359SmrgAC_SUBST(MAKE_TEXT) 8425ea0de359SmrgAC_SUBST(MAKE_PS) 8426ea0de359SmrgAC_SUBST(MAKE_PDF) 8427ea0de359SmrgAC_SUBST(MAKE_HTML) 8428ea0de359Smrg]) # XORG_CHECK_LINUXDOC 8429ea0de359Smrg 8430ea0de359Smrg# XORG_CHECK_DOCBOOK 8431ea0de359Smrg# ------------------- 8432ea0de359Smrg# Minimum version: 1.0.0 84339418810dSmrg# 8434ea0de359Smrg# Checks for the ability to build output formats from SGML DocBook source. 8435ea0de359Smrg# For XXX in {TXT, PDF, PS, HTML}, the AM_CONDITIONAL "BUILD_XXXDOC" 8436ea0de359Smrg# indicates whether the necessary tools and files are found and, if set, 8437ea0de359Smrg# $(MAKE_XXX) blah.sgml will produce blah.xxx. 8438ea0de359SmrgAC_DEFUN([XORG_CHECK_DOCBOOK],[ 8439ea0de359SmrgAC_REQUIRE([XORG_CHECK_SGML_DOCTOOLS]) 84409bd41f2cSmrg 8441ea0de359SmrgBUILDTXTDOC=no 8442ea0de359SmrgBUILDPDFDOC=no 8443ea0de359SmrgBUILDPSDOC=no 8444ea0de359SmrgBUILDHTMLDOC=no 84459bd41f2cSmrg 8446ea0de359SmrgAC_PATH_PROG(DOCBOOKPS, docbook2ps) 8447ea0de359SmrgAC_PATH_PROG(DOCBOOKPDF, docbook2pdf) 8448ea0de359SmrgAC_PATH_PROG(DOCBOOKHTML, docbook2html) 8449ea0de359SmrgAC_PATH_PROG(DOCBOOKTXT, docbook2txt) 84509bd41f2cSmrg 8451ea0de359SmrgAC_MSG_CHECKING([whether to build text documentation]) 8452ea0de359Smrgif test x$XORG_SGML_PATH != x && test x$DOCBOOKTXT != x && 8453ea0de359Smrg test x$BUILD_TXTDOC != xno; then 8454ea0de359Smrg BUILDTXTDOC=yes 8455ea0de359Smrgfi 8456ea0de359SmrgAM_CONDITIONAL(BUILD_TXTDOC, [test x$BUILDTXTDOC = xyes]) 8457ea0de359SmrgAC_MSG_RESULT([$BUILDTXTDOC]) 84589bd41f2cSmrg 8459ea0de359SmrgAC_MSG_CHECKING([whether to build PDF documentation]) 8460ea0de359Smrgif test x$XORG_SGML_PATH != x && test x$DOCBOOKPDF != x && 8461ea0de359Smrg test x$BUILD_PDFDOC != xno; then 8462ea0de359Smrg BUILDPDFDOC=yes 8463ea0de359Smrgfi 8464ea0de359SmrgAM_CONDITIONAL(BUILD_PDFDOC, [test x$BUILDPDFDOC = xyes]) 8465ea0de359SmrgAC_MSG_RESULT([$BUILDPDFDOC]) 84669bd41f2cSmrg 8467ea0de359SmrgAC_MSG_CHECKING([whether to build PostScript documentation]) 8468ea0de359Smrgif test x$XORG_SGML_PATH != x && test x$DOCBOOKPS != x && 8469ea0de359Smrg test x$BUILD_PSDOC != xno; then 8470ea0de359Smrg BUILDPSDOC=yes 8471ea0de359Smrgfi 8472ea0de359SmrgAM_CONDITIONAL(BUILD_PSDOC, [test x$BUILDPSDOC = xyes]) 8473ea0de359SmrgAC_MSG_RESULT([$BUILDPSDOC]) 84749bd41f2cSmrg 8475ea0de359SmrgAC_MSG_CHECKING([whether to build HTML documentation]) 8476ea0de359Smrgif test x$XORG_SGML_PATH != x && test x$DOCBOOKHTML != x && 8477ea0de359Smrg test x$BUILD_HTMLDOC != xno; then 8478ea0de359Smrg BUILDHTMLDOC=yes 8479ea0de359Smrgfi 8480ea0de359SmrgAM_CONDITIONAL(BUILD_HTMLDOC, [test x$BUILDHTMLDOC = xyes]) 8481ea0de359SmrgAC_MSG_RESULT([$BUILDHTMLDOC]) 84829bd41f2cSmrg 8483ea0de359SmrgMAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKTXT" 8484ea0de359SmrgMAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKPS" 8485ea0de359SmrgMAKE_PDF="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKPDF" 8486ea0de359SmrgMAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKHTML" 84879bd41f2cSmrg 8488ea0de359SmrgAC_SUBST(MAKE_TEXT) 8489ea0de359SmrgAC_SUBST(MAKE_PS) 8490ea0de359SmrgAC_SUBST(MAKE_PDF) 8491ea0de359SmrgAC_SUBST(MAKE_HTML) 8492ea0de359Smrg]) # XORG_CHECK_DOCBOOK 84939bd41f2cSmrg 8494c4f7863aSmrg# XORG_WITH_XMLTO([MIN-VERSION], [DEFAULT]) 8495ea0de359Smrg# ---------------- 8496ea0de359Smrg# Minimum version: 1.5.0 8497c4f7863aSmrg# Minimum version for optional DEFAULT argument: 1.11.0 84989bd41f2cSmrg# 8499ea0de359Smrg# Documentation tools are not always available on all platforms and sometimes 8500ea0de359Smrg# not at the appropriate level. This macro enables a module to test for the 8501ea0de359Smrg# presence of the tool and obtain it's path in separate variables. Coupled with 8502ea0de359Smrg# the --with-xmlto option, it allows maximum flexibilty in making decisions 8503c4f7863aSmrg# as whether or not to use the xmlto package. When DEFAULT is not specified, 8504c4f7863aSmrg# --with-xmlto assumes 'auto'. 8505ea0de359Smrg# 8506ea0de359Smrg# Interface to module: 8507ea0de359Smrg# HAVE_XMLTO: used in makefiles to conditionally generate documentation 8508ea0de359Smrg# XMLTO: returns the path of the xmlto program found 8509ea0de359Smrg# returns the path set by the user in the environment 8510ea0de359Smrg# --with-xmlto: 'yes' user instructs the module to use xmlto 8511ea0de359Smrg# 'no' user instructs the module not to use xmlto 8512ea0de359Smrg# 8513ea0de359Smrg# Added in version 1.10.0 8514ea0de359Smrg# HAVE_XMLTO_TEXT: used in makefiles to conditionally generate text documentation 8515ea0de359Smrg# xmlto for text output requires either lynx, links, or w3m browsers 8516ea0de359Smrg# 8517ea0de359Smrg# If the user sets the value of XMLTO, AC_PATH_PROG skips testing the path. 8518ea0de359Smrg# 8519ea0de359SmrgAC_DEFUN([XORG_WITH_XMLTO],[ 8520ea0de359SmrgAC_ARG_VAR([XMLTO], [Path to xmlto command]) 8521c4f7863aSmrgm4_define([_defopt], m4_default([$2], [auto])) 8522ea0de359SmrgAC_ARG_WITH(xmlto, 8523ea0de359Smrg AS_HELP_STRING([--with-xmlto], 8524c4f7863aSmrg [Use xmlto to regenerate documentation (default: ]_defopt[)]), 8525c4f7863aSmrg [use_xmlto=$withval], [use_xmlto=]_defopt) 8526c4f7863aSmrgm4_undefine([_defopt]) 85279bd41f2cSmrg 8528ea0de359Smrgif test "x$use_xmlto" = x"auto"; then 8529ea0de359Smrg AC_PATH_PROG([XMLTO], [xmlto]) 8530ea0de359Smrg if test "x$XMLTO" = "x"; then 8531ea0de359Smrg AC_MSG_WARN([xmlto not found - documentation targets will be skipped]) 8532ea0de359Smrg have_xmlto=no 8533ea0de359Smrg else 8534ea0de359Smrg have_xmlto=yes 8535ea0de359Smrg fi 8536ea0de359Smrgelif test "x$use_xmlto" = x"yes" ; then 8537ea0de359Smrg AC_PATH_PROG([XMLTO], [xmlto]) 8538ea0de359Smrg if test "x$XMLTO" = "x"; then 8539ea0de359Smrg AC_MSG_ERROR([--with-xmlto=yes specified but xmlto not found in PATH]) 8540ea0de359Smrg fi 8541ea0de359Smrg have_xmlto=yes 8542ea0de359Smrgelif test "x$use_xmlto" = x"no" ; then 8543ea0de359Smrg if test "x$XMLTO" != "x"; then 8544ea0de359Smrg AC_MSG_WARN([ignoring XMLTO environment variable since --with-xmlto=no was specified]) 8545ea0de359Smrg fi 8546ea0de359Smrg have_xmlto=no 8547ea0de359Smrgelse 8548ea0de359Smrg AC_MSG_ERROR([--with-xmlto expects 'yes' or 'no']) 85499bd41f2cSmrgfi 85509bd41f2cSmrg 8551ea0de359Smrg# Test for a minimum version of xmlto, if provided. 8552ea0de359Smrgm4_ifval([$1], 8553ea0de359Smrg[if test "$have_xmlto" = yes; then 8554ea0de359Smrg # scrape the xmlto version 8555ea0de359Smrg AC_MSG_CHECKING([the xmlto version]) 8556ea0de359Smrg xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 8557ea0de359Smrg AC_MSG_RESULT([$xmlto_version]) 8558ea0de359Smrg AS_VERSION_COMPARE([$xmlto_version], [$1], 8559ea0de359Smrg [if test "x$use_xmlto" = xauto; then 8560ea0de359Smrg AC_MSG_WARN([xmlto version $xmlto_version found, but $1 needed]) 8561ea0de359Smrg have_xmlto=no 8562ea0de359Smrg else 8563ea0de359Smrg AC_MSG_ERROR([xmlto version $xmlto_version found, but $1 needed]) 8564ea0de359Smrg fi]) 8565ea0de359Smrgfi]) 85669bd41f2cSmrg 8567ea0de359Smrg# Test for the ability of xmlto to generate a text target 8568ea0de359Smrghave_xmlto_text=no 8569ea0de359Smrgcat > conftest.xml << "EOF" 8570ea0de359SmrgEOF 8571ea0de359SmrgAS_IF([test "$have_xmlto" = yes], 8572ea0de359Smrg [AS_IF([$XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1], 8573ea0de359Smrg [have_xmlto_text=yes], 8574ea0de359Smrg [AC_MSG_WARN([xmlto cannot generate text format, this format skipped])])]) 8575ea0de359Smrgrm -f conftest.xml 8576ea0de359SmrgAM_CONDITIONAL([HAVE_XMLTO_TEXT], [test $have_xmlto_text = yes]) 8577ea0de359SmrgAM_CONDITIONAL([HAVE_XMLTO], [test "$have_xmlto" = yes]) 8578ea0de359Smrg]) # XORG_WITH_XMLTO 85799bd41f2cSmrg 8580c4f7863aSmrg# XORG_WITH_ASCIIDOC([MIN-VERSION], [DEFAULT]) 8581ea0de359Smrg# ---------------- 8582ea0de359Smrg# Minimum version: 1.5.0 8583c4f7863aSmrg# Minimum version for optional DEFAULT argument: 1.11.0 85849bd41f2cSmrg# 8585ea0de359Smrg# Documentation tools are not always available on all platforms and sometimes 8586ea0de359Smrg# not at the appropriate level. This macro enables a module to test for the 8587ea0de359Smrg# presence of the tool and obtain it's path in separate variables. Coupled with 8588ea0de359Smrg# the --with-asciidoc option, it allows maximum flexibilty in making decisions 8589c4f7863aSmrg# as whether or not to use the asciidoc package. When DEFAULT is not specified, 8590c4f7863aSmrg# --with-asciidoc assumes 'auto'. 8591ea0de359Smrg# 8592ea0de359Smrg# Interface to module: 8593ea0de359Smrg# HAVE_ASCIIDOC: used in makefiles to conditionally generate documentation 8594ea0de359Smrg# ASCIIDOC: returns the path of the asciidoc program found 8595ea0de359Smrg# returns the path set by the user in the environment 8596ea0de359Smrg# --with-asciidoc: 'yes' user instructs the module to use asciidoc 8597ea0de359Smrg# 'no' user instructs the module not to use asciidoc 8598ea0de359Smrg# 8599ea0de359Smrg# If the user sets the value of ASCIIDOC, AC_PATH_PROG skips testing the path. 8600ea0de359Smrg# 8601ea0de359SmrgAC_DEFUN([XORG_WITH_ASCIIDOC],[ 8602ea0de359SmrgAC_ARG_VAR([ASCIIDOC], [Path to asciidoc command]) 8603c4f7863aSmrgm4_define([_defopt], m4_default([$2], [auto])) 8604ea0de359SmrgAC_ARG_WITH(asciidoc, 8605ea0de359Smrg AS_HELP_STRING([--with-asciidoc], 8606c4f7863aSmrg [Use asciidoc to regenerate documentation (default: ]_defopt[)]), 8607c4f7863aSmrg [use_asciidoc=$withval], [use_asciidoc=]_defopt) 8608c4f7863aSmrgm4_undefine([_defopt]) 86099bd41f2cSmrg 8610ea0de359Smrgif test "x$use_asciidoc" = x"auto"; then 8611ea0de359Smrg AC_PATH_PROG([ASCIIDOC], [asciidoc]) 8612ea0de359Smrg if test "x$ASCIIDOC" = "x"; then 8613ea0de359Smrg AC_MSG_WARN([asciidoc not found - documentation targets will be skipped]) 8614ea0de359Smrg have_asciidoc=no 8615ea0de359Smrg else 8616ea0de359Smrg have_asciidoc=yes 8617ea0de359Smrg fi 8618ea0de359Smrgelif test "x$use_asciidoc" = x"yes" ; then 8619ea0de359Smrg AC_PATH_PROG([ASCIIDOC], [asciidoc]) 8620ea0de359Smrg if test "x$ASCIIDOC" = "x"; then 8621ea0de359Smrg AC_MSG_ERROR([--with-asciidoc=yes specified but asciidoc not found in PATH]) 8622ea0de359Smrg fi 8623ea0de359Smrg have_asciidoc=yes 8624ea0de359Smrgelif test "x$use_asciidoc" = x"no" ; then 8625ea0de359Smrg if test "x$ASCIIDOC" != "x"; then 8626ea0de359Smrg AC_MSG_WARN([ignoring ASCIIDOC environment variable since --with-asciidoc=no was specified]) 8627ea0de359Smrg fi 8628ea0de359Smrg have_asciidoc=no 8629ea0de359Smrgelse 8630ea0de359Smrg AC_MSG_ERROR([--with-asciidoc expects 'yes' or 'no']) 86319bd41f2cSmrgfi 8632ea0de359Smrgm4_ifval([$1], 8633ea0de359Smrg[if test "$have_asciidoc" = yes; then 8634ea0de359Smrg # scrape the asciidoc version 8635ea0de359Smrg AC_MSG_CHECKING([the asciidoc version]) 8636ea0de359Smrg asciidoc_version=`$ASCIIDOC --version 2>/dev/null | cut -d' ' -f2` 8637ea0de359Smrg AC_MSG_RESULT([$asciidoc_version]) 8638ea0de359Smrg AS_VERSION_COMPARE([$asciidoc_version], [$1], 8639ea0de359Smrg [if test "x$use_asciidoc" = xauto; then 8640ea0de359Smrg AC_MSG_WARN([asciidoc version $asciidoc_version found, but $1 needed]) 8641ea0de359Smrg have_asciidoc=no 8642ea0de359Smrg else 8643ea0de359Smrg AC_MSG_ERROR([asciidoc version $asciidoc_version found, but $1 needed]) 8644ea0de359Smrg fi]) 8645ea0de359Smrgfi]) 8646ea0de359SmrgAM_CONDITIONAL([HAVE_ASCIIDOC], [test "$have_asciidoc" = yes]) 8647ea0de359Smrg]) # XORG_WITH_ASCIIDOC 86489bd41f2cSmrg 8649c4f7863aSmrg# XORG_WITH_DOXYGEN([MIN-VERSION], [DEFAULT]) 8650ea0de359Smrg# -------------------------------- 8651ea0de359Smrg# Minimum version: 1.5.0 8652c4f7863aSmrg# Minimum version for optional DEFAULT argument: 1.11.0 86539418810dSmrg# 8654ea0de359Smrg# Documentation tools are not always available on all platforms and sometimes 8655ea0de359Smrg# not at the appropriate level. This macro enables a module to test for the 8656ea0de359Smrg# presence of the tool and obtain it's path in separate variables. Coupled with 8657ea0de359Smrg# the --with-doxygen option, it allows maximum flexibilty in making decisions 8658c4f7863aSmrg# as whether or not to use the doxygen package. When DEFAULT is not specified, 8659c4f7863aSmrg# --with-doxygen assumes 'auto'. 8660ea0de359Smrg# 8661ea0de359Smrg# Interface to module: 8662ea0de359Smrg# HAVE_DOXYGEN: used in makefiles to conditionally generate documentation 8663ea0de359Smrg# DOXYGEN: returns the path of the doxygen program found 8664ea0de359Smrg# returns the path set by the user in the environment 8665ea0de359Smrg# --with-doxygen: 'yes' user instructs the module to use doxygen 8666ea0de359Smrg# 'no' user instructs the module not to use doxygen 8667ea0de359Smrg# 8668ea0de359Smrg# If the user sets the value of DOXYGEN, AC_PATH_PROG skips testing the path. 8669ea0de359Smrg# 8670ea0de359SmrgAC_DEFUN([XORG_WITH_DOXYGEN],[ 8671ea0de359SmrgAC_ARG_VAR([DOXYGEN], [Path to doxygen command]) 8672c4f7863aSmrgm4_define([_defopt], m4_default([$2], [auto])) 8673ea0de359SmrgAC_ARG_WITH(doxygen, 8674ea0de359Smrg AS_HELP_STRING([--with-doxygen], 8675c4f7863aSmrg [Use doxygen to regenerate documentation (default: ]_defopt[)]), 8676c4f7863aSmrg [use_doxygen=$withval], [use_doxygen=]_defopt) 8677c4f7863aSmrgm4_undefine([_defopt]) 86789418810dSmrg 8679ea0de359Smrgif test "x$use_doxygen" = x"auto"; then 8680ea0de359Smrg AC_PATH_PROG([DOXYGEN], [doxygen]) 8681ea0de359Smrg if test "x$DOXYGEN" = "x"; then 8682ea0de359Smrg AC_MSG_WARN([doxygen not found - documentation targets will be skipped]) 8683ea0de359Smrg have_doxygen=no 8684ea0de359Smrg else 8685ea0de359Smrg have_doxygen=yes 8686ea0de359Smrg fi 8687ea0de359Smrgelif test "x$use_doxygen" = x"yes" ; then 8688ea0de359Smrg AC_PATH_PROG([DOXYGEN], [doxygen]) 8689ea0de359Smrg if test "x$DOXYGEN" = "x"; then 8690ea0de359Smrg AC_MSG_ERROR([--with-doxygen=yes specified but doxygen not found in PATH]) 8691ea0de359Smrg fi 8692ea0de359Smrg have_doxygen=yes 8693ea0de359Smrgelif test "x$use_doxygen" = x"no" ; then 8694ea0de359Smrg if test "x$DOXYGEN" != "x"; then 8695ea0de359Smrg AC_MSG_WARN([ignoring DOXYGEN environment variable since --with-doxygen=no was specified]) 8696ea0de359Smrg fi 8697ea0de359Smrg have_doxygen=no 86989bd41f2cSmrgelse 8699ea0de359Smrg AC_MSG_ERROR([--with-doxygen expects 'yes' or 'no']) 87009bd41f2cSmrgfi 8701ea0de359Smrgm4_ifval([$1], 8702ea0de359Smrg[if test "$have_doxygen" = yes; then 8703ea0de359Smrg # scrape the doxygen version 8704ea0de359Smrg AC_MSG_CHECKING([the doxygen version]) 8705ea0de359Smrg doxygen_version=`$DOXYGEN --version 2>/dev/null` 8706ea0de359Smrg AC_MSG_RESULT([$doxygen_version]) 8707ea0de359Smrg AS_VERSION_COMPARE([$doxygen_version], [$1], 8708ea0de359Smrg [if test "x$use_doxygen" = xauto; then 8709ea0de359Smrg AC_MSG_WARN([doxygen version $doxygen_version found, but $1 needed]) 8710ea0de359Smrg have_doxygen=no 8711ea0de359Smrg else 8712ea0de359Smrg AC_MSG_ERROR([doxygen version $doxygen_version found, but $1 needed]) 8713ea0de359Smrg fi]) 8714ea0de359Smrgfi]) 8715ea0de359SmrgAM_CONDITIONAL([HAVE_DOXYGEN], [test "$have_doxygen" = yes]) 8716ea0de359Smrg]) # XORG_WITH_DOXYGEN 87179bd41f2cSmrg 8718c4f7863aSmrg# XORG_WITH_GROFF([DEFAULT]) 8719ea0de359Smrg# ---------------- 8720ea0de359Smrg# Minimum version: 1.6.0 8721c4f7863aSmrg# Minimum version for optional DEFAULT argument: 1.11.0 87229bd41f2cSmrg# 8723ea0de359Smrg# Documentation tools are not always available on all platforms and sometimes 8724ea0de359Smrg# not at the appropriate level. This macro enables a module to test for the 8725ea0de359Smrg# presence of the tool and obtain it's path in separate variables. Coupled with 8726ea0de359Smrg# the --with-groff option, it allows maximum flexibilty in making decisions 8727c4f7863aSmrg# as whether or not to use the groff package. When DEFAULT is not specified, 8728c4f7863aSmrg# --with-groff assumes 'auto'. 87299418810dSmrg# 8730ea0de359Smrg# Interface to module: 8731ea0de359Smrg# HAVE_GROFF: used in makefiles to conditionally generate documentation 8732ea0de359Smrg# HAVE_GROFF_MM: the memorandum macros (-mm) package 8733ea0de359Smrg# HAVE_GROFF_MS: the -ms macros package 8734ea0de359Smrg# GROFF: returns the path of the groff program found 8735ea0de359Smrg# returns the path set by the user in the environment 8736ea0de359Smrg# --with-groff: 'yes' user instructs the module to use groff 8737ea0de359Smrg# 'no' user instructs the module not to use groff 8738ea0de359Smrg# 8739ea0de359Smrg# Added in version 1.9.0: 8740ea0de359Smrg# HAVE_GROFF_HTML: groff has dependencies to output HTML format: 8741ea0de359Smrg# pnmcut pnmcrop pnmtopng pnmtops from the netpbm package. 8742ea0de359Smrg# psselect from the psutils package. 8743ea0de359Smrg# the ghostcript package. Refer to the grohtml man pages 8744ea0de359Smrg# 8745ea0de359Smrg# If the user sets the value of GROFF, AC_PATH_PROG skips testing the path. 8746ea0de359Smrg# 8747ea0de359Smrg# OS and distros often splits groff in a basic and full package, the former 8748ea0de359Smrg# having the groff program and the later having devices, fonts and macros 8749ea0de359Smrg# Checking for the groff executable is not enough. 8750ea0de359Smrg# 8751ea0de359Smrg# If macros are missing, we cannot assume that groff is useless, so we don't 8752ea0de359Smrg# unset HAVE_GROFF or GROFF env variables. 8753ea0de359Smrg# HAVE_GROFF_?? can never be true while HAVE_GROFF is false. 8754ea0de359Smrg# 8755ea0de359SmrgAC_DEFUN([XORG_WITH_GROFF],[ 8756ea0de359SmrgAC_ARG_VAR([GROFF], [Path to groff command]) 8757c4f7863aSmrgm4_define([_defopt], m4_default([$1], [auto])) 8758ea0de359SmrgAC_ARG_WITH(groff, 8759ea0de359Smrg AS_HELP_STRING([--with-groff], 8760c4f7863aSmrg [Use groff to regenerate documentation (default: ]_defopt[)]), 8761c4f7863aSmrg [use_groff=$withval], [use_groff=]_defopt) 8762c4f7863aSmrgm4_undefine([_defopt]) 87639bd41f2cSmrg 8764ea0de359Smrgif test "x$use_groff" = x"auto"; then 8765ea0de359Smrg AC_PATH_PROG([GROFF], [groff]) 8766ea0de359Smrg if test "x$GROFF" = "x"; then 8767ea0de359Smrg AC_MSG_WARN([groff not found - documentation targets will be skipped]) 8768ea0de359Smrg have_groff=no 8769ea0de359Smrg else 8770ea0de359Smrg have_groff=yes 8771ea0de359Smrg fi 8772ea0de359Smrgelif test "x$use_groff" = x"yes" ; then 8773ea0de359Smrg AC_PATH_PROG([GROFF], [groff]) 8774ea0de359Smrg if test "x$GROFF" = "x"; then 8775ea0de359Smrg AC_MSG_ERROR([--with-groff=yes specified but groff not found in PATH]) 8776ea0de359Smrg fi 8777ea0de359Smrg have_groff=yes 8778ea0de359Smrgelif test "x$use_groff" = x"no" ; then 8779ea0de359Smrg if test "x$GROFF" != "x"; then 8780ea0de359Smrg AC_MSG_WARN([ignoring GROFF environment variable since --with-groff=no was specified]) 8781ea0de359Smrg fi 8782ea0de359Smrg have_groff=no 8783ea0de359Smrgelse 8784ea0de359Smrg AC_MSG_ERROR([--with-groff expects 'yes' or 'no']) 8785b15a006bSmrgfi 87869bd41f2cSmrg 8787ea0de359Smrg# We have groff, test for the presence of the macro packages 8788ea0de359Smrgif test "x$have_groff" = x"yes"; then 8789ea0de359Smrg AC_MSG_CHECKING([for ${GROFF} -ms macros]) 8790ea0de359Smrg if ${GROFF} -ms -I. /dev/null >/dev/null 2>&1 ; then 8791ea0de359Smrg groff_ms_works=yes 8792ea0de359Smrg else 8793ea0de359Smrg groff_ms_works=no 8794ea0de359Smrg fi 8795ea0de359Smrg AC_MSG_RESULT([$groff_ms_works]) 8796ea0de359Smrg AC_MSG_CHECKING([for ${GROFF} -mm macros]) 8797ea0de359Smrg if ${GROFF} -mm -I. /dev/null >/dev/null 2>&1 ; then 8798ea0de359Smrg groff_mm_works=yes 8799ea0de359Smrg else 8800ea0de359Smrg groff_mm_works=no 8801ea0de359Smrg fi 8802ea0de359Smrg AC_MSG_RESULT([$groff_mm_works]) 8803ea0de359Smrgfi 8804b15a006bSmrg 8805ea0de359Smrg# We have groff, test for HTML dependencies, one command per package 8806ea0de359Smrgif test "x$have_groff" = x"yes"; then 8807ea0de359Smrg AC_PATH_PROGS(GS_PATH, [gs gswin32c]) 8808ea0de359Smrg AC_PATH_PROG(PNMTOPNG_PATH, [pnmtopng]) 8809ea0de359Smrg AC_PATH_PROG(PSSELECT_PATH, [psselect]) 8810ea0de359Smrg if test "x$GS_PATH" != "x" -a "x$PNMTOPNG_PATH" != "x" -a "x$PSSELECT_PATH" != "x"; then 8811ea0de359Smrg have_groff_html=yes 8812ea0de359Smrg else 8813ea0de359Smrg have_groff_html=no 8814ea0de359Smrg AC_MSG_WARN([grohtml dependencies not found - HTML Documentation skipped. Refer to grohtml man pages]) 8815ea0de359Smrg fi 8816ea0de359Smrgfi 8817b15a006bSmrg 8818ea0de359Smrg# Set Automake conditionals for Makefiles 8819ea0de359SmrgAM_CONDITIONAL([HAVE_GROFF], [test "$have_groff" = yes]) 8820ea0de359SmrgAM_CONDITIONAL([HAVE_GROFF_MS], [test "$groff_ms_works" = yes]) 8821ea0de359SmrgAM_CONDITIONAL([HAVE_GROFF_MM], [test "$groff_mm_works" = yes]) 8822ea0de359SmrgAM_CONDITIONAL([HAVE_GROFF_HTML], [test "$have_groff_html" = yes]) 8823ea0de359Smrg]) # XORG_WITH_GROFF 8824b15a006bSmrg 8825c4f7863aSmrg# XORG_WITH_FOP([DEFAULT]) 8826ea0de359Smrg# ---------------- 8827ea0de359Smrg# Minimum version: 1.6.0 8828c4f7863aSmrg# Minimum version for optional DEFAULT argument: 1.11.0 8829ea0de359Smrg# 8830ea0de359Smrg# Documentation tools are not always available on all platforms and sometimes 8831ea0de359Smrg# not at the appropriate level. This macro enables a module to test for the 8832ea0de359Smrg# presence of the tool and obtain it's path in separate variables. Coupled with 8833ea0de359Smrg# the --with-fop option, it allows maximum flexibilty in making decisions 8834c4f7863aSmrg# as whether or not to use the fop package. When DEFAULT is not specified, 8835c4f7863aSmrg# --with-fop assumes 'auto'. 8836ea0de359Smrg# 8837ea0de359Smrg# Interface to module: 8838ea0de359Smrg# HAVE_FOP: used in makefiles to conditionally generate documentation 8839ea0de359Smrg# FOP: returns the path of the fop program found 8840ea0de359Smrg# returns the path set by the user in the environment 8841ea0de359Smrg# --with-fop: 'yes' user instructs the module to use fop 8842ea0de359Smrg# 'no' user instructs the module not to use fop 8843ea0de359Smrg# 8844ea0de359Smrg# If the user sets the value of FOP, AC_PATH_PROG skips testing the path. 8845ea0de359Smrg# 8846ea0de359SmrgAC_DEFUN([XORG_WITH_FOP],[ 8847ea0de359SmrgAC_ARG_VAR([FOP], [Path to fop command]) 8848c4f7863aSmrgm4_define([_defopt], m4_default([$1], [auto])) 8849ea0de359SmrgAC_ARG_WITH(fop, 8850ea0de359Smrg AS_HELP_STRING([--with-fop], 8851c4f7863aSmrg [Use fop to regenerate documentation (default: ]_defopt[)]), 8852c4f7863aSmrg [use_fop=$withval], [use_fop=]_defopt) 8853c4f7863aSmrgm4_undefine([_defopt]) 88549418810dSmrg 8855ea0de359Smrgif test "x$use_fop" = x"auto"; then 8856ea0de359Smrg AC_PATH_PROG([FOP], [fop]) 8857ea0de359Smrg if test "x$FOP" = "x"; then 8858ea0de359Smrg AC_MSG_WARN([fop not found - documentation targets will be skipped]) 8859ea0de359Smrg have_fop=no 8860ea0de359Smrg else 8861ea0de359Smrg have_fop=yes 8862ea0de359Smrg fi 8863ea0de359Smrgelif test "x$use_fop" = x"yes" ; then 8864ea0de359Smrg AC_PATH_PROG([FOP], [fop]) 8865ea0de359Smrg if test "x$FOP" = "x"; then 8866ea0de359Smrg AC_MSG_ERROR([--with-fop=yes specified but fop not found in PATH]) 8867ea0de359Smrg fi 8868ea0de359Smrg have_fop=yes 8869ea0de359Smrgelif test "x$use_fop" = x"no" ; then 8870ea0de359Smrg if test "x$FOP" != "x"; then 8871ea0de359Smrg AC_MSG_WARN([ignoring FOP environment variable since --with-fop=no was specified]) 8872ea0de359Smrg fi 8873ea0de359Smrg have_fop=no 88749418810dSmrgelse 8875ea0de359Smrg AC_MSG_ERROR([--with-fop expects 'yes' or 'no']) 88769418810dSmrgfi 8877ea0de359SmrgAM_CONDITIONAL([HAVE_FOP], [test "$have_fop" = yes]) 8878ea0de359Smrg]) # XORG_WITH_FOP 8879b15a006bSmrg 8880c4f7863aSmrg# XORG_WITH_PS2PDF([DEFAULT]) 8881ea0de359Smrg# ---------------- 8882ea0de359Smrg# Minimum version: 1.6.0 8883c4f7863aSmrg# Minimum version for optional DEFAULT argument: 1.11.0 88849bd41f2cSmrg# 8885ea0de359Smrg# Documentation tools are not always available on all platforms and sometimes 8886ea0de359Smrg# not at the appropriate level. This macro enables a module to test for the 8887ea0de359Smrg# presence of the tool and obtain it's path in separate variables. Coupled with 8888ea0de359Smrg# the --with-ps2pdf option, it allows maximum flexibilty in making decisions 8889c4f7863aSmrg# as whether or not to use the ps2pdf package. When DEFAULT is not specified, 8890c4f7863aSmrg# --with-ps2pdf assumes 'auto'. 88919418810dSmrg# 8892ea0de359Smrg# Interface to module: 8893ea0de359Smrg# HAVE_PS2PDF: used in makefiles to conditionally generate documentation 8894ea0de359Smrg# PS2PDF: returns the path of the ps2pdf program found 8895ea0de359Smrg# returns the path set by the user in the environment 8896ea0de359Smrg# --with-ps2pdf: 'yes' user instructs the module to use ps2pdf 8897ea0de359Smrg# 'no' user instructs the module not to use ps2pdf 8898ea0de359Smrg# 8899ea0de359Smrg# If the user sets the value of PS2PDF, AC_PATH_PROG skips testing the path. 8900ea0de359Smrg# 8901ea0de359SmrgAC_DEFUN([XORG_WITH_PS2PDF],[ 8902ea0de359SmrgAC_ARG_VAR([PS2PDF], [Path to ps2pdf command]) 8903c4f7863aSmrgm4_define([_defopt], m4_default([$1], [auto])) 8904ea0de359SmrgAC_ARG_WITH(ps2pdf, 8905ea0de359Smrg AS_HELP_STRING([--with-ps2pdf], 8906c4f7863aSmrg [Use ps2pdf to regenerate documentation (default: ]_defopt[)]), 8907c4f7863aSmrg [use_ps2pdf=$withval], [use_ps2pdf=]_defopt) 8908c4f7863aSmrgm4_undefine([_defopt]) 89099bd41f2cSmrg 8910ea0de359Smrgif test "x$use_ps2pdf" = x"auto"; then 8911ea0de359Smrg AC_PATH_PROG([PS2PDF], [ps2pdf]) 8912ea0de359Smrg if test "x$PS2PDF" = "x"; then 8913ea0de359Smrg AC_MSG_WARN([ps2pdf not found - documentation targets will be skipped]) 8914ea0de359Smrg have_ps2pdf=no 8915ea0de359Smrg else 8916ea0de359Smrg have_ps2pdf=yes 89179418810dSmrg fi 8918ea0de359Smrgelif test "x$use_ps2pdf" = x"yes" ; then 8919ea0de359Smrg AC_PATH_PROG([PS2PDF], [ps2pdf]) 8920ea0de359Smrg if test "x$PS2PDF" = "x"; then 8921ea0de359Smrg AC_MSG_ERROR([--with-ps2pdf=yes specified but ps2pdf not found in PATH]) 89229418810dSmrg fi 8923ea0de359Smrg have_ps2pdf=yes 8924ea0de359Smrgelif test "x$use_ps2pdf" = x"no" ; then 8925ea0de359Smrg if test "x$PS2PDF" != "x"; then 8926ea0de359Smrg AC_MSG_WARN([ignoring PS2PDF environment variable since --with-ps2pdf=no was specified]) 8927ea0de359Smrg fi 8928ea0de359Smrg have_ps2pdf=no 89299418810dSmrgelse 8930ea0de359Smrg AC_MSG_ERROR([--with-ps2pdf expects 'yes' or 'no']) 89319418810dSmrgfi 8932ea0de359SmrgAM_CONDITIONAL([HAVE_PS2PDF], [test "$have_ps2pdf" = yes]) 8933ea0de359Smrg]) # XORG_WITH_PS2PDF 89349418810dSmrg 8935ea0de359Smrg# XORG_ENABLE_DOCS (enable_docs=yes) 8936ea0de359Smrg# ---------------- 8937ea0de359Smrg# Minimum version: 1.6.0 89389bd41f2cSmrg# 8939ea0de359Smrg# Documentation tools are not always available on all platforms and sometimes 8940ea0de359Smrg# not at the appropriate level. This macro enables a builder to skip all 8941ea0de359Smrg# documentation targets except traditional man pages. 8942ea0de359Smrg# Combined with the specific tool checking macros XORG_WITH_*, it provides 8943ea0de359Smrg# maximum flexibilty in controlling documentation building. 8944ea0de359Smrg# Refer to: 8945ea0de359Smrg# XORG_WITH_XMLTO --with-xmlto 8946ea0de359Smrg# XORG_WITH_ASCIIDOC --with-asciidoc 8947ea0de359Smrg# XORG_WITH_DOXYGEN --with-doxygen 8948ea0de359Smrg# XORG_WITH_FOP --with-fop 8949ea0de359Smrg# XORG_WITH_GROFF --with-groff 8950ea0de359Smrg# XORG_WITH_PS2PDF --with-ps2pdf 89519bd41f2cSmrg# 8952ea0de359Smrg# Interface to module: 8953ea0de359Smrg# ENABLE_DOCS: used in makefiles to conditionally generate documentation 8954ea0de359Smrg# --enable-docs: 'yes' user instructs the module to generate docs 8955ea0de359Smrg# 'no' user instructs the module not to generate docs 8956ea0de359Smrg# parm1: specify the default value, yes or no. 8957ea0de359Smrg# 8958ea0de359SmrgAC_DEFUN([XORG_ENABLE_DOCS],[ 8959c4f7863aSmrgm4_define([docs_default], m4_default([$1], [yes])) 8960ea0de359SmrgAC_ARG_ENABLE(docs, 8961ea0de359Smrg AS_HELP_STRING([--enable-docs], 8962c4f7863aSmrg [Enable building the documentation (default: ]docs_default[)]), 8963c4f7863aSmrg [build_docs=$enableval], [build_docs=]docs_default) 8964c4f7863aSmrgm4_undefine([docs_default]) 8965ea0de359SmrgAM_CONDITIONAL(ENABLE_DOCS, [test x$build_docs = xyes]) 8966ea0de359SmrgAC_MSG_CHECKING([whether to build documentation]) 8967ea0de359SmrgAC_MSG_RESULT([$build_docs]) 8968ea0de359Smrg]) # XORG_ENABLE_DOCS 89699bd41f2cSmrg 8970ea0de359Smrg# XORG_ENABLE_DEVEL_DOCS (enable_devel_docs=yes) 8971ea0de359Smrg# ---------------- 8972ea0de359Smrg# Minimum version: 1.6.0 89739bd41f2cSmrg# 8974ea0de359Smrg# This macro enables a builder to skip all developer documentation. 8975ea0de359Smrg# Combined with the specific tool checking macros XORG_WITH_*, it provides 8976ea0de359Smrg# maximum flexibilty in controlling documentation building. 8977ea0de359Smrg# Refer to: 8978ea0de359Smrg# XORG_WITH_XMLTO --with-xmlto 8979ea0de359Smrg# XORG_WITH_ASCIIDOC --with-asciidoc 8980ea0de359Smrg# XORG_WITH_DOXYGEN --with-doxygen 8981ea0de359Smrg# XORG_WITH_FOP --with-fop 8982ea0de359Smrg# XORG_WITH_GROFF --with-groff 8983ea0de359Smrg# XORG_WITH_PS2PDF --with-ps2pdf 89849bd41f2cSmrg# 8985ea0de359Smrg# Interface to module: 8986ea0de359Smrg# ENABLE_DEVEL_DOCS: used in makefiles to conditionally generate developer docs 8987ea0de359Smrg# --enable-devel-docs: 'yes' user instructs the module to generate developer docs 8988ea0de359Smrg# 'no' user instructs the module not to generate developer docs 8989ea0de359Smrg# parm1: specify the default value, yes or no. 8990ea0de359Smrg# 8991ea0de359SmrgAC_DEFUN([XORG_ENABLE_DEVEL_DOCS],[ 8992c4f7863aSmrgm4_define([devel_default], m4_default([$1], [yes])) 8993ea0de359SmrgAC_ARG_ENABLE(devel-docs, 8994ea0de359Smrg AS_HELP_STRING([--enable-devel-docs], 8995c4f7863aSmrg [Enable building the developer documentation (default: ]devel_default[)]), 8996c4f7863aSmrg [build_devel_docs=$enableval], [build_devel_docs=]devel_default) 8997c4f7863aSmrgm4_undefine([devel_default]) 8998ea0de359SmrgAM_CONDITIONAL(ENABLE_DEVEL_DOCS, [test x$build_devel_docs = xyes]) 8999ea0de359SmrgAC_MSG_CHECKING([whether to build developer documentation]) 9000ea0de359SmrgAC_MSG_RESULT([$build_devel_docs]) 9001ea0de359Smrg]) # XORG_ENABLE_DEVEL_DOCS 90029bd41f2cSmrg 9003ea0de359Smrg# XORG_ENABLE_SPECS (enable_specs=yes) 9004ea0de359Smrg# ---------------- 9005ea0de359Smrg# Minimum version: 1.6.0 90069418810dSmrg# 9007ea0de359Smrg# This macro enables a builder to skip all functional specification targets. 9008ea0de359Smrg# Combined with the specific tool checking macros XORG_WITH_*, it provides 9009ea0de359Smrg# maximum flexibilty in controlling documentation building. 9010ea0de359Smrg# Refer to: 9011ea0de359Smrg# XORG_WITH_XMLTO --with-xmlto 9012ea0de359Smrg# XORG_WITH_ASCIIDOC --with-asciidoc 9013ea0de359Smrg# XORG_WITH_DOXYGEN --with-doxygen 9014ea0de359Smrg# XORG_WITH_FOP --with-fop 9015ea0de359Smrg# XORG_WITH_GROFF --with-groff 9016ea0de359Smrg# XORG_WITH_PS2PDF --with-ps2pdf 90179418810dSmrg# 9018ea0de359Smrg# Interface to module: 9019ea0de359Smrg# ENABLE_SPECS: used in makefiles to conditionally generate specs 9020ea0de359Smrg# --enable-specs: 'yes' user instructs the module to generate specs 9021ea0de359Smrg# 'no' user instructs the module not to generate specs 9022ea0de359Smrg# parm1: specify the default value, yes or no. 9023ea0de359Smrg# 9024ea0de359SmrgAC_DEFUN([XORG_ENABLE_SPECS],[ 9025c4f7863aSmrgm4_define([spec_default], m4_default([$1], [yes])) 9026ea0de359SmrgAC_ARG_ENABLE(specs, 9027ea0de359Smrg AS_HELP_STRING([--enable-specs], 9028c4f7863aSmrg [Enable building the specs (default: ]spec_default[)]), 9029c4f7863aSmrg [build_specs=$enableval], [build_specs=]spec_default) 9030c4f7863aSmrgm4_undefine([spec_default]) 9031ea0de359SmrgAM_CONDITIONAL(ENABLE_SPECS, [test x$build_specs = xyes]) 9032ea0de359SmrgAC_MSG_CHECKING([whether to build functional specifications]) 9033ea0de359SmrgAC_MSG_RESULT([$build_specs]) 9034ea0de359Smrg]) # XORG_ENABLE_SPECS 90359bd41f2cSmrg 9036ea0de359Smrg# XORG_CHECK_MALLOC_ZERO 9037ea0de359Smrg# ---------------------- 9038ea0de359Smrg# Minimum version: 1.0.0 9039ea0de359Smrg# 9040ea0de359Smrg# Defines {MALLOC,XMALLOC,XTMALLOC}_ZERO_CFLAGS appropriately if 9041ea0de359Smrg# malloc(0) returns NULL. Packages should add one of these cflags to 9042ea0de359Smrg# their AM_CFLAGS (or other appropriate *_CFLAGS) to use them. 9043ea0de359SmrgAC_DEFUN([XORG_CHECK_MALLOC_ZERO],[ 9044ea0de359SmrgAC_ARG_ENABLE(malloc0returnsnull, 9045ea0de359Smrg AS_HELP_STRING([--enable-malloc0returnsnull], 9046ea0de359Smrg [malloc(0) returns NULL (default: auto)]), 9047ea0de359Smrg [MALLOC_ZERO_RETURNS_NULL=$enableval], 9048ea0de359Smrg [MALLOC_ZERO_RETURNS_NULL=auto]) 90499418810dSmrg 9050ea0de359SmrgAC_MSG_CHECKING([whether malloc(0) returns NULL]) 9051ea0de359Smrgif test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then 9052ea0de359Smrg AC_RUN_IFELSE([ 9053ea0de359Smrgchar *malloc(); 9054ea0de359Smrgchar *realloc(); 9055ea0de359Smrgchar *calloc(); 9056ea0de359Smrgmain() { 9057ea0de359Smrg char *m0, *r0, *c0, *p; 9058ea0de359Smrg m0 = malloc(0); 9059ea0de359Smrg p = malloc(10); 9060ea0de359Smrg r0 = realloc(p,0); 9061ea0de359Smrg c0 = calloc(0); 9062ea0de359Smrg exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1); 9063ea0de359Smrg}], 9064ea0de359Smrg [MALLOC_ZERO_RETURNS_NULL=yes], 9065ea0de359Smrg [MALLOC_ZERO_RETURNS_NULL=no], 9066ea0de359Smrg [MALLOC_ZERO_RETURNS_NULL=yes]) 9067ea0de359Smrgfi 9068ea0de359SmrgAC_MSG_RESULT([$MALLOC_ZERO_RETURNS_NULL]) 90699bd41f2cSmrg 9070ea0de359Smrgif test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 9071ea0de359Smrg MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 9072ea0de359Smrg XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 9073ea0de359Smrg XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 9074ea0de359Smrgelse 9075ea0de359Smrg MALLOC_ZERO_CFLAGS="" 9076ea0de359Smrg XMALLOC_ZERO_CFLAGS="" 9077ea0de359Smrg XTMALLOC_ZERO_CFLAGS="" 9078ea0de359Smrgfi 90799418810dSmrg 9080ea0de359SmrgAC_SUBST([MALLOC_ZERO_CFLAGS]) 9081ea0de359SmrgAC_SUBST([XMALLOC_ZERO_CFLAGS]) 9082ea0de359SmrgAC_SUBST([XTMALLOC_ZERO_CFLAGS]) 9083ea0de359Smrg]) # XORG_CHECK_MALLOC_ZERO 90849418810dSmrg 9085ea0de359Smrg# XORG_WITH_LINT() 9086ea0de359Smrg# ---------------- 90879418810dSmrg# Minimum version: 1.1.0 90889418810dSmrg# 9089ea0de359Smrg# This macro enables the use of a tool that flags some suspicious and 9090ea0de359Smrg# non-portable constructs (likely to be bugs) in C language source code. 9091ea0de359Smrg# It will attempt to locate the tool and use appropriate options. 9092ea0de359Smrg# There are various lint type tools on different platforms. 90939418810dSmrg# 9094ea0de359Smrg# Interface to module: 9095ea0de359Smrg# LINT: returns the path to the tool found on the platform 9096ea0de359Smrg# or the value set to LINT on the configure cmd line 9097ea0de359Smrg# also an Automake conditional 9098ea0de359Smrg# LINT_FLAGS: an Automake variable with appropriate flags 90999418810dSmrg# 9100ea0de359Smrg# --with-lint: 'yes' user instructs the module to use lint 9101ea0de359Smrg# 'no' user instructs the module not to use lint (default) 91029418810dSmrg# 9103ea0de359Smrg# If the user sets the value of LINT, AC_PATH_PROG skips testing the path. 9104ea0de359Smrg# If the user sets the value of LINT_FLAGS, they are used verbatim. 91059418810dSmrg# 9106ea0de359SmrgAC_DEFUN([XORG_WITH_LINT],[ 91079418810dSmrg 9108ea0de359SmrgAC_ARG_VAR([LINT], [Path to a lint-style command]) 9109ea0de359SmrgAC_ARG_VAR([LINT_FLAGS], [Flags for the lint-style command]) 9110ea0de359SmrgAC_ARG_WITH(lint, [AS_HELP_STRING([--with-lint], 9111ea0de359Smrg [Use a lint-style source code checker (default: disabled)])], 9112ea0de359Smrg [use_lint=$withval], [use_lint=no]) 9113ea0de359Smrg 9114ea0de359Smrg# Obtain platform specific info like program name and options 9115ea0de359Smrg# The lint program on FreeBSD and NetBSD is different from the one on Solaris 9116ea0de359Smrgcase $host_os in 9117ea0de359Smrg *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 9118ea0de359Smrg lint_name=splint 9119ea0de359Smrg lint_options="-badflag" 9120ea0de359Smrg ;; 9121ea0de359Smrg *freebsd* | *netbsd*) 9122ea0de359Smrg lint_name=lint 9123ea0de359Smrg lint_options="-u -b" 9124ea0de359Smrg ;; 9125ea0de359Smrg *solaris*) 9126ea0de359Smrg lint_name=lint 9127ea0de359Smrg lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 9128ea0de359Smrg ;; 9129ea0de359Smrgesac 9130ea0de359Smrg 9131ea0de359Smrg# Test for the presence of the program (either guessed by the code or spelled out by the user) 9132ea0de359Smrgif test "x$use_lint" = x"yes" ; then 9133ea0de359Smrg AC_PATH_PROG([LINT], [$lint_name]) 9134ea0de359Smrg if test "x$LINT" = "x"; then 9135ea0de359Smrg AC_MSG_ERROR([--with-lint=yes specified but lint-style tool not found in PATH]) 9136ea0de359Smrg fi 9137ea0de359Smrgelif test "x$use_lint" = x"no" ; then 9138ea0de359Smrg if test "x$LINT" != "x"; then 9139ea0de359Smrg AC_MSG_WARN([ignoring LINT environment variable since --with-lint=no was specified]) 9140ea0de359Smrg fi 91419bd41f2cSmrgelse 9142ea0de359Smrg AC_MSG_ERROR([--with-lint expects 'yes' or 'no'. Use LINT variable to specify path.]) 91439bd41f2cSmrgfi 91449bd41f2cSmrg 9145ea0de359Smrg# User supplied flags override default flags 9146ea0de359Smrgif test "x$LINT_FLAGS" != "x"; then 9147ea0de359Smrg lint_options=$LINT_FLAGS 91489418810dSmrgfi 91499bd41f2cSmrg 9150ea0de359SmrgAC_SUBST([LINT_FLAGS],[$lint_options]) 9151ea0de359SmrgAM_CONDITIONAL(LINT, [test "x$LINT" != x]) 91529bd41f2cSmrg 9153ea0de359Smrg]) # XORG_WITH_LINT 91549bd41f2cSmrg 9155ea0de359Smrg# XORG_LINT_LIBRARY(LIBNAME) 9156ea0de359Smrg# -------------------------- 9157ea0de359Smrg# Minimum version: 1.1.0 9158ea0de359Smrg# 9159ea0de359Smrg# Sets up flags for building lint libraries for checking programs that call 9160ea0de359Smrg# functions in the library. 9161ea0de359Smrg# 9162ea0de359Smrg# Interface to module: 9163ea0de359Smrg# LINTLIB - Automake variable with the name of lint library file to make 9164ea0de359Smrg# MAKE_LINT_LIB - Automake conditional 9165ea0de359Smrg# 9166ea0de359Smrg# --enable-lint-library: - 'yes' user instructs the module to created a lint library 9167ea0de359Smrg# - 'no' user instructs the module not to create a lint library (default) 91689bd41f2cSmrg 9169ea0de359SmrgAC_DEFUN([XORG_LINT_LIBRARY],[ 9170ea0de359SmrgAC_REQUIRE([XORG_WITH_LINT]) 9171ea0de359SmrgAC_ARG_ENABLE(lint-library, [AS_HELP_STRING([--enable-lint-library], 9172ea0de359Smrg [Create lint library (default: disabled)])], 9173ea0de359Smrg [make_lint_lib=$enableval], [make_lint_lib=no]) 91749bd41f2cSmrg 9175ea0de359Smrgif test "x$make_lint_lib" = x"yes" ; then 9176ea0de359Smrg LINTLIB=llib-l$1.ln 9177ea0de359Smrg if test "x$LINT" = "x"; then 9178ea0de359Smrg AC_MSG_ERROR([Cannot make lint library without --with-lint]) 9179ea0de359Smrg fi 9180ea0de359Smrgelif test "x$make_lint_lib" != x"no" ; then 9181ea0de359Smrg AC_MSG_ERROR([--enable-lint-library expects 'yes' or 'no'.]) 91829418810dSmrgfi 91839bd41f2cSmrg 9184ea0de359SmrgAC_SUBST(LINTLIB) 9185ea0de359SmrgAM_CONDITIONAL(MAKE_LINT_LIB, [test x$make_lint_lib != xno]) 91869bd41f2cSmrg 9187ea0de359Smrg]) # XORG_LINT_LIBRARY 91889bd41f2cSmrg 9189ea0de359Smrg# XORG_CWARNFLAGS 9190ea0de359Smrg# --------------- 9191ea0de359Smrg# Minimum version: 1.2.0 9192ea0de359Smrg# 9193ea0de359Smrg# Defines CWARNFLAGS to enable C compiler warnings. 9194ea0de359Smrg# 9195ea0de359SmrgAC_DEFUN([XORG_CWARNFLAGS], [ 9196ea0de359SmrgAC_REQUIRE([AC_PROG_CC_C99]) 9197ea0de359Smrgif test "x$GCC" = xyes ; then 9198ea0de359Smrg CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 9199ea0de359Smrg-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 9200ea0de359Smrg-Wbad-function-cast -Wformat=2" 9201ea0de359Smrg case `$CC -dumpversion` in 9202ea0de359Smrg 3.4.* | 4.*) 9203ea0de359Smrg CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" 9204ea0de359Smrg ;; 92059418810dSmrg esac 9206ea0de359Smrgelse 9207ea0de359Smrg AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"]) 9208ea0de359Smrg if test "x$SUNCC" = "xyes"; then 9209ea0de359Smrg CWARNFLAGS="-v" 9210ea0de359Smrg fi 92119418810dSmrgfi 9212ea0de359SmrgAC_SUBST(CWARNFLAGS) 9213ea0de359Smrg]) # XORG_CWARNFLAGS 92149bd41f2cSmrg 9215ea0de359Smrg# XORG_STRICT_OPTION 9216ea0de359Smrg# ----------------------- 9217ea0de359Smrg# Minimum version: 1.3.0 92189418810dSmrg# 9219ea0de359Smrg# Add configure option to enable strict compilation 9220ea0de359SmrgAC_DEFUN([XORG_STRICT_OPTION], [ 9221ea0de359Smrg# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89 9222ea0de359SmrgAC_REQUIRE([AC_PROG_CC_C99]) 9223ea0de359SmrgAC_REQUIRE([XORG_CWARNFLAGS]) 92249418810dSmrg 9225ea0de359SmrgAC_ARG_ENABLE(strict-compilation, 9226ea0de359Smrg AS_HELP_STRING([--enable-strict-compilation], 9227ea0de359Smrg [Enable all warnings from compiler and make them errors (default: disabled)]), 9228ea0de359Smrg [STRICT_COMPILE=$enableval], [STRICT_COMPILE=no]) 9229ea0de359Smrgif test "x$STRICT_COMPILE" = "xyes"; then 9230ea0de359Smrg AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"]) 9231ea0de359Smrg AC_CHECK_DECL([__INTEL_COMPILER], [INTELCC="yes"], [INTELCC="no"]) 9232ea0de359Smrg if test "x$GCC" = xyes ; then 9233ea0de359Smrg STRICT_CFLAGS="-pedantic -Werror" 9234ea0de359Smrg elif test "x$SUNCC" = "xyes"; then 9235ea0de359Smrg STRICT_CFLAGS="-errwarn" 9236ea0de359Smrg elif test "x$INTELCC" = "xyes"; then 9237ea0de359Smrg STRICT_CFLAGS="-Werror" 9238ea0de359Smrg fi 92399418810dSmrgfi 9240ea0de359SmrgCWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 9241ea0de359SmrgAC_SUBST([CWARNFLAGS]) 9242ea0de359Smrg]) # XORG_STRICT_OPTION 92439bd41f2cSmrg 9244ea0de359Smrg# XORG_DEFAULT_OPTIONS 9245ea0de359Smrg# -------------------- 9246ea0de359Smrg# Minimum version: 1.3.0 92479bd41f2cSmrg# 9248ea0de359Smrg# Defines default options for X.Org modules. 9249ea0de359Smrg# 9250ea0de359SmrgAC_DEFUN([XORG_DEFAULT_OPTIONS], [ 9251ea0de359SmrgAC_REQUIRE([AC_PROG_INSTALL]) 9252ea0de359SmrgXORG_CWARNFLAGS 9253ea0de359SmrgXORG_STRICT_OPTION 9254ea0de359SmrgXORG_RELEASE_VERSION 9255ea0de359SmrgXORG_CHANGELOG 9256ea0de359SmrgXORG_INSTALL 9257ea0de359SmrgXORG_MANPAGE_SECTIONS 9258ea0de359Smrgm4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])], 9259ea0de359Smrg [AC_SUBST([AM_DEFAULT_VERBOSITY], [1])]) 9260ea0de359Smrg]) # XORG_DEFAULT_OPTIONS 92619bd41f2cSmrg 9262ea0de359Smrg# XORG_INSTALL() 9263ea0de359Smrg# ---------------- 9264ea0de359Smrg# Minimum version: 1.4.0 9265ea0de359Smrg# 9266ea0de359Smrg# Defines the variable INSTALL_CMD as the command to copy 9267ea0de359Smrg# INSTALL from $prefix/share/util-macros. 9268ea0de359Smrg# 9269ea0de359SmrgAC_DEFUN([XORG_INSTALL], [ 9270ea0de359SmrgAC_REQUIRE([PKG_PROG_PKG_CONFIG]) 9271ea0de359Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 9272ea0de359SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 9273ea0de359Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 9274ea0de359Smrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 9275ea0de359Smrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 9276ea0de359SmrgAC_SUBST([INSTALL_CMD]) 9277ea0de359Smrg]) # XORG_INSTALL 9278ea0de359Smrgdnl Copyright 2005 Red Hat, Inc 9279ea0de359Smrgdnl 9280ea0de359Smrgdnl Permission to use, copy, modify, distribute, and sell this software and its 9281ea0de359Smrgdnl documentation for any purpose is hereby granted without fee, provided that 9282ea0de359Smrgdnl the above copyright notice appear in all copies and that both that 9283ea0de359Smrgdnl copyright notice and this permission notice appear in supporting 9284ea0de359Smrgdnl documentation. 9285ea0de359Smrgdnl 9286ea0de359Smrgdnl The above copyright notice and this permission notice shall be included 9287ea0de359Smrgdnl in all copies or substantial portions of the Software. 9288ea0de359Smrgdnl 9289ea0de359Smrgdnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 9290ea0de359Smrgdnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 9291ea0de359Smrgdnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 9292ea0de359Smrgdnl IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR 9293ea0de359Smrgdnl OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 9294ea0de359Smrgdnl ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 9295ea0de359Smrgdnl OTHER DEALINGS IN THE SOFTWARE. 9296ea0de359Smrgdnl 9297ea0de359Smrgdnl Except as contained in this notice, the name of the copyright holders shall 9298ea0de359Smrgdnl not be used in advertising or otherwise to promote the sale, use or 9299ea0de359Smrgdnl other dealings in this Software without prior written authorization 9300ea0de359Smrgdnl from the copyright holders. 9301ea0de359Smrgdnl 93029bd41f2cSmrg 9303ea0de359Smrg# XORG_RELEASE_VERSION 9304ea0de359Smrg# -------------------- 9305ea0de359Smrg# Defines PACKAGE_VERSION_{MAJOR,MINOR,PATCHLEVEL} for modules to use. 9306ea0de359Smrg 9307ea0de359SmrgAC_DEFUN([XORG_RELEASE_VERSION],[ 9308ea0de359Smrg AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MAJOR], 9309ea0de359Smrg [`echo $PACKAGE_VERSION | cut -d . -f 1`], 9310ea0de359Smrg [Major version of this package]) 9311ea0de359Smrg PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 9312ea0de359Smrg if test "x$PVM" = "x"; then 9313ea0de359Smrg PVM="0" 9314ea0de359Smrg fi 9315ea0de359Smrg AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MINOR], 9316ea0de359Smrg [$PVM], 9317ea0de359Smrg [Minor version of this package]) 9318ea0de359Smrg PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 9319ea0de359Smrg if test "x$PVP" = "x"; then 9320ea0de359Smrg PVP="0" 9321ea0de359Smrg fi 9322ea0de359Smrg AC_DEFINE_UNQUOTED([PACKAGE_VERSION_PATCHLEVEL], 9323ea0de359Smrg [$PVP], 9324ea0de359Smrg [Patch version of this package]) 9325ea0de359Smrg]) 93269bd41f2cSmrg 9327ea0de359Smrg# XORG_CHANGELOG() 9328ea0de359Smrg# ---------------- 9329ea0de359Smrg# Minimum version: 1.2.0 9330ea0de359Smrg# 9331ea0de359Smrg# Defines the variable CHANGELOG_CMD as the command to generate 9332ea0de359Smrg# ChangeLog from git. 9333ea0de359Smrg# 9334ea0de359Smrg# 9335ea0de359SmrgAC_DEFUN([XORG_CHANGELOG], [ 9336ea0de359SmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 9337ea0de359Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 9338ea0de359Smrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 9339ea0de359Smrgecho 'git directory not found: installing possibly empty changelog.' >&2)" 9340ea0de359SmrgAC_SUBST([CHANGELOG_CMD]) 9341ea0de359Smrg]) # XORG_CHANGELOG 93429bd41f2cSmrg 9343ea0de359Smrgdnl Copyright 2005 Red Hat, Inc 9344ea0de359Smrgdnl 9345ea0de359Smrgdnl Permission to use, copy, modify, distribute, and sell this software and its 9346ea0de359Smrgdnl documentation for any purpose is hereby granted without fee, provided that 9347ea0de359Smrgdnl the above copyright notice appear in all copies and that both that 9348ea0de359Smrgdnl copyright notice and this permission notice appear in supporting 9349ea0de359Smrgdnl documentation. 9350ea0de359Smrgdnl 9351ea0de359Smrgdnl The above copyright notice and this permission notice shall be included 9352ea0de359Smrgdnl in all copies or substantial portions of the Software. 9353ea0de359Smrgdnl 9354ea0de359Smrgdnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 9355ea0de359Smrgdnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 9356ea0de359Smrgdnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 9357ea0de359Smrgdnl IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR 9358ea0de359Smrgdnl OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 9359ea0de359Smrgdnl ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 9360ea0de359Smrgdnl OTHER DEALINGS IN THE SOFTWARE. 9361ea0de359Smrgdnl 9362ea0de359Smrgdnl Except as contained in this notice, the name of the copyright holders shall 9363ea0de359Smrgdnl not be used in advertising or otherwise to promote the sale, use or 9364ea0de359Smrgdnl other dealings in this Software without prior written authorization 9365ea0de359Smrgdnl from the copyright holders. 9366ea0de359Smrgdnl 93679bd41f2cSmrg 9368ea0de359Smrg# XORG_DRIVER_CHECK_EXT() 9369ea0de359Smrg# -------------------------- 9370ea0de359Smrg# Checks for the $1 define in xorg-server.h (from the sdk). If it 9371ea0de359Smrg# is defined, then add $1 to $REQUIRED_MODULES. 93729bd41f2cSmrg 9373ea0de359SmrgAC_DEFUN([XORG_DRIVER_CHECK_EXT],[ 9374ea0de359Smrg SAVE_CFLAGS="$CFLAGS" 9375c4f7863aSmrg CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 9376ea0de359Smrg AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ 9377ea0de359Smrg#include "xorg-server.h" 9378ea0de359Smrg#if !defined $1 9379ea0de359Smrg#error $1 not defined 9380ea0de359Smrg#endif 9381ea0de359Smrg ]])], 9382ea0de359Smrg [_EXT_CHECK=yes], 9383ea0de359Smrg [_EXT_CHECK=no]) 9384ea0de359Smrg CFLAGS="$SAVE_CFLAGS" 9385ea0de359Smrg AC_MSG_CHECKING([if $1 is defined]) 9386ea0de359Smrg AC_MSG_RESULT([$_EXT_CHECK]) 9387ea0de359Smrg if test "$_EXT_CHECK" != no; then 9388ea0de359Smrg REQUIRED_MODULES="$REQUIRED_MODULES $2" 9389ea0de359Smrg fi 9390ea0de359Smrg]) 93919bd41f2cSmrg 9392ea0de359Smrg# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 9393ea0de359Smrg# 9394ea0de359Smrg# This file is free software; the Free Software Foundation 9395ea0de359Smrg# gives unlimited permission to copy and/or distribute it, 9396ea0de359Smrg# with or without modifications, as long as this notice is preserved. 93979bd41f2cSmrg 9398ea0de359Smrg# AM_AUTOMAKE_VERSION(VERSION) 9399ea0de359Smrg# ---------------------------- 9400ea0de359Smrg# Automake X.Y traces this macro to ensure aclocal.m4 has been 9401ea0de359Smrg# generated from the m4 files accompanying Automake X.Y. 9402ea0de359Smrg# (This private macro should not be called outside this file.) 9403ea0de359SmrgAC_DEFUN([AM_AUTOMAKE_VERSION], 9404c4f7863aSmrg[am__api_version='1.10' 9405ea0de359Smrgdnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to 9406ea0de359Smrgdnl require some minimum version. Point them to the right macro. 9407c4f7863aSmrgm4_if([$1], [1.10.2], [], 9408ea0de359Smrg [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl 9409ea0de359Smrg]) 94109bd41f2cSmrg 9411ea0de359Smrg# _AM_AUTOCONF_VERSION(VERSION) 9412ea0de359Smrg# ----------------------------- 9413ea0de359Smrg# aclocal traces this macro to find the Autoconf version. 9414ea0de359Smrg# This is a private macro too. Using m4_define simplifies 9415ea0de359Smrg# the logic in aclocal, which can simply ignore this definition. 9416ea0de359Smrgm4_define([_AM_AUTOCONF_VERSION], []) 9417ea0de359Smrg 9418ea0de359Smrg# AM_SET_CURRENT_AUTOMAKE_VERSION 9419ea0de359Smrg# ------------------------------- 9420ea0de359Smrg# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. 9421ea0de359Smrg# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. 9422ea0de359SmrgAC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 9423c4f7863aSmrg[AM_AUTOMAKE_VERSION([1.10.2])dnl 9424ea0de359Smrgm4_ifndef([AC_AUTOCONF_VERSION], 9425ea0de359Smrg [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 9426ea0de359Smrg_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) 9427ea0de359Smrg 9428ea0de359Smrg# AM_AUX_DIR_EXPAND -*- Autoconf -*- 9429ea0de359Smrg 9430ea0de359Smrg# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 94319bd41f2cSmrg# 9432ea0de359Smrg# This file is free software; the Free Software Foundation 9433ea0de359Smrg# gives unlimited permission to copy and/or distribute it, 9434ea0de359Smrg# with or without modifications, as long as this notice is preserved. 94359bd41f2cSmrg 9436ea0de359Smrg# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 9437ea0de359Smrg# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to 9438ea0de359Smrg# `$srcdir', `$srcdir/..', or `$srcdir/../..'. 9439ea0de359Smrg# 9440ea0de359Smrg# Of course, Automake must honor this variable whenever it calls a 9441ea0de359Smrg# tool from the auxiliary directory. The problem is that $srcdir (and 9442ea0de359Smrg# therefore $ac_aux_dir as well) can be either absolute or relative, 9443ea0de359Smrg# depending on how configure is run. This is pretty annoying, since 9444ea0de359Smrg# it makes $ac_aux_dir quite unusable in subdirectories: in the top 9445ea0de359Smrg# source directory, any form will work fine, but in subdirectories a 9446ea0de359Smrg# relative path needs to be adjusted first. 9447ea0de359Smrg# 9448ea0de359Smrg# $ac_aux_dir/missing 9449ea0de359Smrg# fails when called from a subdirectory if $ac_aux_dir is relative 9450ea0de359Smrg# $top_srcdir/$ac_aux_dir/missing 9451ea0de359Smrg# fails if $ac_aux_dir is absolute, 9452ea0de359Smrg# fails when called from a subdirectory in a VPATH build with 9453ea0de359Smrg# a relative $ac_aux_dir 9454ea0de359Smrg# 9455ea0de359Smrg# The reason of the latter failure is that $top_srcdir and $ac_aux_dir 9456ea0de359Smrg# are both prefixed by $srcdir. In an in-source build this is usually 9457ea0de359Smrg# harmless because $srcdir is `.', but things will broke when you 9458ea0de359Smrg# start a VPATH build or use an absolute $srcdir. 9459ea0de359Smrg# 9460ea0de359Smrg# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, 9461ea0de359Smrg# iff we strip the leading $srcdir from $ac_aux_dir. That would be: 9462ea0de359Smrg# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` 9463ea0de359Smrg# and then we would define $MISSING as 9464ea0de359Smrg# MISSING="\${SHELL} $am_aux_dir/missing" 9465ea0de359Smrg# This will work as long as MISSING is not called from configure, because 9466ea0de359Smrg# unfortunately $(top_srcdir) has no meaning in configure. 9467ea0de359Smrg# However there are other variables, like CC, which are often used in 9468ea0de359Smrg# configure, and could therefore not use this "fixed" $ac_aux_dir. 9469ea0de359Smrg# 9470ea0de359Smrg# Another solution, used here, is to always expand $ac_aux_dir to an 9471ea0de359Smrg# absolute PATH. The drawback is that using absolute paths prevent a 9472ea0de359Smrg# configured tree to be moved without reconfiguration. 94739bd41f2cSmrg 9474ea0de359SmrgAC_DEFUN([AM_AUX_DIR_EXPAND], 9475ea0de359Smrg[dnl Rely on autoconf to set up CDPATH properly. 9476ea0de359SmrgAC_PREREQ([2.50])dnl 9477ea0de359Smrg# expand $ac_aux_dir to an absolute path 9478ea0de359Smrgam_aux_dir=`cd $ac_aux_dir && pwd` 9479ea0de359Smrg]) 94809418810dSmrg 9481ea0de359Smrg# AM_CONDITIONAL -*- Autoconf -*- 94829bd41f2cSmrg 9483c4f7863aSmrg# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006 9484ea0de359Smrg# Free Software Foundation, Inc. 9485ea0de359Smrg# 9486ea0de359Smrg# This file is free software; the Free Software Foundation 9487ea0de359Smrg# gives unlimited permission to copy and/or distribute it, 9488ea0de359Smrg# with or without modifications, as long as this notice is preserved. 94899bd41f2cSmrg 9490c4f7863aSmrg# serial 8 94919bd41f2cSmrg 9492ea0de359Smrg# AM_CONDITIONAL(NAME, SHELL-CONDITION) 9493ea0de359Smrg# ------------------------------------- 9494ea0de359Smrg# Define a conditional. 9495ea0de359SmrgAC_DEFUN([AM_CONDITIONAL], 9496ea0de359Smrg[AC_PREREQ(2.52)dnl 9497ea0de359Smrg ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 9498ea0de359Smrg [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 9499ea0de359SmrgAC_SUBST([$1_TRUE])dnl 9500ea0de359SmrgAC_SUBST([$1_FALSE])dnl 9501ea0de359Smrg_AM_SUBST_NOTMAKE([$1_TRUE])dnl 9502ea0de359Smrg_AM_SUBST_NOTMAKE([$1_FALSE])dnl 9503ea0de359Smrgif $2; then 9504ea0de359Smrg $1_TRUE= 9505ea0de359Smrg $1_FALSE='#' 9506ea0de359Smrgelse 9507ea0de359Smrg $1_TRUE='#' 9508ea0de359Smrg $1_FALSE= 95099418810dSmrgfi 9510ea0de359SmrgAC_CONFIG_COMMANDS_PRE( 9511ea0de359Smrg[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then 9512ea0de359Smrg AC_MSG_ERROR([[conditional "$1" was never defined. 9513ea0de359SmrgUsually this means the macro was only invoked conditionally.]]) 9514ea0de359Smrgfi])]) 95159bd41f2cSmrg 9516c4f7863aSmrg# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 9517ea0de359Smrg# Free Software Foundation, Inc. 9518ea0de359Smrg# 9519ea0de359Smrg# This file is free software; the Free Software Foundation 9520ea0de359Smrg# gives unlimited permission to copy and/or distribute it, 9521ea0de359Smrg# with or without modifications, as long as this notice is preserved. 95229bd41f2cSmrg 9523c4f7863aSmrg# serial 9 95249bd41f2cSmrg 9525ea0de359Smrg# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be 9526ea0de359Smrg# written in clear, in which case automake, when reading aclocal.m4, 9527ea0de359Smrg# will think it sees a *use*, and therefore will trigger all it's 9528ea0de359Smrg# C support machinery. Also note that it means that autoscan, seeing 9529ea0de359Smrg# CC etc. in the Makefile, will ask for an AC_PROG_CC use... 9530ea0de359Smrg 9531ea0de359Smrg 9532ea0de359Smrg# _AM_DEPENDENCIES(NAME) 9533ea0de359Smrg# ---------------------- 9534ea0de359Smrg# See how the compiler implements dependency checking. 9535ea0de359Smrg# NAME is "CC", "CXX", "GCJ", or "OBJC". 9536ea0de359Smrg# We try a few techniques and use that to set a single cache variable. 95379418810dSmrg# 9538ea0de359Smrg# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was 9539ea0de359Smrg# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 9540ea0de359Smrg# dependency, and given that the user is not expected to run this macro, 9541ea0de359Smrg# just rely on AC_PROG_CC. 9542ea0de359SmrgAC_DEFUN([_AM_DEPENDENCIES], 9543ea0de359Smrg[AC_REQUIRE([AM_SET_DEPDIR])dnl 9544ea0de359SmrgAC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl 9545ea0de359SmrgAC_REQUIRE([AM_MAKE_INCLUDE])dnl 9546ea0de359SmrgAC_REQUIRE([AM_DEP_TRACK])dnl 95479418810dSmrg 9548ea0de359Smrgifelse([$1], CC, [depcc="$CC" am_compiler_list=], 9549ea0de359Smrg [$1], CXX, [depcc="$CXX" am_compiler_list=], 9550ea0de359Smrg [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 9551ea0de359Smrg [$1], UPC, [depcc="$UPC" am_compiler_list=], 9552ea0de359Smrg [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 9553ea0de359Smrg [depcc="$$1" am_compiler_list=]) 95549bd41f2cSmrg 9555ea0de359SmrgAC_CACHE_CHECK([dependency style of $depcc], 9556ea0de359Smrg [am_cv_$1_dependencies_compiler_type], 9557ea0de359Smrg[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 9558ea0de359Smrg # We make a subdir and do the tests there. Otherwise we can end up 9559ea0de359Smrg # making bogus files that we don't know about and never remove. For 9560ea0de359Smrg # instance it was reported that on HP-UX the gcc test will end up 9561ea0de359Smrg # making a dummy file named `D' -- because `-MD' means `put the output 9562ea0de359Smrg # in D'. 9563ea0de359Smrg mkdir conftest.dir 9564ea0de359Smrg # Copy depcomp to subdir because otherwise we won't find it if we're 9565ea0de359Smrg # using a relative directory. 9566ea0de359Smrg cp "$am_depcomp" conftest.dir 9567ea0de359Smrg cd conftest.dir 9568ea0de359Smrg # We will build objects and dependencies in a subdirectory because 9569ea0de359Smrg # it helps to detect inapplicable dependency modes. For instance 9570ea0de359Smrg # both Tru64's cc and ICC support -MD to output dependencies as a 9571ea0de359Smrg # side effect of compilation, but ICC will put the dependencies in 9572ea0de359Smrg # the current directory while Tru64 will put them in the object 9573ea0de359Smrg # directory. 9574ea0de359Smrg mkdir sub 95759418810dSmrg 9576ea0de359Smrg am_cv_$1_dependencies_compiler_type=none 9577ea0de359Smrg if test "$am_compiler_list" = ""; then 9578ea0de359Smrg am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` 9579ea0de359Smrg fi 9580ea0de359Smrg for depmode in $am_compiler_list; do 9581ea0de359Smrg # Setup a source with many dependencies, because some compilers 9582ea0de359Smrg # like to wrap large dependency lists on column 80 (with \), and 9583ea0de359Smrg # we should not choose a depcomp mode which is confused by this. 9584ea0de359Smrg # 9585ea0de359Smrg # We need to recreate these files for each test, as the compiler may 9586ea0de359Smrg # overwrite some of them when testing with obscure command lines. 9587ea0de359Smrg # This happens at least with the AIX C compiler. 9588ea0de359Smrg : > sub/conftest.c 9589ea0de359Smrg for i in 1 2 3 4 5 6; do 9590ea0de359Smrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 9591ea0de359Smrg # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 9592ea0de359Smrg # Solaris 8's {/usr,}/bin/sh. 9593ea0de359Smrg touch sub/conftst$i.h 9594ea0de359Smrg done 9595ea0de359Smrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 9596ea0de359Smrg 9597ea0de359Smrg case $depmode in 9598ea0de359Smrg nosideeffect) 9599ea0de359Smrg # after this tag, mechanisms are not by side-effect, so they'll 9600ea0de359Smrg # only be used when explicitly requested 9601ea0de359Smrg if test "x$enable_dependency_tracking" = xyes; then 9602ea0de359Smrg continue 9603ea0de359Smrg else 9604ea0de359Smrg break 9605ea0de359Smrg fi 9606ea0de359Smrg ;; 9607ea0de359Smrg none) break ;; 9608ea0de359Smrg esac 9609c4f7863aSmrg # We check with `-c' and `-o' for the sake of the "dashmstdout" 9610c4f7863aSmrg # mode. It turns out that the SunPro C++ compiler does not properly 9611c4f7863aSmrg # handle `-M -o', and we need to detect this. 9612ea0de359Smrg if depmode=$depmode \ 9613c4f7863aSmrg source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 9614ea0de359Smrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 9615c4f7863aSmrg $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 9616ea0de359Smrg >/dev/null 2>conftest.err && 9617ea0de359Smrg grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 9618ea0de359Smrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 9619c4f7863aSmrg grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 9620ea0de359Smrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 9621ea0de359Smrg # icc doesn't choke on unknown options, it will just issue warnings 9622ea0de359Smrg # or remarks (even with -Werror). So we grep stderr for any message 9623ea0de359Smrg # that says an option was ignored or not supported. 9624ea0de359Smrg # When given -MP, icc 7.0 and 7.1 complain thusly: 9625ea0de359Smrg # icc: Command line warning: ignoring option '-M'; no argument required 9626ea0de359Smrg # The diagnosis changed in icc 8.0: 9627ea0de359Smrg # icc: Command line remark: option '-MP' not supported 9628ea0de359Smrg if (grep 'ignoring option' conftest.err || 9629ea0de359Smrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 9630ea0de359Smrg am_cv_$1_dependencies_compiler_type=$depmode 9631ea0de359Smrg break 9632ea0de359Smrg fi 9633ea0de359Smrg fi 9634ea0de359Smrg done 9635ea0de359Smrg 9636ea0de359Smrg cd .. 9637ea0de359Smrg rm -rf conftest.dir 96389418810dSmrgelse 9639ea0de359Smrg am_cv_$1_dependencies_compiler_type=none 96409418810dSmrgfi 9641ea0de359Smrg]) 9642ea0de359SmrgAC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) 9643ea0de359SmrgAM_CONDITIONAL([am__fastdep$1], [ 9644ea0de359Smrg test "x$enable_dependency_tracking" != xno \ 9645ea0de359Smrg && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) 9646ea0de359Smrg]) 96479bd41f2cSmrg 96489418810dSmrg 9649ea0de359Smrg# AM_SET_DEPDIR 9650ea0de359Smrg# ------------- 9651ea0de359Smrg# Choose a directory name for dependency files. 9652ea0de359Smrg# This macro is AC_REQUIREd in _AM_DEPENDENCIES 9653ea0de359SmrgAC_DEFUN([AM_SET_DEPDIR], 9654ea0de359Smrg[AC_REQUIRE([AM_SET_LEADING_DOT])dnl 9655ea0de359SmrgAC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl 9656ea0de359Smrg]) 9657ea0de359Smrg 9658ea0de359Smrg 9659ea0de359Smrg# AM_DEP_TRACK 9660ea0de359Smrg# ------------ 9661ea0de359SmrgAC_DEFUN([AM_DEP_TRACK], 9662ea0de359Smrg[AC_ARG_ENABLE(dependency-tracking, 9663ea0de359Smrg[ --disable-dependency-tracking speeds up one-time build 9664ea0de359Smrg --enable-dependency-tracking do not reject slow dependency extractors]) 9665ea0de359Smrgif test "x$enable_dependency_tracking" != xno; then 9666ea0de359Smrg am_depcomp="$ac_aux_dir/depcomp" 9667ea0de359Smrg AMDEPBACKSLASH='\' 96689418810dSmrgfi 9669ea0de359SmrgAM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 9670ea0de359SmrgAC_SUBST([AMDEPBACKSLASH])dnl 9671ea0de359Smrg_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl 9672ea0de359Smrg]) 96739bd41f2cSmrg 9674ea0de359Smrg# Generate code to set up dependency tracking. -*- Autoconf -*- 9675ea0de359Smrg 9676ea0de359Smrg# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 9677ea0de359Smrg# Free Software Foundation, Inc. 96789418810dSmrg# 9679ea0de359Smrg# This file is free software; the Free Software Foundation 9680ea0de359Smrg# gives unlimited permission to copy and/or distribute it, 9681ea0de359Smrg# with or without modifications, as long as this notice is preserved. 96829418810dSmrg 9683c4f7863aSmrg#serial 4 9684ea0de359Smrg 9685ea0de359Smrg# _AM_OUTPUT_DEPENDENCY_COMMANDS 9686ea0de359Smrg# ------------------------------ 9687ea0de359SmrgAC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 9688c4f7863aSmrg[# Autoconf 2.62 quotes --file arguments for eval, but not when files 9689c4f7863aSmrg# are listed without --file. Let's play safe and only enable the eval 9690c4f7863aSmrg# if we detect the quoting. 9691c4f7863aSmrgcase $CONFIG_FILES in 9692c4f7863aSmrg*\'*) eval set x "$CONFIG_FILES" ;; 9693c4f7863aSmrg*) set x $CONFIG_FILES ;; 9694c4f7863aSmrgesac 9695c4f7863aSmrgshift 9696c4f7863aSmrgfor mf 9697c4f7863aSmrgdo 9698c4f7863aSmrg # Strip MF so we end up with the name of the file. 9699c4f7863aSmrg mf=`echo "$mf" | sed -e 's/:.*$//'` 9700c4f7863aSmrg # Check whether this is an Automake generated Makefile or not. 9701c4f7863aSmrg # We used to match only the files named `Makefile.in', but 9702c4f7863aSmrg # some people rename them; so instead we look at the file content. 9703c4f7863aSmrg # Grep'ing the first line is not enough: some people post-process 9704c4f7863aSmrg # each Makefile.in and add a new line on top of each file to say so. 9705c4f7863aSmrg # Grep'ing the whole file is not good either: AIX grep has a line 9706c4f7863aSmrg # limit of 2048, but all sed's we know have understand at least 4000. 9707c4f7863aSmrg if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 9708c4f7863aSmrg dirpart=`AS_DIRNAME("$mf")` 9709c4f7863aSmrg else 9710c4f7863aSmrg continue 9711c4f7863aSmrg fi 9712c4f7863aSmrg # Extract the definition of DEPDIR, am__include, and am__quote 9713c4f7863aSmrg # from the Makefile without running `make'. 9714c4f7863aSmrg DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 9715c4f7863aSmrg test -z "$DEPDIR" && continue 9716c4f7863aSmrg am__include=`sed -n 's/^am__include = //p' < "$mf"` 9717c4f7863aSmrg test -z "am__include" && continue 9718c4f7863aSmrg am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 9719c4f7863aSmrg # When using ansi2knr, U may be empty or an underscore; expand it 9720c4f7863aSmrg U=`sed -n 's/^U = //p' < "$mf"` 9721c4f7863aSmrg # Find all dependency output files, they are included files with 9722c4f7863aSmrg # $(DEPDIR) in their names. We invoke sed twice because it is the 9723c4f7863aSmrg # simplest approach to changing $(DEPDIR) to its actual value in the 9724c4f7863aSmrg # expansion. 9725c4f7863aSmrg for file in `sed -n " 9726c4f7863aSmrg s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 9727c4f7863aSmrg sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 9728c4f7863aSmrg # Make sure the directory exists. 9729c4f7863aSmrg test -f "$dirpart/$file" && continue 9730c4f7863aSmrg fdir=`AS_DIRNAME(["$file"])` 9731c4f7863aSmrg AS_MKDIR_P([$dirpart/$fdir]) 9732c4f7863aSmrg # echo "creating $dirpart/$file" 9733c4f7863aSmrg echo '# dummy' > "$dirpart/$file" 9734ea0de359Smrg done 9735c4f7863aSmrgdone 9736ea0de359Smrg])# _AM_OUTPUT_DEPENDENCY_COMMANDS 97379418810dSmrg 97389418810dSmrg 9739ea0de359Smrg# AM_OUTPUT_DEPENDENCY_COMMANDS 9740ea0de359Smrg# ----------------------------- 9741ea0de359Smrg# This macro should only be invoked once -- use via AC_REQUIRE. 97429418810dSmrg# 9743ea0de359Smrg# This code is only required when automatic dependency tracking 9744ea0de359Smrg# is enabled. FIXME. This creates each `.P' file that we will 9745ea0de359Smrg# need in order to bootstrap the dependency handling code. 9746ea0de359SmrgAC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], 9747ea0de359Smrg[AC_CONFIG_COMMANDS([depfiles], 9748ea0de359Smrg [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], 9749ea0de359Smrg [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) 9750ea0de359Smrg]) 9751ea0de359Smrg 9752ea0de359Smrg# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 9753ea0de359Smrg# Free Software Foundation, Inc. 97549418810dSmrg# 9755ea0de359Smrg# This file is free software; the Free Software Foundation 9756ea0de359Smrg# gives unlimited permission to copy and/or distribute it, 9757ea0de359Smrg# with or without modifications, as long as this notice is preserved. 9758ea0de359Smrg 9759ea0de359Smrg# serial 8 9760ea0de359Smrg 9761ea0de359Smrg# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. 9762ea0de359SmrgAU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) 9763ea0de359Smrg 9764ea0de359Smrg# Do all the work for Automake. -*- Autoconf -*- 9765ea0de359Smrg 9766ea0de359Smrg# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 9767c4f7863aSmrg# 2005, 2006, 2008 Free Software Foundation, Inc. 97689418810dSmrg# 9769ea0de359Smrg# This file is free software; the Free Software Foundation 9770ea0de359Smrg# gives unlimited permission to copy and/or distribute it, 9771ea0de359Smrg# with or without modifications, as long as this notice is preserved. 97729418810dSmrg 9773c4f7863aSmrg# serial 13 9774ea0de359Smrg 9775ea0de359Smrg# This macro actually does too much. Some checks are only needed if 9776ea0de359Smrg# your package does certain things. But this isn't really a big deal. 9777ea0de359Smrg 9778ea0de359Smrg# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) 9779ea0de359Smrg# AM_INIT_AUTOMAKE([OPTIONS]) 9780ea0de359Smrg# ----------------------------------------------- 9781ea0de359Smrg# The call with PACKAGE and VERSION arguments is the old style 9782ea0de359Smrg# call (pre autoconf-2.50), which is being phased out. PACKAGE 9783ea0de359Smrg# and VERSION should now be passed to AC_INIT and removed from 9784ea0de359Smrg# the call to AM_INIT_AUTOMAKE. 9785ea0de359Smrg# We support both call styles for the transition. After 9786ea0de359Smrg# the next Automake release, Autoconf can make the AC_INIT 9787ea0de359Smrg# arguments mandatory, and then we can depend on a new Autoconf 9788ea0de359Smrg# release and drop the old call support. 9789ea0de359SmrgAC_DEFUN([AM_INIT_AUTOMAKE], 9790c4f7863aSmrg[AC_PREREQ([2.60])dnl 9791ea0de359Smrgdnl Autoconf wants to disallow AM_ names. We explicitly allow 9792ea0de359Smrgdnl the ones we care about. 9793ea0de359Smrgm4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl 9794ea0de359SmrgAC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 9795ea0de359SmrgAC_REQUIRE([AC_PROG_INSTALL])dnl 9796ea0de359Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then 9797ea0de359Smrg # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 9798ea0de359Smrg # is not polluted with repeated "-I." 9799ea0de359Smrg AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl 9800ea0de359Smrg # test to see if srcdir already configured 9801ea0de359Smrg if test -f $srcdir/config.status; then 9802ea0de359Smrg AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 9803ea0de359Smrg fi 98049bd41f2cSmrgfi 98059bd41f2cSmrg 9806ea0de359Smrg# test whether we have cygpath 9807ea0de359Smrgif test -z "$CYGPATH_W"; then 9808ea0de359Smrg if (cygpath --version) >/dev/null 2>/dev/null; then 9809ea0de359Smrg CYGPATH_W='cygpath -w' 9810ea0de359Smrg else 9811ea0de359Smrg CYGPATH_W=echo 9812ea0de359Smrg fi 9813ea0de359Smrgfi 9814ea0de359SmrgAC_SUBST([CYGPATH_W]) 9815ea0de359Smrg 9816ea0de359Smrg# Define the identity of the package. 9817ea0de359Smrgdnl Distinguish between old-style and new-style calls. 9818ea0de359Smrgm4_ifval([$2], 9819ea0de359Smrg[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 9820ea0de359Smrg AC_SUBST([PACKAGE], [$1])dnl 9821ea0de359Smrg AC_SUBST([VERSION], [$2])], 9822ea0de359Smrg[_AM_SET_OPTIONS([$1])dnl 9823ea0de359Smrgdnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. 9824ea0de359Smrgm4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, 9825ea0de359Smrg [m4_fatal([AC_INIT should be called with package and version arguments])])dnl 9826ea0de359Smrg AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl 9827ea0de359Smrg AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl 9828ea0de359Smrg 9829ea0de359Smrg_AM_IF_OPTION([no-define],, 9830ea0de359Smrg[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) 9831ea0de359Smrg AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl 9832ea0de359Smrg 9833ea0de359Smrg# Some tools Automake needs. 9834ea0de359SmrgAC_REQUIRE([AM_SANITY_CHECK])dnl 9835ea0de359SmrgAC_REQUIRE([AC_ARG_PROGRAM])dnl 9836ea0de359SmrgAM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) 9837ea0de359SmrgAM_MISSING_PROG(AUTOCONF, autoconf) 9838ea0de359SmrgAM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) 9839ea0de359SmrgAM_MISSING_PROG(AUTOHEADER, autoheader) 9840ea0de359SmrgAM_MISSING_PROG(MAKEINFO, makeinfo) 9841c4f7863aSmrgAM_PROG_INSTALL_SH 9842c4f7863aSmrgAM_PROG_INSTALL_STRIP 9843ea0de359SmrgAC_REQUIRE([AM_PROG_MKDIR_P])dnl 9844ea0de359Smrg# We need awk for the "check" target. The system "awk" is bad on 9845ea0de359Smrg# some platforms. 9846ea0de359SmrgAC_REQUIRE([AC_PROG_AWK])dnl 9847ea0de359SmrgAC_REQUIRE([AC_PROG_MAKE_SET])dnl 9848ea0de359SmrgAC_REQUIRE([AM_SET_LEADING_DOT])dnl 9849ea0de359Smrg_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], 9850c4f7863aSmrg [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], 9851c4f7863aSmrg [_AM_PROG_TAR([v7])])]) 9852ea0de359Smrg_AM_IF_OPTION([no-dependencies],, 9853ea0de359Smrg[AC_PROVIDE_IFELSE([AC_PROG_CC], 9854c4f7863aSmrg [_AM_DEPENDENCIES(CC)], 9855c4f7863aSmrg [define([AC_PROG_CC], 9856c4f7863aSmrg defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl 9857ea0de359SmrgAC_PROVIDE_IFELSE([AC_PROG_CXX], 9858c4f7863aSmrg [_AM_DEPENDENCIES(CXX)], 9859c4f7863aSmrg [define([AC_PROG_CXX], 9860c4f7863aSmrg defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl 9861ea0de359SmrgAC_PROVIDE_IFELSE([AC_PROG_OBJC], 9862c4f7863aSmrg [_AM_DEPENDENCIES(OBJC)], 9863c4f7863aSmrg [define([AC_PROG_OBJC], 9864c4f7863aSmrg defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl 9865ea0de359Smrg]) 9866ea0de359Smrg]) 9867ea0de359Smrg 9868ea0de359Smrg 9869ea0de359Smrg# When config.status generates a header, we must update the stamp-h file. 9870ea0de359Smrg# This file resides in the same directory as the config header 9871ea0de359Smrg# that is generated. The stamp files are numbered to have different names. 9872ea0de359Smrg 9873ea0de359Smrg# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the 9874ea0de359Smrg# loop where config.status creates the headers, so we can generate 9875ea0de359Smrg# our stamp files there. 9876ea0de359SmrgAC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], 9877ea0de359Smrg[# Compute $1's index in $config_headers. 9878ea0de359Smrg_am_arg=$1 9879ea0de359Smrg_am_stamp_count=1 9880ea0de359Smrgfor _am_header in $config_headers :; do 9881ea0de359Smrg case $_am_header in 9882ea0de359Smrg $_am_arg | $_am_arg:* ) 9883ea0de359Smrg break ;; 9884ea0de359Smrg * ) 9885ea0de359Smrg _am_stamp_count=`expr $_am_stamp_count + 1` ;; 9886ea0de359Smrg esac 9887ea0de359Smrgdone 9888ea0de359Smrgecho "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) 9889ea0de359Smrg 9890c4f7863aSmrg# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 98919418810dSmrg# 9892ea0de359Smrg# This file is free software; the Free Software Foundation 9893ea0de359Smrg# gives unlimited permission to copy and/or distribute it, 9894ea0de359Smrg# with or without modifications, as long as this notice is preserved. 9895ea0de359Smrg 9896ea0de359Smrg# AM_PROG_INSTALL_SH 9897ea0de359Smrg# ------------------ 9898ea0de359Smrg# Define $install_sh. 9899ea0de359SmrgAC_DEFUN([AM_PROG_INSTALL_SH], 9900ea0de359Smrg[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 9901c4f7863aSmrginstall_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 9902ea0de359SmrgAC_SUBST(install_sh)]) 99039418810dSmrg 9904ea0de359Smrg# Copyright (C) 2003, 2005 Free Software Foundation, Inc. 99059418810dSmrg# 9906ea0de359Smrg# This file is free software; the Free Software Foundation 9907ea0de359Smrg# gives unlimited permission to copy and/or distribute it, 9908ea0de359Smrg# with or without modifications, as long as this notice is preserved. 9909ea0de359Smrg 9910ea0de359Smrg# serial 2 9911ea0de359Smrg 9912ea0de359Smrg# Check whether the underlying file-system supports filenames 9913ea0de359Smrg# with a leading dot. For instance MS-DOS doesn't. 9914ea0de359SmrgAC_DEFUN([AM_SET_LEADING_DOT], 9915ea0de359Smrg[rm -rf .tst 2>/dev/null 9916ea0de359Smrgmkdir .tst 2>/dev/null 9917ea0de359Smrgif test -d .tst; then 9918ea0de359Smrg am__leading_dot=. 9919ea0de359Smrgelse 9920ea0de359Smrg am__leading_dot=_ 99219418810dSmrgfi 9922ea0de359Smrgrmdir .tst 2>/dev/null 9923ea0de359SmrgAC_SUBST([am__leading_dot])]) 99249418810dSmrg 9925ea0de359Smrg# Add --enable-maintainer-mode option to configure. -*- Autoconf -*- 9926ea0de359Smrg# From Jim Meyering 9927ea0de359Smrg 9928c4f7863aSmrg# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005 9929ea0de359Smrg# Free Software Foundation, Inc. 99309418810dSmrg# 9931ea0de359Smrg# This file is free software; the Free Software Foundation 9932ea0de359Smrg# gives unlimited permission to copy and/or distribute it, 9933ea0de359Smrg# with or without modifications, as long as this notice is preserved. 9934ea0de359Smrg 9935c4f7863aSmrg# serial 4 9936ea0de359Smrg 9937ea0de359SmrgAC_DEFUN([AM_MAINTAINER_MODE], 9938c4f7863aSmrg[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) 9939c4f7863aSmrg dnl maintainer-mode is disabled by default 9940c4f7863aSmrg AC_ARG_ENABLE(maintainer-mode, 9941c4f7863aSmrg[ --enable-maintainer-mode enable make rules and dependencies not useful 9942ea0de359Smrg (and sometimes confusing) to the casual installer], 9943c4f7863aSmrg USE_MAINTAINER_MODE=$enableval, 9944c4f7863aSmrg USE_MAINTAINER_MODE=no) 9945ea0de359Smrg AC_MSG_RESULT([$USE_MAINTAINER_MODE]) 9946c4f7863aSmrg AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes]) 9947ea0de359Smrg MAINT=$MAINTAINER_MODE_TRUE 9948c4f7863aSmrg AC_SUBST(MAINT)dnl 9949ea0de359Smrg] 9950ea0de359Smrg) 9951ea0de359Smrg 9952ea0de359SmrgAU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) 9953ea0de359Smrg 9954ea0de359Smrg# Check to see how 'make' treats includes. -*- Autoconf -*- 9955ea0de359Smrg 9956c4f7863aSmrg# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. 99579418810dSmrg# 9958ea0de359Smrg# This file is free software; the Free Software Foundation 9959ea0de359Smrg# gives unlimited permission to copy and/or distribute it, 9960ea0de359Smrg# with or without modifications, as long as this notice is preserved. 9961ea0de359Smrg 9962c4f7863aSmrg# serial 3 9963ea0de359Smrg 9964ea0de359Smrg# AM_MAKE_INCLUDE() 9965ea0de359Smrg# ----------------- 9966ea0de359Smrg# Check to see how make treats includes. 9967ea0de359SmrgAC_DEFUN([AM_MAKE_INCLUDE], 9968ea0de359Smrg[am_make=${MAKE-make} 9969ea0de359Smrgcat > confinc << 'END' 9970ea0de359Smrgam__doit: 9971c4f7863aSmrg @echo done 9972ea0de359Smrg.PHONY: am__doit 9973ea0de359SmrgEND 9974ea0de359Smrg# If we don't find an include directive, just comment out the code. 9975ea0de359SmrgAC_MSG_CHECKING([for style of include used by $am_make]) 9976ea0de359Smrgam__include="#" 9977ea0de359Smrgam__quote= 9978ea0de359Smrg_am_result=none 9979ea0de359Smrg# First try GNU make style include. 9980ea0de359Smrgecho "include confinc" > confmf 9981c4f7863aSmrg# We grep out `Entering directory' and `Leaving directory' 9982c4f7863aSmrg# messages which can occur if `w' ends up in MAKEFLAGS. 9983c4f7863aSmrg# In particular we don't look at `^make:' because GNU make might 9984c4f7863aSmrg# be invoked under some other name (usually "gmake"), in which 9985c4f7863aSmrg# case it prints its new name instead of `make'. 9986c4f7863aSmrgif test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 9987c4f7863aSmrg am__include=include 9988c4f7863aSmrg am__quote= 9989c4f7863aSmrg _am_result=GNU 9990c4f7863aSmrgfi 9991ea0de359Smrg# Now try BSD make style include. 9992ea0de359Smrgif test "$am__include" = "#"; then 9993ea0de359Smrg echo '.include "confinc"' > confmf 9994c4f7863aSmrg if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 9995c4f7863aSmrg am__include=.include 9996c4f7863aSmrg am__quote="\"" 9997c4f7863aSmrg _am_result=BSD 9998c4f7863aSmrg fi 99999418810dSmrgfi 10000ea0de359SmrgAC_SUBST([am__include]) 10001ea0de359SmrgAC_SUBST([am__quote]) 10002ea0de359SmrgAC_MSG_RESULT([$_am_result]) 10003ea0de359Smrgrm -f confinc confmf 10004ea0de359Smrg]) 100059bd41f2cSmrg 10006ea0de359Smrg# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 10007ea0de359Smrg 10008c4f7863aSmrg# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005 10009ea0de359Smrg# Free Software Foundation, Inc. 100109418810dSmrg# 10011ea0de359Smrg# This file is free software; the Free Software Foundation 10012ea0de359Smrg# gives unlimited permission to copy and/or distribute it, 10013ea0de359Smrg# with or without modifications, as long as this notice is preserved. 100149bd41f2cSmrg 10015c4f7863aSmrg# serial 5 10016ea0de359Smrg 10017ea0de359Smrg# AM_MISSING_PROG(NAME, PROGRAM) 10018ea0de359Smrg# ------------------------------ 10019ea0de359SmrgAC_DEFUN([AM_MISSING_PROG], 10020ea0de359Smrg[AC_REQUIRE([AM_MISSING_HAS_RUN]) 10021ea0de359Smrg$1=${$1-"${am_missing_run}$2"} 10022ea0de359SmrgAC_SUBST($1)]) 10023ea0de359Smrg 10024ea0de359Smrg 10025ea0de359Smrg# AM_MISSING_HAS_RUN 10026ea0de359Smrg# ------------------ 10027ea0de359Smrg# Define MISSING if not defined so far and test if it supports --run. 10028ea0de359Smrg# If it does, set am_missing_run to use it, otherwise, to nothing. 10029ea0de359SmrgAC_DEFUN([AM_MISSING_HAS_RUN], 10030ea0de359Smrg[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 10031ea0de359SmrgAC_REQUIRE_AUX_FILE([missing])dnl 10032c4f7863aSmrgtest x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 10033ea0de359Smrg# Use eval to expand $SHELL 10034ea0de359Smrgif eval "$MISSING --run true"; then 10035ea0de359Smrg am_missing_run="$MISSING --run " 100369bd41f2cSmrgelse 10037ea0de359Smrg am_missing_run= 10038ea0de359Smrg AC_MSG_WARN([`missing' script is too old or missing]) 100399bd41f2cSmrgfi 10040ea0de359Smrg]) 100419bd41f2cSmrg 10042ea0de359Smrg# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 100439bd41f2cSmrg# 10044ea0de359Smrg# This file is free software; the Free Software Foundation 10045ea0de359Smrg# gives unlimited permission to copy and/or distribute it, 10046ea0de359Smrg# with or without modifications, as long as this notice is preserved. 10047ea0de359Smrg 10048ea0de359Smrg# AM_PROG_MKDIR_P 10049ea0de359Smrg# --------------- 10050ea0de359Smrg# Check for `mkdir -p'. 10051ea0de359SmrgAC_DEFUN([AM_PROG_MKDIR_P], 10052ea0de359Smrg[AC_PREREQ([2.60])dnl 10053ea0de359SmrgAC_REQUIRE([AC_PROG_MKDIR_P])dnl 10054ea0de359Smrgdnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, 10055ea0de359Smrgdnl while keeping a definition of mkdir_p for backward compatibility. 10056ea0de359Smrgdnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. 10057ea0de359Smrgdnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of 10058ea0de359Smrgdnl Makefile.ins that do not define MKDIR_P, so we do our own 10059ea0de359Smrgdnl adjustment using top_builddir (which is defined more often than 10060ea0de359Smrgdnl MKDIR_P). 10061ea0de359SmrgAC_SUBST([mkdir_p], ["$MKDIR_P"])dnl 10062ea0de359Smrgcase $mkdir_p in 10063ea0de359Smrg [[\\/$]]* | ?:[[\\/]]*) ;; 10064ea0de359Smrg */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 10065ea0de359Smrgesac 10066ea0de359Smrg]) 10067ea0de359Smrg 10068ea0de359Smrg# Helper functions for option handling. -*- Autoconf -*- 10069ea0de359Smrg 10070ea0de359Smrg# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc. 100719418810dSmrg# 10072ea0de359Smrg# This file is free software; the Free Software Foundation 10073ea0de359Smrg# gives unlimited permission to copy and/or distribute it, 10074ea0de359Smrg# with or without modifications, as long as this notice is preserved. 100759bd41f2cSmrg 10076ea0de359Smrg# serial 4 100779bd41f2cSmrg 10078ea0de359Smrg# _AM_MANGLE_OPTION(NAME) 10079ea0de359Smrg# ----------------------- 10080ea0de359SmrgAC_DEFUN([_AM_MANGLE_OPTION], 10081ea0de359Smrg[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) 100829bd41f2cSmrg 10083ea0de359Smrg# _AM_SET_OPTION(NAME) 10084ea0de359Smrg# ------------------------------ 10085ea0de359Smrg# Set option NAME. Presently that only means defining a flag for this option. 10086ea0de359SmrgAC_DEFUN([_AM_SET_OPTION], 10087ea0de359Smrg[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) 100889bd41f2cSmrg 10089ea0de359Smrg# _AM_SET_OPTIONS(OPTIONS) 10090ea0de359Smrg# ---------------------------------- 10091ea0de359Smrg# OPTIONS is a space-separated list of Automake options. 10092ea0de359SmrgAC_DEFUN([_AM_SET_OPTIONS], 10093ea0de359Smrg[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) 100949bd41f2cSmrg 10095ea0de359Smrg# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) 10096ea0de359Smrg# ------------------------------------------- 10097ea0de359Smrg# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 10098ea0de359SmrgAC_DEFUN([_AM_IF_OPTION], 10099ea0de359Smrg[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 101009bd41f2cSmrg 10101ea0de359Smrg# Check to make sure that the build environment is sane. -*- Autoconf -*- 101029bd41f2cSmrg 10103c4f7863aSmrg# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 10104ea0de359Smrg# Free Software Foundation, Inc. 101059418810dSmrg# 10106ea0de359Smrg# This file is free software; the Free Software Foundation 10107ea0de359Smrg# gives unlimited permission to copy and/or distribute it, 10108ea0de359Smrg# with or without modifications, as long as this notice is preserved. 10109ea0de359Smrg 10110c4f7863aSmrg# serial 4 10111ea0de359Smrg 10112ea0de359Smrg# AM_SANITY_CHECK 10113ea0de359Smrg# --------------- 10114ea0de359SmrgAC_DEFUN([AM_SANITY_CHECK], 10115ea0de359Smrg[AC_MSG_CHECKING([whether build environment is sane]) 10116ea0de359Smrg# Just in case 10117ea0de359Smrgsleep 1 10118ea0de359Smrgecho timestamp > conftest.file 10119ea0de359Smrg# Do `set' in a subshell so we don't clobber the current shell's 10120ea0de359Smrg# arguments. Must try -L first in case configure is actually a 10121ea0de359Smrg# symlink; some systems play weird games with the mod time of symlinks 10122ea0de359Smrg# (eg FreeBSD returns the mod time of the symlink's containing 10123ea0de359Smrg# directory). 10124ea0de359Smrgif ( 10125c4f7863aSmrg set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 10126ea0de359Smrg if test "$[*]" = "X"; then 10127ea0de359Smrg # -L didn't work. 10128c4f7863aSmrg set X `ls -t $srcdir/configure conftest.file` 10129ea0de359Smrg fi 10130ea0de359Smrg rm -f conftest.file 10131ea0de359Smrg if test "$[*]" != "X $srcdir/configure conftest.file" \ 10132ea0de359Smrg && test "$[*]" != "X conftest.file $srcdir/configure"; then 10133ea0de359Smrg 10134ea0de359Smrg # If neither matched, then we have a broken ls. This can happen 10135ea0de359Smrg # if, for instance, CONFIG_SHELL is bash and it inherits a 10136ea0de359Smrg # broken ls alias from the environment. This has actually 10137ea0de359Smrg # happened. Such a system could not be considered "sane". 10138ea0de359Smrg AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 10139ea0de359Smrgalias in your environment]) 10140ea0de359Smrg fi 10141ea0de359Smrg 10142ea0de359Smrg test "$[2]" = conftest.file 10143ea0de359Smrg ) 10144ea0de359Smrgthen 10145ea0de359Smrg # Ok. 10146ea0de359Smrg : 101479bd41f2cSmrgelse 10148ea0de359Smrg AC_MSG_ERROR([newly created file is older than distributed files! 10149ea0de359SmrgCheck your system clock]) 101509bd41f2cSmrgfi 10151ea0de359SmrgAC_MSG_RESULT(yes)]) 101529bd41f2cSmrg 10153ea0de359Smrg# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 10154ea0de359Smrg# 10155ea0de359Smrg# This file is free software; the Free Software Foundation 10156ea0de359Smrg# gives unlimited permission to copy and/or distribute it, 10157ea0de359Smrg# with or without modifications, as long as this notice is preserved. 10158ea0de359Smrg 10159ea0de359Smrg# AM_PROG_INSTALL_STRIP 10160ea0de359Smrg# --------------------- 10161ea0de359Smrg# One issue with vendor `install' (even GNU) is that you can't 10162ea0de359Smrg# specify the program used to strip binaries. This is especially 10163ea0de359Smrg# annoying in cross-compiling environments, where the build's strip 10164ea0de359Smrg# is unlikely to handle the host's binaries. 10165ea0de359Smrg# Fortunately install-sh will honor a STRIPPROG variable, so we 10166ea0de359Smrg# always use install-sh in `make install-strip', and initialize 10167ea0de359Smrg# STRIPPROG with the value of the STRIP variable (set by the user). 10168ea0de359SmrgAC_DEFUN([AM_PROG_INSTALL_STRIP], 10169ea0de359Smrg[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 10170ea0de359Smrg# Installed binaries are usually stripped using `strip' when the user 10171ea0de359Smrg# run `make install-strip'. However `strip' might not be the right 10172ea0de359Smrg# tool to use in cross-compilation environments, therefore Automake 10173ea0de359Smrg# will honor the `STRIP' environment variable to overrule this program. 10174ea0de359Smrgdnl Don't test for $cross_compiling = yes, because it might be `maybe'. 10175ea0de359Smrgif test "$cross_compiling" != no; then 10176ea0de359Smrg AC_CHECK_TOOL([STRIP], [strip], :) 101779bd41f2cSmrgfi 10178ea0de359SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 10179ea0de359SmrgAC_SUBST([INSTALL_STRIP_PROGRAM])]) 101809bd41f2cSmrg 10181c4f7863aSmrg# Copyright (C) 2006 Free Software Foundation, Inc. 101829bd41f2cSmrg# 10183ea0de359Smrg# This file is free software; the Free Software Foundation 10184ea0de359Smrg# gives unlimited permission to copy and/or distribute it, 10185ea0de359Smrg# with or without modifications, as long as this notice is preserved. 101869418810dSmrg 10187ea0de359Smrg# _AM_SUBST_NOTMAKE(VARIABLE) 10188ea0de359Smrg# --------------------------- 10189ea0de359Smrg# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. 10190ea0de359Smrg# This macro is traced by Automake. 10191ea0de359SmrgAC_DEFUN([_AM_SUBST_NOTMAKE]) 101929418810dSmrg 10193ea0de359Smrg# Check how to create a tarball. -*- Autoconf -*- 10194ea0de359Smrg 10195ea0de359Smrg# Copyright (C) 2004, 2005 Free Software Foundation, Inc. 101969bd41f2cSmrg# 10197ea0de359Smrg# This file is free software; the Free Software Foundation 10198ea0de359Smrg# gives unlimited permission to copy and/or distribute it, 10199ea0de359Smrg# with or without modifications, as long as this notice is preserved. 10200ea0de359Smrg 10201ea0de359Smrg# serial 2 10202ea0de359Smrg 10203ea0de359Smrg# _AM_PROG_TAR(FORMAT) 10204ea0de359Smrg# -------------------- 10205ea0de359Smrg# Check how to create a tarball in format FORMAT. 10206ea0de359Smrg# FORMAT should be one of `v7', `ustar', or `pax'. 102079bd41f2cSmrg# 10208ea0de359Smrg# Substitute a variable $(am__tar) that is a command 10209ea0de359Smrg# writing to stdout a FORMAT-tarball containing the directory 10210ea0de359Smrg# $tardir. 10211ea0de359Smrg# tardir=directory && $(am__tar) > result.tar 102129418810dSmrg# 10213ea0de359Smrg# Substitute a variable $(am__untar) that extract such 10214ea0de359Smrg# a tarball read from stdin. 10215ea0de359Smrg# $(am__untar) < result.tar 10216ea0de359SmrgAC_DEFUN([_AM_PROG_TAR], 10217ea0de359Smrg[# Always define AMTAR for backward compatibility. 10218ea0de359SmrgAM_MISSING_PROG([AMTAR], [tar]) 10219ea0de359Smrgm4_if([$1], [v7], 10220ea0de359Smrg [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], 10221ea0de359Smrg [m4_case([$1], [ustar],, [pax],, 10222ea0de359Smrg [m4_fatal([Unknown tar format])]) 10223ea0de359SmrgAC_MSG_CHECKING([how to create a $1 tar archive]) 10224ea0de359Smrg# Loop over all known methods to create a tar archive until one works. 10225ea0de359Smrg_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' 10226ea0de359Smrg_am_tools=${am_cv_prog_tar_$1-$_am_tools} 10227ea0de359Smrg# Do not fold the above two line into one, because Tru64 sh and 10228ea0de359Smrg# Solaris sh will not grok spaces in the rhs of `-'. 10229ea0de359Smrgfor _am_tool in $_am_tools 10230ea0de359Smrgdo 10231ea0de359Smrg case $_am_tool in 10232ea0de359Smrg gnutar) 10233ea0de359Smrg for _am_tar in tar gnutar gtar; 10234ea0de359Smrg do 10235ea0de359Smrg AM_RUN_LOG([$_am_tar --version]) && break 10236ea0de359Smrg done 10237ea0de359Smrg am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' 10238ea0de359Smrg am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' 10239ea0de359Smrg am__untar="$_am_tar -xf -" 10240ea0de359Smrg ;; 10241ea0de359Smrg plaintar) 10242ea0de359Smrg # Must skip GNU tar: if it does not support --format= it doesn't create 10243ea0de359Smrg # ustar tarball either. 10244ea0de359Smrg (tar --version) >/dev/null 2>&1 && continue 10245ea0de359Smrg am__tar='tar chf - "$$tardir"' 10246ea0de359Smrg am__tar_='tar chf - "$tardir"' 10247ea0de359Smrg am__untar='tar xf -' 10248ea0de359Smrg ;; 10249ea0de359Smrg pax) 10250ea0de359Smrg am__tar='pax -L -x $1 -w "$$tardir"' 10251ea0de359Smrg am__tar_='pax -L -x $1 -w "$tardir"' 10252ea0de359Smrg am__untar='pax -r' 10253ea0de359Smrg ;; 10254ea0de359Smrg cpio) 10255ea0de359Smrg am__tar='find "$$tardir" -print | cpio -o -H $1 -L' 10256ea0de359Smrg am__tar_='find "$tardir" -print | cpio -o -H $1 -L' 10257ea0de359Smrg am__untar='cpio -i -H $1 -d' 10258ea0de359Smrg ;; 10259ea0de359Smrg none) 10260ea0de359Smrg am__tar=false 10261ea0de359Smrg am__tar_=false 10262ea0de359Smrg am__untar=false 10263ea0de359Smrg ;; 10264ea0de359Smrg esac 102659bd41f2cSmrg 10266ea0de359Smrg # If the value was cached, stop now. We just wanted to have am__tar 10267ea0de359Smrg # and am__untar set. 10268ea0de359Smrg test -n "${am_cv_prog_tar_$1}" && break 102699bd41f2cSmrg 10270ea0de359Smrg # tar/untar a dummy directory, and stop if the command works 10271ea0de359Smrg rm -rf conftest.dir 10272ea0de359Smrg mkdir conftest.dir 10273ea0de359Smrg echo GrepMe > conftest.dir/file 10274ea0de359Smrg AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) 10275ea0de359Smrg rm -rf conftest.dir 10276ea0de359Smrg if test -s conftest.tar; then 10277ea0de359Smrg AM_RUN_LOG([$am__untar <conftest.tar]) 10278ea0de359Smrg grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 10279ea0de359Smrg fi 10280ea0de359Smrgdone 10281ea0de359Smrgrm -rf conftest.dir 102829bd41f2cSmrg 10283ea0de359SmrgAC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) 10284ea0de359SmrgAC_MSG_RESULT([$am_cv_prog_tar_$1])]) 10285ea0de359SmrgAC_SUBST([am__tar]) 10286ea0de359SmrgAC_SUBST([am__untar]) 10287ea0de359Smrg]) # _AM_PROG_TAR 102889bd41f2cSmrg 10289