aclocal.m4 revision 4642e01f
14642e01fSmrg# generated automatically by aclocal 1.10.2 -*- Autoconf -*- 205b261ecSmrg 305b261ecSmrg# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 405b261ecSmrg# 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 505b261ecSmrg# This file is free software; the Free Software Foundation 605b261ecSmrg# gives unlimited permission to copy and/or distribute it, 705b261ecSmrg# with or without modifications, as long as this notice is preserved. 805b261ecSmrg 905b261ecSmrg# This program is distributed in the hope that it will be useful, 1005b261ecSmrg# but WITHOUT ANY WARRANTY, to the extent permitted by law; without 1105b261ecSmrg# even the implied warranty of MERCHANTABILITY or FITNESS FOR A 1205b261ecSmrg# PARTICULAR PURPOSE. 1305b261ecSmrg 1405b261ecSmrgm4_ifndef([AC_AUTOCONF_VERSION], 1505b261ecSmrg [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 164642e01fSmrgm4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],, 174642e01fSmrg[m4_warning([this file was generated for autoconf 2.63. 1805b261ecSmrgYou have another version of autoconf. It may work, but is not guaranteed to. 1905b261ecSmrgIf you have problems, you may need to regenerate the build system entirely. 2005b261ecSmrgTo do so, use the procedure documented by the package, typically `autoreconf'.])]) 2105b261ecSmrg 2205b261ecSmrg# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 234642e01fSmrg# 244642e01fSmrg# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 254642e01fSmrg# 2006, 2007, 2008 Free Software Foundation, Inc. 264642e01fSmrg# Written by Gordon Matzigkeit, 1996 274642e01fSmrg# 284642e01fSmrg# This file is free software; the Free Software Foundation gives 294642e01fSmrg# unlimited permission to copy and/or distribute it, with or without 304642e01fSmrg# modifications, as long as this notice is preserved. 314642e01fSmrg 324642e01fSmrgm4_define([_LT_COPYING], [dnl 334642e01fSmrg# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 344642e01fSmrg# 2006, 2007, 2008 Free Software Foundation, Inc. 354642e01fSmrg# Written by Gordon Matzigkeit, 1996 364642e01fSmrg# 374642e01fSmrg# This file is part of GNU Libtool. 384642e01fSmrg# 394642e01fSmrg# GNU Libtool is free software; you can redistribute it and/or 404642e01fSmrg# modify it under the terms of the GNU General Public License as 414642e01fSmrg# published by the Free Software Foundation; either version 2 of 424642e01fSmrg# the License, or (at your option) any later version. 434642e01fSmrg# 444642e01fSmrg# As a special exception to the GNU General Public License, 454642e01fSmrg# if you distribute this file as part of a program or library that 464642e01fSmrg# is built using GNU Libtool, you may include this file under the 474642e01fSmrg# same distribution terms that you use for the rest of that program. 484642e01fSmrg# 494642e01fSmrg# GNU Libtool is distributed in the hope that it will be useful, 504642e01fSmrg# but WITHOUT ANY WARRANTY; without even the implied warranty of 514642e01fSmrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 524642e01fSmrg# GNU General Public License for more details. 534642e01fSmrg# 544642e01fSmrg# You should have received a copy of the GNU General Public License 554642e01fSmrg# along with GNU Libtool; see the file COPYING. If not, a copy 564642e01fSmrg# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 574642e01fSmrg# obtained by writing to the Free Software Foundation, Inc., 584642e01fSmrg# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 594642e01fSmrg]) 6005b261ecSmrg 614642e01fSmrg# serial 56 LT_INIT 6205b261ecSmrg 6305b261ecSmrg 644642e01fSmrg# LT_PREREQ(VERSION) 654642e01fSmrg# ------------------ 664642e01fSmrg# Complain and exit if this libtool version is less that VERSION. 674642e01fSmrgm4_defun([LT_PREREQ], 684642e01fSmrg[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, 694642e01fSmrg [m4_default([$3], 704642e01fSmrg [m4_fatal([Libtool version $1 or higher is required], 714642e01fSmrg 63)])], 724642e01fSmrg [$2])]) 7305b261ecSmrg 7405b261ecSmrg 754642e01fSmrg# _LT_CHECK_BUILDDIR 764642e01fSmrg# ------------------ 774642e01fSmrg# Complain if the absolute build directory name contains unusual characters 784642e01fSmrgm4_defun([_LT_CHECK_BUILDDIR], 794642e01fSmrg[case `pwd` in 804642e01fSmrg *\ * | *\ *) 814642e01fSmrg AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; 824642e01fSmrgesac 834642e01fSmrg]) 844642e01fSmrg 854642e01fSmrg 864642e01fSmrg# LT_INIT([OPTIONS]) 874642e01fSmrg# ------------------ 884642e01fSmrgAC_DEFUN([LT_INIT], 894642e01fSmrg[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT 904642e01fSmrgAC_BEFORE([$0], [LT_LANG])dnl 914642e01fSmrgAC_BEFORE([$0], [LT_OUTPUT])dnl 924642e01fSmrgAC_BEFORE([$0], [LTDL_INIT])dnl 934642e01fSmrgm4_require([_LT_CHECK_BUILDDIR])dnl 944642e01fSmrg 954642e01fSmrgdnl Autoconf doesn't catch unexpanded LT_ macros by default: 964642e01fSmrgm4_pattern_forbid([^_?LT_[A-Z_]+$])dnl 974642e01fSmrgm4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl 984642e01fSmrgdnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 994642e01fSmrgdnl unless we require an AC_DEFUNed macro: 1004642e01fSmrgAC_REQUIRE([LTOPTIONS_VERSION])dnl 1014642e01fSmrgAC_REQUIRE([LTSUGAR_VERSION])dnl 1024642e01fSmrgAC_REQUIRE([LTVERSION_VERSION])dnl 1034642e01fSmrgAC_REQUIRE([LTOBSOLETE_VERSION])dnl 1044642e01fSmrgm4_require([_LT_PROG_LTMAIN])dnl 1054642e01fSmrg 1064642e01fSmrgdnl Parse OPTIONS 1074642e01fSmrg_LT_SET_OPTIONS([$0], [$1]) 10805b261ecSmrg 10905b261ecSmrg# This can be used to rebuild libtool when needed 1104642e01fSmrgLIBTOOL_DEPS="$ltmain" 11105b261ecSmrg 11205b261ecSmrg# Always use our own libtool. 11305b261ecSmrgLIBTOOL='$(SHELL) $(top_builddir)/libtool' 11405b261ecSmrgAC_SUBST(LIBTOOL)dnl 11505b261ecSmrg 1164642e01fSmrg_LT_SETUP 11705b261ecSmrg 1184642e01fSmrg# Only expand once: 1194642e01fSmrgm4_define([LT_INIT]) 1204642e01fSmrg])# LT_INIT 12105b261ecSmrg 1224642e01fSmrg# Old names: 1234642e01fSmrgAU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) 1244642e01fSmrgAU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) 1254642e01fSmrgdnl aclocal-1.4 backwards compatibility: 1264642e01fSmrgdnl AC_DEFUN([AC_PROG_LIBTOOL], []) 1274642e01fSmrgdnl AC_DEFUN([AM_PROG_LIBTOOL], []) 1284642e01fSmrg 1294642e01fSmrg 1304642e01fSmrg# _LT_CC_BASENAME(CC) 1314642e01fSmrg# ------------------- 1324642e01fSmrg# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 1334642e01fSmrgm4_defun([_LT_CC_BASENAME], 1344642e01fSmrg[for cc_temp in $1""; do 1354642e01fSmrg case $cc_temp in 1364642e01fSmrg compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; 1374642e01fSmrg distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; 1384642e01fSmrg \-*) ;; 1394642e01fSmrg *) break;; 1404642e01fSmrg esac 1414642e01fSmrgdone 1424642e01fSmrgcc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 1434642e01fSmrg]) 1444642e01fSmrg 1454642e01fSmrg 1464642e01fSmrg# _LT_FILEUTILS_DEFAULTS 1474642e01fSmrg# ---------------------- 1484642e01fSmrg# It is okay to use these file commands and assume they have been set 1494642e01fSmrg# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'. 1504642e01fSmrgm4_defun([_LT_FILEUTILS_DEFAULTS], 1514642e01fSmrg[: ${CP="cp -f"} 1524642e01fSmrg: ${MV="mv -f"} 1534642e01fSmrg: ${RM="rm -f"} 1544642e01fSmrg])# _LT_FILEUTILS_DEFAULTS 1554642e01fSmrg 1564642e01fSmrg 1574642e01fSmrg# _LT_SETUP 1584642e01fSmrg# --------- 1594642e01fSmrgm4_defun([_LT_SETUP], 1604642e01fSmrg[AC_REQUIRE([AC_CANONICAL_HOST])dnl 16105b261ecSmrgAC_REQUIRE([AC_CANONICAL_BUILD])dnl 1624642e01fSmrg_LT_DECL([], [host_alias], [0], [The host system])dnl 1634642e01fSmrg_LT_DECL([], [host], [0])dnl 1644642e01fSmrg_LT_DECL([], [host_os], [0])dnl 1654642e01fSmrgdnl 1664642e01fSmrg_LT_DECL([], [build_alias], [0], [The build system])dnl 1674642e01fSmrg_LT_DECL([], [build], [0])dnl 1684642e01fSmrg_LT_DECL([], [build_os], [0])dnl 1694642e01fSmrgdnl 17005b261ecSmrgAC_REQUIRE([AC_PROG_CC])dnl 1714642e01fSmrgAC_REQUIRE([LT_PATH_LD])dnl 1724642e01fSmrgAC_REQUIRE([LT_PATH_NM])dnl 1734642e01fSmrgdnl 17405b261ecSmrgAC_REQUIRE([AC_PROG_LN_S])dnl 1754642e01fSmrgtest -z "$LN_S" && LN_S="ln -s" 1764642e01fSmrg_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl 1774642e01fSmrgdnl 1784642e01fSmrgAC_REQUIRE([LT_CMD_MAX_LEN])dnl 1794642e01fSmrg_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl 1804642e01fSmrg_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl 18105b261ecSmrgdnl 1824642e01fSmrgm4_require([_LT_FILEUTILS_DEFAULTS])dnl 1834642e01fSmrgm4_require([_LT_CHECK_SHELL_FEATURES])dnl 1844642e01fSmrgm4_require([_LT_CMD_RELOAD])dnl 1854642e01fSmrgm4_require([_LT_CHECK_MAGIC_METHOD])dnl 1864642e01fSmrgm4_require([_LT_CMD_OLD_ARCHIVE])dnl 1874642e01fSmrgm4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl 1884642e01fSmrg 1894642e01fSmrg_LT_CONFIG_LIBTOOL_INIT([ 1904642e01fSmrg# See if we are running on zsh, and set the options which allow our 1914642e01fSmrg# commands through without removal of \ escapes INIT. 1924642e01fSmrgif test -n "\${ZSH_VERSION+set}" ; then 1934642e01fSmrg setopt NO_GLOB_SUBST 1944642e01fSmrgfi 1954642e01fSmrg]) 1964642e01fSmrgif test -n "${ZSH_VERSION+set}" ; then 1974642e01fSmrg setopt NO_GLOB_SUBST 1984642e01fSmrgfi 1994642e01fSmrg 2004642e01fSmrg_LT_CHECK_OBJDIR 20105b261ecSmrg 2024642e01fSmrgm4_require([_LT_TAG_COMPILER])dnl 2034642e01fSmrg_LT_PROG_ECHO_BACKSLASH 20405b261ecSmrg 20505b261ecSmrgcase $host_os in 20605b261ecSmrgaix3*) 20705b261ecSmrg # AIX sometimes has problems with the GCC collect2 program. For some 20805b261ecSmrg # reason, if we set the COLLECT_NAMES environment variable, the problems 20905b261ecSmrg # vanish in a puff of smoke. 21005b261ecSmrg if test "X${COLLECT_NAMES+set}" != Xset; then 21105b261ecSmrg COLLECT_NAMES= 21205b261ecSmrg export COLLECT_NAMES 21305b261ecSmrg fi 21405b261ecSmrg ;; 21505b261ecSmrgesac 21605b261ecSmrg 21705b261ecSmrg# Sed substitution that helps us do robust quoting. It backslashifies 21805b261ecSmrg# metacharacters that are still active within double-quoted strings. 2194642e01fSmrgsed_quote_subst='s/\([["`$\\]]\)/\\\1/g' 22005b261ecSmrg 22105b261ecSmrg# Same as above, but do not quote variable references. 2224642e01fSmrgdouble_quote_subst='s/\([["`\\]]\)/\\\1/g' 22305b261ecSmrg 22405b261ecSmrg# Sed substitution to delay expansion of an escaped shell variable in a 22505b261ecSmrg# double_quote_subst'ed string. 22605b261ecSmrgdelay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 22705b261ecSmrg 2284642e01fSmrg# Sed substitution to delay expansion of an escaped single quote. 2294642e01fSmrgdelay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 2304642e01fSmrg 23105b261ecSmrg# Sed substitution to avoid accidental globbing in evaled expressions 23205b261ecSmrgno_glob_subst='s/\*/\\\*/g' 23305b261ecSmrg 23405b261ecSmrg# Global variables: 2354642e01fSmrgofile=libtool 23605b261ecSmrgcan_build_shared=yes 23705b261ecSmrg 23805b261ecSmrg# All known linkers require a `.a' archive for static linking (except MSVC, 23905b261ecSmrg# which needs '.lib'). 24005b261ecSmrglibext=a 24105b261ecSmrg 2424642e01fSmrgwith_gnu_ld="$lt_cv_prog_gnu_ld" 24305b261ecSmrg 24405b261ecSmrgold_CC="$CC" 24505b261ecSmrgold_CFLAGS="$CFLAGS" 24605b261ecSmrg 24705b261ecSmrg# Set sane defaults for various variables 24805b261ecSmrgtest -z "$CC" && CC=cc 24905b261ecSmrgtest -z "$LTCC" && LTCC=$CC 25005b261ecSmrgtest -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 25105b261ecSmrgtest -z "$LD" && LD=ld 25205b261ecSmrgtest -z "$ac_objext" && ac_objext=o 25305b261ecSmrg 25405b261ecSmrg_LT_CC_BASENAME([$compiler]) 25505b261ecSmrg 25605b261ecSmrg# Only perform the check for file, if the check method requires it 2574642e01fSmrgtest -z "$MAGIC_CMD" && MAGIC_CMD=file 25805b261ecSmrgcase $deplibs_check_method in 25905b261ecSmrgfile_magic*) 26005b261ecSmrg if test "$file_magic_cmd" = '$MAGIC_CMD'; then 2614642e01fSmrg _LT_PATH_MAGIC 26205b261ecSmrg fi 26305b261ecSmrg ;; 26405b261ecSmrgesac 26505b261ecSmrg 2664642e01fSmrg# Use C for the default configuration in the libtool script 2674642e01fSmrgLT_SUPPORTED_TAG([CC]) 2684642e01fSmrg_LT_LANG_C_CONFIG 2694642e01fSmrg_LT_LANG_DEFAULT_CONFIG 2704642e01fSmrg_LT_CONFIG_COMMANDS 2714642e01fSmrg])# _LT_SETUP 27205b261ecSmrg 27305b261ecSmrg 2744642e01fSmrg# _LT_PROG_LTMAIN 2754642e01fSmrg# --------------- 2764642e01fSmrg# Note that this code is called both from `configure', and `config.status' 2774642e01fSmrg# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, 2784642e01fSmrg# `config.status' has no value for ac_aux_dir unless we are using Automake, 2794642e01fSmrg# so we pass a copy along to make sure it has a sensible value anyway. 2804642e01fSmrgm4_defun([_LT_PROG_LTMAIN], 2814642e01fSmrg[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl 2824642e01fSmrg_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) 2834642e01fSmrgltmain="$ac_aux_dir/ltmain.sh" 2844642e01fSmrg])# _LT_PROG_LTMAIN 28505b261ecSmrg 28605b261ecSmrg 2874642e01fSmrg 2884642e01fSmrg# So that we can recreate a full libtool script including additional 2894642e01fSmrg# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS 2904642e01fSmrg# in macros and then make a single call at the end using the `libtool' 2914642e01fSmrg# label. 2924642e01fSmrg 2934642e01fSmrg 2944642e01fSmrg# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) 2954642e01fSmrg# ---------------------------------------- 2964642e01fSmrg# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. 2974642e01fSmrgm4_define([_LT_CONFIG_LIBTOOL_INIT], 2984642e01fSmrg[m4_ifval([$1], 2994642e01fSmrg [m4_append([_LT_OUTPUT_LIBTOOL_INIT], 3004642e01fSmrg [$1 3014642e01fSmrg])])]) 3024642e01fSmrg 3034642e01fSmrg# Initialize. 3044642e01fSmrgm4_define([_LT_OUTPUT_LIBTOOL_INIT]) 3054642e01fSmrg 3064642e01fSmrg 3074642e01fSmrg# _LT_CONFIG_LIBTOOL([COMMANDS]) 3084642e01fSmrg# ------------------------------ 3094642e01fSmrg# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. 3104642e01fSmrgm4_define([_LT_CONFIG_LIBTOOL], 3114642e01fSmrg[m4_ifval([$1], 3124642e01fSmrg [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], 3134642e01fSmrg [$1 3144642e01fSmrg])])]) 3154642e01fSmrg 3164642e01fSmrg# Initialize. 3174642e01fSmrgm4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) 3184642e01fSmrg 3194642e01fSmrg 3204642e01fSmrg# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) 3214642e01fSmrg# ----------------------------------------------------- 3224642e01fSmrgm4_defun([_LT_CONFIG_SAVE_COMMANDS], 3234642e01fSmrg[_LT_CONFIG_LIBTOOL([$1]) 3244642e01fSmrg_LT_CONFIG_LIBTOOL_INIT([$2]) 3254642e01fSmrg]) 3264642e01fSmrg 3274642e01fSmrg 3284642e01fSmrg# _LT_FORMAT_COMMENT([COMMENT]) 3294642e01fSmrg# ----------------------------- 3304642e01fSmrg# Add leading comment marks to the start of each line, and a trailing 3314642e01fSmrg# full-stop to the whole comment if one is not present already. 3324642e01fSmrgm4_define([_LT_FORMAT_COMMENT], 3334642e01fSmrg[m4_ifval([$1], [ 3344642e01fSmrgm4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], 3354642e01fSmrg [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) 3364642e01fSmrg)]) 3374642e01fSmrg 3384642e01fSmrg 3394642e01fSmrg 3404642e01fSmrg 3414642e01fSmrg 3424642e01fSmrg# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) 3434642e01fSmrg# ------------------------------------------------------------------- 3444642e01fSmrg# CONFIGNAME is the name given to the value in the libtool script. 3454642e01fSmrg# VARNAME is the (base) name used in the configure script. 3464642e01fSmrg# VALUE may be 0, 1 or 2 for a computed quote escaped value based on 3474642e01fSmrg# VARNAME. Any other value will be used directly. 3484642e01fSmrgm4_define([_LT_DECL], 3494642e01fSmrg[lt_if_append_uniq([lt_decl_varnames], [$2], [, ], 3504642e01fSmrg [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], 3514642e01fSmrg [m4_ifval([$1], [$1], [$2])]) 3524642e01fSmrg lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) 3534642e01fSmrg m4_ifval([$4], 3544642e01fSmrg [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) 3554642e01fSmrg lt_dict_add_subkey([lt_decl_dict], [$2], 3564642e01fSmrg [tagged?], [m4_ifval([$5], [yes], [no])])]) 3574642e01fSmrg]) 3584642e01fSmrg 3594642e01fSmrg 3604642e01fSmrg# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) 3614642e01fSmrg# -------------------------------------------------------- 3624642e01fSmrgm4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) 3634642e01fSmrg 3644642e01fSmrg 3654642e01fSmrg# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) 3664642e01fSmrg# ------------------------------------------------ 3674642e01fSmrgm4_define([lt_decl_tag_varnames], 3684642e01fSmrg[_lt_decl_filter([tagged?], [yes], $@)]) 3694642e01fSmrg 3704642e01fSmrg 3714642e01fSmrg# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) 3724642e01fSmrg# --------------------------------------------------------- 3734642e01fSmrgm4_define([_lt_decl_filter], 3744642e01fSmrg[m4_case([$#], 3754642e01fSmrg [0], [m4_fatal([$0: too few arguments: $#])], 3764642e01fSmrg [1], [m4_fatal([$0: too few arguments: $#: $1])], 3774642e01fSmrg [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], 3784642e01fSmrg [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], 3794642e01fSmrg [lt_dict_filter([lt_decl_dict], $@)])[]dnl 3804642e01fSmrg]) 3814642e01fSmrg 3824642e01fSmrg 3834642e01fSmrg# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) 3844642e01fSmrg# -------------------------------------------------- 3854642e01fSmrgm4_define([lt_decl_quote_varnames], 3864642e01fSmrg[_lt_decl_filter([value], [1], $@)]) 3874642e01fSmrg 3884642e01fSmrg 3894642e01fSmrg# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) 3904642e01fSmrg# --------------------------------------------------- 3914642e01fSmrgm4_define([lt_decl_dquote_varnames], 3924642e01fSmrg[_lt_decl_filter([value], [2], $@)]) 3934642e01fSmrg 3944642e01fSmrg 3954642e01fSmrg# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) 3964642e01fSmrg# --------------------------------------------------- 3974642e01fSmrgm4_define([lt_decl_varnames_tagged], 3984642e01fSmrg[m4_assert([$# <= 2])dnl 3994642e01fSmrg_$0(m4_quote(m4_default([$1], [[, ]])), 4004642e01fSmrg m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), 4014642e01fSmrg m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) 4024642e01fSmrgm4_define([_lt_decl_varnames_tagged], 4034642e01fSmrg[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) 4044642e01fSmrg 4054642e01fSmrg 4064642e01fSmrg# lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) 4074642e01fSmrg# ------------------------------------------------ 4084642e01fSmrgm4_define([lt_decl_all_varnames], 4094642e01fSmrg[_$0(m4_quote(m4_default([$1], [[, ]])), 4104642e01fSmrg m4_if([$2], [], 4114642e01fSmrg m4_quote(lt_decl_varnames), 4124642e01fSmrg m4_quote(m4_shift($@))))[]dnl 4134642e01fSmrg]) 4144642e01fSmrgm4_define([_lt_decl_all_varnames], 4154642e01fSmrg[lt_join($@, lt_decl_varnames_tagged([$1], 4164642e01fSmrg lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl 4174642e01fSmrg]) 4184642e01fSmrg 4194642e01fSmrg 4204642e01fSmrg# _LT_CONFIG_STATUS_DECLARE([VARNAME]) 4214642e01fSmrg# ------------------------------------ 4224642e01fSmrg# Quote a variable value, and forward it to `config.status' so that its 4234642e01fSmrg# declaration there will have the same value as in `configure'. VARNAME 4244642e01fSmrg# must have a single quote delimited value for this to work. 4254642e01fSmrgm4_define([_LT_CONFIG_STATUS_DECLARE], 4264642e01fSmrg[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`']) 4274642e01fSmrg 4284642e01fSmrg 4294642e01fSmrg# _LT_CONFIG_STATUS_DECLARATIONS 4304642e01fSmrg# ------------------------------ 4314642e01fSmrg# We delimit libtool config variables with single quotes, so when 4324642e01fSmrg# we write them to config.status, we have to be sure to quote all 4334642e01fSmrg# embedded single quotes properly. In configure, this macro expands 4344642e01fSmrg# each variable declared with _LT_DECL (and _LT_TAGDECL) into: 4354642e01fSmrg# 4364642e01fSmrg# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`' 4374642e01fSmrgm4_defun([_LT_CONFIG_STATUS_DECLARATIONS], 4384642e01fSmrg[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), 4394642e01fSmrg [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) 44005b261ecSmrg 44105b261ecSmrg 4424642e01fSmrg# _LT_LIBTOOL_TAGS 4434642e01fSmrg# ---------------- 4444642e01fSmrg# Output comment and list of tags supported by the script 4454642e01fSmrgm4_defun([_LT_LIBTOOL_TAGS], 4464642e01fSmrg[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl 4474642e01fSmrgavailable_tags="_LT_TAGS"dnl 4484642e01fSmrg]) 4494642e01fSmrg 4504642e01fSmrg 4514642e01fSmrg# _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) 4524642e01fSmrg# ----------------------------------- 4534642e01fSmrg# Extract the dictionary values for VARNAME (optionally with TAG) and 4544642e01fSmrg# expand to a commented shell variable setting: 4554642e01fSmrg# 4564642e01fSmrg# # Some comment about what VAR is for. 4574642e01fSmrg# visible_name=$lt_internal_name 4584642e01fSmrgm4_define([_LT_LIBTOOL_DECLARE], 4594642e01fSmrg[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], 4604642e01fSmrg [description])))[]dnl 4614642e01fSmrgm4_pushdef([_libtool_name], 4624642e01fSmrg m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl 4634642e01fSmrgm4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), 4644642e01fSmrg [0], [_libtool_name=[$]$1], 4654642e01fSmrg [1], [_libtool_name=$lt_[]$1], 4664642e01fSmrg [2], [_libtool_name=$lt_[]$1], 4674642e01fSmrg [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl 4684642e01fSmrgm4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl 4694642e01fSmrg]) 4704642e01fSmrg 4714642e01fSmrg 4724642e01fSmrg# _LT_LIBTOOL_CONFIG_VARS 4734642e01fSmrg# ----------------------- 4744642e01fSmrg# Produce commented declarations of non-tagged libtool config variables 4754642e01fSmrg# suitable for insertion in the LIBTOOL CONFIG section of the `libtool' 4764642e01fSmrg# script. Tagged libtool config variables (even for the LIBTOOL CONFIG 4774642e01fSmrg# section) are produced by _LT_LIBTOOL_TAG_VARS. 4784642e01fSmrgm4_defun([_LT_LIBTOOL_CONFIG_VARS], 4794642e01fSmrg[m4_foreach([_lt_var], 4804642e01fSmrg m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), 4814642e01fSmrg [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) 4824642e01fSmrg 4834642e01fSmrg 4844642e01fSmrg# _LT_LIBTOOL_TAG_VARS(TAG) 4854642e01fSmrg# ------------------------- 4864642e01fSmrgm4_define([_LT_LIBTOOL_TAG_VARS], 4874642e01fSmrg[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), 4884642e01fSmrg [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) 4894642e01fSmrg 4904642e01fSmrg 4914642e01fSmrg# _LT_TAGVAR(VARNAME, [TAGNAME]) 4924642e01fSmrg# ------------------------------ 4934642e01fSmrgm4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) 4944642e01fSmrg 4954642e01fSmrg 4964642e01fSmrg# _LT_CONFIG_COMMANDS 49705b261ecSmrg# ------------------- 4984642e01fSmrg# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of 4994642e01fSmrg# variables for single and double quote escaping we saved from calls 5004642e01fSmrg# to _LT_DECL, we can put quote escaped variables declarations 5014642e01fSmrg# into `config.status', and then the shell code to quote escape them in 5024642e01fSmrg# for loops in `config.status'. Finally, any additional code accumulated 5034642e01fSmrg# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. 5044642e01fSmrgm4_defun([_LT_CONFIG_COMMANDS], 5054642e01fSmrg[AC_PROVIDE_IFELSE([LT_OUTPUT], 5064642e01fSmrg dnl If the libtool generation code has been placed in $CONFIG_LT, 5074642e01fSmrg dnl instead of duplicating it all over again into config.status, 5084642e01fSmrg dnl then we will have config.status run $CONFIG_LT later, so it 5094642e01fSmrg dnl needs to know what name is stored there: 5104642e01fSmrg [AC_CONFIG_COMMANDS([libtool], 5114642e01fSmrg [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], 5124642e01fSmrg dnl If the libtool generation code is destined for config.status, 5134642e01fSmrg dnl expand the accumulated commands and init code now: 5144642e01fSmrg [AC_CONFIG_COMMANDS([libtool], 5154642e01fSmrg [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) 5164642e01fSmrg])#_LT_CONFIG_COMMANDS 5174642e01fSmrg 5184642e01fSmrg 5194642e01fSmrg# Initialize. 5204642e01fSmrgm4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], 5214642e01fSmrg[ 5224642e01fSmrg 5234642e01fSmrg# The HP-UX ksh and POSIX shell print the target directory to stdout 5244642e01fSmrg# if CDPATH is set. 5254642e01fSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 5264642e01fSmrg 5274642e01fSmrgsed_quote_subst='$sed_quote_subst' 5284642e01fSmrgdouble_quote_subst='$double_quote_subst' 5294642e01fSmrgdelay_variable_subst='$delay_variable_subst' 5304642e01fSmrg_LT_CONFIG_STATUS_DECLARATIONS 5314642e01fSmrgLTCC='$LTCC' 5324642e01fSmrgLTCFLAGS='$LTCFLAGS' 5334642e01fSmrgcompiler='$compiler_DEFAULT' 5344642e01fSmrg 5354642e01fSmrg# Quote evaled strings. 5364642e01fSmrgfor var in lt_decl_all_varnames([[ \ 5374642e01fSmrg]], lt_decl_quote_varnames); do 5384642e01fSmrg case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 5394642e01fSmrg *[[\\\\\\\`\\"\\\$]]*) 5404642e01fSmrg eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 5414642e01fSmrg ;; 5424642e01fSmrg *) 5434642e01fSmrg eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 5444642e01fSmrg ;; 5454642e01fSmrg esac 5464642e01fSmrgdone 5474642e01fSmrg 5484642e01fSmrg# Double-quote double-evaled strings. 5494642e01fSmrgfor var in lt_decl_all_varnames([[ \ 5504642e01fSmrg]], lt_decl_dquote_varnames); do 5514642e01fSmrg case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 5524642e01fSmrg *[[\\\\\\\`\\"\\\$]]*) 5534642e01fSmrg eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 5544642e01fSmrg ;; 5554642e01fSmrg *) 5564642e01fSmrg eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 5574642e01fSmrg ;; 5584642e01fSmrg esac 5594642e01fSmrgdone 5604642e01fSmrg 5614642e01fSmrg# Fix-up fallback echo if it was mangled by the above quoting rules. 5624642e01fSmrgcase \$lt_ECHO in 5634642e01fSmrg*'\\\[$]0 --fallback-echo"')dnl " 5644642e01fSmrg lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\` 5654642e01fSmrg ;; 5664642e01fSmrgesac 5674642e01fSmrg 5684642e01fSmrg_LT_OUTPUT_LIBTOOL_INIT 5694642e01fSmrg]) 5704642e01fSmrg 5714642e01fSmrg 5724642e01fSmrg# LT_OUTPUT 5734642e01fSmrg# --------- 5744642e01fSmrg# This macro allows early generation of the libtool script (before 5754642e01fSmrg# AC_OUTPUT is called), incase it is used in configure for compilation 5764642e01fSmrg# tests. 5774642e01fSmrgAC_DEFUN([LT_OUTPUT], 5784642e01fSmrg[: ${CONFIG_LT=./config.lt} 5794642e01fSmrgAC_MSG_NOTICE([creating $CONFIG_LT]) 5804642e01fSmrgcat >"$CONFIG_LT" <<_LTEOF 5814642e01fSmrg#! $SHELL 5824642e01fSmrg# Generated by $as_me. 5834642e01fSmrg# Run this file to recreate a libtool stub with the current configuration. 5844642e01fSmrg 5854642e01fSmrglt_cl_silent=false 5864642e01fSmrgSHELL=\${CONFIG_SHELL-$SHELL} 5874642e01fSmrg_LTEOF 5884642e01fSmrg 5894642e01fSmrgcat >>"$CONFIG_LT" <<\_LTEOF 5904642e01fSmrgAS_SHELL_SANITIZE 5914642e01fSmrg_AS_PREPARE 5924642e01fSmrg 5934642e01fSmrgexec AS_MESSAGE_FD>&1 5944642e01fSmrgexec AS_MESSAGE_LOG_FD>>config.log 5954642e01fSmrg{ 5964642e01fSmrg echo 5974642e01fSmrg AS_BOX([Running $as_me.]) 5984642e01fSmrg} >&AS_MESSAGE_LOG_FD 5994642e01fSmrg 6004642e01fSmrglt_cl_help="\ 6014642e01fSmrg\`$as_me' creates a local libtool stub from the current configuration, 6024642e01fSmrgfor use in further configure time tests before the real libtool is 6034642e01fSmrggenerated. 6044642e01fSmrg 6054642e01fSmrgUsage: $[0] [[OPTIONS]] 6064642e01fSmrg 6074642e01fSmrg -h, --help print this help, then exit 6084642e01fSmrg -V, --version print version number, then exit 6094642e01fSmrg -q, --quiet do not print progress messages 6104642e01fSmrg -d, --debug don't remove temporary files 6114642e01fSmrg 6124642e01fSmrgReport bugs to <bug-libtool@gnu.org>." 6134642e01fSmrg 6144642e01fSmrglt_cl_version="\ 6154642e01fSmrgm4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl 6164642e01fSmrgm4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) 6174642e01fSmrgconfigured by $[0], generated by m4_PACKAGE_STRING. 6184642e01fSmrg 6194642e01fSmrgCopyright (C) 2008 Free Software Foundation, Inc. 6204642e01fSmrgThis config.lt script is free software; the Free Software Foundation 6214642e01fSmrggives unlimited permision to copy, distribute and modify it." 6224642e01fSmrg 6234642e01fSmrgwhile test $[#] != 0 6244642e01fSmrgdo 6254642e01fSmrg case $[1] in 6264642e01fSmrg --version | --v* | -V ) 6274642e01fSmrg echo "$lt_cl_version"; exit 0 ;; 6284642e01fSmrg --help | --h* | -h ) 6294642e01fSmrg echo "$lt_cl_help"; exit 0 ;; 6304642e01fSmrg --debug | --d* | -d ) 6314642e01fSmrg debug=: ;; 6324642e01fSmrg --quiet | --q* | --silent | --s* | -q ) 6334642e01fSmrg lt_cl_silent=: ;; 6344642e01fSmrg 6354642e01fSmrg -*) AC_MSG_ERROR([unrecognized option: $[1] 6364642e01fSmrgTry \`$[0] --help' for more information.]) ;; 6374642e01fSmrg 6384642e01fSmrg *) AC_MSG_ERROR([unrecognized argument: $[1] 6394642e01fSmrgTry \`$[0] --help' for more information.]) ;; 6404642e01fSmrg esac 6414642e01fSmrg shift 6424642e01fSmrgdone 6434642e01fSmrg 6444642e01fSmrgif $lt_cl_silent; then 6454642e01fSmrg exec AS_MESSAGE_FD>/dev/null 6464642e01fSmrgfi 6474642e01fSmrg_LTEOF 6484642e01fSmrg 6494642e01fSmrgcat >>"$CONFIG_LT" <<_LTEOF 6504642e01fSmrg_LT_OUTPUT_LIBTOOL_COMMANDS_INIT 6514642e01fSmrg_LTEOF 6524642e01fSmrg 6534642e01fSmrgcat >>"$CONFIG_LT" <<\_LTEOF 6544642e01fSmrgAC_MSG_NOTICE([creating $ofile]) 6554642e01fSmrg_LT_OUTPUT_LIBTOOL_COMMANDS 6564642e01fSmrgAS_EXIT(0) 6574642e01fSmrg_LTEOF 6584642e01fSmrgchmod +x "$CONFIG_LT" 6594642e01fSmrg 6604642e01fSmrg# configure is writing to config.log, but config.lt does its own redirection, 6614642e01fSmrg# appending to config.log, which fails on DOS, as config.log is still kept 6624642e01fSmrg# open by configure. Here we exec the FD to /dev/null, effectively closing 6634642e01fSmrg# config.log, so it can be properly (re)opened and appended to by config.lt. 6644642e01fSmrgif test "$no_create" != yes; then 6654642e01fSmrg lt_cl_success=: 6664642e01fSmrg test "$silent" = yes && 6674642e01fSmrg lt_config_lt_args="$lt_config_lt_args --quiet" 6684642e01fSmrg exec AS_MESSAGE_LOG_FD>/dev/null 6694642e01fSmrg $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false 6704642e01fSmrg exec AS_MESSAGE_LOG_FD>>config.log 6714642e01fSmrg $lt_cl_success || AS_EXIT(1) 6724642e01fSmrgfi 6734642e01fSmrg])# LT_OUTPUT 6744642e01fSmrg 6754642e01fSmrg 6764642e01fSmrg# _LT_CONFIG(TAG) 6774642e01fSmrg# --------------- 6784642e01fSmrg# If TAG is the built-in tag, create an initial libtool script with a 6794642e01fSmrg# default configuration from the untagged config vars. Otherwise add code 6804642e01fSmrg# to config.status for appending the configuration named by TAG from the 6814642e01fSmrg# matching tagged config vars. 6824642e01fSmrgm4_defun([_LT_CONFIG], 6834642e01fSmrg[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 6844642e01fSmrg_LT_CONFIG_SAVE_COMMANDS([ 6854642e01fSmrg m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl 6864642e01fSmrg m4_if(_LT_TAG, [C], [ 6874642e01fSmrg # See if we are running on zsh, and set the options which allow our 6884642e01fSmrg # commands through without removal of \ escapes. 6894642e01fSmrg if test -n "${ZSH_VERSION+set}" ; then 6904642e01fSmrg setopt NO_GLOB_SUBST 6914642e01fSmrg fi 6924642e01fSmrg 6934642e01fSmrg cfgfile="${ofile}T" 6944642e01fSmrg trap "$RM \"$cfgfile\"; exit 1" 1 2 15 6954642e01fSmrg $RM "$cfgfile" 6964642e01fSmrg 6974642e01fSmrg cat <<_LT_EOF >> "$cfgfile" 6984642e01fSmrg#! $SHELL 6994642e01fSmrg 7004642e01fSmrg# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 7014642e01fSmrg# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 7024642e01fSmrg# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 7034642e01fSmrg# NOTE: Changes made to this file will be lost: look at ltmain.sh. 7044642e01fSmrg# 7054642e01fSmrg_LT_COPYING 7064642e01fSmrg_LT_LIBTOOL_TAGS 7074642e01fSmrg 7084642e01fSmrg# ### BEGIN LIBTOOL CONFIG 7094642e01fSmrg_LT_LIBTOOL_CONFIG_VARS 7104642e01fSmrg_LT_LIBTOOL_TAG_VARS 7114642e01fSmrg# ### END LIBTOOL CONFIG 7124642e01fSmrg 7134642e01fSmrg_LT_EOF 7144642e01fSmrg 7154642e01fSmrg case $host_os in 7164642e01fSmrg aix3*) 7174642e01fSmrg cat <<\_LT_EOF >> "$cfgfile" 7184642e01fSmrg# AIX sometimes has problems with the GCC collect2 program. For some 7194642e01fSmrg# reason, if we set the COLLECT_NAMES environment variable, the problems 7204642e01fSmrg# vanish in a puff of smoke. 7214642e01fSmrgif test "X${COLLECT_NAMES+set}" != Xset; then 7224642e01fSmrg COLLECT_NAMES= 7234642e01fSmrg export COLLECT_NAMES 7244642e01fSmrgfi 7254642e01fSmrg_LT_EOF 7264642e01fSmrg ;; 7274642e01fSmrg esac 7284642e01fSmrg 7294642e01fSmrg _LT_PROG_LTMAIN 7304642e01fSmrg 7314642e01fSmrg # We use sed instead of cat because bash on DJGPP gets confused if 7324642e01fSmrg # if finds mixed CR/LF and LF-only lines. Since sed operates in 7334642e01fSmrg # text mode, it properly converts lines to CR/LF. This bash problem 7344642e01fSmrg # is reportedly fixed, but why not run on old versions too? 7354642e01fSmrg sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 7364642e01fSmrg || (rm -f "$cfgfile"; exit 1) 7374642e01fSmrg 7384642e01fSmrg _LT_PROG_XSI_SHELLFNS 7394642e01fSmrg 7404642e01fSmrg sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 7414642e01fSmrg || (rm -f "$cfgfile"; exit 1) 7424642e01fSmrg 7434642e01fSmrg mv -f "$cfgfile" "$ofile" || 7444642e01fSmrg (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 7454642e01fSmrg chmod +x "$ofile" 7464642e01fSmrg], 7474642e01fSmrg[cat <<_LT_EOF >> "$ofile" 7484642e01fSmrg 7494642e01fSmrgdnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded 7504642e01fSmrgdnl in a comment (ie after a #). 7514642e01fSmrg# ### BEGIN LIBTOOL TAG CONFIG: $1 7524642e01fSmrg_LT_LIBTOOL_TAG_VARS(_LT_TAG) 7534642e01fSmrg# ### END LIBTOOL TAG CONFIG: $1 7544642e01fSmrg_LT_EOF 7554642e01fSmrg])dnl /m4_if 7564642e01fSmrg], 7574642e01fSmrg[m4_if([$1], [], [ 7584642e01fSmrg PACKAGE='$PACKAGE' 7594642e01fSmrg VERSION='$VERSION' 7604642e01fSmrg TIMESTAMP='$TIMESTAMP' 7614642e01fSmrg RM='$RM' 7624642e01fSmrg ofile='$ofile'], []) 7634642e01fSmrg])dnl /_LT_CONFIG_SAVE_COMMANDS 7644642e01fSmrg])# _LT_CONFIG 7654642e01fSmrg 7664642e01fSmrg 7674642e01fSmrg# LT_SUPPORTED_TAG(TAG) 7684642e01fSmrg# --------------------- 7694642e01fSmrg# Trace this macro to discover what tags are supported by the libtool 7704642e01fSmrg# --tag option, using: 7714642e01fSmrg# autoconf --trace 'LT_SUPPORTED_TAG:$1' 7724642e01fSmrgAC_DEFUN([LT_SUPPORTED_TAG], []) 7734642e01fSmrg 7744642e01fSmrg 7754642e01fSmrg# C support is built-in for now 7764642e01fSmrgm4_define([_LT_LANG_C_enabled], []) 7774642e01fSmrgm4_define([_LT_TAGS], []) 7784642e01fSmrg 7794642e01fSmrg 7804642e01fSmrg# LT_LANG(LANG) 7814642e01fSmrg# ------------- 7824642e01fSmrg# Enable libtool support for the given language if not already enabled. 7834642e01fSmrgAC_DEFUN([LT_LANG], 7844642e01fSmrg[AC_BEFORE([$0], [LT_OUTPUT])dnl 7854642e01fSmrgm4_case([$1], 7864642e01fSmrg [C], [_LT_LANG(C)], 7874642e01fSmrg [C++], [_LT_LANG(CXX)], 7884642e01fSmrg [Java], [_LT_LANG(GCJ)], 7894642e01fSmrg [Fortran 77], [_LT_LANG(F77)], 7904642e01fSmrg [Fortran], [_LT_LANG(FC)], 7914642e01fSmrg [Windows Resource], [_LT_LANG(RC)], 7924642e01fSmrg [m4_ifdef([_LT_LANG_]$1[_CONFIG], 7934642e01fSmrg [_LT_LANG($1)], 7944642e01fSmrg [m4_fatal([$0: unsupported language: "$1"])])])dnl 7954642e01fSmrg])# LT_LANG 7964642e01fSmrg 7974642e01fSmrg 7984642e01fSmrg# _LT_LANG(LANGNAME) 7994642e01fSmrg# ------------------ 8004642e01fSmrgm4_defun([_LT_LANG], 8014642e01fSmrg[m4_ifdef([_LT_LANG_]$1[_enabled], [], 8024642e01fSmrg [LT_SUPPORTED_TAG([$1])dnl 8034642e01fSmrg m4_append([_LT_TAGS], [$1 ])dnl 8044642e01fSmrg m4_define([_LT_LANG_]$1[_enabled], [])dnl 8054642e01fSmrg _LT_LANG_$1_CONFIG($1)])dnl 8064642e01fSmrg])# _LT_LANG 8074642e01fSmrg 8084642e01fSmrg 8094642e01fSmrg# _LT_LANG_DEFAULT_CONFIG 8104642e01fSmrg# ----------------------- 8114642e01fSmrgm4_defun([_LT_LANG_DEFAULT_CONFIG], 8124642e01fSmrg[AC_PROVIDE_IFELSE([AC_PROG_CXX], 8134642e01fSmrg [LT_LANG(CXX)], 8144642e01fSmrg [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) 8154642e01fSmrg 8164642e01fSmrgAC_PROVIDE_IFELSE([AC_PROG_F77], 8174642e01fSmrg [LT_LANG(F77)], 8184642e01fSmrg [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) 8194642e01fSmrg 8204642e01fSmrgAC_PROVIDE_IFELSE([AC_PROG_FC], 8214642e01fSmrg [LT_LANG(FC)], 8224642e01fSmrg [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) 8234642e01fSmrg 8244642e01fSmrgdnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal 8254642e01fSmrgdnl pulling things in needlessly. 8264642e01fSmrgAC_PROVIDE_IFELSE([AC_PROG_GCJ], 8274642e01fSmrg [LT_LANG(GCJ)], 8284642e01fSmrg [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], 8294642e01fSmrg [LT_LANG(GCJ)], 8304642e01fSmrg [AC_PROVIDE_IFELSE([LT_PROG_GCJ], 8314642e01fSmrg [LT_LANG(GCJ)], 8324642e01fSmrg [m4_ifdef([AC_PROG_GCJ], 8334642e01fSmrg [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) 8344642e01fSmrg m4_ifdef([A][M_PROG_GCJ], 8354642e01fSmrg [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) 8364642e01fSmrg m4_ifdef([LT_PROG_GCJ], 8374642e01fSmrg [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) 8384642e01fSmrg 8394642e01fSmrgAC_PROVIDE_IFELSE([LT_PROG_RC], 8404642e01fSmrg [LT_LANG(RC)], 8414642e01fSmrg [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) 8424642e01fSmrg])# _LT_LANG_DEFAULT_CONFIG 8434642e01fSmrg 8444642e01fSmrg# Obsolete macros: 8454642e01fSmrgAU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) 8464642e01fSmrgAU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) 8474642e01fSmrgAU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) 8484642e01fSmrgAU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) 8494642e01fSmrgdnl aclocal-1.4 backwards compatibility: 8504642e01fSmrgdnl AC_DEFUN([AC_LIBTOOL_CXX], []) 8514642e01fSmrgdnl AC_DEFUN([AC_LIBTOOL_F77], []) 8524642e01fSmrgdnl AC_DEFUN([AC_LIBTOOL_FC], []) 8534642e01fSmrgdnl AC_DEFUN([AC_LIBTOOL_GCJ], []) 8544642e01fSmrg 8554642e01fSmrg 8564642e01fSmrg# _LT_TAG_COMPILER 8574642e01fSmrg# ---------------- 8584642e01fSmrgm4_defun([_LT_TAG_COMPILER], 85905b261ecSmrg[AC_REQUIRE([AC_PROG_CC])dnl 86005b261ecSmrg 8614642e01fSmrg_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl 8624642e01fSmrg_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl 8634642e01fSmrg_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl 8644642e01fSmrg_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl 8654642e01fSmrg 86605b261ecSmrg# If no C compiler was specified, use CC. 86705b261ecSmrgLTCC=${LTCC-"$CC"} 86805b261ecSmrg 86905b261ecSmrg# If no C compiler flags were specified, use CFLAGS. 87005b261ecSmrgLTCFLAGS=${LTCFLAGS-"$CFLAGS"} 87105b261ecSmrg 87205b261ecSmrg# Allow CC to be a program name with arguments. 87305b261ecSmrgcompiler=$CC 8744642e01fSmrg])# _LT_TAG_COMPILER 87505b261ecSmrg 87605b261ecSmrg 87705b261ecSmrg# _LT_COMPILER_BOILERPLATE 87805b261ecSmrg# ------------------------ 87905b261ecSmrg# Check for compiler boilerplate output or warnings with 88005b261ecSmrg# the simple compiler test code. 8814642e01fSmrgm4_defun([_LT_COMPILER_BOILERPLATE], 8824642e01fSmrg[m4_require([_LT_DECL_SED])dnl 88305b261ecSmrgac_outfile=conftest.$ac_objext 88405b261ecSmrgecho "$lt_simple_compile_test_code" >conftest.$ac_ext 88505b261ecSmrgeval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 88605b261ecSmrg_lt_compiler_boilerplate=`cat conftest.err` 8874642e01fSmrg$RM conftest* 88805b261ecSmrg])# _LT_COMPILER_BOILERPLATE 88905b261ecSmrg 89005b261ecSmrg 89105b261ecSmrg# _LT_LINKER_BOILERPLATE 89205b261ecSmrg# ---------------------- 89305b261ecSmrg# Check for linker boilerplate output or warnings with 89405b261ecSmrg# the simple link test code. 8954642e01fSmrgm4_defun([_LT_LINKER_BOILERPLATE], 8964642e01fSmrg[m4_require([_LT_DECL_SED])dnl 89705b261ecSmrgac_outfile=conftest.$ac_objext 89805b261ecSmrgecho "$lt_simple_link_test_code" >conftest.$ac_ext 89905b261ecSmrgeval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 90005b261ecSmrg_lt_linker_boilerplate=`cat conftest.err` 9014642e01fSmrg$RM -r conftest* 90205b261ecSmrg])# _LT_LINKER_BOILERPLATE 90305b261ecSmrg 90405b261ecSmrg# _LT_REQUIRED_DARWIN_CHECKS 9054642e01fSmrg# ------------------------- 9064642e01fSmrgm4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ 90705b261ecSmrg case $host_os in 90805b261ecSmrg rhapsody* | darwin*) 90905b261ecSmrg AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) 91005b261ecSmrg AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) 9114642e01fSmrg AC_CHECK_TOOL([LIPO], [lipo], [:]) 9124642e01fSmrg AC_CHECK_TOOL([OTOOL], [otool], [:]) 9134642e01fSmrg AC_CHECK_TOOL([OTOOL64], [otool64], [:]) 9144642e01fSmrg _LT_DECL([], [DSYMUTIL], [1], 9154642e01fSmrg [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) 9164642e01fSmrg _LT_DECL([], [NMEDIT], [1], 9174642e01fSmrg [Tool to change global to local symbols on Mac OS X]) 9184642e01fSmrg _LT_DECL([], [LIPO], [1], 9194642e01fSmrg [Tool to manipulate fat objects and archives on Mac OS X]) 9204642e01fSmrg _LT_DECL([], [OTOOL], [1], 9214642e01fSmrg [ldd/readelf like tool for Mach-O binaries on Mac OS X]) 9224642e01fSmrg _LT_DECL([], [OTOOL64], [1], 9234642e01fSmrg [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) 92405b261ecSmrg 92505b261ecSmrg AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], 92605b261ecSmrg [lt_cv_apple_cc_single_mod=no 92705b261ecSmrg if test -z "${LT_MULTI_MODULE}"; then 9284642e01fSmrg # By default we will add the -single_module flag. You can override 9294642e01fSmrg # by either setting the environment variable LT_MULTI_MODULE 9304642e01fSmrg # non-empty at configure time, or by adding -multi_module to the 9314642e01fSmrg # link flags. 9324642e01fSmrg rm -rf libconftest.dylib* 9334642e01fSmrg echo "int foo(void){return 1;}" > conftest.c 9344642e01fSmrg echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9354642e01fSmrg-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD 9364642e01fSmrg $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9374642e01fSmrg -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 9384642e01fSmrg _lt_result=$? 9394642e01fSmrg if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 9404642e01fSmrg lt_cv_apple_cc_single_mod=yes 9414642e01fSmrg else 9424642e01fSmrg cat conftest.err >&AS_MESSAGE_LOG_FD 9434642e01fSmrg fi 9444642e01fSmrg rm -rf libconftest.dylib* 9454642e01fSmrg rm -f conftest.* 94605b261ecSmrg fi]) 94705b261ecSmrg AC_CACHE_CHECK([for -exported_symbols_list linker flag], 94805b261ecSmrg [lt_cv_ld_exported_symbols_list], 94905b261ecSmrg [lt_cv_ld_exported_symbols_list=no 95005b261ecSmrg save_LDFLAGS=$LDFLAGS 95105b261ecSmrg echo "_main" > conftest.sym 95205b261ecSmrg LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 95305b261ecSmrg AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], 9544642e01fSmrg [lt_cv_ld_exported_symbols_list=yes], 9554642e01fSmrg [lt_cv_ld_exported_symbols_list=no]) 9564642e01fSmrg LDFLAGS="$save_LDFLAGS" 95705b261ecSmrg ]) 95805b261ecSmrg case $host_os in 9594642e01fSmrg rhapsody* | darwin1.[[012]]) 96005b261ecSmrg _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 96105b261ecSmrg darwin1.*) 9624642e01fSmrg _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 9634642e01fSmrg darwin*) # darwin 5.x on 96405b261ecSmrg # if running on 10.5 or later, the deployment target defaults 96505b261ecSmrg # to the OS version, if on x86, and 10.4, the deployment 96605b261ecSmrg # target defaults to 10.4. Don't you love it? 96705b261ecSmrg case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 9684642e01fSmrg 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) 9694642e01fSmrg _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 9704642e01fSmrg 10.[[012]]*) 9714642e01fSmrg _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 9724642e01fSmrg 10.*) 9734642e01fSmrg _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 97405b261ecSmrg esac 97505b261ecSmrg ;; 97605b261ecSmrg esac 97705b261ecSmrg if test "$lt_cv_apple_cc_single_mod" = "yes"; then 97805b261ecSmrg _lt_dar_single_mod='$single_module' 97905b261ecSmrg fi 98005b261ecSmrg if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 98105b261ecSmrg _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 98205b261ecSmrg else 9834642e01fSmrg _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 98405b261ecSmrg fi 98505b261ecSmrg if test "$DSYMUTIL" != ":"; then 9864642e01fSmrg _lt_dsymutil='~$DSYMUTIL $lib || :' 98705b261ecSmrg else 98805b261ecSmrg _lt_dsymutil= 98905b261ecSmrg fi 99005b261ecSmrg ;; 99105b261ecSmrg esac 99205b261ecSmrg]) 99305b261ecSmrg 9944642e01fSmrg 9954642e01fSmrg# _LT_DARWIN_LINKER_FEATURES 9964642e01fSmrg# -------------------------- 9974642e01fSmrg# Checks for linker and compiler features on darwin 9984642e01fSmrgm4_defun([_LT_DARWIN_LINKER_FEATURES], 9994642e01fSmrg[ 10004642e01fSmrg m4_require([_LT_REQUIRED_DARWIN_CHECKS]) 10014642e01fSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=no 10024642e01fSmrg _LT_TAGVAR(hardcode_direct, $1)=no 10034642e01fSmrg _LT_TAGVAR(hardcode_automatic, $1)=yes 10044642e01fSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 10054642e01fSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='' 10064642e01fSmrg _LT_TAGVAR(link_all_deplibs, $1)=yes 10074642e01fSmrg _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" 10084642e01fSmrg case $cc_basename in 10094642e01fSmrg ifort*) _lt_dar_can_shared=yes ;; 10104642e01fSmrg *) _lt_dar_can_shared=$GCC ;; 10114642e01fSmrg esac 10124642e01fSmrg if test "$_lt_dar_can_shared" = "yes"; then 10134642e01fSmrg output_verbose_link_cmd=echo 10144642e01fSmrg _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}" 10154642e01fSmrg _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 10164642e01fSmrg _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}" 10174642e01fSmrg _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}" 10184642e01fSmrg m4_if([$1], [CXX], 10194642e01fSmrg[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then 10204642e01fSmrg _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}" 10214642e01fSmrg _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}" 10224642e01fSmrg fi 10234642e01fSmrg],[]) 10244642e01fSmrg else 10254642e01fSmrg _LT_TAGVAR(ld_shlibs, $1)=no 10264642e01fSmrg fi 10274642e01fSmrg]) 10284642e01fSmrg 10294642e01fSmrg# _LT_SYS_MODULE_PATH_AIX 10304642e01fSmrg# ----------------------- 103105b261ecSmrg# Links a minimal program and checks the executable 103205b261ecSmrg# for the system default hardcoded library path. In most cases, 103305b261ecSmrg# this is /usr/lib:/lib, but when the MPI compilers are used 103405b261ecSmrg# the location of the communication and MPI libs are included too. 103505b261ecSmrg# If we don't find anything, use the default library path according 103605b261ecSmrg# to the aix ld manual. 10374642e01fSmrgm4_defun([_LT_SYS_MODULE_PATH_AIX], 10384642e01fSmrg[m4_require([_LT_DECL_SED])dnl 103905b261ecSmrgAC_LINK_IFELSE(AC_LANG_PROGRAM,[ 104005b261ecSmrglt_aix_libpath_sed=' 104105b261ecSmrg /Import File Strings/,/^$/ { 104205b261ecSmrg /^0/ { 104305b261ecSmrg s/^0 *\(.*\)$/\1/ 104405b261ecSmrg p 104505b261ecSmrg } 104605b261ecSmrg }' 104705b261ecSmrgaix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 104805b261ecSmrg# Check for a 64-bit object if we didn't find anything. 104905b261ecSmrgif test -z "$aix_libpath"; then 105005b261ecSmrg aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 105105b261ecSmrgfi],[]) 105205b261ecSmrgif test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10534642e01fSmrg])# _LT_SYS_MODULE_PATH_AIX 105405b261ecSmrg 105505b261ecSmrg 10564642e01fSmrg# _LT_SHELL_INIT(ARG) 10574642e01fSmrg# ------------------- 10584642e01fSmrgm4_define([_LT_SHELL_INIT], 105905b261ecSmrg[ifdef([AC_DIVERSION_NOTICE], 106005b261ecSmrg [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], 106105b261ecSmrg [AC_DIVERT_PUSH(NOTICE)]) 106205b261ecSmrg$1 106305b261ecSmrgAC_DIVERT_POP 10644642e01fSmrg])# _LT_SHELL_INIT 106505b261ecSmrg 106605b261ecSmrg 10674642e01fSmrg# _LT_PROG_ECHO_BACKSLASH 10684642e01fSmrg# ----------------------- 106905b261ecSmrg# Add some code to the start of the generated configure script which 107005b261ecSmrg# will find an echo command which doesn't interpret backslashes. 10714642e01fSmrgm4_defun([_LT_PROG_ECHO_BACKSLASH], 10724642e01fSmrg[_LT_SHELL_INIT([ 107305b261ecSmrg# Check that we are running under the correct shell. 107405b261ecSmrgSHELL=${CONFIG_SHELL-/bin/sh} 107505b261ecSmrg 10764642e01fSmrgcase X$lt_ECHO in 107705b261ecSmrgX*--fallback-echo) 107805b261ecSmrg # Remove one level of quotation (which was required for Make). 10794642e01fSmrg ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` 108005b261ecSmrg ;; 108105b261ecSmrgesac 108205b261ecSmrg 10834642e01fSmrgECHO=${lt_ECHO-echo} 108405b261ecSmrgif test "X[$]1" = X--no-reexec; then 108505b261ecSmrg # Discard the --no-reexec flag, and continue. 108605b261ecSmrg shift 108705b261ecSmrgelif test "X[$]1" = X--fallback-echo; then 108805b261ecSmrg # Avoid inline document here, it may be left over 108905b261ecSmrg : 10904642e01fSmrgelif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 10914642e01fSmrg # Yippee, $ECHO works! 109205b261ecSmrg : 109305b261ecSmrgelse 109405b261ecSmrg # Restart under the correct shell. 109505b261ecSmrg exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} 109605b261ecSmrgfi 109705b261ecSmrg 109805b261ecSmrgif test "X[$]1" = X--fallback-echo; then 109905b261ecSmrg # used as fallback echo 110005b261ecSmrg shift 11014642e01fSmrg cat <<_LT_EOF 110205b261ecSmrg[$]* 11034642e01fSmrg_LT_EOF 110405b261ecSmrg exit 0 110505b261ecSmrgfi 110605b261ecSmrg 110705b261ecSmrg# The HP-UX ksh and POSIX shell print the target directory to stdout 110805b261ecSmrg# if CDPATH is set. 110905b261ecSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 111005b261ecSmrg 11114642e01fSmrgif test -z "$lt_ECHO"; then 11124642e01fSmrg if test "X${echo_test_string+set}" != Xset; then 11134642e01fSmrg # find a string as large as possible, as long as the shell can cope with it 11144642e01fSmrg for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do 11154642e01fSmrg # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 11164642e01fSmrg if { echo_test_string=`eval $cmd`; } 2>/dev/null && 11174642e01fSmrg { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 11184642e01fSmrg then 11194642e01fSmrg break 11204642e01fSmrg fi 11214642e01fSmrg done 11224642e01fSmrg fi 112305b261ecSmrg 11244642e01fSmrg if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 11254642e01fSmrg echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 11264642e01fSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 11274642e01fSmrg : 11284642e01fSmrg else 11294642e01fSmrg # The Solaris, AIX, and Digital Unix default echo programs unquote 11304642e01fSmrg # backslashes. This makes it impossible to quote backslashes using 11314642e01fSmrg # echo "$something" | sed 's/\\/\\\\/g' 11324642e01fSmrg # 11334642e01fSmrg # So, first we look for a working echo in the user's PATH. 113405b261ecSmrg 11354642e01fSmrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11364642e01fSmrg for dir in $PATH /usr/ucb; do 11374642e01fSmrg IFS="$lt_save_ifs" 11384642e01fSmrg if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 11394642e01fSmrg test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 11404642e01fSmrg echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 11414642e01fSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 11424642e01fSmrg ECHO="$dir/echo" 11434642e01fSmrg break 11444642e01fSmrg fi 11454642e01fSmrg done 114605b261ecSmrg IFS="$lt_save_ifs" 114705b261ecSmrg 11484642e01fSmrg if test "X$ECHO" = Xecho; then 11494642e01fSmrg # We didn't find a better echo, so look for alternatives. 11504642e01fSmrg if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 11514642e01fSmrg echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 11524642e01fSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 11534642e01fSmrg # This shell has a builtin print -r that does the trick. 11544642e01fSmrg ECHO='print -r' 11554642e01fSmrg elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 11564642e01fSmrg test "X$CONFIG_SHELL" != X/bin/ksh; then 11574642e01fSmrg # If we have ksh, try running configure again with it. 11584642e01fSmrg ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 11594642e01fSmrg export ORIGINAL_CONFIG_SHELL 11604642e01fSmrg CONFIG_SHELL=/bin/ksh 11614642e01fSmrg export CONFIG_SHELL 11624642e01fSmrg exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} 116305b261ecSmrg else 11644642e01fSmrg # Try using printf. 11654642e01fSmrg ECHO='printf %s\n' 11664642e01fSmrg if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 11674642e01fSmrg echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 11684642e01fSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 11694642e01fSmrg # Cool, printf works 11704642e01fSmrg : 11714642e01fSmrg elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && 11724642e01fSmrg test "X$echo_testing_string" = 'X\t' && 11734642e01fSmrg echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && 11744642e01fSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 11754642e01fSmrg CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 11764642e01fSmrg export CONFIG_SHELL 11774642e01fSmrg SHELL="$CONFIG_SHELL" 11784642e01fSmrg export SHELL 11794642e01fSmrg ECHO="$CONFIG_SHELL [$]0 --fallback-echo" 11804642e01fSmrg elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && 11814642e01fSmrg test "X$echo_testing_string" = 'X\t' && 11824642e01fSmrg echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && 11834642e01fSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 11844642e01fSmrg ECHO="$CONFIG_SHELL [$]0 --fallback-echo" 11854642e01fSmrg else 11864642e01fSmrg # maybe with a smaller string... 11874642e01fSmrg prev=: 118805b261ecSmrg 11894642e01fSmrg for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do 11904642e01fSmrg if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 11914642e01fSmrg then 11924642e01fSmrg break 11934642e01fSmrg fi 11944642e01fSmrg prev="$cmd" 11954642e01fSmrg done 119605b261ecSmrg 11974642e01fSmrg if test "$prev" != 'sed 50q "[$]0"'; then 11984642e01fSmrg echo_test_string=`eval $prev` 11994642e01fSmrg export echo_test_string 12004642e01fSmrg exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} 12014642e01fSmrg else 12024642e01fSmrg # Oops. We lost completely, so just stick with echo. 12034642e01fSmrg ECHO=echo 12044642e01fSmrg fi 12054642e01fSmrg fi 120605b261ecSmrg fi 120705b261ecSmrg fi 120805b261ecSmrg fi 120905b261ecSmrgfi 121005b261ecSmrg 121105b261ecSmrg# Copy echo and quote the copy suitably for passing to libtool from 121205b261ecSmrg# the Makefile, instead of quoting the original, which is used later. 12134642e01fSmrglt_ECHO=$ECHO 12144642e01fSmrgif test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then 12154642e01fSmrg lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" 121605b261ecSmrgfi 121705b261ecSmrg 12184642e01fSmrgAC_SUBST(lt_ECHO) 12194642e01fSmrg]) 12204642e01fSmrg_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) 12214642e01fSmrg_LT_DECL([], [ECHO], [1], 12224642e01fSmrg [An echo program that does not interpret backslashes]) 12234642e01fSmrg])# _LT_PROG_ECHO_BACKSLASH 122405b261ecSmrg 122505b261ecSmrg 12264642e01fSmrg# _LT_ENABLE_LOCK 12274642e01fSmrg# --------------- 12284642e01fSmrgm4_defun([_LT_ENABLE_LOCK], 122905b261ecSmrg[AC_ARG_ENABLE([libtool-lock], 12304642e01fSmrg [AS_HELP_STRING([--disable-libtool-lock], 12314642e01fSmrg [avoid locking (might break parallel builds)])]) 123205b261ecSmrgtest "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 123305b261ecSmrg 123405b261ecSmrg# Some flags need to be propagated to the compiler or linker for good 123505b261ecSmrg# libtool support. 123605b261ecSmrgcase $host in 123705b261ecSmrgia64-*-hpux*) 123805b261ecSmrg # Find out which ABI we are using. 123905b261ecSmrg echo 'int i;' > conftest.$ac_ext 124005b261ecSmrg if AC_TRY_EVAL(ac_compile); then 124105b261ecSmrg case `/usr/bin/file conftest.$ac_objext` in 12424642e01fSmrg *ELF-32*) 12434642e01fSmrg HPUX_IA64_MODE="32" 12444642e01fSmrg ;; 12454642e01fSmrg *ELF-64*) 12464642e01fSmrg HPUX_IA64_MODE="64" 12474642e01fSmrg ;; 124805b261ecSmrg esac 124905b261ecSmrg fi 125005b261ecSmrg rm -rf conftest* 125105b261ecSmrg ;; 125205b261ecSmrg*-*-irix6*) 125305b261ecSmrg # Find out which ABI we are using. 125405b261ecSmrg echo '[#]line __oline__ "configure"' > conftest.$ac_ext 125505b261ecSmrg if AC_TRY_EVAL(ac_compile); then 12564642e01fSmrg if test "$lt_cv_prog_gnu_ld" = yes; then 12574642e01fSmrg case `/usr/bin/file conftest.$ac_objext` in 12584642e01fSmrg *32-bit*) 12594642e01fSmrg LD="${LD-ld} -melf32bsmip" 12604642e01fSmrg ;; 12614642e01fSmrg *N32*) 12624642e01fSmrg LD="${LD-ld} -melf32bmipn32" 12634642e01fSmrg ;; 12644642e01fSmrg *64-bit*) 12654642e01fSmrg LD="${LD-ld} -melf64bmip" 12664642e01fSmrg ;; 12674642e01fSmrg esac 12684642e01fSmrg else 12694642e01fSmrg case `/usr/bin/file conftest.$ac_objext` in 12704642e01fSmrg *32-bit*) 12714642e01fSmrg LD="${LD-ld} -32" 12724642e01fSmrg ;; 12734642e01fSmrg *N32*) 12744642e01fSmrg LD="${LD-ld} -n32" 12754642e01fSmrg ;; 12764642e01fSmrg *64-bit*) 12774642e01fSmrg LD="${LD-ld} -64" 12784642e01fSmrg ;; 12794642e01fSmrg esac 12804642e01fSmrg fi 128105b261ecSmrg fi 128205b261ecSmrg rm -rf conftest* 128305b261ecSmrg ;; 128405b261ecSmrg 128505b261ecSmrgx86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 12864642e01fSmrgs390*-*linux*|s390*-*tpf*|sparc*-*linux*) 128705b261ecSmrg # Find out which ABI we are using. 128805b261ecSmrg echo 'int i;' > conftest.$ac_ext 128905b261ecSmrg if AC_TRY_EVAL(ac_compile); then 129005b261ecSmrg case `/usr/bin/file conftest.o` in 12914642e01fSmrg *32-bit*) 12924642e01fSmrg case $host in 12934642e01fSmrg x86_64-*kfreebsd*-gnu) 12944642e01fSmrg LD="${LD-ld} -m elf_i386_fbsd" 12954642e01fSmrg ;; 12964642e01fSmrg x86_64-*linux*) 12974642e01fSmrg LD="${LD-ld} -m elf_i386" 12984642e01fSmrg ;; 12994642e01fSmrg ppc64-*linux*|powerpc64-*linux*) 13004642e01fSmrg LD="${LD-ld} -m elf32ppclinux" 13014642e01fSmrg ;; 13024642e01fSmrg s390x-*linux*) 13034642e01fSmrg LD="${LD-ld} -m elf_s390" 13044642e01fSmrg ;; 13054642e01fSmrg sparc64-*linux*) 13064642e01fSmrg LD="${LD-ld} -m elf32_sparc" 13074642e01fSmrg ;; 13084642e01fSmrg esac 13094642e01fSmrg ;; 13104642e01fSmrg *64-bit*) 13114642e01fSmrg case $host in 13124642e01fSmrg x86_64-*kfreebsd*-gnu) 13134642e01fSmrg LD="${LD-ld} -m elf_x86_64_fbsd" 13144642e01fSmrg ;; 13154642e01fSmrg x86_64-*linux*) 13164642e01fSmrg LD="${LD-ld} -m elf_x86_64" 13174642e01fSmrg ;; 13184642e01fSmrg ppc*-*linux*|powerpc*-*linux*) 13194642e01fSmrg LD="${LD-ld} -m elf64ppc" 13204642e01fSmrg ;; 13214642e01fSmrg s390*-*linux*|s390*-*tpf*) 13224642e01fSmrg LD="${LD-ld} -m elf64_s390" 13234642e01fSmrg ;; 13244642e01fSmrg sparc*-*linux*) 13254642e01fSmrg LD="${LD-ld} -m elf64_sparc" 13264642e01fSmrg ;; 13274642e01fSmrg esac 13284642e01fSmrg ;; 132905b261ecSmrg esac 133005b261ecSmrg fi 133105b261ecSmrg rm -rf conftest* 133205b261ecSmrg ;; 133305b261ecSmrg 133405b261ecSmrg*-*-sco3.2v5*) 133505b261ecSmrg # On SCO OpenServer 5, we need -belf to get full-featured binaries. 133605b261ecSmrg SAVE_CFLAGS="$CFLAGS" 133705b261ecSmrg CFLAGS="$CFLAGS -belf" 133805b261ecSmrg AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, 133905b261ecSmrg [AC_LANG_PUSH(C) 13404642e01fSmrg AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) 134105b261ecSmrg AC_LANG_POP]) 134205b261ecSmrg if test x"$lt_cv_cc_needs_belf" != x"yes"; then 134305b261ecSmrg # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 134405b261ecSmrg CFLAGS="$SAVE_CFLAGS" 134505b261ecSmrg fi 134605b261ecSmrg ;; 134705b261ecSmrgsparc*-*solaris*) 134805b261ecSmrg # Find out which ABI we are using. 134905b261ecSmrg echo 'int i;' > conftest.$ac_ext 135005b261ecSmrg if AC_TRY_EVAL(ac_compile); then 135105b261ecSmrg case `/usr/bin/file conftest.o` in 135205b261ecSmrg *64-bit*) 135305b261ecSmrg case $lt_cv_prog_gnu_ld in 135405b261ecSmrg yes*) LD="${LD-ld} -m elf64_sparc" ;; 135505b261ecSmrg *) 13564642e01fSmrg if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 135705b261ecSmrg LD="${LD-ld} -64" 135805b261ecSmrg fi 135905b261ecSmrg ;; 136005b261ecSmrg esac 136105b261ecSmrg ;; 136205b261ecSmrg esac 136305b261ecSmrg fi 136405b261ecSmrg rm -rf conftest* 136505b261ecSmrg ;; 136605b261ecSmrgesac 136705b261ecSmrg 136805b261ecSmrgneed_locks="$enable_libtool_lock" 13694642e01fSmrg])# _LT_ENABLE_LOCK 13704642e01fSmrg 13714642e01fSmrg 13724642e01fSmrg# _LT_CMD_OLD_ARCHIVE 13734642e01fSmrg# ------------------- 13744642e01fSmrgm4_defun([_LT_CMD_OLD_ARCHIVE], 13754642e01fSmrg[AC_CHECK_TOOL(AR, ar, false) 13764642e01fSmrgtest -z "$AR" && AR=ar 13774642e01fSmrgtest -z "$AR_FLAGS" && AR_FLAGS=cru 13784642e01fSmrg_LT_DECL([], [AR], [1], [The archiver]) 13794642e01fSmrg_LT_DECL([], [AR_FLAGS], [1]) 13804642e01fSmrg 13814642e01fSmrgAC_CHECK_TOOL(STRIP, strip, :) 13824642e01fSmrgtest -z "$STRIP" && STRIP=: 13834642e01fSmrg_LT_DECL([], [STRIP], [1], [A symbol stripping program]) 13844642e01fSmrg 13854642e01fSmrgAC_CHECK_TOOL(RANLIB, ranlib, :) 13864642e01fSmrgtest -z "$RANLIB" && RANLIB=: 13874642e01fSmrg_LT_DECL([], [RANLIB], [1], 13884642e01fSmrg [Commands used to install an old-style archive]) 13894642e01fSmrg 13904642e01fSmrg# Determine commands to create old-style static archives. 13914642e01fSmrgold_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 13924642e01fSmrgold_postinstall_cmds='chmod 644 $oldlib' 13934642e01fSmrgold_postuninstall_cmds= 139405b261ecSmrg 13954642e01fSmrgif test -n "$RANLIB"; then 13964642e01fSmrg case $host_os in 13974642e01fSmrg openbsd*) 13984642e01fSmrg old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 13994642e01fSmrg ;; 14004642e01fSmrg *) 14014642e01fSmrg old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 14024642e01fSmrg ;; 14034642e01fSmrg esac 14044642e01fSmrg old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 14054642e01fSmrgfi 14064642e01fSmrg_LT_DECL([], [old_postinstall_cmds], [2]) 14074642e01fSmrg_LT_DECL([], [old_postuninstall_cmds], [2]) 14084642e01fSmrg_LT_TAGDECL([], [old_archive_cmds], [2], 14094642e01fSmrg [Commands used to build an old-style archive]) 14104642e01fSmrg])# _LT_CMD_OLD_ARCHIVE 141105b261ecSmrg 141205b261ecSmrg 14134642e01fSmrg# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 141405b261ecSmrg# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) 141505b261ecSmrg# ---------------------------------------------------------------- 141605b261ecSmrg# Check whether the given compiler option works 14174642e01fSmrgAC_DEFUN([_LT_COMPILER_OPTION], 14184642e01fSmrg[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 14194642e01fSmrgm4_require([_LT_DECL_SED])dnl 142005b261ecSmrgAC_CACHE_CHECK([$1], [$2], 142105b261ecSmrg [$2=no 14224642e01fSmrg m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) 142305b261ecSmrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 142405b261ecSmrg lt_compiler_flag="$3" 142505b261ecSmrg # Insert the option either (1) after the last *FLAGS variable, or 142605b261ecSmrg # (2) before a word containing "conftest.", or (3) at the end. 142705b261ecSmrg # Note that $ac_compile itself does not contain backslashes and begins 142805b261ecSmrg # with a dollar sign (not a hyphen), so the echo should work correctly. 142905b261ecSmrg # The option is referenced via a variable to avoid confusing sed. 143005b261ecSmrg lt_compile=`echo "$ac_compile" | $SED \ 143105b261ecSmrg -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 143205b261ecSmrg -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 143305b261ecSmrg -e 's:$: $lt_compiler_flag:'` 143405b261ecSmrg (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 143505b261ecSmrg (eval "$lt_compile" 2>conftest.err) 143605b261ecSmrg ac_status=$? 143705b261ecSmrg cat conftest.err >&AS_MESSAGE_LOG_FD 143805b261ecSmrg echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 143905b261ecSmrg if (exit $ac_status) && test -s "$ac_outfile"; then 144005b261ecSmrg # The compiler can only warn and ignore the option if not recognized 144105b261ecSmrg # So say no if there are warnings other than the usual output. 14424642e01fSmrg $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 144305b261ecSmrg $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 144405b261ecSmrg if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 144505b261ecSmrg $2=yes 144605b261ecSmrg fi 144705b261ecSmrg fi 14484642e01fSmrg $RM conftest* 144905b261ecSmrg]) 145005b261ecSmrg 145105b261ecSmrgif test x"[$]$2" = xyes; then 14524642e01fSmrg m4_if([$5], , :, [$5]) 145305b261ecSmrgelse 14544642e01fSmrg m4_if([$6], , :, [$6]) 145505b261ecSmrgfi 14564642e01fSmrg])# _LT_COMPILER_OPTION 145705b261ecSmrg 14584642e01fSmrg# Old name: 14594642e01fSmrgAU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) 14604642e01fSmrgdnl aclocal-1.4 backwards compatibility: 14614642e01fSmrgdnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) 146205b261ecSmrg 14634642e01fSmrg 14644642e01fSmrg# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 14654642e01fSmrg# [ACTION-SUCCESS], [ACTION-FAILURE]) 14664642e01fSmrg# ---------------------------------------------------- 14674642e01fSmrg# Check whether the given linker option works 14684642e01fSmrgAC_DEFUN([_LT_LINKER_OPTION], 14694642e01fSmrg[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 14704642e01fSmrgm4_require([_LT_DECL_SED])dnl 147105b261ecSmrgAC_CACHE_CHECK([$1], [$2], 147205b261ecSmrg [$2=no 147305b261ecSmrg save_LDFLAGS="$LDFLAGS" 147405b261ecSmrg LDFLAGS="$LDFLAGS $3" 147505b261ecSmrg echo "$lt_simple_link_test_code" > conftest.$ac_ext 147605b261ecSmrg if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 147705b261ecSmrg # The linker can only warn and ignore the option if not recognized 147805b261ecSmrg # So say no if there are warnings 147905b261ecSmrg if test -s conftest.err; then 148005b261ecSmrg # Append any errors to the config.log. 148105b261ecSmrg cat conftest.err 1>&AS_MESSAGE_LOG_FD 14824642e01fSmrg $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 148305b261ecSmrg $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 148405b261ecSmrg if diff conftest.exp conftest.er2 >/dev/null; then 148505b261ecSmrg $2=yes 148605b261ecSmrg fi 148705b261ecSmrg else 148805b261ecSmrg $2=yes 148905b261ecSmrg fi 149005b261ecSmrg fi 14914642e01fSmrg $RM -r conftest* 149205b261ecSmrg LDFLAGS="$save_LDFLAGS" 149305b261ecSmrg]) 149405b261ecSmrg 149505b261ecSmrgif test x"[$]$2" = xyes; then 14964642e01fSmrg m4_if([$4], , :, [$4]) 149705b261ecSmrgelse 14984642e01fSmrg m4_if([$5], , :, [$5]) 149905b261ecSmrgfi 15004642e01fSmrg])# _LT_LINKER_OPTION 150105b261ecSmrg 15024642e01fSmrg# Old name: 15034642e01fSmrgAU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) 15044642e01fSmrgdnl aclocal-1.4 backwards compatibility: 15054642e01fSmrgdnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) 150605b261ecSmrg 15074642e01fSmrg 15084642e01fSmrg# LT_CMD_MAX_LEN 15094642e01fSmrg#--------------- 15104642e01fSmrgAC_DEFUN([LT_CMD_MAX_LEN], 15114642e01fSmrg[AC_REQUIRE([AC_CANONICAL_HOST])dnl 15124642e01fSmrg# find the maximum length of command line arguments 151305b261ecSmrgAC_MSG_CHECKING([the maximum length of command line arguments]) 151405b261ecSmrgAC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl 151505b261ecSmrg i=0 151605b261ecSmrg teststring="ABCD" 151705b261ecSmrg 151805b261ecSmrg case $build_os in 151905b261ecSmrg msdosdjgpp*) 152005b261ecSmrg # On DJGPP, this test can blow up pretty badly due to problems in libc 152105b261ecSmrg # (any single argument exceeding 2000 bytes causes a buffer overrun 152205b261ecSmrg # during glob expansion). Even if it were fixed, the result of this 152305b261ecSmrg # check would be larger than it should be. 152405b261ecSmrg lt_cv_sys_max_cmd_len=12288; # 12K is about right 152505b261ecSmrg ;; 152605b261ecSmrg 152705b261ecSmrg gnu*) 152805b261ecSmrg # Under GNU Hurd, this test is not required because there is 152905b261ecSmrg # no limit to the length of command line arguments. 153005b261ecSmrg # Libtool will interpret -1 as no limit whatsoever 153105b261ecSmrg lt_cv_sys_max_cmd_len=-1; 153205b261ecSmrg ;; 153305b261ecSmrg 15344642e01fSmrg cygwin* | mingw* | cegcc*) 153505b261ecSmrg # On Win9x/ME, this test blows up -- it succeeds, but takes 153605b261ecSmrg # about 5 minutes as the teststring grows exponentially. 153705b261ecSmrg # Worse, since 9x/ME are not pre-emptively multitasking, 153805b261ecSmrg # you end up with a "frozen" computer, even though with patience 153905b261ecSmrg # the test eventually succeeds (with a max line length of 256k). 154005b261ecSmrg # Instead, let's just punt: use the minimum linelength reported by 154105b261ecSmrg # all of the supported platforms: 8192 (on NT/2K/XP). 154205b261ecSmrg lt_cv_sys_max_cmd_len=8192; 154305b261ecSmrg ;; 154405b261ecSmrg 154505b261ecSmrg amigaos*) 154605b261ecSmrg # On AmigaOS with pdksh, this test takes hours, literally. 154705b261ecSmrg # So we just punt and use a minimum line length of 8192. 154805b261ecSmrg lt_cv_sys_max_cmd_len=8192; 154905b261ecSmrg ;; 155005b261ecSmrg 155105b261ecSmrg netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 155205b261ecSmrg # This has been around since 386BSD, at least. Likely further. 155305b261ecSmrg if test -x /sbin/sysctl; then 155405b261ecSmrg lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 155505b261ecSmrg elif test -x /usr/sbin/sysctl; then 155605b261ecSmrg lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 155705b261ecSmrg else 155805b261ecSmrg lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 155905b261ecSmrg fi 156005b261ecSmrg # And add a safety zone 156105b261ecSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 156205b261ecSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 156305b261ecSmrg ;; 156405b261ecSmrg 156505b261ecSmrg interix*) 156605b261ecSmrg # We know the value 262144 and hardcode it with a safety zone (like BSD) 156705b261ecSmrg lt_cv_sys_max_cmd_len=196608 156805b261ecSmrg ;; 156905b261ecSmrg 157005b261ecSmrg osf*) 157105b261ecSmrg # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 157205b261ecSmrg # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 157305b261ecSmrg # nice to cause kernel panics so lets avoid the loop below. 157405b261ecSmrg # First set a reasonable default. 157505b261ecSmrg lt_cv_sys_max_cmd_len=16384 157605b261ecSmrg # 157705b261ecSmrg if test -x /sbin/sysconfig; then 157805b261ecSmrg case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 157905b261ecSmrg *1*) lt_cv_sys_max_cmd_len=-1 ;; 158005b261ecSmrg esac 158105b261ecSmrg fi 158205b261ecSmrg ;; 158305b261ecSmrg sco3.2v5*) 158405b261ecSmrg lt_cv_sys_max_cmd_len=102400 158505b261ecSmrg ;; 158605b261ecSmrg sysv5* | sco5v6* | sysv4.2uw2*) 158705b261ecSmrg kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 158805b261ecSmrg if test -n "$kargmax"; then 15894642e01fSmrg lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` 159005b261ecSmrg else 159105b261ecSmrg lt_cv_sys_max_cmd_len=32768 159205b261ecSmrg fi 159305b261ecSmrg ;; 159405b261ecSmrg *) 159505b261ecSmrg lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 159605b261ecSmrg if test -n "$lt_cv_sys_max_cmd_len"; then 159705b261ecSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 159805b261ecSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 159905b261ecSmrg else 16004642e01fSmrg # Make teststring a little bigger before we do anything with it. 16014642e01fSmrg # a 1K string should be a reasonable start. 16024642e01fSmrg for i in 1 2 3 4 5 6 7 8 ; do 16034642e01fSmrg teststring=$teststring$teststring 16044642e01fSmrg done 160505b261ecSmrg SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 16064642e01fSmrg # If test is not a shell built-in, we'll probably end up computing a 16074642e01fSmrg # maximum length that is only half of the actual maximum length, but 16084642e01fSmrg # we can't tell. 16094642e01fSmrg while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 16104642e01fSmrg = "XX$teststring$teststring"; } >/dev/null 2>&1 && 161105b261ecSmrg test $i != 17 # 1/2 MB should be enough 161205b261ecSmrg do 161305b261ecSmrg i=`expr $i + 1` 161405b261ecSmrg teststring=$teststring$teststring 161505b261ecSmrg done 16164642e01fSmrg # Only check the string length outside the loop. 16174642e01fSmrg lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 161805b261ecSmrg teststring= 16194642e01fSmrg # Add a significant safety factor because C++ compilers can tack on 16204642e01fSmrg # massive amounts of additional arguments before passing them to the 16214642e01fSmrg # linker. It appears as though 1/2 is a usable value. 162205b261ecSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 162305b261ecSmrg fi 162405b261ecSmrg ;; 162505b261ecSmrg esac 162605b261ecSmrg]) 162705b261ecSmrgif test -n $lt_cv_sys_max_cmd_len ; then 162805b261ecSmrg AC_MSG_RESULT($lt_cv_sys_max_cmd_len) 162905b261ecSmrgelse 163005b261ecSmrg AC_MSG_RESULT(none) 163105b261ecSmrgfi 16324642e01fSmrgmax_cmd_len=$lt_cv_sys_max_cmd_len 16334642e01fSmrg_LT_DECL([], [max_cmd_len], [0], 16344642e01fSmrg [What is the maximum length of a command?]) 16354642e01fSmrg])# LT_CMD_MAX_LEN 163605b261ecSmrg 16374642e01fSmrg# Old name: 16384642e01fSmrgAU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) 16394642e01fSmrgdnl aclocal-1.4 backwards compatibility: 16404642e01fSmrgdnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) 164105b261ecSmrg 16424642e01fSmrg 16434642e01fSmrg# _LT_HEADER_DLFCN 16444642e01fSmrg# ---------------- 16454642e01fSmrgm4_defun([_LT_HEADER_DLFCN], 16464642e01fSmrg[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl 16474642e01fSmrg])# _LT_HEADER_DLFCN 164805b261ecSmrg 164905b261ecSmrg 16504642e01fSmrg# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, 16514642e01fSmrg# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) 16524642e01fSmrg# ---------------------------------------------------------------- 16534642e01fSmrgm4_defun([_LT_TRY_DLOPEN_SELF], 16544642e01fSmrg[m4_require([_LT_HEADER_DLFCN])dnl 165505b261ecSmrgif test "$cross_compiling" = yes; then : 165605b261ecSmrg [$4] 165705b261ecSmrgelse 165805b261ecSmrg lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 165905b261ecSmrg lt_status=$lt_dlunknown 16604642e01fSmrg cat > conftest.$ac_ext <<_LT_EOF 166105b261ecSmrg[#line __oline__ "configure" 166205b261ecSmrg#include "confdefs.h" 166305b261ecSmrg 166405b261ecSmrg#if HAVE_DLFCN_H 166505b261ecSmrg#include <dlfcn.h> 166605b261ecSmrg#endif 166705b261ecSmrg 166805b261ecSmrg#include <stdio.h> 166905b261ecSmrg 167005b261ecSmrg#ifdef RTLD_GLOBAL 167105b261ecSmrg# define LT_DLGLOBAL RTLD_GLOBAL 167205b261ecSmrg#else 167305b261ecSmrg# ifdef DL_GLOBAL 167405b261ecSmrg# define LT_DLGLOBAL DL_GLOBAL 167505b261ecSmrg# else 167605b261ecSmrg# define LT_DLGLOBAL 0 167705b261ecSmrg# endif 167805b261ecSmrg#endif 167905b261ecSmrg 168005b261ecSmrg/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 168105b261ecSmrg find out it does not work in some platform. */ 168205b261ecSmrg#ifndef LT_DLLAZY_OR_NOW 168305b261ecSmrg# ifdef RTLD_LAZY 168405b261ecSmrg# define LT_DLLAZY_OR_NOW RTLD_LAZY 168505b261ecSmrg# else 168605b261ecSmrg# ifdef DL_LAZY 168705b261ecSmrg# define LT_DLLAZY_OR_NOW DL_LAZY 168805b261ecSmrg# else 168905b261ecSmrg# ifdef RTLD_NOW 169005b261ecSmrg# define LT_DLLAZY_OR_NOW RTLD_NOW 169105b261ecSmrg# else 169205b261ecSmrg# ifdef DL_NOW 169305b261ecSmrg# define LT_DLLAZY_OR_NOW DL_NOW 169405b261ecSmrg# else 169505b261ecSmrg# define LT_DLLAZY_OR_NOW 0 169605b261ecSmrg# endif 169705b261ecSmrg# endif 169805b261ecSmrg# endif 169905b261ecSmrg# endif 170005b261ecSmrg#endif 170105b261ecSmrg 170205b261ecSmrgvoid fnord() { int i=42;} 170305b261ecSmrgint main () 170405b261ecSmrg{ 170505b261ecSmrg void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 170605b261ecSmrg int status = $lt_dlunknown; 170705b261ecSmrg 170805b261ecSmrg if (self) 170905b261ecSmrg { 171005b261ecSmrg if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 171105b261ecSmrg else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 171205b261ecSmrg /* dlclose (self); */ 171305b261ecSmrg } 171405b261ecSmrg else 171505b261ecSmrg puts (dlerror ()); 171605b261ecSmrg 17174642e01fSmrg return status; 171805b261ecSmrg}] 17194642e01fSmrg_LT_EOF 172005b261ecSmrg if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then 172105b261ecSmrg (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null 172205b261ecSmrg lt_status=$? 172305b261ecSmrg case x$lt_status in 172405b261ecSmrg x$lt_dlno_uscore) $1 ;; 172505b261ecSmrg x$lt_dlneed_uscore) $2 ;; 172605b261ecSmrg x$lt_dlunknown|x*) $3 ;; 172705b261ecSmrg esac 172805b261ecSmrg else : 172905b261ecSmrg # compilation failed 173005b261ecSmrg $3 173105b261ecSmrg fi 173205b261ecSmrgfi 173305b261ecSmrgrm -fr conftest* 17344642e01fSmrg])# _LT_TRY_DLOPEN_SELF 173505b261ecSmrg 173605b261ecSmrg 17374642e01fSmrg# LT_SYS_DLOPEN_SELF 17384642e01fSmrg# ------------------ 17394642e01fSmrgAC_DEFUN([LT_SYS_DLOPEN_SELF], 17404642e01fSmrg[m4_require([_LT_HEADER_DLFCN])dnl 174105b261ecSmrgif test "x$enable_dlopen" != xyes; then 174205b261ecSmrg enable_dlopen=unknown 174305b261ecSmrg enable_dlopen_self=unknown 174405b261ecSmrg enable_dlopen_self_static=unknown 174505b261ecSmrgelse 174605b261ecSmrg lt_cv_dlopen=no 174705b261ecSmrg lt_cv_dlopen_libs= 174805b261ecSmrg 174905b261ecSmrg case $host_os in 175005b261ecSmrg beos*) 175105b261ecSmrg lt_cv_dlopen="load_add_on" 175205b261ecSmrg lt_cv_dlopen_libs= 175305b261ecSmrg lt_cv_dlopen_self=yes 175405b261ecSmrg ;; 175505b261ecSmrg 17564642e01fSmrg mingw* | pw32* | cegcc*) 175705b261ecSmrg lt_cv_dlopen="LoadLibrary" 175805b261ecSmrg lt_cv_dlopen_libs= 17594642e01fSmrg ;; 176005b261ecSmrg 176105b261ecSmrg cygwin*) 176205b261ecSmrg lt_cv_dlopen="dlopen" 176305b261ecSmrg lt_cv_dlopen_libs= 17644642e01fSmrg ;; 176505b261ecSmrg 176605b261ecSmrg darwin*) 176705b261ecSmrg # if libdl is installed we need to link against it 176805b261ecSmrg AC_CHECK_LIB([dl], [dlopen], 176905b261ecSmrg [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ 177005b261ecSmrg lt_cv_dlopen="dyld" 177105b261ecSmrg lt_cv_dlopen_libs= 177205b261ecSmrg lt_cv_dlopen_self=yes 177305b261ecSmrg ]) 17744642e01fSmrg ;; 177505b261ecSmrg 177605b261ecSmrg *) 177705b261ecSmrg AC_CHECK_FUNC([shl_load], 177805b261ecSmrg [lt_cv_dlopen="shl_load"], 177905b261ecSmrg [AC_CHECK_LIB([dld], [shl_load], 178005b261ecSmrg [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], 178105b261ecSmrg [AC_CHECK_FUNC([dlopen], 178205b261ecSmrg [lt_cv_dlopen="dlopen"], 178305b261ecSmrg [AC_CHECK_LIB([dl], [dlopen], 178405b261ecSmrg [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], 178505b261ecSmrg [AC_CHECK_LIB([svld], [dlopen], 178605b261ecSmrg [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], 178705b261ecSmrg [AC_CHECK_LIB([dld], [dld_link], 178805b261ecSmrg [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) 178905b261ecSmrg ]) 179005b261ecSmrg ]) 179105b261ecSmrg ]) 179205b261ecSmrg ]) 179305b261ecSmrg ]) 179405b261ecSmrg ;; 179505b261ecSmrg esac 179605b261ecSmrg 179705b261ecSmrg if test "x$lt_cv_dlopen" != xno; then 179805b261ecSmrg enable_dlopen=yes 179905b261ecSmrg else 180005b261ecSmrg enable_dlopen=no 180105b261ecSmrg fi 180205b261ecSmrg 180305b261ecSmrg case $lt_cv_dlopen in 180405b261ecSmrg dlopen) 180505b261ecSmrg save_CPPFLAGS="$CPPFLAGS" 180605b261ecSmrg test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 180705b261ecSmrg 180805b261ecSmrg save_LDFLAGS="$LDFLAGS" 180905b261ecSmrg wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 181005b261ecSmrg 181105b261ecSmrg save_LIBS="$LIBS" 181205b261ecSmrg LIBS="$lt_cv_dlopen_libs $LIBS" 181305b261ecSmrg 181405b261ecSmrg AC_CACHE_CHECK([whether a program can dlopen itself], 181505b261ecSmrg lt_cv_dlopen_self, [dnl 18164642e01fSmrg _LT_TRY_DLOPEN_SELF( 181705b261ecSmrg lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, 181805b261ecSmrg lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) 181905b261ecSmrg ]) 182005b261ecSmrg 182105b261ecSmrg if test "x$lt_cv_dlopen_self" = xyes; then 182205b261ecSmrg wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 182305b261ecSmrg AC_CACHE_CHECK([whether a statically linked program can dlopen itself], 18244642e01fSmrg lt_cv_dlopen_self_static, [dnl 18254642e01fSmrg _LT_TRY_DLOPEN_SELF( 182605b261ecSmrg lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, 182705b261ecSmrg lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) 182805b261ecSmrg ]) 182905b261ecSmrg fi 183005b261ecSmrg 183105b261ecSmrg CPPFLAGS="$save_CPPFLAGS" 183205b261ecSmrg LDFLAGS="$save_LDFLAGS" 183305b261ecSmrg LIBS="$save_LIBS" 183405b261ecSmrg ;; 183505b261ecSmrg esac 183605b261ecSmrg 183705b261ecSmrg case $lt_cv_dlopen_self in 183805b261ecSmrg yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 183905b261ecSmrg *) enable_dlopen_self=unknown ;; 184005b261ecSmrg esac 184105b261ecSmrg 184205b261ecSmrg case $lt_cv_dlopen_self_static in 184305b261ecSmrg yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 184405b261ecSmrg *) enable_dlopen_self_static=unknown ;; 184505b261ecSmrg esac 184605b261ecSmrgfi 18474642e01fSmrg_LT_DECL([dlopen_support], [enable_dlopen], [0], 18484642e01fSmrg [Whether dlopen is supported]) 18494642e01fSmrg_LT_DECL([dlopen_self], [enable_dlopen_self], [0], 18504642e01fSmrg [Whether dlopen of programs is supported]) 18514642e01fSmrg_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], 18524642e01fSmrg [Whether dlopen of statically linked programs is supported]) 18534642e01fSmrg])# LT_SYS_DLOPEN_SELF 185405b261ecSmrg 18554642e01fSmrg# Old name: 18564642e01fSmrgAU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) 18574642e01fSmrgdnl aclocal-1.4 backwards compatibility: 18584642e01fSmrgdnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) 185905b261ecSmrg 18604642e01fSmrg 18614642e01fSmrg# _LT_COMPILER_C_O([TAGNAME]) 18624642e01fSmrg# --------------------------- 18634642e01fSmrg# Check to see if options -c and -o are simultaneously supported by compiler. 18644642e01fSmrg# This macro does not hard code the compiler like AC_PROG_CC_C_O. 18654642e01fSmrgm4_defun([_LT_COMPILER_C_O], 18664642e01fSmrg[m4_require([_LT_DECL_SED])dnl 18674642e01fSmrgm4_require([_LT_FILEUTILS_DEFAULTS])dnl 18684642e01fSmrgm4_require([_LT_TAG_COMPILER])dnl 186905b261ecSmrgAC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], 18704642e01fSmrg [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], 18714642e01fSmrg [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no 18724642e01fSmrg $RM -r conftest 2>/dev/null 187305b261ecSmrg mkdir conftest 187405b261ecSmrg cd conftest 187505b261ecSmrg mkdir out 187605b261ecSmrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 187705b261ecSmrg 187805b261ecSmrg lt_compiler_flag="-o out/conftest2.$ac_objext" 187905b261ecSmrg # Insert the option either (1) after the last *FLAGS variable, or 188005b261ecSmrg # (2) before a word containing "conftest.", or (3) at the end. 188105b261ecSmrg # Note that $ac_compile itself does not contain backslashes and begins 188205b261ecSmrg # with a dollar sign (not a hyphen), so the echo should work correctly. 188305b261ecSmrg lt_compile=`echo "$ac_compile" | $SED \ 188405b261ecSmrg -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 188505b261ecSmrg -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 188605b261ecSmrg -e 's:$: $lt_compiler_flag:'` 188705b261ecSmrg (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 188805b261ecSmrg (eval "$lt_compile" 2>out/conftest.err) 188905b261ecSmrg ac_status=$? 189005b261ecSmrg cat out/conftest.err >&AS_MESSAGE_LOG_FD 189105b261ecSmrg echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 189205b261ecSmrg if (exit $ac_status) && test -s out/conftest2.$ac_objext 189305b261ecSmrg then 189405b261ecSmrg # The compiler can only warn and ignore the option if not recognized 189505b261ecSmrg # So say no if there are warnings 18964642e01fSmrg $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 189705b261ecSmrg $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 189805b261ecSmrg if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 18994642e01fSmrg _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 190005b261ecSmrg fi 190105b261ecSmrg fi 190205b261ecSmrg chmod u+w . 2>&AS_MESSAGE_LOG_FD 19034642e01fSmrg $RM conftest* 190405b261ecSmrg # SGI C++ compiler will create directory out/ii_files/ for 190505b261ecSmrg # template instantiation 19064642e01fSmrg test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 19074642e01fSmrg $RM out/* && rmdir out 190805b261ecSmrg cd .. 19094642e01fSmrg $RM -r conftest 19104642e01fSmrg $RM conftest* 191105b261ecSmrg]) 19124642e01fSmrg_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], 19134642e01fSmrg [Does compiler simultaneously support -c and -o options?]) 19144642e01fSmrg])# _LT_COMPILER_C_O 191505b261ecSmrg 191605b261ecSmrg 19174642e01fSmrg# _LT_COMPILER_FILE_LOCKS([TAGNAME]) 19184642e01fSmrg# ---------------------------------- 191905b261ecSmrg# Check to see if we can do hard links to lock some files if needed 19204642e01fSmrgm4_defun([_LT_COMPILER_FILE_LOCKS], 19214642e01fSmrg[m4_require([_LT_ENABLE_LOCK])dnl 19224642e01fSmrgm4_require([_LT_FILEUTILS_DEFAULTS])dnl 19234642e01fSmrg_LT_COMPILER_C_O([$1]) 192405b261ecSmrg 192505b261ecSmrghard_links="nottested" 19264642e01fSmrgif test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then 192705b261ecSmrg # do not overwrite the value of need_locks provided by the user 192805b261ecSmrg AC_MSG_CHECKING([if we can lock with hard links]) 192905b261ecSmrg hard_links=yes 19304642e01fSmrg $RM conftest* 193105b261ecSmrg ln conftest.a conftest.b 2>/dev/null && hard_links=no 193205b261ecSmrg touch conftest.a 193305b261ecSmrg ln conftest.a conftest.b 2>&5 || hard_links=no 193405b261ecSmrg ln conftest.a conftest.b 2>/dev/null && hard_links=no 193505b261ecSmrg AC_MSG_RESULT([$hard_links]) 193605b261ecSmrg if test "$hard_links" = no; then 193705b261ecSmrg AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) 193805b261ecSmrg need_locks=warn 193905b261ecSmrg fi 194005b261ecSmrgelse 194105b261ecSmrg need_locks=no 194205b261ecSmrgfi 19434642e01fSmrg_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) 19444642e01fSmrg])# _LT_COMPILER_FILE_LOCKS 194505b261ecSmrg 194605b261ecSmrg 19474642e01fSmrg# _LT_CHECK_OBJDIR 19484642e01fSmrg# ---------------- 19494642e01fSmrgm4_defun([_LT_CHECK_OBJDIR], 195005b261ecSmrg[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], 195105b261ecSmrg[rm -f .libs 2>/dev/null 195205b261ecSmrgmkdir .libs 2>/dev/null 195305b261ecSmrgif test -d .libs; then 195405b261ecSmrg lt_cv_objdir=.libs 195505b261ecSmrgelse 195605b261ecSmrg # MS-DOS does not allow filenames that begin with a dot. 195705b261ecSmrg lt_cv_objdir=_libs 195805b261ecSmrgfi 195905b261ecSmrgrmdir .libs 2>/dev/null]) 196005b261ecSmrgobjdir=$lt_cv_objdir 19614642e01fSmrg_LT_DECL([], [objdir], [0], 19624642e01fSmrg [The name of the directory that contains temporary libtool files])dnl 19634642e01fSmrgm4_pattern_allow([LT_OBJDIR])dnl 19644642e01fSmrgAC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/", 19654642e01fSmrg [Define to the sub-directory in which libtool stores uninstalled libraries.]) 19664642e01fSmrg])# _LT_CHECK_OBJDIR 196705b261ecSmrg 196805b261ecSmrg 19694642e01fSmrg# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) 19704642e01fSmrg# -------------------------------------- 197105b261ecSmrg# Check hardcoding attributes. 19724642e01fSmrgm4_defun([_LT_LINKER_HARDCODE_LIBPATH], 197305b261ecSmrg[AC_MSG_CHECKING([how to hardcode library paths into programs]) 19744642e01fSmrg_LT_TAGVAR(hardcode_action, $1)= 19754642e01fSmrgif test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || 19764642e01fSmrg test -n "$_LT_TAGVAR(runpath_var, $1)" || 19774642e01fSmrg test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then 197805b261ecSmrg 19794642e01fSmrg # We can hardcode non-existent directories. 19804642e01fSmrg if test "$_LT_TAGVAR(hardcode_direct, $1)" != no && 198105b261ecSmrg # If the only mechanism to avoid hardcoding is shlibpath_var, we 198205b261ecSmrg # have to relink, otherwise we might link with an installed library 198305b261ecSmrg # when we should be linking with a yet-to-be-installed one 19844642e01fSmrg ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no && 19854642e01fSmrg test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then 198605b261ecSmrg # Linking always hardcodes the temporary library directory. 19874642e01fSmrg _LT_TAGVAR(hardcode_action, $1)=relink 198805b261ecSmrg else 198905b261ecSmrg # We can link without hardcoding, and we can hardcode nonexisting dirs. 19904642e01fSmrg _LT_TAGVAR(hardcode_action, $1)=immediate 199105b261ecSmrg fi 199205b261ecSmrgelse 199305b261ecSmrg # We cannot hardcode anything, or else we can only hardcode existing 199405b261ecSmrg # directories. 19954642e01fSmrg _LT_TAGVAR(hardcode_action, $1)=unsupported 199605b261ecSmrgfi 19974642e01fSmrgAC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) 199805b261ecSmrg 19994642e01fSmrgif test "$_LT_TAGVAR(hardcode_action, $1)" = relink || 20004642e01fSmrg test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then 200105b261ecSmrg # Fast installation is not supported 200205b261ecSmrg enable_fast_install=no 200305b261ecSmrgelif test "$shlibpath_overrides_runpath" = yes || 200405b261ecSmrg test "$enable_shared" = no; then 200505b261ecSmrg # Fast installation is not necessary 200605b261ecSmrg enable_fast_install=needless 200705b261ecSmrgfi 20084642e01fSmrg_LT_TAGDECL([], [hardcode_action], [0], 20094642e01fSmrg [How to hardcode a shared library path into an executable]) 20104642e01fSmrg])# _LT_LINKER_HARDCODE_LIBPATH 201105b261ecSmrg 201205b261ecSmrg 20134642e01fSmrg# _LT_CMD_STRIPLIB 20144642e01fSmrg# ---------------- 20154642e01fSmrgm4_defun([_LT_CMD_STRIPLIB], 20164642e01fSmrg[m4_require([_LT_DECL_EGREP]) 20174642e01fSmrgstriplib= 201805b261ecSmrgold_striplib= 201905b261ecSmrgAC_MSG_CHECKING([whether stripping libraries is possible]) 20204642e01fSmrgif test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 202105b261ecSmrg test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 202205b261ecSmrg test -z "$striplib" && striplib="$STRIP --strip-unneeded" 202305b261ecSmrg AC_MSG_RESULT([yes]) 202405b261ecSmrgelse 202505b261ecSmrg# FIXME - insert some real tests, host_os isn't really good enough 202605b261ecSmrg case $host_os in 20274642e01fSmrg darwin*) 20284642e01fSmrg if test -n "$STRIP" ; then 20294642e01fSmrg striplib="$STRIP -x" 20304642e01fSmrg old_striplib="$STRIP -S" 20314642e01fSmrg AC_MSG_RESULT([yes]) 20324642e01fSmrg else 20334642e01fSmrg AC_MSG_RESULT([no]) 20344642e01fSmrg fi 20354642e01fSmrg ;; 20364642e01fSmrg *) 20374642e01fSmrg AC_MSG_RESULT([no]) 203805b261ecSmrg ;; 203905b261ecSmrg esac 204005b261ecSmrgfi 20414642e01fSmrg_LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) 20424642e01fSmrg_LT_DECL([], [striplib], [1]) 20434642e01fSmrg])# _LT_CMD_STRIPLIB 204405b261ecSmrg 204505b261ecSmrg 20464642e01fSmrg# _LT_SYS_DYNAMIC_LINKER([TAG]) 204705b261ecSmrg# ----------------------------- 204805b261ecSmrg# PORTME Fill in your ld.so characteristics 20494642e01fSmrgm4_defun([_LT_SYS_DYNAMIC_LINKER], 20504642e01fSmrg[AC_REQUIRE([AC_CANONICAL_HOST])dnl 20514642e01fSmrgm4_require([_LT_DECL_EGREP])dnl 20524642e01fSmrgm4_require([_LT_FILEUTILS_DEFAULTS])dnl 20534642e01fSmrgm4_require([_LT_DECL_OBJDUMP])dnl 20544642e01fSmrgm4_require([_LT_DECL_SED])dnl 205505b261ecSmrgAC_MSG_CHECKING([dynamic linker characteristics]) 20564642e01fSmrgm4_if([$1], 20574642e01fSmrg [], [ 205805b261ecSmrgif test "$GCC" = yes; then 205905b261ecSmrg case $host_os in 206005b261ecSmrg darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 206105b261ecSmrg *) lt_awk_arg="/^libraries:/" ;; 206205b261ecSmrg esac 206305b261ecSmrg lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 20644642e01fSmrg if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 206505b261ecSmrg # if the path contains ";" then we assume it to be the separator 206605b261ecSmrg # otherwise default to the standard path separator (i.e. ":") - it is 206705b261ecSmrg # assumed that no part of a normal pathname contains ";" but that should 206805b261ecSmrg # okay in the real world where ";" in dirpaths is itself problematic. 20694642e01fSmrg lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 207005b261ecSmrg else 20714642e01fSmrg lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 207205b261ecSmrg fi 207305b261ecSmrg # Ok, now we have the path, separated by spaces, we can step through it 207405b261ecSmrg # and add multilib dir if necessary. 207505b261ecSmrg lt_tmp_lt_search_path_spec= 207605b261ecSmrg lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 207705b261ecSmrg for lt_sys_path in $lt_search_path_spec; do 207805b261ecSmrg if test -d "$lt_sys_path/$lt_multi_os_dir"; then 207905b261ecSmrg lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 208005b261ecSmrg else 208105b261ecSmrg test -d "$lt_sys_path" && \ 208205b261ecSmrg lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 208305b261ecSmrg fi 208405b261ecSmrg done 20854642e01fSmrg lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 208605b261ecSmrgBEGIN {RS=" "; FS="/|\n";} { 208705b261ecSmrg lt_foo=""; 208805b261ecSmrg lt_count=0; 208905b261ecSmrg for (lt_i = NF; lt_i > 0; lt_i--) { 209005b261ecSmrg if ($lt_i != "" && $lt_i != ".") { 209105b261ecSmrg if ($lt_i == "..") { 209205b261ecSmrg lt_count++; 209305b261ecSmrg } else { 209405b261ecSmrg if (lt_count == 0) { 209505b261ecSmrg lt_foo="/" $lt_i lt_foo; 209605b261ecSmrg } else { 209705b261ecSmrg lt_count--; 209805b261ecSmrg } 209905b261ecSmrg } 210005b261ecSmrg } 210105b261ecSmrg } 210205b261ecSmrg if (lt_foo != "") { lt_freq[[lt_foo]]++; } 210305b261ecSmrg if (lt_freq[[lt_foo]] == 1) { print lt_foo; } 210405b261ecSmrg}'` 21054642e01fSmrg sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 210605b261ecSmrgelse 210705b261ecSmrg sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 210805b261ecSmrgfi]) 21094642e01fSmrglibrary_names_spec= 21104642e01fSmrglibname_spec='lib$name' 21114642e01fSmrgsoname_spec= 21124642e01fSmrgshrext_cmds=".so" 21134642e01fSmrgpostinstall_cmds= 21144642e01fSmrgpostuninstall_cmds= 21154642e01fSmrgfinish_cmds= 21164642e01fSmrgfinish_eval= 21174642e01fSmrgshlibpath_var= 21184642e01fSmrgshlibpath_overrides_runpath=unknown 21194642e01fSmrgversion_type=none 21204642e01fSmrgdynamic_linker="$host_os ld.so" 21214642e01fSmrgsys_lib_dlsearch_path_spec="/lib /usr/lib" 212205b261ecSmrgneed_lib_prefix=unknown 212305b261ecSmrghardcode_into_libs=no 212405b261ecSmrg 212505b261ecSmrg# when you set need_version to no, make sure it does not cause -set_version 212605b261ecSmrg# flags to be left without arguments 212705b261ecSmrgneed_version=unknown 212805b261ecSmrg 212905b261ecSmrgcase $host_os in 213005b261ecSmrgaix3*) 213105b261ecSmrg version_type=linux 213205b261ecSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 213305b261ecSmrg shlibpath_var=LIBPATH 213405b261ecSmrg 213505b261ecSmrg # AIX 3 has no versioning support, so we append a major version to the name. 213605b261ecSmrg soname_spec='${libname}${release}${shared_ext}$major' 213705b261ecSmrg ;; 213805b261ecSmrg 213905b261ecSmrgaix[[4-9]]*) 214005b261ecSmrg version_type=linux 214105b261ecSmrg need_lib_prefix=no 214205b261ecSmrg need_version=no 214305b261ecSmrg hardcode_into_libs=yes 214405b261ecSmrg if test "$host_cpu" = ia64; then 214505b261ecSmrg # AIX 5 supports IA64 214605b261ecSmrg library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 214705b261ecSmrg shlibpath_var=LD_LIBRARY_PATH 214805b261ecSmrg else 214905b261ecSmrg # With GCC up to 2.95.x, collect2 would create an import file 215005b261ecSmrg # for dependence libraries. The import file would start with 215105b261ecSmrg # the line `#! .'. This would cause the generated library to 215205b261ecSmrg # depend on `.', always an invalid library. This was fixed in 215305b261ecSmrg # development snapshots of GCC prior to 3.0. 215405b261ecSmrg case $host_os in 215505b261ecSmrg aix4 | aix4.[[01]] | aix4.[[01]].*) 215605b261ecSmrg if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 215705b261ecSmrg echo ' yes ' 21584642e01fSmrg echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 215905b261ecSmrg : 216005b261ecSmrg else 216105b261ecSmrg can_build_shared=no 216205b261ecSmrg fi 216305b261ecSmrg ;; 216405b261ecSmrg esac 216505b261ecSmrg # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 216605b261ecSmrg # soname into executable. Probably we can add versioning support to 216705b261ecSmrg # collect2, so additional links can be useful in future. 216805b261ecSmrg if test "$aix_use_runtimelinking" = yes; then 216905b261ecSmrg # If using run time linking (on AIX 4.2 or later) use lib<name>.so 217005b261ecSmrg # instead of lib<name>.a to let people know that these are not 217105b261ecSmrg # typical AIX shared libraries. 217205b261ecSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 217305b261ecSmrg else 217405b261ecSmrg # We preserve .a as extension for shared libraries through AIX4.2 217505b261ecSmrg # and later when we are not doing run time linking. 217605b261ecSmrg library_names_spec='${libname}${release}.a $libname.a' 217705b261ecSmrg soname_spec='${libname}${release}${shared_ext}$major' 217805b261ecSmrg fi 217905b261ecSmrg shlibpath_var=LIBPATH 218005b261ecSmrg fi 218105b261ecSmrg ;; 218205b261ecSmrg 218305b261ecSmrgamigaos*) 21844642e01fSmrg case $host_cpu in 21854642e01fSmrg powerpc) 21864642e01fSmrg # Since July 2007 AmigaOS4 officially supports .so libraries. 21874642e01fSmrg # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 21884642e01fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21894642e01fSmrg ;; 21904642e01fSmrg m68k) 21914642e01fSmrg library_names_spec='$libname.ixlibrary $libname.a' 21924642e01fSmrg # Create ${libname}_ixlibrary.a entries in /sys/libs. 21934642e01fSmrg 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' 21944642e01fSmrg ;; 21954642e01fSmrg esac 219605b261ecSmrg ;; 219705b261ecSmrg 219805b261ecSmrgbeos*) 219905b261ecSmrg library_names_spec='${libname}${shared_ext}' 220005b261ecSmrg dynamic_linker="$host_os ld.so" 220105b261ecSmrg shlibpath_var=LIBRARY_PATH 220205b261ecSmrg ;; 220305b261ecSmrg 220405b261ecSmrgbsdi[[45]]*) 220505b261ecSmrg version_type=linux 220605b261ecSmrg need_version=no 220705b261ecSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 220805b261ecSmrg soname_spec='${libname}${release}${shared_ext}$major' 220905b261ecSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 221005b261ecSmrg shlibpath_var=LD_LIBRARY_PATH 221105b261ecSmrg sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 221205b261ecSmrg sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 221305b261ecSmrg # the default ld.so.conf also contains /usr/contrib/lib and 221405b261ecSmrg # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 221505b261ecSmrg # libtool to hard-code these into programs 221605b261ecSmrg ;; 221705b261ecSmrg 22184642e01fSmrgcygwin* | mingw* | pw32* | cegcc*) 221905b261ecSmrg version_type=windows 222005b261ecSmrg shrext_cmds=".dll" 222105b261ecSmrg need_version=no 222205b261ecSmrg need_lib_prefix=no 222305b261ecSmrg 222405b261ecSmrg case $GCC,$host_os in 22254642e01fSmrg yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 222605b261ecSmrg library_names_spec='$libname.dll.a' 222705b261ecSmrg # DLL is installed to $(libdir)/../bin by postinstall_cmds 222805b261ecSmrg postinstall_cmds='base_file=`basename \${file}`~ 22294642e01fSmrg dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 223005b261ecSmrg dldir=$destdir/`dirname \$dlpath`~ 223105b261ecSmrg test -d \$dldir || mkdir -p \$dldir~ 223205b261ecSmrg $install_prog $dir/$dlname \$dldir/$dlname~ 22334642e01fSmrg chmod a+x \$dldir/$dlname~ 22344642e01fSmrg if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 22354642e01fSmrg eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 22364642e01fSmrg fi' 223705b261ecSmrg postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 223805b261ecSmrg dlpath=$dir/\$dldll~ 22394642e01fSmrg $RM \$dlpath' 224005b261ecSmrg shlibpath_overrides_runpath=yes 224105b261ecSmrg 224205b261ecSmrg case $host_os in 224305b261ecSmrg cygwin*) 224405b261ecSmrg # Cygwin DLLs use 'cyg' prefix rather than 'lib' 224505b261ecSmrg soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 224605b261ecSmrg sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 224705b261ecSmrg ;; 22484642e01fSmrg mingw* | cegcc*) 224905b261ecSmrg # MinGW DLLs use traditional 'lib' prefix 225005b261ecSmrg soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 22514642e01fSmrg sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 22524642e01fSmrg if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then 225305b261ecSmrg # It is most probably a Windows format PATH printed by 225405b261ecSmrg # mingw gcc, but we are running on Cygwin. Gcc prints its search 225505b261ecSmrg # path with ; separators, and with drive letters. We can handle the 225605b261ecSmrg # drive letters (cygwin fileutils understands them), so leave them, 225705b261ecSmrg # especially as we might pass files found there to a mingw objdump, 225805b261ecSmrg # which wouldn't understand a cygwinified path. Ahh. 22594642e01fSmrg sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 226005b261ecSmrg else 22614642e01fSmrg sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 226205b261ecSmrg fi 226305b261ecSmrg ;; 226405b261ecSmrg pw32*) 226505b261ecSmrg # pw32 DLLs use 'pw' prefix rather than 'lib' 226605b261ecSmrg library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 226705b261ecSmrg ;; 226805b261ecSmrg esac 226905b261ecSmrg ;; 227005b261ecSmrg 227105b261ecSmrg *) 227205b261ecSmrg library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' 227305b261ecSmrg ;; 227405b261ecSmrg esac 227505b261ecSmrg dynamic_linker='Win32 ld.exe' 227605b261ecSmrg # FIXME: first we should search . and the directory the executable is in 227705b261ecSmrg shlibpath_var=PATH 227805b261ecSmrg ;; 227905b261ecSmrg 228005b261ecSmrgdarwin* | rhapsody*) 228105b261ecSmrg dynamic_linker="$host_os dyld" 228205b261ecSmrg version_type=darwin 228305b261ecSmrg need_lib_prefix=no 228405b261ecSmrg need_version=no 22854642e01fSmrg library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 228605b261ecSmrg soname_spec='${libname}${release}${major}$shared_ext' 228705b261ecSmrg shlibpath_overrides_runpath=yes 228805b261ecSmrg shlibpath_var=DYLD_LIBRARY_PATH 228905b261ecSmrg shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 22904642e01fSmrgm4_if([$1], [],[ 22914642e01fSmrg sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 229205b261ecSmrg sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 229305b261ecSmrg ;; 229405b261ecSmrg 229505b261ecSmrgdgux*) 229605b261ecSmrg version_type=linux 229705b261ecSmrg need_lib_prefix=no 229805b261ecSmrg need_version=no 229905b261ecSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 230005b261ecSmrg soname_spec='${libname}${release}${shared_ext}$major' 230105b261ecSmrg shlibpath_var=LD_LIBRARY_PATH 230205b261ecSmrg ;; 230305b261ecSmrg 230405b261ecSmrgfreebsd1*) 230505b261ecSmrg dynamic_linker=no 230605b261ecSmrg ;; 230705b261ecSmrg 230805b261ecSmrgfreebsd* | dragonfly*) 230905b261ecSmrg # DragonFly does not have aout. When/if they implement a new 231005b261ecSmrg # versioning mechanism, adjust this. 231105b261ecSmrg if test -x /usr/bin/objformat; then 231205b261ecSmrg objformat=`/usr/bin/objformat` 231305b261ecSmrg else 231405b261ecSmrg case $host_os in 231505b261ecSmrg freebsd[[123]]*) objformat=aout ;; 231605b261ecSmrg *) objformat=elf ;; 231705b261ecSmrg esac 231805b261ecSmrg fi 231905b261ecSmrg version_type=freebsd-$objformat 232005b261ecSmrg case $version_type in 232105b261ecSmrg freebsd-elf*) 232205b261ecSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 232305b261ecSmrg need_version=no 232405b261ecSmrg need_lib_prefix=no 232505b261ecSmrg ;; 232605b261ecSmrg freebsd-*) 232705b261ecSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 232805b261ecSmrg need_version=yes 232905b261ecSmrg ;; 233005b261ecSmrg esac 233105b261ecSmrg shlibpath_var=LD_LIBRARY_PATH 233205b261ecSmrg case $host_os in 233305b261ecSmrg freebsd2*) 233405b261ecSmrg shlibpath_overrides_runpath=yes 233505b261ecSmrg ;; 233605b261ecSmrg freebsd3.[[01]]* | freebsdelf3.[[01]]*) 233705b261ecSmrg shlibpath_overrides_runpath=yes 233805b261ecSmrg hardcode_into_libs=yes 233905b261ecSmrg ;; 234005b261ecSmrg freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ 234105b261ecSmrg freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) 234205b261ecSmrg shlibpath_overrides_runpath=no 234305b261ecSmrg hardcode_into_libs=yes 234405b261ecSmrg ;; 234505b261ecSmrg *) # from 4.6 on, and DragonFly 234605b261ecSmrg shlibpath_overrides_runpath=yes 234705b261ecSmrg hardcode_into_libs=yes 234805b261ecSmrg ;; 234905b261ecSmrg esac 235005b261ecSmrg ;; 235105b261ecSmrg 235205b261ecSmrggnu*) 235305b261ecSmrg version_type=linux 235405b261ecSmrg need_lib_prefix=no 235505b261ecSmrg need_version=no 235605b261ecSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 235705b261ecSmrg soname_spec='${libname}${release}${shared_ext}$major' 235805b261ecSmrg shlibpath_var=LD_LIBRARY_PATH 235905b261ecSmrg hardcode_into_libs=yes 236005b261ecSmrg ;; 236105b261ecSmrg 236205b261ecSmrghpux9* | hpux10* | hpux11*) 236305b261ecSmrg # Give a soname corresponding to the major version so that dld.sl refuses to 236405b261ecSmrg # link against other versions. 236505b261ecSmrg version_type=sunos 236605b261ecSmrg need_lib_prefix=no 236705b261ecSmrg need_version=no 236805b261ecSmrg case $host_cpu in 236905b261ecSmrg ia64*) 237005b261ecSmrg shrext_cmds='.so' 237105b261ecSmrg hardcode_into_libs=yes 237205b261ecSmrg dynamic_linker="$host_os dld.so" 237305b261ecSmrg shlibpath_var=LD_LIBRARY_PATH 237405b261ecSmrg shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 237505b261ecSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 237605b261ecSmrg soname_spec='${libname}${release}${shared_ext}$major' 237705b261ecSmrg if test "X$HPUX_IA64_MODE" = X32; then 237805b261ecSmrg sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 237905b261ecSmrg else 238005b261ecSmrg sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 238105b261ecSmrg fi 238205b261ecSmrg sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 238305b261ecSmrg ;; 23844642e01fSmrg hppa*64*) 23854642e01fSmrg shrext_cmds='.sl' 23864642e01fSmrg hardcode_into_libs=yes 23874642e01fSmrg dynamic_linker="$host_os dld.sl" 23884642e01fSmrg shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 23894642e01fSmrg shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 23904642e01fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 23914642e01fSmrg soname_spec='${libname}${release}${shared_ext}$major' 23924642e01fSmrg sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 23934642e01fSmrg sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 23944642e01fSmrg ;; 23954642e01fSmrg *) 239605b261ecSmrg shrext_cmds='.sl' 239705b261ecSmrg dynamic_linker="$host_os dld.sl" 239805b261ecSmrg shlibpath_var=SHLIB_PATH 239905b261ecSmrg shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 240005b261ecSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 240105b261ecSmrg soname_spec='${libname}${release}${shared_ext}$major' 240205b261ecSmrg ;; 240305b261ecSmrg esac 240405b261ecSmrg # HP-UX runs *really* slowly unless shared libraries are mode 555. 240505b261ecSmrg postinstall_cmds='chmod 555 $lib' 240605b261ecSmrg ;; 240705b261ecSmrg 240805b261ecSmrginterix[[3-9]]*) 240905b261ecSmrg version_type=linux 241005b261ecSmrg need_lib_prefix=no 241105b261ecSmrg need_version=no 241205b261ecSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 241305b261ecSmrg soname_spec='${libname}${release}${shared_ext}$major' 241405b261ecSmrg dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 241505b261ecSmrg shlibpath_var=LD_LIBRARY_PATH 241605b261ecSmrg shlibpath_overrides_runpath=no 241705b261ecSmrg hardcode_into_libs=yes 241805b261ecSmrg ;; 241905b261ecSmrg 242005b261ecSmrgirix5* | irix6* | nonstopux*) 242105b261ecSmrg case $host_os in 242205b261ecSmrg nonstopux*) version_type=nonstopux ;; 242305b261ecSmrg *) 242405b261ecSmrg if test "$lt_cv_prog_gnu_ld" = yes; then 242505b261ecSmrg version_type=linux 242605b261ecSmrg else 242705b261ecSmrg version_type=irix 242805b261ecSmrg fi ;; 242905b261ecSmrg esac 243005b261ecSmrg need_lib_prefix=no 243105b261ecSmrg need_version=no 243205b261ecSmrg soname_spec='${libname}${release}${shared_ext}$major' 243305b261ecSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 243405b261ecSmrg case $host_os in 243505b261ecSmrg irix5* | nonstopux*) 243605b261ecSmrg libsuff= shlibsuff= 243705b261ecSmrg ;; 243805b261ecSmrg *) 243905b261ecSmrg case $LD in # libtool.m4 will add one of these switches to LD 244005b261ecSmrg *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 244105b261ecSmrg libsuff= shlibsuff= libmagic=32-bit;; 244205b261ecSmrg *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 244305b261ecSmrg libsuff=32 shlibsuff=N32 libmagic=N32;; 244405b261ecSmrg *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 244505b261ecSmrg libsuff=64 shlibsuff=64 libmagic=64-bit;; 244605b261ecSmrg *) libsuff= shlibsuff= libmagic=never-match;; 244705b261ecSmrg esac 244805b261ecSmrg ;; 244905b261ecSmrg esac 245005b261ecSmrg shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 245105b261ecSmrg shlibpath_overrides_runpath=no 245205b261ecSmrg sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 245305b261ecSmrg sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 245405b261ecSmrg hardcode_into_libs=yes 245505b261ecSmrg ;; 245605b261ecSmrg 245705b261ecSmrg# No shared lib support for Linux oldld, aout, or coff. 245805b261ecSmrglinux*oldld* | linux*aout* | linux*coff*) 245905b261ecSmrg dynamic_linker=no 246005b261ecSmrg ;; 246105b261ecSmrg 246205b261ecSmrg# This must be Linux ELF. 246305b261ecSmrglinux* | k*bsd*-gnu) 246405b261ecSmrg version_type=linux 246505b261ecSmrg need_lib_prefix=no 246605b261ecSmrg need_version=no 246705b261ecSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 246805b261ecSmrg soname_spec='${libname}${release}${shared_ext}$major' 246905b261ecSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 247005b261ecSmrg shlibpath_var=LD_LIBRARY_PATH 247105b261ecSmrg shlibpath_overrides_runpath=no 24724642e01fSmrg # Some binutils ld are patched to set DT_RUNPATH 24734642e01fSmrg save_LDFLAGS=$LDFLAGS 24744642e01fSmrg save_libdir=$libdir 24754642e01fSmrg eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ 24764642e01fSmrg LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" 24774642e01fSmrg AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], 24784642e01fSmrg [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], 24794642e01fSmrg [shlibpath_overrides_runpath=yes])]) 24804642e01fSmrg LDFLAGS=$save_LDFLAGS 24814642e01fSmrg libdir=$save_libdir 24824642e01fSmrg 248305b261ecSmrg # This implies no fast_install, which is unacceptable. 248405b261ecSmrg # Some rework will be needed to allow for fast_install 248505b261ecSmrg # before this can be enabled. 248605b261ecSmrg hardcode_into_libs=yes 248705b261ecSmrg 248805b261ecSmrg # Append ld.so.conf contents to the search path 248905b261ecSmrg if test -f /etc/ld.so.conf; then 24904642e01fSmrg 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' ' '` 249105b261ecSmrg sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 249205b261ecSmrg fi 249305b261ecSmrg 249405b261ecSmrg # We used to test for /lib/ld.so.1 and disable shared libraries on 249505b261ecSmrg # powerpc, because MkLinux only supported shared libraries with the 249605b261ecSmrg # GNU dynamic linker. Since this was broken with cross compilers, 249705b261ecSmrg # most powerpc-linux boxes support dynamic linking these days and 249805b261ecSmrg # people can always --disable-shared, the test was removed, and we 249905b261ecSmrg # assume the GNU/Linux dynamic linker is in use. 250005b261ecSmrg dynamic_linker='GNU/Linux ld.so' 250105b261ecSmrg ;; 250205b261ecSmrg 250305b261ecSmrgnetbsdelf*-gnu) 250405b261ecSmrg version_type=linux 250505b261ecSmrg need_lib_prefix=no 250605b261ecSmrg need_version=no 250705b261ecSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 250805b261ecSmrg soname_spec='${libname}${release}${shared_ext}$major' 250905b261ecSmrg shlibpath_var=LD_LIBRARY_PATH 251005b261ecSmrg shlibpath_overrides_runpath=no 251105b261ecSmrg hardcode_into_libs=yes 251205b261ecSmrg dynamic_linker='NetBSD ld.elf_so' 251305b261ecSmrg ;; 251405b261ecSmrg 251505b261ecSmrgnetbsd*) 251605b261ecSmrg version_type=sunos 251705b261ecSmrg need_lib_prefix=no 251805b261ecSmrg need_version=no 25194642e01fSmrg if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 252005b261ecSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 252105b261ecSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 252205b261ecSmrg dynamic_linker='NetBSD (a.out) ld.so' 252305b261ecSmrg else 252405b261ecSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 252505b261ecSmrg soname_spec='${libname}${release}${shared_ext}$major' 252605b261ecSmrg dynamic_linker='NetBSD ld.elf_so' 252705b261ecSmrg fi 252805b261ecSmrg shlibpath_var=LD_LIBRARY_PATH 252905b261ecSmrg shlibpath_overrides_runpath=yes 253005b261ecSmrg hardcode_into_libs=yes 253105b261ecSmrg ;; 253205b261ecSmrg 253305b261ecSmrgnewsos6) 253405b261ecSmrg version_type=linux 253505b261ecSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 253605b261ecSmrg shlibpath_var=LD_LIBRARY_PATH 253705b261ecSmrg shlibpath_overrides_runpath=yes 253805b261ecSmrg ;; 253905b261ecSmrg 25404642e01fSmrg*nto* | *qnx*) 25414642e01fSmrg version_type=qnx 254205b261ecSmrg need_lib_prefix=no 254305b261ecSmrg need_version=no 254405b261ecSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 254505b261ecSmrg soname_spec='${libname}${release}${shared_ext}$major' 254605b261ecSmrg shlibpath_var=LD_LIBRARY_PATH 25474642e01fSmrg shlibpath_overrides_runpath=no 25484642e01fSmrg hardcode_into_libs=yes 25494642e01fSmrg dynamic_linker='ldqnx.so' 255005b261ecSmrg ;; 255105b261ecSmrg 255205b261ecSmrgopenbsd*) 255305b261ecSmrg version_type=sunos 255405b261ecSmrg sys_lib_dlsearch_path_spec="/usr/lib" 255505b261ecSmrg need_lib_prefix=no 255605b261ecSmrg # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 255705b261ecSmrg case $host_os in 25584642e01fSmrg openbsd3.3 | openbsd3.3.*) need_version=yes ;; 25594642e01fSmrg *) need_version=no ;; 256005b261ecSmrg esac 256105b261ecSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 256205b261ecSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 256305b261ecSmrg shlibpath_var=LD_LIBRARY_PATH 25644642e01fSmrg if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 256505b261ecSmrg case $host_os in 256605b261ecSmrg openbsd2.[[89]] | openbsd2.[[89]].*) 256705b261ecSmrg shlibpath_overrides_runpath=no 256805b261ecSmrg ;; 256905b261ecSmrg *) 257005b261ecSmrg shlibpath_overrides_runpath=yes 257105b261ecSmrg ;; 257205b261ecSmrg esac 257305b261ecSmrg else 257405b261ecSmrg shlibpath_overrides_runpath=yes 257505b261ecSmrg fi 257605b261ecSmrg ;; 257705b261ecSmrg 257805b261ecSmrgos2*) 257905b261ecSmrg libname_spec='$name' 258005b261ecSmrg shrext_cmds=".dll" 258105b261ecSmrg need_lib_prefix=no 258205b261ecSmrg library_names_spec='$libname${shared_ext} $libname.a' 258305b261ecSmrg dynamic_linker='OS/2 ld.exe' 258405b261ecSmrg shlibpath_var=LIBPATH 258505b261ecSmrg ;; 258605b261ecSmrg 258705b261ecSmrgosf3* | osf4* | osf5*) 258805b261ecSmrg version_type=osf 258905b261ecSmrg need_lib_prefix=no 259005b261ecSmrg need_version=no 259105b261ecSmrg soname_spec='${libname}${release}${shared_ext}$major' 259205b261ecSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 259305b261ecSmrg shlibpath_var=LD_LIBRARY_PATH 259405b261ecSmrg sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 259505b261ecSmrg sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 259605b261ecSmrg ;; 259705b261ecSmrg 259805b261ecSmrgrdos*) 259905b261ecSmrg dynamic_linker=no 260005b261ecSmrg ;; 260105b261ecSmrg 260205b261ecSmrgsolaris*) 260305b261ecSmrg version_type=linux 260405b261ecSmrg need_lib_prefix=no 260505b261ecSmrg need_version=no 260605b261ecSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 260705b261ecSmrg soname_spec='${libname}${release}${shared_ext}$major' 260805b261ecSmrg shlibpath_var=LD_LIBRARY_PATH 260905b261ecSmrg shlibpath_overrides_runpath=yes 261005b261ecSmrg hardcode_into_libs=yes 261105b261ecSmrg # ldd complains unless libraries are executable 261205b261ecSmrg postinstall_cmds='chmod +x $lib' 261305b261ecSmrg ;; 261405b261ecSmrg 261505b261ecSmrgsunos4*) 261605b261ecSmrg version_type=sunos 261705b261ecSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 261805b261ecSmrg finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 261905b261ecSmrg shlibpath_var=LD_LIBRARY_PATH 262005b261ecSmrg shlibpath_overrides_runpath=yes 262105b261ecSmrg if test "$with_gnu_ld" = yes; then 262205b261ecSmrg need_lib_prefix=no 262305b261ecSmrg fi 262405b261ecSmrg need_version=yes 262505b261ecSmrg ;; 262605b261ecSmrg 262705b261ecSmrgsysv4 | sysv4.3*) 262805b261ecSmrg version_type=linux 262905b261ecSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 263005b261ecSmrg soname_spec='${libname}${release}${shared_ext}$major' 263105b261ecSmrg shlibpath_var=LD_LIBRARY_PATH 263205b261ecSmrg case $host_vendor in 263305b261ecSmrg sni) 263405b261ecSmrg shlibpath_overrides_runpath=no 263505b261ecSmrg need_lib_prefix=no 263605b261ecSmrg runpath_var=LD_RUN_PATH 263705b261ecSmrg ;; 263805b261ecSmrg siemens) 263905b261ecSmrg need_lib_prefix=no 264005b261ecSmrg ;; 264105b261ecSmrg motorola) 264205b261ecSmrg need_lib_prefix=no 264305b261ecSmrg need_version=no 264405b261ecSmrg shlibpath_overrides_runpath=no 264505b261ecSmrg sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 264605b261ecSmrg ;; 264705b261ecSmrg esac 264805b261ecSmrg ;; 264905b261ecSmrg 265005b261ecSmrgsysv4*MP*) 265105b261ecSmrg if test -d /usr/nec ;then 265205b261ecSmrg version_type=linux 265305b261ecSmrg library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 265405b261ecSmrg soname_spec='$libname${shared_ext}.$major' 265505b261ecSmrg shlibpath_var=LD_LIBRARY_PATH 265605b261ecSmrg fi 265705b261ecSmrg ;; 265805b261ecSmrg 265905b261ecSmrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 266005b261ecSmrg version_type=freebsd-elf 266105b261ecSmrg need_lib_prefix=no 266205b261ecSmrg need_version=no 266305b261ecSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 266405b261ecSmrg soname_spec='${libname}${release}${shared_ext}$major' 266505b261ecSmrg shlibpath_var=LD_LIBRARY_PATH 26664642e01fSmrg shlibpath_overrides_runpath=yes 266705b261ecSmrg hardcode_into_libs=yes 266805b261ecSmrg if test "$with_gnu_ld" = yes; then 266905b261ecSmrg sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 267005b261ecSmrg else 267105b261ecSmrg sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 267205b261ecSmrg case $host_os in 267305b261ecSmrg sco3.2v5*) 267405b261ecSmrg sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 267505b261ecSmrg ;; 267605b261ecSmrg esac 267705b261ecSmrg fi 267805b261ecSmrg sys_lib_dlsearch_path_spec='/usr/lib' 267905b261ecSmrg ;; 268005b261ecSmrg 26814642e01fSmrgtpf*) 26824642e01fSmrg # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 26834642e01fSmrg version_type=linux 26844642e01fSmrg need_lib_prefix=no 26854642e01fSmrg need_version=no 26864642e01fSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 26874642e01fSmrg shlibpath_var=LD_LIBRARY_PATH 26884642e01fSmrg shlibpath_overrides_runpath=no 26894642e01fSmrg hardcode_into_libs=yes 26904642e01fSmrg ;; 26914642e01fSmrg 269205b261ecSmrguts4*) 269305b261ecSmrg version_type=linux 269405b261ecSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 269505b261ecSmrg soname_spec='${libname}${release}${shared_ext}$major' 269605b261ecSmrg shlibpath_var=LD_LIBRARY_PATH 269705b261ecSmrg ;; 269805b261ecSmrg 269905b261ecSmrg*) 270005b261ecSmrg dynamic_linker=no 270105b261ecSmrg ;; 270205b261ecSmrgesac 270305b261ecSmrgAC_MSG_RESULT([$dynamic_linker]) 270405b261ecSmrgtest "$dynamic_linker" = no && can_build_shared=no 270505b261ecSmrg 270605b261ecSmrgvariables_saved_for_relink="PATH $shlibpath_var $runpath_var" 270705b261ecSmrgif test "$GCC" = yes; then 270805b261ecSmrg variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 270905b261ecSmrgfi 271005b261ecSmrg 27114642e01fSmrgif test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 27124642e01fSmrg sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 27134642e01fSmrgfi 27144642e01fSmrgif test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 27154642e01fSmrg sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 27164642e01fSmrgfi 271705b261ecSmrg 27184642e01fSmrg_LT_DECL([], [variables_saved_for_relink], [1], 27194642e01fSmrg [Variables whose values should be saved in libtool wrapper scripts and 27204642e01fSmrg restored at link time]) 27214642e01fSmrg_LT_DECL([], [need_lib_prefix], [0], 27224642e01fSmrg [Do we need the "lib" prefix for modules?]) 27234642e01fSmrg_LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) 27244642e01fSmrg_LT_DECL([], [version_type], [0], [Library versioning type]) 27254642e01fSmrg_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) 27264642e01fSmrg_LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) 27274642e01fSmrg_LT_DECL([], [shlibpath_overrides_runpath], [0], 27284642e01fSmrg [Is shlibpath searched before the hard-coded library search path?]) 27294642e01fSmrg_LT_DECL([], [libname_spec], [1], [Format of library name prefix]) 27304642e01fSmrg_LT_DECL([], [library_names_spec], [1], 27314642e01fSmrg [[List of archive names. First name is the real one, the rest are links. 27324642e01fSmrg The last name is the one that the linker finds with -lNAME]]) 27334642e01fSmrg_LT_DECL([], [soname_spec], [1], 27344642e01fSmrg [[The coded name of the library, if different from the real name]]) 27354642e01fSmrg_LT_DECL([], [postinstall_cmds], [2], 27364642e01fSmrg [Command to use after installation of a shared archive]) 27374642e01fSmrg_LT_DECL([], [postuninstall_cmds], [2], 27384642e01fSmrg [Command to use after uninstallation of a shared archive]) 27394642e01fSmrg_LT_DECL([], [finish_cmds], [2], 27404642e01fSmrg [Commands used to finish a libtool library installation in a directory]) 27414642e01fSmrg_LT_DECL([], [finish_eval], [1], 27424642e01fSmrg [[As "finish_cmds", except a single script fragment to be evaled but 27434642e01fSmrg not shown]]) 27444642e01fSmrg_LT_DECL([], [hardcode_into_libs], [0], 27454642e01fSmrg [Whether we should hardcode library paths into libraries]) 27464642e01fSmrg_LT_DECL([], [sys_lib_search_path_spec], [2], 27474642e01fSmrg [Compile-time system search path for libraries]) 27484642e01fSmrg_LT_DECL([], [sys_lib_dlsearch_path_spec], [2], 27494642e01fSmrg [Run-time system search path for libraries]) 27504642e01fSmrg])# _LT_SYS_DYNAMIC_LINKER 27514642e01fSmrg 27524642e01fSmrg 27534642e01fSmrg# _LT_PATH_TOOL_PREFIX(TOOL) 275405b261ecSmrg# -------------------------- 275505b261ecSmrg# find a file program which can recognize shared library 27564642e01fSmrgAC_DEFUN([_LT_PATH_TOOL_PREFIX], 27574642e01fSmrg[m4_require([_LT_DECL_EGREP])dnl 275805b261ecSmrgAC_MSG_CHECKING([for $1]) 275905b261ecSmrgAC_CACHE_VAL(lt_cv_path_MAGIC_CMD, 276005b261ecSmrg[case $MAGIC_CMD in 276105b261ecSmrg[[\\/*] | ?:[\\/]*]) 276205b261ecSmrg lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 276305b261ecSmrg ;; 276405b261ecSmrg*) 276505b261ecSmrg lt_save_MAGIC_CMD="$MAGIC_CMD" 276605b261ecSmrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 276705b261ecSmrgdnl $ac_dummy forces splitting on constant user-supplied paths. 276805b261ecSmrgdnl POSIX.2 word splitting is done only on the output of word expansions, 276905b261ecSmrgdnl not every word. This closes a longstanding sh security hole. 27704642e01fSmrg ac_dummy="m4_if([$2], , $PATH, [$2])" 277105b261ecSmrg for ac_dir in $ac_dummy; do 277205b261ecSmrg IFS="$lt_save_ifs" 277305b261ecSmrg test -z "$ac_dir" && ac_dir=. 277405b261ecSmrg if test -f $ac_dir/$1; then 277505b261ecSmrg lt_cv_path_MAGIC_CMD="$ac_dir/$1" 277605b261ecSmrg if test -n "$file_magic_test_file"; then 277705b261ecSmrg case $deplibs_check_method in 277805b261ecSmrg "file_magic "*) 277905b261ecSmrg file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 278005b261ecSmrg MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 278105b261ecSmrg if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 278205b261ecSmrg $EGREP "$file_magic_regex" > /dev/null; then 278305b261ecSmrg : 278405b261ecSmrg else 27854642e01fSmrg cat <<_LT_EOF 1>&2 278605b261ecSmrg 278705b261ecSmrg*** Warning: the command libtool uses to detect shared libraries, 278805b261ecSmrg*** $file_magic_cmd, produces output that libtool cannot recognize. 278905b261ecSmrg*** The result is that libtool may fail to recognize shared libraries 279005b261ecSmrg*** as such. This will affect the creation of libtool libraries that 279105b261ecSmrg*** depend on shared libraries, but programs linked with such libtool 279205b261ecSmrg*** libraries will work regardless of this problem. Nevertheless, you 279305b261ecSmrg*** may want to report the problem to your system manager and/or to 279405b261ecSmrg*** bug-libtool@gnu.org 279505b261ecSmrg 27964642e01fSmrg_LT_EOF 279705b261ecSmrg fi ;; 279805b261ecSmrg esac 279905b261ecSmrg fi 280005b261ecSmrg break 280105b261ecSmrg fi 280205b261ecSmrg done 280305b261ecSmrg IFS="$lt_save_ifs" 280405b261ecSmrg MAGIC_CMD="$lt_save_MAGIC_CMD" 280505b261ecSmrg ;; 280605b261ecSmrgesac]) 280705b261ecSmrgMAGIC_CMD="$lt_cv_path_MAGIC_CMD" 280805b261ecSmrgif test -n "$MAGIC_CMD"; then 280905b261ecSmrg AC_MSG_RESULT($MAGIC_CMD) 281005b261ecSmrgelse 281105b261ecSmrg AC_MSG_RESULT(no) 281205b261ecSmrgfi 28134642e01fSmrg_LT_DECL([], [MAGIC_CMD], [0], 28144642e01fSmrg [Used to examine libraries when file_magic_cmd begins with "file"])dnl 28154642e01fSmrg])# _LT_PATH_TOOL_PREFIX 281605b261ecSmrg 28174642e01fSmrg# Old name: 28184642e01fSmrgAU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) 28194642e01fSmrgdnl aclocal-1.4 backwards compatibility: 28204642e01fSmrgdnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) 282105b261ecSmrg 28224642e01fSmrg 28234642e01fSmrg# _LT_PATH_MAGIC 28244642e01fSmrg# -------------- 282505b261ecSmrg# find a file program which can recognize a shared library 28264642e01fSmrgm4_defun([_LT_PATH_MAGIC], 28274642e01fSmrg[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) 282805b261ecSmrgif test -z "$lt_cv_path_MAGIC_CMD"; then 282905b261ecSmrg if test -n "$ac_tool_prefix"; then 28304642e01fSmrg _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) 283105b261ecSmrg else 283205b261ecSmrg MAGIC_CMD=: 283305b261ecSmrg fi 283405b261ecSmrgfi 28354642e01fSmrg])# _LT_PATH_MAGIC 283605b261ecSmrg 283705b261ecSmrg 28384642e01fSmrg# LT_PATH_LD 283905b261ecSmrg# ---------- 284005b261ecSmrg# find the pathname to the GNU or non-GNU linker 28414642e01fSmrgAC_DEFUN([LT_PATH_LD], 28424642e01fSmrg[AC_REQUIRE([AC_PROG_CC])dnl 284305b261ecSmrgAC_REQUIRE([AC_CANONICAL_HOST])dnl 284405b261ecSmrgAC_REQUIRE([AC_CANONICAL_BUILD])dnl 28454642e01fSmrgm4_require([_LT_DECL_SED])dnl 28464642e01fSmrgm4_require([_LT_DECL_EGREP])dnl 28474642e01fSmrg 28484642e01fSmrgAC_ARG_WITH([gnu-ld], 28494642e01fSmrg [AS_HELP_STRING([--with-gnu-ld], 28504642e01fSmrg [assume the C compiler uses GNU ld @<:@default=no@:>@])], 28514642e01fSmrg [test "$withval" = no || with_gnu_ld=yes], 28524642e01fSmrg [with_gnu_ld=no])dnl 28534642e01fSmrg 285405b261ecSmrgac_prog=ld 285505b261ecSmrgif test "$GCC" = yes; then 285605b261ecSmrg # Check if gcc -print-prog-name=ld gives a path. 285705b261ecSmrg AC_MSG_CHECKING([for ld used by $CC]) 285805b261ecSmrg case $host in 285905b261ecSmrg *-*-mingw*) 286005b261ecSmrg # gcc leaves a trailing carriage return which upsets mingw 286105b261ecSmrg ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 286205b261ecSmrg *) 286305b261ecSmrg ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 286405b261ecSmrg esac 286505b261ecSmrg case $ac_prog in 286605b261ecSmrg # Accept absolute paths. 286705b261ecSmrg [[\\/]]* | ?:[[\\/]]*) 286805b261ecSmrg re_direlt='/[[^/]][[^/]]*/\.\./' 286905b261ecSmrg # Canonicalize the pathname of ld 28704642e01fSmrg ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 28714642e01fSmrg while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 28724642e01fSmrg ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 287305b261ecSmrg done 287405b261ecSmrg test -z "$LD" && LD="$ac_prog" 287505b261ecSmrg ;; 287605b261ecSmrg "") 287705b261ecSmrg # If it fails, then pretend we aren't using GCC. 287805b261ecSmrg ac_prog=ld 287905b261ecSmrg ;; 288005b261ecSmrg *) 288105b261ecSmrg # If it is relative, then search for the first ld in PATH. 288205b261ecSmrg with_gnu_ld=unknown 288305b261ecSmrg ;; 288405b261ecSmrg esac 288505b261ecSmrgelif test "$with_gnu_ld" = yes; then 288605b261ecSmrg AC_MSG_CHECKING([for GNU ld]) 288705b261ecSmrgelse 288805b261ecSmrg AC_MSG_CHECKING([for non-GNU ld]) 288905b261ecSmrgfi 289005b261ecSmrgAC_CACHE_VAL(lt_cv_path_LD, 289105b261ecSmrg[if test -z "$LD"; then 289205b261ecSmrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 289305b261ecSmrg for ac_dir in $PATH; do 289405b261ecSmrg IFS="$lt_save_ifs" 289505b261ecSmrg test -z "$ac_dir" && ac_dir=. 289605b261ecSmrg if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 289705b261ecSmrg lt_cv_path_LD="$ac_dir/$ac_prog" 289805b261ecSmrg # Check to see if the program is GNU ld. I'd rather use --version, 289905b261ecSmrg # but apparently some variants of GNU ld only accept -v. 290005b261ecSmrg # Break only if it was the GNU/non-GNU ld that we prefer. 290105b261ecSmrg case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 290205b261ecSmrg *GNU* | *'with BFD'*) 290305b261ecSmrg test "$with_gnu_ld" != no && break 290405b261ecSmrg ;; 290505b261ecSmrg *) 290605b261ecSmrg test "$with_gnu_ld" != yes && break 290705b261ecSmrg ;; 290805b261ecSmrg esac 290905b261ecSmrg fi 291005b261ecSmrg done 291105b261ecSmrg IFS="$lt_save_ifs" 291205b261ecSmrgelse 291305b261ecSmrg lt_cv_path_LD="$LD" # Let the user override the test with a path. 291405b261ecSmrgfi]) 291505b261ecSmrgLD="$lt_cv_path_LD" 291605b261ecSmrgif test -n "$LD"; then 291705b261ecSmrg AC_MSG_RESULT($LD) 291805b261ecSmrgelse 291905b261ecSmrg AC_MSG_RESULT(no) 292005b261ecSmrgfi 292105b261ecSmrgtest -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) 29224642e01fSmrg_LT_PATH_LD_GNU 29234642e01fSmrgAC_SUBST([LD]) 292405b261ecSmrg 29254642e01fSmrg_LT_TAGDECL([], [LD], [1], [The linker used to build libraries]) 29264642e01fSmrg])# LT_PATH_LD 292705b261ecSmrg 29284642e01fSmrg# Old names: 29294642e01fSmrgAU_ALIAS([AM_PROG_LD], [LT_PATH_LD]) 29304642e01fSmrgAU_ALIAS([AC_PROG_LD], [LT_PATH_LD]) 29314642e01fSmrgdnl aclocal-1.4 backwards compatibility: 29324642e01fSmrgdnl AC_DEFUN([AM_PROG_LD], []) 29334642e01fSmrgdnl AC_DEFUN([AC_PROG_LD], []) 29344642e01fSmrg 29354642e01fSmrg 29364642e01fSmrg# _LT_PATH_LD_GNU 29374642e01fSmrg#- -------------- 29384642e01fSmrgm4_defun([_LT_PATH_LD_GNU], 29394642e01fSmrg[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, 294005b261ecSmrg[# I'd rather use --version here, but apparently some GNU lds only accept -v. 294105b261ecSmrgcase `$LD -v 2>&1 </dev/null` in 294205b261ecSmrg*GNU* | *'with BFD'*) 294305b261ecSmrg lt_cv_prog_gnu_ld=yes 294405b261ecSmrg ;; 294505b261ecSmrg*) 294605b261ecSmrg lt_cv_prog_gnu_ld=no 294705b261ecSmrg ;; 294805b261ecSmrgesac]) 294905b261ecSmrgwith_gnu_ld=$lt_cv_prog_gnu_ld 29504642e01fSmrg])# _LT_PATH_LD_GNU 295105b261ecSmrg 295205b261ecSmrg 29534642e01fSmrg# _LT_CMD_RELOAD 29544642e01fSmrg# -------------- 295505b261ecSmrg# find reload flag for linker 295605b261ecSmrg# -- PORTME Some linkers may need a different reload flag. 29574642e01fSmrgm4_defun([_LT_CMD_RELOAD], 295805b261ecSmrg[AC_CACHE_CHECK([for $LD option to reload object files], 295905b261ecSmrg lt_cv_ld_reload_flag, 296005b261ecSmrg [lt_cv_ld_reload_flag='-r']) 296105b261ecSmrgreload_flag=$lt_cv_ld_reload_flag 296205b261ecSmrgcase $reload_flag in 296305b261ecSmrg"" | " "*) ;; 296405b261ecSmrg*) reload_flag=" $reload_flag" ;; 296505b261ecSmrgesac 296605b261ecSmrgreload_cmds='$LD$reload_flag -o $output$reload_objs' 296705b261ecSmrgcase $host_os in 296805b261ecSmrg darwin*) 296905b261ecSmrg if test "$GCC" = yes; then 297005b261ecSmrg reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 297105b261ecSmrg else 297205b261ecSmrg reload_cmds='$LD$reload_flag -o $output$reload_objs' 297305b261ecSmrg fi 297405b261ecSmrg ;; 297505b261ecSmrgesac 29764642e01fSmrg_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl 29774642e01fSmrg_LT_DECL([], [reload_cmds], [2])dnl 29784642e01fSmrg])# _LT_CMD_RELOAD 297905b261ecSmrg 298005b261ecSmrg 29814642e01fSmrg# _LT_CHECK_MAGIC_METHOD 29824642e01fSmrg# ---------------------- 298305b261ecSmrg# how to check for library dependencies 298405b261ecSmrg# -- PORTME fill in with the dynamic library characteristics 29854642e01fSmrgm4_defun([_LT_CHECK_MAGIC_METHOD], 29864642e01fSmrg[m4_require([_LT_DECL_EGREP]) 29874642e01fSmrgm4_require([_LT_DECL_OBJDUMP]) 29884642e01fSmrgAC_CACHE_CHECK([how to recognize dependent libraries], 298905b261ecSmrglt_cv_deplibs_check_method, 299005b261ecSmrg[lt_cv_file_magic_cmd='$MAGIC_CMD' 299105b261ecSmrglt_cv_file_magic_test_file= 299205b261ecSmrglt_cv_deplibs_check_method='unknown' 299305b261ecSmrg# Need to set the preceding variable on all platforms that support 299405b261ecSmrg# interlibrary dependencies. 299505b261ecSmrg# 'none' -- dependencies not supported. 299605b261ecSmrg# `unknown' -- same as none, but documents that we really don't know. 299705b261ecSmrg# 'pass_all' -- all dependencies passed with no checks. 299805b261ecSmrg# 'test_compile' -- check by making test program. 299905b261ecSmrg# 'file_magic [[regex]]' -- check by looking for files in library path 300005b261ecSmrg# which responds to the $file_magic_cmd with a given extended regex. 300105b261ecSmrg# If you have `file' or equivalent on your system and you're not sure 300205b261ecSmrg# whether `pass_all' will *always* work, you probably want this one. 300305b261ecSmrg 300405b261ecSmrgcase $host_os in 300505b261ecSmrgaix[[4-9]]*) 300605b261ecSmrg lt_cv_deplibs_check_method=pass_all 300705b261ecSmrg ;; 300805b261ecSmrg 300905b261ecSmrgbeos*) 301005b261ecSmrg lt_cv_deplibs_check_method=pass_all 301105b261ecSmrg ;; 301205b261ecSmrg 301305b261ecSmrgbsdi[[45]]*) 301405b261ecSmrg lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' 301505b261ecSmrg lt_cv_file_magic_cmd='/usr/bin/file -L' 301605b261ecSmrg lt_cv_file_magic_test_file=/shlib/libc.so 301705b261ecSmrg ;; 301805b261ecSmrg 301905b261ecSmrgcygwin*) 302005b261ecSmrg # func_win32_libid is a shell function defined in ltmain.sh 302105b261ecSmrg lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 302205b261ecSmrg lt_cv_file_magic_cmd='func_win32_libid' 302305b261ecSmrg ;; 302405b261ecSmrg 302505b261ecSmrgmingw* | pw32*) 302605b261ecSmrg # Base MSYS/MinGW do not provide the 'file' command needed by 302705b261ecSmrg # func_win32_libid shell function, so use a weaker test based on 'objdump', 302805b261ecSmrg # unless we find 'file', for example because we are cross-compiling. 302905b261ecSmrg if ( file / ) >/dev/null 2>&1; then 303005b261ecSmrg lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 303105b261ecSmrg lt_cv_file_magic_cmd='func_win32_libid' 303205b261ecSmrg else 303305b261ecSmrg lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 303405b261ecSmrg lt_cv_file_magic_cmd='$OBJDUMP -f' 303505b261ecSmrg fi 303605b261ecSmrg ;; 303705b261ecSmrg 30384642e01fSmrgcegcc) 30394642e01fSmrg # use the weaker test based on 'objdump'. See mingw*. 30404642e01fSmrg lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 30414642e01fSmrg lt_cv_file_magic_cmd='$OBJDUMP -f' 30424642e01fSmrg ;; 30434642e01fSmrg 304405b261ecSmrgdarwin* | rhapsody*) 304505b261ecSmrg lt_cv_deplibs_check_method=pass_all 304605b261ecSmrg ;; 304705b261ecSmrg 304805b261ecSmrgfreebsd* | dragonfly*) 30494642e01fSmrg if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 305005b261ecSmrg case $host_cpu in 305105b261ecSmrg i*86 ) 305205b261ecSmrg # Not sure whether the presence of OpenBSD here was a mistake. 305305b261ecSmrg # Let's accept both of them until this is cleared up. 305405b261ecSmrg lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' 305505b261ecSmrg lt_cv_file_magic_cmd=/usr/bin/file 305605b261ecSmrg lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 305705b261ecSmrg ;; 305805b261ecSmrg esac 305905b261ecSmrg else 306005b261ecSmrg lt_cv_deplibs_check_method=pass_all 306105b261ecSmrg fi 306205b261ecSmrg ;; 306305b261ecSmrg 306405b261ecSmrggnu*) 306505b261ecSmrg lt_cv_deplibs_check_method=pass_all 306605b261ecSmrg ;; 306705b261ecSmrg 306805b261ecSmrghpux10.20* | hpux11*) 306905b261ecSmrg lt_cv_file_magic_cmd=/usr/bin/file 307005b261ecSmrg case $host_cpu in 307105b261ecSmrg ia64*) 307205b261ecSmrg lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' 307305b261ecSmrg lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 307405b261ecSmrg ;; 307505b261ecSmrg hppa*64*) 307605b261ecSmrg [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]'] 307705b261ecSmrg lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 307805b261ecSmrg ;; 307905b261ecSmrg *) 308005b261ecSmrg lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' 308105b261ecSmrg lt_cv_file_magic_test_file=/usr/lib/libc.sl 308205b261ecSmrg ;; 308305b261ecSmrg esac 308405b261ecSmrg ;; 308505b261ecSmrg 308605b261ecSmrginterix[[3-9]]*) 308705b261ecSmrg # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 308805b261ecSmrg lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' 308905b261ecSmrg ;; 309005b261ecSmrg 309105b261ecSmrgirix5* | irix6* | nonstopux*) 309205b261ecSmrg case $LD in 309305b261ecSmrg *-32|*"-32 ") libmagic=32-bit;; 309405b261ecSmrg *-n32|*"-n32 ") libmagic=N32;; 309505b261ecSmrg *-64|*"-64 ") libmagic=64-bit;; 309605b261ecSmrg *) libmagic=never-match;; 309705b261ecSmrg esac 309805b261ecSmrg lt_cv_deplibs_check_method=pass_all 309905b261ecSmrg ;; 310005b261ecSmrg 310105b261ecSmrg# This must be Linux ELF. 310205b261ecSmrglinux* | k*bsd*-gnu) 310305b261ecSmrg lt_cv_deplibs_check_method=pass_all 310405b261ecSmrg ;; 310505b261ecSmrg 310605b261ecSmrgnetbsd* | netbsdelf*-gnu) 31074642e01fSmrg if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 310805b261ecSmrg lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 310905b261ecSmrg else 311005b261ecSmrg lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' 311105b261ecSmrg fi 311205b261ecSmrg ;; 311305b261ecSmrg 311405b261ecSmrgnewos6*) 311505b261ecSmrg lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' 311605b261ecSmrg lt_cv_file_magic_cmd=/usr/bin/file 311705b261ecSmrg lt_cv_file_magic_test_file=/usr/lib/libnls.so 311805b261ecSmrg ;; 311905b261ecSmrg 31204642e01fSmrg*nto* | *qnx*) 31214642e01fSmrg lt_cv_deplibs_check_method=pass_all 312205b261ecSmrg ;; 312305b261ecSmrg 312405b261ecSmrgopenbsd*) 31254642e01fSmrg if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 312605b261ecSmrg lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' 312705b261ecSmrg else 312805b261ecSmrg lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 312905b261ecSmrg fi 313005b261ecSmrg ;; 313105b261ecSmrg 313205b261ecSmrgosf3* | osf4* | osf5*) 313305b261ecSmrg lt_cv_deplibs_check_method=pass_all 313405b261ecSmrg ;; 313505b261ecSmrg 313605b261ecSmrgrdos*) 313705b261ecSmrg lt_cv_deplibs_check_method=pass_all 313805b261ecSmrg ;; 313905b261ecSmrg 314005b261ecSmrgsolaris*) 314105b261ecSmrg lt_cv_deplibs_check_method=pass_all 314205b261ecSmrg ;; 314305b261ecSmrg 31444642e01fSmrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 31454642e01fSmrg lt_cv_deplibs_check_method=pass_all 31464642e01fSmrg ;; 31474642e01fSmrg 314805b261ecSmrgsysv4 | sysv4.3*) 314905b261ecSmrg case $host_vendor in 315005b261ecSmrg motorola) 315105b261ecSmrg 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]]' 315205b261ecSmrg lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 315305b261ecSmrg ;; 315405b261ecSmrg ncr) 315505b261ecSmrg lt_cv_deplibs_check_method=pass_all 315605b261ecSmrg ;; 315705b261ecSmrg sequent) 315805b261ecSmrg lt_cv_file_magic_cmd='/bin/file' 315905b261ecSmrg lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' 316005b261ecSmrg ;; 316105b261ecSmrg sni) 316205b261ecSmrg lt_cv_file_magic_cmd='/bin/file' 316305b261ecSmrg lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" 316405b261ecSmrg lt_cv_file_magic_test_file=/lib/libc.so 316505b261ecSmrg ;; 316605b261ecSmrg siemens) 316705b261ecSmrg lt_cv_deplibs_check_method=pass_all 316805b261ecSmrg ;; 316905b261ecSmrg pc) 317005b261ecSmrg lt_cv_deplibs_check_method=pass_all 317105b261ecSmrg ;; 317205b261ecSmrg esac 317305b261ecSmrg ;; 317405b261ecSmrg 31754642e01fSmrgtpf*) 317605b261ecSmrg lt_cv_deplibs_check_method=pass_all 317705b261ecSmrg ;; 317805b261ecSmrgesac 317905b261ecSmrg]) 318005b261ecSmrgfile_magic_cmd=$lt_cv_file_magic_cmd 318105b261ecSmrgdeplibs_check_method=$lt_cv_deplibs_check_method 318205b261ecSmrgtest -z "$deplibs_check_method" && deplibs_check_method=unknown 318305b261ecSmrg 31844642e01fSmrg_LT_DECL([], [deplibs_check_method], [1], 31854642e01fSmrg [Method to check whether dependent libraries are shared objects]) 31864642e01fSmrg_LT_DECL([], [file_magic_cmd], [1], 31874642e01fSmrg [Command to use when deplibs_check_method == "file_magic"]) 31884642e01fSmrg])# _LT_CHECK_MAGIC_METHOD 318905b261ecSmrg 31904642e01fSmrg 31914642e01fSmrg# LT_PATH_NM 319205b261ecSmrg# ---------- 31934642e01fSmrg# find the pathname to a BSD- or MS-compatible name lister 31944642e01fSmrgAC_DEFUN([LT_PATH_NM], 31954642e01fSmrg[AC_REQUIRE([AC_PROG_CC])dnl 31964642e01fSmrgAC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, 319705b261ecSmrg[if test -n "$NM"; then 319805b261ecSmrg # Let the user override the test. 319905b261ecSmrg lt_cv_path_NM="$NM" 320005b261ecSmrgelse 320105b261ecSmrg lt_nm_to_check="${ac_tool_prefix}nm" 320205b261ecSmrg if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 320305b261ecSmrg lt_nm_to_check="$lt_nm_to_check nm" 320405b261ecSmrg fi 320505b261ecSmrg for lt_tmp_nm in $lt_nm_to_check; do 320605b261ecSmrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 320705b261ecSmrg for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 320805b261ecSmrg IFS="$lt_save_ifs" 320905b261ecSmrg test -z "$ac_dir" && ac_dir=. 321005b261ecSmrg tmp_nm="$ac_dir/$lt_tmp_nm" 321105b261ecSmrg if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 321205b261ecSmrg # Check to see if the nm accepts a BSD-compat flag. 321305b261ecSmrg # Adding the `sed 1q' prevents false positives on HP-UX, which says: 321405b261ecSmrg # nm: unknown option "B" ignored 321505b261ecSmrg # Tru64's nm complains that /dev/null is an invalid object file 321605b261ecSmrg case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 321705b261ecSmrg */dev/null* | *'Invalid file or object type'*) 321805b261ecSmrg lt_cv_path_NM="$tmp_nm -B" 321905b261ecSmrg break 322005b261ecSmrg ;; 322105b261ecSmrg *) 322205b261ecSmrg case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 322305b261ecSmrg */dev/null*) 322405b261ecSmrg lt_cv_path_NM="$tmp_nm -p" 322505b261ecSmrg break 322605b261ecSmrg ;; 322705b261ecSmrg *) 322805b261ecSmrg lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 322905b261ecSmrg continue # so that we can try to find one that supports BSD flags 323005b261ecSmrg ;; 323105b261ecSmrg esac 323205b261ecSmrg ;; 323305b261ecSmrg esac 323405b261ecSmrg fi 323505b261ecSmrg done 323605b261ecSmrg IFS="$lt_save_ifs" 323705b261ecSmrg done 32384642e01fSmrg : ${lt_cv_path_NM=no} 323905b261ecSmrgfi]) 32404642e01fSmrgif test "$lt_cv_path_NM" != "no"; then 32414642e01fSmrg NM="$lt_cv_path_NM" 32424642e01fSmrgelse 32434642e01fSmrg # Didn't find any BSD compatible name lister, look for dumpbin. 32444642e01fSmrg AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :) 32454642e01fSmrg AC_SUBST([DUMPBIN]) 32464642e01fSmrg if test "$DUMPBIN" != ":"; then 32474642e01fSmrg NM="$DUMPBIN" 32484642e01fSmrg fi 32494642e01fSmrgfi 32504642e01fSmrgtest -z "$NM" && NM=nm 32514642e01fSmrgAC_SUBST([NM]) 32524642e01fSmrg_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl 32534642e01fSmrg 32544642e01fSmrgAC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], 32554642e01fSmrg [lt_cv_nm_interface="BSD nm" 32564642e01fSmrg echo "int some_variable = 0;" > conftest.$ac_ext 32574642e01fSmrg (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD) 32584642e01fSmrg (eval "$ac_compile" 2>conftest.err) 32594642e01fSmrg cat conftest.err >&AS_MESSAGE_LOG_FD 32604642e01fSmrg (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) 32614642e01fSmrg (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 32624642e01fSmrg cat conftest.err >&AS_MESSAGE_LOG_FD 32634642e01fSmrg (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD) 32644642e01fSmrg cat conftest.out >&AS_MESSAGE_LOG_FD 32654642e01fSmrg if $GREP 'External.*some_variable' conftest.out > /dev/null; then 32664642e01fSmrg lt_cv_nm_interface="MS dumpbin" 32674642e01fSmrg fi 32684642e01fSmrg rm -f conftest*]) 32694642e01fSmrg])# LT_PATH_NM 327005b261ecSmrg 32714642e01fSmrg# Old names: 32724642e01fSmrgAU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) 32734642e01fSmrgAU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) 32744642e01fSmrgdnl aclocal-1.4 backwards compatibility: 32754642e01fSmrgdnl AC_DEFUN([AM_PROG_NM], []) 32764642e01fSmrgdnl AC_DEFUN([AC_PROG_NM], []) 327705b261ecSmrg 32784642e01fSmrg 32794642e01fSmrg# LT_LIB_M 32804642e01fSmrg# -------- 328105b261ecSmrg# check for math library 32824642e01fSmrgAC_DEFUN([LT_LIB_M], 328305b261ecSmrg[AC_REQUIRE([AC_CANONICAL_HOST])dnl 328405b261ecSmrgLIBM= 328505b261ecSmrgcase $host in 328605b261ecSmrg*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) 328705b261ecSmrg # These system don't have libm, or don't need it 328805b261ecSmrg ;; 328905b261ecSmrg*-ncr-sysv4.3*) 329005b261ecSmrg AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") 329105b261ecSmrg AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") 329205b261ecSmrg ;; 329305b261ecSmrg*) 329405b261ecSmrg AC_CHECK_LIB(m, cos, LIBM="-lm") 329505b261ecSmrg ;; 329605b261ecSmrgesac 32974642e01fSmrgAC_SUBST([LIBM]) 32984642e01fSmrg])# LT_LIB_M 329905b261ecSmrg 33004642e01fSmrg# Old name: 33014642e01fSmrgAU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) 33024642e01fSmrgdnl aclocal-1.4 backwards compatibility: 33034642e01fSmrgdnl AC_DEFUN([AC_CHECK_LIBM], []) 330405b261ecSmrg 330505b261ecSmrg 33064642e01fSmrg# _LT_COMPILER_NO_RTTI([TAGNAME]) 33074642e01fSmrg# ------------------------------- 33084642e01fSmrgm4_defun([_LT_COMPILER_NO_RTTI], 33094642e01fSmrg[m4_require([_LT_TAG_COMPILER])dnl 331005b261ecSmrg 33114642e01fSmrg_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 331205b261ecSmrg 33134642e01fSmrgif test "$GCC" = yes; then 33144642e01fSmrg _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 331505b261ecSmrg 33164642e01fSmrg _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], 33174642e01fSmrg lt_cv_prog_compiler_rtti_exceptions, 33184642e01fSmrg [-fno-rtti -fno-exceptions], [], 33194642e01fSmrg [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) 33204642e01fSmrgfi 33214642e01fSmrg_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], 33224642e01fSmrg [Compiler flag to turn off builtin functions]) 33234642e01fSmrg])# _LT_COMPILER_NO_RTTI 332405b261ecSmrg 332505b261ecSmrg 33264642e01fSmrg# _LT_CMD_GLOBAL_SYMBOLS 33274642e01fSmrg# ---------------------- 33284642e01fSmrgm4_defun([_LT_CMD_GLOBAL_SYMBOLS], 33294642e01fSmrg[AC_REQUIRE([AC_CANONICAL_HOST])dnl 33304642e01fSmrgAC_REQUIRE([AC_PROG_CC])dnl 33314642e01fSmrgAC_REQUIRE([LT_PATH_NM])dnl 33324642e01fSmrgAC_REQUIRE([LT_PATH_LD])dnl 33334642e01fSmrgm4_require([_LT_DECL_SED])dnl 33344642e01fSmrgm4_require([_LT_DECL_EGREP])dnl 33354642e01fSmrgm4_require([_LT_TAG_COMPILER])dnl 333605b261ecSmrg 33374642e01fSmrg# Check for command to grab the raw symbol name followed by C symbol from nm. 33384642e01fSmrgAC_MSG_CHECKING([command to parse $NM output from $compiler object]) 33394642e01fSmrgAC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], 334005b261ecSmrg[ 33414642e01fSmrg# These are sane defaults that work on at least a few old systems. 33424642e01fSmrg# [They come from Ultrix. What could be older than Ultrix?!! ;)] 334305b261ecSmrg 33444642e01fSmrg# Character class describing NM global symbol codes. 33454642e01fSmrgsymcode='[[BCDEGRST]]' 334605b261ecSmrg 33474642e01fSmrg# Regexp to match symbols that can be accessed directly from C. 33484642e01fSmrgsympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' 334905b261ecSmrg 33504642e01fSmrg# Define system-specific variables. 33514642e01fSmrgcase $host_os in 33524642e01fSmrgaix*) 33534642e01fSmrg symcode='[[BCDT]]' 33544642e01fSmrg ;; 33554642e01fSmrgcygwin* | mingw* | pw32* | cegcc*) 33564642e01fSmrg symcode='[[ABCDGISTW]]' 33574642e01fSmrg ;; 33584642e01fSmrghpux*) 33594642e01fSmrg if test "$host_cpu" = ia64; then 33604642e01fSmrg symcode='[[ABCDEGRST]]' 33614642e01fSmrg fi 33624642e01fSmrg ;; 33634642e01fSmrgirix* | nonstopux*) 33644642e01fSmrg symcode='[[BCDEGRST]]' 33654642e01fSmrg ;; 33664642e01fSmrgosf*) 33674642e01fSmrg symcode='[[BCDEGQRST]]' 33684642e01fSmrg ;; 33694642e01fSmrgsolaris*) 33704642e01fSmrg symcode='[[BDRT]]' 33714642e01fSmrg ;; 33724642e01fSmrgsco3.2v5*) 33734642e01fSmrg symcode='[[DT]]' 33744642e01fSmrg ;; 33754642e01fSmrgsysv4.2uw2*) 33764642e01fSmrg symcode='[[DT]]' 33774642e01fSmrg ;; 33784642e01fSmrgsysv5* | sco5v6* | unixware* | OpenUNIX*) 33794642e01fSmrg symcode='[[ABDT]]' 33804642e01fSmrg ;; 33814642e01fSmrgsysv4) 33824642e01fSmrg symcode='[[DFNSTU]]' 33834642e01fSmrg ;; 33844642e01fSmrgesac 338505b261ecSmrg 33864642e01fSmrg# If we're using GNU nm, then use its standard symbol codes. 33874642e01fSmrgcase `$NM -V 2>&1` in 33884642e01fSmrg*GNU* | *'with BFD'*) 33894642e01fSmrg symcode='[[ABCDGIRSTW]]' ;; 33904642e01fSmrgesac 339105b261ecSmrg 33924642e01fSmrg# Transform an extracted symbol line into a proper C declaration. 33934642e01fSmrg# Some systems (esp. on ia64) link data and code symbols differently, 33944642e01fSmrg# so use this general approach. 33954642e01fSmrglt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 339605b261ecSmrg 33974642e01fSmrg# Transform an extracted symbol line into symbol name and symbol address 33984642e01fSmrglt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" 33994642e01fSmrglt_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'" 340005b261ecSmrg 34014642e01fSmrg# Handle CRLF in mingw tool chain 34024642e01fSmrgopt_cr= 34034642e01fSmrgcase $build_os in 34044642e01fSmrgmingw*) 34054642e01fSmrg opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 34064642e01fSmrg ;; 34074642e01fSmrgesac 340805b261ecSmrg 34094642e01fSmrg# Try without a prefix underscore, then with it. 34104642e01fSmrgfor ac_symprfx in "" "_"; do 341105b261ecSmrg 34124642e01fSmrg # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 34134642e01fSmrg symxfrm="\\1 $ac_symprfx\\2 \\2" 341405b261ecSmrg 34154642e01fSmrg # Write the raw and C identifiers. 34164642e01fSmrg if test "$lt_cv_nm_interface" = "MS dumpbin"; then 34174642e01fSmrg # Fake it for dumpbin and say T for any non-static function 34184642e01fSmrg # and D for any global variable. 34194642e01fSmrg # Also find C++ and __fastcall symbols from MSVC++, 34204642e01fSmrg # which start with @ or ?. 34214642e01fSmrg lt_cv_sys_global_symbol_pipe="$AWK ['"\ 34224642e01fSmrg" {last_section=section; section=\$ 3};"\ 34234642e01fSmrg" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 34244642e01fSmrg" \$ 0!~/External *\|/{next};"\ 34254642e01fSmrg" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 34264642e01fSmrg" {if(hide[section]) next};"\ 34274642e01fSmrg" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 34284642e01fSmrg" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 34294642e01fSmrg" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 34304642e01fSmrg" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 34314642e01fSmrg" ' prfx=^$ac_symprfx]" 34324642e01fSmrg else 34334642e01fSmrg lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 34344642e01fSmrg fi 343505b261ecSmrg 34364642e01fSmrg # Check to see that the pipe works correctly. 34374642e01fSmrg pipe_works=no 343805b261ecSmrg 34394642e01fSmrg rm -f conftest* 34404642e01fSmrg cat > conftest.$ac_ext <<_LT_EOF 34414642e01fSmrg#ifdef __cplusplus 34424642e01fSmrgextern "C" { 34434642e01fSmrg#endif 34444642e01fSmrgchar nm_test_var; 34454642e01fSmrgvoid nm_test_func(void); 34464642e01fSmrgvoid nm_test_func(void){} 34474642e01fSmrg#ifdef __cplusplus 34484642e01fSmrg} 34494642e01fSmrg#endif 34504642e01fSmrgint main(){nm_test_var='a';nm_test_func();return(0);} 34514642e01fSmrg_LT_EOF 345205b261ecSmrg 34534642e01fSmrg if AC_TRY_EVAL(ac_compile); then 34544642e01fSmrg # Now try to grab the symbols. 34554642e01fSmrg nlist=conftest.nm 34564642e01fSmrg if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then 34574642e01fSmrg # Try sorting and uniquifying the output. 34584642e01fSmrg if sort "$nlist" | uniq > "$nlist"T; then 34594642e01fSmrg mv -f "$nlist"T "$nlist" 34604642e01fSmrg else 34614642e01fSmrg rm -f "$nlist"T 34624642e01fSmrg fi 346305b261ecSmrg 34644642e01fSmrg # Make sure that we snagged all the symbols we need. 34654642e01fSmrg if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 34664642e01fSmrg if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 34674642e01fSmrg cat <<_LT_EOF > conftest.$ac_ext 34684642e01fSmrg#ifdef __cplusplus 34694642e01fSmrgextern "C" { 34704642e01fSmrg#endif 347105b261ecSmrg 34724642e01fSmrg_LT_EOF 34734642e01fSmrg # Now generate the symbol file. 34744642e01fSmrg eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 347505b261ecSmrg 34764642e01fSmrg cat <<_LT_EOF >> conftest.$ac_ext 347705b261ecSmrg 34784642e01fSmrg/* The mapping between symbol names and symbols. */ 34794642e01fSmrgconst struct { 34804642e01fSmrg const char *name; 34814642e01fSmrg void *address; 34824642e01fSmrg} 34834642e01fSmrglt__PROGRAM__LTX_preloaded_symbols[[]] = 34844642e01fSmrg{ 34854642e01fSmrg { "@PROGRAM@", (void *) 0 }, 34864642e01fSmrg_LT_EOF 34874642e01fSmrg $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 34884642e01fSmrg cat <<\_LT_EOF >> conftest.$ac_ext 34894642e01fSmrg {0, (void *) 0} 34904642e01fSmrg}; 349105b261ecSmrg 34924642e01fSmrg/* This works around a problem in FreeBSD linker */ 34934642e01fSmrg#ifdef FREEBSD_WORKAROUND 34944642e01fSmrgstatic const void *lt_preloaded_setup() { 34954642e01fSmrg return lt__PROGRAM__LTX_preloaded_symbols; 34964642e01fSmrg} 34974642e01fSmrg#endif 349805b261ecSmrg 34994642e01fSmrg#ifdef __cplusplus 35004642e01fSmrg} 35014642e01fSmrg#endif 35024642e01fSmrg_LT_EOF 35034642e01fSmrg # Now try linking the two files. 35044642e01fSmrg mv conftest.$ac_objext conftstm.$ac_objext 35054642e01fSmrg lt_save_LIBS="$LIBS" 35064642e01fSmrg lt_save_CFLAGS="$CFLAGS" 35074642e01fSmrg LIBS="conftstm.$ac_objext" 35084642e01fSmrg CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" 35094642e01fSmrg if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then 35104642e01fSmrg pipe_works=yes 35114642e01fSmrg fi 35124642e01fSmrg LIBS="$lt_save_LIBS" 35134642e01fSmrg CFLAGS="$lt_save_CFLAGS" 35144642e01fSmrg else 35154642e01fSmrg echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD 35164642e01fSmrg fi 35174642e01fSmrg else 35184642e01fSmrg echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD 35194642e01fSmrg fi 352005b261ecSmrg else 35214642e01fSmrg echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD 352205b261ecSmrg fi 352305b261ecSmrg else 35244642e01fSmrg echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD 35254642e01fSmrg cat conftest.$ac_ext >&5 352605b261ecSmrg fi 35274642e01fSmrg rm -rf conftest* conftst* 352805b261ecSmrg 35294642e01fSmrg # Do not use the global_symbol_pipe unless it works. 35304642e01fSmrg if test "$pipe_works" = yes; then 35314642e01fSmrg break 35324642e01fSmrg else 35334642e01fSmrg lt_cv_sys_global_symbol_pipe= 35344642e01fSmrg fi 35354642e01fSmrgdone 35364642e01fSmrg]) 35374642e01fSmrgif test -z "$lt_cv_sys_global_symbol_pipe"; then 35384642e01fSmrg lt_cv_sys_global_symbol_to_cdecl= 35394642e01fSmrgfi 35404642e01fSmrgif test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 35414642e01fSmrg AC_MSG_RESULT(failed) 354205b261ecSmrgelse 35434642e01fSmrg AC_MSG_RESULT(ok) 354405b261ecSmrgfi 354505b261ecSmrg 35464642e01fSmrg_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], 35474642e01fSmrg [Take the output of nm and produce a listing of raw symbols and C names]) 35484642e01fSmrg_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], 35494642e01fSmrg [Transform the output of nm in a proper C declaration]) 35504642e01fSmrg_LT_DECL([global_symbol_to_c_name_address], 35514642e01fSmrg [lt_cv_sys_global_symbol_to_c_name_address], [1], 35524642e01fSmrg [Transform the output of nm in a C name address pair]) 35534642e01fSmrg_LT_DECL([global_symbol_to_c_name_address_lib_prefix], 35544642e01fSmrg [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], 35554642e01fSmrg [Transform the output of nm in a C name address pair when lib prefix is needed]) 35564642e01fSmrg]) # _LT_CMD_GLOBAL_SYMBOLS 355705b261ecSmrg 355805b261ecSmrg 35594642e01fSmrg# _LT_COMPILER_PIC([TAGNAME]) 35604642e01fSmrg# --------------------------- 35614642e01fSmrgm4_defun([_LT_COMPILER_PIC], 35624642e01fSmrg[m4_require([_LT_TAG_COMPILER])dnl 35634642e01fSmrg_LT_TAGVAR(lt_prog_compiler_wl, $1)= 35644642e01fSmrg_LT_TAGVAR(lt_prog_compiler_pic, $1)= 35654642e01fSmrg_LT_TAGVAR(lt_prog_compiler_static, $1)= 356605b261ecSmrg 35674642e01fSmrgAC_MSG_CHECKING([for $compiler option to produce PIC]) 35684642e01fSmrgm4_if([$1], [CXX], [ 35694642e01fSmrg # C++ specific cases for pic, static, wl, etc. 35704642e01fSmrg if test "$GXX" = yes; then 35714642e01fSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 35724642e01fSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 357305b261ecSmrg 35744642e01fSmrg case $host_os in 35754642e01fSmrg aix*) 35764642e01fSmrg # All AIX code is PIC. 357705b261ecSmrg if test "$host_cpu" = ia64; then 35784642e01fSmrg # AIX 5 now supports IA64 processor 35794642e01fSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 358005b261ecSmrg fi 35814642e01fSmrg ;; 358205b261ecSmrg 35834642e01fSmrg amigaos*) 35844642e01fSmrg case $host_cpu in 35854642e01fSmrg powerpc) 35864642e01fSmrg # see comment about AmigaOS4 .so support 35874642e01fSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 358805b261ecSmrg ;; 35894642e01fSmrg m68k) 35904642e01fSmrg # FIXME: we need at least 68020 code to build shared libraries, but 35914642e01fSmrg # adding the `-m68020' flag to GCC prevents building anything better, 35924642e01fSmrg # like `-m68040'. 35934642e01fSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 35944642e01fSmrg ;; 35954642e01fSmrg esac 35964642e01fSmrg ;; 359705b261ecSmrg 35984642e01fSmrg beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 35994642e01fSmrg # PIC is the default for these OSes. 36004642e01fSmrg ;; 36014642e01fSmrg mingw* | cygwin* | os2* | pw32* | cegcc*) 36024642e01fSmrg # This hack is so that the source file can tell whether it is being 36034642e01fSmrg # built for inclusion in a dll (and should export symbols for example). 36044642e01fSmrg # Although the cygwin gcc ignores -fPIC, still need this for old-style 36054642e01fSmrg # (--disable-auto-import) libraries 36064642e01fSmrg m4_if([$1], [GCJ], [], 36074642e01fSmrg [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 36084642e01fSmrg ;; 36094642e01fSmrg darwin* | rhapsody*) 36104642e01fSmrg # PIC is the default on this platform 36114642e01fSmrg # Common symbols not allowed in MH_DYLIB files 36124642e01fSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 36134642e01fSmrg ;; 36144642e01fSmrg *djgpp*) 36154642e01fSmrg # DJGPP does not support shared libraries at all 36164642e01fSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)= 36174642e01fSmrg ;; 36184642e01fSmrg interix[[3-9]]*) 36194642e01fSmrg # Interix 3.x gcc -fpic/-fPIC options generate broken code. 36204642e01fSmrg # Instead, we relocate shared libraries at runtime. 36214642e01fSmrg ;; 36224642e01fSmrg sysv4*MP*) 36234642e01fSmrg if test -d /usr/nec; then 36244642e01fSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 36254642e01fSmrg fi 36264642e01fSmrg ;; 36274642e01fSmrg hpux*) 36284642e01fSmrg # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 36294642e01fSmrg # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 36304642e01fSmrg # sets the default TLS model and affects inlining. 36314642e01fSmrg case $host_cpu in 36324642e01fSmrg hppa*64*) 363305b261ecSmrg ;; 363405b261ecSmrg *) 36354642e01fSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 363605b261ecSmrg ;; 36374642e01fSmrg esac 363805b261ecSmrg ;; 36394642e01fSmrg *qnx* | *nto*) 36404642e01fSmrg # QNX uses GNU C++, but need to define -shared option too, otherwise 36414642e01fSmrg # it will coredump. 36424642e01fSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 364305b261ecSmrg ;; 364405b261ecSmrg *) 36454642e01fSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 364605b261ecSmrg ;; 364705b261ecSmrg esac 36484642e01fSmrg else 36494642e01fSmrg case $host_os in 36504642e01fSmrg aix[[4-9]]*) 36514642e01fSmrg # All AIX code is PIC. 36524642e01fSmrg if test "$host_cpu" = ia64; then 36534642e01fSmrg # AIX 5 now supports IA64 processor 36544642e01fSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 36554642e01fSmrg else 36564642e01fSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 36574642e01fSmrg fi 365805b261ecSmrg ;; 36594642e01fSmrg chorus*) 36604642e01fSmrg case $cc_basename in 36614642e01fSmrg cxch68*) 36624642e01fSmrg # Green Hills C++ Compiler 36634642e01fSmrg # _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" 366405b261ecSmrg ;; 366505b261ecSmrg esac 366605b261ecSmrg ;; 36674642e01fSmrg dgux*) 36684642e01fSmrg case $cc_basename in 36694642e01fSmrg ec++*) 36704642e01fSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 36714642e01fSmrg ;; 36724642e01fSmrg ghcx*) 36734642e01fSmrg # Green Hills C++ Compiler 36744642e01fSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 36754642e01fSmrg ;; 36764642e01fSmrg *) 36774642e01fSmrg ;; 36784642e01fSmrg esac 36794642e01fSmrg ;; 36804642e01fSmrg freebsd* | dragonfly*) 36814642e01fSmrg # FreeBSD uses GNU C++ 36824642e01fSmrg ;; 36834642e01fSmrg hpux9* | hpux10* | hpux11*) 36844642e01fSmrg case $cc_basename in 36854642e01fSmrg CC*) 36864642e01fSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 36874642e01fSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 36884642e01fSmrg if test "$host_cpu" != ia64; then 36894642e01fSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 36904642e01fSmrg fi 36914642e01fSmrg ;; 36924642e01fSmrg aCC*) 36934642e01fSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 36944642e01fSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 369505b261ecSmrg case $host_cpu in 36964642e01fSmrg hppa*64*|ia64*) 36974642e01fSmrg # +Z the default 369805b261ecSmrg ;; 369905b261ecSmrg *) 37004642e01fSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 370105b261ecSmrg ;; 370205b261ecSmrg esac 37034642e01fSmrg ;; 37044642e01fSmrg *) 37054642e01fSmrg ;; 370605b261ecSmrg esac 370705b261ecSmrg ;; 37084642e01fSmrg interix*) 37094642e01fSmrg # This is c89, which is MS Visual C++ (no shared libs) 37104642e01fSmrg # Anyone wants to do a port? 371105b261ecSmrg ;; 37124642e01fSmrg irix5* | irix6* | nonstopux*) 37134642e01fSmrg case $cc_basename in 37144642e01fSmrg CC*) 37154642e01fSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 37164642e01fSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 37174642e01fSmrg # CC pic flag -KPIC is the default. 37184642e01fSmrg ;; 37194642e01fSmrg *) 37204642e01fSmrg ;; 372105b261ecSmrg esac 372205b261ecSmrg ;; 37234642e01fSmrg linux* | k*bsd*-gnu) 37244642e01fSmrg case $cc_basename in 37254642e01fSmrg KCC*) 37264642e01fSmrg # KAI C++ Compiler 37274642e01fSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 37284642e01fSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 37294642e01fSmrg ;; 37304642e01fSmrg ecpc* ) 37314642e01fSmrg # old Intel C++ for x86_64 which still supported -KPIC. 37324642e01fSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 37334642e01fSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 37344642e01fSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 37354642e01fSmrg ;; 37364642e01fSmrg icpc* ) 37374642e01fSmrg # Intel C++, used to be incompatible with GCC. 37384642e01fSmrg # ICC 10 doesn't accept -KPIC any more. 37394642e01fSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 37404642e01fSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 37414642e01fSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 37424642e01fSmrg ;; 37434642e01fSmrg pgCC* | pgcpp*) 37444642e01fSmrg # Portland Group C++ compiler 37454642e01fSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 37464642e01fSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 37474642e01fSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 37484642e01fSmrg ;; 37494642e01fSmrg cxx*) 37504642e01fSmrg # Compaq C++ 37514642e01fSmrg # Make sure the PIC flag is empty. It appears that all Alpha 37524642e01fSmrg # Linux and Compaq Tru64 Unix objects are PIC. 37534642e01fSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)= 37544642e01fSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 37554642e01fSmrg ;; 37564642e01fSmrg xlc* | xlC*) 37574642e01fSmrg # IBM XL 8.0 on PPC 37584642e01fSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 37594642e01fSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' 37604642e01fSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' 37614642e01fSmrg ;; 37624642e01fSmrg *) 37634642e01fSmrg case `$CC -V 2>&1 | sed 5q` in 37644642e01fSmrg *Sun\ C*) 37654642e01fSmrg # Sun C++ 5.9 37664642e01fSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 37674642e01fSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 37684642e01fSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 37694642e01fSmrg ;; 37704642e01fSmrg esac 37714642e01fSmrg ;; 37724642e01fSmrg esac 377305b261ecSmrg ;; 37744642e01fSmrg lynxos*) 377505b261ecSmrg ;; 37764642e01fSmrg m88k*) 377705b261ecSmrg ;; 37784642e01fSmrg mvs*) 37794642e01fSmrg case $cc_basename in 37804642e01fSmrg cxx*) 37814642e01fSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' 37824642e01fSmrg ;; 37834642e01fSmrg *) 37844642e01fSmrg ;; 37854642e01fSmrg esac 378605b261ecSmrg ;; 37874642e01fSmrg netbsd* | netbsdelf*-gnu) 378805b261ecSmrg ;; 37894642e01fSmrg *qnx* | *nto*) 37904642e01fSmrg # QNX uses GNU C++, but need to define -shared option too, otherwise 37914642e01fSmrg # it will coredump. 37924642e01fSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 37934642e01fSmrg ;; 37944642e01fSmrg osf3* | osf4* | osf5*) 37954642e01fSmrg case $cc_basename in 37964642e01fSmrg KCC*) 37974642e01fSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 37984642e01fSmrg ;; 37994642e01fSmrg RCC*) 38004642e01fSmrg # Rational C++ 2.4.1 38014642e01fSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 38024642e01fSmrg ;; 38034642e01fSmrg cxx*) 38044642e01fSmrg # Digital/Compaq C++ 38054642e01fSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 38064642e01fSmrg # Make sure the PIC flag is empty. It appears that all Alpha 38074642e01fSmrg # Linux and Compaq Tru64 Unix objects are PIC. 38084642e01fSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)= 38094642e01fSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 38104642e01fSmrg ;; 38114642e01fSmrg *) 38124642e01fSmrg ;; 38134642e01fSmrg esac 381405b261ecSmrg ;; 38154642e01fSmrg psos*) 381605b261ecSmrg ;; 38174642e01fSmrg solaris*) 38184642e01fSmrg case $cc_basename in 38194642e01fSmrg CC*) 38204642e01fSmrg # Sun C++ 4.2, 5.x and Centerline C++ 38214642e01fSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 38224642e01fSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 38234642e01fSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 38244642e01fSmrg ;; 38254642e01fSmrg gcx*) 38264642e01fSmrg # Green Hills C++ Compiler 38274642e01fSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 38284642e01fSmrg ;; 382905b261ecSmrg *) 383005b261ecSmrg ;; 383105b261ecSmrg esac 383205b261ecSmrg ;; 38334642e01fSmrg sunos4*) 38344642e01fSmrg case $cc_basename in 38354642e01fSmrg CC*) 38364642e01fSmrg # Sun C++ 4.x 38374642e01fSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 38384642e01fSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 38394642e01fSmrg ;; 38404642e01fSmrg lcc*) 38414642e01fSmrg # Lucid 38424642e01fSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 38434642e01fSmrg ;; 384405b261ecSmrg *) 384505b261ecSmrg ;; 38464642e01fSmrg esac 384705b261ecSmrg ;; 38484642e01fSmrg sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 38494642e01fSmrg case $cc_basename in 38504642e01fSmrg CC*) 38514642e01fSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 38524642e01fSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 38534642e01fSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 38544642e01fSmrg ;; 38554642e01fSmrg esac 385605b261ecSmrg ;; 38574642e01fSmrg tandem*) 38584642e01fSmrg case $cc_basename in 38594642e01fSmrg NCC*) 38604642e01fSmrg # NonStop-UX NCC 3.20 38614642e01fSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 38624642e01fSmrg ;; 38634642e01fSmrg *) 38644642e01fSmrg ;; 38654642e01fSmrg esac 386605b261ecSmrg ;; 38674642e01fSmrg vxworks*) 386805b261ecSmrg ;; 386905b261ecSmrg *) 38704642e01fSmrg _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 387105b261ecSmrg ;; 387205b261ecSmrg esac 38734642e01fSmrg fi 38744642e01fSmrg], 38754642e01fSmrg[ 38764642e01fSmrg if test "$GCC" = yes; then 38774642e01fSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 38784642e01fSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 387905b261ecSmrg 38804642e01fSmrg case $host_os in 38814642e01fSmrg aix*) 38824642e01fSmrg # All AIX code is PIC. 38834642e01fSmrg if test "$host_cpu" = ia64; then 38844642e01fSmrg # AIX 5 now supports IA64 processor 38854642e01fSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 38864642e01fSmrg fi 38874642e01fSmrg ;; 388805b261ecSmrg 38894642e01fSmrg amigaos*) 38904642e01fSmrg case $host_cpu in 38914642e01fSmrg powerpc) 38924642e01fSmrg # see comment about AmigaOS4 .so support 38934642e01fSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 38944642e01fSmrg ;; 38954642e01fSmrg m68k) 38964642e01fSmrg # FIXME: we need at least 68020 code to build shared libraries, but 38974642e01fSmrg # adding the `-m68020' flag to GCC prevents building anything better, 38984642e01fSmrg # like `-m68040'. 38994642e01fSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 39004642e01fSmrg ;; 39014642e01fSmrg esac 39024642e01fSmrg ;; 390305b261ecSmrg 39044642e01fSmrg beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 39054642e01fSmrg # PIC is the default for these OSes. 39064642e01fSmrg ;; 390705b261ecSmrg 39084642e01fSmrg mingw* | cygwin* | pw32* | os2* | cegcc*) 39094642e01fSmrg # This hack is so that the source file can tell whether it is being 39104642e01fSmrg # built for inclusion in a dll (and should export symbols for example). 39114642e01fSmrg # Although the cygwin gcc ignores -fPIC, still need this for old-style 39124642e01fSmrg # (--disable-auto-import) libraries 39134642e01fSmrg m4_if([$1], [GCJ], [], 39144642e01fSmrg [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 39154642e01fSmrg ;; 391605b261ecSmrg 39174642e01fSmrg darwin* | rhapsody*) 39184642e01fSmrg # PIC is the default on this platform 39194642e01fSmrg # Common symbols not allowed in MH_DYLIB files 39204642e01fSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 39214642e01fSmrg ;; 392205b261ecSmrg 39234642e01fSmrg hpux*) 39244642e01fSmrg # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 39254642e01fSmrg # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 39264642e01fSmrg # sets the default TLS model and affects inlining. 39274642e01fSmrg case $host_cpu in 39284642e01fSmrg hppa*64*) 39294642e01fSmrg # +Z the default 39304642e01fSmrg ;; 39314642e01fSmrg *) 39324642e01fSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 39334642e01fSmrg ;; 39344642e01fSmrg esac 39354642e01fSmrg ;; 393605b261ecSmrg 39374642e01fSmrg interix[[3-9]]*) 39384642e01fSmrg # Interix 3.x gcc -fpic/-fPIC options generate broken code. 39394642e01fSmrg # Instead, we relocate shared libraries at runtime. 39404642e01fSmrg ;; 394105b261ecSmrg 39424642e01fSmrg msdosdjgpp*) 39434642e01fSmrg # Just because we use GCC doesn't mean we suddenly get shared libraries 39444642e01fSmrg # on systems that don't support them. 39454642e01fSmrg _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 39464642e01fSmrg enable_shared=no 39474642e01fSmrg ;; 394805b261ecSmrg 39494642e01fSmrg *nto* | *qnx*) 39504642e01fSmrg # QNX uses GNU C++, but need to define -shared option too, otherwise 39514642e01fSmrg # it will coredump. 39524642e01fSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 39534642e01fSmrg ;; 395405b261ecSmrg 39554642e01fSmrg sysv4*MP*) 39564642e01fSmrg if test -d /usr/nec; then 39574642e01fSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 39584642e01fSmrg fi 39594642e01fSmrg ;; 396005b261ecSmrg 39614642e01fSmrg *) 39624642e01fSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 39634642e01fSmrg ;; 39644642e01fSmrg esac 39654642e01fSmrg else 39664642e01fSmrg # PORTME Check for flag to pass linker flags through the system compiler. 39674642e01fSmrg case $host_os in 39684642e01fSmrg aix*) 39694642e01fSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 39704642e01fSmrg if test "$host_cpu" = ia64; then 39714642e01fSmrg # AIX 5 now supports IA64 processor 39724642e01fSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 39734642e01fSmrg else 39744642e01fSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 39754642e01fSmrg fi 39764642e01fSmrg ;; 397705b261ecSmrg 39784642e01fSmrg mingw* | cygwin* | pw32* | os2* | cegcc*) 39794642e01fSmrg # This hack is so that the source file can tell whether it is being 39804642e01fSmrg # built for inclusion in a dll (and should export symbols for example). 39814642e01fSmrg m4_if([$1], [GCJ], [], 39824642e01fSmrg [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 39834642e01fSmrg ;; 398405b261ecSmrg 39854642e01fSmrg hpux9* | hpux10* | hpux11*) 39864642e01fSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 39874642e01fSmrg # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 39884642e01fSmrg # not for PA HP-UX. 39894642e01fSmrg case $host_cpu in 39904642e01fSmrg hppa*64*|ia64*) 39914642e01fSmrg # +Z the default 39924642e01fSmrg ;; 39934642e01fSmrg *) 39944642e01fSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 39954642e01fSmrg ;; 39964642e01fSmrg esac 39974642e01fSmrg # Is there a better lt_prog_compiler_static that works with the bundled CC? 39984642e01fSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 39994642e01fSmrg ;; 400005b261ecSmrg 40014642e01fSmrg irix5* | irix6* | nonstopux*) 40024642e01fSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 40034642e01fSmrg # PIC (with -KPIC) is the default. 40044642e01fSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 40054642e01fSmrg ;; 400605b261ecSmrg 40074642e01fSmrg linux* | k*bsd*-gnu) 40084642e01fSmrg case $cc_basename in 40094642e01fSmrg # old Intel for x86_64 which still supported -KPIC. 40104642e01fSmrg ecc*) 40114642e01fSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 40124642e01fSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 40134642e01fSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 40144642e01fSmrg ;; 40154642e01fSmrg # icc used to be incompatible with GCC. 40164642e01fSmrg # ICC 10 doesn't accept -KPIC any more. 40174642e01fSmrg icc* | ifort*) 40184642e01fSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 40194642e01fSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 40204642e01fSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 40214642e01fSmrg ;; 40224642e01fSmrg # Lahey Fortran 8.1. 40234642e01fSmrg lf95*) 40244642e01fSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 40254642e01fSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' 40264642e01fSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' 40274642e01fSmrg ;; 40284642e01fSmrg pgcc* | pgf77* | pgf90* | pgf95*) 40294642e01fSmrg # Portland Group compilers (*not* the Pentium gcc compiler, 40304642e01fSmrg # which looks to be a dead project) 40314642e01fSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 40324642e01fSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 40334642e01fSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 40344642e01fSmrg ;; 40354642e01fSmrg ccc*) 40364642e01fSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 40374642e01fSmrg # All Alpha code is PIC. 40384642e01fSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 40394642e01fSmrg ;; 40404642e01fSmrg xl*) 40414642e01fSmrg # IBM XL C 8.0/Fortran 10.1 on PPC 40424642e01fSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 40434642e01fSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' 40444642e01fSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' 40454642e01fSmrg ;; 40464642e01fSmrg *) 40474642e01fSmrg case `$CC -V 2>&1 | sed 5q` in 40484642e01fSmrg *Sun\ C*) 40494642e01fSmrg # Sun C 5.9 40504642e01fSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 40514642e01fSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 40524642e01fSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 40534642e01fSmrg ;; 40544642e01fSmrg *Sun\ F*) 40554642e01fSmrg # Sun Fortran 8.3 passes all unrecognized flags to the linker 40564642e01fSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 40574642e01fSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 40584642e01fSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='' 40594642e01fSmrg ;; 40604642e01fSmrg esac 40614642e01fSmrg ;; 40624642e01fSmrg esac 40634642e01fSmrg ;; 406405b261ecSmrg 40654642e01fSmrg newsos6) 40664642e01fSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 40674642e01fSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 40684642e01fSmrg ;; 406905b261ecSmrg 40704642e01fSmrg *nto* | *qnx*) 40714642e01fSmrg # QNX uses GNU C++, but need to define -shared option too, otherwise 40724642e01fSmrg # it will coredump. 40734642e01fSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 40744642e01fSmrg ;; 407505b261ecSmrg 40764642e01fSmrg osf3* | osf4* | osf5*) 40774642e01fSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 40784642e01fSmrg # All OSF/1 code is PIC. 40794642e01fSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 408005b261ecSmrg ;; 408105b261ecSmrg 40824642e01fSmrg rdos*) 40834642e01fSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 408405b261ecSmrg ;; 408505b261ecSmrg 40864642e01fSmrg solaris*) 40874642e01fSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 40884642e01fSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 40894642e01fSmrg case $cc_basename in 40904642e01fSmrg f77* | f90* | f95*) 40914642e01fSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; 40924642e01fSmrg *) 40934642e01fSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; 40944642e01fSmrg esac 40954642e01fSmrg ;; 409605b261ecSmrg 40974642e01fSmrg sunos4*) 40984642e01fSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 40994642e01fSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 41004642e01fSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 41014642e01fSmrg ;; 410205b261ecSmrg 41034642e01fSmrg sysv4 | sysv4.2uw2* | sysv4.3*) 41044642e01fSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 41054642e01fSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 41064642e01fSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 41074642e01fSmrg ;; 410805b261ecSmrg 41094642e01fSmrg sysv4*MP*) 41104642e01fSmrg if test -d /usr/nec ;then 41114642e01fSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' 41124642e01fSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 41134642e01fSmrg fi 41144642e01fSmrg ;; 411505b261ecSmrg 41164642e01fSmrg sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 41174642e01fSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 41184642e01fSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 41194642e01fSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 41204642e01fSmrg ;; 412105b261ecSmrg 41224642e01fSmrg unicos*) 41234642e01fSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 41244642e01fSmrg _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 41254642e01fSmrg ;; 412605b261ecSmrg 41274642e01fSmrg uts4*) 41284642e01fSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 41294642e01fSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 41304642e01fSmrg ;; 413105b261ecSmrg 41324642e01fSmrg *) 41334642e01fSmrg _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 41344642e01fSmrg ;; 41354642e01fSmrg esac 41364642e01fSmrg fi 41374642e01fSmrg]) 41384642e01fSmrgcase $host_os in 41394642e01fSmrg # For platforms which do not support PIC, -DPIC is meaningless: 41404642e01fSmrg *djgpp*) 41414642e01fSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)= 41424642e01fSmrg ;; 41434642e01fSmrg *) 41444642e01fSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" 41454642e01fSmrg ;; 41464642e01fSmrgesac 41474642e01fSmrgAC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) 41484642e01fSmrg_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], 41494642e01fSmrg [How to pass a linker flag through the compiler]) 415005b261ecSmrg 41514642e01fSmrg# 41524642e01fSmrg# Check to make sure the PIC flag actually works. 41534642e01fSmrg# 41544642e01fSmrgif test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then 41554642e01fSmrg _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], 41564642e01fSmrg [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], 41574642e01fSmrg [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], 41584642e01fSmrg [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in 41594642e01fSmrg "" | " "*) ;; 41604642e01fSmrg *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; 41614642e01fSmrg esac], 41624642e01fSmrg [_LT_TAGVAR(lt_prog_compiler_pic, $1)= 41634642e01fSmrg _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) 41644642e01fSmrgfi 41654642e01fSmrg_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], 41664642e01fSmrg [Additional compiler flags for building library objects]) 416705b261ecSmrg 41684642e01fSmrg# 41694642e01fSmrg# Check to make sure the static flag actually works. 41704642e01fSmrg# 41714642e01fSmrgwl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" 41724642e01fSmrg_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], 41734642e01fSmrg _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), 41744642e01fSmrg $lt_tmp_static_flag, 41754642e01fSmrg [], 41764642e01fSmrg [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) 41774642e01fSmrg_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], 41784642e01fSmrg [Compiler flag to prevent dynamic linking]) 41794642e01fSmrg])# _LT_COMPILER_PIC 418005b261ecSmrg 418105b261ecSmrg 41824642e01fSmrg# _LT_LINKER_SHLIBS([TAGNAME]) 41834642e01fSmrg# ---------------------------- 41844642e01fSmrg# See if the linker supports building shared libraries. 41854642e01fSmrgm4_defun([_LT_LINKER_SHLIBS], 41864642e01fSmrg[AC_REQUIRE([LT_PATH_LD])dnl 41874642e01fSmrgAC_REQUIRE([LT_PATH_NM])dnl 41884642e01fSmrgm4_require([_LT_FILEUTILS_DEFAULTS])dnl 41894642e01fSmrgm4_require([_LT_DECL_EGREP])dnl 41904642e01fSmrgm4_require([_LT_DECL_SED])dnl 41914642e01fSmrgm4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl 41924642e01fSmrgm4_require([_LT_TAG_COMPILER])dnl 41934642e01fSmrgAC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 41944642e01fSmrgm4_if([$1], [CXX], [ 41954642e01fSmrg _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 41964642e01fSmrg case $host_os in 41974642e01fSmrg aix[[4-9]]*) 41984642e01fSmrg # If we're using GNU nm, then we don't want the "-C" option. 41994642e01fSmrg # -C means demangle to AIX nm, but means don't demangle with GNU nm 42004642e01fSmrg if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 42014642e01fSmrg _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' 42024642e01fSmrg else 42034642e01fSmrg _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' 42044642e01fSmrg fi 42054642e01fSmrg ;; 42064642e01fSmrg pw32*) 42074642e01fSmrg _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" 420805b261ecSmrg ;; 42094642e01fSmrg cygwin* | mingw* | cegcc*) 42104642e01fSmrg _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' 421105b261ecSmrg ;; 42124642e01fSmrg linux* | k*bsd*-gnu) 42134642e01fSmrg _LT_TAGVAR(link_all_deplibs, $1)=no 42144642e01fSmrg ;; 42154642e01fSmrg *) 42164642e01fSmrg _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 42174642e01fSmrg ;; 42184642e01fSmrg esac 42194642e01fSmrg _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 42204642e01fSmrg], [ 42214642e01fSmrg runpath_var= 42224642e01fSmrg _LT_TAGVAR(allow_undefined_flag, $1)= 42234642e01fSmrg _LT_TAGVAR(always_export_symbols, $1)=no 42244642e01fSmrg _LT_TAGVAR(archive_cmds, $1)= 42254642e01fSmrg _LT_TAGVAR(archive_expsym_cmds, $1)= 42264642e01fSmrg _LT_TAGVAR(compiler_needs_object, $1)=no 42274642e01fSmrg _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 42284642e01fSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)= 42294642e01fSmrg _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 42304642e01fSmrg _LT_TAGVAR(hardcode_automatic, $1)=no 42314642e01fSmrg _LT_TAGVAR(hardcode_direct, $1)=no 42324642e01fSmrg _LT_TAGVAR(hardcode_direct_absolute, $1)=no 42334642e01fSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 42344642e01fSmrg _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 42354642e01fSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)= 42364642e01fSmrg _LT_TAGVAR(hardcode_minus_L, $1)=no 42374642e01fSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 42384642e01fSmrg _LT_TAGVAR(inherit_rpath, $1)=no 42394642e01fSmrg _LT_TAGVAR(link_all_deplibs, $1)=unknown 42404642e01fSmrg _LT_TAGVAR(module_cmds, $1)= 42414642e01fSmrg _LT_TAGVAR(module_expsym_cmds, $1)= 42424642e01fSmrg _LT_TAGVAR(old_archive_from_new_cmds, $1)= 42434642e01fSmrg _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= 42444642e01fSmrg _LT_TAGVAR(thread_safe_flag_spec, $1)= 42454642e01fSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)= 42464642e01fSmrg # include_expsyms should be a list of space-separated symbols to be *always* 42474642e01fSmrg # included in the symbol list 42484642e01fSmrg _LT_TAGVAR(include_expsyms, $1)= 42494642e01fSmrg # exclude_expsyms can be an extended regexp of symbols to exclude 42504642e01fSmrg # it will be wrapped by ` (' and `)$', so one must not match beginning or 42514642e01fSmrg # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 42524642e01fSmrg # as well as any symbol that contains `d'. 42534642e01fSmrg _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 42544642e01fSmrg # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 42554642e01fSmrg # platforms (ab)use it in PIC code, but their linkers get confused if 42564642e01fSmrg # the symbol is explicitly referenced. Since portable code cannot 42574642e01fSmrg # rely on this symbol name, it's probably fine to never include it in 42584642e01fSmrg # preloaded symbol tables. 42594642e01fSmrg # Exclude shared library initialization/finalization symbols. 42604642e01fSmrgdnl Note also adjust exclude_expsyms for C++ above. 42614642e01fSmrg extract_expsyms_cmds= 426205b261ecSmrg 42634642e01fSmrg case $host_os in 42644642e01fSmrg cygwin* | mingw* | pw32* | cegcc*) 42654642e01fSmrg # FIXME: the MSVC++ port hasn't been tested in a loooong time 42664642e01fSmrg # When not using gcc, we currently assume that we are using 42674642e01fSmrg # Microsoft Visual C++. 42684642e01fSmrg if test "$GCC" != yes; then 42694642e01fSmrg with_gnu_ld=no 42704642e01fSmrg fi 42714642e01fSmrg ;; 42724642e01fSmrg interix*) 42734642e01fSmrg # we just hope/assume this is gcc and not c89 (= MSVC++) 42744642e01fSmrg with_gnu_ld=yes 42754642e01fSmrg ;; 42764642e01fSmrg openbsd*) 42774642e01fSmrg with_gnu_ld=no 42784642e01fSmrg ;; 42794642e01fSmrg linux* | k*bsd*-gnu) 42804642e01fSmrg _LT_TAGVAR(link_all_deplibs, $1)=no 42814642e01fSmrg ;; 42824642e01fSmrg esac 428305b261ecSmrg 42844642e01fSmrg _LT_TAGVAR(ld_shlibs, $1)=yes 42854642e01fSmrg if test "$with_gnu_ld" = yes; then 42864642e01fSmrg # If archive_cmds runs LD, not CC, wlarc should be empty 42874642e01fSmrg wlarc='${wl}' 428805b261ecSmrg 42894642e01fSmrg # Set some defaults for GNU ld with shared library support. These 42904642e01fSmrg # are reset later if shared libraries are not supported. Putting them 42914642e01fSmrg # here allows them to be overridden if necessary. 42924642e01fSmrg runpath_var=LD_RUN_PATH 42934642e01fSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 42944642e01fSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 42954642e01fSmrg # ancient GNU ld didn't support --whole-archive et. al. 42964642e01fSmrg if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 42974642e01fSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 42984642e01fSmrg else 42994642e01fSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)= 43004642e01fSmrg fi 43014642e01fSmrg supports_anon_versioning=no 43024642e01fSmrg case `$LD -v 2>&1` in 43034642e01fSmrg *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 43044642e01fSmrg *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 43054642e01fSmrg *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 43064642e01fSmrg *\ 2.11.*) ;; # other 2.11 versions 43074642e01fSmrg *) supports_anon_versioning=yes ;; 43084642e01fSmrg esac 430905b261ecSmrg 43104642e01fSmrg # See if GNU ld supports shared libraries. 43114642e01fSmrg case $host_os in 43124642e01fSmrg aix[[3-9]]*) 43134642e01fSmrg # On AIX/PPC, the GNU linker is very broken 43144642e01fSmrg if test "$host_cpu" != ia64; then 43154642e01fSmrg _LT_TAGVAR(ld_shlibs, $1)=no 43164642e01fSmrg cat <<_LT_EOF 1>&2 431705b261ecSmrg 43184642e01fSmrg*** Warning: the GNU linker, at least up to release 2.9.1, is reported 43194642e01fSmrg*** to be unable to reliably create shared libraries on AIX. 43204642e01fSmrg*** Therefore, libtool is disabling shared libraries support. If you 43214642e01fSmrg*** really care for shared libraries, you may want to modify your PATH 43224642e01fSmrg*** so that a non-GNU linker is found, and then restart. 432305b261ecSmrg 43244642e01fSmrg_LT_EOF 43254642e01fSmrg fi 43264642e01fSmrg ;; 432705b261ecSmrg 43284642e01fSmrg amigaos*) 43294642e01fSmrg case $host_cpu in 43304642e01fSmrg powerpc) 43314642e01fSmrg # see comment about AmigaOS4 .so support 43324642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 43334642e01fSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='' 43344642e01fSmrg ;; 43354642e01fSmrg m68k) 43364642e01fSmrg _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)' 43374642e01fSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 43384642e01fSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 43394642e01fSmrg ;; 43404642e01fSmrg esac 43414642e01fSmrg ;; 434205b261ecSmrg 43434642e01fSmrg beos*) 43444642e01fSmrg if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 43454642e01fSmrg _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 43464642e01fSmrg # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 43474642e01fSmrg # support --undefined. This deserves some investigation. FIXME 43484642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 43494642e01fSmrg else 43504642e01fSmrg _LT_TAGVAR(ld_shlibs, $1)=no 43514642e01fSmrg fi 43524642e01fSmrg ;; 435305b261ecSmrg 43544642e01fSmrg cygwin* | mingw* | pw32* | cegcc*) 43554642e01fSmrg # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 43564642e01fSmrg # as there is no search path for DLLs. 43574642e01fSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 43584642e01fSmrg _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 43594642e01fSmrg _LT_TAGVAR(always_export_symbols, $1)=no 43604642e01fSmrg _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 43614642e01fSmrg _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' 43624642e01fSmrg 43634642e01fSmrg if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 43644642e01fSmrg _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' 43654642e01fSmrg # If the export-symbols file already is a .def file (1st line 43664642e01fSmrg # is EXPORTS), use it as is; otherwise, prepend... 43674642e01fSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 43684642e01fSmrg cp $export_symbols $output_objdir/$soname.def; 43694642e01fSmrg else 43704642e01fSmrg echo EXPORTS > $output_objdir/$soname.def; 43714642e01fSmrg cat $export_symbols >> $output_objdir/$soname.def; 43724642e01fSmrg fi~ 43734642e01fSmrg $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 43744642e01fSmrg else 43754642e01fSmrg _LT_TAGVAR(ld_shlibs, $1)=no 43764642e01fSmrg fi 43774642e01fSmrg ;; 437805b261ecSmrg 43794642e01fSmrg interix[[3-9]]*) 43804642e01fSmrg _LT_TAGVAR(hardcode_direct, $1)=no 43814642e01fSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 43824642e01fSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 43834642e01fSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 43844642e01fSmrg # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 43854642e01fSmrg # Instead, shared libraries are loaded at an image base (0x10000000 by 43864642e01fSmrg # default) and relocated if they conflict, which is a slow very memory 43874642e01fSmrg # consuming and fragmenting process. To avoid this, we pick a random, 43884642e01fSmrg # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 43894642e01fSmrg # time. Moving up from 0x10000000 also allows more sbrk(2) space. 43904642e01fSmrg _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' 43914642e01fSmrg _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' 43924642e01fSmrg ;; 439305b261ecSmrg 43944642e01fSmrg gnu* | linux* | tpf* | k*bsd*-gnu) 43954642e01fSmrg tmp_diet=no 43964642e01fSmrg if test "$host_os" = linux-dietlibc; then 43974642e01fSmrg case $cc_basename in 43984642e01fSmrg diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 43994642e01fSmrg esac 44004642e01fSmrg fi 44014642e01fSmrg if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 44024642e01fSmrg && test "$tmp_diet" = no 44034642e01fSmrg then 44044642e01fSmrg tmp_addflag= 44054642e01fSmrg tmp_sharedflag='-shared' 44064642e01fSmrg case $cc_basename,$host_cpu in 44074642e01fSmrg pgcc*) # Portland Group C compiler 44084642e01fSmrg _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' 44094642e01fSmrg tmp_addflag=' $pic_flag' 44104642e01fSmrg ;; 44114642e01fSmrg pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 44124642e01fSmrg _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' 44134642e01fSmrg tmp_addflag=' $pic_flag -Mnomain' ;; 44144642e01fSmrg ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 44154642e01fSmrg tmp_addflag=' -i_dynamic' ;; 44164642e01fSmrg efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 44174642e01fSmrg tmp_addflag=' -i_dynamic -nofor_main' ;; 44184642e01fSmrg ifc* | ifort*) # Intel Fortran compiler 44194642e01fSmrg tmp_addflag=' -nofor_main' ;; 44204642e01fSmrg lf95*) # Lahey Fortran 8.1 44214642e01fSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)= 44224642e01fSmrg tmp_sharedflag='--shared' ;; 44234642e01fSmrg xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) 44244642e01fSmrg tmp_sharedflag='-qmkshrobj' 44254642e01fSmrg tmp_addflag= ;; 44264642e01fSmrg esac 44274642e01fSmrg case `$CC -V 2>&1 | sed 5q` in 44284642e01fSmrg *Sun\ C*) # Sun C 5.9 44294642e01fSmrg _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' 44304642e01fSmrg _LT_TAGVAR(compiler_needs_object, $1)=yes 44314642e01fSmrg tmp_sharedflag='-G' ;; 44324642e01fSmrg *Sun\ F*) # Sun Fortran 8.3 44334642e01fSmrg tmp_sharedflag='-G' ;; 44344642e01fSmrg esac 44354642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 443605b261ecSmrg 44374642e01fSmrg if test "x$supports_anon_versioning" = xyes; then 44384642e01fSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 44394642e01fSmrg cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 44404642e01fSmrg echo "local: *; };" >> $output_objdir/$libname.ver~ 44414642e01fSmrg $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 44424642e01fSmrg fi 444305b261ecSmrg 44444642e01fSmrg case $cc_basename in 44454642e01fSmrg xlf*) 44464642e01fSmrg # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 44474642e01fSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' 44484642e01fSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 44494642e01fSmrg _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' 44504642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 44514642e01fSmrg if test "x$supports_anon_versioning" = xyes; then 44524642e01fSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 44534642e01fSmrg cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 44544642e01fSmrg echo "local: *; };" >> $output_objdir/$libname.ver~ 44554642e01fSmrg $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 44564642e01fSmrg fi 44574642e01fSmrg ;; 44584642e01fSmrg esac 44594642e01fSmrg else 44604642e01fSmrg _LT_TAGVAR(ld_shlibs, $1)=no 44614642e01fSmrg fi 44624642e01fSmrg ;; 446305b261ecSmrg 44644642e01fSmrg netbsd* | netbsdelf*-gnu) 44654642e01fSmrg if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 44664642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 44674642e01fSmrg wlarc= 44684642e01fSmrg else 44694642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 44704642e01fSmrg _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' 44714642e01fSmrg fi 44724642e01fSmrg ;; 447305b261ecSmrg 44744642e01fSmrg solaris*) 44754642e01fSmrg if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 44764642e01fSmrg _LT_TAGVAR(ld_shlibs, $1)=no 44774642e01fSmrg cat <<_LT_EOF 1>&2 447805b261ecSmrg 44794642e01fSmrg*** Warning: The releases 2.8.* of the GNU linker cannot reliably 44804642e01fSmrg*** create shared libraries on Solaris systems. Therefore, libtool 44814642e01fSmrg*** is disabling shared libraries support. We urge you to upgrade GNU 44824642e01fSmrg*** binutils to release 2.9.1 or newer. Another option is to modify 44834642e01fSmrg*** your PATH or compiler configuration so that the native linker is 44844642e01fSmrg*** used, and then restart. 448505b261ecSmrg 44864642e01fSmrg_LT_EOF 44874642e01fSmrg elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 44884642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 44894642e01fSmrg _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' 44904642e01fSmrg else 44914642e01fSmrg _LT_TAGVAR(ld_shlibs, $1)=no 44924642e01fSmrg fi 44934642e01fSmrg ;; 449405b261ecSmrg 44954642e01fSmrg sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 44964642e01fSmrg case `$LD -v 2>&1` in 44974642e01fSmrg *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 44984642e01fSmrg _LT_TAGVAR(ld_shlibs, $1)=no 44994642e01fSmrg cat <<_LT_EOF 1>&2 450005b261ecSmrg 45014642e01fSmrg*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 45024642e01fSmrg*** reliably create shared libraries on SCO systems. Therefore, libtool 45034642e01fSmrg*** is disabling shared libraries support. We urge you to upgrade GNU 45044642e01fSmrg*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 45054642e01fSmrg*** your PATH or compiler configuration so that the native linker is 45064642e01fSmrg*** used, and then restart. 450705b261ecSmrg 45084642e01fSmrg_LT_EOF 45094642e01fSmrg ;; 45104642e01fSmrg *) 45114642e01fSmrg # For security reasons, it is highly recommended that you always 45124642e01fSmrg # use absolute paths for naming shared libraries, and exclude the 45134642e01fSmrg # DT_RUNPATH tag from executables and libraries. But doing so 45144642e01fSmrg # requires that you compile everything twice, which is a pain. 45154642e01fSmrg if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 45164642e01fSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 45174642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 45184642e01fSmrg _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' 45194642e01fSmrg else 45204642e01fSmrg _LT_TAGVAR(ld_shlibs, $1)=no 45214642e01fSmrg fi 45224642e01fSmrg ;; 45234642e01fSmrg esac 45244642e01fSmrg ;; 452505b261ecSmrg 45264642e01fSmrg sunos4*) 45274642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 45284642e01fSmrg wlarc= 45294642e01fSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 45304642e01fSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 453105b261ecSmrg ;; 45324642e01fSmrg 453305b261ecSmrg *) 45344642e01fSmrg if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 45354642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 45364642e01fSmrg _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' 45374642e01fSmrg else 45384642e01fSmrg _LT_TAGVAR(ld_shlibs, $1)=no 45394642e01fSmrg fi 454005b261ecSmrg ;; 454105b261ecSmrg esac 454205b261ecSmrg 45434642e01fSmrg if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then 45444642e01fSmrg runpath_var= 45454642e01fSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 45464642e01fSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)= 45474642e01fSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)= 45484642e01fSmrg fi 45494642e01fSmrg else 45504642e01fSmrg # PORTME fill in a description of your system's linker (not GNU ld) 45514642e01fSmrg case $host_os in 45524642e01fSmrg aix3*) 45534642e01fSmrg _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 45544642e01fSmrg _LT_TAGVAR(always_export_symbols, $1)=yes 45554642e01fSmrg _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' 45564642e01fSmrg # Note: this linker hardcodes the directories in LIBPATH if there 45574642e01fSmrg # are no directories specified by -L. 45584642e01fSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 45594642e01fSmrg if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 45604642e01fSmrg # Neither direct hardcoding nor static linking is supported with a 45614642e01fSmrg # broken collect2. 45624642e01fSmrg _LT_TAGVAR(hardcode_direct, $1)=unsupported 45634642e01fSmrg fi 45644642e01fSmrg ;; 456505b261ecSmrg 45664642e01fSmrg aix[[4-9]]*) 45674642e01fSmrg if test "$host_cpu" = ia64; then 45684642e01fSmrg # On IA64, the linker does run time linking by default, so we don't 45694642e01fSmrg # have to do anything special. 45704642e01fSmrg aix_use_runtimelinking=no 45714642e01fSmrg exp_sym_flag='-Bexport' 45724642e01fSmrg no_entry_flag="" 45734642e01fSmrg else 45744642e01fSmrg # If we're using GNU nm, then we don't want the "-C" option. 45754642e01fSmrg # -C means demangle to AIX nm, but means don't demangle with GNU nm 45764642e01fSmrg if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 45774642e01fSmrg _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' 45784642e01fSmrg else 45794642e01fSmrg _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' 45804642e01fSmrg fi 45814642e01fSmrg aix_use_runtimelinking=no 458205b261ecSmrg 45834642e01fSmrg # Test if we are trying to use run time linking or normal 45844642e01fSmrg # AIX style linking. If -brtl is somewhere in LDFLAGS, we 45854642e01fSmrg # need to do runtime linking. 45864642e01fSmrg case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 45874642e01fSmrg for ld_flag in $LDFLAGS; do 45884642e01fSmrg if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 45894642e01fSmrg aix_use_runtimelinking=yes 45904642e01fSmrg break 45914642e01fSmrg fi 45924642e01fSmrg done 45934642e01fSmrg ;; 45944642e01fSmrg esac 459505b261ecSmrg 45964642e01fSmrg exp_sym_flag='-bexport' 45974642e01fSmrg no_entry_flag='-bnoentry' 45984642e01fSmrg fi 459905b261ecSmrg 46004642e01fSmrg # When large executables or shared objects are built, AIX ld can 46014642e01fSmrg # have problems creating the table of contents. If linking a library 46024642e01fSmrg # or program results in "error TOC overflow" add -mminimal-toc to 46034642e01fSmrg # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 46044642e01fSmrg # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 460505b261ecSmrg 46064642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='' 46074642e01fSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 46084642e01fSmrg _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 46094642e01fSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 46104642e01fSmrg _LT_TAGVAR(link_all_deplibs, $1)=yes 46114642e01fSmrg _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' 461205b261ecSmrg 46134642e01fSmrg if test "$GCC" = yes; then 46144642e01fSmrg case $host_os in aix4.[[012]]|aix4.[[012]].*) 46154642e01fSmrg # We only want to do this on AIX 4.2 and lower, the check 46164642e01fSmrg # below for broken collect2 doesn't work under 4.3+ 46174642e01fSmrg collect2name=`${CC} -print-prog-name=collect2` 46184642e01fSmrg if test -f "$collect2name" && 46194642e01fSmrg strings "$collect2name" | $GREP resolve_lib_name >/dev/null 46204642e01fSmrg then 46214642e01fSmrg # We have reworked collect2 46224642e01fSmrg : 46234642e01fSmrg else 46244642e01fSmrg # We have old collect2 46254642e01fSmrg _LT_TAGVAR(hardcode_direct, $1)=unsupported 46264642e01fSmrg # It fails to find uninstalled libraries when the uninstalled 46274642e01fSmrg # path is not listed in the libpath. Setting hardcode_minus_L 46284642e01fSmrg # to unsupported forces relinking 46294642e01fSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 46304642e01fSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 46314642e01fSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)= 46324642e01fSmrg fi 46334642e01fSmrg ;; 46344642e01fSmrg esac 46354642e01fSmrg shared_flag='-shared' 46364642e01fSmrg if test "$aix_use_runtimelinking" = yes; then 46374642e01fSmrg shared_flag="$shared_flag "'${wl}-G' 46384642e01fSmrg fi 46394642e01fSmrg _LT_TAGVAR(link_all_deplibs, $1)=no 46404642e01fSmrg else 46414642e01fSmrg # not using gcc 46424642e01fSmrg if test "$host_cpu" = ia64; then 46434642e01fSmrg # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 46444642e01fSmrg # chokes on -Wl,-G. The following line is correct: 46454642e01fSmrg shared_flag='-G' 46464642e01fSmrg else 46474642e01fSmrg if test "$aix_use_runtimelinking" = yes; then 46484642e01fSmrg shared_flag='${wl}-G' 46494642e01fSmrg else 46504642e01fSmrg shared_flag='${wl}-bM:SRE' 46514642e01fSmrg fi 46524642e01fSmrg fi 46534642e01fSmrg fi 465405b261ecSmrg 46554642e01fSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' 46564642e01fSmrg # It seems that -bexpall does not export symbols beginning with 46574642e01fSmrg # underscore (_), so it is better to generate a list of symbols to export. 46584642e01fSmrg _LT_TAGVAR(always_export_symbols, $1)=yes 46594642e01fSmrg if test "$aix_use_runtimelinking" = yes; then 46604642e01fSmrg # Warning - without using the other runtime loading flags (-brtl), 46614642e01fSmrg # -berok will link without error, but may produce a broken library. 46624642e01fSmrg _LT_TAGVAR(allow_undefined_flag, $1)='-berok' 46634642e01fSmrg # Determine the default libpath from the value encoded in an 46644642e01fSmrg # empty executable. 46654642e01fSmrg _LT_SYS_MODULE_PATH_AIX 46664642e01fSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 46674642e01fSmrg _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" 46684642e01fSmrg else 46694642e01fSmrg if test "$host_cpu" = ia64; then 46704642e01fSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 46714642e01fSmrg _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 46724642e01fSmrg _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" 46734642e01fSmrg else 46744642e01fSmrg # Determine the default libpath from the value encoded in an 46754642e01fSmrg # empty executable. 46764642e01fSmrg _LT_SYS_MODULE_PATH_AIX 46774642e01fSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 46784642e01fSmrg # Warning - without using the other run time loading flags, 46794642e01fSmrg # -berok will link without error, but may produce a broken library. 46804642e01fSmrg _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 46814642e01fSmrg _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 46824642e01fSmrg # Exported symbols can be pulled into shared objects from archives 46834642e01fSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 46844642e01fSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 46854642e01fSmrg # This is similar to how AIX traditionally builds its shared libraries. 46864642e01fSmrg _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' 46874642e01fSmrg fi 46884642e01fSmrg fi 46894642e01fSmrg ;; 469005b261ecSmrg 46914642e01fSmrg amigaos*) 46924642e01fSmrg case $host_cpu in 46934642e01fSmrg powerpc) 46944642e01fSmrg # see comment about AmigaOS4 .so support 46954642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 46964642e01fSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='' 46974642e01fSmrg ;; 46984642e01fSmrg m68k) 46994642e01fSmrg _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)' 47004642e01fSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 47014642e01fSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 47024642e01fSmrg ;; 47034642e01fSmrg esac 47044642e01fSmrg ;; 470505b261ecSmrg 47064642e01fSmrg bsdi[[45]]*) 47074642e01fSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic 47084642e01fSmrg ;; 470905b261ecSmrg 47104642e01fSmrg cygwin* | mingw* | pw32* | cegcc*) 47114642e01fSmrg # When not using gcc, we currently assume that we are using 47124642e01fSmrg # Microsoft Visual C++. 47134642e01fSmrg # hardcode_libdir_flag_spec is actually meaningless, as there is 47144642e01fSmrg # no search path for DLLs. 47154642e01fSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 47164642e01fSmrg _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 47174642e01fSmrg # Tell ltmain to make .lib files, not .a files. 47184642e01fSmrg libext=lib 47194642e01fSmrg # Tell ltmain to make .dll files, not .so files. 47204642e01fSmrg shrext_cmds=".dll" 47214642e01fSmrg # FIXME: Setting linknames here is a bad hack. 47224642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 47234642e01fSmrg # The linker will automatically build a .lib file if we build a DLL. 47244642e01fSmrg _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 47254642e01fSmrg # FIXME: Should let the user specify the lib program. 47264642e01fSmrg _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' 47274642e01fSmrg _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' 47284642e01fSmrg _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 47294642e01fSmrg ;; 473005b261ecSmrg 47314642e01fSmrg darwin* | rhapsody*) 47324642e01fSmrg _LT_DARWIN_LINKER_FEATURES($1) 47334642e01fSmrg ;; 473405b261ecSmrg 47354642e01fSmrg dgux*) 47364642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 47374642e01fSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 47384642e01fSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 47394642e01fSmrg ;; 474005b261ecSmrg 47414642e01fSmrg freebsd1*) 47424642e01fSmrg _LT_TAGVAR(ld_shlibs, $1)=no 47434642e01fSmrg ;; 474405b261ecSmrg 47454642e01fSmrg # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 47464642e01fSmrg # support. Future versions do this automatically, but an explicit c++rt0.o 47474642e01fSmrg # does not break anything, and helps significantly (at the cost of a little 47484642e01fSmrg # extra space). 47494642e01fSmrg freebsd2.2*) 47504642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 47514642e01fSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 47524642e01fSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 47534642e01fSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 47544642e01fSmrg ;; 475505b261ecSmrg 47564642e01fSmrg # Unfortunately, older versions of FreeBSD 2 do not have this feature. 47574642e01fSmrg freebsd2*) 47584642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 47594642e01fSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 47604642e01fSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 47614642e01fSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 47624642e01fSmrg ;; 476305b261ecSmrg 47644642e01fSmrg # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 47654642e01fSmrg freebsd* | dragonfly*) 47664642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 47674642e01fSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 47684642e01fSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 47694642e01fSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 47704642e01fSmrg ;; 477105b261ecSmrg 47724642e01fSmrg hpux9*) 47734642e01fSmrg if test "$GCC" = yes; then 47744642e01fSmrg _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' 47754642e01fSmrg else 47764642e01fSmrg _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' 47774642e01fSmrg fi 47784642e01fSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 47794642e01fSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 47804642e01fSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 478105b261ecSmrg 47824642e01fSmrg # hardcode_minus_L: Not really in the search PATH, 47834642e01fSmrg # but as the default location of the library. 47844642e01fSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 47854642e01fSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 47864642e01fSmrg ;; 478705b261ecSmrg 47884642e01fSmrg hpux10*) 47894642e01fSmrg if test "$GCC" = yes -a "$with_gnu_ld" = no; then 47904642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 47914642e01fSmrg else 47924642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 47934642e01fSmrg fi 47944642e01fSmrg if test "$with_gnu_ld" = no; then 47954642e01fSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 47964642e01fSmrg _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' 47974642e01fSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 47984642e01fSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 47994642e01fSmrg _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 48004642e01fSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 48014642e01fSmrg # hardcode_minus_L: Not really in the search PATH, 48024642e01fSmrg # but as the default location of the library. 48034642e01fSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 48044642e01fSmrg fi 48054642e01fSmrg ;; 480605b261ecSmrg 48074642e01fSmrg hpux11*) 48084642e01fSmrg if test "$GCC" = yes -a "$with_gnu_ld" = no; then 48094642e01fSmrg case $host_cpu in 48104642e01fSmrg hppa*64*) 48114642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 48124642e01fSmrg ;; 48134642e01fSmrg ia64*) 48144642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 48154642e01fSmrg ;; 48164642e01fSmrg *) 48174642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 48184642e01fSmrg ;; 48194642e01fSmrg esac 48204642e01fSmrg else 48214642e01fSmrg case $host_cpu in 48224642e01fSmrg hppa*64*) 48234642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 48244642e01fSmrg ;; 48254642e01fSmrg ia64*) 48264642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 48274642e01fSmrg ;; 48284642e01fSmrg *) 48294642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 48304642e01fSmrg ;; 48314642e01fSmrg esac 48324642e01fSmrg fi 48334642e01fSmrg if test "$with_gnu_ld" = no; then 48344642e01fSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 48354642e01fSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 483605b261ecSmrg 48374642e01fSmrg case $host_cpu in 48384642e01fSmrg hppa*64*|ia64*) 48394642e01fSmrg _LT_TAGVAR(hardcode_direct, $1)=no 48404642e01fSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 48414642e01fSmrg ;; 48424642e01fSmrg *) 48434642e01fSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 48444642e01fSmrg _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 48454642e01fSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 484605b261ecSmrg 48474642e01fSmrg # hardcode_minus_L: Not really in the search PATH, 48484642e01fSmrg # but as the default location of the library. 48494642e01fSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 48504642e01fSmrg ;; 48514642e01fSmrg esac 48524642e01fSmrg fi 48534642e01fSmrg ;; 485405b261ecSmrg 48554642e01fSmrg irix5* | irix6* | nonstopux*) 48564642e01fSmrg if test "$GCC" = yes; then 48574642e01fSmrg _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' 48584642e01fSmrg # Try to use the -exported_symbol ld option, if it does not 48594642e01fSmrg # work, assume that -exports_file does not work either and 48604642e01fSmrg # implicitly export all symbols. 48614642e01fSmrg save_LDFLAGS="$LDFLAGS" 48624642e01fSmrg LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 48634642e01fSmrg AC_LINK_IFELSE(int foo(void) {}, 48644642e01fSmrg _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' 48654642e01fSmrg ) 48664642e01fSmrg LDFLAGS="$save_LDFLAGS" 48674642e01fSmrg else 48684642e01fSmrg _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' 48694642e01fSmrg _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' 48704642e01fSmrg fi 48714642e01fSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 48724642e01fSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 48734642e01fSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 48744642e01fSmrg _LT_TAGVAR(inherit_rpath, $1)=yes 48754642e01fSmrg _LT_TAGVAR(link_all_deplibs, $1)=yes 48764642e01fSmrg ;; 487705b261ecSmrg 48784642e01fSmrg netbsd* | netbsdelf*-gnu) 48794642e01fSmrg if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 48804642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 48814642e01fSmrg else 48824642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 48834642e01fSmrg fi 48844642e01fSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 48854642e01fSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 48864642e01fSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 48874642e01fSmrg ;; 488805b261ecSmrg 48894642e01fSmrg newsos6) 48904642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 48914642e01fSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 48924642e01fSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 48934642e01fSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 48944642e01fSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 48954642e01fSmrg ;; 489605b261ecSmrg 48974642e01fSmrg *nto* | *qnx*) 48984642e01fSmrg ;; 489905b261ecSmrg 49004642e01fSmrg openbsd*) 49014642e01fSmrg if test -f /usr/libexec/ld.so; then 49024642e01fSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 49034642e01fSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 49044642e01fSmrg _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 49054642e01fSmrg if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 49064642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 49074642e01fSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 49084642e01fSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 49094642e01fSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 49104642e01fSmrg else 49114642e01fSmrg case $host_os in 49124642e01fSmrg openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) 49134642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 49144642e01fSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 49154642e01fSmrg ;; 49164642e01fSmrg *) 49174642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 49184642e01fSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 49194642e01fSmrg ;; 49204642e01fSmrg esac 49214642e01fSmrg fi 49224642e01fSmrg else 49234642e01fSmrg _LT_TAGVAR(ld_shlibs, $1)=no 49244642e01fSmrg fi 49254642e01fSmrg ;; 492605b261ecSmrg 49274642e01fSmrg os2*) 49284642e01fSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 49294642e01fSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 49304642e01fSmrg _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 49314642e01fSmrg _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' 49324642e01fSmrg _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 49334642e01fSmrg ;; 493405b261ecSmrg 49354642e01fSmrg osf3*) 49364642e01fSmrg if test "$GCC" = yes; then 49374642e01fSmrg _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 49384642e01fSmrg _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' 49394642e01fSmrg else 49404642e01fSmrg _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 49414642e01fSmrg _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' 49424642e01fSmrg fi 49434642e01fSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 49444642e01fSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 49454642e01fSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 49464642e01fSmrg ;; 494705b261ecSmrg 49484642e01fSmrg osf4* | osf5*) # as osf3* with the addition of -msym flag 49494642e01fSmrg if test "$GCC" = yes; then 49504642e01fSmrg _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 49514642e01fSmrg _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' 49524642e01fSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 49534642e01fSmrg else 49544642e01fSmrg _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 49554642e01fSmrg _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' 49564642e01fSmrg _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~ 49574642e01fSmrg $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' 495805b261ecSmrg 49594642e01fSmrg # Both c and cxx compiler support -rpath directly 49604642e01fSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 49614642e01fSmrg fi 49624642e01fSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 49634642e01fSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 49644642e01fSmrg ;; 496505b261ecSmrg 49664642e01fSmrg solaris*) 49674642e01fSmrg _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' 49684642e01fSmrg if test "$GCC" = yes; then 49694642e01fSmrg wlarc='${wl}' 49704642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 49714642e01fSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 49724642e01fSmrg $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 49734642e01fSmrg else 49744642e01fSmrg case `$CC -V 2>&1` in 49754642e01fSmrg *"Compilers 5.0"*) 49764642e01fSmrg wlarc='' 49774642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 49784642e01fSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 49794642e01fSmrg $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 49804642e01fSmrg ;; 49814642e01fSmrg *) 49824642e01fSmrg wlarc='${wl}' 49834642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 49844642e01fSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 49854642e01fSmrg $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 49864642e01fSmrg ;; 49874642e01fSmrg esac 49884642e01fSmrg fi 49894642e01fSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 49904642e01fSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 49914642e01fSmrg case $host_os in 49924642e01fSmrg solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 49934642e01fSmrg *) 49944642e01fSmrg # The compiler driver will combine and reorder linker options, 49954642e01fSmrg # but understands `-z linker_flag'. GCC discards it without `$wl', 49964642e01fSmrg # but is careful enough not to reorder. 49974642e01fSmrg # Supported since Solaris 2.6 (maybe 2.5.1?) 49984642e01fSmrg if test "$GCC" = yes; then 49994642e01fSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 50004642e01fSmrg else 50014642e01fSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 50024642e01fSmrg fi 50034642e01fSmrg ;; 50044642e01fSmrg esac 50054642e01fSmrg _LT_TAGVAR(link_all_deplibs, $1)=yes 50064642e01fSmrg ;; 500705b261ecSmrg 50084642e01fSmrg sunos4*) 50094642e01fSmrg if test "x$host_vendor" = xsequent; then 50104642e01fSmrg # Use $CC to link under sequent, because it throws in some extra .o 50114642e01fSmrg # files that make .init and .fini sections work. 50124642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 50134642e01fSmrg else 50144642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 50154642e01fSmrg fi 50164642e01fSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 50174642e01fSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 50184642e01fSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 50194642e01fSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 50204642e01fSmrg ;; 502105b261ecSmrg 50224642e01fSmrg sysv4) 50234642e01fSmrg case $host_vendor in 50244642e01fSmrg sni) 50254642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 50264642e01fSmrg _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? 50274642e01fSmrg ;; 50284642e01fSmrg siemens) 50294642e01fSmrg ## LD is ld it makes a PLAMLIB 50304642e01fSmrg ## CC just makes a GrossModule. 50314642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' 50324642e01fSmrg _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' 50334642e01fSmrg _LT_TAGVAR(hardcode_direct, $1)=no 50344642e01fSmrg ;; 50354642e01fSmrg motorola) 50364642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 50374642e01fSmrg _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie 50384642e01fSmrg ;; 50394642e01fSmrg esac 50404642e01fSmrg runpath_var='LD_RUN_PATH' 50414642e01fSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 50424642e01fSmrg ;; 504305b261ecSmrg 50444642e01fSmrg sysv4.3*) 50454642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 50464642e01fSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 50474642e01fSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' 50484642e01fSmrg ;; 504905b261ecSmrg 50504642e01fSmrg sysv4*MP*) 50514642e01fSmrg if test -d /usr/nec; then 50524642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 50534642e01fSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 50544642e01fSmrg runpath_var=LD_RUN_PATH 50554642e01fSmrg hardcode_runpath_var=yes 50564642e01fSmrg _LT_TAGVAR(ld_shlibs, $1)=yes 50574642e01fSmrg fi 50584642e01fSmrg ;; 505905b261ecSmrg 50604642e01fSmrg sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 50614642e01fSmrg _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 50624642e01fSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=no 50634642e01fSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 50644642e01fSmrg runpath_var='LD_RUN_PATH' 506505b261ecSmrg 50664642e01fSmrg if test "$GCC" = yes; then 50674642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 50684642e01fSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 50694642e01fSmrg else 50704642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 50714642e01fSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 50724642e01fSmrg fi 50734642e01fSmrg ;; 507405b261ecSmrg 50754642e01fSmrg sysv5* | sco3.2v5* | sco5v6*) 50764642e01fSmrg # Note: We can NOT use -z defs as we might desire, because we do not 50774642e01fSmrg # link with -lc, and that would cause any symbols used from libc to 50784642e01fSmrg # always be unresolved, which means just about no library would 50794642e01fSmrg # ever link correctly. If we're not using GNU ld we use -z text 50804642e01fSmrg # though, which does catch some bad symbols but isn't as heavy-handed 50814642e01fSmrg # as -z defs. 50824642e01fSmrg _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 50834642e01fSmrg _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' 50844642e01fSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=no 50854642e01fSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 50864642e01fSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' 50874642e01fSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 50884642e01fSmrg _LT_TAGVAR(link_all_deplibs, $1)=yes 50894642e01fSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' 50904642e01fSmrg runpath_var='LD_RUN_PATH' 509105b261ecSmrg 50924642e01fSmrg if test "$GCC" = yes; then 50934642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 50944642e01fSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 50954642e01fSmrg else 50964642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 50974642e01fSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 50984642e01fSmrg fi 50994642e01fSmrg ;; 510005b261ecSmrg 51014642e01fSmrg uts4*) 51024642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 51034642e01fSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 51044642e01fSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 51054642e01fSmrg ;; 510605b261ecSmrg 51074642e01fSmrg *) 51084642e01fSmrg _LT_TAGVAR(ld_shlibs, $1)=no 51094642e01fSmrg ;; 51104642e01fSmrg esac 511105b261ecSmrg 51124642e01fSmrg if test x$host_vendor = xsni; then 51134642e01fSmrg case $host in 51144642e01fSmrg sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 51154642e01fSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym' 51164642e01fSmrg ;; 51174642e01fSmrg esac 51184642e01fSmrg fi 51194642e01fSmrg fi 51204642e01fSmrg]) 51214642e01fSmrgAC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) 51224642e01fSmrgtest "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 512305b261ecSmrg 51244642e01fSmrg_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld 512505b261ecSmrg 51264642e01fSmrg_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl 51274642e01fSmrg_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl 51284642e01fSmrg_LT_DECL([], [extract_expsyms_cmds], [2], 51294642e01fSmrg [The commands to extract the exported symbol list from a shared archive]) 513005b261ecSmrg 51314642e01fSmrg# 51324642e01fSmrg# Do we need to explicitly link libc? 51334642e01fSmrg# 51344642e01fSmrgcase "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in 51354642e01fSmrgx|xyes) 51364642e01fSmrg # Assume -lc should be added 51374642e01fSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 513805b261ecSmrg 51394642e01fSmrg if test "$enable_shared" = yes && test "$GCC" = yes; then 51404642e01fSmrg case $_LT_TAGVAR(archive_cmds, $1) in 51414642e01fSmrg *'~'*) 51424642e01fSmrg # FIXME: we may have to deal with multi-command sequences. 51434642e01fSmrg ;; 51444642e01fSmrg '$CC '*) 51454642e01fSmrg # Test whether the compiler implicitly links with -lc since on some 51464642e01fSmrg # systems, -lgcc has to come before -lc. If gcc already passes -lc 51474642e01fSmrg # to ld, don't add -lc before -lgcc. 51484642e01fSmrg AC_MSG_CHECKING([whether -lc should be explicitly linked in]) 51494642e01fSmrg $RM conftest* 51504642e01fSmrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 515105b261ecSmrg 51524642e01fSmrg if AC_TRY_EVAL(ac_compile) 2>conftest.err; then 51534642e01fSmrg soname=conftest 51544642e01fSmrg lib=conftest 51554642e01fSmrg libobjs=conftest.$ac_objext 51564642e01fSmrg deplibs= 51574642e01fSmrg wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) 51584642e01fSmrg pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) 51594642e01fSmrg compiler_flags=-v 51604642e01fSmrg linker_flags=-v 51614642e01fSmrg verstring= 51624642e01fSmrg output_objdir=. 51634642e01fSmrg libname=conftest 51644642e01fSmrg lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) 51654642e01fSmrg _LT_TAGVAR(allow_undefined_flag, $1)= 51664642e01fSmrg if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 51674642e01fSmrg then 51684642e01fSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=no 51694642e01fSmrg else 51704642e01fSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 51714642e01fSmrg fi 51724642e01fSmrg _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag 51734642e01fSmrg else 51744642e01fSmrg cat conftest.err 1>&5 51754642e01fSmrg fi 51764642e01fSmrg $RM conftest* 51774642e01fSmrg AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)]) 51784642e01fSmrg ;; 51794642e01fSmrg esac 51804642e01fSmrg fi 51814642e01fSmrg ;; 51824642e01fSmrgesac 518305b261ecSmrg 51844642e01fSmrg_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], 51854642e01fSmrg [Whether or not to add -lc for building shared libraries]) 51864642e01fSmrg_LT_TAGDECL([allow_libtool_libs_with_static_runtimes], 51874642e01fSmrg [enable_shared_with_static_runtimes], [0], 51884642e01fSmrg [Whether or not to disallow shared libs when runtime libs are static]) 51894642e01fSmrg_LT_TAGDECL([], [export_dynamic_flag_spec], [1], 51904642e01fSmrg [Compiler flag to allow reflexive dlopens]) 51914642e01fSmrg_LT_TAGDECL([], [whole_archive_flag_spec], [1], 51924642e01fSmrg [Compiler flag to generate shared objects directly from archives]) 51934642e01fSmrg_LT_TAGDECL([], [compiler_needs_object], [1], 51944642e01fSmrg [Whether the compiler copes with passing no objects directly]) 51954642e01fSmrg_LT_TAGDECL([], [old_archive_from_new_cmds], [2], 51964642e01fSmrg [Create an old-style archive from a shared archive]) 51974642e01fSmrg_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], 51984642e01fSmrg [Create a temporary old-style archive to link instead of a shared archive]) 51994642e01fSmrg_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) 52004642e01fSmrg_LT_TAGDECL([], [archive_expsym_cmds], [2]) 52014642e01fSmrg_LT_TAGDECL([], [module_cmds], [2], 52024642e01fSmrg [Commands used to build a loadable module if different from building 52034642e01fSmrg a shared archive.]) 52044642e01fSmrg_LT_TAGDECL([], [module_expsym_cmds], [2]) 52054642e01fSmrg_LT_TAGDECL([], [with_gnu_ld], [1], 52064642e01fSmrg [Whether we are building with GNU ld or not]) 52074642e01fSmrg_LT_TAGDECL([], [allow_undefined_flag], [1], 52084642e01fSmrg [Flag that allows shared libraries with undefined symbols to be built]) 52094642e01fSmrg_LT_TAGDECL([], [no_undefined_flag], [1], 52104642e01fSmrg [Flag that enforces no undefined symbols]) 52114642e01fSmrg_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], 52124642e01fSmrg [Flag to hardcode $libdir into a binary during linking. 52134642e01fSmrg This must work even if $libdir does not exist]) 52144642e01fSmrg_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1], 52154642e01fSmrg [[If ld is used when linking, flag to hardcode $libdir into a binary 52164642e01fSmrg during linking. This must work even if $libdir does not exist]]) 52174642e01fSmrg_LT_TAGDECL([], [hardcode_libdir_separator], [1], 52184642e01fSmrg [Whether we need a single "-rpath" flag with a separated argument]) 52194642e01fSmrg_LT_TAGDECL([], [hardcode_direct], [0], 52204642e01fSmrg [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes 52214642e01fSmrg DIR into the resulting binary]) 52224642e01fSmrg_LT_TAGDECL([], [hardcode_direct_absolute], [0], 52234642e01fSmrg [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes 52244642e01fSmrg DIR into the resulting binary and the resulting library dependency is 52254642e01fSmrg "absolute", i.e impossible to change by setting ${shlibpath_var} if the 52264642e01fSmrg library is relocated]) 52274642e01fSmrg_LT_TAGDECL([], [hardcode_minus_L], [0], 52284642e01fSmrg [Set to "yes" if using the -LDIR flag during linking hardcodes DIR 52294642e01fSmrg into the resulting binary]) 52304642e01fSmrg_LT_TAGDECL([], [hardcode_shlibpath_var], [0], 52314642e01fSmrg [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 52324642e01fSmrg into the resulting binary]) 52334642e01fSmrg_LT_TAGDECL([], [hardcode_automatic], [0], 52344642e01fSmrg [Set to "yes" if building a shared library automatically hardcodes DIR 52354642e01fSmrg into the library and all subsequent libraries and executables linked 52364642e01fSmrg against it]) 52374642e01fSmrg_LT_TAGDECL([], [inherit_rpath], [0], 52384642e01fSmrg [Set to yes if linker adds runtime paths of dependent libraries 52394642e01fSmrg to runtime path list]) 52404642e01fSmrg_LT_TAGDECL([], [link_all_deplibs], [0], 52414642e01fSmrg [Whether libtool must link a program against all its dependency libraries]) 52424642e01fSmrg_LT_TAGDECL([], [fix_srcfile_path], [1], 52434642e01fSmrg [Fix the shell variable $srcfile for the compiler]) 52444642e01fSmrg_LT_TAGDECL([], [always_export_symbols], [0], 52454642e01fSmrg [Set to "yes" if exported symbols are required]) 52464642e01fSmrg_LT_TAGDECL([], [export_symbols_cmds], [2], 52474642e01fSmrg [The commands to list exported symbols]) 52484642e01fSmrg_LT_TAGDECL([], [exclude_expsyms], [1], 52494642e01fSmrg [Symbols that should not be listed in the preloaded symbols]) 52504642e01fSmrg_LT_TAGDECL([], [include_expsyms], [1], 52514642e01fSmrg [Symbols that must always be exported]) 52524642e01fSmrg_LT_TAGDECL([], [prelink_cmds], [2], 52534642e01fSmrg [Commands necessary for linking programs (against libraries) with templates]) 52544642e01fSmrg_LT_TAGDECL([], [file_list_spec], [1], 52554642e01fSmrg [Specify filename containing input files]) 52564642e01fSmrgdnl FIXME: Not yet implemented 52574642e01fSmrgdnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], 52584642e01fSmrgdnl [Compiler flag to generate thread safe objects]) 52594642e01fSmrg])# _LT_LINKER_SHLIBS 52604642e01fSmrg 52614642e01fSmrg 52624642e01fSmrg# _LT_LANG_C_CONFIG([TAG]) 52634642e01fSmrg# ------------------------ 52644642e01fSmrg# Ensure that the configuration variables for a C compiler are suitably 52654642e01fSmrg# defined. These variables are subsequently used by _LT_CONFIG to write 52664642e01fSmrg# the compiler configuration to `libtool'. 52674642e01fSmrgm4_defun([_LT_LANG_C_CONFIG], 52684642e01fSmrg[m4_require([_LT_DECL_EGREP])dnl 52694642e01fSmrglt_save_CC="$CC" 52704642e01fSmrgAC_LANG_PUSH(C) 527105b261ecSmrg 52724642e01fSmrg# Source file extension for C test sources. 52734642e01fSmrgac_ext=c 527405b261ecSmrg 52754642e01fSmrg# Object file extension for compiled C test sources. 52764642e01fSmrgobjext=o 52774642e01fSmrg_LT_TAGVAR(objext, $1)=$objext 527805b261ecSmrg 52794642e01fSmrg# Code to be used in simple compile tests 52804642e01fSmrglt_simple_compile_test_code="int some_variable = 0;" 528105b261ecSmrg 52824642e01fSmrg# Code to be used in simple link tests 52834642e01fSmrglt_simple_link_test_code='int main(){return(0);}' 528405b261ecSmrg 52854642e01fSmrg_LT_TAG_COMPILER 52864642e01fSmrg# Save the default compiler, since it gets overwritten when the other 52874642e01fSmrg# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 52884642e01fSmrgcompiler_DEFAULT=$CC 528905b261ecSmrg 52904642e01fSmrg# save warnings/boilerplate of simple test code 52914642e01fSmrg_LT_COMPILER_BOILERPLATE 52924642e01fSmrg_LT_LINKER_BOILERPLATE 529305b261ecSmrg 52944642e01fSmrgif test -n "$compiler"; then 52954642e01fSmrg _LT_COMPILER_NO_RTTI($1) 52964642e01fSmrg _LT_COMPILER_PIC($1) 52974642e01fSmrg _LT_COMPILER_C_O($1) 52984642e01fSmrg _LT_COMPILER_FILE_LOCKS($1) 52994642e01fSmrg _LT_LINKER_SHLIBS($1) 53004642e01fSmrg _LT_SYS_DYNAMIC_LINKER($1) 53014642e01fSmrg _LT_LINKER_HARDCODE_LIBPATH($1) 53024642e01fSmrg LT_SYS_DLOPEN_SELF 53034642e01fSmrg _LT_CMD_STRIPLIB 53044642e01fSmrg 53054642e01fSmrg # Report which library types will actually be built 53064642e01fSmrg AC_MSG_CHECKING([if libtool supports shared libraries]) 53074642e01fSmrg AC_MSG_RESULT([$can_build_shared]) 53084642e01fSmrg 53094642e01fSmrg AC_MSG_CHECKING([whether to build shared libraries]) 53104642e01fSmrg test "$can_build_shared" = "no" && enable_shared=no 53114642e01fSmrg 53124642e01fSmrg # On AIX, shared libraries and static libraries use the same namespace, and 53134642e01fSmrg # are all built from PIC. 53144642e01fSmrg case $host_os in 53154642e01fSmrg aix3*) 53164642e01fSmrg test "$enable_shared" = yes && enable_static=no 53174642e01fSmrg if test -n "$RANLIB"; then 53184642e01fSmrg archive_cmds="$archive_cmds~\$RANLIB \$lib" 53194642e01fSmrg postinstall_cmds='$RANLIB $lib' 53204642e01fSmrg fi 53214642e01fSmrg ;; 532205b261ecSmrg 53234642e01fSmrg aix[[4-9]]*) 53244642e01fSmrg if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 53254642e01fSmrg test "$enable_shared" = yes && enable_static=no 53264642e01fSmrg fi 53274642e01fSmrg ;; 53284642e01fSmrg esac 53294642e01fSmrg AC_MSG_RESULT([$enable_shared]) 533005b261ecSmrg 53314642e01fSmrg AC_MSG_CHECKING([whether to build static libraries]) 53324642e01fSmrg # Make sure either enable_shared or enable_static is yes. 53334642e01fSmrg test "$enable_shared" = yes || enable_static=yes 53344642e01fSmrg AC_MSG_RESULT([$enable_static]) 533505b261ecSmrg 53364642e01fSmrg _LT_CONFIG($1) 53374642e01fSmrgfi 53384642e01fSmrgAC_LANG_POP 53394642e01fSmrgCC="$lt_save_CC" 53404642e01fSmrg])# _LT_LANG_C_CONFIG 534105b261ecSmrg 534205b261ecSmrg 53434642e01fSmrg# _LT_PROG_CXX 53444642e01fSmrg# ------------ 53454642e01fSmrg# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++ 53464642e01fSmrg# compiler, we have our own version here. 53474642e01fSmrgm4_defun([_LT_PROG_CXX], 53484642e01fSmrg[ 53494642e01fSmrgpushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes]) 53504642e01fSmrgAC_PROG_CXX 53514642e01fSmrgif test -n "$CXX" && ( test "X$CXX" != "Xno" && 53524642e01fSmrg ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 53534642e01fSmrg (test "X$CXX" != "Xg++"))) ; then 53544642e01fSmrg AC_PROG_CXXCPP 53554642e01fSmrgelse 53564642e01fSmrg _lt_caught_CXX_error=yes 53574642e01fSmrgfi 53584642e01fSmrgpopdef([AC_MSG_ERROR]) 53594642e01fSmrg])# _LT_PROG_CXX 536005b261ecSmrg 53614642e01fSmrgdnl aclocal-1.4 backwards compatibility: 53624642e01fSmrgdnl AC_DEFUN([_LT_PROG_CXX], []) 536305b261ecSmrg 536405b261ecSmrg 53654642e01fSmrg# _LT_LANG_CXX_CONFIG([TAG]) 53664642e01fSmrg# -------------------------- 53674642e01fSmrg# Ensure that the configuration variables for a C++ compiler are suitably 53684642e01fSmrg# defined. These variables are subsequently used by _LT_CONFIG to write 53694642e01fSmrg# the compiler configuration to `libtool'. 53704642e01fSmrgm4_defun([_LT_LANG_CXX_CONFIG], 53714642e01fSmrg[AC_REQUIRE([_LT_PROG_CXX])dnl 53724642e01fSmrgm4_require([_LT_FILEUTILS_DEFAULTS])dnl 53734642e01fSmrgm4_require([_LT_DECL_EGREP])dnl 53744642e01fSmrg 53754642e01fSmrgAC_LANG_PUSH(C++) 53764642e01fSmrg_LT_TAGVAR(archive_cmds_need_lc, $1)=no 53774642e01fSmrg_LT_TAGVAR(allow_undefined_flag, $1)= 53784642e01fSmrg_LT_TAGVAR(always_export_symbols, $1)=no 53794642e01fSmrg_LT_TAGVAR(archive_expsym_cmds, $1)= 53804642e01fSmrg_LT_TAGVAR(compiler_needs_object, $1)=no 53814642e01fSmrg_LT_TAGVAR(export_dynamic_flag_spec, $1)= 53824642e01fSmrg_LT_TAGVAR(hardcode_direct, $1)=no 53834642e01fSmrg_LT_TAGVAR(hardcode_direct_absolute, $1)=no 53844642e01fSmrg_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 53854642e01fSmrg_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 53864642e01fSmrg_LT_TAGVAR(hardcode_libdir_separator, $1)= 53874642e01fSmrg_LT_TAGVAR(hardcode_minus_L, $1)=no 53884642e01fSmrg_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 53894642e01fSmrg_LT_TAGVAR(hardcode_automatic, $1)=no 53904642e01fSmrg_LT_TAGVAR(inherit_rpath, $1)=no 53914642e01fSmrg_LT_TAGVAR(module_cmds, $1)= 53924642e01fSmrg_LT_TAGVAR(module_expsym_cmds, $1)= 53934642e01fSmrg_LT_TAGVAR(link_all_deplibs, $1)=unknown 53944642e01fSmrg_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 53954642e01fSmrg_LT_TAGVAR(no_undefined_flag, $1)= 53964642e01fSmrg_LT_TAGVAR(whole_archive_flag_spec, $1)= 53974642e01fSmrg_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 539805b261ecSmrg 53994642e01fSmrg# Source file extension for C++ test sources. 54004642e01fSmrgac_ext=cpp 540105b261ecSmrg 54024642e01fSmrg# Object file extension for compiled C++ test sources. 54034642e01fSmrgobjext=o 54044642e01fSmrg_LT_TAGVAR(objext, $1)=$objext 54054642e01fSmrg 54064642e01fSmrg# No sense in running all these tests if we already determined that 54074642e01fSmrg# the CXX compiler isn't working. Some variables (like enable_shared) 54084642e01fSmrg# are currently assumed to apply to all compilers on this platform, 54094642e01fSmrg# and will be corrupted by setting them based on a non-working compiler. 54104642e01fSmrgif test "$_lt_caught_CXX_error" != yes; then 54114642e01fSmrg # Code to be used in simple compile tests 54124642e01fSmrg lt_simple_compile_test_code="int some_variable = 0;" 54134642e01fSmrg 54144642e01fSmrg # Code to be used in simple link tests 54154642e01fSmrg lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' 54164642e01fSmrg 54174642e01fSmrg # ltmain only uses $CC for tagged configurations so make sure $CC is set. 54184642e01fSmrg _LT_TAG_COMPILER 54194642e01fSmrg 54204642e01fSmrg # save warnings/boilerplate of simple test code 54214642e01fSmrg _LT_COMPILER_BOILERPLATE 54224642e01fSmrg _LT_LINKER_BOILERPLATE 54234642e01fSmrg 54244642e01fSmrg # Allow CC to be a program name with arguments. 54254642e01fSmrg lt_save_CC=$CC 54264642e01fSmrg lt_save_LD=$LD 54274642e01fSmrg lt_save_GCC=$GCC 54284642e01fSmrg GCC=$GXX 54294642e01fSmrg lt_save_with_gnu_ld=$with_gnu_ld 54304642e01fSmrg lt_save_path_LD=$lt_cv_path_LD 54314642e01fSmrg if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 54324642e01fSmrg lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 54334642e01fSmrg else 54344642e01fSmrg $as_unset lt_cv_prog_gnu_ld 54354642e01fSmrg fi 54364642e01fSmrg if test -n "${lt_cv_path_LDCXX+set}"; then 54374642e01fSmrg lt_cv_path_LD=$lt_cv_path_LDCXX 54384642e01fSmrg else 54394642e01fSmrg $as_unset lt_cv_path_LD 54404642e01fSmrg fi 54414642e01fSmrg test -z "${LDCXX+set}" || LD=$LDCXX 54424642e01fSmrg CC=${CXX-"c++"} 54434642e01fSmrg compiler=$CC 54444642e01fSmrg _LT_TAGVAR(compiler, $1)=$CC 54454642e01fSmrg _LT_CC_BASENAME([$compiler]) 544605b261ecSmrg 54474642e01fSmrg if test -n "$compiler"; then 54484642e01fSmrg # We don't want -fno-exception when compiling C++ code, so set the 54494642e01fSmrg # no_builtin_flag separately 54504642e01fSmrg if test "$GXX" = yes; then 54514642e01fSmrg _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 54524642e01fSmrg else 54534642e01fSmrg _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 54544642e01fSmrg fi 545505b261ecSmrg 54564642e01fSmrg if test "$GXX" = yes; then 54574642e01fSmrg # Set up default GNU C++ configuration 545805b261ecSmrg 54594642e01fSmrg LT_PATH_LD 546005b261ecSmrg 54614642e01fSmrg # Check if GNU C++ uses GNU ld as the underlying linker, since the 54624642e01fSmrg # archiving commands below assume that GNU ld is being used. 54634642e01fSmrg if test "$with_gnu_ld" = yes; then 54644642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 54654642e01fSmrg _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' 546605b261ecSmrg 54674642e01fSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 54684642e01fSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 546905b261ecSmrg 54704642e01fSmrg # If archive_cmds runs LD, not CC, wlarc should be empty 54714642e01fSmrg # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 54724642e01fSmrg # investigate it a little bit more. (MM) 54734642e01fSmrg wlarc='${wl}' 547405b261ecSmrg 54754642e01fSmrg # ancient GNU ld didn't support --whole-archive et. al. 54764642e01fSmrg if eval "`$CC -print-prog-name=ld` --help 2>&1" | 54774642e01fSmrg $GREP 'no-whole-archive' > /dev/null; then 54784642e01fSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 54794642e01fSmrg else 54804642e01fSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)= 54814642e01fSmrg fi 54824642e01fSmrg else 54834642e01fSmrg with_gnu_ld=no 54844642e01fSmrg wlarc= 54854642e01fSmrg 54864642e01fSmrg # A generic and very simple default shared library creation 54874642e01fSmrg # command for GNU C++ for the case where it uses the native 54884642e01fSmrg # linker, instead of GNU ld. If possible, this setting should 54894642e01fSmrg # overridden to take advantage of the native linker features on 54904642e01fSmrg # the platform it is being used on. 54914642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 54924642e01fSmrg fi 549305b261ecSmrg 54944642e01fSmrg # Commands to make compiler produce verbose output that lists 54954642e01fSmrg # what "hidden" libraries, object files and flags are used when 54964642e01fSmrg # linking a shared library. 54974642e01fSmrg output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 549805b261ecSmrg 54994642e01fSmrg else 55004642e01fSmrg GXX=no 55014642e01fSmrg with_gnu_ld=no 55024642e01fSmrg wlarc= 55034642e01fSmrg fi 550405b261ecSmrg 55054642e01fSmrg # PORTME: fill in a description of your system's C++ link characteristics 55064642e01fSmrg AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 55074642e01fSmrg _LT_TAGVAR(ld_shlibs, $1)=yes 55084642e01fSmrg case $host_os in 55094642e01fSmrg aix3*) 55104642e01fSmrg # FIXME: insert proper C++ library support 55114642e01fSmrg _LT_TAGVAR(ld_shlibs, $1)=no 55124642e01fSmrg ;; 55134642e01fSmrg aix[[4-9]]*) 55144642e01fSmrg if test "$host_cpu" = ia64; then 55154642e01fSmrg # On IA64, the linker does run time linking by default, so we don't 55164642e01fSmrg # have to do anything special. 55174642e01fSmrg aix_use_runtimelinking=no 55184642e01fSmrg exp_sym_flag='-Bexport' 55194642e01fSmrg no_entry_flag="" 55204642e01fSmrg else 55214642e01fSmrg aix_use_runtimelinking=no 55224642e01fSmrg 55234642e01fSmrg # Test if we are trying to use run time linking or normal 55244642e01fSmrg # AIX style linking. If -brtl is somewhere in LDFLAGS, we 55254642e01fSmrg # need to do runtime linking. 55264642e01fSmrg case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 55274642e01fSmrg for ld_flag in $LDFLAGS; do 55284642e01fSmrg case $ld_flag in 55294642e01fSmrg *-brtl*) 55304642e01fSmrg aix_use_runtimelinking=yes 55314642e01fSmrg break 55324642e01fSmrg ;; 55334642e01fSmrg esac 55344642e01fSmrg done 55354642e01fSmrg ;; 55364642e01fSmrg esac 553705b261ecSmrg 55384642e01fSmrg exp_sym_flag='-bexport' 55394642e01fSmrg no_entry_flag='-bnoentry' 55404642e01fSmrg fi 554105b261ecSmrg 55424642e01fSmrg # When large executables or shared objects are built, AIX ld can 55434642e01fSmrg # have problems creating the table of contents. If linking a library 55444642e01fSmrg # or program results in "error TOC overflow" add -mminimal-toc to 55454642e01fSmrg # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 55464642e01fSmrg # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 55474642e01fSmrg 55484642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='' 55494642e01fSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 55504642e01fSmrg _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 55514642e01fSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 55524642e01fSmrg _LT_TAGVAR(link_all_deplibs, $1)=yes 55534642e01fSmrg _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' 55544642e01fSmrg 55554642e01fSmrg if test "$GXX" = yes; then 55564642e01fSmrg case $host_os in aix4.[[012]]|aix4.[[012]].*) 55574642e01fSmrg # We only want to do this on AIX 4.2 and lower, the check 55584642e01fSmrg # below for broken collect2 doesn't work under 4.3+ 55594642e01fSmrg collect2name=`${CC} -print-prog-name=collect2` 55604642e01fSmrg if test -f "$collect2name" && 55614642e01fSmrg strings "$collect2name" | $GREP resolve_lib_name >/dev/null 55624642e01fSmrg then 55634642e01fSmrg # We have reworked collect2 55644642e01fSmrg : 55654642e01fSmrg else 55664642e01fSmrg # We have old collect2 55674642e01fSmrg _LT_TAGVAR(hardcode_direct, $1)=unsupported 55684642e01fSmrg # It fails to find uninstalled libraries when the uninstalled 55694642e01fSmrg # path is not listed in the libpath. Setting hardcode_minus_L 55704642e01fSmrg # to unsupported forces relinking 55714642e01fSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 55724642e01fSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 55734642e01fSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)= 55744642e01fSmrg fi 55754642e01fSmrg esac 55764642e01fSmrg shared_flag='-shared' 55774642e01fSmrg if test "$aix_use_runtimelinking" = yes; then 55784642e01fSmrg shared_flag="$shared_flag "'${wl}-G' 55794642e01fSmrg fi 55804642e01fSmrg else 55814642e01fSmrg # not using gcc 55824642e01fSmrg if test "$host_cpu" = ia64; then 55834642e01fSmrg # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 55844642e01fSmrg # chokes on -Wl,-G. The following line is correct: 55854642e01fSmrg shared_flag='-G' 55864642e01fSmrg else 55874642e01fSmrg if test "$aix_use_runtimelinking" = yes; then 55884642e01fSmrg shared_flag='${wl}-G' 55894642e01fSmrg else 55904642e01fSmrg shared_flag='${wl}-bM:SRE' 55914642e01fSmrg fi 55924642e01fSmrg fi 55934642e01fSmrg fi 559405b261ecSmrg 55954642e01fSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' 55964642e01fSmrg # It seems that -bexpall does not export symbols beginning with 55974642e01fSmrg # underscore (_), so it is better to generate a list of symbols to 55984642e01fSmrg # export. 55994642e01fSmrg _LT_TAGVAR(always_export_symbols, $1)=yes 56004642e01fSmrg if test "$aix_use_runtimelinking" = yes; then 56014642e01fSmrg # Warning - without using the other runtime loading flags (-brtl), 56024642e01fSmrg # -berok will link without error, but may produce a broken library. 56034642e01fSmrg _LT_TAGVAR(allow_undefined_flag, $1)='-berok' 56044642e01fSmrg # Determine the default libpath from the value encoded in an empty 56054642e01fSmrg # executable. 56064642e01fSmrg _LT_SYS_MODULE_PATH_AIX 56074642e01fSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 56084642e01fSmrg 56094642e01fSmrg _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" 56104642e01fSmrg else 56114642e01fSmrg if test "$host_cpu" = ia64; then 56124642e01fSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 56134642e01fSmrg _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 56144642e01fSmrg _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" 56154642e01fSmrg else 56164642e01fSmrg # Determine the default libpath from the value encoded in an 56174642e01fSmrg # empty executable. 56184642e01fSmrg _LT_SYS_MODULE_PATH_AIX 56194642e01fSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 56204642e01fSmrg # Warning - without using the other run time loading flags, 56214642e01fSmrg # -berok will link without error, but may produce a broken library. 56224642e01fSmrg _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 56234642e01fSmrg _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 56244642e01fSmrg # Exported symbols can be pulled into shared objects from archives 56254642e01fSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 56264642e01fSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 56274642e01fSmrg # This is similar to how AIX traditionally builds its shared 56284642e01fSmrg # libraries. 56294642e01fSmrg _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' 56304642e01fSmrg fi 56314642e01fSmrg fi 56324642e01fSmrg ;; 563305b261ecSmrg 56344642e01fSmrg beos*) 56354642e01fSmrg if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 56364642e01fSmrg _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 56374642e01fSmrg # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 56384642e01fSmrg # support --undefined. This deserves some investigation. FIXME 56394642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 56404642e01fSmrg else 56414642e01fSmrg _LT_TAGVAR(ld_shlibs, $1)=no 56424642e01fSmrg fi 56434642e01fSmrg ;; 564405b261ecSmrg 56454642e01fSmrg chorus*) 56464642e01fSmrg case $cc_basename in 56474642e01fSmrg *) 56484642e01fSmrg # FIXME: insert proper C++ library support 56494642e01fSmrg _LT_TAGVAR(ld_shlibs, $1)=no 56504642e01fSmrg ;; 56514642e01fSmrg esac 56524642e01fSmrg ;; 565305b261ecSmrg 56544642e01fSmrg cygwin* | mingw* | pw32* | cegcc*) 56554642e01fSmrg # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 56564642e01fSmrg # as there is no search path for DLLs. 56574642e01fSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 56584642e01fSmrg _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 56594642e01fSmrg _LT_TAGVAR(always_export_symbols, $1)=no 56604642e01fSmrg _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 56614642e01fSmrg 56624642e01fSmrg if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 56634642e01fSmrg _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' 56644642e01fSmrg # If the export-symbols file already is a .def file (1st line 56654642e01fSmrg # is EXPORTS), use it as is; otherwise, prepend... 56664642e01fSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 56674642e01fSmrg cp $export_symbols $output_objdir/$soname.def; 56684642e01fSmrg else 56694642e01fSmrg echo EXPORTS > $output_objdir/$soname.def; 56704642e01fSmrg cat $export_symbols >> $output_objdir/$soname.def; 56714642e01fSmrg fi~ 56724642e01fSmrg $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' 56734642e01fSmrg else 56744642e01fSmrg _LT_TAGVAR(ld_shlibs, $1)=no 56754642e01fSmrg fi 56764642e01fSmrg ;; 56774642e01fSmrg darwin* | rhapsody*) 56784642e01fSmrg _LT_DARWIN_LINKER_FEATURES($1) 56794642e01fSmrg ;; 568005b261ecSmrg 56814642e01fSmrg dgux*) 56824642e01fSmrg case $cc_basename in 56834642e01fSmrg ec++*) 56844642e01fSmrg # FIXME: insert proper C++ library support 56854642e01fSmrg _LT_TAGVAR(ld_shlibs, $1)=no 56864642e01fSmrg ;; 56874642e01fSmrg ghcx*) 56884642e01fSmrg # Green Hills C++ Compiler 56894642e01fSmrg # FIXME: insert proper C++ library support 56904642e01fSmrg _LT_TAGVAR(ld_shlibs, $1)=no 56914642e01fSmrg ;; 56924642e01fSmrg *) 56934642e01fSmrg # FIXME: insert proper C++ library support 56944642e01fSmrg _LT_TAGVAR(ld_shlibs, $1)=no 56954642e01fSmrg ;; 56964642e01fSmrg esac 56974642e01fSmrg ;; 569805b261ecSmrg 56994642e01fSmrg freebsd[[12]]*) 57004642e01fSmrg # C++ shared libraries reported to be fairly broken before 57014642e01fSmrg # switch to ELF 57024642e01fSmrg _LT_TAGVAR(ld_shlibs, $1)=no 57034642e01fSmrg ;; 570405b261ecSmrg 57054642e01fSmrg freebsd-elf*) 57064642e01fSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=no 57074642e01fSmrg ;; 570805b261ecSmrg 57094642e01fSmrg freebsd* | dragonfly*) 57104642e01fSmrg # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 57114642e01fSmrg # conventions 57124642e01fSmrg _LT_TAGVAR(ld_shlibs, $1)=yes 57134642e01fSmrg ;; 571405b261ecSmrg 57154642e01fSmrg gnu*) 57164642e01fSmrg ;; 571705b261ecSmrg 57184642e01fSmrg hpux9*) 57194642e01fSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 57204642e01fSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 57214642e01fSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 57224642e01fSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 57234642e01fSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 57244642e01fSmrg # but as the default 57254642e01fSmrg # location of the library. 57264642e01fSmrg 57274642e01fSmrg case $cc_basename in 57284642e01fSmrg CC*) 57294642e01fSmrg # FIXME: insert proper C++ library support 57304642e01fSmrg _LT_TAGVAR(ld_shlibs, $1)=no 57314642e01fSmrg ;; 57324642e01fSmrg aCC*) 57334642e01fSmrg _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' 57344642e01fSmrg # Commands to make compiler produce verbose output that lists 57354642e01fSmrg # what "hidden" libraries, object files and flags are used when 57364642e01fSmrg # linking a shared library. 57374642e01fSmrg # 57384642e01fSmrg # There doesn't appear to be a way to prevent this compiler from 57394642e01fSmrg # explicitly linking system object files so we need to strip them 57404642e01fSmrg # from the output so that they don't get included in the library 57414642e01fSmrg # dependencies. 57424642e01fSmrg 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' 57434642e01fSmrg ;; 57444642e01fSmrg *) 57454642e01fSmrg if test "$GXX" = yes; then 57464642e01fSmrg _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' 57474642e01fSmrg else 57484642e01fSmrg # FIXME: insert proper C++ library support 57494642e01fSmrg _LT_TAGVAR(ld_shlibs, $1)=no 57504642e01fSmrg fi 57514642e01fSmrg ;; 57524642e01fSmrg esac 57534642e01fSmrg ;; 575405b261ecSmrg 57554642e01fSmrg hpux10*|hpux11*) 57564642e01fSmrg if test $with_gnu_ld = no; then 57574642e01fSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 57584642e01fSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 57594642e01fSmrg 57604642e01fSmrg case $host_cpu in 57614642e01fSmrg hppa*64*|ia64*) 57624642e01fSmrg ;; 57634642e01fSmrg *) 57644642e01fSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 57654642e01fSmrg ;; 57664642e01fSmrg esac 57674642e01fSmrg fi 57684642e01fSmrg case $host_cpu in 57694642e01fSmrg hppa*64*|ia64*) 57704642e01fSmrg _LT_TAGVAR(hardcode_direct, $1)=no 57714642e01fSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 57724642e01fSmrg ;; 57734642e01fSmrg *) 57744642e01fSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 57754642e01fSmrg _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 57764642e01fSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 57774642e01fSmrg # but as the default 57784642e01fSmrg # location of the library. 57794642e01fSmrg ;; 57804642e01fSmrg esac 57814642e01fSmrg 57824642e01fSmrg case $cc_basename in 57834642e01fSmrg CC*) 57844642e01fSmrg # FIXME: insert proper C++ library support 57854642e01fSmrg _LT_TAGVAR(ld_shlibs, $1)=no 57864642e01fSmrg ;; 57874642e01fSmrg aCC*) 57884642e01fSmrg case $host_cpu in 57894642e01fSmrg hppa*64*) 57904642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 57914642e01fSmrg ;; 57924642e01fSmrg ia64*) 57934642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 57944642e01fSmrg ;; 57954642e01fSmrg *) 57964642e01fSmrg _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' 57974642e01fSmrg ;; 57984642e01fSmrg esac 57994642e01fSmrg # Commands to make compiler produce verbose output that lists 58004642e01fSmrg # what "hidden" libraries, object files and flags are used when 58014642e01fSmrg # linking a shared library. 58024642e01fSmrg # 58034642e01fSmrg # There doesn't appear to be a way to prevent this compiler from 58044642e01fSmrg # explicitly linking system object files so we need to strip them 58054642e01fSmrg # from the output so that they don't get included in the library 58064642e01fSmrg # dependencies. 58074642e01fSmrg 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' 58084642e01fSmrg ;; 58094642e01fSmrg *) 58104642e01fSmrg if test "$GXX" = yes; then 58114642e01fSmrg if test $with_gnu_ld = no; then 58124642e01fSmrg case $host_cpu in 58134642e01fSmrg hppa*64*) 58144642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 58154642e01fSmrg ;; 58164642e01fSmrg ia64*) 58174642e01fSmrg _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' 58184642e01fSmrg ;; 58194642e01fSmrg *) 58204642e01fSmrg _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' 58214642e01fSmrg ;; 58224642e01fSmrg esac 58234642e01fSmrg fi 58244642e01fSmrg else 58254642e01fSmrg # FIXME: insert proper C++ library support 58264642e01fSmrg _LT_TAGVAR(ld_shlibs, $1)=no 58274642e01fSmrg fi 58284642e01fSmrg ;; 58294642e01fSmrg esac 58304642e01fSmrg ;; 583105b261ecSmrg 58324642e01fSmrg interix[[3-9]]*) 58334642e01fSmrg _LT_TAGVAR(hardcode_direct, $1)=no 58344642e01fSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 58354642e01fSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 58364642e01fSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 58374642e01fSmrg # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 58384642e01fSmrg # Instead, shared libraries are loaded at an image base (0x10000000 by 58394642e01fSmrg # default) and relocated if they conflict, which is a slow very memory 58404642e01fSmrg # consuming and fragmenting process. To avoid this, we pick a random, 58414642e01fSmrg # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 58424642e01fSmrg # time. Moving up from 0x10000000 also allows more sbrk(2) space. 58434642e01fSmrg _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' 58444642e01fSmrg _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' 58454642e01fSmrg ;; 58464642e01fSmrg irix5* | irix6*) 58474642e01fSmrg case $cc_basename in 58484642e01fSmrg CC*) 58494642e01fSmrg # SGI C++ 58504642e01fSmrg _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' 58514642e01fSmrg 58524642e01fSmrg # Archives containing C++ object files must be created using 58534642e01fSmrg # "CC -ar", where "CC" is the IRIX C++ compiler. This is 58544642e01fSmrg # necessary to make sure instantiated templates are included 58554642e01fSmrg # in the archive. 58564642e01fSmrg _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' 58574642e01fSmrg ;; 58584642e01fSmrg *) 58594642e01fSmrg if test "$GXX" = yes; then 58604642e01fSmrg if test "$with_gnu_ld" = no; then 58614642e01fSmrg _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' 58624642e01fSmrg else 58634642e01fSmrg _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' 58644642e01fSmrg fi 58654642e01fSmrg fi 58664642e01fSmrg _LT_TAGVAR(link_all_deplibs, $1)=yes 58674642e01fSmrg ;; 58684642e01fSmrg esac 58694642e01fSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 58704642e01fSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 58714642e01fSmrg _LT_TAGVAR(inherit_rpath, $1)=yes 58724642e01fSmrg ;; 587305b261ecSmrg 58744642e01fSmrg linux* | k*bsd*-gnu) 58754642e01fSmrg case $cc_basename in 58764642e01fSmrg KCC*) 58774642e01fSmrg # Kuck and Associates, Inc. (KAI) C++ Compiler 58784642e01fSmrg 58794642e01fSmrg # KCC will only create a shared library if the output file 58804642e01fSmrg # ends with ".so" (or ".sl" for HP-UX), so rename the library 58814642e01fSmrg # to its proper name (with version) after linking. 58824642e01fSmrg _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' 58834642e01fSmrg _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' 58844642e01fSmrg # Commands to make compiler produce verbose output that lists 58854642e01fSmrg # what "hidden" libraries, object files and flags are used when 58864642e01fSmrg # linking a shared library. 58874642e01fSmrg # 58884642e01fSmrg # There doesn't appear to be a way to prevent this compiler from 58894642e01fSmrg # explicitly linking system object files so we need to strip them 58904642e01fSmrg # from the output so that they don't get included in the library 58914642e01fSmrg # dependencies. 58924642e01fSmrg 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' 58934642e01fSmrg 58944642e01fSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 58954642e01fSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 58964642e01fSmrg 58974642e01fSmrg # Archives containing C++ object files must be created using 58984642e01fSmrg # "CC -Bstatic", where "CC" is the KAI C++ compiler. 58994642e01fSmrg _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' 59004642e01fSmrg ;; 59014642e01fSmrg icpc* | ecpc* ) 59024642e01fSmrg # Intel C++ 59034642e01fSmrg with_gnu_ld=yes 59044642e01fSmrg # version 8.0 and above of icpc choke on multiply defined symbols 59054642e01fSmrg # if we add $predep_objects and $postdep_objects, however 7.1 and 59064642e01fSmrg # earlier do not add the objects themselves. 59074642e01fSmrg case `$CC -V 2>&1` in 59084642e01fSmrg *"Version 7."*) 59094642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 59104642e01fSmrg _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' 59114642e01fSmrg ;; 59124642e01fSmrg *) # Version 8.0 or newer 59134642e01fSmrg tmp_idyn= 59144642e01fSmrg case $host_cpu in 59154642e01fSmrg ia64*) tmp_idyn=' -i_dynamic';; 59164642e01fSmrg esac 59174642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 59184642e01fSmrg _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' 59194642e01fSmrg ;; 59204642e01fSmrg esac 59214642e01fSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=no 59224642e01fSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 59234642e01fSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 59244642e01fSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 59254642e01fSmrg ;; 59264642e01fSmrg pgCC* | pgcpp*) 59274642e01fSmrg # Portland Group C++ compiler 59284642e01fSmrg case `$CC -V` in 59294642e01fSmrg *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*) 59304642e01fSmrg _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ 59314642e01fSmrg rm -rf $tpldir~ 59324642e01fSmrg $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 59334642e01fSmrg compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' 59344642e01fSmrg _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ 59354642e01fSmrg rm -rf $tpldir~ 59364642e01fSmrg $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 59374642e01fSmrg $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ 59384642e01fSmrg $RANLIB $oldlib' 59394642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ 59404642e01fSmrg rm -rf $tpldir~ 59414642e01fSmrg $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 59424642e01fSmrg $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 59434642e01fSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ 59444642e01fSmrg rm -rf $tpldir~ 59454642e01fSmrg $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 59464642e01fSmrg $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' 59474642e01fSmrg ;; 59484642e01fSmrg *) # Version 6 will use weak symbols 59494642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 59504642e01fSmrg _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' 59514642e01fSmrg ;; 59524642e01fSmrg esac 595305b261ecSmrg 59544642e01fSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 59554642e01fSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 59564642e01fSmrg _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' 59574642e01fSmrg ;; 59584642e01fSmrg cxx*) 59594642e01fSmrg # Compaq C++ 59604642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 59614642e01fSmrg _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' 596205b261ecSmrg 59634642e01fSmrg runpath_var=LD_RUN_PATH 59644642e01fSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 59654642e01fSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 596605b261ecSmrg 59674642e01fSmrg # Commands to make compiler produce verbose output that lists 59684642e01fSmrg # what "hidden" libraries, object files and flags are used when 59694642e01fSmrg # linking a shared library. 59704642e01fSmrg # 59714642e01fSmrg # There doesn't appear to be a way to prevent this compiler from 59724642e01fSmrg # explicitly linking system object files so we need to strip them 59734642e01fSmrg # from the output so that they don't get included in the library 59744642e01fSmrg # dependencies. 59754642e01fSmrg 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' 59764642e01fSmrg ;; 59774642e01fSmrg xl*) 59784642e01fSmrg # IBM XL 8.0 on PPC, with GNU ld 59794642e01fSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 59804642e01fSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 59814642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 59824642e01fSmrg if test "x$supports_anon_versioning" = xyes; then 59834642e01fSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 59844642e01fSmrg cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 59854642e01fSmrg echo "local: *; };" >> $output_objdir/$libname.ver~ 59864642e01fSmrg $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 59874642e01fSmrg fi 59884642e01fSmrg ;; 59894642e01fSmrg *) 59904642e01fSmrg case `$CC -V 2>&1 | sed 5q` in 59914642e01fSmrg *Sun\ C*) 59924642e01fSmrg # Sun C++ 5.9 59934642e01fSmrg _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' 59944642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 59954642e01fSmrg _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' 59964642e01fSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 59974642e01fSmrg _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' 59984642e01fSmrg _LT_TAGVAR(compiler_needs_object, $1)=yes 59994642e01fSmrg 60004642e01fSmrg # Not sure whether something based on 60014642e01fSmrg # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 60024642e01fSmrg # would be better. 60034642e01fSmrg output_verbose_link_cmd='echo' 60044642e01fSmrg 60054642e01fSmrg # Archives containing C++ object files must be created using 60064642e01fSmrg # "CC -xar", where "CC" is the Sun C++ compiler. This is 60074642e01fSmrg # necessary to make sure instantiated templates are included 60084642e01fSmrg # in the archive. 60094642e01fSmrg _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 60104642e01fSmrg ;; 60114642e01fSmrg esac 60124642e01fSmrg ;; 60134642e01fSmrg esac 60144642e01fSmrg ;; 601505b261ecSmrg 60164642e01fSmrg lynxos*) 60174642e01fSmrg # FIXME: insert proper C++ library support 60184642e01fSmrg _LT_TAGVAR(ld_shlibs, $1)=no 60194642e01fSmrg ;; 602005b261ecSmrg 60214642e01fSmrg m88k*) 60224642e01fSmrg # FIXME: insert proper C++ library support 60234642e01fSmrg _LT_TAGVAR(ld_shlibs, $1)=no 60244642e01fSmrg ;; 602505b261ecSmrg 60264642e01fSmrg mvs*) 60274642e01fSmrg case $cc_basename in 60284642e01fSmrg cxx*) 60294642e01fSmrg # FIXME: insert proper C++ library support 60304642e01fSmrg _LT_TAGVAR(ld_shlibs, $1)=no 60314642e01fSmrg ;; 60324642e01fSmrg *) 60334642e01fSmrg # FIXME: insert proper C++ library support 60344642e01fSmrg _LT_TAGVAR(ld_shlibs, $1)=no 60354642e01fSmrg ;; 60364642e01fSmrg esac 60374642e01fSmrg ;; 603805b261ecSmrg 60394642e01fSmrg netbsd*) 60404642e01fSmrg if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 60414642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 60424642e01fSmrg wlarc= 60434642e01fSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 60444642e01fSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 60454642e01fSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 60464642e01fSmrg fi 60474642e01fSmrg # Workaround some broken pre-1.5 toolchains 60484642e01fSmrg output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 60494642e01fSmrg ;; 605005b261ecSmrg 60514642e01fSmrg *nto* | *qnx*) 60524642e01fSmrg _LT_TAGVAR(ld_shlibs, $1)=yes 60534642e01fSmrg ;; 605405b261ecSmrg 60554642e01fSmrg openbsd2*) 60564642e01fSmrg # C++ shared libraries are fairly broken 60574642e01fSmrg _LT_TAGVAR(ld_shlibs, $1)=no 60584642e01fSmrg ;; 605905b261ecSmrg 60604642e01fSmrg openbsd*) 60614642e01fSmrg if test -f /usr/libexec/ld.so; then 60624642e01fSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 60634642e01fSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 60644642e01fSmrg _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 60654642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 60664642e01fSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 60674642e01fSmrg if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 60684642e01fSmrg _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' 60694642e01fSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 60704642e01fSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 60714642e01fSmrg fi 60724642e01fSmrg output_verbose_link_cmd=echo 60734642e01fSmrg else 60744642e01fSmrg _LT_TAGVAR(ld_shlibs, $1)=no 60754642e01fSmrg fi 60764642e01fSmrg ;; 607705b261ecSmrg 60784642e01fSmrg osf3* | osf4* | osf5*) 60794642e01fSmrg case $cc_basename in 60804642e01fSmrg KCC*) 60814642e01fSmrg # Kuck and Associates, Inc. (KAI) C++ Compiler 60824642e01fSmrg 60834642e01fSmrg # KCC will only create a shared library if the output file 60844642e01fSmrg # ends with ".so" (or ".sl" for HP-UX), so rename the library 60854642e01fSmrg # to its proper name (with version) after linking. 60864642e01fSmrg _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' 60874642e01fSmrg 60884642e01fSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 60894642e01fSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 60904642e01fSmrg 60914642e01fSmrg # Archives containing C++ object files must be created using 60924642e01fSmrg # the KAI C++ compiler. 60934642e01fSmrg case $host in 60944642e01fSmrg osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; 60954642e01fSmrg *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; 60964642e01fSmrg esac 60974642e01fSmrg ;; 60984642e01fSmrg RCC*) 60994642e01fSmrg # Rational C++ 2.4.1 61004642e01fSmrg # FIXME: insert proper C++ library support 61014642e01fSmrg _LT_TAGVAR(ld_shlibs, $1)=no 61024642e01fSmrg ;; 61034642e01fSmrg cxx*) 61044642e01fSmrg case $host in 61054642e01fSmrg osf3*) 61064642e01fSmrg _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 61074642e01fSmrg _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' 61084642e01fSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 61094642e01fSmrg ;; 61104642e01fSmrg *) 61114642e01fSmrg _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 61124642e01fSmrg _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' 61134642e01fSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 61144642e01fSmrg echo "-hidden">> $lib.exp~ 61154642e01fSmrg $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~ 61164642e01fSmrg $RM $lib.exp' 61174642e01fSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 61184642e01fSmrg ;; 61194642e01fSmrg esac 612005b261ecSmrg 61214642e01fSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 612205b261ecSmrg 61234642e01fSmrg # Commands to make compiler produce verbose output that lists 61244642e01fSmrg # what "hidden" libraries, object files and flags are used when 61254642e01fSmrg # linking a shared library. 61264642e01fSmrg # 61274642e01fSmrg # There doesn't appear to be a way to prevent this compiler from 61284642e01fSmrg # explicitly linking system object files so we need to strip them 61294642e01fSmrg # from the output so that they don't get included in the library 61304642e01fSmrg # dependencies. 61314642e01fSmrg 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' 61324642e01fSmrg ;; 61334642e01fSmrg *) 61344642e01fSmrg if test "$GXX" = yes && test "$with_gnu_ld" = no; then 61354642e01fSmrg _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 61364642e01fSmrg case $host in 61374642e01fSmrg osf3*) 61384642e01fSmrg _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' 61394642e01fSmrg ;; 61404642e01fSmrg *) 61414642e01fSmrg _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' 61424642e01fSmrg ;; 61434642e01fSmrg esac 61444642e01fSmrg 61454642e01fSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 61464642e01fSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 61474642e01fSmrg 61484642e01fSmrg # Commands to make compiler produce verbose output that lists 61494642e01fSmrg # what "hidden" libraries, object files and flags are used when 61504642e01fSmrg # linking a shared library. 61514642e01fSmrg output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 61524642e01fSmrg 61534642e01fSmrg else 61544642e01fSmrg # FIXME: insert proper C++ library support 61554642e01fSmrg _LT_TAGVAR(ld_shlibs, $1)=no 61564642e01fSmrg fi 61574642e01fSmrg ;; 61584642e01fSmrg esac 61594642e01fSmrg ;; 616005b261ecSmrg 61614642e01fSmrg psos*) 61624642e01fSmrg # FIXME: insert proper C++ library support 61634642e01fSmrg _LT_TAGVAR(ld_shlibs, $1)=no 61644642e01fSmrg ;; 616505b261ecSmrg 61664642e01fSmrg sunos4*) 61674642e01fSmrg case $cc_basename in 61684642e01fSmrg CC*) 61694642e01fSmrg # Sun C++ 4.x 61704642e01fSmrg # FIXME: insert proper C++ library support 61714642e01fSmrg _LT_TAGVAR(ld_shlibs, $1)=no 617205b261ecSmrg ;; 61734642e01fSmrg lcc*) 61744642e01fSmrg # Lucid 61754642e01fSmrg # FIXME: insert proper C++ library support 61764642e01fSmrg _LT_TAGVAR(ld_shlibs, $1)=no 617705b261ecSmrg ;; 61784642e01fSmrg *) 61794642e01fSmrg # FIXME: insert proper C++ library support 61804642e01fSmrg _LT_TAGVAR(ld_shlibs, $1)=no 618105b261ecSmrg ;; 61824642e01fSmrg esac 61834642e01fSmrg ;; 61844642e01fSmrg 618505b261ecSmrg solaris*) 61864642e01fSmrg case $cc_basename in 61874642e01fSmrg CC*) 618805b261ecSmrg # Sun C++ 4.2, 5.x and Centerline C++ 61894642e01fSmrg _LT_TAGVAR(archive_cmds_need_lc,$1)=yes 61904642e01fSmrg _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' 61914642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 61924642e01fSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 61934642e01fSmrg $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' 61944642e01fSmrg 61954642e01fSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 61964642e01fSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 61974642e01fSmrg case $host_os in 61984642e01fSmrg solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 61994642e01fSmrg *) 62004642e01fSmrg # The compiler driver will combine and reorder linker options, 62014642e01fSmrg # but understands `-z linker_flag'. 62024642e01fSmrg # Supported since Solaris 2.6 (maybe 2.5.1?) 62034642e01fSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 62044642e01fSmrg ;; 62054642e01fSmrg esac 62064642e01fSmrg _LT_TAGVAR(link_all_deplibs, $1)=yes 62074642e01fSmrg 62084642e01fSmrg output_verbose_link_cmd='echo' 62094642e01fSmrg 62104642e01fSmrg # Archives containing C++ object files must be created using 62114642e01fSmrg # "CC -xar", where "CC" is the Sun C++ compiler. This is 62124642e01fSmrg # necessary to make sure instantiated templates are included 62134642e01fSmrg # in the archive. 62144642e01fSmrg _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 621505b261ecSmrg ;; 62164642e01fSmrg gcx*) 621705b261ecSmrg # Green Hills C++ Compiler 62184642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 62194642e01fSmrg 62204642e01fSmrg # The C++ compiler must be used to create the archive. 62214642e01fSmrg _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 622205b261ecSmrg ;; 62234642e01fSmrg *) 62244642e01fSmrg # GNU C++ compiler with Solaris linker 62254642e01fSmrg if test "$GXX" = yes && test "$with_gnu_ld" = no; then 62264642e01fSmrg _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' 62274642e01fSmrg if $CC --version | $GREP -v '^2\.7' > /dev/null; then 62284642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 62294642e01fSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 62304642e01fSmrg $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 62314642e01fSmrg 62324642e01fSmrg # Commands to make compiler produce verbose output that lists 62334642e01fSmrg # what "hidden" libraries, object files and flags are used when 62344642e01fSmrg # linking a shared library. 62354642e01fSmrg output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 62364642e01fSmrg else 62374642e01fSmrg # g++ 2.7 appears to require `-G' NOT `-shared' on this 62384642e01fSmrg # platform. 62394642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 62404642e01fSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 62414642e01fSmrg $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 62424642e01fSmrg 62434642e01fSmrg # Commands to make compiler produce verbose output that lists 62444642e01fSmrg # what "hidden" libraries, object files and flags are used when 62454642e01fSmrg # linking a shared library. 62464642e01fSmrg output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 62474642e01fSmrg fi 62484642e01fSmrg 62494642e01fSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' 62504642e01fSmrg case $host_os in 62514642e01fSmrg solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 62524642e01fSmrg *) 62534642e01fSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 62544642e01fSmrg ;; 62554642e01fSmrg esac 62564642e01fSmrg fi 625705b261ecSmrg ;; 62584642e01fSmrg esac 62594642e01fSmrg ;; 62604642e01fSmrg 62614642e01fSmrg sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 62624642e01fSmrg _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 62634642e01fSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=no 62644642e01fSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 62654642e01fSmrg runpath_var='LD_RUN_PATH' 62664642e01fSmrg 62674642e01fSmrg case $cc_basename in 62684642e01fSmrg CC*) 62694642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 62704642e01fSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 62714642e01fSmrg ;; 62724642e01fSmrg *) 62734642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 62744642e01fSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 62754642e01fSmrg ;; 62764642e01fSmrg esac 62774642e01fSmrg ;; 62784642e01fSmrg 62794642e01fSmrg sysv5* | sco3.2v5* | sco5v6*) 62804642e01fSmrg # Note: We can NOT use -z defs as we might desire, because we do not 62814642e01fSmrg # link with -lc, and that would cause any symbols used from libc to 62824642e01fSmrg # always be unresolved, which means just about no library would 62834642e01fSmrg # ever link correctly. If we're not using GNU ld we use -z text 62844642e01fSmrg # though, which does catch some bad symbols but isn't as heavy-handed 62854642e01fSmrg # as -z defs. 62864642e01fSmrg _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 62874642e01fSmrg _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' 62884642e01fSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=no 62894642e01fSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 62904642e01fSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' 62914642e01fSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 62924642e01fSmrg _LT_TAGVAR(link_all_deplibs, $1)=yes 62934642e01fSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' 62944642e01fSmrg runpath_var='LD_RUN_PATH' 62954642e01fSmrg 629605b261ecSmrg case $cc_basename in 62974642e01fSmrg CC*) 62984642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 62994642e01fSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 630005b261ecSmrg ;; 630105b261ecSmrg *) 63024642e01fSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 63034642e01fSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 630405b261ecSmrg ;; 630505b261ecSmrg esac 63064642e01fSmrg ;; 63074642e01fSmrg 630805b261ecSmrg tandem*) 63094642e01fSmrg case $cc_basename in 63104642e01fSmrg NCC*) 631105b261ecSmrg # NonStop-UX NCC 3.20 63124642e01fSmrg # FIXME: insert proper C++ library support 63134642e01fSmrg _LT_TAGVAR(ld_shlibs, $1)=no 631405b261ecSmrg ;; 63154642e01fSmrg *) 63164642e01fSmrg # FIXME: insert proper C++ library support 63174642e01fSmrg _LT_TAGVAR(ld_shlibs, $1)=no 631805b261ecSmrg ;; 63194642e01fSmrg esac 63204642e01fSmrg ;; 63214642e01fSmrg 632205b261ecSmrg vxworks*) 63234642e01fSmrg # FIXME: insert proper C++ library support 63244642e01fSmrg _LT_TAGVAR(ld_shlibs, $1)=no 63254642e01fSmrg ;; 63264642e01fSmrg 632705b261ecSmrg *) 63284642e01fSmrg # FIXME: insert proper C++ library support 63294642e01fSmrg _LT_TAGVAR(ld_shlibs, $1)=no 63304642e01fSmrg ;; 633105b261ecSmrg esac 633205b261ecSmrg 63334642e01fSmrg AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) 63344642e01fSmrg test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 63354642e01fSmrg 63364642e01fSmrg _LT_TAGVAR(GCC, $1)="$GXX" 63374642e01fSmrg _LT_TAGVAR(LD, $1)="$LD" 63384642e01fSmrg 63394642e01fSmrg ## CAVEAT EMPTOR: 63404642e01fSmrg ## There is no encapsulation within the following macros, do not change 63414642e01fSmrg ## the running order or otherwise move them around unless you know exactly 63424642e01fSmrg ## what you are doing... 63434642e01fSmrg _LT_SYS_HIDDEN_LIBDEPS($1) 63444642e01fSmrg _LT_COMPILER_PIC($1) 63454642e01fSmrg _LT_COMPILER_C_O($1) 63464642e01fSmrg _LT_COMPILER_FILE_LOCKS($1) 63474642e01fSmrg _LT_LINKER_SHLIBS($1) 63484642e01fSmrg _LT_SYS_DYNAMIC_LINKER($1) 63494642e01fSmrg _LT_LINKER_HARDCODE_LIBPATH($1) 63504642e01fSmrg 63514642e01fSmrg _LT_CONFIG($1) 63524642e01fSmrg fi # test -n "$compiler" 63534642e01fSmrg 63544642e01fSmrg CC=$lt_save_CC 63554642e01fSmrg LDCXX=$LD 63564642e01fSmrg LD=$lt_save_LD 63574642e01fSmrg GCC=$lt_save_GCC 63584642e01fSmrg with_gnu_ld=$lt_save_with_gnu_ld 63594642e01fSmrg lt_cv_path_LDCXX=$lt_cv_path_LD 63604642e01fSmrg lt_cv_path_LD=$lt_save_path_LD 63614642e01fSmrg lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 63624642e01fSmrg lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 63634642e01fSmrgfi # test "$_lt_caught_CXX_error" != yes 636405b261ecSmrg 63654642e01fSmrgAC_LANG_POP 63664642e01fSmrg])# _LT_LANG_CXX_CONFIG 636705b261ecSmrg 636805b261ecSmrg 63694642e01fSmrg# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) 63704642e01fSmrg# --------------------------------- 63714642e01fSmrg# Figure out "hidden" library dependencies from verbose 63724642e01fSmrg# compiler output when linking a shared library. 63734642e01fSmrg# Parse the compiler output and extract the necessary 63744642e01fSmrg# objects, libraries and library flags. 63754642e01fSmrgm4_defun([_LT_SYS_HIDDEN_LIBDEPS], 63764642e01fSmrg[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 63774642e01fSmrg# Dependencies to place before and after the object being linked: 63784642e01fSmrg_LT_TAGVAR(predep_objects, $1)= 63794642e01fSmrg_LT_TAGVAR(postdep_objects, $1)= 63804642e01fSmrg_LT_TAGVAR(predeps, $1)= 63814642e01fSmrg_LT_TAGVAR(postdeps, $1)= 63824642e01fSmrg_LT_TAGVAR(compiler_lib_search_path, $1)= 638305b261ecSmrg 63844642e01fSmrgdnl we can't use the lt_simple_compile_test_code here, 63854642e01fSmrgdnl because it contains code intended for an executable, 63864642e01fSmrgdnl not a library. It's possible we should let each 63874642e01fSmrgdnl tag define a new lt_????_link_test_code variable, 63884642e01fSmrgdnl but it's only used here... 63894642e01fSmrgm4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF 63904642e01fSmrgint a; 63914642e01fSmrgvoid foo (void) { a = 0; } 63924642e01fSmrg_LT_EOF 63934642e01fSmrg], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF 63944642e01fSmrgclass Foo 63954642e01fSmrg{ 63964642e01fSmrgpublic: 63974642e01fSmrg Foo (void) { a = 0; } 63984642e01fSmrgprivate: 63994642e01fSmrg int a; 64004642e01fSmrg}; 64014642e01fSmrg_LT_EOF 64024642e01fSmrg], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF 64034642e01fSmrg subroutine foo 64044642e01fSmrg implicit none 64054642e01fSmrg integer*4 a 64064642e01fSmrg a=0 64074642e01fSmrg return 64084642e01fSmrg end 64094642e01fSmrg_LT_EOF 64104642e01fSmrg], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF 64114642e01fSmrg subroutine foo 64124642e01fSmrg implicit none 64134642e01fSmrg integer a 64144642e01fSmrg a=0 64154642e01fSmrg return 64164642e01fSmrg end 64174642e01fSmrg_LT_EOF 64184642e01fSmrg], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF 64194642e01fSmrgpublic class foo { 64204642e01fSmrg private int a; 64214642e01fSmrg public void bar (void) { 64224642e01fSmrg a = 0; 64234642e01fSmrg } 64244642e01fSmrg}; 64254642e01fSmrg_LT_EOF 64264642e01fSmrg]) 64274642e01fSmrgdnl Parse the compiler output and extract the necessary 64284642e01fSmrgdnl objects, libraries and library flags. 64294642e01fSmrgif AC_TRY_EVAL(ac_compile); then 64304642e01fSmrg # Parse the compiler output and extract the necessary 64314642e01fSmrg # objects, libraries and library flags. 643205b261ecSmrg 64334642e01fSmrg # Sentinel used to keep track of whether or not we are before 64344642e01fSmrg # the conftest object file. 64354642e01fSmrg pre_test_object_deps_done=no 643605b261ecSmrg 64374642e01fSmrg for p in `eval "$output_verbose_link_cmd"`; do 64384642e01fSmrg case $p in 643905b261ecSmrg 64404642e01fSmrg -L* | -R* | -l*) 64414642e01fSmrg # Some compilers place space between "-{L,R}" and the path. 64424642e01fSmrg # Remove the space. 64434642e01fSmrg if test $p = "-L" || 64444642e01fSmrg test $p = "-R"; then 64454642e01fSmrg prev=$p 64464642e01fSmrg continue 64474642e01fSmrg else 64484642e01fSmrg prev= 64494642e01fSmrg fi 645005b261ecSmrg 64514642e01fSmrg if test "$pre_test_object_deps_done" = no; then 64524642e01fSmrg case $p in 64534642e01fSmrg -L* | -R*) 64544642e01fSmrg # Internal compiler library paths should come after those 64554642e01fSmrg # provided the user. The postdeps already come after the 64564642e01fSmrg # user supplied libs so there is no need to process them. 64574642e01fSmrg if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then 64584642e01fSmrg _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" 64594642e01fSmrg else 64604642e01fSmrg _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" 64614642e01fSmrg fi 64624642e01fSmrg ;; 64634642e01fSmrg # The "-l" case would never come before the object being 64644642e01fSmrg # linked, so don't bother handling this case. 64654642e01fSmrg esac 64664642e01fSmrg else 64674642e01fSmrg if test -z "$_LT_TAGVAR(postdeps, $1)"; then 64684642e01fSmrg _LT_TAGVAR(postdeps, $1)="${prev}${p}" 64694642e01fSmrg else 64704642e01fSmrg _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}" 64714642e01fSmrg fi 64724642e01fSmrg fi 647305b261ecSmrg ;; 647405b261ecSmrg 64754642e01fSmrg *.$objext) 64764642e01fSmrg # This assumes that the test object file only shows up 64774642e01fSmrg # once in the compiler output. 64784642e01fSmrg if test "$p" = "conftest.$objext"; then 64794642e01fSmrg pre_test_object_deps_done=yes 64804642e01fSmrg continue 64814642e01fSmrg fi 648205b261ecSmrg 64834642e01fSmrg if test "$pre_test_object_deps_done" = no; then 64844642e01fSmrg if test -z "$_LT_TAGVAR(predep_objects, $1)"; then 64854642e01fSmrg _LT_TAGVAR(predep_objects, $1)="$p" 64864642e01fSmrg else 64874642e01fSmrg _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" 64884642e01fSmrg fi 64894642e01fSmrg else 64904642e01fSmrg if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then 64914642e01fSmrg _LT_TAGVAR(postdep_objects, $1)="$p" 64924642e01fSmrg else 64934642e01fSmrg _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" 64944642e01fSmrg fi 64954642e01fSmrg fi 64964642e01fSmrg ;; 649705b261ecSmrg 64984642e01fSmrg *) ;; # Ignore the rest. 649905b261ecSmrg 65004642e01fSmrg esac 65014642e01fSmrg done 650205b261ecSmrg 65034642e01fSmrg # Clean up. 65044642e01fSmrg rm -f a.out a.exe 65054642e01fSmrgelse 65064642e01fSmrg echo "libtool.m4: error: problem compiling $1 test program" 65074642e01fSmrgfi 650805b261ecSmrg 65094642e01fSmrg$RM -f confest.$objext 651005b261ecSmrg 65114642e01fSmrg# PORTME: override above test on systems where it is broken 65124642e01fSmrgm4_if([$1], [CXX], 65134642e01fSmrg[case $host_os in 65144642e01fSmrginterix[[3-9]]*) 65154642e01fSmrg # Interix 3.5 installs completely hosed .la files for C++, so rather than 65164642e01fSmrg # hack all around it, let's just trust "g++" to DTRT. 65174642e01fSmrg _LT_TAGVAR(predep_objects,$1)= 65184642e01fSmrg _LT_TAGVAR(postdep_objects,$1)= 65194642e01fSmrg _LT_TAGVAR(postdeps,$1)= 65204642e01fSmrg ;; 652105b261ecSmrg 65224642e01fSmrglinux*) 65234642e01fSmrg case `$CC -V 2>&1 | sed 5q` in 65244642e01fSmrg *Sun\ C*) 65254642e01fSmrg # Sun C++ 5.9 652605b261ecSmrg 65274642e01fSmrg # The more standards-conforming stlport4 library is 65284642e01fSmrg # incompatible with the Cstd library. Avoid specifying 65294642e01fSmrg # it if it's in CXXFLAGS. Ignore libCrun as 65304642e01fSmrg # -library=stlport4 depends on it. 65314642e01fSmrg case " $CXX $CXXFLAGS " in 65324642e01fSmrg *" -library=stlport4 "*) 65334642e01fSmrg solaris_use_stlport4=yes 653405b261ecSmrg ;; 65354642e01fSmrg esac 653605b261ecSmrg 65374642e01fSmrg if test "$solaris_use_stlport4" != yes; then 65384642e01fSmrg _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' 65394642e01fSmrg fi 65404642e01fSmrg ;; 65414642e01fSmrg esac 65424642e01fSmrg ;; 65434642e01fSmrg 65444642e01fSmrgsolaris*) 65454642e01fSmrg case $cc_basename in 65464642e01fSmrg CC*) 65474642e01fSmrg # The more standards-conforming stlport4 library is 65484642e01fSmrg # incompatible with the Cstd library. Avoid specifying 65494642e01fSmrg # it if it's in CXXFLAGS. Ignore libCrun as 65504642e01fSmrg # -library=stlport4 depends on it. 65514642e01fSmrg case " $CXX $CXXFLAGS " in 65524642e01fSmrg *" -library=stlport4 "*) 65534642e01fSmrg solaris_use_stlport4=yes 655405b261ecSmrg ;; 65554642e01fSmrg esac 655605b261ecSmrg 65574642e01fSmrg # Adding this requires a known-good setup of shared libraries for 65584642e01fSmrg # Sun compiler versions before 5.6, else PIC objects from an old 65594642e01fSmrg # archive will be linked into the output, leading to subtle bugs. 65604642e01fSmrg if test "$solaris_use_stlport4" != yes; then 65614642e01fSmrg _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' 65624642e01fSmrg fi 65634642e01fSmrg ;; 65644642e01fSmrg esac 65654642e01fSmrg ;; 65664642e01fSmrgesac 65674642e01fSmrg]) 656805b261ecSmrg 65694642e01fSmrgcase " $_LT_TAGVAR(postdeps, $1) " in 65704642e01fSmrg*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; 65714642e01fSmrgesac 65724642e01fSmrg _LT_TAGVAR(compiler_lib_search_dirs, $1)= 65734642e01fSmrgif test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then 65744642e01fSmrg _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 65754642e01fSmrgfi 65764642e01fSmrg_LT_TAGDECL([], [compiler_lib_search_dirs], [1], 65774642e01fSmrg [The directories searched by this compiler when creating a shared library]) 65784642e01fSmrg_LT_TAGDECL([], [predep_objects], [1], 65794642e01fSmrg [Dependencies to place before and after the objects being linked to 65804642e01fSmrg create a shared library]) 65814642e01fSmrg_LT_TAGDECL([], [postdep_objects], [1]) 65824642e01fSmrg_LT_TAGDECL([], [predeps], [1]) 65834642e01fSmrg_LT_TAGDECL([], [postdeps], [1]) 65844642e01fSmrg_LT_TAGDECL([], [compiler_lib_search_path], [1], 65854642e01fSmrg [The library search path used internally by the compiler when linking 65864642e01fSmrg a shared library]) 65874642e01fSmrg])# _LT_SYS_HIDDEN_LIBDEPS 65884642e01fSmrg 65894642e01fSmrg 65904642e01fSmrg# _LT_PROG_F77 65914642e01fSmrg# ------------ 65924642e01fSmrg# Since AC_PROG_F77 is broken, in that it returns the empty string 65934642e01fSmrg# if there is no fortran compiler, we have our own version here. 65944642e01fSmrgm4_defun([_LT_PROG_F77], 65954642e01fSmrg[ 65964642e01fSmrgpushdef([AC_MSG_ERROR], [_lt_disable_F77=yes]) 65974642e01fSmrgAC_PROG_F77 65984642e01fSmrgif test -z "$F77" || test "X$F77" = "Xno"; then 65994642e01fSmrg _lt_disable_F77=yes 66004642e01fSmrgfi 66014642e01fSmrgpopdef([AC_MSG_ERROR]) 66024642e01fSmrg])# _LT_PROG_F77 660305b261ecSmrg 66044642e01fSmrgdnl aclocal-1.4 backwards compatibility: 66054642e01fSmrgdnl AC_DEFUN([_LT_PROG_F77], []) 660605b261ecSmrg 660705b261ecSmrg 66084642e01fSmrg# _LT_LANG_F77_CONFIG([TAG]) 66094642e01fSmrg# -------------------------- 66104642e01fSmrg# Ensure that the configuration variables for a Fortran 77 compiler are 66114642e01fSmrg# suitably defined. These variables are subsequently used by _LT_CONFIG 66124642e01fSmrg# to write the compiler configuration to `libtool'. 66134642e01fSmrgm4_defun([_LT_LANG_F77_CONFIG], 66144642e01fSmrg[AC_REQUIRE([_LT_PROG_F77])dnl 66154642e01fSmrgAC_LANG_PUSH(Fortran 77) 661605b261ecSmrg 66174642e01fSmrg_LT_TAGVAR(archive_cmds_need_lc, $1)=no 66184642e01fSmrg_LT_TAGVAR(allow_undefined_flag, $1)= 66194642e01fSmrg_LT_TAGVAR(always_export_symbols, $1)=no 66204642e01fSmrg_LT_TAGVAR(archive_expsym_cmds, $1)= 66214642e01fSmrg_LT_TAGVAR(export_dynamic_flag_spec, $1)= 66224642e01fSmrg_LT_TAGVAR(hardcode_direct, $1)=no 66234642e01fSmrg_LT_TAGVAR(hardcode_direct_absolute, $1)=no 66244642e01fSmrg_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 66254642e01fSmrg_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 66264642e01fSmrg_LT_TAGVAR(hardcode_libdir_separator, $1)= 66274642e01fSmrg_LT_TAGVAR(hardcode_minus_L, $1)=no 66284642e01fSmrg_LT_TAGVAR(hardcode_automatic, $1)=no 66294642e01fSmrg_LT_TAGVAR(inherit_rpath, $1)=no 66304642e01fSmrg_LT_TAGVAR(module_cmds, $1)= 66314642e01fSmrg_LT_TAGVAR(module_expsym_cmds, $1)= 66324642e01fSmrg_LT_TAGVAR(link_all_deplibs, $1)=unknown 66334642e01fSmrg_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 66344642e01fSmrg_LT_TAGVAR(no_undefined_flag, $1)= 66354642e01fSmrg_LT_TAGVAR(whole_archive_flag_spec, $1)= 66364642e01fSmrg_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 663705b261ecSmrg 66384642e01fSmrg# Source file extension for f77 test sources. 66394642e01fSmrgac_ext=f 664005b261ecSmrg 66414642e01fSmrg# Object file extension for compiled f77 test sources. 66424642e01fSmrgobjext=o 66434642e01fSmrg_LT_TAGVAR(objext, $1)=$objext 66444642e01fSmrg 66454642e01fSmrg# No sense in running all these tests if we already determined that 66464642e01fSmrg# the F77 compiler isn't working. Some variables (like enable_shared) 66474642e01fSmrg# are currently assumed to apply to all compilers on this platform, 66484642e01fSmrg# and will be corrupted by setting them based on a non-working compiler. 66494642e01fSmrgif test "$_lt_disable_F77" != yes; then 66504642e01fSmrg # Code to be used in simple compile tests 66514642e01fSmrg lt_simple_compile_test_code="\ 66524642e01fSmrg subroutine t 66534642e01fSmrg return 66544642e01fSmrg end 66554642e01fSmrg" 665605b261ecSmrg 66574642e01fSmrg # Code to be used in simple link tests 66584642e01fSmrg lt_simple_link_test_code="\ 66594642e01fSmrg program t 66604642e01fSmrg end 66614642e01fSmrg" 66624642e01fSmrg 66634642e01fSmrg # ltmain only uses $CC for tagged configurations so make sure $CC is set. 66644642e01fSmrg _LT_TAG_COMPILER 66654642e01fSmrg 66664642e01fSmrg # save warnings/boilerplate of simple test code 66674642e01fSmrg _LT_COMPILER_BOILERPLATE 66684642e01fSmrg _LT_LINKER_BOILERPLATE 66694642e01fSmrg 66704642e01fSmrg # Allow CC to be a program name with arguments. 66714642e01fSmrg lt_save_CC="$CC" 66724642e01fSmrg lt_save_GCC=$GCC 66734642e01fSmrg CC=${F77-"f77"} 66744642e01fSmrg compiler=$CC 66754642e01fSmrg _LT_TAGVAR(compiler, $1)=$CC 667605b261ecSmrg _LT_CC_BASENAME([$compiler]) 66774642e01fSmrg GCC=$G77 66784642e01fSmrg if test -n "$compiler"; then 66794642e01fSmrg AC_MSG_CHECKING([if libtool supports shared libraries]) 66804642e01fSmrg AC_MSG_RESULT([$can_build_shared]) 668105b261ecSmrg 66824642e01fSmrg AC_MSG_CHECKING([whether to build shared libraries]) 66834642e01fSmrg test "$can_build_shared" = "no" && enable_shared=no 668405b261ecSmrg 66854642e01fSmrg # On AIX, shared libraries and static libraries use the same namespace, and 66864642e01fSmrg # are all built from PIC. 66874642e01fSmrg case $host_os in 66884642e01fSmrg aix3*) 66894642e01fSmrg test "$enable_shared" = yes && enable_static=no 66904642e01fSmrg if test -n "$RANLIB"; then 66914642e01fSmrg archive_cmds="$archive_cmds~\$RANLIB \$lib" 66924642e01fSmrg postinstall_cmds='$RANLIB $lib' 66934642e01fSmrg fi 66944642e01fSmrg ;; 66954642e01fSmrg aix[[4-9]]*) 66964642e01fSmrg if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 66974642e01fSmrg test "$enable_shared" = yes && enable_static=no 66984642e01fSmrg fi 66994642e01fSmrg ;; 670005b261ecSmrg esac 67014642e01fSmrg AC_MSG_RESULT([$enable_shared]) 67024642e01fSmrg 67034642e01fSmrg AC_MSG_CHECKING([whether to build static libraries]) 67044642e01fSmrg # Make sure either enable_shared or enable_static is yes. 67054642e01fSmrg test "$enable_shared" = yes || enable_static=yes 67064642e01fSmrg AC_MSG_RESULT([$enable_static]) 67074642e01fSmrg 67084642e01fSmrg _LT_TAGVAR(GCC, $1)="$G77" 67094642e01fSmrg _LT_TAGVAR(LD, $1)="$LD" 67104642e01fSmrg 67114642e01fSmrg ## CAVEAT EMPTOR: 67124642e01fSmrg ## There is no encapsulation within the following macros, do not change 67134642e01fSmrg ## the running order or otherwise move them around unless you know exactly 67144642e01fSmrg ## what you are doing... 67154642e01fSmrg _LT_COMPILER_PIC($1) 67164642e01fSmrg _LT_COMPILER_C_O($1) 67174642e01fSmrg _LT_COMPILER_FILE_LOCKS($1) 67184642e01fSmrg _LT_LINKER_SHLIBS($1) 67194642e01fSmrg _LT_SYS_DYNAMIC_LINKER($1) 67204642e01fSmrg _LT_LINKER_HARDCODE_LIBPATH($1) 67214642e01fSmrg 67224642e01fSmrg _LT_CONFIG($1) 67234642e01fSmrg fi # test -n "$compiler" 67244642e01fSmrg 67254642e01fSmrg GCC=$lt_save_GCC 67264642e01fSmrg CC="$lt_save_CC" 67274642e01fSmrgfi # test "$_lt_disable_F77" != yes 672805b261ecSmrg 67294642e01fSmrgAC_LANG_POP 67304642e01fSmrg])# _LT_LANG_F77_CONFIG 673105b261ecSmrg 673205b261ecSmrg 67334642e01fSmrg# _LT_PROG_FC 67344642e01fSmrg# ----------- 67354642e01fSmrg# Since AC_PROG_FC is broken, in that it returns the empty string 67364642e01fSmrg# if there is no fortran compiler, we have our own version here. 67374642e01fSmrgm4_defun([_LT_PROG_FC], 67384642e01fSmrg[ 67394642e01fSmrgpushdef([AC_MSG_ERROR], [_lt_disable_FC=yes]) 67404642e01fSmrgAC_PROG_FC 67414642e01fSmrgif test -z "$FC" || test "X$FC" = "Xno"; then 67424642e01fSmrg _lt_disable_FC=yes 67434642e01fSmrgfi 67444642e01fSmrgpopdef([AC_MSG_ERROR]) 67454642e01fSmrg])# _LT_PROG_FC 674605b261ecSmrg 67474642e01fSmrgdnl aclocal-1.4 backwards compatibility: 67484642e01fSmrgdnl AC_DEFUN([_LT_PROG_FC], []) 674905b261ecSmrg 675005b261ecSmrg 67514642e01fSmrg# _LT_LANG_FC_CONFIG([TAG]) 67524642e01fSmrg# ------------------------- 67534642e01fSmrg# Ensure that the configuration variables for a Fortran compiler are 67544642e01fSmrg# suitably defined. These variables are subsequently used by _LT_CONFIG 67554642e01fSmrg# to write the compiler configuration to `libtool'. 67564642e01fSmrgm4_defun([_LT_LANG_FC_CONFIG], 67574642e01fSmrg[AC_REQUIRE([_LT_PROG_FC])dnl 67584642e01fSmrgAC_LANG_PUSH(Fortran) 67594642e01fSmrg 67604642e01fSmrg_LT_TAGVAR(archive_cmds_need_lc, $1)=no 67614642e01fSmrg_LT_TAGVAR(allow_undefined_flag, $1)= 67624642e01fSmrg_LT_TAGVAR(always_export_symbols, $1)=no 67634642e01fSmrg_LT_TAGVAR(archive_expsym_cmds, $1)= 67644642e01fSmrg_LT_TAGVAR(export_dynamic_flag_spec, $1)= 67654642e01fSmrg_LT_TAGVAR(hardcode_direct, $1)=no 67664642e01fSmrg_LT_TAGVAR(hardcode_direct_absolute, $1)=no 67674642e01fSmrg_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 67684642e01fSmrg_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 67694642e01fSmrg_LT_TAGVAR(hardcode_libdir_separator, $1)= 67704642e01fSmrg_LT_TAGVAR(hardcode_minus_L, $1)=no 67714642e01fSmrg_LT_TAGVAR(hardcode_automatic, $1)=no 67724642e01fSmrg_LT_TAGVAR(inherit_rpath, $1)=no 67734642e01fSmrg_LT_TAGVAR(module_cmds, $1)= 67744642e01fSmrg_LT_TAGVAR(module_expsym_cmds, $1)= 67754642e01fSmrg_LT_TAGVAR(link_all_deplibs, $1)=unknown 67764642e01fSmrg_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 67774642e01fSmrg_LT_TAGVAR(no_undefined_flag, $1)= 67784642e01fSmrg_LT_TAGVAR(whole_archive_flag_spec, $1)= 67794642e01fSmrg_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 67804642e01fSmrg 67814642e01fSmrg# Source file extension for fc test sources. 67824642e01fSmrgac_ext=${ac_fc_srcext-f} 67834642e01fSmrg 67844642e01fSmrg# Object file extension for compiled fc test sources. 67854642e01fSmrgobjext=o 67864642e01fSmrg_LT_TAGVAR(objext, $1)=$objext 67874642e01fSmrg 67884642e01fSmrg# No sense in running all these tests if we already determined that 67894642e01fSmrg# the FC compiler isn't working. Some variables (like enable_shared) 67904642e01fSmrg# are currently assumed to apply to all compilers on this platform, 67914642e01fSmrg# and will be corrupted by setting them based on a non-working compiler. 67924642e01fSmrgif test "$_lt_disable_FC" != yes; then 67934642e01fSmrg # Code to be used in simple compile tests 67944642e01fSmrg lt_simple_compile_test_code="\ 67954642e01fSmrg subroutine t 67964642e01fSmrg return 67974642e01fSmrg end 67984642e01fSmrg" 679905b261ecSmrg 68004642e01fSmrg # Code to be used in simple link tests 68014642e01fSmrg lt_simple_link_test_code="\ 68024642e01fSmrg program t 68034642e01fSmrg end 68044642e01fSmrg" 680505b261ecSmrg 68064642e01fSmrg # ltmain only uses $CC for tagged configurations so make sure $CC is set. 68074642e01fSmrg _LT_TAG_COMPILER 680805b261ecSmrg 68094642e01fSmrg # save warnings/boilerplate of simple test code 68104642e01fSmrg _LT_COMPILER_BOILERPLATE 68114642e01fSmrg _LT_LINKER_BOILERPLATE 681205b261ecSmrg 68134642e01fSmrg # Allow CC to be a program name with arguments. 68144642e01fSmrg lt_save_CC="$CC" 68154642e01fSmrg lt_save_GCC=$GCC 68164642e01fSmrg CC=${FC-"f95"} 68174642e01fSmrg compiler=$CC 68184642e01fSmrg GCC=$ac_cv_fc_compiler_gnu 681905b261ecSmrg 68204642e01fSmrg _LT_TAGVAR(compiler, $1)=$CC 68214642e01fSmrg _LT_CC_BASENAME([$compiler]) 682205b261ecSmrg 68234642e01fSmrg if test -n "$compiler"; then 68244642e01fSmrg AC_MSG_CHECKING([if libtool supports shared libraries]) 68254642e01fSmrg AC_MSG_RESULT([$can_build_shared]) 682605b261ecSmrg 68274642e01fSmrg AC_MSG_CHECKING([whether to build shared libraries]) 68284642e01fSmrg test "$can_build_shared" = "no" && enable_shared=no 682905b261ecSmrg 68304642e01fSmrg # On AIX, shared libraries and static libraries use the same namespace, and 68314642e01fSmrg # are all built from PIC. 68324642e01fSmrg case $host_os in 68334642e01fSmrg aix3*) 68344642e01fSmrg test "$enable_shared" = yes && enable_static=no 68354642e01fSmrg if test -n "$RANLIB"; then 68364642e01fSmrg archive_cmds="$archive_cmds~\$RANLIB \$lib" 68374642e01fSmrg postinstall_cmds='$RANLIB $lib' 68384642e01fSmrg fi 68394642e01fSmrg ;; 68404642e01fSmrg aix[[4-9]]*) 68414642e01fSmrg if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 68424642e01fSmrg test "$enable_shared" = yes && enable_static=no 68434642e01fSmrg fi 68444642e01fSmrg ;; 68454642e01fSmrg esac 68464642e01fSmrg AC_MSG_RESULT([$enable_shared]) 68474642e01fSmrg 68484642e01fSmrg AC_MSG_CHECKING([whether to build static libraries]) 68494642e01fSmrg # Make sure either enable_shared or enable_static is yes. 68504642e01fSmrg test "$enable_shared" = yes || enable_static=yes 68514642e01fSmrg AC_MSG_RESULT([$enable_static]) 68524642e01fSmrg 68534642e01fSmrg _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu" 68544642e01fSmrg _LT_TAGVAR(LD, $1)="$LD" 68554642e01fSmrg 68564642e01fSmrg ## CAVEAT EMPTOR: 68574642e01fSmrg ## There is no encapsulation within the following macros, do not change 68584642e01fSmrg ## the running order or otherwise move them around unless you know exactly 68594642e01fSmrg ## what you are doing... 68604642e01fSmrg _LT_SYS_HIDDEN_LIBDEPS($1) 68614642e01fSmrg _LT_COMPILER_PIC($1) 68624642e01fSmrg _LT_COMPILER_C_O($1) 68634642e01fSmrg _LT_COMPILER_FILE_LOCKS($1) 68644642e01fSmrg _LT_LINKER_SHLIBS($1) 68654642e01fSmrg _LT_SYS_DYNAMIC_LINKER($1) 68664642e01fSmrg _LT_LINKER_HARDCODE_LIBPATH($1) 68674642e01fSmrg 68684642e01fSmrg _LT_CONFIG($1) 68694642e01fSmrg fi # test -n "$compiler" 68704642e01fSmrg 68714642e01fSmrg GCC=$lt_save_GCC 68724642e01fSmrg CC="$lt_save_CC" 68734642e01fSmrgfi # test "$_lt_disable_FC" != yes 687405b261ecSmrg 68754642e01fSmrgAC_LANG_POP 68764642e01fSmrg])# _LT_LANG_FC_CONFIG 687705b261ecSmrg 687805b261ecSmrg 68794642e01fSmrg# _LT_LANG_GCJ_CONFIG([TAG]) 68804642e01fSmrg# -------------------------- 68814642e01fSmrg# Ensure that the configuration variables for the GNU Java Compiler compiler 68824642e01fSmrg# are suitably defined. These variables are subsequently used by _LT_CONFIG 68834642e01fSmrg# to write the compiler configuration to `libtool'. 68844642e01fSmrgm4_defun([_LT_LANG_GCJ_CONFIG], 68854642e01fSmrg[AC_REQUIRE([LT_PROG_GCJ])dnl 68864642e01fSmrgAC_LANG_SAVE 688705b261ecSmrg 68884642e01fSmrg# Source file extension for Java test sources. 68894642e01fSmrgac_ext=java 689005b261ecSmrg 68914642e01fSmrg# Object file extension for compiled Java test sources. 68924642e01fSmrgobjext=o 68934642e01fSmrg_LT_TAGVAR(objext, $1)=$objext 689405b261ecSmrg 68954642e01fSmrg# Code to be used in simple compile tests 68964642e01fSmrglt_simple_compile_test_code="class foo {}" 689705b261ecSmrg 68984642e01fSmrg# Code to be used in simple link tests 68994642e01fSmrglt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' 690005b261ecSmrg 69014642e01fSmrg# ltmain only uses $CC for tagged configurations so make sure $CC is set. 69024642e01fSmrg_LT_TAG_COMPILER 690305b261ecSmrg 69044642e01fSmrg# save warnings/boilerplate of simple test code 69054642e01fSmrg_LT_COMPILER_BOILERPLATE 69064642e01fSmrg_LT_LINKER_BOILERPLATE 690705b261ecSmrg 69084642e01fSmrg# Allow CC to be a program name with arguments. 69094642e01fSmrglt_save_CC="$CC" 69104642e01fSmrglt_save_GCC=$GCC 69114642e01fSmrgGCC=yes 69124642e01fSmrgCC=${GCJ-"gcj"} 69134642e01fSmrgcompiler=$CC 69144642e01fSmrg_LT_TAGVAR(compiler, $1)=$CC 69154642e01fSmrg_LT_TAGVAR(LD, $1)="$LD" 69164642e01fSmrg_LT_CC_BASENAME([$compiler]) 691705b261ecSmrg 69184642e01fSmrg# GCJ did not exist at the time GCC didn't implicitly link libc in. 69194642e01fSmrg_LT_TAGVAR(archive_cmds_need_lc, $1)=no 692005b261ecSmrg 69214642e01fSmrg_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 692205b261ecSmrg 69234642e01fSmrgif test -n "$compiler"; then 69244642e01fSmrg _LT_COMPILER_NO_RTTI($1) 69254642e01fSmrg _LT_COMPILER_PIC($1) 69264642e01fSmrg _LT_COMPILER_C_O($1) 69274642e01fSmrg _LT_COMPILER_FILE_LOCKS($1) 69284642e01fSmrg _LT_LINKER_SHLIBS($1) 69294642e01fSmrg _LT_LINKER_HARDCODE_LIBPATH($1) 693005b261ecSmrg 69314642e01fSmrg _LT_CONFIG($1) 69324642e01fSmrgfi 693305b261ecSmrg 69344642e01fSmrgAC_LANG_RESTORE 693505b261ecSmrg 69364642e01fSmrgGCC=$lt_save_GCC 69374642e01fSmrgCC="$lt_save_CC" 69384642e01fSmrg])# _LT_LANG_GCJ_CONFIG 693905b261ecSmrg 694005b261ecSmrg 69414642e01fSmrg# _LT_LANG_RC_CONFIG([TAG]) 69424642e01fSmrg# ------------------------- 69434642e01fSmrg# Ensure that the configuration variables for the Windows resource compiler 69444642e01fSmrg# are suitably defined. These variables are subsequently used by _LT_CONFIG 69454642e01fSmrg# to write the compiler configuration to `libtool'. 69464642e01fSmrgm4_defun([_LT_LANG_RC_CONFIG], 69474642e01fSmrg[AC_REQUIRE([LT_PROG_RC])dnl 69484642e01fSmrgAC_LANG_SAVE 694905b261ecSmrg 69504642e01fSmrg# Source file extension for RC test sources. 69514642e01fSmrgac_ext=rc 695205b261ecSmrg 69534642e01fSmrg# Object file extension for compiled RC test sources. 69544642e01fSmrgobjext=o 69554642e01fSmrg_LT_TAGVAR(objext, $1)=$objext 695605b261ecSmrg 69574642e01fSmrg# Code to be used in simple compile tests 69584642e01fSmrglt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 695905b261ecSmrg 69604642e01fSmrg# Code to be used in simple link tests 69614642e01fSmrglt_simple_link_test_code="$lt_simple_compile_test_code" 696205b261ecSmrg 69634642e01fSmrg# ltmain only uses $CC for tagged configurations so make sure $CC is set. 69644642e01fSmrg_LT_TAG_COMPILER 696505b261ecSmrg 69664642e01fSmrg# save warnings/boilerplate of simple test code 69674642e01fSmrg_LT_COMPILER_BOILERPLATE 69684642e01fSmrg_LT_LINKER_BOILERPLATE 696905b261ecSmrg 69704642e01fSmrg# Allow CC to be a program name with arguments. 69714642e01fSmrglt_save_CC="$CC" 69724642e01fSmrglt_save_GCC=$GCC 69734642e01fSmrgGCC= 69744642e01fSmrgCC=${RC-"windres"} 69754642e01fSmrgcompiler=$CC 69764642e01fSmrg_LT_TAGVAR(compiler, $1)=$CC 69774642e01fSmrg_LT_CC_BASENAME([$compiler]) 69784642e01fSmrg_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 697905b261ecSmrg 69804642e01fSmrgif test -n "$compiler"; then 69814642e01fSmrg : 69824642e01fSmrg _LT_CONFIG($1) 69834642e01fSmrgfi 698405b261ecSmrg 69854642e01fSmrgGCC=$lt_save_GCC 69864642e01fSmrgAC_LANG_RESTORE 69874642e01fSmrgCC="$lt_save_CC" 69884642e01fSmrg])# _LT_LANG_RC_CONFIG 698905b261ecSmrg 699005b261ecSmrg 69914642e01fSmrg# LT_PROG_GCJ 69924642e01fSmrg# ----------- 69934642e01fSmrgAC_DEFUN([LT_PROG_GCJ], 69944642e01fSmrg[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], 69954642e01fSmrg [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], 69964642e01fSmrg [AC_CHECK_TOOL(GCJ, gcj,) 69974642e01fSmrg test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" 69984642e01fSmrg AC_SUBST(GCJFLAGS)])])[]dnl 69994642e01fSmrg]) 700005b261ecSmrg 70014642e01fSmrg# Old name: 70024642e01fSmrgAU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) 70034642e01fSmrgdnl aclocal-1.4 backwards compatibility: 70044642e01fSmrgdnl AC_DEFUN([LT_AC_PROG_GCJ], []) 700505b261ecSmrg 700605b261ecSmrg 70074642e01fSmrg# LT_PROG_RC 70084642e01fSmrg# ---------- 70094642e01fSmrgAC_DEFUN([LT_PROG_RC], 70104642e01fSmrg[AC_CHECK_TOOL(RC, windres,) 70114642e01fSmrg]) 701205b261ecSmrg 70134642e01fSmrg# Old name: 70144642e01fSmrgAU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) 70154642e01fSmrgdnl aclocal-1.4 backwards compatibility: 70164642e01fSmrgdnl AC_DEFUN([LT_AC_PROG_RC], []) 701705b261ecSmrg 701805b261ecSmrg 70194642e01fSmrg# _LT_DECL_EGREP 70204642e01fSmrg# -------------- 70214642e01fSmrg# If we don't have a new enough Autoconf to choose the best grep 70224642e01fSmrg# available, choose the one first in the user's PATH. 70234642e01fSmrgm4_defun([_LT_DECL_EGREP], 70244642e01fSmrg[AC_REQUIRE([AC_PROG_EGREP])dnl 70254642e01fSmrgAC_REQUIRE([AC_PROG_FGREP])dnl 70264642e01fSmrgtest -z "$GREP" && GREP=grep 70274642e01fSmrg_LT_DECL([], [GREP], [1], [A grep program that handles long lines]) 70284642e01fSmrg_LT_DECL([], [EGREP], [1], [An ERE matcher]) 70294642e01fSmrg_LT_DECL([], [FGREP], [1], [A literal string matcher]) 70304642e01fSmrgdnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too 70314642e01fSmrgAC_SUBST([GREP]) 703205b261ecSmrg]) 703305b261ecSmrg 703405b261ecSmrg 70354642e01fSmrg# _LT_DECL_OBJDUMP 70364642e01fSmrg# -------------- 70374642e01fSmrg# If we don't have a new enough Autoconf to choose the best objdump 70384642e01fSmrg# available, choose the one first in the user's PATH. 70394642e01fSmrgm4_defun([_LT_DECL_OBJDUMP], 70404642e01fSmrg[AC_CHECK_TOOL(OBJDUMP, objdump, false) 70414642e01fSmrgtest -z "$OBJDUMP" && OBJDUMP=objdump 70424642e01fSmrg_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) 70434642e01fSmrgAC_SUBST([OBJDUMP]) 704405b261ecSmrg]) 704505b261ecSmrg 704605b261ecSmrg 70474642e01fSmrg# _LT_DECL_SED 70484642e01fSmrg# ------------ 70494642e01fSmrg# Check for a fully-functional sed program, that truncates 70504642e01fSmrg# as few characters as possible. Prefer GNU sed if found. 70514642e01fSmrgm4_defun([_LT_DECL_SED], 70524642e01fSmrg[AC_PROG_SED 70534642e01fSmrgtest -z "$SED" && SED=sed 70544642e01fSmrgXsed="$SED -e 1s/^X//" 70554642e01fSmrg_LT_DECL([], [SED], [1], [A sed program that does not truncate output]) 70564642e01fSmrg_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], 70574642e01fSmrg [Sed that helps us avoid accidentally triggering echo(1) options like -n]) 70584642e01fSmrg])# _LT_DECL_SED 705905b261ecSmrg 70604642e01fSmrgm4_ifndef([AC_PROG_SED], [ 706105b261ecSmrg# NOTE: This macro has been submitted for inclusion into # 706205b261ecSmrg# GNU Autoconf as AC_PROG_SED. When it is available in # 706305b261ecSmrg# a released version of Autoconf we should remove this # 706405b261ecSmrg# macro and use it instead. # 70654642e01fSmrg 70664642e01fSmrgm4_defun([AC_PROG_SED], 706705b261ecSmrg[AC_MSG_CHECKING([for a sed that does not truncate output]) 706805b261ecSmrgAC_CACHE_VAL(lt_cv_path_SED, 706905b261ecSmrg[# Loop through the user's path and test for sed and gsed. 707005b261ecSmrg# Then use that list of sed's as ones to test for truncation. 707105b261ecSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 707205b261ecSmrgfor as_dir in $PATH 707305b261ecSmrgdo 707405b261ecSmrg IFS=$as_save_IFS 707505b261ecSmrg test -z "$as_dir" && as_dir=. 707605b261ecSmrg for lt_ac_prog in sed gsed; do 707705b261ecSmrg for ac_exec_ext in '' $ac_executable_extensions; do 70784642e01fSmrg if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 707905b261ecSmrg lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 708005b261ecSmrg fi 708105b261ecSmrg done 708205b261ecSmrg done 708305b261ecSmrgdone 708405b261ecSmrgIFS=$as_save_IFS 708505b261ecSmrglt_ac_max=0 708605b261ecSmrglt_ac_count=0 708705b261ecSmrg# Add /usr/xpg4/bin/sed as it is typically found on Solaris 708805b261ecSmrg# along with /bin/sed that truncates output. 708905b261ecSmrgfor lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 709005b261ecSmrg test ! -f $lt_ac_sed && continue 709105b261ecSmrg cat /dev/null > conftest.in 709205b261ecSmrg lt_ac_count=0 709305b261ecSmrg echo $ECHO_N "0123456789$ECHO_C" >conftest.in 709405b261ecSmrg # Check for GNU sed and select it if it is found. 709505b261ecSmrg if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 709605b261ecSmrg lt_cv_path_SED=$lt_ac_sed 709705b261ecSmrg break 709805b261ecSmrg fi 709905b261ecSmrg while true; do 710005b261ecSmrg cat conftest.in conftest.in >conftest.tmp 710105b261ecSmrg mv conftest.tmp conftest.in 710205b261ecSmrg cp conftest.in conftest.nl 710305b261ecSmrg echo >>conftest.nl 710405b261ecSmrg $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 710505b261ecSmrg cmp -s conftest.out conftest.nl || break 710605b261ecSmrg # 10000 chars as input seems more than enough 710705b261ecSmrg test $lt_ac_count -gt 10 && break 710805b261ecSmrg lt_ac_count=`expr $lt_ac_count + 1` 710905b261ecSmrg if test $lt_ac_count -gt $lt_ac_max; then 711005b261ecSmrg lt_ac_max=$lt_ac_count 711105b261ecSmrg lt_cv_path_SED=$lt_ac_sed 711205b261ecSmrg fi 711305b261ecSmrg done 711405b261ecSmrgdone 711505b261ecSmrg]) 711605b261ecSmrgSED=$lt_cv_path_SED 711705b261ecSmrgAC_SUBST([SED]) 711805b261ecSmrgAC_MSG_RESULT([$SED]) 71194642e01fSmrg])#AC_PROG_SED 71204642e01fSmrg])#m4_ifndef 712105b261ecSmrg 71224642e01fSmrg# Old name: 71234642e01fSmrgAU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) 71244642e01fSmrgdnl aclocal-1.4 backwards compatibility: 71254642e01fSmrgdnl AC_DEFUN([LT_AC_PROG_SED], []) 712605b261ecSmrg 71274642e01fSmrg 71284642e01fSmrg# _LT_CHECK_SHELL_FEATURES 71294642e01fSmrg# ------------------------ 71304642e01fSmrg# Find out whether the shell is Bourne or XSI compatible, 71314642e01fSmrg# or has some other useful features. 71324642e01fSmrgm4_defun([_LT_CHECK_SHELL_FEATURES], 71334642e01fSmrg[AC_MSG_CHECKING([whether the shell understands some XSI constructs]) 71344642e01fSmrg# Try some XSI features 71354642e01fSmrgxsi_shell=no 71364642e01fSmrg( _lt_dummy="a/b/c" 71374642e01fSmrg test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 71384642e01fSmrg = c,a/b,, \ 71394642e01fSmrg && eval 'test $(( 1 + 1 )) -eq 2 \ 71404642e01fSmrg && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 71414642e01fSmrg && xsi_shell=yes 71424642e01fSmrgAC_MSG_RESULT([$xsi_shell]) 71434642e01fSmrg_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell']) 71444642e01fSmrg 71454642e01fSmrgAC_MSG_CHECKING([whether the shell understands "+="]) 71464642e01fSmrglt_shell_append=no 71474642e01fSmrg( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \ 71484642e01fSmrg >/dev/null 2>&1 \ 71494642e01fSmrg && lt_shell_append=yes 71504642e01fSmrgAC_MSG_RESULT([$lt_shell_append]) 71514642e01fSmrg_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append']) 71524642e01fSmrg 71534642e01fSmrgif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 71544642e01fSmrg lt_unset=unset 71554642e01fSmrgelse 71564642e01fSmrg lt_unset=false 715705b261ecSmrgfi 71584642e01fSmrg_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl 71594642e01fSmrg 71604642e01fSmrg# test EBCDIC or ASCII 71614642e01fSmrgcase `echo X|tr X '\101'` in 71624642e01fSmrg A) # ASCII based system 71634642e01fSmrg # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 71644642e01fSmrg lt_SP2NL='tr \040 \012' 71654642e01fSmrg lt_NL2SP='tr \015\012 \040\040' 71664642e01fSmrg ;; 71674642e01fSmrg *) # EBCDIC based system 71684642e01fSmrg lt_SP2NL='tr \100 \n' 71694642e01fSmrg lt_NL2SP='tr \r\n \100\100' 71704642e01fSmrg ;; 71714642e01fSmrgesac 71724642e01fSmrg_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl 71734642e01fSmrg_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl 71744642e01fSmrg])# _LT_CHECK_SHELL_FEATURES 717505b261ecSmrg 717605b261ecSmrg 71774642e01fSmrg# _LT_PROG_XSI_SHELLFNS 71784642e01fSmrg# --------------------- 71794642e01fSmrg# Bourne and XSI compatible variants of some useful shell functions. 71804642e01fSmrgm4_defun([_LT_PROG_XSI_SHELLFNS], 71814642e01fSmrg[case $xsi_shell in 71824642e01fSmrg yes) 71834642e01fSmrg cat << \_LT_EOF >> "$cfgfile" 71844642e01fSmrg 71854642e01fSmrg# func_dirname file append nondir_replacement 71864642e01fSmrg# Compute the dirname of FILE. If nonempty, add APPEND to the result, 71874642e01fSmrg# otherwise set result to NONDIR_REPLACEMENT. 71884642e01fSmrgfunc_dirname () 71894642e01fSmrg{ 71904642e01fSmrg case ${1} in 71914642e01fSmrg */*) func_dirname_result="${1%/*}${2}" ;; 71924642e01fSmrg * ) func_dirname_result="${3}" ;; 71934642e01fSmrg esac 71944642e01fSmrg} 719505b261ecSmrg 71964642e01fSmrg# func_basename file 71974642e01fSmrgfunc_basename () 71984642e01fSmrg{ 71994642e01fSmrg func_basename_result="${1##*/}" 72004642e01fSmrg} 720105b261ecSmrg 72024642e01fSmrg# func_dirname_and_basename file append nondir_replacement 72034642e01fSmrg# perform func_basename and func_dirname in a single function 72044642e01fSmrg# call: 72054642e01fSmrg# dirname: Compute the dirname of FILE. If nonempty, 72064642e01fSmrg# add APPEND to the result, otherwise set result 72074642e01fSmrg# to NONDIR_REPLACEMENT. 72084642e01fSmrg# value returned in "$func_dirname_result" 72094642e01fSmrg# basename: Compute filename of FILE. 72104642e01fSmrg# value retuned in "$func_basename_result" 72114642e01fSmrg# Implementation must be kept synchronized with func_dirname 72124642e01fSmrg# and func_basename. For efficiency, we do not delegate to 72134642e01fSmrg# those functions but instead duplicate the functionality here. 72144642e01fSmrgfunc_dirname_and_basename () 72154642e01fSmrg{ 72164642e01fSmrg case ${1} in 72174642e01fSmrg */*) func_dirname_result="${1%/*}${2}" ;; 72184642e01fSmrg * ) func_dirname_result="${3}" ;; 72194642e01fSmrg esac 72204642e01fSmrg func_basename_result="${1##*/}" 72214642e01fSmrg} 722205b261ecSmrg 72234642e01fSmrg# func_stripname prefix suffix name 72244642e01fSmrg# strip PREFIX and SUFFIX off of NAME. 72254642e01fSmrg# PREFIX and SUFFIX must not contain globbing or regex special 72264642e01fSmrg# characters, hashes, percent signs, but SUFFIX may contain a leading 72274642e01fSmrg# dot (in which case that matches only a dot). 72284642e01fSmrgfunc_stripname () 72294642e01fSmrg{ 72304642e01fSmrg # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 72314642e01fSmrg # positional parameters, so assign one to ordinary parameter first. 72324642e01fSmrg func_stripname_result=${3} 72334642e01fSmrg func_stripname_result=${func_stripname_result#"${1}"} 72344642e01fSmrg func_stripname_result=${func_stripname_result%"${2}"} 72354642e01fSmrg} 723605b261ecSmrg 72374642e01fSmrg# func_opt_split 72384642e01fSmrgfunc_opt_split () 72394642e01fSmrg{ 72404642e01fSmrg func_opt_split_opt=${1%%=*} 72414642e01fSmrg func_opt_split_arg=${1#*=} 72424642e01fSmrg} 724305b261ecSmrg 72444642e01fSmrg# func_lo2o object 72454642e01fSmrgfunc_lo2o () 72464642e01fSmrg{ 72474642e01fSmrg case ${1} in 72484642e01fSmrg *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 72494642e01fSmrg *) func_lo2o_result=${1} ;; 72504642e01fSmrg esac 72514642e01fSmrg} 725205b261ecSmrg 72534642e01fSmrg# func_xform libobj-or-source 72544642e01fSmrgfunc_xform () 72554642e01fSmrg{ 72564642e01fSmrg func_xform_result=${1%.*}.lo 72574642e01fSmrg} 725805b261ecSmrg 72594642e01fSmrg# func_arith arithmetic-term... 72604642e01fSmrgfunc_arith () 72614642e01fSmrg{ 72624642e01fSmrg func_arith_result=$(( $[*] )) 72634642e01fSmrg} 726405b261ecSmrg 72654642e01fSmrg# func_len string 72664642e01fSmrg# STRING may not start with a hyphen. 72674642e01fSmrgfunc_len () 72684642e01fSmrg{ 72694642e01fSmrg func_len_result=${#1} 72704642e01fSmrg} 727105b261ecSmrg 72724642e01fSmrg_LT_EOF 72734642e01fSmrg ;; 72744642e01fSmrg *) # Bourne compatible functions. 72754642e01fSmrg cat << \_LT_EOF >> "$cfgfile" 727605b261ecSmrg 72774642e01fSmrg# func_dirname file append nondir_replacement 72784642e01fSmrg# Compute the dirname of FILE. If nonempty, add APPEND to the result, 72794642e01fSmrg# otherwise set result to NONDIR_REPLACEMENT. 72804642e01fSmrgfunc_dirname () 72814642e01fSmrg{ 72824642e01fSmrg # Extract subdirectory from the argument. 72834642e01fSmrg func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 72844642e01fSmrg if test "X$func_dirname_result" = "X${1}"; then 72854642e01fSmrg func_dirname_result="${3}" 72864642e01fSmrg else 72874642e01fSmrg func_dirname_result="$func_dirname_result${2}" 72884642e01fSmrg fi 72894642e01fSmrg} 729005b261ecSmrg 72914642e01fSmrg# func_basename file 72924642e01fSmrgfunc_basename () 72934642e01fSmrg{ 72944642e01fSmrg func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 72954642e01fSmrg} 729605b261ecSmrg 72974642e01fSmrgdnl func_dirname_and_basename 72984642e01fSmrgdnl A portable version of this function is already defined in general.m4sh 72994642e01fSmrgdnl so there is no need for it here. 73004642e01fSmrg 73014642e01fSmrg# func_stripname prefix suffix name 73024642e01fSmrg# strip PREFIX and SUFFIX off of NAME. 73034642e01fSmrg# PREFIX and SUFFIX must not contain globbing or regex special 73044642e01fSmrg# characters, hashes, percent signs, but SUFFIX may contain a leading 73054642e01fSmrg# dot (in which case that matches only a dot). 73064642e01fSmrg# func_strip_suffix prefix name 73074642e01fSmrgfunc_stripname () 73084642e01fSmrg{ 73094642e01fSmrg case ${2} in 73104642e01fSmrg .*) func_stripname_result=`$ECHO "X${3}" \ 73114642e01fSmrg | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 73124642e01fSmrg *) func_stripname_result=`$ECHO "X${3}" \ 73134642e01fSmrg | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 73144642e01fSmrg esac 73154642e01fSmrg} 731605b261ecSmrg 73174642e01fSmrg# sed scripts: 73184642e01fSmrgmy_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q' 73194642e01fSmrgmy_sed_long_arg='1s/^-[[^=]]*=//' 732005b261ecSmrg 73214642e01fSmrg# func_opt_split 73224642e01fSmrgfunc_opt_split () 73234642e01fSmrg{ 73244642e01fSmrg func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 73254642e01fSmrg func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 73264642e01fSmrg} 732705b261ecSmrg 73284642e01fSmrg# func_lo2o object 73294642e01fSmrgfunc_lo2o () 73304642e01fSmrg{ 73314642e01fSmrg func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 73324642e01fSmrg} 733305b261ecSmrg 73344642e01fSmrg# func_xform libobj-or-source 73354642e01fSmrgfunc_xform () 73364642e01fSmrg{ 73374642e01fSmrg func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'` 73384642e01fSmrg} 73394642e01fSmrg 73404642e01fSmrg# func_arith arithmetic-term... 73414642e01fSmrgfunc_arith () 73424642e01fSmrg{ 73434642e01fSmrg func_arith_result=`expr "$[@]"` 73444642e01fSmrg} 73454642e01fSmrg 73464642e01fSmrg# func_len string 73474642e01fSmrg# STRING may not start with a hyphen. 73484642e01fSmrgfunc_len () 73494642e01fSmrg{ 73504642e01fSmrg func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len` 73514642e01fSmrg} 73524642e01fSmrg 73534642e01fSmrg_LT_EOF 73544642e01fSmrgesac 73554642e01fSmrg 73564642e01fSmrgcase $lt_shell_append in 73574642e01fSmrg yes) 73584642e01fSmrg cat << \_LT_EOF >> "$cfgfile" 73594642e01fSmrg 73604642e01fSmrg# func_append var value 73614642e01fSmrg# Append VALUE to the end of shell variable VAR. 73624642e01fSmrgfunc_append () 73634642e01fSmrg{ 73644642e01fSmrg eval "$[1]+=\$[2]" 73654642e01fSmrg} 73664642e01fSmrg_LT_EOF 73674642e01fSmrg ;; 73684642e01fSmrg *) 73694642e01fSmrg cat << \_LT_EOF >> "$cfgfile" 73704642e01fSmrg 73714642e01fSmrg# func_append var value 73724642e01fSmrg# Append VALUE to the end of shell variable VAR. 73734642e01fSmrgfunc_append () 73744642e01fSmrg{ 73754642e01fSmrg eval "$[1]=\$$[1]\$[2]" 73764642e01fSmrg} 73774642e01fSmrg 73784642e01fSmrg_LT_EOF 73794642e01fSmrg ;; 73804642e01fSmrg esac 73814642e01fSmrg]) 73824642e01fSmrg 73834642e01fSmrg# Helper functions for option handling. -*- Autoconf -*- 738405b261ecSmrg# 73854642e01fSmrg# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. 73864642e01fSmrg# Written by Gary V. Vaughan, 2004 738705b261ecSmrg# 73884642e01fSmrg# This file is free software; the Free Software Foundation gives 73894642e01fSmrg# unlimited permission to copy and/or distribute it, with or without 73904642e01fSmrg# modifications, as long as this notice is preserved. 739105b261ecSmrg 73924642e01fSmrg# serial 6 ltoptions.m4 739305b261ecSmrg 73944642e01fSmrg# This is to help aclocal find these macros, as it can't see m4_define. 73954642e01fSmrgAC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) 739605b261ecSmrg 739705b261ecSmrg 73984642e01fSmrg# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) 73994642e01fSmrg# ------------------------------------------ 74004642e01fSmrgm4_define([_LT_MANGLE_OPTION], 74014642e01fSmrg[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) 740205b261ecSmrg 740305b261ecSmrg 74044642e01fSmrg# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) 74054642e01fSmrg# --------------------------------------- 74064642e01fSmrg# Set option OPTION-NAME for macro MACRO-NAME, and if there is a 74074642e01fSmrg# matching handler defined, dispatch to it. Other OPTION-NAMEs are 74084642e01fSmrg# saved as a flag. 74094642e01fSmrgm4_define([_LT_SET_OPTION], 74104642e01fSmrg[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl 74114642e01fSmrgm4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), 74124642e01fSmrg _LT_MANGLE_DEFUN([$1], [$2]), 74134642e01fSmrg [m4_warning([Unknown $1 option `$2'])])[]dnl 74144642e01fSmrg]) 741505b261ecSmrg 741605b261ecSmrg 74174642e01fSmrg# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) 74184642e01fSmrg# ------------------------------------------------------------ 74194642e01fSmrg# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 74204642e01fSmrgm4_define([_LT_IF_OPTION], 74214642e01fSmrg[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) 74224642e01fSmrg 74234642e01fSmrg 74244642e01fSmrg# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) 74254642e01fSmrg# ------------------------------------------------------- 74264642e01fSmrg# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME 74274642e01fSmrg# are set. 74284642e01fSmrgm4_define([_LT_UNLESS_OPTIONS], 74294642e01fSmrg[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), 74304642e01fSmrg [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), 74314642e01fSmrg [m4_define([$0_found])])])[]dnl 74324642e01fSmrgm4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 74334642e01fSmrg])[]dnl 74344642e01fSmrg]) 743505b261ecSmrg 743605b261ecSmrg 74374642e01fSmrg# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) 74384642e01fSmrg# ---------------------------------------- 74394642e01fSmrg# OPTION-LIST is a space-separated list of Libtool options associated 74404642e01fSmrg# with MACRO-NAME. If any OPTION has a matching handler declared with 74414642e01fSmrg# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about 74424642e01fSmrg# the unknown option and exit. 74434642e01fSmrgm4_defun([_LT_SET_OPTIONS], 74444642e01fSmrg[# Set options 74454642e01fSmrgm4_foreach([_LT_Option], m4_split(m4_normalize([$2])), 74464642e01fSmrg [_LT_SET_OPTION([$1], _LT_Option)]) 74474642e01fSmrg 74484642e01fSmrgm4_if([$1],[LT_INIT],[ 74494642e01fSmrg dnl 74504642e01fSmrg dnl Simply set some default values (i.e off) if boolean options were not 74514642e01fSmrg dnl specified: 74524642e01fSmrg _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no 74534642e01fSmrg ]) 74544642e01fSmrg _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no 74554642e01fSmrg ]) 74564642e01fSmrg dnl 74574642e01fSmrg dnl If no reference was made to various pairs of opposing options, then 74584642e01fSmrg dnl we run the default mode handler for the pair. For example, if neither 74594642e01fSmrg dnl `shared' nor `disable-shared' was passed, we enable building of shared 74604642e01fSmrg dnl archives by default: 74614642e01fSmrg _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) 74624642e01fSmrg _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) 74634642e01fSmrg _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) 74644642e01fSmrg _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], 74654642e01fSmrg [_LT_ENABLE_FAST_INSTALL]) 74664642e01fSmrg ]) 74674642e01fSmrg])# _LT_SET_OPTIONS 746805b261ecSmrg 746905b261ecSmrg 747005b261ecSmrg 74714642e01fSmrg# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) 74724642e01fSmrg# ----------------------------------------- 74734642e01fSmrgm4_define([_LT_MANGLE_DEFUN], 74744642e01fSmrg[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) 747505b261ecSmrg 747605b261ecSmrg 74774642e01fSmrg# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) 74784642e01fSmrg# ----------------------------------------------- 74794642e01fSmrgm4_define([LT_OPTION_DEFINE], 74804642e01fSmrg[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl 74814642e01fSmrg])# LT_OPTION_DEFINE 748205b261ecSmrg 748305b261ecSmrg 74844642e01fSmrg# dlopen 74854642e01fSmrg# ------ 74864642e01fSmrgLT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes 74874642e01fSmrg]) 748805b261ecSmrg 74894642e01fSmrgAU_DEFUN([AC_LIBTOOL_DLOPEN], 74904642e01fSmrg[_LT_SET_OPTION([LT_INIT], [dlopen]) 74914642e01fSmrgAC_DIAGNOSE([obsolete], 74924642e01fSmrg[$0: Remove this warning and the call to _LT_SET_OPTION when you 74934642e01fSmrgput the `dlopen' option into LT_INIT's first parameter.]) 74944642e01fSmrg]) 749505b261ecSmrg 74964642e01fSmrgdnl aclocal-1.4 backwards compatibility: 74974642e01fSmrgdnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) 749805b261ecSmrg 749905b261ecSmrg 75004642e01fSmrg# win32-dll 75014642e01fSmrg# --------- 75024642e01fSmrg# Declare package support for building win32 dll's. 75034642e01fSmrgLT_OPTION_DEFINE([LT_INIT], [win32-dll], 75044642e01fSmrg[enable_win32_dll=yes 750505b261ecSmrg 75064642e01fSmrgcase $host in 75074642e01fSmrg*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*) 75084642e01fSmrg AC_CHECK_TOOL(AS, as, false) 75094642e01fSmrg AC_CHECK_TOOL(DLLTOOL, dlltool, false) 75104642e01fSmrg AC_CHECK_TOOL(OBJDUMP, objdump, false) 75114642e01fSmrg ;; 75124642e01fSmrgesac 751305b261ecSmrg 75144642e01fSmrgtest -z "$AS" && AS=as 75154642e01fSmrg_LT_DECL([], [AS], [0], [Assembler program])dnl 751605b261ecSmrg 75174642e01fSmrgtest -z "$DLLTOOL" && DLLTOOL=dlltool 75184642e01fSmrg_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl 751905b261ecSmrg 75204642e01fSmrgtest -z "$OBJDUMP" && OBJDUMP=objdump 75214642e01fSmrg_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl 75224642e01fSmrg])# win32-dll 752305b261ecSmrg 75244642e01fSmrgAU_DEFUN([AC_LIBTOOL_WIN32_DLL], 75254642e01fSmrg[AC_REQUIRE([AC_CANONICAL_HOST])dnl 75264642e01fSmrg_LT_SET_OPTION([LT_INIT], [win32-dll]) 75274642e01fSmrgAC_DIAGNOSE([obsolete], 75284642e01fSmrg[$0: Remove this warning and the call to _LT_SET_OPTION when you 75294642e01fSmrgput the `win32-dll' option into LT_INIT's first parameter.]) 75304642e01fSmrg]) 753105b261ecSmrg 75324642e01fSmrgdnl aclocal-1.4 backwards compatibility: 75334642e01fSmrgdnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) 753405b261ecSmrg 753505b261ecSmrg 75364642e01fSmrg# _LT_ENABLE_SHARED([DEFAULT]) 75374642e01fSmrg# ---------------------------- 75384642e01fSmrg# implement the --enable-shared flag, and supports the `shared' and 75394642e01fSmrg# `disable-shared' LT_INIT options. 75404642e01fSmrg# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 75414642e01fSmrgm4_define([_LT_ENABLE_SHARED], 75424642e01fSmrg[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl 75434642e01fSmrgAC_ARG_ENABLE([shared], 75444642e01fSmrg [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], 75454642e01fSmrg [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], 75464642e01fSmrg [p=${PACKAGE-default} 75474642e01fSmrg case $enableval in 75484642e01fSmrg yes) enable_shared=yes ;; 75494642e01fSmrg no) enable_shared=no ;; 75504642e01fSmrg *) 75514642e01fSmrg enable_shared=no 75524642e01fSmrg # Look at the argument we got. We use all the common list separators. 75534642e01fSmrg lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 75544642e01fSmrg for pkg in $enableval; do 75554642e01fSmrg IFS="$lt_save_ifs" 75564642e01fSmrg if test "X$pkg" = "X$p"; then 75574642e01fSmrg enable_shared=yes 75584642e01fSmrg fi 75594642e01fSmrg done 75604642e01fSmrg IFS="$lt_save_ifs" 75614642e01fSmrg ;; 75624642e01fSmrg esac], 75634642e01fSmrg [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) 756405b261ecSmrg 75654642e01fSmrg _LT_DECL([build_libtool_libs], [enable_shared], [0], 75664642e01fSmrg [Whether or not to build shared libraries]) 75674642e01fSmrg])# _LT_ENABLE_SHARED 756805b261ecSmrg 75694642e01fSmrgLT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) 75704642e01fSmrgLT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) 757105b261ecSmrg 75724642e01fSmrg# Old names: 75734642e01fSmrgAC_DEFUN([AC_ENABLE_SHARED], 75744642e01fSmrg[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) 75754642e01fSmrg]) 757605b261ecSmrg 75774642e01fSmrgAC_DEFUN([AC_DISABLE_SHARED], 75784642e01fSmrg[_LT_SET_OPTION([LT_INIT], [disable-shared]) 75794642e01fSmrg]) 758005b261ecSmrg 75814642e01fSmrgAU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) 75824642e01fSmrgAU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) 758305b261ecSmrg 75844642e01fSmrgdnl aclocal-1.4 backwards compatibility: 75854642e01fSmrgdnl AC_DEFUN([AM_ENABLE_SHARED], []) 75864642e01fSmrgdnl AC_DEFUN([AM_DISABLE_SHARED], []) 758705b261ecSmrg 758805b261ecSmrg 758905b261ecSmrg 75904642e01fSmrg# _LT_ENABLE_STATIC([DEFAULT]) 75914642e01fSmrg# ---------------------------- 75924642e01fSmrg# implement the --enable-static flag, and support the `static' and 75934642e01fSmrg# `disable-static' LT_INIT options. 75944642e01fSmrg# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 75954642e01fSmrgm4_define([_LT_ENABLE_STATIC], 75964642e01fSmrg[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl 75974642e01fSmrgAC_ARG_ENABLE([static], 75984642e01fSmrg [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], 75994642e01fSmrg [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], 76004642e01fSmrg [p=${PACKAGE-default} 76014642e01fSmrg case $enableval in 76024642e01fSmrg yes) enable_static=yes ;; 76034642e01fSmrg no) enable_static=no ;; 76044642e01fSmrg *) 76054642e01fSmrg enable_static=no 76064642e01fSmrg # Look at the argument we got. We use all the common list separators. 76074642e01fSmrg lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 76084642e01fSmrg for pkg in $enableval; do 76094642e01fSmrg IFS="$lt_save_ifs" 76104642e01fSmrg if test "X$pkg" = "X$p"; then 76114642e01fSmrg enable_static=yes 76124642e01fSmrg fi 76134642e01fSmrg done 76144642e01fSmrg IFS="$lt_save_ifs" 76154642e01fSmrg ;; 76164642e01fSmrg esac], 76174642e01fSmrg [enable_static=]_LT_ENABLE_STATIC_DEFAULT) 761805b261ecSmrg 76194642e01fSmrg _LT_DECL([build_old_libs], [enable_static], [0], 76204642e01fSmrg [Whether or not to build static libraries]) 76214642e01fSmrg])# _LT_ENABLE_STATIC 762205b261ecSmrg 76234642e01fSmrgLT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) 76244642e01fSmrgLT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) 762505b261ecSmrg 76264642e01fSmrg# Old names: 76274642e01fSmrgAC_DEFUN([AC_ENABLE_STATIC], 76284642e01fSmrg[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) 76294642e01fSmrg]) 763005b261ecSmrg 76314642e01fSmrgAC_DEFUN([AC_DISABLE_STATIC], 76324642e01fSmrg[_LT_SET_OPTION([LT_INIT], [disable-static]) 76334642e01fSmrg]) 763405b261ecSmrg 76354642e01fSmrgAU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) 76364642e01fSmrgAU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) 763705b261ecSmrg 76384642e01fSmrgdnl aclocal-1.4 backwards compatibility: 76394642e01fSmrgdnl AC_DEFUN([AM_ENABLE_STATIC], []) 76404642e01fSmrgdnl AC_DEFUN([AM_DISABLE_STATIC], []) 764105b261ecSmrg 76424642e01fSmrg 76434642e01fSmrg 76444642e01fSmrg# _LT_ENABLE_FAST_INSTALL([DEFAULT]) 76454642e01fSmrg# ---------------------------------- 76464642e01fSmrg# implement the --enable-fast-install flag, and support the `fast-install' 76474642e01fSmrg# and `disable-fast-install' LT_INIT options. 76484642e01fSmrg# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 76494642e01fSmrgm4_define([_LT_ENABLE_FAST_INSTALL], 76504642e01fSmrg[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl 76514642e01fSmrgAC_ARG_ENABLE([fast-install], 76524642e01fSmrg [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], 76534642e01fSmrg [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], 76544642e01fSmrg [p=${PACKAGE-default} 76554642e01fSmrg case $enableval in 76564642e01fSmrg yes) enable_fast_install=yes ;; 76574642e01fSmrg no) enable_fast_install=no ;; 76584642e01fSmrg *) 76594642e01fSmrg enable_fast_install=no 76604642e01fSmrg # Look at the argument we got. We use all the common list separators. 76614642e01fSmrg lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 76624642e01fSmrg for pkg in $enableval; do 76634642e01fSmrg IFS="$lt_save_ifs" 76644642e01fSmrg if test "X$pkg" = "X$p"; then 76654642e01fSmrg enable_fast_install=yes 766605b261ecSmrg fi 76674642e01fSmrg done 76684642e01fSmrg IFS="$lt_save_ifs" 76694642e01fSmrg ;; 76704642e01fSmrg esac], 76714642e01fSmrg [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) 767205b261ecSmrg 76734642e01fSmrg_LT_DECL([fast_install], [enable_fast_install], [0], 76744642e01fSmrg [Whether or not to optimize for fast installation])dnl 76754642e01fSmrg])# _LT_ENABLE_FAST_INSTALL 767605b261ecSmrg 76774642e01fSmrgLT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) 76784642e01fSmrgLT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) 767905b261ecSmrg 76804642e01fSmrg# Old names: 76814642e01fSmrgAU_DEFUN([AC_ENABLE_FAST_INSTALL], 76824642e01fSmrg[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) 76834642e01fSmrgAC_DIAGNOSE([obsolete], 76844642e01fSmrg[$0: Remove this warning and the call to _LT_SET_OPTION when you put 76854642e01fSmrgthe `fast-install' option into LT_INIT's first parameter.]) 76864642e01fSmrg]) 76874642e01fSmrg 76884642e01fSmrgAU_DEFUN([AC_DISABLE_FAST_INSTALL], 76894642e01fSmrg[_LT_SET_OPTION([LT_INIT], [disable-fast-install]) 76904642e01fSmrgAC_DIAGNOSE([obsolete], 76914642e01fSmrg[$0: Remove this warning and the call to _LT_SET_OPTION when you put 76924642e01fSmrgthe `disable-fast-install' option into LT_INIT's first parameter.]) 76934642e01fSmrg]) 76944642e01fSmrg 76954642e01fSmrgdnl aclocal-1.4 backwards compatibility: 76964642e01fSmrgdnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) 76974642e01fSmrgdnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) 76984642e01fSmrg 76994642e01fSmrg 77004642e01fSmrg# _LT_WITH_PIC([MODE]) 770105b261ecSmrg# -------------------- 77024642e01fSmrg# implement the --with-pic flag, and support the `pic-only' and `no-pic' 77034642e01fSmrg# LT_INIT options. 77044642e01fSmrg# MODE is either `yes' or `no'. If omitted, it defaults to `both'. 77054642e01fSmrgm4_define([_LT_WITH_PIC], 77064642e01fSmrg[AC_ARG_WITH([pic], 77074642e01fSmrg [AS_HELP_STRING([--with-pic], 77084642e01fSmrg [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], 77094642e01fSmrg [pic_mode="$withval"], 77104642e01fSmrg [pic_mode=default]) 77114642e01fSmrg 77124642e01fSmrgtest -z "$pic_mode" && pic_mode=m4_default([$1], [default]) 77134642e01fSmrg 77144642e01fSmrg_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl 77154642e01fSmrg])# _LT_WITH_PIC 77164642e01fSmrg 77174642e01fSmrgLT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) 77184642e01fSmrgLT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) 77194642e01fSmrg 77204642e01fSmrg# Old name: 77214642e01fSmrgAU_DEFUN([AC_LIBTOOL_PICMODE], 77224642e01fSmrg[_LT_SET_OPTION([LT_INIT], [pic-only]) 77234642e01fSmrgAC_DIAGNOSE([obsolete], 77244642e01fSmrg[$0: Remove this warning and the call to _LT_SET_OPTION when you 77254642e01fSmrgput the `pic-only' option into LT_INIT's first parameter.]) 772605b261ecSmrg]) 772705b261ecSmrg 77284642e01fSmrgdnl aclocal-1.4 backwards compatibility: 77294642e01fSmrgdnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) 773005b261ecSmrg 773105b261ecSmrg 77324642e01fSmrgm4_define([_LTDL_MODE], []) 77334642e01fSmrgLT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], 77344642e01fSmrg [m4_define([_LTDL_MODE], [nonrecursive])]) 77354642e01fSmrgLT_OPTION_DEFINE([LTDL_INIT], [recursive], 77364642e01fSmrg [m4_define([_LTDL_MODE], [recursive])]) 77374642e01fSmrgLT_OPTION_DEFINE([LTDL_INIT], [subproject], 77384642e01fSmrg [m4_define([_LTDL_MODE], [subproject])]) 773905b261ecSmrg 77404642e01fSmrgm4_define([_LTDL_TYPE], []) 77414642e01fSmrgLT_OPTION_DEFINE([LTDL_INIT], [installable], 77424642e01fSmrg [m4_define([_LTDL_TYPE], [installable])]) 77434642e01fSmrgLT_OPTION_DEFINE([LTDL_INIT], [convenience], 77444642e01fSmrg [m4_define([_LTDL_TYPE], [convenience])]) 774505b261ecSmrg 77464642e01fSmrg# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- 77474642e01fSmrg# 77484642e01fSmrg# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. 77494642e01fSmrg# Written by Gary V. Vaughan, 2004 77504642e01fSmrg# 77514642e01fSmrg# This file is free software; the Free Software Foundation gives 77524642e01fSmrg# unlimited permission to copy and/or distribute it, with or without 77534642e01fSmrg# modifications, as long as this notice is preserved. 775405b261ecSmrg 77554642e01fSmrg# serial 6 ltsugar.m4 775605b261ecSmrg 77574642e01fSmrg# This is to help aclocal find these macros, as it can't see m4_define. 77584642e01fSmrgAC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) 775905b261ecSmrg 776005b261ecSmrg 77614642e01fSmrg# lt_join(SEP, ARG1, [ARG2...]) 77624642e01fSmrg# ----------------------------- 77634642e01fSmrg# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their 77644642e01fSmrg# associated separator. 77654642e01fSmrg# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier 77664642e01fSmrg# versions in m4sugar had bugs. 77674642e01fSmrgm4_define([lt_join], 77684642e01fSmrg[m4_if([$#], [1], [], 77694642e01fSmrg [$#], [2], [[$2]], 77704642e01fSmrg [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])]) 77714642e01fSmrgm4_define([_lt_join], 77724642e01fSmrg[m4_if([$#$2], [2], [], 77734642e01fSmrg [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) 77744642e01fSmrg 77754642e01fSmrg 77764642e01fSmrg# lt_car(LIST) 77774642e01fSmrg# lt_cdr(LIST) 77784642e01fSmrg# ------------ 77794642e01fSmrg# Manipulate m4 lists. 77804642e01fSmrg# These macros are necessary as long as will still need to support 77814642e01fSmrg# Autoconf-2.59 which quotes differently. 77824642e01fSmrgm4_define([lt_car], [[$1]]) 77834642e01fSmrgm4_define([lt_cdr], 77844642e01fSmrg[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], 77854642e01fSmrg [$#], 1, [], 77864642e01fSmrg [m4_dquote(m4_shift($@))])]) 77874642e01fSmrgm4_define([lt_unquote], $1) 77884642e01fSmrg 77894642e01fSmrg 77904642e01fSmrg# lt_append(MACRO-NAME, STRING, [SEPARATOR]) 77914642e01fSmrg# ------------------------------------------ 77924642e01fSmrg# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'. 77934642e01fSmrg# Note that neither SEPARATOR nor STRING are expanded; they are appended 77944642e01fSmrg# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). 77954642e01fSmrg# No SEPARATOR is output if MACRO-NAME was previously undefined (different 77964642e01fSmrg# than defined and empty). 77974642e01fSmrg# 77984642e01fSmrg# This macro is needed until we can rely on Autoconf 2.62, since earlier 77994642e01fSmrg# versions of m4sugar mistakenly expanded SEPARATOR but not STRING. 78004642e01fSmrgm4_define([lt_append], 78014642e01fSmrg[m4_define([$1], 78024642e01fSmrg m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) 78034642e01fSmrg 78044642e01fSmrg 78054642e01fSmrg 78064642e01fSmrg# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) 78074642e01fSmrg# ---------------------------------------------------------- 78084642e01fSmrg# Produce a SEP delimited list of all paired combinations of elements of 78094642e01fSmrg# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list 78104642e01fSmrg# has the form PREFIXmINFIXSUFFIXn. 78114642e01fSmrg# Needed until we can rely on m4_combine added in Autoconf 2.62. 78124642e01fSmrgm4_define([lt_combine], 78134642e01fSmrg[m4_if(m4_eval([$# > 3]), [1], 78144642e01fSmrg [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl 78154642e01fSmrg[[m4_foreach([_Lt_prefix], [$2], 78164642e01fSmrg [m4_foreach([_Lt_suffix], 78174642e01fSmrg ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[, 78184642e01fSmrg [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])]) 78194642e01fSmrg 78204642e01fSmrg 78214642e01fSmrg# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) 78224642e01fSmrg# ----------------------------------------------------------------------- 78234642e01fSmrg# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited 78244642e01fSmrg# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. 78254642e01fSmrgm4_define([lt_if_append_uniq], 78264642e01fSmrg[m4_ifdef([$1], 78274642e01fSmrg [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1], 78284642e01fSmrg [lt_append([$1], [$2], [$3])$4], 78294642e01fSmrg [$5])], 78304642e01fSmrg [lt_append([$1], [$2], [$3])$4])]) 78314642e01fSmrg 78324642e01fSmrg 78334642e01fSmrg# lt_dict_add(DICT, KEY, VALUE) 78344642e01fSmrg# ----------------------------- 78354642e01fSmrgm4_define([lt_dict_add], 78364642e01fSmrg[m4_define([$1($2)], [$3])]) 78374642e01fSmrg 78384642e01fSmrg 78394642e01fSmrg# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) 78404642e01fSmrg# -------------------------------------------- 78414642e01fSmrgm4_define([lt_dict_add_subkey], 78424642e01fSmrg[m4_define([$1($2:$3)], [$4])]) 78434642e01fSmrg 78444642e01fSmrg 78454642e01fSmrg# lt_dict_fetch(DICT, KEY, [SUBKEY]) 78464642e01fSmrg# ---------------------------------- 78474642e01fSmrgm4_define([lt_dict_fetch], 78484642e01fSmrg[m4_ifval([$3], 78494642e01fSmrg m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), 78504642e01fSmrg m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) 78514642e01fSmrg 78524642e01fSmrg 78534642e01fSmrg# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) 78544642e01fSmrg# ----------------------------------------------------------------- 78554642e01fSmrgm4_define([lt_if_dict_fetch], 78564642e01fSmrg[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], 78574642e01fSmrg [$5], 78584642e01fSmrg [$6])]) 78594642e01fSmrg 78604642e01fSmrg 78614642e01fSmrg# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) 78624642e01fSmrg# -------------------------------------------------------------- 78634642e01fSmrgm4_define([lt_dict_filter], 78644642e01fSmrg[m4_if([$5], [], [], 78654642e01fSmrg [lt_join(m4_quote(m4_default([$4], [[, ]])), 78664642e01fSmrg lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]), 78674642e01fSmrg [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl 78684642e01fSmrg]) 78694642e01fSmrg 78704642e01fSmrg# ltversion.m4 -- version numbers -*- Autoconf -*- 78714642e01fSmrg# 78724642e01fSmrg# Copyright (C) 2004 Free Software Foundation, Inc. 78734642e01fSmrg# Written by Scott James Remnant, 2004 78744642e01fSmrg# 78754642e01fSmrg# This file is free software; the Free Software Foundation gives 78764642e01fSmrg# unlimited permission to copy and/or distribute it, with or without 78774642e01fSmrg# modifications, as long as this notice is preserved. 78784642e01fSmrg 78794642e01fSmrg# Generated from ltversion.in. 78804642e01fSmrg 78814642e01fSmrg# serial 3012 ltversion.m4 78824642e01fSmrg# This file is part of GNU Libtool 78834642e01fSmrg 78844642e01fSmrgm4_define([LT_PACKAGE_VERSION], [2.2.6]) 78854642e01fSmrgm4_define([LT_PACKAGE_REVISION], [1.3012]) 78864642e01fSmrg 78874642e01fSmrgAC_DEFUN([LTVERSION_VERSION], 78884642e01fSmrg[macro_version='2.2.6' 78894642e01fSmrgmacro_revision='1.3012' 78904642e01fSmrg_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) 78914642e01fSmrg_LT_DECL(, macro_revision, 0) 78924642e01fSmrg]) 78934642e01fSmrg 78944642e01fSmrg# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- 78954642e01fSmrg# 78964642e01fSmrg# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc. 78974642e01fSmrg# Written by Scott James Remnant, 2004. 78984642e01fSmrg# 78994642e01fSmrg# This file is free software; the Free Software Foundation gives 79004642e01fSmrg# unlimited permission to copy and/or distribute it, with or without 79014642e01fSmrg# modifications, as long as this notice is preserved. 79024642e01fSmrg 79034642e01fSmrg# serial 4 lt~obsolete.m4 79044642e01fSmrg 79054642e01fSmrg# These exist entirely to fool aclocal when bootstrapping libtool. 79064642e01fSmrg# 79074642e01fSmrg# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN) 79084642e01fSmrg# which have later been changed to m4_define as they aren't part of the 79094642e01fSmrg# exported API, or moved to Autoconf or Automake where they belong. 79104642e01fSmrg# 79114642e01fSmrg# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN 79124642e01fSmrg# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us 79134642e01fSmrg# using a macro with the same name in our local m4/libtool.m4 it'll 79144642e01fSmrg# pull the old libtool.m4 in (it doesn't see our shiny new m4_define 79154642e01fSmrg# and doesn't know about Autoconf macros at all.) 79164642e01fSmrg# 79174642e01fSmrg# So we provide this file, which has a silly filename so it's always 79184642e01fSmrg# included after everything else. This provides aclocal with the 79194642e01fSmrg# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything 79204642e01fSmrg# because those macros already exist, or will be overwritten later. 79214642e01fSmrg# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. 79224642e01fSmrg# 79234642e01fSmrg# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. 79244642e01fSmrg# Yes, that means every name once taken will need to remain here until 79254642e01fSmrg# we give up compatibility with versions before 1.7, at which point 79264642e01fSmrg# we need to keep only those names which we still refer to. 79274642e01fSmrg 79284642e01fSmrg# This is to help aclocal find these macros, as it can't see m4_define. 79294642e01fSmrgAC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) 79304642e01fSmrg 79314642e01fSmrgm4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])]) 79324642e01fSmrgm4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])]) 79334642e01fSmrgm4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])]) 79344642e01fSmrgm4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])]) 79354642e01fSmrgm4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])]) 79364642e01fSmrgm4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])]) 79374642e01fSmrgm4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])]) 79384642e01fSmrgm4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])]) 79394642e01fSmrgm4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])]) 79404642e01fSmrgm4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])]) 79414642e01fSmrgm4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])]) 79424642e01fSmrgm4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])]) 79434642e01fSmrgm4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])]) 79444642e01fSmrgm4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])]) 79454642e01fSmrgm4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])]) 79464642e01fSmrgm4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])]) 79474642e01fSmrgm4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])]) 79484642e01fSmrgm4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])]) 79494642e01fSmrgm4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])]) 79504642e01fSmrgm4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])]) 79514642e01fSmrgm4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])]) 79524642e01fSmrgm4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])]) 79534642e01fSmrgm4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])]) 79544642e01fSmrgm4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])]) 79554642e01fSmrgm4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])]) 79564642e01fSmrgm4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])]) 79574642e01fSmrgm4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])]) 79584642e01fSmrgm4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])]) 79594642e01fSmrgm4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])]) 79604642e01fSmrgm4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])]) 79614642e01fSmrgm4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])]) 79624642e01fSmrgm4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])]) 79634642e01fSmrgm4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) 79644642e01fSmrgm4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) 79654642e01fSmrgm4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) 79664642e01fSmrgm4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) 79674642e01fSmrgm4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])]) 79684642e01fSmrgm4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) 79694642e01fSmrgm4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) 79704642e01fSmrgm4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) 79714642e01fSmrgm4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) 79724642e01fSmrgm4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) 79734642e01fSmrgm4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])]) 79744642e01fSmrgm4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) 79754642e01fSmrgm4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) 79764642e01fSmrgm4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) 79774642e01fSmrgm4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) 79784642e01fSmrgm4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]) 79794642e01fSmrgm4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) 79804642e01fSmrgm4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]) 79814642e01fSmrgm4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) 79824642e01fSmrgm4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) 79834642e01fSmrgm4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) 79844642e01fSmrgm4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) 79854642e01fSmrgm4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) 79864642e01fSmrg 79874642e01fSmrg# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 79884642e01fSmrg# 79894642e01fSmrg# Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 79904642e01fSmrg# 79914642e01fSmrg# This program is free software; you can redistribute it and/or modify 79924642e01fSmrg# it under the terms of the GNU General Public License as published by 79934642e01fSmrg# the Free Software Foundation; either version 2 of the License, or 79944642e01fSmrg# (at your option) any later version. 79954642e01fSmrg# 79964642e01fSmrg# This program is distributed in the hope that it will be useful, but 79974642e01fSmrg# WITHOUT ANY WARRANTY; without even the implied warranty of 79984642e01fSmrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 79994642e01fSmrg# General Public License for more details. 80004642e01fSmrg# 80014642e01fSmrg# You should have received a copy of the GNU General Public License 80024642e01fSmrg# along with this program; if not, write to the Free Software 80034642e01fSmrg# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 80044642e01fSmrg# 80054642e01fSmrg# As a special exception to the GNU General Public License, if you 80064642e01fSmrg# distribute this file as part of a program that contains a 80074642e01fSmrg# configuration script generated by Autoconf, you may include it under 80084642e01fSmrg# the same distribution terms that you use for the rest of that program. 80094642e01fSmrg 80104642e01fSmrg# PKG_PROG_PKG_CONFIG([MIN-VERSION]) 80114642e01fSmrg# ---------------------------------- 80124642e01fSmrgAC_DEFUN([PKG_PROG_PKG_CONFIG], 80134642e01fSmrg[m4_pattern_forbid([^_?PKG_[A-Z_]+$]) 80144642e01fSmrgm4_pattern_allow([^PKG_CONFIG(_PATH)?$]) 80154642e01fSmrgAC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl 80164642e01fSmrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 80174642e01fSmrg AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) 80184642e01fSmrgfi 80194642e01fSmrgif test -n "$PKG_CONFIG"; then 80204642e01fSmrg _pkg_min_version=m4_default([$1], [0.9.0]) 80214642e01fSmrg AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) 80224642e01fSmrg if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 80234642e01fSmrg AC_MSG_RESULT([yes]) 802405b261ecSmrg else 80254642e01fSmrg AC_MSG_RESULT([no]) 80264642e01fSmrg PKG_CONFIG="" 802705b261ecSmrg fi 80284642e01fSmrg 80294642e01fSmrgfi[]dnl 80304642e01fSmrg])# PKG_PROG_PKG_CONFIG 80314642e01fSmrg 80324642e01fSmrg# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 80334642e01fSmrg# 80344642e01fSmrg# Check to see whether a particular set of modules exists. Similar 80354642e01fSmrg# to PKG_CHECK_MODULES(), but does not set variables or print errors. 80364642e01fSmrg# 80374642e01fSmrg# 80384642e01fSmrg# Similar to PKG_CHECK_MODULES, make sure that the first instance of 80394642e01fSmrg# this or PKG_CHECK_MODULES is called, or make sure to call 80404642e01fSmrg# PKG_CHECK_EXISTS manually 80414642e01fSmrg# -------------------------------------------------------------- 80424642e01fSmrgAC_DEFUN([PKG_CHECK_EXISTS], 80434642e01fSmrg[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 80444642e01fSmrgif test -n "$PKG_CONFIG" && \ 80454642e01fSmrg AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then 80464642e01fSmrg m4_ifval([$2], [$2], [:]) 80474642e01fSmrgm4_ifvaln([$3], [else 80484642e01fSmrg $3])dnl 80494642e01fSmrgfi]) 80504642e01fSmrg 80514642e01fSmrg 80524642e01fSmrg# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 80534642e01fSmrg# --------------------------------------------- 80544642e01fSmrgm4_define([_PKG_CONFIG], 80554642e01fSmrg[if test -n "$PKG_CONFIG"; then 80564642e01fSmrg if test -n "$$1"; then 80574642e01fSmrg pkg_cv_[]$1="$$1" 80584642e01fSmrg else 80594642e01fSmrg PKG_CHECK_EXISTS([$3], 80604642e01fSmrg [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], 80614642e01fSmrg [pkg_failed=yes]) 80624642e01fSmrg fi 80634642e01fSmrgelse 80644642e01fSmrg pkg_failed=untried 80654642e01fSmrgfi[]dnl 80664642e01fSmrg])# _PKG_CONFIG 80674642e01fSmrg 80684642e01fSmrg# _PKG_SHORT_ERRORS_SUPPORTED 80694642e01fSmrg# ----------------------------- 80704642e01fSmrgAC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], 80714642e01fSmrg[AC_REQUIRE([PKG_PROG_PKG_CONFIG]) 80724642e01fSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 80734642e01fSmrg _pkg_short_errors_supported=yes 80744642e01fSmrgelse 80754642e01fSmrg _pkg_short_errors_supported=no 80764642e01fSmrgfi[]dnl 80774642e01fSmrg])# _PKG_SHORT_ERRORS_SUPPORTED 80784642e01fSmrg 80794642e01fSmrg 80804642e01fSmrg# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 80814642e01fSmrg# [ACTION-IF-NOT-FOUND]) 80824642e01fSmrg# 80834642e01fSmrg# 80844642e01fSmrg# Note that if there is a possibility the first call to 80854642e01fSmrg# PKG_CHECK_MODULES might not happen, you should be sure to include an 80864642e01fSmrg# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 80874642e01fSmrg# 80884642e01fSmrg# 80894642e01fSmrg# -------------------------------------------------------------- 80904642e01fSmrgAC_DEFUN([PKG_CHECK_MODULES], 80914642e01fSmrg[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 80924642e01fSmrgAC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl 80934642e01fSmrgAC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl 80944642e01fSmrg 80954642e01fSmrgpkg_failed=no 80964642e01fSmrgAC_MSG_CHECKING([for $1]) 80974642e01fSmrg 80984642e01fSmrg_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) 80994642e01fSmrg_PKG_CONFIG([$1][_LIBS], [libs], [$2]) 81004642e01fSmrg 81014642e01fSmrgm4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS 81024642e01fSmrgand $1[]_LIBS to avoid the need to call pkg-config. 81034642e01fSmrgSee the pkg-config man page for more details.]) 81044642e01fSmrg 81054642e01fSmrgif test $pkg_failed = yes; then 81064642e01fSmrg _PKG_SHORT_ERRORS_SUPPORTED 81074642e01fSmrg if test $_pkg_short_errors_supported = yes; then 81084642e01fSmrg $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"` 81094642e01fSmrg else 81104642e01fSmrg $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"` 81114642e01fSmrg fi 81124642e01fSmrg # Put the nasty error message in config.log where it belongs 81134642e01fSmrg echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD 81144642e01fSmrg 81154642e01fSmrg ifelse([$4], , [AC_MSG_ERROR(dnl 81164642e01fSmrg[Package requirements ($2) were not met: 81174642e01fSmrg 81184642e01fSmrg$$1_PKG_ERRORS 811905b261ecSmrg 81204642e01fSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 81214642e01fSmrginstalled software in a non-standard prefix. 81224642e01fSmrg 81234642e01fSmrg_PKG_TEXT 81244642e01fSmrg])], 81254642e01fSmrg [AC_MSG_RESULT([no]) 81264642e01fSmrg $4]) 81274642e01fSmrgelif test $pkg_failed = untried; then 81284642e01fSmrg ifelse([$4], , [AC_MSG_FAILURE(dnl 81294642e01fSmrg[The pkg-config script could not be found or is too old. Make sure it 81304642e01fSmrgis in your PATH or set the PKG_CONFIG environment variable to the full 81314642e01fSmrgpath to pkg-config. 81324642e01fSmrg 81334642e01fSmrg_PKG_TEXT 81344642e01fSmrg 81354642e01fSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.])], 81364642e01fSmrg [$4]) 81374642e01fSmrgelse 81384642e01fSmrg $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS 81394642e01fSmrg $1[]_LIBS=$pkg_cv_[]$1[]_LIBS 81404642e01fSmrg AC_MSG_RESULT([yes]) 81414642e01fSmrg ifelse([$3], , :, [$3]) 81424642e01fSmrgfi[]dnl 81434642e01fSmrg])# PKG_CHECK_MODULES 814405b261ecSmrg 81454642e01fSmrg# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 814605b261ecSmrg# 814705b261ecSmrg# This file is free software; the Free Software Foundation 814805b261ecSmrg# gives unlimited permission to copy and/or distribute it, 814905b261ecSmrg# with or without modifications, as long as this notice is preserved. 815005b261ecSmrg 815105b261ecSmrg# AM_AUTOMAKE_VERSION(VERSION) 815205b261ecSmrg# ---------------------------- 815305b261ecSmrg# Automake X.Y traces this macro to ensure aclocal.m4 has been 815405b261ecSmrg# generated from the m4 files accompanying Automake X.Y. 815505b261ecSmrg# (This private macro should not be called outside this file.) 815605b261ecSmrgAC_DEFUN([AM_AUTOMAKE_VERSION], 815705b261ecSmrg[am__api_version='1.10' 815805b261ecSmrgdnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to 815905b261ecSmrgdnl require some minimum version. Point them to the right macro. 81604642e01fSmrgm4_if([$1], [1.10.2], [], 816105b261ecSmrg [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl 816205b261ecSmrg]) 816305b261ecSmrg 816405b261ecSmrg# _AM_AUTOCONF_VERSION(VERSION) 816505b261ecSmrg# ----------------------------- 816605b261ecSmrg# aclocal traces this macro to find the Autoconf version. 816705b261ecSmrg# This is a private macro too. Using m4_define simplifies 816805b261ecSmrg# the logic in aclocal, which can simply ignore this definition. 816905b261ecSmrgm4_define([_AM_AUTOCONF_VERSION], []) 817005b261ecSmrg 817105b261ecSmrg# AM_SET_CURRENT_AUTOMAKE_VERSION 817205b261ecSmrg# ------------------------------- 817305b261ecSmrg# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. 81744642e01fSmrg# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. 817505b261ecSmrgAC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 81764642e01fSmrg[AM_AUTOMAKE_VERSION([1.10.2])dnl 817705b261ecSmrgm4_ifndef([AC_AUTOCONF_VERSION], 817805b261ecSmrg [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 81794642e01fSmrg_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) 818005b261ecSmrg 818105b261ecSmrg# Figure out how to run the assembler. -*- Autoconf -*- 818205b261ecSmrg 818305b261ecSmrg# Copyright (C) 2001, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 818405b261ecSmrg# 818505b261ecSmrg# This file is free software; the Free Software Foundation 818605b261ecSmrg# gives unlimited permission to copy and/or distribute it, 818705b261ecSmrg# with or without modifications, as long as this notice is preserved. 818805b261ecSmrg 818905b261ecSmrg# serial 5 819005b261ecSmrg 819105b261ecSmrg# AM_PROG_AS 819205b261ecSmrg# ---------- 819305b261ecSmrgAC_DEFUN([AM_PROG_AS], 819405b261ecSmrg[# By default we simply use the C compiler to build assembly code. 819505b261ecSmrgAC_REQUIRE([AC_PROG_CC]) 819605b261ecSmrgtest "${CCAS+set}" = set || CCAS=$CC 819705b261ecSmrgtest "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS 819805b261ecSmrgAC_ARG_VAR([CCAS], [assembler compiler command (defaults to CC)]) 819905b261ecSmrgAC_ARG_VAR([CCASFLAGS], [assembler compiler flags (defaults to CFLAGS)]) 820005b261ecSmrg_AM_IF_OPTION([no-dependencies],, [_AM_DEPENDENCIES([CCAS])])dnl 820105b261ecSmrg]) 820205b261ecSmrg 820305b261ecSmrg# AM_AUX_DIR_EXPAND -*- Autoconf -*- 820405b261ecSmrg 820505b261ecSmrg# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 820605b261ecSmrg# 820705b261ecSmrg# This file is free software; the Free Software Foundation 820805b261ecSmrg# gives unlimited permission to copy and/or distribute it, 820905b261ecSmrg# with or without modifications, as long as this notice is preserved. 821005b261ecSmrg 821105b261ecSmrg# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 821205b261ecSmrg# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to 821305b261ecSmrg# `$srcdir', `$srcdir/..', or `$srcdir/../..'. 821405b261ecSmrg# 821505b261ecSmrg# Of course, Automake must honor this variable whenever it calls a 821605b261ecSmrg# tool from the auxiliary directory. The problem is that $srcdir (and 821705b261ecSmrg# therefore $ac_aux_dir as well) can be either absolute or relative, 821805b261ecSmrg# depending on how configure is run. This is pretty annoying, since 821905b261ecSmrg# it makes $ac_aux_dir quite unusable in subdirectories: in the top 822005b261ecSmrg# source directory, any form will work fine, but in subdirectories a 822105b261ecSmrg# relative path needs to be adjusted first. 822205b261ecSmrg# 822305b261ecSmrg# $ac_aux_dir/missing 822405b261ecSmrg# fails when called from a subdirectory if $ac_aux_dir is relative 822505b261ecSmrg# $top_srcdir/$ac_aux_dir/missing 822605b261ecSmrg# fails if $ac_aux_dir is absolute, 822705b261ecSmrg# fails when called from a subdirectory in a VPATH build with 822805b261ecSmrg# a relative $ac_aux_dir 822905b261ecSmrg# 823005b261ecSmrg# The reason of the latter failure is that $top_srcdir and $ac_aux_dir 823105b261ecSmrg# are both prefixed by $srcdir. In an in-source build this is usually 823205b261ecSmrg# harmless because $srcdir is `.', but things will broke when you 823305b261ecSmrg# start a VPATH build or use an absolute $srcdir. 823405b261ecSmrg# 823505b261ecSmrg# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, 823605b261ecSmrg# iff we strip the leading $srcdir from $ac_aux_dir. That would be: 823705b261ecSmrg# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` 823805b261ecSmrg# and then we would define $MISSING as 823905b261ecSmrg# MISSING="\${SHELL} $am_aux_dir/missing" 824005b261ecSmrg# This will work as long as MISSING is not called from configure, because 824105b261ecSmrg# unfortunately $(top_srcdir) has no meaning in configure. 824205b261ecSmrg# However there are other variables, like CC, which are often used in 824305b261ecSmrg# configure, and could therefore not use this "fixed" $ac_aux_dir. 824405b261ecSmrg# 824505b261ecSmrg# Another solution, used here, is to always expand $ac_aux_dir to an 824605b261ecSmrg# absolute PATH. The drawback is that using absolute paths prevent a 824705b261ecSmrg# configured tree to be moved without reconfiguration. 824805b261ecSmrg 824905b261ecSmrgAC_DEFUN([AM_AUX_DIR_EXPAND], 825005b261ecSmrg[dnl Rely on autoconf to set up CDPATH properly. 825105b261ecSmrgAC_PREREQ([2.50])dnl 825205b261ecSmrg# expand $ac_aux_dir to an absolute path 825305b261ecSmrgam_aux_dir=`cd $ac_aux_dir && pwd` 825405b261ecSmrg]) 825505b261ecSmrg 825605b261ecSmrg# AM_CONDITIONAL -*- Autoconf -*- 825705b261ecSmrg 825805b261ecSmrg# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006 825905b261ecSmrg# Free Software Foundation, Inc. 826005b261ecSmrg# 826105b261ecSmrg# This file is free software; the Free Software Foundation 826205b261ecSmrg# gives unlimited permission to copy and/or distribute it, 826305b261ecSmrg# with or without modifications, as long as this notice is preserved. 826405b261ecSmrg 826505b261ecSmrg# serial 8 826605b261ecSmrg 826705b261ecSmrg# AM_CONDITIONAL(NAME, SHELL-CONDITION) 826805b261ecSmrg# ------------------------------------- 826905b261ecSmrg# Define a conditional. 827005b261ecSmrgAC_DEFUN([AM_CONDITIONAL], 827105b261ecSmrg[AC_PREREQ(2.52)dnl 827205b261ecSmrg ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 827305b261ecSmrg [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 827405b261ecSmrgAC_SUBST([$1_TRUE])dnl 827505b261ecSmrgAC_SUBST([$1_FALSE])dnl 827605b261ecSmrg_AM_SUBST_NOTMAKE([$1_TRUE])dnl 827705b261ecSmrg_AM_SUBST_NOTMAKE([$1_FALSE])dnl 827805b261ecSmrgif $2; then 827905b261ecSmrg $1_TRUE= 828005b261ecSmrg $1_FALSE='#' 828105b261ecSmrgelse 828205b261ecSmrg $1_TRUE='#' 828305b261ecSmrg $1_FALSE= 828405b261ecSmrgfi 828505b261ecSmrgAC_CONFIG_COMMANDS_PRE( 828605b261ecSmrg[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then 828705b261ecSmrg AC_MSG_ERROR([[conditional "$1" was never defined. 828805b261ecSmrgUsually this means the macro was only invoked conditionally.]]) 828905b261ecSmrgfi])]) 829005b261ecSmrg 829105b261ecSmrg# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 829205b261ecSmrg# Free Software Foundation, Inc. 829305b261ecSmrg# 829405b261ecSmrg# This file is free software; the Free Software Foundation 829505b261ecSmrg# gives unlimited permission to copy and/or distribute it, 829605b261ecSmrg# with or without modifications, as long as this notice is preserved. 829705b261ecSmrg 829805b261ecSmrg# serial 9 829905b261ecSmrg 830005b261ecSmrg# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be 830105b261ecSmrg# written in clear, in which case automake, when reading aclocal.m4, 830205b261ecSmrg# will think it sees a *use*, and therefore will trigger all it's 830305b261ecSmrg# C support machinery. Also note that it means that autoscan, seeing 830405b261ecSmrg# CC etc. in the Makefile, will ask for an AC_PROG_CC use... 830505b261ecSmrg 830605b261ecSmrg 830705b261ecSmrg# _AM_DEPENDENCIES(NAME) 830805b261ecSmrg# ---------------------- 830905b261ecSmrg# See how the compiler implements dependency checking. 831005b261ecSmrg# NAME is "CC", "CXX", "GCJ", or "OBJC". 831105b261ecSmrg# We try a few techniques and use that to set a single cache variable. 831205b261ecSmrg# 831305b261ecSmrg# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was 831405b261ecSmrg# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 831505b261ecSmrg# dependency, and given that the user is not expected to run this macro, 831605b261ecSmrg# just rely on AC_PROG_CC. 831705b261ecSmrgAC_DEFUN([_AM_DEPENDENCIES], 831805b261ecSmrg[AC_REQUIRE([AM_SET_DEPDIR])dnl 831905b261ecSmrgAC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl 832005b261ecSmrgAC_REQUIRE([AM_MAKE_INCLUDE])dnl 832105b261ecSmrgAC_REQUIRE([AM_DEP_TRACK])dnl 832205b261ecSmrg 832305b261ecSmrgifelse([$1], CC, [depcc="$CC" am_compiler_list=], 832405b261ecSmrg [$1], CXX, [depcc="$CXX" am_compiler_list=], 832505b261ecSmrg [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 832605b261ecSmrg [$1], UPC, [depcc="$UPC" am_compiler_list=], 832705b261ecSmrg [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 832805b261ecSmrg [depcc="$$1" am_compiler_list=]) 832905b261ecSmrg 833005b261ecSmrgAC_CACHE_CHECK([dependency style of $depcc], 833105b261ecSmrg [am_cv_$1_dependencies_compiler_type], 833205b261ecSmrg[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 833305b261ecSmrg # We make a subdir and do the tests there. Otherwise we can end up 833405b261ecSmrg # making bogus files that we don't know about and never remove. For 833505b261ecSmrg # instance it was reported that on HP-UX the gcc test will end up 833605b261ecSmrg # making a dummy file named `D' -- because `-MD' means `put the output 833705b261ecSmrg # in D'. 833805b261ecSmrg mkdir conftest.dir 833905b261ecSmrg # Copy depcomp to subdir because otherwise we won't find it if we're 834005b261ecSmrg # using a relative directory. 834105b261ecSmrg cp "$am_depcomp" conftest.dir 834205b261ecSmrg cd conftest.dir 834305b261ecSmrg # We will build objects and dependencies in a subdirectory because 834405b261ecSmrg # it helps to detect inapplicable dependency modes. For instance 834505b261ecSmrg # both Tru64's cc and ICC support -MD to output dependencies as a 834605b261ecSmrg # side effect of compilation, but ICC will put the dependencies in 834705b261ecSmrg # the current directory while Tru64 will put them in the object 834805b261ecSmrg # directory. 834905b261ecSmrg mkdir sub 835005b261ecSmrg 835105b261ecSmrg am_cv_$1_dependencies_compiler_type=none 835205b261ecSmrg if test "$am_compiler_list" = ""; then 835305b261ecSmrg am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` 835405b261ecSmrg fi 835505b261ecSmrg for depmode in $am_compiler_list; do 835605b261ecSmrg # Setup a source with many dependencies, because some compilers 835705b261ecSmrg # like to wrap large dependency lists on column 80 (with \), and 835805b261ecSmrg # we should not choose a depcomp mode which is confused by this. 835905b261ecSmrg # 836005b261ecSmrg # We need to recreate these files for each test, as the compiler may 836105b261ecSmrg # overwrite some of them when testing with obscure command lines. 836205b261ecSmrg # This happens at least with the AIX C compiler. 836305b261ecSmrg : > sub/conftest.c 836405b261ecSmrg for i in 1 2 3 4 5 6; do 836505b261ecSmrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 836605b261ecSmrg # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 836705b261ecSmrg # Solaris 8's {/usr,}/bin/sh. 836805b261ecSmrg touch sub/conftst$i.h 836905b261ecSmrg done 837005b261ecSmrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 837105b261ecSmrg 837205b261ecSmrg case $depmode in 837305b261ecSmrg nosideeffect) 837405b261ecSmrg # after this tag, mechanisms are not by side-effect, so they'll 837505b261ecSmrg # only be used when explicitly requested 837605b261ecSmrg if test "x$enable_dependency_tracking" = xyes; then 837705b261ecSmrg continue 837805b261ecSmrg else 837905b261ecSmrg break 838005b261ecSmrg fi 838105b261ecSmrg ;; 838205b261ecSmrg none) break ;; 838305b261ecSmrg esac 838405b261ecSmrg # We check with `-c' and `-o' for the sake of the "dashmstdout" 838505b261ecSmrg # mode. It turns out that the SunPro C++ compiler does not properly 838605b261ecSmrg # handle `-M -o', and we need to detect this. 838705b261ecSmrg if depmode=$depmode \ 838805b261ecSmrg source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 838905b261ecSmrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 839005b261ecSmrg $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 839105b261ecSmrg >/dev/null 2>conftest.err && 839205b261ecSmrg grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 839305b261ecSmrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 839405b261ecSmrg grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 839505b261ecSmrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 839605b261ecSmrg # icc doesn't choke on unknown options, it will just issue warnings 839705b261ecSmrg # or remarks (even with -Werror). So we grep stderr for any message 839805b261ecSmrg # that says an option was ignored or not supported. 839905b261ecSmrg # When given -MP, icc 7.0 and 7.1 complain thusly: 840005b261ecSmrg # icc: Command line warning: ignoring option '-M'; no argument required 840105b261ecSmrg # The diagnosis changed in icc 8.0: 840205b261ecSmrg # icc: Command line remark: option '-MP' not supported 840305b261ecSmrg if (grep 'ignoring option' conftest.err || 840405b261ecSmrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 840505b261ecSmrg am_cv_$1_dependencies_compiler_type=$depmode 840605b261ecSmrg break 840705b261ecSmrg fi 840805b261ecSmrg fi 840905b261ecSmrg done 841005b261ecSmrg 841105b261ecSmrg cd .. 841205b261ecSmrg rm -rf conftest.dir 841305b261ecSmrgelse 841405b261ecSmrg am_cv_$1_dependencies_compiler_type=none 841505b261ecSmrgfi 841605b261ecSmrg]) 841705b261ecSmrgAC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) 841805b261ecSmrgAM_CONDITIONAL([am__fastdep$1], [ 841905b261ecSmrg test "x$enable_dependency_tracking" != xno \ 842005b261ecSmrg && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) 842105b261ecSmrg]) 842205b261ecSmrg 842305b261ecSmrg 842405b261ecSmrg# AM_SET_DEPDIR 842505b261ecSmrg# ------------- 842605b261ecSmrg# Choose a directory name for dependency files. 842705b261ecSmrg# This macro is AC_REQUIREd in _AM_DEPENDENCIES 842805b261ecSmrgAC_DEFUN([AM_SET_DEPDIR], 842905b261ecSmrg[AC_REQUIRE([AM_SET_LEADING_DOT])dnl 843005b261ecSmrgAC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl 843105b261ecSmrg]) 843205b261ecSmrg 843305b261ecSmrg 843405b261ecSmrg# AM_DEP_TRACK 843505b261ecSmrg# ------------ 843605b261ecSmrgAC_DEFUN([AM_DEP_TRACK], 843705b261ecSmrg[AC_ARG_ENABLE(dependency-tracking, 843805b261ecSmrg[ --disable-dependency-tracking speeds up one-time build 843905b261ecSmrg --enable-dependency-tracking do not reject slow dependency extractors]) 844005b261ecSmrgif test "x$enable_dependency_tracking" != xno; then 844105b261ecSmrg am_depcomp="$ac_aux_dir/depcomp" 844205b261ecSmrg AMDEPBACKSLASH='\' 844305b261ecSmrgfi 844405b261ecSmrgAM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 844505b261ecSmrgAC_SUBST([AMDEPBACKSLASH])dnl 844605b261ecSmrg_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl 844705b261ecSmrg]) 844805b261ecSmrg 844905b261ecSmrg# Generate code to set up dependency tracking. -*- Autoconf -*- 845005b261ecSmrg 84514642e01fSmrg# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 845205b261ecSmrg# Free Software Foundation, Inc. 845305b261ecSmrg# 845405b261ecSmrg# This file is free software; the Free Software Foundation 845505b261ecSmrg# gives unlimited permission to copy and/or distribute it, 845605b261ecSmrg# with or without modifications, as long as this notice is preserved. 845705b261ecSmrg 84584642e01fSmrg#serial 4 845905b261ecSmrg 846005b261ecSmrg# _AM_OUTPUT_DEPENDENCY_COMMANDS 846105b261ecSmrg# ------------------------------ 846205b261ecSmrgAC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 84634642e01fSmrg[# Autoconf 2.62 quotes --file arguments for eval, but not when files 84644642e01fSmrg# are listed without --file. Let's play safe and only enable the eval 84654642e01fSmrg# if we detect the quoting. 84664642e01fSmrgcase $CONFIG_FILES in 84674642e01fSmrg*\'*) eval set x "$CONFIG_FILES" ;; 84684642e01fSmrg*) set x $CONFIG_FILES ;; 84694642e01fSmrgesac 84704642e01fSmrgshift 84714642e01fSmrgfor mf 84724642e01fSmrgdo 847305b261ecSmrg # Strip MF so we end up with the name of the file. 847405b261ecSmrg mf=`echo "$mf" | sed -e 's/:.*$//'` 847505b261ecSmrg # Check whether this is an Automake generated Makefile or not. 847605b261ecSmrg # We used to match only the files named `Makefile.in', but 847705b261ecSmrg # some people rename them; so instead we look at the file content. 847805b261ecSmrg # Grep'ing the first line is not enough: some people post-process 847905b261ecSmrg # each Makefile.in and add a new line on top of each file to say so. 848005b261ecSmrg # Grep'ing the whole file is not good either: AIX grep has a line 848105b261ecSmrg # limit of 2048, but all sed's we know have understand at least 4000. 848205b261ecSmrg if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 848305b261ecSmrg dirpart=`AS_DIRNAME("$mf")` 848405b261ecSmrg else 848505b261ecSmrg continue 848605b261ecSmrg fi 848705b261ecSmrg # Extract the definition of DEPDIR, am__include, and am__quote 848805b261ecSmrg # from the Makefile without running `make'. 848905b261ecSmrg DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 849005b261ecSmrg test -z "$DEPDIR" && continue 849105b261ecSmrg am__include=`sed -n 's/^am__include = //p' < "$mf"` 849205b261ecSmrg test -z "am__include" && continue 849305b261ecSmrg am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 849405b261ecSmrg # When using ansi2knr, U may be empty or an underscore; expand it 849505b261ecSmrg U=`sed -n 's/^U = //p' < "$mf"` 849605b261ecSmrg # Find all dependency output files, they are included files with 849705b261ecSmrg # $(DEPDIR) in their names. We invoke sed twice because it is the 849805b261ecSmrg # simplest approach to changing $(DEPDIR) to its actual value in the 849905b261ecSmrg # expansion. 850005b261ecSmrg for file in `sed -n " 850105b261ecSmrg s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 850205b261ecSmrg sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 850305b261ecSmrg # Make sure the directory exists. 850405b261ecSmrg test -f "$dirpart/$file" && continue 850505b261ecSmrg fdir=`AS_DIRNAME(["$file"])` 850605b261ecSmrg AS_MKDIR_P([$dirpart/$fdir]) 850705b261ecSmrg # echo "creating $dirpart/$file" 850805b261ecSmrg echo '# dummy' > "$dirpart/$file" 850905b261ecSmrg done 851005b261ecSmrgdone 851105b261ecSmrg])# _AM_OUTPUT_DEPENDENCY_COMMANDS 851205b261ecSmrg 851305b261ecSmrg 851405b261ecSmrg# AM_OUTPUT_DEPENDENCY_COMMANDS 851505b261ecSmrg# ----------------------------- 851605b261ecSmrg# This macro should only be invoked once -- use via AC_REQUIRE. 851705b261ecSmrg# 851805b261ecSmrg# This code is only required when automatic dependency tracking 851905b261ecSmrg# is enabled. FIXME. This creates each `.P' file that we will 852005b261ecSmrg# need in order to bootstrap the dependency handling code. 852105b261ecSmrgAC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], 852205b261ecSmrg[AC_CONFIG_COMMANDS([depfiles], 852305b261ecSmrg [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], 852405b261ecSmrg [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) 852505b261ecSmrg]) 852605b261ecSmrg 852705b261ecSmrg# Do all the work for Automake. -*- Autoconf -*- 852805b261ecSmrg 852905b261ecSmrg# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 853005b261ecSmrg# 2005, 2006, 2008 Free Software Foundation, Inc. 853105b261ecSmrg# 853205b261ecSmrg# This file is free software; the Free Software Foundation 853305b261ecSmrg# gives unlimited permission to copy and/or distribute it, 853405b261ecSmrg# with or without modifications, as long as this notice is preserved. 853505b261ecSmrg 853605b261ecSmrg# serial 13 853705b261ecSmrg 853805b261ecSmrg# This macro actually does too much. Some checks are only needed if 853905b261ecSmrg# your package does certain things. But this isn't really a big deal. 854005b261ecSmrg 854105b261ecSmrg# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) 854205b261ecSmrg# AM_INIT_AUTOMAKE([OPTIONS]) 854305b261ecSmrg# ----------------------------------------------- 854405b261ecSmrg# The call with PACKAGE and VERSION arguments is the old style 854505b261ecSmrg# call (pre autoconf-2.50), which is being phased out. PACKAGE 854605b261ecSmrg# and VERSION should now be passed to AC_INIT and removed from 854705b261ecSmrg# the call to AM_INIT_AUTOMAKE. 854805b261ecSmrg# We support both call styles for the transition. After 854905b261ecSmrg# the next Automake release, Autoconf can make the AC_INIT 855005b261ecSmrg# arguments mandatory, and then we can depend on a new Autoconf 855105b261ecSmrg# release and drop the old call support. 855205b261ecSmrgAC_DEFUN([AM_INIT_AUTOMAKE], 855305b261ecSmrg[AC_PREREQ([2.60])dnl 855405b261ecSmrgdnl Autoconf wants to disallow AM_ names. We explicitly allow 855505b261ecSmrgdnl the ones we care about. 855605b261ecSmrgm4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl 855705b261ecSmrgAC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 855805b261ecSmrgAC_REQUIRE([AC_PROG_INSTALL])dnl 855905b261ecSmrgif test "`cd $srcdir && pwd`" != "`pwd`"; then 856005b261ecSmrg # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 856105b261ecSmrg # is not polluted with repeated "-I." 856205b261ecSmrg AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl 856305b261ecSmrg # test to see if srcdir already configured 856405b261ecSmrg if test -f $srcdir/config.status; then 856505b261ecSmrg AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 856605b261ecSmrg fi 856705b261ecSmrgfi 856805b261ecSmrg 856905b261ecSmrg# test whether we have cygpath 857005b261ecSmrgif test -z "$CYGPATH_W"; then 857105b261ecSmrg if (cygpath --version) >/dev/null 2>/dev/null; then 857205b261ecSmrg CYGPATH_W='cygpath -w' 857305b261ecSmrg else 857405b261ecSmrg CYGPATH_W=echo 857505b261ecSmrg fi 857605b261ecSmrgfi 857705b261ecSmrgAC_SUBST([CYGPATH_W]) 857805b261ecSmrg 857905b261ecSmrg# Define the identity of the package. 858005b261ecSmrgdnl Distinguish between old-style and new-style calls. 858105b261ecSmrgm4_ifval([$2], 858205b261ecSmrg[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 858305b261ecSmrg AC_SUBST([PACKAGE], [$1])dnl 858405b261ecSmrg AC_SUBST([VERSION], [$2])], 858505b261ecSmrg[_AM_SET_OPTIONS([$1])dnl 858605b261ecSmrgdnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. 858705b261ecSmrgm4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, 858805b261ecSmrg [m4_fatal([AC_INIT should be called with package and version arguments])])dnl 858905b261ecSmrg AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl 859005b261ecSmrg AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl 859105b261ecSmrg 859205b261ecSmrg_AM_IF_OPTION([no-define],, 859305b261ecSmrg[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) 859405b261ecSmrg AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl 859505b261ecSmrg 859605b261ecSmrg# Some tools Automake needs. 859705b261ecSmrgAC_REQUIRE([AM_SANITY_CHECK])dnl 859805b261ecSmrgAC_REQUIRE([AC_ARG_PROGRAM])dnl 859905b261ecSmrgAM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) 860005b261ecSmrgAM_MISSING_PROG(AUTOCONF, autoconf) 860105b261ecSmrgAM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) 860205b261ecSmrgAM_MISSING_PROG(AUTOHEADER, autoheader) 860305b261ecSmrgAM_MISSING_PROG(MAKEINFO, makeinfo) 860405b261ecSmrgAM_PROG_INSTALL_SH 860505b261ecSmrgAM_PROG_INSTALL_STRIP 860605b261ecSmrgAC_REQUIRE([AM_PROG_MKDIR_P])dnl 860705b261ecSmrg# We need awk for the "check" target. The system "awk" is bad on 860805b261ecSmrg# some platforms. 860905b261ecSmrgAC_REQUIRE([AC_PROG_AWK])dnl 861005b261ecSmrgAC_REQUIRE([AC_PROG_MAKE_SET])dnl 861105b261ecSmrgAC_REQUIRE([AM_SET_LEADING_DOT])dnl 861205b261ecSmrg_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], 861305b261ecSmrg [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], 861405b261ecSmrg [_AM_PROG_TAR([v7])])]) 861505b261ecSmrg_AM_IF_OPTION([no-dependencies],, 861605b261ecSmrg[AC_PROVIDE_IFELSE([AC_PROG_CC], 861705b261ecSmrg [_AM_DEPENDENCIES(CC)], 861805b261ecSmrg [define([AC_PROG_CC], 861905b261ecSmrg defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl 862005b261ecSmrgAC_PROVIDE_IFELSE([AC_PROG_CXX], 862105b261ecSmrg [_AM_DEPENDENCIES(CXX)], 862205b261ecSmrg [define([AC_PROG_CXX], 862305b261ecSmrg defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl 862405b261ecSmrgAC_PROVIDE_IFELSE([AC_PROG_OBJC], 862505b261ecSmrg [_AM_DEPENDENCIES(OBJC)], 862605b261ecSmrg [define([AC_PROG_OBJC], 862705b261ecSmrg defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl 862805b261ecSmrg]) 862905b261ecSmrg]) 863005b261ecSmrg 863105b261ecSmrg 863205b261ecSmrg# When config.status generates a header, we must update the stamp-h file. 863305b261ecSmrg# This file resides in the same directory as the config header 863405b261ecSmrg# that is generated. The stamp files are numbered to have different names. 863505b261ecSmrg 863605b261ecSmrg# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the 863705b261ecSmrg# loop where config.status creates the headers, so we can generate 863805b261ecSmrg# our stamp files there. 863905b261ecSmrgAC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], 864005b261ecSmrg[# Compute $1's index in $config_headers. 864105b261ecSmrg_am_arg=$1 864205b261ecSmrg_am_stamp_count=1 864305b261ecSmrgfor _am_header in $config_headers :; do 864405b261ecSmrg case $_am_header in 864505b261ecSmrg $_am_arg | $_am_arg:* ) 864605b261ecSmrg break ;; 864705b261ecSmrg * ) 864805b261ecSmrg _am_stamp_count=`expr $_am_stamp_count + 1` ;; 864905b261ecSmrg esac 865005b261ecSmrgdone 865105b261ecSmrgecho "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) 865205b261ecSmrg 865305b261ecSmrg# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 865405b261ecSmrg# 865505b261ecSmrg# This file is free software; the Free Software Foundation 865605b261ecSmrg# gives unlimited permission to copy and/or distribute it, 865705b261ecSmrg# with or without modifications, as long as this notice is preserved. 865805b261ecSmrg 865905b261ecSmrg# AM_PROG_INSTALL_SH 866005b261ecSmrg# ------------------ 866105b261ecSmrg# Define $install_sh. 866205b261ecSmrgAC_DEFUN([AM_PROG_INSTALL_SH], 866305b261ecSmrg[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 866405b261ecSmrginstall_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 866505b261ecSmrgAC_SUBST(install_sh)]) 866605b261ecSmrg 866705b261ecSmrg# Copyright (C) 2003, 2005 Free Software Foundation, Inc. 866805b261ecSmrg# 866905b261ecSmrg# This file is free software; the Free Software Foundation 867005b261ecSmrg# gives unlimited permission to copy and/or distribute it, 867105b261ecSmrg# with or without modifications, as long as this notice is preserved. 867205b261ecSmrg 867305b261ecSmrg# serial 2 867405b261ecSmrg 867505b261ecSmrg# Check whether the underlying file-system supports filenames 867605b261ecSmrg# with a leading dot. For instance MS-DOS doesn't. 867705b261ecSmrgAC_DEFUN([AM_SET_LEADING_DOT], 867805b261ecSmrg[rm -rf .tst 2>/dev/null 867905b261ecSmrgmkdir .tst 2>/dev/null 868005b261ecSmrgif test -d .tst; then 868105b261ecSmrg am__leading_dot=. 868205b261ecSmrgelse 868305b261ecSmrg am__leading_dot=_ 868405b261ecSmrgfi 868505b261ecSmrgrmdir .tst 2>/dev/null 868605b261ecSmrgAC_SUBST([am__leading_dot])]) 868705b261ecSmrg 868805b261ecSmrg# Add --enable-maintainer-mode option to configure. -*- Autoconf -*- 868905b261ecSmrg# From Jim Meyering 869005b261ecSmrg 869105b261ecSmrg# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005 869205b261ecSmrg# Free Software Foundation, Inc. 869305b261ecSmrg# 869405b261ecSmrg# This file is free software; the Free Software Foundation 869505b261ecSmrg# gives unlimited permission to copy and/or distribute it, 869605b261ecSmrg# with or without modifications, as long as this notice is preserved. 869705b261ecSmrg 869805b261ecSmrg# serial 4 869905b261ecSmrg 870005b261ecSmrgAC_DEFUN([AM_MAINTAINER_MODE], 870105b261ecSmrg[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) 870205b261ecSmrg dnl maintainer-mode is disabled by default 870305b261ecSmrg AC_ARG_ENABLE(maintainer-mode, 870405b261ecSmrg[ --enable-maintainer-mode enable make rules and dependencies not useful 870505b261ecSmrg (and sometimes confusing) to the casual installer], 870605b261ecSmrg USE_MAINTAINER_MODE=$enableval, 870705b261ecSmrg USE_MAINTAINER_MODE=no) 870805b261ecSmrg AC_MSG_RESULT([$USE_MAINTAINER_MODE]) 870905b261ecSmrg AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes]) 871005b261ecSmrg MAINT=$MAINTAINER_MODE_TRUE 871105b261ecSmrg AC_SUBST(MAINT)dnl 871205b261ecSmrg] 871305b261ecSmrg) 871405b261ecSmrg 871505b261ecSmrgAU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) 871605b261ecSmrg 871705b261ecSmrg# Check to see how 'make' treats includes. -*- Autoconf -*- 871805b261ecSmrg 871905b261ecSmrg# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. 872005b261ecSmrg# 872105b261ecSmrg# This file is free software; the Free Software Foundation 872205b261ecSmrg# gives unlimited permission to copy and/or distribute it, 872305b261ecSmrg# with or without modifications, as long as this notice is preserved. 872405b261ecSmrg 872505b261ecSmrg# serial 3 872605b261ecSmrg 872705b261ecSmrg# AM_MAKE_INCLUDE() 872805b261ecSmrg# ----------------- 872905b261ecSmrg# Check to see how make treats includes. 873005b261ecSmrgAC_DEFUN([AM_MAKE_INCLUDE], 873105b261ecSmrg[am_make=${MAKE-make} 873205b261ecSmrgcat > confinc << 'END' 873305b261ecSmrgam__doit: 873405b261ecSmrg @echo done 873505b261ecSmrg.PHONY: am__doit 873605b261ecSmrgEND 873705b261ecSmrg# If we don't find an include directive, just comment out the code. 873805b261ecSmrgAC_MSG_CHECKING([for style of include used by $am_make]) 873905b261ecSmrgam__include="#" 874005b261ecSmrgam__quote= 874105b261ecSmrg_am_result=none 874205b261ecSmrg# First try GNU make style include. 874305b261ecSmrgecho "include confinc" > confmf 874405b261ecSmrg# We grep out `Entering directory' and `Leaving directory' 874505b261ecSmrg# messages which can occur if `w' ends up in MAKEFLAGS. 874605b261ecSmrg# In particular we don't look at `^make:' because GNU make might 874705b261ecSmrg# be invoked under some other name (usually "gmake"), in which 874805b261ecSmrg# case it prints its new name instead of `make'. 874905b261ecSmrgif test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 875005b261ecSmrg am__include=include 875105b261ecSmrg am__quote= 875205b261ecSmrg _am_result=GNU 875305b261ecSmrgfi 875405b261ecSmrg# Now try BSD make style include. 875505b261ecSmrgif test "$am__include" = "#"; then 875605b261ecSmrg echo '.include "confinc"' > confmf 875705b261ecSmrg if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 875805b261ecSmrg am__include=.include 875905b261ecSmrg am__quote="\"" 876005b261ecSmrg _am_result=BSD 876105b261ecSmrg fi 876205b261ecSmrgfi 876305b261ecSmrgAC_SUBST([am__include]) 876405b261ecSmrgAC_SUBST([am__quote]) 876505b261ecSmrgAC_MSG_RESULT([$_am_result]) 876605b261ecSmrgrm -f confinc confmf 876705b261ecSmrg]) 876805b261ecSmrg 876905b261ecSmrg# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 877005b261ecSmrg 877105b261ecSmrg# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005 877205b261ecSmrg# Free Software Foundation, Inc. 877305b261ecSmrg# 877405b261ecSmrg# This file is free software; the Free Software Foundation 877505b261ecSmrg# gives unlimited permission to copy and/or distribute it, 877605b261ecSmrg# with or without modifications, as long as this notice is preserved. 877705b261ecSmrg 877805b261ecSmrg# serial 5 877905b261ecSmrg 878005b261ecSmrg# AM_MISSING_PROG(NAME, PROGRAM) 878105b261ecSmrg# ------------------------------ 878205b261ecSmrgAC_DEFUN([AM_MISSING_PROG], 878305b261ecSmrg[AC_REQUIRE([AM_MISSING_HAS_RUN]) 878405b261ecSmrg$1=${$1-"${am_missing_run}$2"} 878505b261ecSmrgAC_SUBST($1)]) 878605b261ecSmrg 878705b261ecSmrg 878805b261ecSmrg# AM_MISSING_HAS_RUN 878905b261ecSmrg# ------------------ 879005b261ecSmrg# Define MISSING if not defined so far and test if it supports --run. 879105b261ecSmrg# If it does, set am_missing_run to use it, otherwise, to nothing. 879205b261ecSmrgAC_DEFUN([AM_MISSING_HAS_RUN], 879305b261ecSmrg[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 879405b261ecSmrgAC_REQUIRE_AUX_FILE([missing])dnl 879505b261ecSmrgtest x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 879605b261ecSmrg# Use eval to expand $SHELL 879705b261ecSmrgif eval "$MISSING --run true"; then 879805b261ecSmrg am_missing_run="$MISSING --run " 879905b261ecSmrgelse 880005b261ecSmrg am_missing_run= 880105b261ecSmrg AC_MSG_WARN([`missing' script is too old or missing]) 880205b261ecSmrgfi 880305b261ecSmrg]) 880405b261ecSmrg 880505b261ecSmrg# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 880605b261ecSmrg# 880705b261ecSmrg# This file is free software; the Free Software Foundation 880805b261ecSmrg# gives unlimited permission to copy and/or distribute it, 880905b261ecSmrg# with or without modifications, as long as this notice is preserved. 881005b261ecSmrg 881105b261ecSmrg# AM_PROG_MKDIR_P 881205b261ecSmrg# --------------- 881305b261ecSmrg# Check for `mkdir -p'. 881405b261ecSmrgAC_DEFUN([AM_PROG_MKDIR_P], 881505b261ecSmrg[AC_PREREQ([2.60])dnl 881605b261ecSmrgAC_REQUIRE([AC_PROG_MKDIR_P])dnl 881705b261ecSmrgdnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, 881805b261ecSmrgdnl while keeping a definition of mkdir_p for backward compatibility. 881905b261ecSmrgdnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. 882005b261ecSmrgdnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of 882105b261ecSmrgdnl Makefile.ins that do not define MKDIR_P, so we do our own 882205b261ecSmrgdnl adjustment using top_builddir (which is defined more often than 882305b261ecSmrgdnl MKDIR_P). 882405b261ecSmrgAC_SUBST([mkdir_p], ["$MKDIR_P"])dnl 882505b261ecSmrgcase $mkdir_p in 882605b261ecSmrg [[\\/$]]* | ?:[[\\/]]*) ;; 882705b261ecSmrg */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 882805b261ecSmrgesac 882905b261ecSmrg]) 883005b261ecSmrg 883105b261ecSmrg# Helper functions for option handling. -*- Autoconf -*- 883205b261ecSmrg 88334642e01fSmrg# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc. 883405b261ecSmrg# 883505b261ecSmrg# This file is free software; the Free Software Foundation 883605b261ecSmrg# gives unlimited permission to copy and/or distribute it, 883705b261ecSmrg# with or without modifications, as long as this notice is preserved. 883805b261ecSmrg 88394642e01fSmrg# serial 4 884005b261ecSmrg 884105b261ecSmrg# _AM_MANGLE_OPTION(NAME) 884205b261ecSmrg# ----------------------- 884305b261ecSmrgAC_DEFUN([_AM_MANGLE_OPTION], 884405b261ecSmrg[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) 884505b261ecSmrg 884605b261ecSmrg# _AM_SET_OPTION(NAME) 884705b261ecSmrg# ------------------------------ 884805b261ecSmrg# Set option NAME. Presently that only means defining a flag for this option. 884905b261ecSmrgAC_DEFUN([_AM_SET_OPTION], 885005b261ecSmrg[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) 885105b261ecSmrg 885205b261ecSmrg# _AM_SET_OPTIONS(OPTIONS) 885305b261ecSmrg# ---------------------------------- 885405b261ecSmrg# OPTIONS is a space-separated list of Automake options. 885505b261ecSmrgAC_DEFUN([_AM_SET_OPTIONS], 88564642e01fSmrg[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) 885705b261ecSmrg 885805b261ecSmrg# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) 885905b261ecSmrg# ------------------------------------------- 886005b261ecSmrg# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 886105b261ecSmrgAC_DEFUN([_AM_IF_OPTION], 886205b261ecSmrg[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 886305b261ecSmrg 886405b261ecSmrg# Check to make sure that the build environment is sane. -*- Autoconf -*- 886505b261ecSmrg 886605b261ecSmrg# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 886705b261ecSmrg# Free Software Foundation, Inc. 886805b261ecSmrg# 886905b261ecSmrg# This file is free software; the Free Software Foundation 887005b261ecSmrg# gives unlimited permission to copy and/or distribute it, 887105b261ecSmrg# with or without modifications, as long as this notice is preserved. 887205b261ecSmrg 887305b261ecSmrg# serial 4 887405b261ecSmrg 887505b261ecSmrg# AM_SANITY_CHECK 887605b261ecSmrg# --------------- 887705b261ecSmrgAC_DEFUN([AM_SANITY_CHECK], 887805b261ecSmrg[AC_MSG_CHECKING([whether build environment is sane]) 887905b261ecSmrg# Just in case 888005b261ecSmrgsleep 1 888105b261ecSmrgecho timestamp > conftest.file 888205b261ecSmrg# Do `set' in a subshell so we don't clobber the current shell's 888305b261ecSmrg# arguments. Must try -L first in case configure is actually a 888405b261ecSmrg# symlink; some systems play weird games with the mod time of symlinks 888505b261ecSmrg# (eg FreeBSD returns the mod time of the symlink's containing 888605b261ecSmrg# directory). 888705b261ecSmrgif ( 888805b261ecSmrg set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 888905b261ecSmrg if test "$[*]" = "X"; then 889005b261ecSmrg # -L didn't work. 889105b261ecSmrg set X `ls -t $srcdir/configure conftest.file` 889205b261ecSmrg fi 889305b261ecSmrg rm -f conftest.file 889405b261ecSmrg if test "$[*]" != "X $srcdir/configure conftest.file" \ 889505b261ecSmrg && test "$[*]" != "X conftest.file $srcdir/configure"; then 889605b261ecSmrg 889705b261ecSmrg # If neither matched, then we have a broken ls. This can happen 889805b261ecSmrg # if, for instance, CONFIG_SHELL is bash and it inherits a 889905b261ecSmrg # broken ls alias from the environment. This has actually 890005b261ecSmrg # happened. Such a system could not be considered "sane". 890105b261ecSmrg AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 890205b261ecSmrgalias in your environment]) 890305b261ecSmrg fi 890405b261ecSmrg 890505b261ecSmrg test "$[2]" = conftest.file 890605b261ecSmrg ) 890705b261ecSmrgthen 890805b261ecSmrg # Ok. 890905b261ecSmrg : 891005b261ecSmrgelse 891105b261ecSmrg AC_MSG_ERROR([newly created file is older than distributed files! 891205b261ecSmrgCheck your system clock]) 891305b261ecSmrgfi 891405b261ecSmrgAC_MSG_RESULT(yes)]) 891505b261ecSmrg 891605b261ecSmrg# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 891705b261ecSmrg# 891805b261ecSmrg# This file is free software; the Free Software Foundation 891905b261ecSmrg# gives unlimited permission to copy and/or distribute it, 892005b261ecSmrg# with or without modifications, as long as this notice is preserved. 892105b261ecSmrg 892205b261ecSmrg# AM_PROG_INSTALL_STRIP 892305b261ecSmrg# --------------------- 892405b261ecSmrg# One issue with vendor `install' (even GNU) is that you can't 892505b261ecSmrg# specify the program used to strip binaries. This is especially 892605b261ecSmrg# annoying in cross-compiling environments, where the build's strip 892705b261ecSmrg# is unlikely to handle the host's binaries. 892805b261ecSmrg# Fortunately install-sh will honor a STRIPPROG variable, so we 892905b261ecSmrg# always use install-sh in `make install-strip', and initialize 893005b261ecSmrg# STRIPPROG with the value of the STRIP variable (set by the user). 893105b261ecSmrgAC_DEFUN([AM_PROG_INSTALL_STRIP], 893205b261ecSmrg[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 893305b261ecSmrg# Installed binaries are usually stripped using `strip' when the user 893405b261ecSmrg# run `make install-strip'. However `strip' might not be the right 893505b261ecSmrg# tool to use in cross-compilation environments, therefore Automake 893605b261ecSmrg# will honor the `STRIP' environment variable to overrule this program. 893705b261ecSmrgdnl Don't test for $cross_compiling = yes, because it might be `maybe'. 893805b261ecSmrgif test "$cross_compiling" != no; then 893905b261ecSmrg AC_CHECK_TOOL([STRIP], [strip], :) 894005b261ecSmrgfi 894105b261ecSmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 894205b261ecSmrgAC_SUBST([INSTALL_STRIP_PROGRAM])]) 894305b261ecSmrg 894405b261ecSmrg# Copyright (C) 2006 Free Software Foundation, Inc. 894505b261ecSmrg# 894605b261ecSmrg# This file is free software; the Free Software Foundation 894705b261ecSmrg# gives unlimited permission to copy and/or distribute it, 894805b261ecSmrg# with or without modifications, as long as this notice is preserved. 894905b261ecSmrg 895005b261ecSmrg# _AM_SUBST_NOTMAKE(VARIABLE) 895105b261ecSmrg# --------------------------- 895205b261ecSmrg# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. 895305b261ecSmrg# This macro is traced by Automake. 895405b261ecSmrgAC_DEFUN([_AM_SUBST_NOTMAKE]) 895505b261ecSmrg 895605b261ecSmrg# Check how to create a tarball. -*- Autoconf -*- 895705b261ecSmrg 895805b261ecSmrg# Copyright (C) 2004, 2005 Free Software Foundation, Inc. 895905b261ecSmrg# 896005b261ecSmrg# This file is free software; the Free Software Foundation 896105b261ecSmrg# gives unlimited permission to copy and/or distribute it, 896205b261ecSmrg# with or without modifications, as long as this notice is preserved. 896305b261ecSmrg 896405b261ecSmrg# serial 2 896505b261ecSmrg 896605b261ecSmrg# _AM_PROG_TAR(FORMAT) 896705b261ecSmrg# -------------------- 896805b261ecSmrg# Check how to create a tarball in format FORMAT. 896905b261ecSmrg# FORMAT should be one of `v7', `ustar', or `pax'. 897005b261ecSmrg# 897105b261ecSmrg# Substitute a variable $(am__tar) that is a command 897205b261ecSmrg# writing to stdout a FORMAT-tarball containing the directory 897305b261ecSmrg# $tardir. 897405b261ecSmrg# tardir=directory && $(am__tar) > result.tar 897505b261ecSmrg# 897605b261ecSmrg# Substitute a variable $(am__untar) that extract such 897705b261ecSmrg# a tarball read from stdin. 897805b261ecSmrg# $(am__untar) < result.tar 897905b261ecSmrgAC_DEFUN([_AM_PROG_TAR], 898005b261ecSmrg[# Always define AMTAR for backward compatibility. 898105b261ecSmrgAM_MISSING_PROG([AMTAR], [tar]) 898205b261ecSmrgm4_if([$1], [v7], 898305b261ecSmrg [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], 898405b261ecSmrg [m4_case([$1], [ustar],, [pax],, 898505b261ecSmrg [m4_fatal([Unknown tar format])]) 898605b261ecSmrgAC_MSG_CHECKING([how to create a $1 tar archive]) 898705b261ecSmrg# Loop over all known methods to create a tar archive until one works. 898805b261ecSmrg_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' 898905b261ecSmrg_am_tools=${am_cv_prog_tar_$1-$_am_tools} 899005b261ecSmrg# Do not fold the above two line into one, because Tru64 sh and 899105b261ecSmrg# Solaris sh will not grok spaces in the rhs of `-'. 899205b261ecSmrgfor _am_tool in $_am_tools 899305b261ecSmrgdo 899405b261ecSmrg case $_am_tool in 899505b261ecSmrg gnutar) 899605b261ecSmrg for _am_tar in tar gnutar gtar; 899705b261ecSmrg do 899805b261ecSmrg AM_RUN_LOG([$_am_tar --version]) && break 899905b261ecSmrg done 900005b261ecSmrg am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' 900105b261ecSmrg am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' 900205b261ecSmrg am__untar="$_am_tar -xf -" 900305b261ecSmrg ;; 900405b261ecSmrg plaintar) 900505b261ecSmrg # Must skip GNU tar: if it does not support --format= it doesn't create 900605b261ecSmrg # ustar tarball either. 900705b261ecSmrg (tar --version) >/dev/null 2>&1 && continue 900805b261ecSmrg am__tar='tar chf - "$$tardir"' 900905b261ecSmrg am__tar_='tar chf - "$tardir"' 901005b261ecSmrg am__untar='tar xf -' 901105b261ecSmrg ;; 901205b261ecSmrg pax) 901305b261ecSmrg am__tar='pax -L -x $1 -w "$$tardir"' 901405b261ecSmrg am__tar_='pax -L -x $1 -w "$tardir"' 901505b261ecSmrg am__untar='pax -r' 901605b261ecSmrg ;; 901705b261ecSmrg cpio) 901805b261ecSmrg am__tar='find "$$tardir" -print | cpio -o -H $1 -L' 901905b261ecSmrg am__tar_='find "$tardir" -print | cpio -o -H $1 -L' 902005b261ecSmrg am__untar='cpio -i -H $1 -d' 902105b261ecSmrg ;; 902205b261ecSmrg none) 902305b261ecSmrg am__tar=false 902405b261ecSmrg am__tar_=false 902505b261ecSmrg am__untar=false 902605b261ecSmrg ;; 902705b261ecSmrg esac 902805b261ecSmrg 902905b261ecSmrg # If the value was cached, stop now. We just wanted to have am__tar 903005b261ecSmrg # and am__untar set. 903105b261ecSmrg test -n "${am_cv_prog_tar_$1}" && break 903205b261ecSmrg 903305b261ecSmrg # tar/untar a dummy directory, and stop if the command works 903405b261ecSmrg rm -rf conftest.dir 903505b261ecSmrg mkdir conftest.dir 903605b261ecSmrg echo GrepMe > conftest.dir/file 903705b261ecSmrg AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) 903805b261ecSmrg rm -rf conftest.dir 903905b261ecSmrg if test -s conftest.tar; then 904005b261ecSmrg AM_RUN_LOG([$am__untar <conftest.tar]) 904105b261ecSmrg grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 904205b261ecSmrg fi 904305b261ecSmrgdone 904405b261ecSmrgrm -rf conftest.dir 904505b261ecSmrg 904605b261ecSmrgAC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) 904705b261ecSmrgAC_MSG_RESULT([$am_cv_prog_tar_$1])]) 904805b261ecSmrgAC_SUBST([am__tar]) 904905b261ecSmrgAC_SUBST([am__untar]) 905005b261ecSmrg]) # _AM_PROG_TAR 905105b261ecSmrg 90524642e01fSmrgdnl xorg-macros.m4. Generated from xorg-macros.m4.in xorgversion.m4 by configure. 90534642e01fSmrgdnl 90544642e01fSmrgdnl Copyright 2005-2006 Sun Microsystems, Inc. All rights reserved. 90554642e01fSmrgdnl 90564642e01fSmrgdnl Permission is hereby granted, free of charge, to any person obtaining a 90574642e01fSmrgdnl copy of this software and associated documentation files (the 90584642e01fSmrgdnl "Software"), to deal in the Software without restriction, including 90594642e01fSmrgdnl without limitation the rights to use, copy, modify, merge, publish, 90604642e01fSmrgdnl distribute, and/or sell copies of the Software, and to permit persons 90614642e01fSmrgdnl to whom the Software is furnished to do so, provided that the above 90624642e01fSmrgdnl copyright notice(s) and this permission notice appear in all copies of 90634642e01fSmrgdnl the Software and that both the above copyright notice(s) and this 90644642e01fSmrgdnl permission notice appear in supporting documentation. 90654642e01fSmrgdnl 90664642e01fSmrgdnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 90674642e01fSmrgdnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 90684642e01fSmrgdnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT 90694642e01fSmrgdnl OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 90704642e01fSmrgdnl HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL 90714642e01fSmrgdnl INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING 90724642e01fSmrgdnl FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, 90734642e01fSmrgdnl NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION 90744642e01fSmrgdnl WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 90754642e01fSmrgdnl 90764642e01fSmrgdnl Except as contained in this notice, the name of a copyright holder 90774642e01fSmrgdnl shall not be used in advertising or otherwise to promote the sale, use 90784642e01fSmrgdnl or other dealings in this Software without prior written authorization 90794642e01fSmrgdnl of the copyright holder. 90804642e01fSmrg 90814642e01fSmrg# XORG_MACROS_VERSION(required-version) 90824642e01fSmrg# ------------------------------------- 90834642e01fSmrg# Minimum version: 1.1.0 90844642e01fSmrg# 90854642e01fSmrg# If you're using a macro added in Version 1.1 or newer, include this in 90864642e01fSmrg# your configure.ac with the minimum required version, such as: 90874642e01fSmrg# XORG_MACROS_VERSION(1.1) 90884642e01fSmrg# 90894642e01fSmrg# To force at least a version with this macro defined, also add: 90904642e01fSmrg# m4_ifndef([XORG_MACROS_VERSION], [AC_FATAL([must install xorg-macros 1.1 or later before running autoconf/autogen])]) 90914642e01fSmrg# 90924642e01fSmrg# 90934642e01fSmrg# See the "minimum version" comment for each macro you use to see what 90944642e01fSmrg# version you require. 90954642e01fSmrgAC_DEFUN([XORG_MACROS_VERSION],[ 90964642e01fSmrg [XORG_MACROS_needed_version=$1 90974642e01fSmrg XORG_MACROS_needed_major=`echo $XORG_MACROS_needed_version | sed 's/\..*$//'` 90984642e01fSmrg XORG_MACROS_needed_minor=`echo $XORG_MACROS_needed_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`] 90994642e01fSmrg AC_MSG_CHECKING([if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}]) 91004642e01fSmrg [XORG_MACROS_version=1.2.0 91014642e01fSmrg XORG_MACROS_major=`echo $XORG_MACROS_version | sed 's/\..*$//'` 91024642e01fSmrg XORG_MACROS_minor=`echo $XORG_MACROS_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`] 91034642e01fSmrg if test $XORG_MACROS_major -ne $XORG_MACROS_needed_major ; then 91044642e01fSmrg AC_MSG_ERROR([configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x]) 91054642e01fSmrg fi 91064642e01fSmrg if test $XORG_MACROS_minor -lt $XORG_MACROS_needed_minor ; then 91074642e01fSmrg AC_MSG_ERROR([configure built with too old of a version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.${XORG_MACROS_minor}.0 or newer]) 91084642e01fSmrg fi 91094642e01fSmrg AC_MSG_RESULT([yes, $XORG_MACROS_version]) 91104642e01fSmrg]) # XORG_MACROS_VERSION 91114642e01fSmrg 91124642e01fSmrg# XORG_PROG_RAWCPP() 91134642e01fSmrg# ------------------ 91144642e01fSmrg# Minimum version: 1.0.0 91154642e01fSmrg# 91164642e01fSmrg# Find cpp program and necessary flags for use in pre-processing text files 91174642e01fSmrg# such as man pages and config files 91184642e01fSmrgAC_DEFUN([XORG_PROG_RAWCPP],[ 91194642e01fSmrgAC_REQUIRE([AC_PROG_CPP]) 91204642e01fSmrgAC_PATH_PROGS(RAWCPP, [cpp], [${CPP}], 91214642e01fSmrg [$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib]) 91224642e01fSmrg 91234642e01fSmrg# Check for flag to avoid builtin definitions - assumes unix is predefined, 91244642e01fSmrg# which is not the best choice for supporting other OS'es, but covers most 91254642e01fSmrg# of the ones we need for now. 91264642e01fSmrgAC_MSG_CHECKING([if $RAWCPP requires -undef]) 91274642e01fSmrgAC_LANG_CONFTEST([Does cpp redefine unix ?]) 91284642e01fSmrgif test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 91294642e01fSmrg AC_MSG_RESULT([no]) 91304642e01fSmrgelse 91314642e01fSmrg if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 91324642e01fSmrg RAWCPPFLAGS=-undef 91334642e01fSmrg AC_MSG_RESULT([yes]) 91344642e01fSmrg # under Cygwin unix is still defined even with -undef 91354642e01fSmrg elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 91364642e01fSmrg RAWCPPFLAGS="-undef -ansi" 91374642e01fSmrg AC_MSG_RESULT([yes, with -ansi]) 91384642e01fSmrg else 91394642e01fSmrg AC_MSG_ERROR([${RAWCPP} defines unix with or without -undef. I don't know what to do.]) 91404642e01fSmrg fi 91414642e01fSmrgfi 91424642e01fSmrgrm -f conftest.$ac_ext 91434642e01fSmrg 91444642e01fSmrgAC_MSG_CHECKING([if $RAWCPP requires -traditional]) 91454642e01fSmrgAC_LANG_CONFTEST([Does cpp preserve "whitespace"?]) 91464642e01fSmrgif test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 91474642e01fSmrg AC_MSG_RESULT([no]) 91484642e01fSmrgelse 91494642e01fSmrg if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 91504642e01fSmrg RAWCPPFLAGS="${RAWCPPFLAGS} -traditional" 91514642e01fSmrg AC_MSG_RESULT([yes]) 91524642e01fSmrg else 91534642e01fSmrg AC_MSG_ERROR([${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do.]) 91544642e01fSmrg fi 91554642e01fSmrgfi 91564642e01fSmrgrm -f conftest.$ac_ext 91574642e01fSmrgAC_SUBST(RAWCPPFLAGS) 91584642e01fSmrg]) # XORG_PROG_RAWCPP 91594642e01fSmrg 91604642e01fSmrg# XORG_MANPAGE_SECTIONS() 91614642e01fSmrg# ----------------------- 91624642e01fSmrg# Minimum version: 1.0.0 91634642e01fSmrg# 91644642e01fSmrg# Determine which sections man pages go in for the different man page types 91654642e01fSmrg# on this OS - replaces *ManSuffix settings in old Imake *.cf per-os files. 91664642e01fSmrg# Not sure if there's any better way than just hardcoding by OS name. 91674642e01fSmrg# Override default settings by setting environment variables 91684642e01fSmrg 91694642e01fSmrgAC_DEFUN([XORG_MANPAGE_SECTIONS],[ 91704642e01fSmrgAC_REQUIRE([AC_CANONICAL_HOST]) 91714642e01fSmrg 91724642e01fSmrgif test x$APP_MAN_SUFFIX = x ; then 91734642e01fSmrg APP_MAN_SUFFIX=1 91744642e01fSmrgfi 91754642e01fSmrgif test x$APP_MAN_DIR = x ; then 91764642e01fSmrg APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 91774642e01fSmrgfi 91784642e01fSmrg 91794642e01fSmrgif test x$LIB_MAN_SUFFIX = x ; then 91804642e01fSmrg LIB_MAN_SUFFIX=3 91814642e01fSmrgfi 91824642e01fSmrgif test x$LIB_MAN_DIR = x ; then 91834642e01fSmrg LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 91844642e01fSmrgfi 91854642e01fSmrg 91864642e01fSmrgif test x$FILE_MAN_SUFFIX = x ; then 91874642e01fSmrg case $host_os in 91884642e01fSmrg solaris*) FILE_MAN_SUFFIX=4 ;; 91894642e01fSmrg *) FILE_MAN_SUFFIX=5 ;; 91904642e01fSmrg esac 91914642e01fSmrgfi 91924642e01fSmrgif test x$FILE_MAN_DIR = x ; then 91934642e01fSmrg FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 91944642e01fSmrgfi 91954642e01fSmrg 91964642e01fSmrgif test x$MISC_MAN_SUFFIX = x ; then 91974642e01fSmrg case $host_os in 91984642e01fSmrg solaris*) MISC_MAN_SUFFIX=5 ;; 91994642e01fSmrg *) MISC_MAN_SUFFIX=7 ;; 92004642e01fSmrg esac 92014642e01fSmrgfi 92024642e01fSmrgif test x$MISC_MAN_DIR = x ; then 92034642e01fSmrg MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 92044642e01fSmrgfi 92054642e01fSmrg 92064642e01fSmrgif test x$DRIVER_MAN_SUFFIX = x ; then 92074642e01fSmrg case $host_os in 92084642e01fSmrg solaris*) DRIVER_MAN_SUFFIX=7 ;; 92094642e01fSmrg *) DRIVER_MAN_SUFFIX=4 ;; 92104642e01fSmrg esac 92114642e01fSmrgfi 92124642e01fSmrgif test x$DRIVER_MAN_DIR = x ; then 92134642e01fSmrg DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 92144642e01fSmrgfi 92154642e01fSmrg 92164642e01fSmrgif test x$ADMIN_MAN_SUFFIX = x ; then 92174642e01fSmrg case $host_os in 92184642e01fSmrg solaris*) ADMIN_MAN_SUFFIX=1m ;; 92194642e01fSmrg *) ADMIN_MAN_SUFFIX=8 ;; 92204642e01fSmrg esac 92214642e01fSmrgfi 92224642e01fSmrgif test x$ADMIN_MAN_DIR = x ; then 92234642e01fSmrg ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 92244642e01fSmrgfi 92254642e01fSmrg 92264642e01fSmrg 92274642e01fSmrgAC_SUBST([APP_MAN_SUFFIX]) 92284642e01fSmrgAC_SUBST([LIB_MAN_SUFFIX]) 92294642e01fSmrgAC_SUBST([FILE_MAN_SUFFIX]) 92304642e01fSmrgAC_SUBST([MISC_MAN_SUFFIX]) 92314642e01fSmrgAC_SUBST([DRIVER_MAN_SUFFIX]) 92324642e01fSmrgAC_SUBST([ADMIN_MAN_SUFFIX]) 92334642e01fSmrgAC_SUBST([APP_MAN_DIR]) 92344642e01fSmrgAC_SUBST([LIB_MAN_DIR]) 92354642e01fSmrgAC_SUBST([FILE_MAN_DIR]) 92364642e01fSmrgAC_SUBST([MISC_MAN_DIR]) 92374642e01fSmrgAC_SUBST([DRIVER_MAN_DIR]) 92384642e01fSmrgAC_SUBST([ADMIN_MAN_DIR]) 92394642e01fSmrg]) # XORG_MANPAGE_SECTIONS 92404642e01fSmrg 92414642e01fSmrg# XORG_CHECK_LINUXDOC 92424642e01fSmrg# ------------------- 92434642e01fSmrg# Minimum version: 1.0.0 92444642e01fSmrg# 92454642e01fSmrg# Defines the variable MAKE_TEXT if the necessary tools and 92464642e01fSmrg# files are found. $(MAKE_TEXT) blah.sgml will then produce blah.txt. 92474642e01fSmrg# Whether or not the necessary tools and files are found can be checked 92484642e01fSmrg# with the AM_CONDITIONAL "BUILD_LINUXDOC" 92494642e01fSmrgAC_DEFUN([XORG_CHECK_LINUXDOC],[ 92504642e01fSmrgif test x$XORG_SGML_PATH = x ; then 92514642e01fSmrg XORG_SGML_PATH=$prefix/share/sgml 92524642e01fSmrgfi 92534642e01fSmrgHAVE_DEFS_ENT= 92544642e01fSmrg 92554642e01fSmrgif test x"$cross_compiling" = x"yes" ; then 92564642e01fSmrg HAVE_DEFS_ENT=no 92574642e01fSmrgelse 92584642e01fSmrg AC_CHECK_FILE([$XORG_SGML_PATH/X11/defs.ent], [HAVE_DEFS_ENT=yes]) 92594642e01fSmrgfi 92604642e01fSmrg 92614642e01fSmrgAC_PATH_PROG(LINUXDOC, linuxdoc) 92624642e01fSmrgAC_PATH_PROG(PS2PDF, ps2pdf) 92634642e01fSmrg 92644642e01fSmrgAC_MSG_CHECKING([Whether to build documentation]) 92654642e01fSmrg 92664642e01fSmrgif test x$HAVE_DEFS_ENT != x && test x$LINUXDOC != x ; then 92674642e01fSmrg BUILDDOC=yes 92684642e01fSmrgelse 92694642e01fSmrg BUILDDOC=no 92704642e01fSmrgfi 92714642e01fSmrg 92724642e01fSmrgAM_CONDITIONAL(BUILD_LINUXDOC, [test x$BUILDDOC = xyes]) 92734642e01fSmrg 92744642e01fSmrgAC_MSG_RESULT([$BUILDDOC]) 92754642e01fSmrg 92764642e01fSmrgAC_MSG_CHECKING([Whether to build pdf documentation]) 92774642e01fSmrg 92784642e01fSmrgif test x$PS2PDF != x && test x$BUILD_PDFDOC != xno; then 92794642e01fSmrg BUILDPDFDOC=yes 92804642e01fSmrgelse 92814642e01fSmrg BUILDPDFDOC=no 92824642e01fSmrgfi 92834642e01fSmrg 92844642e01fSmrgAM_CONDITIONAL(BUILD_PDFDOC, [test x$BUILDPDFDOC = xyes]) 92854642e01fSmrg 92864642e01fSmrgAC_MSG_RESULT([$BUILDPDFDOC]) 92874642e01fSmrg 92884642e01fSmrgMAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH GROFF_NO_SGR=y $LINUXDOC -B txt" 92894642e01fSmrgMAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B latex --papersize=letter --output=ps" 92904642e01fSmrgMAKE_PDF="$PS2PDF" 92914642e01fSmrgMAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B html --split=0" 92924642e01fSmrg 92934642e01fSmrgAC_SUBST(MAKE_TEXT) 92944642e01fSmrgAC_SUBST(MAKE_PS) 92954642e01fSmrgAC_SUBST(MAKE_PDF) 92964642e01fSmrgAC_SUBST(MAKE_HTML) 92974642e01fSmrg]) # XORG_CHECK_LINUXDOC 92984642e01fSmrg 92994642e01fSmrg# XORG_CHECK_DOCBOOK 93004642e01fSmrg# ------------------- 93014642e01fSmrg# Minimum version: 1.0.0 93024642e01fSmrg# 93034642e01fSmrg# Checks for the ability to build output formats from SGML DocBook source. 93044642e01fSmrg# For XXX in {TXT, PDF, PS, HTML}, the AM_CONDITIONAL "BUILD_XXXDOC" 93054642e01fSmrg# indicates whether the necessary tools and files are found and, if set, 93064642e01fSmrg# $(MAKE_XXX) blah.sgml will produce blah.xxx. 93074642e01fSmrgAC_DEFUN([XORG_CHECK_DOCBOOK],[ 93084642e01fSmrgif test x$XORG_SGML_PATH = x ; then 93094642e01fSmrg XORG_SGML_PATH=$prefix/share/sgml 93104642e01fSmrgfi 93114642e01fSmrgHAVE_DEFS_ENT= 93124642e01fSmrgBUILDTXTDOC=no 93134642e01fSmrgBUILDPDFDOC=no 93144642e01fSmrgBUILDPSDOC=no 93154642e01fSmrgBUILDHTMLDOC=no 93164642e01fSmrg 93174642e01fSmrgAC_CHECK_FILE([$XORG_SGML_PATH/X11/defs.ent], [HAVE_DEFS_ENT=yes]) 93184642e01fSmrg 93194642e01fSmrgAC_PATH_PROG(DOCBOOKPS, docbook2ps) 93204642e01fSmrgAC_PATH_PROG(DOCBOOKPDF, docbook2pdf) 93214642e01fSmrgAC_PATH_PROG(DOCBOOKHTML, docbook2html) 93224642e01fSmrgAC_PATH_PROG(DOCBOOKTXT, docbook2txt) 93234642e01fSmrg 93244642e01fSmrgAC_MSG_CHECKING([Whether to build text documentation]) 93254642e01fSmrgif test x$HAVE_DEFS_ENT != x && test x$DOCBOOKTXT != x && 93264642e01fSmrg test x$BUILD_TXTDOC != xno; then 93274642e01fSmrg BUILDTXTDOC=yes 93284642e01fSmrgfi 93294642e01fSmrgAM_CONDITIONAL(BUILD_TXTDOC, [test x$BUILDTXTDOC = xyes]) 93304642e01fSmrgAC_MSG_RESULT([$BUILDTXTDOC]) 93314642e01fSmrg 93324642e01fSmrgAC_MSG_CHECKING([Whether to build PDF documentation]) 93334642e01fSmrgif test x$HAVE_DEFS_ENT != x && test x$DOCBOOKPDF != x && 93344642e01fSmrg test x$BUILD_PDFDOC != xno; then 93354642e01fSmrg BUILDPDFDOC=yes 93364642e01fSmrgfi 93374642e01fSmrgAM_CONDITIONAL(BUILD_PDFDOC, [test x$BUILDPDFDOC = xyes]) 93384642e01fSmrgAC_MSG_RESULT([$BUILDPDFDOC]) 93394642e01fSmrg 93404642e01fSmrgAC_MSG_CHECKING([Whether to build PostScript documentation]) 93414642e01fSmrgif test x$HAVE_DEFS_ENT != x && test x$DOCBOOKPS != x && 93424642e01fSmrg test x$BUILD_PSDOC != xno; then 93434642e01fSmrg BUILDPSDOC=yes 93444642e01fSmrgfi 93454642e01fSmrgAM_CONDITIONAL(BUILD_PSDOC, [test x$BUILDPSDOC = xyes]) 93464642e01fSmrgAC_MSG_RESULT([$BUILDPSDOC]) 93474642e01fSmrg 93484642e01fSmrgAC_MSG_CHECKING([Whether to build HTML documentation]) 93494642e01fSmrgif test x$HAVE_DEFS_ENT != x && test x$DOCBOOKHTML != x && 93504642e01fSmrg test x$BUILD_HTMLDOC != xno; then 93514642e01fSmrg BUILDHTMLDOC=yes 93524642e01fSmrgfi 93534642e01fSmrgAM_CONDITIONAL(BUILD_HTMLDOC, [test x$BUILDHTMLDOC = xyes]) 93544642e01fSmrgAC_MSG_RESULT([$BUILDHTMLDOC]) 93554642e01fSmrg 93564642e01fSmrgMAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKTXT" 93574642e01fSmrgMAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKPS" 93584642e01fSmrgMAKE_PDF="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKPDF" 93594642e01fSmrgMAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKHTML" 93604642e01fSmrg 93614642e01fSmrgAC_SUBST(MAKE_TEXT) 93624642e01fSmrgAC_SUBST(MAKE_PS) 93634642e01fSmrgAC_SUBST(MAKE_PDF) 93644642e01fSmrgAC_SUBST(MAKE_HTML) 93654642e01fSmrg]) # XORG_CHECK_DOCBOOK 93664642e01fSmrg 93674642e01fSmrg# XORG_CHECK_MALLOC_ZERO 93684642e01fSmrg# ---------------------- 93694642e01fSmrg# Minimum version: 1.0.0 93704642e01fSmrg# 93714642e01fSmrg# Defines {MALLOC,XMALLOC,XTMALLOC}_ZERO_CFLAGS appropriately if 93724642e01fSmrg# malloc(0) returns NULL. Packages should add one of these cflags to 93734642e01fSmrg# their AM_CFLAGS (or other appropriate *_CFLAGS) to use them. 93744642e01fSmrgAC_DEFUN([XORG_CHECK_MALLOC_ZERO],[ 93754642e01fSmrgAC_ARG_ENABLE(malloc0returnsnull, 93764642e01fSmrg AC_HELP_STRING([--enable-malloc0returnsnull], 93774642e01fSmrg [malloc(0) returns NULL (default: auto)]), 93784642e01fSmrg [MALLOC_ZERO_RETURNS_NULL=$enableval], 93794642e01fSmrg [MALLOC_ZERO_RETURNS_NULL=auto]) 93804642e01fSmrg 93814642e01fSmrgAC_MSG_CHECKING([whether malloc(0) returns NULL]) 93824642e01fSmrgif test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then 93834642e01fSmrg AC_RUN_IFELSE([ 93844642e01fSmrgchar *malloc(); 93854642e01fSmrgchar *realloc(); 93864642e01fSmrgchar *calloc(); 93874642e01fSmrgmain() { 93884642e01fSmrg char *m0, *r0, *c0, *p; 93894642e01fSmrg m0 = malloc(0); 93904642e01fSmrg p = malloc(10); 93914642e01fSmrg r0 = realloc(p,0); 93924642e01fSmrg c0 = calloc(0); 93934642e01fSmrg exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1); 93944642e01fSmrg}], 93954642e01fSmrg [MALLOC_ZERO_RETURNS_NULL=yes], 93964642e01fSmrg [MALLOC_ZERO_RETURNS_NULL=no]) 93974642e01fSmrgfi 93984642e01fSmrgAC_MSG_RESULT([$MALLOC_ZERO_RETURNS_NULL]) 93994642e01fSmrg 94004642e01fSmrgif test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 94014642e01fSmrg MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 94024642e01fSmrg XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 94034642e01fSmrg XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 94044642e01fSmrgelse 94054642e01fSmrg MALLOC_ZERO_CFLAGS="" 94064642e01fSmrg XMALLOC_ZERO_CFLAGS="" 94074642e01fSmrg XTMALLOC_ZERO_CFLAGS="" 94084642e01fSmrgfi 94094642e01fSmrg 94104642e01fSmrgAC_SUBST([MALLOC_ZERO_CFLAGS]) 94114642e01fSmrgAC_SUBST([XMALLOC_ZERO_CFLAGS]) 94124642e01fSmrgAC_SUBST([XTMALLOC_ZERO_CFLAGS]) 94134642e01fSmrg]) # XORG_CHECK_MALLOC_ZERO 94144642e01fSmrg 94154642e01fSmrg# XORG_WITH_LINT() 94164642e01fSmrg# ---------------- 94174642e01fSmrg# Minimum version: 1.1.0 94184642e01fSmrg# 94194642e01fSmrg# Sets up flags for source checkers such as lint and sparse if --with-lint 94204642e01fSmrg# is specified. (Use --with-lint=sparse for sparse.) 94214642e01fSmrg# Sets $LINT to name of source checker passed with --with-lint (default: lint) 94224642e01fSmrg# Sets $LINT_FLAGS to flags to pass to source checker 94234642e01fSmrg# Sets LINT automake conditional if enabled (default: disabled) 94244642e01fSmrg# 94254642e01fSmrgAC_DEFUN([XORG_WITH_LINT],[ 94264642e01fSmrg 94274642e01fSmrg# Allow checking code with lint, sparse, etc. 94284642e01fSmrgAC_ARG_WITH(lint, [AC_HELP_STRING([--with-lint], 94294642e01fSmrg [Use a lint-style source code checker (default: disabled)])], 94304642e01fSmrg [use_lint=$withval], [use_lint=no]) 94314642e01fSmrgif test "x$use_lint" = "xyes" ; then 94324642e01fSmrg LINT="lint" 94334642e01fSmrgelse 94344642e01fSmrg LINT="$use_lint" 94354642e01fSmrgfi 94364642e01fSmrgif test "x$LINT_FLAGS" = "x" -a "x$LINT" != "xno" ; then 94374642e01fSmrg case $LINT in 94384642e01fSmrg lint|*/lint) 94394642e01fSmrg case $host_os in 94404642e01fSmrg solaris*) 94414642e01fSmrg LINT_FLAGS="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 94424642e01fSmrg ;; 94434642e01fSmrg esac 94444642e01fSmrg ;; 94454642e01fSmrg esac 94464642e01fSmrgfi 94474642e01fSmrg 94484642e01fSmrgAC_SUBST(LINT) 94494642e01fSmrgAC_SUBST(LINT_FLAGS) 94504642e01fSmrgAM_CONDITIONAL(LINT, [test x$LINT != xno]) 94514642e01fSmrg 94524642e01fSmrg]) # XORG_WITH_LINT 94534642e01fSmrg 94544642e01fSmrg# XORG_LINT_LIBRARY(LIBNAME) 94554642e01fSmrg# -------------------------- 94564642e01fSmrg# Minimum version: 1.1.0 94574642e01fSmrg# 94584642e01fSmrg# Sets up flags for building lint libraries for checking programs that call 94594642e01fSmrg# functions in the library. 94604642e01fSmrg# Disabled by default, enable with --enable-lint-library 94614642e01fSmrg# Sets: 94624642e01fSmrg# @LINTLIB@ - name of lint library file to make 94634642e01fSmrg# MAKE_LINT_LIB - automake conditional 94644642e01fSmrg# 94654642e01fSmrg 94664642e01fSmrgAC_DEFUN([XORG_LINT_LIBRARY],[ 94674642e01fSmrgAC_REQUIRE([XORG_WITH_LINT]) 94684642e01fSmrg# Build lint "library" for more indepth checks of programs calling this library 94694642e01fSmrgAC_ARG_ENABLE(lint-library, [AC_HELP_STRING([--enable-lint-library], 94704642e01fSmrg [Create lint library (default: disabled)])], 94714642e01fSmrg [make_lint_lib=$enableval], [make_lint_lib=no]) 94724642e01fSmrgif test "x$make_lint_lib" != "xno" ; then 94734642e01fSmrg if test "x$LINT" = "xno" ; then 94744642e01fSmrg AC_MSG_ERROR([Cannot make lint library without --with-lint]) 94754642e01fSmrg fi 94764642e01fSmrg if test "x$make_lint_lib" = "xyes" ; then 94774642e01fSmrg LINTLIB=llib-l$1.ln 94784642e01fSmrg else 94794642e01fSmrg LINTLIB=$make_lint_lib 94804642e01fSmrg fi 94814642e01fSmrgfi 94824642e01fSmrgAC_SUBST(LINTLIB) 94834642e01fSmrgAM_CONDITIONAL(MAKE_LINT_LIB, [test x$make_lint_lib != xno]) 94844642e01fSmrg 94854642e01fSmrg]) # XORG_LINT_LIBRARY 94864642e01fSmrg 94874642e01fSmrg# XORG_CWARNFLAGS 94884642e01fSmrg# --------------- 94894642e01fSmrg# Minimum version: 1.2.0 94904642e01fSmrg# 94914642e01fSmrg# Defines CWARNFLAGS to enable C compiler warnings. 94924642e01fSmrg# 94934642e01fSmrgAC_DEFUN([XORG_CWARNFLAGS], [ 94944642e01fSmrgAC_REQUIRE([AC_PROG_CC]) 94954642e01fSmrgif test "x$GCC" = xyes ; then 94964642e01fSmrg CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 94974642e01fSmrg-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 94984642e01fSmrg-Wbad-function-cast" 94994642e01fSmrg case `gcc -dumpversion` in 95004642e01fSmrg 3.4.* | 4.*) 95014642e01fSmrg CWARNFLAGS+=" -Wold-style-definition -Wdeclaration-after-statement" 95024642e01fSmrg ;; 95034642e01fSmrg esac 95044642e01fSmrgelse 95054642e01fSmrg AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"]) 95064642e01fSmrg if test "x$SUNCC" = "xyes"; then 95074642e01fSmrg CWARNFLAGS="-v" 95084642e01fSmrg fi 95094642e01fSmrgfi 95104642e01fSmrgAC_SUBST(CWARNFLAGS) 95114642e01fSmrg]) # XORG_CWARNFLAGS 95124642e01fSmrgdnl Copyright 2005 Red Hat, Inc 95134642e01fSmrgdnl 95144642e01fSmrgdnl Permission to use, copy, modify, distribute, and sell this software and its 95154642e01fSmrgdnl documentation for any purpose is hereby granted without fee, provided that 95164642e01fSmrgdnl the above copyright notice appear in all copies and that both that 95174642e01fSmrgdnl copyright notice and this permission notice appear in supporting 95184642e01fSmrgdnl documentation. 95194642e01fSmrgdnl 95204642e01fSmrgdnl The above copyright notice and this permission notice shall be included 95214642e01fSmrgdnl in all copies or substantial portions of the Software. 95224642e01fSmrgdnl 95234642e01fSmrgdnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 95244642e01fSmrgdnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 95254642e01fSmrgdnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 95264642e01fSmrgdnl IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR 95274642e01fSmrgdnl OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 95284642e01fSmrgdnl ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 95294642e01fSmrgdnl OTHER DEALINGS IN THE SOFTWARE. 95304642e01fSmrgdnl 95314642e01fSmrgdnl Except as contained in this notice, the name of the copyright holders shall 95324642e01fSmrgdnl not be used in advertising or otherwise to promote the sale, use or 95334642e01fSmrgdnl other dealings in this Software without prior written authorization 95344642e01fSmrgdnl from the copyright holders. 95354642e01fSmrgdnl 95364642e01fSmrg 95374642e01fSmrg# XORG_RELEASE_VERSION 95384642e01fSmrg# -------------------- 95394642e01fSmrg# Adds --with/without-release-string and changes the PACKAGE and 95404642e01fSmrg# PACKAGE_TARNAME to use "$PACKAGE{_TARNAME}-$RELEASE_VERSION". If 95414642e01fSmrg# no option is given, PACKAGE and PACKAGE_TARNAME are unchanged. Also 95424642e01fSmrg# defines PACKAGE_VERSION_{MAJOR,MINOR,PATCHLEVEL} for modules to use. 95434642e01fSmrg 95444642e01fSmrgAC_DEFUN([XORG_RELEASE_VERSION],[ 95454642e01fSmrg AC_ARG_WITH(release-version, 95464642e01fSmrg AC_HELP_STRING([--with-release-version=STRING], 95474642e01fSmrg [Use release version string in package name]), 95484642e01fSmrg [RELEASE_VERSION="$withval"], 95494642e01fSmrg [RELEASE_VERSION=""]) 95504642e01fSmrg if test "x$RELEASE_VERSION" != "x"; then 95514642e01fSmrg PACKAGE="$PACKAGE-$RELEASE_VERSION" 95524642e01fSmrg PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 95534642e01fSmrg AC_MSG_NOTICE([Building with package name set to $PACKAGE]) 95544642e01fSmrg fi 95554642e01fSmrg AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MAJOR], 95564642e01fSmrg [`echo $PACKAGE_VERSION | cut -d . -f 1`], 95574642e01fSmrg [Major version of this package]) 95584642e01fSmrg PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 95594642e01fSmrg if test "x$PVM" = "x"; then 95604642e01fSmrg PVM="0" 95614642e01fSmrg fi 95624642e01fSmrg AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MINOR], 95634642e01fSmrg [$PVM], 95644642e01fSmrg [Minor version of this package]) 95654642e01fSmrg PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 95664642e01fSmrg if test "x$PVP" = "x"; then 95674642e01fSmrg PVP="0" 95684642e01fSmrg fi 95694642e01fSmrg AC_DEFINE_UNQUOTED([PACKAGE_VERSION_PATCHLEVEL], 95704642e01fSmrg [$PVP], 95714642e01fSmrg [Patch version of this package]) 95724642e01fSmrg]) 95734642e01fSmrg 95744642e01fSmrg# XORG_CHANGELOG() 95754642e01fSmrg# ---------------- 95764642e01fSmrg# Minimum version: 1.2.0 95774642e01fSmrg# 95784642e01fSmrg# Defines the variable CHANGELOG_CMD as the command to generate 95794642e01fSmrg# ChangeLog from git. 95804642e01fSmrg# 95814642e01fSmrgAC_DEFUN([XORG_CHANGELOG], [ 95824642e01fSmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \ 95834642e01fSmrgmv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \ 95844642e01fSmrgecho 'git directory not found: installing possibly empty changelog.' >&2)" 95854642e01fSmrgAC_SUBST([CHANGELOG_CMD]) 95864642e01fSmrg]) # XORG_CHANGELOG 95874642e01fSmrg 95884642e01fSmrgdnl $XdotOrg: lib/xtrans/xtrans.m4,v 1.6 2005/07/26 18:59:11 alanc Exp $ 95894642e01fSmrgdnl 95904642e01fSmrgdnl Copyright 2005 Sun Microsystems, Inc. All rights reserved. 95914642e01fSmrgdnl 95924642e01fSmrgdnl Permission to use, copy, modify, distribute, and sell this software and its 95934642e01fSmrgdnl documentation for any purpose is hereby granted without fee, provided that 95944642e01fSmrgdnl the above copyright notice appear in all copies and that both that 95954642e01fSmrgdnl copyright notice and this permission notice appear in supporting 95964642e01fSmrgdnl documentation. 95974642e01fSmrgdnl 95984642e01fSmrgdnl The above copyright notice and this permission notice shall be included 95994642e01fSmrgdnl in all copies or substantial portions of the Software. 96004642e01fSmrgdnl 96014642e01fSmrgdnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 96024642e01fSmrgdnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 96034642e01fSmrgdnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 96044642e01fSmrgdnl IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR 96054642e01fSmrgdnl OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 96064642e01fSmrgdnl ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 96074642e01fSmrgdnl OTHER DEALINGS IN THE SOFTWARE. 96084642e01fSmrgdnl 96094642e01fSmrgdnl Except as contained in this notice, the name of the copyright holders shall 96104642e01fSmrgdnl not be used in advertising or otherwise to promote the sale, use or 96114642e01fSmrgdnl other dealings in this Software without prior written authorization 96124642e01fSmrgdnl from the copyright holders. 96134642e01fSmrgdnl 96144642e01fSmrg 96154642e01fSmrg# XTRANS_TCP_FLAGS() 96164642e01fSmrg# ------------------ 96174642e01fSmrg# Find needed libraries for TCP sockets, and check for IPv6 support 96184642e01fSmrgAC_DEFUN([XTRANS_TCP_FLAGS],[ 96194642e01fSmrg # SVR4 hides these in libraries other than libc 96204642e01fSmrg AC_SEARCH_LIBS(socket, [socket]) 96214642e01fSmrg AC_SEARCH_LIBS(gethostbyname, [nsl]) 96224642e01fSmrg 96234642e01fSmrg # Needs to come after above checks for libsocket & libnsl for SVR4 systems 96244642e01fSmrg AC_ARG_ENABLE(ipv6, 96254642e01fSmrg AC_HELP_STRING([--enable-IPv6],[Enable IPv6 support]), 96264642e01fSmrg [IPV6CONN=$enableval], 96274642e01fSmrg [AC_CHECK_FUNC(getaddrinfo,[IPV6CONN=yes],[IPV6CONN=no])]) 96284642e01fSmrg AC_MSG_CHECKING([if IPv6 support should be built]) 96294642e01fSmrg if test "$IPV6CONN" = "yes"; then 96304642e01fSmrg AC_DEFINE(IPv6,1,[Support IPv6 for TCP connections]) 96314642e01fSmrg fi 96324642e01fSmrg AC_MSG_RESULT($IPV6CONN) 96334642e01fSmrg 96344642e01fSmrg # 4.3BSD-Reno added a new member to struct sockaddr_in 96354642e01fSmrg AC_CHECK_MEMBER([struct sockaddr_in.sin_len], 96364642e01fSmrg AC_DEFINE([BSD44SOCKETS],1, 96374642e01fSmrg [Define to 1 if `struct sockaddr_in' has a `sin_len' member]), [], [ 96384642e01fSmrg#include <sys/types.h> 96394642e01fSmrg#include <sys/socket.h> 96404642e01fSmrg#include <netinet/in.h> 96414642e01fSmrg ]) 96424642e01fSmrg 96434642e01fSmrg # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc. 96444642e01fSmrg AC_CHECK_TYPES([socklen_t], [], [], [ 96454642e01fSmrgAC_INCLUDES_DEFAULT 96464642e01fSmrg#include <sys/socket.h>]) 96474642e01fSmrg 96484642e01fSmrg]) # XTRANS_TCP_FLAGS 96494642e01fSmrg 96504642e01fSmrg# XTRANS_CONNECTION_FLAGS() 96514642e01fSmrg# ------------------------- 96524642e01fSmrg# Standard checks for which Xtrans transports to use by the Xorg packages 96534642e01fSmrg# that use Xtrans functions 96544642e01fSmrgAC_DEFUN([XTRANS_CONNECTION_FLAGS],[ 96554642e01fSmrg AC_REQUIRE([AC_CANONICAL_HOST]) 96564642e01fSmrg AC_REQUIRE([AC_TYPE_SIGNAL]) 96574642e01fSmrg [case $host_os in 96584642e01fSmrg mingw*) unixdef="no" ;; 96594642e01fSmrg *) unixdef="yes" ;; 96604642e01fSmrg esac] 96614642e01fSmrg AC_ARG_ENABLE(unix-transport, 96624642e01fSmrg AC_HELP_STRING([--enable-unix-transport],[Enable UNIX domain socket transport]), 96634642e01fSmrg [UNIXCONN=$enableval], [UNIXCONN=$unixdef]) 96644642e01fSmrg AC_MSG_CHECKING([if Xtrans should support UNIX socket connections]) 96654642e01fSmrg if test "$UNIXCONN" = "yes"; then 96664642e01fSmrg AC_DEFINE(UNIXCONN,1,[Support UNIX socket connections]) 96674642e01fSmrg fi 96684642e01fSmrg AC_MSG_RESULT($UNIXCONN) 96694642e01fSmrg AC_ARG_ENABLE(tcp-transport, 96704642e01fSmrg AC_HELP_STRING([--enable-tcp-transport],[Enable TCP socket transport]), 96714642e01fSmrg [TCPCONN=$enableval], [TCPCONN=yes]) 96724642e01fSmrg AC_MSG_CHECKING([if Xtrans should support TCP socket connections]) 96734642e01fSmrg AC_MSG_RESULT($TCPCONN) 96744642e01fSmrg if test "$TCPCONN" = "yes"; then 96754642e01fSmrg AC_DEFINE(TCPCONN,1,[Support TCP socket connections]) 96764642e01fSmrg XTRANS_TCP_FLAGS 96774642e01fSmrg fi 96784642e01fSmrg [case $host_os in 96794642e01fSmrg solaris*|sco*|sysv4*) localdef="yes" ;; 96804642e01fSmrg *) localdef="no" ;; 96814642e01fSmrg esac] 96824642e01fSmrg AC_ARG_ENABLE(local-transport, 96834642e01fSmrg AC_HELP_STRING([--enable-local-transport],[Enable os-specific local transport]), 96844642e01fSmrg [LOCALCONN=$enableval], [LOCALCONN=$localdef]) 96854642e01fSmrg AC_MSG_CHECKING([if Xtrans should support os-specific local connections]) 96864642e01fSmrg AC_MSG_RESULT($LOCALCONN) 96874642e01fSmrg if test "$LOCALCONN" = "yes"; then 96884642e01fSmrg AC_DEFINE(LOCALCONN,1,[Support os-specific local connections]) 96894642e01fSmrg fi 96904642e01fSmrg 96914642e01fSmrg]) # XTRANS_CONNECTION_FLAGS 96924642e01fSmrg 96934642e01fSmrg 96944642e01fSmrg# XTRANS_SECURE_RPC_FLAGS() 96954642e01fSmrg# ------------------------- 96964642e01fSmrg# Check for Secure RPC functions - must come after XTRANS_TCP_FLAGS 96974642e01fSmrg# so that any necessary networking libraries are already found 96984642e01fSmrgAC_DEFUN([XTRANS_SECURE_RPC_FLAGS], 96994642e01fSmrg[AC_REQUIRE([XTRANS_TCP_FLAGS]) 97004642e01fSmrg AC_ARG_ENABLE(secure-rpc, 97014642e01fSmrg AC_HELP_STRING([--enable-secure-rpc],[Enable Secure RPC]), 97024642e01fSmrg [SECURE_RPC=$enableval], [SECURE_RPC="try"]) 97034642e01fSmrg 97044642e01fSmrg if test "x$SECURE_RPC" = "xyes" -o "x$SECURE_RPC" = "xtry" ; then 97054642e01fSmrg FOUND_SECURE_RPC="no" 97064642e01fSmrg AC_CHECK_FUNCS([authdes_seccreate authdes_create], 97074642e01fSmrg [FOUND_SECURE_RPC="yes"]) 97084642e01fSmrg if test "x$FOUND_SECURE_RPC" = "xno" ; then 97094642e01fSmrg if test "x$SECURE_RPC" = "xyes" ; then 97104642e01fSmrg AC_MSG_ERROR([Secure RPC requested, but required functions not found]) 97114642e01fSmrg fi 97124642e01fSmrg SECURE_RPC="no" 97134642e01fSmrg else 97144642e01fSmrg dnl FreeBSD keeps getsecretkey in librpcsvc 97154642e01fSmrg AC_SEARCH_LIBS(getsecretkey, [rpcsvc]) 97164642e01fSmrg SECURE_RPC="yes" 97174642e01fSmrg fi 97184642e01fSmrg fi 97194642e01fSmrg AC_MSG_CHECKING([if Secure RPC authentication ("SUN-DES-1") should be supported]) 97204642e01fSmrg if test "x$SECURE_RPC" = "xyes" ; then 97214642e01fSmrg AC_DEFINE(SECURE_RPC, 1, [Support Secure RPC ("SUN-DES-1") authentication for X11 clients]) 97224642e01fSmrg fi 97234642e01fSmrg AC_MSG_RESULT($SECURE_RPC) 97244642e01fSmrg]) # XTRANS_SECURE_RPC_FLAGS 97254642e01fSmrg 97264642e01fSmrg 972705b261ecSmrgm4_include([acinclude.m4]) 9728