1782
1782
test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
1785
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
1787
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
1788
# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
1790
# Written by Gordon Matzigkeit, 1996
1792
# This file is free software; the Free Software Foundation gives
1793
# unlimited permission to copy and/or distribute it, with or without
1794
# modifications, as long as this notice is preserved.
1796
m4_define([_LT_COPYING], [dnl
1797
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
1798
# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
1800
# Written by Gordon Matzigkeit, 1996
1802
# This file is part of GNU Libtool.
1804
# GNU Libtool is free software; you can redistribute it and/or
1805
# modify it under the terms of the GNU General Public License as
1806
# published by the Free Software Foundation; either version 2 of
1807
# the License, or (at your option) any later version.
1809
# As a special exception to the GNU General Public License,
1810
# if you distribute this file as part of a program or library that
1811
# is built using GNU Libtool, you may include this file under the
1812
# same distribution terms that you use for the rest of that program.
1814
# GNU Libtool is distributed in the hope that it will be useful,
1815
# but WITHOUT ANY WARRANTY; without even the implied warranty of
1816
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1817
# GNU General Public License for more details.
1819
# You should have received a copy of the GNU General Public License
1820
# along with GNU Libtool; see the file COPYING. If not, a copy
1821
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
1822
# obtained by writing to the Free Software Foundation, Inc.,
1823
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1829
# LT_PREREQ(VERSION)
1830
# ------------------
1831
# Complain and exit if this libtool version is less that VERSION.
1832
m4_defun([LT_PREREQ],
1833
[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
1835
[m4_fatal([Libtool version $1 or higher is required],
1840
# _LT_CHECK_BUILDDIR
1841
# ------------------
1842
# Complain if the absolute build directory name contains unusual characters
1843
m4_defun([_LT_CHECK_BUILDDIR],
1846
AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
1851
# LT_INIT([OPTIONS])
1852
# ------------------
1854
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
1855
AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
1856
AC_BEFORE([$0], [LT_LANG])dnl
1857
AC_BEFORE([$0], [LT_OUTPUT])dnl
1858
AC_BEFORE([$0], [LTDL_INIT])dnl
1859
m4_require([_LT_CHECK_BUILDDIR])dnl
1861
dnl Autoconf doesn't catch unexpanded LT_ macros by default:
1862
m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
1863
m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
1864
dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
1865
dnl unless we require an AC_DEFUNed macro:
1866
AC_REQUIRE([LTOPTIONS_VERSION])dnl
1867
AC_REQUIRE([LTSUGAR_VERSION])dnl
1868
AC_REQUIRE([LTVERSION_VERSION])dnl
1869
AC_REQUIRE([LTOBSOLETE_VERSION])dnl
1870
m4_require([_LT_PROG_LTMAIN])dnl
1872
_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
1875
_LT_SET_OPTIONS([$0], [$1])
1877
# This can be used to rebuild libtool when needed
1878
LIBTOOL_DEPS="$ltmain"
1880
# Always use our own libtool.
1881
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1882
AC_SUBST(LIBTOOL)dnl
1887
m4_define([LT_INIT])
1891
AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
1892
AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
1893
dnl aclocal-1.4 backwards compatibility:
1894
dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
1895
dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
1898
# _LT_CC_BASENAME(CC)
1899
# -------------------
1900
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
1901
m4_defun([_LT_CC_BASENAME],
1902
[for cc_temp in $1""; do
1904
compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
1905
distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
1910
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1914
# _LT_FILEUTILS_DEFAULTS
1915
# ----------------------
1916
# It is okay to use these file commands and assume they have been set
1917
# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
1918
m4_defun([_LT_FILEUTILS_DEFAULTS],
1922
])# _LT_FILEUTILS_DEFAULTS
1927
m4_defun([_LT_SETUP],
1928
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
1929
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
1930
AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
1931
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
1933
_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
1935
_LT_DECL([], [host_alias], [0], [The host system])dnl
1936
_LT_DECL([], [host], [0])dnl
1937
_LT_DECL([], [host_os], [0])dnl
1939
_LT_DECL([], [build_alias], [0], [The build system])dnl
1940
_LT_DECL([], [build], [0])dnl
1941
_LT_DECL([], [build_os], [0])dnl
1943
AC_REQUIRE([AC_PROG_CC])dnl
1944
AC_REQUIRE([LT_PATH_LD])dnl
1945
AC_REQUIRE([LT_PATH_NM])dnl
1947
AC_REQUIRE([AC_PROG_LN_S])dnl
1948
test -z "$LN_S" && LN_S="ln -s"
1949
_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
1951
AC_REQUIRE([LT_CMD_MAX_LEN])dnl
1952
_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
1953
_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
1955
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1956
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
1957
m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
1958
m4_require([_LT_CMD_RELOAD])dnl
1959
m4_require([_LT_CHECK_MAGIC_METHOD])dnl
1960
m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
1961
m4_require([_LT_CMD_OLD_ARCHIVE])dnl
1962
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
1963
m4_require([_LT_WITH_SYSROOT])dnl
1965
_LT_CONFIG_LIBTOOL_INIT([
1966
# See if we are running on zsh, and set the options which allow our
1967
# commands through without removal of \ escapes INIT.
1968
if test -n "\${ZSH_VERSION+set}" ; then
1969
setopt NO_GLOB_SUBST
1972
if test -n "${ZSH_VERSION+set}" ; then
1973
setopt NO_GLOB_SUBST
1978
m4_require([_LT_TAG_COMPILER])dnl
1982
# AIX sometimes has problems with the GCC collect2 program. For some
1983
# reason, if we set the COLLECT_NAMES environment variable, the problems
1984
# vanish in a puff of smoke.
1985
if test "X${COLLECT_NAMES+set}" != Xset; then
1987
export COLLECT_NAMES
1994
can_build_shared=yes
1996
# All known linkers require a `.a' archive for static linking (except MSVC,
1997
# which needs '.lib').
2000
with_gnu_ld="$lt_cv_prog_gnu_ld"
2003
old_CFLAGS="$CFLAGS"
2005
# Set sane defaults for various variables
2006
test -z "$CC" && CC=cc
2007
test -z "$LTCC" && LTCC=$CC
2008
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
2009
test -z "$LD" && LD=ld
2010
test -z "$ac_objext" && ac_objext=o
2012
_LT_CC_BASENAME([$compiler])
2014
# Only perform the check for file, if the check method requires it
2015
test -z "$MAGIC_CMD" && MAGIC_CMD=file
2016
case $deplibs_check_method in
2018
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2024
# Use C for the default configuration in the libtool script
2025
LT_SUPPORTED_TAG([CC])
2027
_LT_LANG_DEFAULT_CONFIG
2032
# _LT_PREPARE_SED_QUOTE_VARS
2033
# --------------------------
2034
# Define a few sed substitution that help us do robust quoting.
2035
m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
2036
[# Backslashify metacharacters that are still active within
2037
# double-quoted strings.
2038
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
2040
# Same as above, but do not quote variable references.
2041
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
2043
# Sed substitution to delay expansion of an escaped shell variable in a
2044
# double_quote_subst'ed string.
2045
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2047
# Sed substitution to delay expansion of an escaped single quote.
2048
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2050
# Sed substitution to avoid accidental globbing in evaled expressions
2051
no_glob_subst='s/\*/\\\*/g'
2056
# Note that this code is called both from `configure', and `config.status'
2057
# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
2058
# `config.status' has no value for ac_aux_dir unless we are using Automake,
2059
# so we pass a copy along to make sure it has a sensible value anyway.
2060
m4_defun([_LT_PROG_LTMAIN],
2061
[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
2062
_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
2063
ltmain="$ac_aux_dir/ltmain.sh"
2068
# So that we can recreate a full libtool script including additional
2069
# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
2070
# in macros and then make a single call at the end using the `libtool'
2074
# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
2075
# ----------------------------------------
2076
# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
2077
m4_define([_LT_CONFIG_LIBTOOL_INIT],
2079
[m4_append([_LT_OUTPUT_LIBTOOL_INIT],
2084
m4_define([_LT_OUTPUT_LIBTOOL_INIT])
2087
# _LT_CONFIG_LIBTOOL([COMMANDS])
2088
# ------------------------------
2089
# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
2090
m4_define([_LT_CONFIG_LIBTOOL],
2092
[m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
2097
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
2100
# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
2101
# -----------------------------------------------------
2102
m4_defun([_LT_CONFIG_SAVE_COMMANDS],
2103
[_LT_CONFIG_LIBTOOL([$1])
2104
_LT_CONFIG_LIBTOOL_INIT([$2])
2108
# _LT_FORMAT_COMMENT([COMMENT])
2109
# -----------------------------
2110
# Add leading comment marks to the start of each line, and a trailing
2111
# full-stop to the whole comment if one is not present already.
2112
m4_define([_LT_FORMAT_COMMENT],
2114
m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
2115
[['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
2122
# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
2123
# -------------------------------------------------------------------
2124
# CONFIGNAME is the name given to the value in the libtool script.
2125
# VARNAME is the (base) name used in the configure script.
2126
# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
2127
# VARNAME. Any other value will be used directly.
2128
m4_define([_LT_DECL],
2129
[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
2130
[lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
2131
[m4_ifval([$1], [$1], [$2])])
2132
lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
2134
[lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
2135
lt_dict_add_subkey([lt_decl_dict], [$2],
2136
[tagged?], [m4_ifval([$5], [yes], [no])])])
2140
# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
2141
# --------------------------------------------------------
2142
m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
2145
# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
2146
# ------------------------------------------------
2147
m4_define([lt_decl_tag_varnames],
2148
[_lt_decl_filter([tagged?], [yes], $@)])
2151
# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
2152
# ---------------------------------------------------------
2153
m4_define([_lt_decl_filter],
2155
[0], [m4_fatal([$0: too few arguments: $#])],
2156
[1], [m4_fatal([$0: too few arguments: $#: $1])],
2157
[2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
2158
[3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
2159
[lt_dict_filter([lt_decl_dict], $@)])[]dnl
2163
# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
2164
# --------------------------------------------------
2165
m4_define([lt_decl_quote_varnames],
2166
[_lt_decl_filter([value], [1], $@)])
2169
# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
2170
# ---------------------------------------------------
2171
m4_define([lt_decl_dquote_varnames],
2172
[_lt_decl_filter([value], [2], $@)])
2175
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
2176
# ---------------------------------------------------
2177
m4_define([lt_decl_varnames_tagged],
2178
[m4_assert([$# <= 2])dnl
2179
_$0(m4_quote(m4_default([$1], [[, ]])),
2180
m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
2181
m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
2182
m4_define([_lt_decl_varnames_tagged],
2183
[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
2186
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
2187
# ------------------------------------------------
2188
m4_define([lt_decl_all_varnames],
2189
[_$0(m4_quote(m4_default([$1], [[, ]])),
2191
m4_quote(lt_decl_varnames),
2192
m4_quote(m4_shift($@))))[]dnl
2194
m4_define([_lt_decl_all_varnames],
2195
[lt_join($@, lt_decl_varnames_tagged([$1],
2196
lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
2200
# _LT_CONFIG_STATUS_DECLARE([VARNAME])
2201
# ------------------------------------
2202
# Quote a variable value, and forward it to `config.status' so that its
2203
# declaration there will have the same value as in `configure'. VARNAME
2204
# must have a single quote delimited value for this to work.
2205
m4_define([_LT_CONFIG_STATUS_DECLARE],
2206
[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
2209
# _LT_CONFIG_STATUS_DECLARATIONS
2210
# ------------------------------
2211
# We delimit libtool config variables with single quotes, so when
2212
# we write them to config.status, we have to be sure to quote all
2213
# embedded single quotes properly. In configure, this macro expands
2214
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
2216
# <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
2217
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
2218
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
2219
[m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
2224
# Output comment and list of tags supported by the script
2225
m4_defun([_LT_LIBTOOL_TAGS],
2226
[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
2227
available_tags="_LT_TAGS"dnl
2231
# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
2232
# -----------------------------------
2233
# Extract the dictionary values for VARNAME (optionally with TAG) and
2234
# expand to a commented shell variable setting:
2236
# # Some comment about what VAR is for.
2237
# visible_name=$lt_internal_name
2238
m4_define([_LT_LIBTOOL_DECLARE],
2239
[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
2240
[description])))[]dnl
2241
m4_pushdef([_libtool_name],
2242
m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
2243
m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
2244
[0], [_libtool_name=[$]$1],
2245
[1], [_libtool_name=$lt_[]$1],
2246
[2], [_libtool_name=$lt_[]$1],
2247
[_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
2248
m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
2252
# _LT_LIBTOOL_CONFIG_VARS
2253
# -----------------------
2254
# Produce commented declarations of non-tagged libtool config variables
2255
# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
2256
# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
2257
# section) are produced by _LT_LIBTOOL_TAG_VARS.
2258
m4_defun([_LT_LIBTOOL_CONFIG_VARS],
2259
[m4_foreach([_lt_var],
2260
m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
2261
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
2264
# _LT_LIBTOOL_TAG_VARS(TAG)
2265
# -------------------------
2266
m4_define([_LT_LIBTOOL_TAG_VARS],
2267
[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
2268
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
2271
# _LT_TAGVAR(VARNAME, [TAGNAME])
2272
# ------------------------------
2273
m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
2276
# _LT_CONFIG_COMMANDS
2277
# -------------------
2278
# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
2279
# variables for single and double quote escaping we saved from calls
2280
# to _LT_DECL, we can put quote escaped variables declarations
2281
# into `config.status', and then the shell code to quote escape them in
2282
# for loops in `config.status'. Finally, any additional code accumulated
2283
# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
2284
m4_defun([_LT_CONFIG_COMMANDS],
2285
[AC_PROVIDE_IFELSE([LT_OUTPUT],
2286
dnl If the libtool generation code has been placed in $CONFIG_LT,
2287
dnl instead of duplicating it all over again into config.status,
2288
dnl then we will have config.status run $CONFIG_LT later, so it
2289
dnl needs to know what name is stored there:
2290
[AC_CONFIG_COMMANDS([libtool],
2291
[$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
2292
dnl If the libtool generation code is destined for config.status,
2293
dnl expand the accumulated commands and init code now:
2294
[AC_CONFIG_COMMANDS([libtool],
2295
[_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
2296
])#_LT_CONFIG_COMMANDS
2300
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
2303
# The HP-UX ksh and POSIX shell print the target directory to stdout
2305
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
2307
sed_quote_subst='$sed_quote_subst'
2308
double_quote_subst='$double_quote_subst'
2309
delay_variable_subst='$delay_variable_subst'
2310
_LT_CONFIG_STATUS_DECLARATIONS
2312
LTCFLAGS='$LTCFLAGS'
2313
compiler='$compiler_DEFAULT'
2315
# A function that is used when there is no print builtin or printf.
2316
func_fallback_echo ()
2318
eval 'cat <<_LTECHO_EOF
2323
# Quote evaled strings.
2324
for var in lt_decl_all_varnames([[ \
2325
]], lt_decl_quote_varnames); do
2326
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
2327
*[[\\\\\\\`\\"\\\$]]*)
2328
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
2331
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
2336
# Double-quote double-evaled strings.
2337
for var in lt_decl_all_varnames([[ \
2338
]], lt_decl_dquote_varnames); do
2339
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
2340
*[[\\\\\\\`\\"\\\$]]*)
2341
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
2344
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
2349
_LT_OUTPUT_LIBTOOL_INIT
2352
# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
2353
# ------------------------------------
2354
# Generate a child script FILE with all initialization necessary to
2355
# reuse the environment learned by the parent script, and make the
2356
# file executable. If COMMENT is supplied, it is inserted after the
2357
# `#!' sequence but before initialization text begins. After this
2358
# macro, additional text can be appended to FILE to form the body of
2359
# the child script. The macro ends with non-zero status if the
2360
# file could not be fully written (such as if the disk is full).
2361
m4_ifdef([AS_INIT_GENERATED],
2362
[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
2363
[m4_defun([_LT_GENERATED_FILE_INIT],
2364
[m4_require([AS_PREPARE])]dnl
2365
[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
2367
cat >$1 <<_ASEOF || lt_write_fail=1
2369
# Generated by $as_me.
2371
SHELL=\${CONFIG_SHELL-$SHELL}
2374
cat >>$1 <<\_ASEOF || lt_write_fail=1
2377
exec AS_MESSAGE_FD>&1
2379
test $lt_write_fail = 0 && chmod +x $1[]dnl
2380
m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
2384
# This macro allows early generation of the libtool script (before
2385
# AC_OUTPUT is called), incase it is used in configure for compilation
2387
AC_DEFUN([LT_OUTPUT],
2388
[: ${CONFIG_LT=./config.lt}
2389
AC_MSG_NOTICE([creating $CONFIG_LT])
2390
_LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
2391
[# Run this file to recreate a libtool stub with the current configuration.])
2393
cat >>"$CONFIG_LT" <<\_LTEOF
2395
exec AS_MESSAGE_LOG_FD>>config.log
2398
AS_BOX([Running $as_me.])
2399
} >&AS_MESSAGE_LOG_FD
2402
\`$as_me' creates a local libtool stub from the current configuration,
2403
for use in further configure time tests before the real libtool is
2406
Usage: $[0] [[OPTIONS]]
2408
-h, --help print this help, then exit
2409
-V, --version print version number, then exit
2410
-q, --quiet do not print progress messages
2411
-d, --debug don't remove temporary files
2413
Report bugs to <bug-libtool@gnu.org>."
2416
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
2417
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
2418
configured by $[0], generated by m4_PACKAGE_STRING.
2420
Copyright (C) 2011 Free Software Foundation, Inc.
2421
This config.lt script is free software; the Free Software Foundation
2422
gives unlimited permision to copy, distribute and modify it."
2424
while test $[#] != 0
2427
--version | --v* | -V )
2428
echo "$lt_cl_version"; exit 0 ;;
2429
--help | --h* | -h )
2430
echo "$lt_cl_help"; exit 0 ;;
2431
--debug | --d* | -d )
2433
--quiet | --q* | --silent | --s* | -q )
2436
-*) AC_MSG_ERROR([unrecognized option: $[1]
2437
Try \`$[0] --help' for more information.]) ;;
2439
*) AC_MSG_ERROR([unrecognized argument: $[1]
2440
Try \`$[0] --help' for more information.]) ;;
2445
if $lt_cl_silent; then
2446
exec AS_MESSAGE_FD>/dev/null
2450
cat >>"$CONFIG_LT" <<_LTEOF
2451
_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
2454
cat >>"$CONFIG_LT" <<\_LTEOF
2455
AC_MSG_NOTICE([creating $ofile])
2456
_LT_OUTPUT_LIBTOOL_COMMANDS
2459
chmod +x "$CONFIG_LT"
2461
# configure is writing to config.log, but config.lt does its own redirection,
2462
# appending to config.log, which fails on DOS, as config.log is still kept
2463
# open by configure. Here we exec the FD to /dev/null, effectively closing
2464
# config.log, so it can be properly (re)opened and appended to by config.lt.
2466
test "$silent" = yes &&
2467
lt_config_lt_args="$lt_config_lt_args --quiet"
2468
exec AS_MESSAGE_LOG_FD>/dev/null
2469
$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
2470
exec AS_MESSAGE_LOG_FD>>config.log
2471
$lt_cl_success || AS_EXIT(1)
2477
# If TAG is the built-in tag, create an initial libtool script with a
2478
# default configuration from the untagged config vars. Otherwise add code
2479
# to config.status for appending the configuration named by TAG from the
2480
# matching tagged config vars.
2481
m4_defun([_LT_CONFIG],
2482
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2483
_LT_CONFIG_SAVE_COMMANDS([
2484
m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
2485
m4_if(_LT_TAG, [C], [
2486
# See if we are running on zsh, and set the options which allow our
2487
# commands through without removal of \ escapes.
2488
if test -n "${ZSH_VERSION+set}" ; then
2489
setopt NO_GLOB_SUBST
2493
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
2496
cat <<_LT_EOF >> "$cfgfile"
2499
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
2500
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
2501
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2502
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
2507
# ### BEGIN LIBTOOL CONFIG
2508
_LT_LIBTOOL_CONFIG_VARS
2509
_LT_LIBTOOL_TAG_VARS
2510
# ### END LIBTOOL CONFIG
2516
cat <<\_LT_EOF >> "$cfgfile"
2517
# AIX sometimes has problems with the GCC collect2 program. For some
2518
# reason, if we set the COLLECT_NAMES environment variable, the problems
2519
# vanish in a puff of smoke.
2520
if test "X${COLLECT_NAMES+set}" != Xset; then
2522
export COLLECT_NAMES
2530
# We use sed instead of cat because bash on DJGPP gets confused if
2531
# if finds mixed CR/LF and LF-only lines. Since sed operates in
2532
# text mode, it properly converts lines to CR/LF. This bash problem
2533
# is reportedly fixed, but why not run on old versions too?
2534
sed '$q' "$ltmain" >> "$cfgfile" \
2535
|| (rm -f "$cfgfile"; exit 1)
2537
_LT_PROG_REPLACE_SHELLFNS
2539
mv -f "$cfgfile" "$ofile" ||
2540
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
2543
[cat <<_LT_EOF >> "$ofile"
2545
dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
2546
dnl in a comment (ie after a #).
2547
# ### BEGIN LIBTOOL TAG CONFIG: $1
2548
_LT_LIBTOOL_TAG_VARS(_LT_TAG)
2549
# ### END LIBTOOL TAG CONFIG: $1
2556
TIMESTAMP='$TIMESTAMP'
2558
ofile='$ofile'], [])
2559
])dnl /_LT_CONFIG_SAVE_COMMANDS
2563
# LT_SUPPORTED_TAG(TAG)
2564
# ---------------------
2565
# Trace this macro to discover what tags are supported by the libtool
2566
# --tag option, using:
2567
# autoconf --trace 'LT_SUPPORTED_TAG:$1'
2568
AC_DEFUN([LT_SUPPORTED_TAG], [])
2571
# C support is built-in for now
2572
m4_define([_LT_LANG_C_enabled], [])
2573
m4_define([_LT_TAGS], [])
2578
# Enable libtool support for the given language if not already enabled.
2580
[AC_BEFORE([$0], [LT_OUTPUT])dnl
2583
[C++], [_LT_LANG(CXX)],
2584
[Go], [_LT_LANG(GO)],
2585
[Java], [_LT_LANG(GCJ)],
2586
[Fortran 77], [_LT_LANG(F77)],
2587
[Fortran], [_LT_LANG(FC)],
2588
[Windows Resource], [_LT_LANG(RC)],
2589
[m4_ifdef([_LT_LANG_]$1[_CONFIG],
2591
[m4_fatal([$0: unsupported language: "$1"])])])dnl
2595
# _LT_LANG(LANGNAME)
2596
# ------------------
2597
m4_defun([_LT_LANG],
2598
[m4_ifdef([_LT_LANG_]$1[_enabled], [],
2599
[LT_SUPPORTED_TAG([$1])dnl
2600
m4_append([_LT_TAGS], [$1 ])dnl
2601
m4_define([_LT_LANG_]$1[_enabled], [])dnl
2602
_LT_LANG_$1_CONFIG($1)])dnl
2606
m4_ifndef([AC_PROG_GO], [
2607
# NOTE: This macro has been submitted for inclusion into #
2608
# GNU Autoconf as AC_PROG_GO. When it is available in #
2609
# a released version of Autoconf we should remove this #
2610
# macro and use it instead. #
2611
m4_defun([AC_PROG_GO],
2612
[AC_LANG_PUSH(Go)dnl
2613
AC_ARG_VAR([GOC], [Go compiler command])dnl
2614
AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
2615
_AC_ARG_VAR_LDFLAGS()dnl
2616
AC_CHECK_TOOL(GOC, gccgo)
2617
if test -z "$GOC"; then
2618
if test -n "$ac_tool_prefix"; then
2619
AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
2622
if test -z "$GOC"; then
2623
AC_CHECK_PROG(GOC, gccgo, gccgo, false)
2629
# _LT_LANG_DEFAULT_CONFIG
2630
# -----------------------
2631
m4_defun([_LT_LANG_DEFAULT_CONFIG],
2632
[AC_PROVIDE_IFELSE([AC_PROG_CXX],
2634
[m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
2636
AC_PROVIDE_IFELSE([AC_PROG_F77],
2638
[m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
2640
AC_PROVIDE_IFELSE([AC_PROG_FC],
2642
[m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
2644
dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
2645
dnl pulling things in needlessly.
2646
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
2648
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
2650
[AC_PROVIDE_IFELSE([LT_PROG_GCJ],
2652
[m4_ifdef([AC_PROG_GCJ],
2653
[m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
2654
m4_ifdef([A][M_PROG_GCJ],
2655
[m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
2656
m4_ifdef([LT_PROG_GCJ],
2657
[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
2659
AC_PROVIDE_IFELSE([AC_PROG_GO],
2661
[m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
2663
AC_PROVIDE_IFELSE([LT_PROG_RC],
2665
[m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
2666
])# _LT_LANG_DEFAULT_CONFIG
2669
AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
2670
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
2671
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
2672
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
2673
AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
2674
dnl aclocal-1.4 backwards compatibility:
2675
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
2676
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
2677
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
2678
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
2679
dnl AC_DEFUN([AC_LIBTOOL_RC], [])
2684
m4_defun([_LT_TAG_COMPILER],
2685
[AC_REQUIRE([AC_PROG_CC])dnl
2687
_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
2688
_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
2689
_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
2690
_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
2692
# If no C compiler was specified, use CC.
2695
# If no C compiler flags were specified, use CFLAGS.
2696
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
2698
# Allow CC to be a program name with arguments.
2700
])# _LT_TAG_COMPILER
2703
# _LT_COMPILER_BOILERPLATE
2704
# ------------------------
2705
# Check for compiler boilerplate output or warnings with
2706
# the simple compiler test code.
2707
m4_defun([_LT_COMPILER_BOILERPLATE],
2708
[m4_require([_LT_DECL_SED])dnl
2709
ac_outfile=conftest.$ac_objext
2710
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
2711
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
2712
_lt_compiler_boilerplate=`cat conftest.err`
2714
])# _LT_COMPILER_BOILERPLATE
2717
# _LT_LINKER_BOILERPLATE
2718
# ----------------------
2719
# Check for linker boilerplate output or warnings with
2720
# the simple link test code.
2721
m4_defun([_LT_LINKER_BOILERPLATE],
2722
[m4_require([_LT_DECL_SED])dnl
2723
ac_outfile=conftest.$ac_objext
2724
echo "$lt_simple_link_test_code" >conftest.$ac_ext
2725
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
2726
_lt_linker_boilerplate=`cat conftest.err`
2728
])# _LT_LINKER_BOILERPLATE
2730
# _LT_REQUIRED_DARWIN_CHECKS
2731
# -------------------------
2732
m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
2734
rhapsody* | darwin*)
2735
AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
2736
AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
2737
AC_CHECK_TOOL([LIPO], [lipo], [:])
2738
AC_CHECK_TOOL([OTOOL], [otool], [:])
2739
AC_CHECK_TOOL([OTOOL64], [otool64], [:])
2740
_LT_DECL([], [DSYMUTIL], [1],
2741
[Tool to manipulate archived DWARF debug symbol files on Mac OS X])
2742
_LT_DECL([], [NMEDIT], [1],
2743
[Tool to change global to local symbols on Mac OS X])
2744
_LT_DECL([], [LIPO], [1],
2745
[Tool to manipulate fat objects and archives on Mac OS X])
2746
_LT_DECL([], [OTOOL], [1],
2747
[ldd/readelf like tool for Mach-O binaries on Mac OS X])
2748
_LT_DECL([], [OTOOL64], [1],
2749
[ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
2751
AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
2752
[lt_cv_apple_cc_single_mod=no
2753
if test -z "${LT_MULTI_MODULE}"; then
2754
# By default we will add the -single_module flag. You can override
2755
# by either setting the environment variable LT_MULTI_MODULE
2756
# non-empty at configure time, or by adding -multi_module to the
2758
rm -rf libconftest.dylib*
2759
echo "int foo(void){return 1;}" > conftest.c
2760
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
2761
-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
2762
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
2763
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
2765
# If there is a non-empty error log, and "single_module"
2766
# appears in it, assume the flag caused a linker warning
2767
if test -s conftest.err && $GREP single_module conftest.err; then
2768
cat conftest.err >&AS_MESSAGE_LOG_FD
2769
# Otherwise, if the output was created with a 0 exit code from
2770
# the compiler, it worked.
2771
elif test -f libconftest.dylib && test $_lt_result -eq 0; then
2772
lt_cv_apple_cc_single_mod=yes
2774
cat conftest.err >&AS_MESSAGE_LOG_FD
2776
rm -rf libconftest.dylib*
2780
AC_CACHE_CHECK([for -exported_symbols_list linker flag],
2781
[lt_cv_ld_exported_symbols_list],
2782
[lt_cv_ld_exported_symbols_list=no
2783
save_LDFLAGS=$LDFLAGS
2784
echo "_main" > conftest.sym
2785
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
2786
AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2787
[lt_cv_ld_exported_symbols_list=yes],
2788
[lt_cv_ld_exported_symbols_list=no])
2789
LDFLAGS="$save_LDFLAGS"
2792
AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
2793
[lt_cv_ld_force_load=no
2794
cat > conftest.c << _LT_EOF
2795
int forced_loaded() { return 2;}
2797
echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
2798
$LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
2799
echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
2800
$AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
2801
echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
2802
$RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
2803
cat > conftest.c << _LT_EOF
2804
int main() { return 0;}
2806
echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
2807
$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
2809
if test -s conftest.err && $GREP force_load conftest.err; then
2810
cat conftest.err >&AS_MESSAGE_LOG_FD
2811
elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
2812
lt_cv_ld_force_load=yes
2814
cat conftest.err >&AS_MESSAGE_LOG_FD
2816
rm -f conftest.err libconftest.a conftest conftest.c
2817
rm -rf conftest.dSYM
2820
rhapsody* | darwin1.[[012]])
2821
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
2823
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
2824
darwin*) # darwin 5.x on
2825
# if running on 10.5 or later, the deployment target defaults
2826
# to the OS version, if on x86, and 10.4, the deployment
2827
# target defaults to 10.4. Don't you love it?
2828
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
2829
10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
2830
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
2832
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
2834
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
2838
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
2839
_lt_dar_single_mod='$single_module'
2841
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
2842
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
2844
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
2846
if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
2847
_lt_dsymutil='~$DSYMUTIL $lib || :'
2856
# _LT_DARWIN_LINKER_FEATURES([TAG])
2857
# ---------------------------------
2858
# Checks for linker and compiler features on darwin
2859
m4_defun([_LT_DARWIN_LINKER_FEATURES],
2861
m4_require([_LT_REQUIRED_DARWIN_CHECKS])
2862
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
2863
_LT_TAGVAR(hardcode_direct, $1)=no
2864
_LT_TAGVAR(hardcode_automatic, $1)=yes
2865
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2866
if test "$lt_cv_ld_force_load" = "yes"; then
2867
_LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
2868
m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
2869
[FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
2871
_LT_TAGVAR(whole_archive_flag_spec, $1)=''
2873
_LT_TAGVAR(link_all_deplibs, $1)=yes
2874
_LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
2875
case $cc_basename in
2876
ifort*) _lt_dar_can_shared=yes ;;
2877
*) _lt_dar_can_shared=$GCC ;;
2879
if test "$_lt_dar_can_shared" = "yes"; then
2880
output_verbose_link_cmd=func_echo_all
2881
_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}"
2882
_LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
2883
_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}"
2884
_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}"
2886
[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
2887
_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}"
2888
_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}"
2892
_LT_TAGVAR(ld_shlibs, $1)=no
2896
# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
2897
# ----------------------------------
2898
# Links a minimal program and checks the executable
2899
# for the system default hardcoded library path. In most cases,
2900
# this is /usr/lib:/lib, but when the MPI compilers are used
2901
# the location of the communication and MPI libs are included too.
2902
# If we don't find anything, use the default library path according
2903
# to the aix ld manual.
2904
# Store the results from the different compilers for each TAGNAME.
2905
# Allow to override them for all tags through lt_cv_aix_libpath.
2906
m4_defun([_LT_SYS_MODULE_PATH_AIX],
2907
[m4_require([_LT_DECL_SED])dnl
2908
if test "${lt_cv_aix_libpath+set}" = set; then
2909
aix_libpath=$lt_cv_aix_libpath
2911
AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
2912
[AC_LINK_IFELSE([AC_LANG_PROGRAM],[
2913
lt_aix_libpath_sed='[
2914
/Import File Strings/,/^$/ {
2916
s/^0 *\([^ ]*\) *$/\1/
2920
_LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
2921
# Check for a 64-bit object if we didn't find anything.
2922
if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
2923
_LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
2925
if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
2926
_LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
2929
aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
2931
])# _LT_SYS_MODULE_PATH_AIX
2934
# _LT_SHELL_INIT(ARG)
2935
# -------------------
2936
m4_define([_LT_SHELL_INIT],
2937
[m4_divert_text([M4SH-INIT], [$1
2938
])])# _LT_SHELL_INIT
2942
# _LT_PROG_ECHO_BACKSLASH
2943
# -----------------------
2944
# Find how we can fake an echo command that does not interpret backslash.
2945
# In particular, with Autoconf 2.60 or later we add some code to the start
2946
# of the generated configure script which will find a shell with a builtin
2947
# printf (which we can use as an echo command).
2948
m4_defun([_LT_PROG_ECHO_BACKSLASH],
2949
[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2950
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2951
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2953
AC_MSG_CHECKING([how to print strings])
2954
# Test print first, because it will be a builtin if present.
2955
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2956
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2958
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2961
# Use this function as a fallback that always works.
2962
func_fallback_echo ()
2964
eval 'cat <<_LTECHO_EOF
2968
ECHO='func_fallback_echo'
2971
# func_echo_all arg...
2972
# Invoke $ECHO with all args, space-separated.
2979
printf*) AC_MSG_RESULT([printf]) ;;
2980
print*) AC_MSG_RESULT([print -r]) ;;
2981
*) AC_MSG_RESULT([cat]) ;;
2984
m4_ifdef([_AS_DETECT_SUGGESTED],
2985
[_AS_DETECT_SUGGESTED([
2986
test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
2987
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2988
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2989
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2990
PATH=/empty FPATH=/empty; export PATH FPATH
2991
test "X`printf %s $ECHO`" = "X$ECHO" \
2992
|| test "X`print -r -- $ECHO`" = "X$ECHO" )])])
2994
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
2995
_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
2996
])# _LT_PROG_ECHO_BACKSLASH
3001
AC_DEFUN([_LT_WITH_SYSROOT],
3002
[AC_MSG_CHECKING([for sysroot])
3003
AC_ARG_WITH([sysroot],
3004
[ --with-sysroot[=DIR] Search for dependent libraries within DIR
3005
(or the compiler's sysroot if not specified).],
3006
[], [with_sysroot=no])
3008
dnl lt_sysroot will always be passed unquoted. We quote it here
3009
dnl in case the user passed a directory name.
3011
case ${with_sysroot} in #(
3013
if test "$GCC" = yes; then
3014
lt_sysroot=`$CC --print-sysroot 2>/dev/null`
3018
lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
3023
AC_MSG_RESULT([${with_sysroot}])
3024
AC_MSG_ERROR([The sysroot must be an absolute path.])
3028
AC_MSG_RESULT([${lt_sysroot:-no}])
3029
_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
3030
[dependent libraries, and in which our libraries should be installed.])])
3034
m4_defun([_LT_ENABLE_LOCK],
3035
[AC_ARG_ENABLE([libtool-lock],
3036
[AS_HELP_STRING([--disable-libtool-lock],
3037
[avoid locking (might break parallel builds)])])
3038
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3040
# Some flags need to be propagated to the compiler or linker for good
3044
# Find out which ABI we are using.
3045
echo 'int i;' > conftest.$ac_ext
3046
if AC_TRY_EVAL(ac_compile); then
3047
case `/usr/bin/file conftest.$ac_objext` in
3059
# Find out which ABI we are using.
3060
echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
3061
if AC_TRY_EVAL(ac_compile); then
3062
if test "$lt_cv_prog_gnu_ld" = yes; then
3063
case `/usr/bin/file conftest.$ac_objext` in
3065
LD="${LD-ld} -melf32bsmip"
3068
LD="${LD-ld} -melf32bmipn32"
3071
LD="${LD-ld} -melf64bmip"
3075
case `/usr/bin/file conftest.$ac_objext` in
3091
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
3092
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
3093
# Find out which ABI we are using.
3094
echo 'int i;' > conftest.$ac_ext
3095
if AC_TRY_EVAL(ac_compile); then
3096
case `/usr/bin/file conftest.o` in
3099
x86_64-*kfreebsd*-gnu)
3100
LD="${LD-ld} -m elf_i386_fbsd"
3103
case `/usr/bin/file conftest.o` in
3105
LD="${LD-ld} -m elf32_x86_64"
3108
LD="${LD-ld} -m elf_i386"
3112
ppc64-*linux*|powerpc64-*linux*)
3113
LD="${LD-ld} -m elf32ppclinux"
3116
LD="${LD-ld} -m elf_s390"
3119
LD="${LD-ld} -m elf32_sparc"
3125
x86_64-*kfreebsd*-gnu)
3126
LD="${LD-ld} -m elf_x86_64_fbsd"
3129
LD="${LD-ld} -m elf_x86_64"
3131
ppc*-*linux*|powerpc*-*linux*)
3132
LD="${LD-ld} -m elf64ppc"
3134
s390*-*linux*|s390*-*tpf*)
3135
LD="${LD-ld} -m elf64_s390"
3138
LD="${LD-ld} -m elf64_sparc"
3148
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
3149
SAVE_CFLAGS="$CFLAGS"
3150
CFLAGS="$CFLAGS -belf"
3151
AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
3153
AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
3155
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3156
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3157
CFLAGS="$SAVE_CFLAGS"
3161
# Find out which ABI we are using.
3162
echo 'int i;' > conftest.$ac_ext
3163
if AC_TRY_EVAL(ac_compile); then
3164
case `/usr/bin/file conftest.o` in
3166
case $lt_cv_prog_gnu_ld in
3170
LD="${LD-ld} -m elf_x86_64"
3173
LD="${LD-ld} -m elf64_sparc"
3176
# GNU ld 2.21 introduced _sol2 emulations. Use them if available.
3177
if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
3182
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
3194
need_locks="$enable_libtool_lock"
3200
m4_defun([_LT_PROG_AR],
3201
[AC_CHECK_TOOLS(AR, [ar], false)
3204
_LT_DECL([], [AR], [1], [The archiver])
3205
_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
3207
AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
3208
[lt_cv_ar_at_file=no
3209
AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
3210
[echo conftest.$ac_objext > conftest.lst
3211
lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
3212
AC_TRY_EVAL([lt_ar_try])
3213
if test "$ac_status" -eq 0; then
3214
# Ensure the archiver fails upon bogus file names.
3215
rm -f conftest.$ac_objext libconftest.a
3216
AC_TRY_EVAL([lt_ar_try])
3217
if test "$ac_status" -ne 0; then
3221
rm -f conftest.* libconftest.a
3225
if test "x$lt_cv_ar_at_file" = xno; then
3228
archiver_list_spec=$lt_cv_ar_at_file
3230
_LT_DECL([], [archiver_list_spec], [1],
3231
[How to feed a file listing to the archiver])
3235
# _LT_CMD_OLD_ARCHIVE
3236
# -------------------
3237
m4_defun([_LT_CMD_OLD_ARCHIVE],
3240
AC_CHECK_TOOL(STRIP, strip, :)
3241
test -z "$STRIP" && STRIP=:
3242
_LT_DECL([], [STRIP], [1], [A symbol stripping program])
3244
AC_CHECK_TOOL(RANLIB, ranlib, :)
3245
test -z "$RANLIB" && RANLIB=:
3246
_LT_DECL([], [RANLIB], [1],
3247
[Commands used to install an old-style archive])
3249
# Determine commands to create old-style static archives.
3250
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
3251
old_postinstall_cmds='chmod 644 $oldlib'
3252
old_postuninstall_cmds=
3254
if test -n "$RANLIB"; then
3257
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
3260
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
3263
old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
3268
lock_old_archive_extraction=yes ;;
3270
lock_old_archive_extraction=no ;;
3272
_LT_DECL([], [old_postinstall_cmds], [2])
3273
_LT_DECL([], [old_postuninstall_cmds], [2])
3274
_LT_TAGDECL([], [old_archive_cmds], [2],
3275
[Commands used to build an old-style archive])
3276
_LT_DECL([], [lock_old_archive_extraction], [0],
3277
[Whether to use a lock for old archive extraction])
3278
])# _LT_CMD_OLD_ARCHIVE
3281
# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
3282
# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
3283
# ----------------------------------------------------------------
3284
# Check whether the given compiler option works
3285
AC_DEFUN([_LT_COMPILER_OPTION],
3286
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
3287
m4_require([_LT_DECL_SED])dnl
3288
AC_CACHE_CHECK([$1], [$2],
3290
m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
3291
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
3292
lt_compiler_flag="$3"
3293
# Insert the option either (1) after the last *FLAGS variable, or
3294
# (2) before a word containing "conftest.", or (3) at the end.
3295
# Note that $ac_compile itself does not contain backslashes and begins
3296
# with a dollar sign (not a hyphen), so the echo should work correctly.
3297
# The option is referenced via a variable to avoid confusing sed.
3298
lt_compile=`echo "$ac_compile" | $SED \
3299
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
3300
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
3301
-e 's:$: $lt_compiler_flag:'`
3302
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
3303
(eval "$lt_compile" 2>conftest.err)
3305
cat conftest.err >&AS_MESSAGE_LOG_FD
3306
echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
3307
if (exit $ac_status) && test -s "$ac_outfile"; then
3308
# The compiler can only warn and ignore the option if not recognized
3309
# So say no if there are warnings other than the usual output.
3310
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
3311
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
3312
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
3319
if test x"[$]$2" = xyes; then
3320
m4_if([$5], , :, [$5])
3322
m4_if([$6], , :, [$6])
3324
])# _LT_COMPILER_OPTION
3327
AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
3328
dnl aclocal-1.4 backwards compatibility:
3329
dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
3332
# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
3333
# [ACTION-SUCCESS], [ACTION-FAILURE])
3334
# ----------------------------------------------------
3335
# Check whether the given linker option works
3336
AC_DEFUN([_LT_LINKER_OPTION],
3337
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
3338
m4_require([_LT_DECL_SED])dnl
3339
AC_CACHE_CHECK([$1], [$2],
3341
save_LDFLAGS="$LDFLAGS"
3342
LDFLAGS="$LDFLAGS $3"
3343
echo "$lt_simple_link_test_code" > conftest.$ac_ext
3344
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
3345
# The linker can only warn and ignore the option if not recognized
3346
# So say no if there are warnings
3347
if test -s conftest.err; then
3348
# Append any errors to the config.log.
3349
cat conftest.err 1>&AS_MESSAGE_LOG_FD
3350
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
3351
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
3352
if diff conftest.exp conftest.er2 >/dev/null; then
3360
LDFLAGS="$save_LDFLAGS"
3363
if test x"[$]$2" = xyes; then
3364
m4_if([$4], , :, [$4])
3366
m4_if([$5], , :, [$5])
3368
])# _LT_LINKER_OPTION
3371
AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
3372
dnl aclocal-1.4 backwards compatibility:
3373
dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
3378
AC_DEFUN([LT_CMD_MAX_LEN],
3379
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3380
# find the maximum length of command line arguments
3381
AC_MSG_CHECKING([the maximum length of command line arguments])
3382
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
3388
# On DJGPP, this test can blow up pretty badly due to problems in libc
3389
# (any single argument exceeding 2000 bytes causes a buffer overrun
3390
# during glob expansion). Even if it were fixed, the result of this
3391
# check would be larger than it should be.
3392
lt_cv_sys_max_cmd_len=12288; # 12K is about right
3396
# Under GNU Hurd, this test is not required because there is
3397
# no limit to the length of command line arguments.
3398
# Libtool will interpret -1 as no limit whatsoever
3399
lt_cv_sys_max_cmd_len=-1;
3402
cygwin* | mingw* | cegcc*)
3403
# On Win9x/ME, this test blows up -- it succeeds, but takes
3404
# about 5 minutes as the teststring grows exponentially.
3405
# Worse, since 9x/ME are not pre-emptively multitasking,
3406
# you end up with a "frozen" computer, even though with patience
3407
# the test eventually succeeds (with a max line length of 256k).
3408
# Instead, let's just punt: use the minimum linelength reported by
3409
# all of the supported platforms: 8192 (on NT/2K/XP).
3410
lt_cv_sys_max_cmd_len=8192;
3414
# On MiNT this can take a long time and run out of memory.
3415
lt_cv_sys_max_cmd_len=8192;
3419
# On AmigaOS with pdksh, this test takes hours, literally.
3420
# So we just punt and use a minimum line length of 8192.
3421
lt_cv_sys_max_cmd_len=8192;
3424
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3425
# This has been around since 386BSD, at least. Likely further.
3426
if test -x /sbin/sysctl; then
3427
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3428
elif test -x /usr/sbin/sysctl; then
3429
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3431
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
3433
# And add a safety zone
3434
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3435
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3439
# We know the value 262144 and hardcode it with a safety zone (like BSD)
3440
lt_cv_sys_max_cmd_len=196608
3444
# The test takes a long time on OS/2.
3445
lt_cv_sys_max_cmd_len=8192
3449
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3450
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3451
# nice to cause kernel panics so lets avoid the loop below.
3452
# First set a reasonable default.
3453
lt_cv_sys_max_cmd_len=16384
3455
if test -x /sbin/sysconfig; then
3456
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3457
*1*) lt_cv_sys_max_cmd_len=-1 ;;
3462
lt_cv_sys_max_cmd_len=102400
3464
sysv5* | sco5v6* | sysv4.2uw2*)
3465
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3466
if test -n "$kargmax"; then
3467
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
3469
lt_cv_sys_max_cmd_len=32768
3473
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
3474
if test -n "$lt_cv_sys_max_cmd_len" && \
3475
test undefined != "$lt_cv_sys_max_cmd_len"; then
3476
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3477
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3479
# Make teststring a little bigger before we do anything with it.
3480
# a 1K string should be a reasonable start.
3481
for i in 1 2 3 4 5 6 7 8 ; do
3482
teststring=$teststring$teststring
3484
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3485
# If test is not a shell built-in, we'll probably end up computing a
3486
# maximum length that is only half of the actual maximum length, but
3488
while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
3489
= "X$teststring$teststring"; } >/dev/null 2>&1 &&
3490
test $i != 17 # 1/2 MB should be enough
3493
teststring=$teststring$teststring
3495
# Only check the string length outside the loop.
3496
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3498
# Add a significant safety factor because C++ compilers can tack on
3499
# massive amounts of additional arguments before passing them to the
3500
# linker. It appears as though 1/2 is a usable value.
3501
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3506
if test -n $lt_cv_sys_max_cmd_len ; then
3507
AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
3511
max_cmd_len=$lt_cv_sys_max_cmd_len
3512
_LT_DECL([], [max_cmd_len], [0],
3513
[What is the maximum length of a command?])
3517
AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
3518
dnl aclocal-1.4 backwards compatibility:
3519
dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
3524
m4_defun([_LT_HEADER_DLFCN],
3525
[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
3526
])# _LT_HEADER_DLFCN
3529
# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
3530
# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
3531
# ----------------------------------------------------------------
3532
m4_defun([_LT_TRY_DLOPEN_SELF],
3533
[m4_require([_LT_HEADER_DLFCN])dnl
3534
if test "$cross_compiling" = yes; then :
3537
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
3538
lt_status=$lt_dlunknown
3539
cat > conftest.$ac_ext <<_LT_EOF
3540
[#line $LINENO "configure"
3541
#include "confdefs.h"
3550
# define LT_DLGLOBAL RTLD_GLOBAL
3553
# define LT_DLGLOBAL DL_GLOBAL
3555
# define LT_DLGLOBAL 0
3559
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
3560
find out it does not work in some platform. */
3561
#ifndef LT_DLLAZY_OR_NOW
3563
# define LT_DLLAZY_OR_NOW RTLD_LAZY
3566
# define LT_DLLAZY_OR_NOW DL_LAZY
3569
# define LT_DLLAZY_OR_NOW RTLD_NOW
3572
# define LT_DLLAZY_OR_NOW DL_NOW
3574
# define LT_DLLAZY_OR_NOW 0
3581
/* When -fvisbility=hidden is used, assume the code has been annotated
3582
correspondingly for the symbols needed. */
3583
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
3584
int fnord () __attribute__((visibility("default")));
3587
int fnord () { return 42; }
3590
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
3591
int status = $lt_dlunknown;
3595
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3598
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
3599
else puts (dlerror ());
3601
/* dlclose (self); */
3609
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
3610
(./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
3613
x$lt_dlno_uscore) $1 ;;
3614
x$lt_dlneed_uscore) $2 ;;
3615
x$lt_dlunknown|x*) $3 ;;
3618
# compilation failed
3623
])# _LT_TRY_DLOPEN_SELF
3626
# LT_SYS_DLOPEN_SELF
3627
# ------------------
3628
AC_DEFUN([LT_SYS_DLOPEN_SELF],
3629
[m4_require([_LT_HEADER_DLFCN])dnl
3630
if test "x$enable_dlopen" != xyes; then
3631
enable_dlopen=unknown
3632
enable_dlopen_self=unknown
3633
enable_dlopen_self_static=unknown
3640
lt_cv_dlopen="load_add_on"
3642
lt_cv_dlopen_self=yes
3645
mingw* | pw32* | cegcc*)
3646
lt_cv_dlopen="LoadLibrary"
3651
lt_cv_dlopen="dlopen"
3656
# if libdl is installed we need to link against it
3657
AC_CHECK_LIB([dl], [dlopen],
3658
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
3661
lt_cv_dlopen_self=yes
3666
AC_CHECK_FUNC([shl_load],
3667
[lt_cv_dlopen="shl_load"],
3668
[AC_CHECK_LIB([dld], [shl_load],
3669
[lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
3670
[AC_CHECK_FUNC([dlopen],
3671
[lt_cv_dlopen="dlopen"],
3672
[AC_CHECK_LIB([dl], [dlopen],
3673
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
3674
[AC_CHECK_LIB([svld], [dlopen],
3675
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
3676
[AC_CHECK_LIB([dld], [dld_link],
3677
[lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
3686
if test "x$lt_cv_dlopen" != xno; then
3692
case $lt_cv_dlopen in
3694
save_CPPFLAGS="$CPPFLAGS"
3695
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
3697
save_LDFLAGS="$LDFLAGS"
3698
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
3701
LIBS="$lt_cv_dlopen_libs $LIBS"
3703
AC_CACHE_CHECK([whether a program can dlopen itself],
3704
lt_cv_dlopen_self, [dnl
3705
_LT_TRY_DLOPEN_SELF(
3706
lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
3707
lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
3710
if test "x$lt_cv_dlopen_self" = xyes; then
3711
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
3712
AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
3713
lt_cv_dlopen_self_static, [dnl
3714
_LT_TRY_DLOPEN_SELF(
3715
lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
3716
lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
3720
CPPFLAGS="$save_CPPFLAGS"
3721
LDFLAGS="$save_LDFLAGS"
3726
case $lt_cv_dlopen_self in
3727
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
3728
*) enable_dlopen_self=unknown ;;
3731
case $lt_cv_dlopen_self_static in
3732
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
3733
*) enable_dlopen_self_static=unknown ;;
3736
_LT_DECL([dlopen_support], [enable_dlopen], [0],
3737
[Whether dlopen is supported])
3738
_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
3739
[Whether dlopen of programs is supported])
3740
_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
3741
[Whether dlopen of statically linked programs is supported])
3742
])# LT_SYS_DLOPEN_SELF
3745
AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
3746
dnl aclocal-1.4 backwards compatibility:
3747
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
3750
# _LT_COMPILER_C_O([TAGNAME])
3751
# ---------------------------
3752
# Check to see if options -c and -o are simultaneously supported by compiler.
3753
# This macro does not hard code the compiler like AC_PROG_CC_C_O.
3754
m4_defun([_LT_COMPILER_C_O],
3755
[m4_require([_LT_DECL_SED])dnl
3756
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
3757
m4_require([_LT_TAG_COMPILER])dnl
3758
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
3759
[_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
3760
[_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
3761
$RM -r conftest 2>/dev/null
3765
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
3767
lt_compiler_flag="-o out/conftest2.$ac_objext"
3768
# Insert the option either (1) after the last *FLAGS variable, or
3769
# (2) before a word containing "conftest.", or (3) at the end.
3770
# Note that $ac_compile itself does not contain backslashes and begins
3771
# with a dollar sign (not a hyphen), so the echo should work correctly.
3772
lt_compile=`echo "$ac_compile" | $SED \
3773
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
3774
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
3775
-e 's:$: $lt_compiler_flag:'`
3776
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
3777
(eval "$lt_compile" 2>out/conftest.err)
3779
cat out/conftest.err >&AS_MESSAGE_LOG_FD
3780
echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
3781
if (exit $ac_status) && test -s out/conftest2.$ac_objext
3783
# The compiler can only warn and ignore the option if not recognized
3784
# So say no if there are warnings
3785
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
3786
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
3787
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
3788
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
3791
chmod u+w . 2>&AS_MESSAGE_LOG_FD
3793
# SGI C++ compiler will create directory out/ii_files/ for
3794
# template instantiation
3795
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
3796
$RM out/* && rmdir out
3801
_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
3802
[Does compiler simultaneously support -c and -o options?])
3803
])# _LT_COMPILER_C_O
3806
# _LT_COMPILER_FILE_LOCKS([TAGNAME])
3807
# ----------------------------------
3808
# Check to see if we can do hard links to lock some files if needed
3809
m4_defun([_LT_COMPILER_FILE_LOCKS],
3810
[m4_require([_LT_ENABLE_LOCK])dnl
3811
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
3812
_LT_COMPILER_C_O([$1])
3814
hard_links="nottested"
3815
if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
3816
# do not overwrite the value of need_locks provided by the user
3817
AC_MSG_CHECKING([if we can lock with hard links])
3820
ln conftest.a conftest.b 2>/dev/null && hard_links=no
3822
ln conftest.a conftest.b 2>&5 || hard_links=no
3823
ln conftest.a conftest.b 2>/dev/null && hard_links=no
3824
AC_MSG_RESULT([$hard_links])
3825
if test "$hard_links" = no; then
3826
AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
3832
_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
3833
])# _LT_COMPILER_FILE_LOCKS
3838
m4_defun([_LT_CHECK_OBJDIR],
3839
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
3840
[rm -f .libs 2>/dev/null
3841
mkdir .libs 2>/dev/null
3842
if test -d .libs; then
3845
# MS-DOS does not allow filenames that begin with a dot.
3848
rmdir .libs 2>/dev/null])
3849
objdir=$lt_cv_objdir
3850
_LT_DECL([], [objdir], [0],
3851
[The name of the directory that contains temporary libtool files])dnl
3852
m4_pattern_allow([LT_OBJDIR])dnl
3853
AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
3854
[Define to the sub-directory in which libtool stores uninstalled libraries.])
3855
])# _LT_CHECK_OBJDIR
3858
# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
3859
# --------------------------------------
3860
# Check hardcoding attributes.
3861
m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
3862
[AC_MSG_CHECKING([how to hardcode library paths into programs])
3863
_LT_TAGVAR(hardcode_action, $1)=
3864
if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
3865
test -n "$_LT_TAGVAR(runpath_var, $1)" ||
3866
test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
3868
# We can hardcode non-existent directories.
3869
if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
3870
# If the only mechanism to avoid hardcoding is shlibpath_var, we
3871
# have to relink, otherwise we might link with an installed library
3872
# when we should be linking with a yet-to-be-installed one
3873
## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
3874
test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
3875
# Linking always hardcodes the temporary library directory.
3876
_LT_TAGVAR(hardcode_action, $1)=relink
3878
# We can link without hardcoding, and we can hardcode nonexisting dirs.
3879
_LT_TAGVAR(hardcode_action, $1)=immediate
3882
# We cannot hardcode anything, or else we can only hardcode existing
3884
_LT_TAGVAR(hardcode_action, $1)=unsupported
3886
AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
3888
if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
3889
test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
3890
# Fast installation is not supported
3891
enable_fast_install=no
3892
elif test "$shlibpath_overrides_runpath" = yes ||
3893
test "$enable_shared" = no; then
3894
# Fast installation is not necessary
3895
enable_fast_install=needless
3897
_LT_TAGDECL([], [hardcode_action], [0],
3898
[How to hardcode a shared library path into an executable])
3899
])# _LT_LINKER_HARDCODE_LIBPATH
3904
m4_defun([_LT_CMD_STRIPLIB],
3905
[m4_require([_LT_DECL_EGREP])
3908
AC_MSG_CHECKING([whether stripping libraries is possible])
3909
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
3910
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
3911
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
3912
AC_MSG_RESULT([yes])
3914
# FIXME - insert some real tests, host_os isn't really good enough
3917
if test -n "$STRIP" ; then
3918
striplib="$STRIP -x"
3919
old_striplib="$STRIP -S"
3920
AC_MSG_RESULT([yes])
3930
_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
3931
_LT_DECL([], [striplib], [1])
3932
])# _LT_CMD_STRIPLIB
3935
# _LT_SYS_DYNAMIC_LINKER([TAG])
3936
# -----------------------------
3937
# PORTME Fill in your ld.so characteristics
3938
m4_defun([_LT_SYS_DYNAMIC_LINKER],
3939
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3940
m4_require([_LT_DECL_EGREP])dnl
3941
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
3942
m4_require([_LT_DECL_OBJDUMP])dnl
3943
m4_require([_LT_DECL_SED])dnl
3944
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
3945
AC_MSG_CHECKING([dynamic linker characteristics])
3948
if test "$GCC" = yes; then
3950
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
3951
*) lt_awk_arg="/^libraries:/" ;;
3954
mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
3955
*) lt_sed_strip_eq="s,=/,/,g" ;;
3957
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
3958
case $lt_search_path_spec in
3960
# if the path contains ";" then we assume it to be the separator
3961
# otherwise default to the standard path separator (i.e. ":") - it is
3962
# assumed that no part of a normal pathname contains ";" but that should
3963
# okay in the real world where ";" in dirpaths is itself problematic.
3964
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
3967
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
3970
# Ok, now we have the path, separated by spaces, we can step through it
3971
# and add multilib dir if necessary.
3972
lt_tmp_lt_search_path_spec=
3973
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
3974
for lt_sys_path in $lt_search_path_spec; do
3975
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
3976
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
3978
test -d "$lt_sys_path" && \
3979
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
3982
lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
3983
BEGIN {RS=" "; FS="/|\n";} {
3986
for (lt_i = NF; lt_i > 0; lt_i--) {
3987
if ($lt_i != "" && $lt_i != ".") {
3988
if ($lt_i == "..") {
3991
if (lt_count == 0) {
3992
lt_foo="/" $lt_i lt_foo;
3999
if (lt_foo != "") { lt_freq[[lt_foo]]++; }
4000
if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
4002
# AWK program above erroneously prepends '/' to C:/dos/paths
4005
mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
4006
$SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
4008
sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
4010
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4013
libname_spec='lib$name'
4021
shlibpath_overrides_runpath=unknown
4023
dynamic_linker="$host_os ld.so"
4024
sys_lib_dlsearch_path_spec="/lib /usr/lib"
4025
need_lib_prefix=unknown
4026
hardcode_into_libs=no
4028
# when you set need_version to no, make sure it does not cause -set_version
4029
# flags to be left without arguments
4030
need_version=unknown
4034
version_type=linux # correct to gnu/linux during the next big refactor
4035
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
4036
shlibpath_var=LIBPATH
4038
# AIX 3 has no versioning support, so we append a major version to the name.
4039
soname_spec='${libname}${release}${shared_ext}$major'
4043
version_type=linux # correct to gnu/linux during the next big refactor
4046
hardcode_into_libs=yes
4047
if test "$host_cpu" = ia64; then
4048
# AIX 5 supports IA64
4049
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
4050
shlibpath_var=LD_LIBRARY_PATH
4052
# With GCC up to 2.95.x, collect2 would create an import file
4053
# for dependence libraries. The import file would start with
4054
# the line `#! .'. This would cause the generated library to
4055
# depend on `.', always an invalid library. This was fixed in
4056
# development snapshots of GCC prior to 3.0.
4058
aix4 | aix4.[[01]] | aix4.[[01]].*)
4059
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4061
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
4068
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
4069
# soname into executable. Probably we can add versioning support to
4070
# collect2, so additional links can be useful in future.
4071
if test "$aix_use_runtimelinking" = yes; then
4072
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
4073
# instead of lib<name>.a to let people know that these are not
4074
# typical AIX shared libraries.
4075
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4077
# We preserve .a as extension for shared libraries through AIX4.2
4078
# and later when we are not doing run time linking.
4079
library_names_spec='${libname}${release}.a $libname.a'
4080
soname_spec='${libname}${release}${shared_ext}$major'
4082
shlibpath_var=LIBPATH
4089
# Since July 2007 AmigaOS4 officially supports .so libraries.
4090
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
4091
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4094
library_names_spec='$libname.ixlibrary $libname.a'
4095
# Create ${libname}_ixlibrary.a entries in /sys/libs.
4096
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
4102
library_names_spec='${libname}${shared_ext}'
4103
dynamic_linker="$host_os ld.so"
4104
shlibpath_var=LIBRARY_PATH
4108
version_type=linux # correct to gnu/linux during the next big refactor
4110
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4111
soname_spec='${libname}${release}${shared_ext}$major'
4112
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4113
shlibpath_var=LD_LIBRARY_PATH
4114
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4115
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4116
# the default ld.so.conf also contains /usr/contrib/lib and
4117
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4118
# libtool to hard-code these into programs
4121
cygwin* | mingw* | pw32* | cegcc*)
4122
version_type=windows
4127
case $GCC,$cc_basename in
4130
library_names_spec='$libname.dll.a'
4131
# DLL is installed to $(libdir)/../bin by postinstall_cmds
4132
postinstall_cmds='base_file=`basename \${file}`~
4133
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
4134
dldir=$destdir/`dirname \$dlpath`~
4135
test -d \$dldir || mkdir -p \$dldir~
4136
$install_prog $dir/$dlname \$dldir/$dlname~
4137
chmod a+x \$dldir/$dlname~
4138
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
4139
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
4141
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
4142
dlpath=$dir/\$dldll~
4144
shlibpath_overrides_runpath=yes
4148
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
4149
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
4151
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
4154
# MinGW DLLs use traditional 'lib' prefix
4155
soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
4158
# pw32 DLLs use 'pw' prefix rather than 'lib'
4159
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
4162
dynamic_linker='Win32 ld.exe'
4167
libname_spec='$name'
4168
soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
4169
library_names_spec='${libname}.dll.lib'
4173
sys_lib_search_path_spec=
4179
# Let DOS variable expansion print the short 8.3 style file name.
4180
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
4181
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
4184
# Convert to MSYS style.
4185
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
4188
# Convert to unix form, then to dos form, then back to unix form
4189
# but this time dos style (no spaces!) so that the unix form looks
4190
# like /cygdrive/c/PROGRA~1:/cygdr...
4191
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
4192
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
4193
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
4196
sys_lib_search_path_spec="$LIB"
4197
if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
4198
# It is most probably a Windows format PATH.
4199
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
4201
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
4203
# FIXME: find the short name or the path components, as spaces are
4204
# common. (e.g. "Program Files" -> "PROGRA~1")
4208
# DLL is installed to $(libdir)/../bin by postinstall_cmds
4209
postinstall_cmds='base_file=`basename \${file}`~
4210
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
4211
dldir=$destdir/`dirname \$dlpath`~
4212
test -d \$dldir || mkdir -p \$dldir~
4213
$install_prog $dir/$dlname \$dldir/$dlname'
4214
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
4215
dlpath=$dir/\$dldll~
4217
shlibpath_overrides_runpath=yes
4218
dynamic_linker='Win32 link.exe'
4222
# Assume MSVC wrapper
4223
library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
4224
dynamic_linker='Win32 ld.exe'
4227
# FIXME: first we should search . and the directory the executable is in
4231
darwin* | rhapsody*)
4232
dynamic_linker="$host_os dyld"
4236
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
4237
soname_spec='${libname}${release}${major}$shared_ext'
4238
shlibpath_overrides_runpath=yes
4239
shlibpath_var=DYLD_LIBRARY_PATH
4240
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
4242
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
4243
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
4247
version_type=linux # correct to gnu/linux during the next big refactor
4250
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
4251
soname_spec='${libname}${release}${shared_ext}$major'
4252
shlibpath_var=LD_LIBRARY_PATH
4255
freebsd* | dragonfly*)
4256
# DragonFly does not have aout. When/if they implement a new
4257
# versioning mechanism, adjust this.
4258
if test -x /usr/bin/objformat; then
4259
objformat=`/usr/bin/objformat`
4262
freebsd[[23]].*) objformat=aout ;;
4266
version_type=freebsd-$objformat
4267
case $version_type in
4269
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4274
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
4278
shlibpath_var=LD_LIBRARY_PATH
4281
shlibpath_overrides_runpath=yes
4283
freebsd3.[[01]]* | freebsdelf3.[[01]]*)
4284
shlibpath_overrides_runpath=yes
4285
hardcode_into_libs=yes
4287
freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
4288
freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
4289
shlibpath_overrides_runpath=no
4290
hardcode_into_libs=yes
4292
*) # from 4.6 on, and DragonFly
4293
shlibpath_overrides_runpath=yes
4294
hardcode_into_libs=yes
4300
version_type=linux # correct to gnu/linux during the next big refactor
4303
dynamic_linker="$host_os runtime_loader"
4304
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
4305
soname_spec='${libname}${release}${shared_ext}$major'
4306
shlibpath_var=LIBRARY_PATH
4307
shlibpath_overrides_runpath=yes
4308
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
4309
hardcode_into_libs=yes
4312
hpux9* | hpux10* | hpux11*)
4313
# Give a soname corresponding to the major version so that dld.sl refuses to
4314
# link against other versions.
4321
hardcode_into_libs=yes
4322
dynamic_linker="$host_os dld.so"
4323
shlibpath_var=LD_LIBRARY_PATH
4324
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4325
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4326
soname_spec='${libname}${release}${shared_ext}$major'
4327
if test "X$HPUX_IA64_MODE" = X32; then
4328
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
4330
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
4332
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4336
hardcode_into_libs=yes
4337
dynamic_linker="$host_os dld.sl"
4338
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
4339
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4340
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4341
soname_spec='${libname}${release}${shared_ext}$major'
4342
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
4343
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4347
dynamic_linker="$host_os dld.sl"
4348
shlibpath_var=SHLIB_PATH
4349
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4350
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4351
soname_spec='${libname}${release}${shared_ext}$major'
4354
# HP-UX runs *really* slowly unless shared libraries are mode 555, ...
4355
postinstall_cmds='chmod 555 $lib'
4356
# or fails outright, so override atomically:
4357
install_override_mode=555
4361
version_type=linux # correct to gnu/linux during the next big refactor
4364
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
4365
soname_spec='${libname}${release}${shared_ext}$major'
4366
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
4367
shlibpath_var=LD_LIBRARY_PATH
4368
shlibpath_overrides_runpath=no
4369
hardcode_into_libs=yes
4372
irix5* | irix6* | nonstopux*)
4374
nonstopux*) version_type=nonstopux ;;
4376
if test "$lt_cv_prog_gnu_ld" = yes; then
4377
version_type=linux # correct to gnu/linux during the next big refactor
4384
soname_spec='${libname}${release}${shared_ext}$major'
4385
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
4387
irix5* | nonstopux*)
4391
case $LD in # libtool.m4 will add one of these switches to LD
4392
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
4393
libsuff= shlibsuff= libmagic=32-bit;;
4394
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
4395
libsuff=32 shlibsuff=N32 libmagic=N32;;
4396
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
4397
libsuff=64 shlibsuff=64 libmagic=64-bit;;
4398
*) libsuff= shlibsuff= libmagic=never-match;;
4402
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4403
shlibpath_overrides_runpath=no
4404
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4405
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4406
hardcode_into_libs=yes
4409
# No shared lib support for Linux oldld, aout, or coff.
4410
linux*oldld* | linux*aout* | linux*coff*)
4414
# This must be glibc/ELF.
4415
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4416
version_type=linux # correct to gnu/linux during the next big refactor
4419
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4420
soname_spec='${libname}${release}${shared_ext}$major'
4421
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4422
shlibpath_var=LD_LIBRARY_PATH
4423
shlibpath_overrides_runpath=no
4425
# Some binutils ld are patched to set DT_RUNPATH
4426
AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
4427
[lt_cv_shlibpath_overrides_runpath=no
4428
save_LDFLAGS=$LDFLAGS
4430
eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
4431
LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
4432
AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
4433
[AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
4434
[lt_cv_shlibpath_overrides_runpath=yes])])
4435
LDFLAGS=$save_LDFLAGS
4438
shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
4440
# This implies no fast_install, which is unacceptable.
4441
# Some rework will be needed to allow for fast_install
4442
# before this can be enabled.
4443
hardcode_into_libs=yes
4445
# Append ld.so.conf contents to the search path
4446
if test -f /etc/ld.so.conf; then
4447
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
4448
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
4451
# We used to test for /lib/ld.so.1 and disable shared libraries on
4452
# powerpc, because MkLinux only supported shared libraries with the
4453
# GNU dynamic linker. Since this was broken with cross compilers,
4454
# most powerpc-linux boxes support dynamic linking these days and
4455
# people can always --disable-shared, the test was removed, and we
4456
# assume the GNU/Linux dynamic linker is in use.
4457
dynamic_linker='GNU/Linux ld.so'
4464
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
4465
soname_spec='${libname}${release}${shared_ext}$major'
4466
shlibpath_var=LD_LIBRARY_PATH
4467
shlibpath_overrides_runpath=no
4468
hardcode_into_libs=yes
4469
dynamic_linker='NetBSD ld.elf_so'
4476
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4477
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4478
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4479
dynamic_linker='NetBSD (a.out) ld.so'
4481
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
4482
soname_spec='${libname}${release}${shared_ext}$major'
4483
dynamic_linker='NetBSD ld.elf_so'
4485
shlibpath_var=LD_LIBRARY_PATH
4486
shlibpath_overrides_runpath=yes
4487
hardcode_into_libs=yes
4491
version_type=linux # correct to gnu/linux during the next big refactor
4492
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4493
shlibpath_var=LD_LIBRARY_PATH
4494
shlibpath_overrides_runpath=yes
4501
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4502
soname_spec='${libname}${release}${shared_ext}$major'
4503
shlibpath_var=LD_LIBRARY_PATH
4504
shlibpath_overrides_runpath=no
4505
hardcode_into_libs=yes
4506
dynamic_linker='ldqnx.so'
4511
sys_lib_dlsearch_path_spec="/usr/lib"
4513
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
4515
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
4516
*) need_version=no ;;
4518
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4519
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4520
shlibpath_var=LD_LIBRARY_PATH
4521
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4523
openbsd2.[[89]] | openbsd2.[[89]].*)
4524
shlibpath_overrides_runpath=no
4527
shlibpath_overrides_runpath=yes
4531
shlibpath_overrides_runpath=yes
4536
libname_spec='$name'
4539
library_names_spec='$libname${shared_ext} $libname.a'
4540
dynamic_linker='OS/2 ld.exe'
4541
shlibpath_var=LIBPATH
4544
osf3* | osf4* | osf5*)
4548
soname_spec='${libname}${release}${shared_ext}$major'
4549
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4550
shlibpath_var=LD_LIBRARY_PATH
4551
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4552
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4560
version_type=linux # correct to gnu/linux during the next big refactor
4563
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4564
soname_spec='${libname}${release}${shared_ext}$major'
4565
shlibpath_var=LD_LIBRARY_PATH
4566
shlibpath_overrides_runpath=yes
4567
hardcode_into_libs=yes
4568
# ldd complains unless libraries are executable
4569
postinstall_cmds='chmod +x $lib'
4574
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4575
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4576
shlibpath_var=LD_LIBRARY_PATH
4577
shlibpath_overrides_runpath=yes
4578
if test "$with_gnu_ld" = yes; then
4585
version_type=linux # correct to gnu/linux during the next big refactor
4586
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4587
soname_spec='${libname}${release}${shared_ext}$major'
4588
shlibpath_var=LD_LIBRARY_PATH
4589
case $host_vendor in
4591
shlibpath_overrides_runpath=no
4593
runpath_var=LD_RUN_PATH
4601
shlibpath_overrides_runpath=no
4602
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
4608
if test -d /usr/nec ;then
4609
version_type=linux # correct to gnu/linux during the next big refactor
4610
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
4611
soname_spec='$libname${shared_ext}.$major'
4612
shlibpath_var=LD_LIBRARY_PATH
4616
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4617
version_type=freebsd-elf
4620
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4621
soname_spec='${libname}${release}${shared_ext}$major'
4622
shlibpath_var=LD_LIBRARY_PATH
4623
shlibpath_overrides_runpath=yes
4624
hardcode_into_libs=yes
4625
if test "$with_gnu_ld" = yes; then
4626
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
4628
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
4631
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
4635
sys_lib_dlsearch_path_spec='/usr/lib'
4639
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
4640
version_type=linux # correct to gnu/linux during the next big refactor
4643
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4644
shlibpath_var=LD_LIBRARY_PATH
4645
shlibpath_overrides_runpath=no
4646
hardcode_into_libs=yes
4650
version_type=linux # correct to gnu/linux during the next big refactor
4651
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4652
soname_spec='${libname}${release}${shared_ext}$major'
4653
shlibpath_var=LD_LIBRARY_PATH
4660
AC_MSG_RESULT([$dynamic_linker])
4661
test "$dynamic_linker" = no && can_build_shared=no
4663
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
4664
if test "$GCC" = yes; then
4665
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
4668
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
4669
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
4671
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
4672
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
4675
_LT_DECL([], [variables_saved_for_relink], [1],
4676
[Variables whose values should be saved in libtool wrapper scripts and
4677
restored at link time])
4678
_LT_DECL([], [need_lib_prefix], [0],
4679
[Do we need the "lib" prefix for modules?])
4680
_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
4681
_LT_DECL([], [version_type], [0], [Library versioning type])
4682
_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
4683
_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
4684
_LT_DECL([], [shlibpath_overrides_runpath], [0],
4685
[Is shlibpath searched before the hard-coded library search path?])
4686
_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
4687
_LT_DECL([], [library_names_spec], [1],
4688
[[List of archive names. First name is the real one, the rest are links.
4689
The last name is the one that the linker finds with -lNAME]])
4690
_LT_DECL([], [soname_spec], [1],
4691
[[The coded name of the library, if different from the real name]])
4692
_LT_DECL([], [install_override_mode], [1],
4693
[Permission mode override for installation of shared libraries])
4694
_LT_DECL([], [postinstall_cmds], [2],
4695
[Command to use after installation of a shared archive])
4696
_LT_DECL([], [postuninstall_cmds], [2],
4697
[Command to use after uninstallation of a shared archive])
4698
_LT_DECL([], [finish_cmds], [2],
4699
[Commands used to finish a libtool library installation in a directory])
4700
_LT_DECL([], [finish_eval], [1],
4701
[[As "finish_cmds", except a single script fragment to be evaled but
4703
_LT_DECL([], [hardcode_into_libs], [0],
4704
[Whether we should hardcode library paths into libraries])
4705
_LT_DECL([], [sys_lib_search_path_spec], [2],
4706
[Compile-time system search path for libraries])
4707
_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
4708
[Run-time system search path for libraries])
4709
])# _LT_SYS_DYNAMIC_LINKER
4712
# _LT_PATH_TOOL_PREFIX(TOOL)
4713
# --------------------------
4714
# find a file program which can recognize shared library
4715
AC_DEFUN([_LT_PATH_TOOL_PREFIX],
4716
[m4_require([_LT_DECL_EGREP])dnl
4717
AC_MSG_CHECKING([for $1])
4718
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
4720
[[\\/*] | ?:[\\/]*])
4721
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4724
lt_save_MAGIC_CMD="$MAGIC_CMD"
4725
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4726
dnl $ac_dummy forces splitting on constant user-supplied paths.
4727
dnl POSIX.2 word splitting is done only on the output of word expansions,
4728
dnl not every word. This closes a longstanding sh security hole.
4729
ac_dummy="m4_if([$2], , $PATH, [$2])"
4730
for ac_dir in $ac_dummy; do
4732
test -z "$ac_dir" && ac_dir=.
4733
if test -f $ac_dir/$1; then
4734
lt_cv_path_MAGIC_CMD="$ac_dir/$1"
4735
if test -n "$file_magic_test_file"; then
4736
case $deplibs_check_method in
4738
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
4739
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4740
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4741
$EGREP "$file_magic_regex" > /dev/null; then
4746
*** Warning: the command libtool uses to detect shared libraries,
4747
*** $file_magic_cmd, produces output that libtool cannot recognize.
4748
*** The result is that libtool may fail to recognize shared libraries
4749
*** as such. This will affect the creation of libtool libraries that
4750
*** depend on shared libraries, but programs linked with such libtool
4751
*** libraries will work regardless of this problem. Nevertheless, you
4752
*** may want to report the problem to your system manager and/or to
4753
*** bug-libtool@gnu.org
4763
MAGIC_CMD="$lt_save_MAGIC_CMD"
4766
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4767
if test -n "$MAGIC_CMD"; then
4768
AC_MSG_RESULT($MAGIC_CMD)
4772
_LT_DECL([], [MAGIC_CMD], [0],
4773
[Used to examine libraries when file_magic_cmd begins with "file"])dnl
4774
])# _LT_PATH_TOOL_PREFIX
4777
AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
4778
dnl aclocal-1.4 backwards compatibility:
4779
dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
4784
# find a file program which can recognize a shared library
4785
m4_defun([_LT_PATH_MAGIC],
4786
[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
4787
if test -z "$lt_cv_path_MAGIC_CMD"; then
4788
if test -n "$ac_tool_prefix"; then
4789
_LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
4799
# find the pathname to the GNU or non-GNU linker
4800
AC_DEFUN([LT_PATH_LD],
4801
[AC_REQUIRE([AC_PROG_CC])dnl
4802
AC_REQUIRE([AC_CANONICAL_HOST])dnl
4803
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
4804
m4_require([_LT_DECL_SED])dnl
4805
m4_require([_LT_DECL_EGREP])dnl
4806
m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
4808
AC_ARG_WITH([gnu-ld],
4809
[AS_HELP_STRING([--with-gnu-ld],
4810
[assume the C compiler uses GNU ld @<:@default=no@:>@])],
4811
[test "$withval" = no || with_gnu_ld=yes],
4812
[with_gnu_ld=no])dnl
4815
if test "$GCC" = yes; then
4816
# Check if gcc -print-prog-name=ld gives a path.
4817
AC_MSG_CHECKING([for ld used by $CC])
4820
# gcc leaves a trailing carriage return which upsets mingw
4821
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4823
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4826
# Accept absolute paths.
4827
[[\\/]]* | ?:[[\\/]]*)
4828
re_direlt='/[[^/]][[^/]]*/\.\./'
4829
# Canonicalize the pathname of ld
4830
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4831
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4832
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4834
test -z "$LD" && LD="$ac_prog"
4837
# If it fails, then pretend we aren't using GCC.
4841
# If it is relative, then search for the first ld in PATH.
4845
elif test "$with_gnu_ld" = yes; then
4846
AC_MSG_CHECKING([for GNU ld])
4848
AC_MSG_CHECKING([for non-GNU ld])
4850
AC_CACHE_VAL(lt_cv_path_LD,
4851
[if test -z "$LD"; then
4852
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4853
for ac_dir in $PATH; do
4855
test -z "$ac_dir" && ac_dir=.
4856
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4857
lt_cv_path_LD="$ac_dir/$ac_prog"
4858
# Check to see if the program is GNU ld. I'd rather use --version,
4859
# but apparently some variants of GNU ld only accept -v.
4860
# Break only if it was the GNU/non-GNU ld that we prefer.
4861
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4862
*GNU* | *'with BFD'*)
4863
test "$with_gnu_ld" != no && break
4866
test "$with_gnu_ld" != yes && break
4873
lt_cv_path_LD="$LD" # Let the user override the test with a path.
4876
if test -n "$LD"; then
4881
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
4885
_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
4889
AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
4890
AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
4891
dnl aclocal-1.4 backwards compatibility:
4892
dnl AC_DEFUN([AM_PROG_LD], [])
4893
dnl AC_DEFUN([AC_PROG_LD], [])
4898
m4_defun([_LT_PATH_LD_GNU],
4899
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
4900
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
4901
case `$LD -v 2>&1 </dev/null` in
4902
*GNU* | *'with BFD'*)
4903
lt_cv_prog_gnu_ld=yes
4906
lt_cv_prog_gnu_ld=no
4909
with_gnu_ld=$lt_cv_prog_gnu_ld
4915
# find reload flag for linker
4916
# -- PORTME Some linkers may need a different reload flag.
4917
m4_defun([_LT_CMD_RELOAD],
4918
[AC_CACHE_CHECK([for $LD option to reload object files],
4919
lt_cv_ld_reload_flag,
4920
[lt_cv_ld_reload_flag='-r'])
4921
reload_flag=$lt_cv_ld_reload_flag
4922
case $reload_flag in
4924
*) reload_flag=" $reload_flag" ;;
4926
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4928
cygwin* | mingw* | pw32* | cegcc*)
4929
if test "$GCC" != yes; then
4934
if test "$GCC" = yes; then
4935
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4937
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4941
_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
4942
_LT_TAGDECL([], [reload_cmds], [2])dnl
4946
# _LT_CHECK_MAGIC_METHOD
4947
# ----------------------
4948
# how to check for library dependencies
4949
# -- PORTME fill in with the dynamic library characteristics
4950
m4_defun([_LT_CHECK_MAGIC_METHOD],
4951
[m4_require([_LT_DECL_EGREP])
4952
m4_require([_LT_DECL_OBJDUMP])
4953
AC_CACHE_CHECK([how to recognize dependent libraries],
4954
lt_cv_deplibs_check_method,
4955
[lt_cv_file_magic_cmd='$MAGIC_CMD'
4956
lt_cv_file_magic_test_file=
4957
lt_cv_deplibs_check_method='unknown'
4958
# Need to set the preceding variable on all platforms that support
4959
# interlibrary dependencies.
4960
# 'none' -- dependencies not supported.
4961
# `unknown' -- same as none, but documents that we really don't know.
4962
# 'pass_all' -- all dependencies passed with no checks.
4963
# 'test_compile' -- check by making test program.
4964
# 'file_magic [[regex]]' -- check by looking for files in library path
4965
# which responds to the $file_magic_cmd with a given extended regex.
4966
# If you have `file' or equivalent on your system and you're not sure
4967
# whether `pass_all' will *always* work, you probably want this one.
4971
lt_cv_deplibs_check_method=pass_all
4975
lt_cv_deplibs_check_method=pass_all
4979
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
4980
lt_cv_file_magic_cmd='/usr/bin/file -L'
4981
lt_cv_file_magic_test_file=/shlib/libc.so
4985
# func_win32_libid is a shell function defined in ltmain.sh
4986
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4987
lt_cv_file_magic_cmd='func_win32_libid'
4991
# Base MSYS/MinGW do not provide the 'file' command needed by
4992
# func_win32_libid shell function, so use a weaker test based on 'objdump',
4993
# unless we find 'file', for example because we are cross-compiling.
4994
# func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4995
if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4996
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4997
lt_cv_file_magic_cmd='func_win32_libid'
4999
# Keep this pattern in sync with the one in func_win32_libid.
5000
lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5001
lt_cv_file_magic_cmd='$OBJDUMP -f'
5006
# use the weaker test based on 'objdump'. See mingw*.
5007
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5008
lt_cv_file_magic_cmd='$OBJDUMP -f'
5011
darwin* | rhapsody*)
5012
lt_cv_deplibs_check_method=pass_all
5015
freebsd* | dragonfly*)
5016
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5019
# Not sure whether the presence of OpenBSD here was a mistake.
5020
# Let's accept both of them until this is cleared up.
5021
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
5022
lt_cv_file_magic_cmd=/usr/bin/file
5023
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5027
lt_cv_deplibs_check_method=pass_all
5032
lt_cv_deplibs_check_method=pass_all
5035
hpux10.20* | hpux11*)
5036
lt_cv_file_magic_cmd=/usr/bin/file
5039
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
5040
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5043
[lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]']
5044
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5047
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
5048
lt_cv_file_magic_test_file=/usr/lib/libc.sl
5054
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5055
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
5058
irix5* | irix6* | nonstopux*)
5060
*-32|*"-32 ") libmagic=32-bit;;
5061
*-n32|*"-n32 ") libmagic=N32;;
5062
*-64|*"-64 ") libmagic=64-bit;;
5063
*) libmagic=never-match;;
5065
lt_cv_deplibs_check_method=pass_all
5068
# This must be glibc/ELF.
5069
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5070
lt_cv_deplibs_check_method=pass_all
5073
netbsd* | netbsdelf*-gnu)
5074
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5075
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
5077
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
5082
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
5083
lt_cv_file_magic_cmd=/usr/bin/file
5084
lt_cv_file_magic_test_file=/usr/lib/libnls.so
5088
lt_cv_deplibs_check_method=pass_all
5092
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5093
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
5095
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
5099
osf3* | osf4* | osf5*)
5100
lt_cv_deplibs_check_method=pass_all
5104
lt_cv_deplibs_check_method=pass_all
5108
lt_cv_deplibs_check_method=pass_all
5111
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5112
lt_cv_deplibs_check_method=pass_all
5116
case $host_vendor in
5118
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]]'
5119
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5122
lt_cv_deplibs_check_method=pass_all
5125
lt_cv_file_magic_cmd='/bin/file'
5126
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
5129
lt_cv_file_magic_cmd='/bin/file'
5130
lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
5131
lt_cv_file_magic_test_file=/lib/libc.so
5134
lt_cv_deplibs_check_method=pass_all
5137
lt_cv_deplibs_check_method=pass_all
5143
lt_cv_deplibs_check_method=pass_all
5150
if test "$build" = "$host"; then
5153
if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5156
file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
5162
file_magic_cmd=$lt_cv_file_magic_cmd
5163
deplibs_check_method=$lt_cv_deplibs_check_method
5164
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5166
_LT_DECL([], [deplibs_check_method], [1],
5167
[Method to check whether dependent libraries are shared objects])
5168
_LT_DECL([], [file_magic_cmd], [1],
5169
[Command to use when deplibs_check_method = "file_magic"])
5170
_LT_DECL([], [file_magic_glob], [1],
5171
[How to find potential files when deplibs_check_method = "file_magic"])
5172
_LT_DECL([], [want_nocaseglob], [1],
5173
[Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
5174
])# _LT_CHECK_MAGIC_METHOD
5179
# find the pathname to a BSD- or MS-compatible name lister
5180
AC_DEFUN([LT_PATH_NM],
5181
[AC_REQUIRE([AC_PROG_CC])dnl
5182
AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
5183
[if test -n "$NM"; then
5184
# Let the user override the test.
5187
lt_nm_to_check="${ac_tool_prefix}nm"
5188
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5189
lt_nm_to_check="$lt_nm_to_check nm"
5191
for lt_tmp_nm in $lt_nm_to_check; do
5192
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5193
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5195
test -z "$ac_dir" && ac_dir=.
5196
tmp_nm="$ac_dir/$lt_tmp_nm"
5197
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5198
# Check to see if the nm accepts a BSD-compat flag.
5199
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5200
# nm: unknown option "B" ignored
5201
# Tru64's nm complains that /dev/null is an invalid object file
5202
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5203
*/dev/null* | *'Invalid file or object type'*)
5204
lt_cv_path_NM="$tmp_nm -B"
5208
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5210
lt_cv_path_NM="$tmp_nm -p"
5214
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5215
continue # so that we can try to find one that supports BSD flags
5224
: ${lt_cv_path_NM=no}
5226
if test "$lt_cv_path_NM" != "no"; then
5229
# Didn't find any BSD compatible name lister, look for dumpbin.
5230
if test -n "$DUMPBIN"; then :
5231
# Let the user override the test.
5233
AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
5234
case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5236
DUMPBIN="$DUMPBIN -symbols"
5244
if test "$DUMPBIN" != ":"; then
5248
test -z "$NM" && NM=nm
5250
_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
5252
AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
5253
[lt_cv_nm_interface="BSD nm"
5254
echo "int some_variable = 0;" > conftest.$ac_ext
5255
(eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
5256
(eval "$ac_compile" 2>conftest.err)
5257
cat conftest.err >&AS_MESSAGE_LOG_FD
5258
(eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
5259
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5260
cat conftest.err >&AS_MESSAGE_LOG_FD
5261
(eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
5262
cat conftest.out >&AS_MESSAGE_LOG_FD
5263
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5264
lt_cv_nm_interface="MS dumpbin"
5270
AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
5271
AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
5272
dnl aclocal-1.4 backwards compatibility:
5273
dnl AC_DEFUN([AM_PROG_NM], [])
5274
dnl AC_DEFUN([AC_PROG_NM], [])
5276
# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
5277
# --------------------------------
5278
# how to determine the name of the shared library
5279
# associated with a specific link library.
5280
# -- PORTME fill in with the dynamic library characteristics
5281
m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
5282
[m4_require([_LT_DECL_EGREP])
5283
m4_require([_LT_DECL_OBJDUMP])
5284
m4_require([_LT_DECL_DLLTOOL])
5285
AC_CACHE_CHECK([how to associate runtime and link libraries],
5286
lt_cv_sharedlib_from_linklib_cmd,
5287
[lt_cv_sharedlib_from_linklib_cmd='unknown'
5290
cygwin* | mingw* | pw32* | cegcc*)
5291
# two different shell functions defined in ltmain.sh
5292
# decide which to use based on capabilities of $DLLTOOL
5293
case `$DLLTOOL --help 2>&1` in
5294
*--identify-strict*)
5295
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5298
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5303
# fallback: assume linklib IS sharedlib
5304
lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5308
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5309
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5311
_LT_DECL([], [sharedlib_from_linklib_cmd], [1],
5312
[Command to associate shared and link libraries])
5313
])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
5316
# _LT_PATH_MANIFEST_TOOL
5317
# ----------------------
5318
# locate the manifest tool
5319
m4_defun([_LT_PATH_MANIFEST_TOOL],
5320
[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
5321
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
5322
AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
5323
[lt_cv_path_mainfest_tool=no
5324
echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
5325
$MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
5326
cat conftest.err >&AS_MESSAGE_LOG_FD
5327
if $GREP 'Manifest Tool' conftest.out > /dev/null; then
5328
lt_cv_path_mainfest_tool=yes
5331
if test "x$lt_cv_path_mainfest_tool" != xyes; then
5334
_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
5335
])# _LT_PATH_MANIFEST_TOOL
5340
# check for math library
5341
AC_DEFUN([LT_LIB_M],
5342
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
5345
*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
5346
# These system don't have libm, or don't need it
5349
AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
5350
AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
5353
AC_CHECK_LIB(m, cos, LIBM="-lm")
5360
AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
5361
dnl aclocal-1.4 backwards compatibility:
5362
dnl AC_DEFUN([AC_CHECK_LIBM], [])
5365
# _LT_COMPILER_NO_RTTI([TAGNAME])
5366
# -------------------------------
5367
m4_defun([_LT_COMPILER_NO_RTTI],
5368
[m4_require([_LT_TAG_COMPILER])dnl
5370
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5372
if test "$GCC" = yes; then
5373
case $cc_basename in
5375
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
5377
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
5380
_LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
5381
lt_cv_prog_compiler_rtti_exceptions,
5382
[-fno-rtti -fno-exceptions], [],
5383
[_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
5385
_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
5386
[Compiler flag to turn off builtin functions])
5387
])# _LT_COMPILER_NO_RTTI
5390
# _LT_CMD_GLOBAL_SYMBOLS
5391
# ----------------------
5392
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
5393
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
5394
AC_REQUIRE([AC_PROG_CC])dnl
5395
AC_REQUIRE([AC_PROG_AWK])dnl
5396
AC_REQUIRE([LT_PATH_NM])dnl
5397
AC_REQUIRE([LT_PATH_LD])dnl
5398
m4_require([_LT_DECL_SED])dnl
5399
m4_require([_LT_DECL_EGREP])dnl
5400
m4_require([_LT_TAG_COMPILER])dnl
5402
# Check for command to grab the raw symbol name followed by C symbol from nm.
5403
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
5404
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
5406
# These are sane defaults that work on at least a few old systems.
5407
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5409
# Character class describing NM global symbol codes.
5410
symcode='[[BCDEGRST]]'
5412
# Regexp to match symbols that can be accessed directly from C.
5413
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
5415
# Define system-specific variables.
5420
cygwin* | mingw* | pw32* | cegcc*)
5421
symcode='[[ABCDGISTW]]'
5424
if test "$host_cpu" = ia64; then
5425
symcode='[[ABCDEGRST]]'
5429
symcode='[[BCDEGRST]]'
5432
symcode='[[BCDEGQRST]]'
5443
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5447
symcode='[[DFNSTU]]'
5451
# If we're using GNU nm, then use its standard symbol codes.
5452
case `$NM -V 2>&1` in
5453
*GNU* | *'with BFD'*)
5454
symcode='[[ABCDGIRSTW]]' ;;
5457
# Transform an extracted symbol line into a proper C declaration.
5458
# Some systems (esp. on ia64) link data and code symbols differently,
5459
# so use this general approach.
5460
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5462
# Transform an extracted symbol line into symbol name and symbol address
5463
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
5464
lt_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'"
5466
# Handle CRLF in mingw tool chain
5470
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5474
# Try without a prefix underscore, then with it.
5475
for ac_symprfx in "" "_"; do
5477
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5478
symxfrm="\\1 $ac_symprfx\\2 \\2"
5480
# Write the raw and C identifiers.
5481
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5482
# Fake it for dumpbin and say T for any non-static function
5483
# and D for any global variable.
5484
# Also find C++ and __fastcall symbols from MSVC++,
5485
# which start with @ or ?.
5486
lt_cv_sys_global_symbol_pipe="$AWK ['"\
5487
" {last_section=section; section=\$ 3};"\
5488
" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5489
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5490
" \$ 0!~/External *\|/{next};"\
5491
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5492
" {if(hide[section]) next};"\
5493
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5494
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5495
" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5496
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5497
" ' prfx=^$ac_symprfx]"
5499
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5501
lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5503
# Check to see that the pipe works correctly.
5507
cat > conftest.$ac_ext <<_LT_EOF
5512
void nm_test_func(void);
5513
void nm_test_func(void){}
5517
int main(){nm_test_var='a';nm_test_func();return(0);}
5520
if AC_TRY_EVAL(ac_compile); then
5521
# Now try to grab the symbols.
5523
if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
5524
# Try sorting and uniquifying the output.
5525
if sort "$nlist" | uniq > "$nlist"T; then
5526
mv -f "$nlist"T "$nlist"
5531
# Make sure that we snagged all the symbols we need.
5532
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5533
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5534
cat <<_LT_EOF > conftest.$ac_ext
5535
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5536
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5537
/* DATA imports from DLLs on WIN32 con't be const, because runtime
5538
relocations are performed -- see ld's documentation on pseudo-relocs. */
5539
# define LT@&t@_DLSYM_CONST
5540
#elif defined(__osf__)
5541
/* This system does not cope well with relocations in const data. */
5542
# define LT@&t@_DLSYM_CONST
5544
# define LT@&t@_DLSYM_CONST const
5552
# Now generate the symbol file.
5553
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5555
cat <<_LT_EOF >> conftest.$ac_ext
5557
/* The mapping between symbol names and symbols. */
5558
LT@&t@_DLSYM_CONST struct {
5562
lt__PROGRAM__LTX_preloaded_symbols[[]] =
5564
{ "@PROGRAM@", (void *) 0 },
5566
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5567
cat <<\_LT_EOF >> conftest.$ac_ext
5571
/* This works around a problem in FreeBSD linker */
5572
#ifdef FREEBSD_WORKAROUND
5573
static const void *lt_preloaded_setup() {
5574
return lt__PROGRAM__LTX_preloaded_symbols;
5582
# Now try linking the two files.
5583
mv conftest.$ac_objext conftstm.$ac_objext
5584
lt_globsym_save_LIBS=$LIBS
5585
lt_globsym_save_CFLAGS=$CFLAGS
5586
LIBS="conftstm.$ac_objext"
5587
CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
5588
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
5591
LIBS=$lt_globsym_save_LIBS
5592
CFLAGS=$lt_globsym_save_CFLAGS
5594
echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
5597
echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
5600
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
5603
echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
5604
cat conftest.$ac_ext >&5
5606
rm -rf conftest* conftst*
5608
# Do not use the global_symbol_pipe unless it works.
5609
if test "$pipe_works" = yes; then
5612
lt_cv_sys_global_symbol_pipe=
5616
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5617
lt_cv_sys_global_symbol_to_cdecl=
5619
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5620
AC_MSG_RESULT(failed)
5625
# Response file support.
5626
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5627
nm_file_list_spec='@'
5628
elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
5629
nm_file_list_spec='@'
5632
_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
5633
[Take the output of nm and produce a listing of raw symbols and C names])
5634
_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
5635
[Transform the output of nm in a proper C declaration])
5636
_LT_DECL([global_symbol_to_c_name_address],
5637
[lt_cv_sys_global_symbol_to_c_name_address], [1],
5638
[Transform the output of nm in a C name address pair])
5639
_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
5640
[lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
5641
[Transform the output of nm in a C name address pair when lib prefix is needed])
5642
_LT_DECL([], [nm_file_list_spec], [1],
5643
[Specify filename containing input files for $NM])
5644
]) # _LT_CMD_GLOBAL_SYMBOLS
5647
# _LT_COMPILER_PIC([TAGNAME])
5648
# ---------------------------
5649
m4_defun([_LT_COMPILER_PIC],
5650
[m4_require([_LT_TAG_COMPILER])dnl
5651
_LT_TAGVAR(lt_prog_compiler_wl, $1)=
5652
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
5653
_LT_TAGVAR(lt_prog_compiler_static, $1)=
5655
m4_if([$1], [CXX], [
5656
# C++ specific cases for pic, static, wl, etc.
5657
if test "$GXX" = yes; then
5658
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5659
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5663
# All AIX code is PIC.
5664
if test "$host_cpu" = ia64; then
5665
# AIX 5 now supports IA64 processor
5666
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5673
# see comment about AmigaOS4 .so support
5674
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5677
# FIXME: we need at least 68020 code to build shared libraries, but
5678
# adding the `-m68020' flag to GCC prevents building anything better,
5680
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5685
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5686
# PIC is the default for these OSes.
5688
mingw* | cygwin* | os2* | pw32* | cegcc*)
5689
# This hack is so that the source file can tell whether it is being
5690
# built for inclusion in a dll (and should export symbols for example).
5691
# Although the cygwin gcc ignores -fPIC, still need this for old-style
5692
# (--disable-auto-import) libraries
5693
m4_if([$1], [GCJ], [],
5694
[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5696
darwin* | rhapsody*)
5697
# PIC is the default on this platform
5698
# Common symbols not allowed in MH_DYLIB files
5699
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5702
# DJGPP does not support shared libraries at all
5703
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
5706
# PIC is the default for Haiku.
5707
# The "-static" flag exists, but is broken.
5708
_LT_TAGVAR(lt_prog_compiler_static, $1)=
5711
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
5712
# Instead, we relocate shared libraries at runtime.
5715
if test -d /usr/nec; then
5716
_LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5720
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
5721
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
5722
# sets the default TLS model and affects inlining.
5727
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5732
# QNX uses GNU C++, but need to define -shared option too, otherwise
5734
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
5737
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5743
# All AIX code is PIC.
5744
if test "$host_cpu" = ia64; then
5745
# AIX 5 now supports IA64 processor
5746
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5748
_LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5752
case $cc_basename in
5754
# Green Hills C++ Compiler
5755
# _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"
5759
mingw* | cygwin* | os2* | pw32* | cegcc*)
5760
# This hack is so that the source file can tell whether it is being
5761
# built for inclusion in a dll (and should export symbols for example).
5762
m4_if([$1], [GCJ], [],
5763
[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5766
case $cc_basename in
5768
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5771
# Green Hills C++ Compiler
5772
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5778
freebsd* | dragonfly*)
5779
# FreeBSD uses GNU C++
5781
hpux9* | hpux10* | hpux11*)
5782
case $cc_basename in
5784
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5785
_LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5786
if test "$host_cpu" != ia64; then
5787
_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5791
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5792
_LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5798
_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5807
# This is c89, which is MS Visual C++ (no shared libs)
5808
# Anyone wants to do a port?
5810
irix5* | irix6* | nonstopux*)
5811
case $cc_basename in
5813
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5814
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5815
# CC pic flag -KPIC is the default.
5821
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5822
case $cc_basename in
5825
_LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5826
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5829
# old Intel C++ for x86_64 which still supported -KPIC.
5830
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5831
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5832
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5835
# Intel C++, used to be incompatible with GCC.
5836
# ICC 10 doesn't accept -KPIC any more.
5837
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5838
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5839
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5842
# Portland Group C++ compiler
5843
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5844
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5845
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5849
# Make sure the PIC flag is empty. It appears that all Alpha
5850
# Linux and Compaq Tru64 Unix objects are PIC.
5851
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
5852
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5854
xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
5855
# IBM XL 8.0, 9.0 on PPC and BlueGene
5856
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5857
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
5858
_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
5861
case `$CC -V 2>&1 | sed 5q` in
5864
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5865
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5866
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5877
case $cc_basename in
5879
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
5885
netbsd* | netbsdelf*-gnu)
5888
# QNX uses GNU C++, but need to define -shared option too, otherwise
5890
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
5892
osf3* | osf4* | osf5*)
5893
case $cc_basename in
5895
_LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5898
# Rational C++ 2.4.1
5899
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5902
# Digital/Compaq C++
5903
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5904
# Make sure the PIC flag is empty. It appears that all Alpha
5905
# Linux and Compaq Tru64 Unix objects are PIC.
5906
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
5907
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5916
case $cc_basename in
5918
# Sun C++ 4.2, 5.x and Centerline C++
5919
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5920
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5921
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5924
# Green Hills C++ Compiler
5925
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5932
case $cc_basename in
5935
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5936
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5940
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5946
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5947
case $cc_basename in
5949
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5950
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5951
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5956
case $cc_basename in
5958
# NonStop-UX NCC 3.20
5959
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5968
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5974
if test "$GCC" = yes; then
5975
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5976
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5980
# All AIX code is PIC.
5981
if test "$host_cpu" = ia64; then
5982
# AIX 5 now supports IA64 processor
5983
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5990
# see comment about AmigaOS4 .so support
5991
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5994
# FIXME: we need at least 68020 code to build shared libraries, but
5995
# adding the `-m68020' flag to GCC prevents building anything better,
5997
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
6002
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6003
# PIC is the default for these OSes.
6006
mingw* | cygwin* | pw32* | os2* | cegcc*)
6007
# This hack is so that the source file can tell whether it is being
6008
# built for inclusion in a dll (and should export symbols for example).
6009
# Although the cygwin gcc ignores -fPIC, still need this for old-style
6010
# (--disable-auto-import) libraries
6011
m4_if([$1], [GCJ], [],
6012
[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
6015
darwin* | rhapsody*)
6016
# PIC is the default on this platform
6017
# Common symbols not allowed in MH_DYLIB files
6018
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
6022
# PIC is the default for Haiku.
6023
# The "-static" flag exists, but is broken.
6024
_LT_TAGVAR(lt_prog_compiler_static, $1)=
6028
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6029
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6030
# sets the default TLS model and affects inlining.
6036
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6042
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
6043
# Instead, we relocate shared libraries at runtime.
6047
# Just because we use GCC doesn't mean we suddenly get shared libraries
6048
# on systems that don't support them.
6049
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6054
# QNX uses GNU C++, but need to define -shared option too, otherwise
6056
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
6060
if test -d /usr/nec; then
6061
_LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
6066
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6070
case $cc_basename in
6071
nvcc*) # Cuda Compiler Driver 2.2
6072
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
6073
if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
6074
_LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
6079
# PORTME Check for flag to pass linker flags through the system compiler.
6082
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6083
if test "$host_cpu" = ia64; then
6084
# AIX 5 now supports IA64 processor
6085
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6087
_LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
6091
mingw* | cygwin* | pw32* | os2* | cegcc*)
6092
# This hack is so that the source file can tell whether it is being
6093
# built for inclusion in a dll (and should export symbols for example).
6094
m4_if([$1], [GCJ], [],
6095
[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
6098
hpux9* | hpux10* | hpux11*)
6099
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6100
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6107
_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6110
# Is there a better lt_prog_compiler_static that works with the bundled CC?
6111
_LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
6114
irix5* | irix6* | nonstopux*)
6115
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6116
# PIC (with -KPIC) is the default.
6117
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6120
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6121
case $cc_basename in
6122
# old Intel for x86_64 which still supported -KPIC.
6124
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6125
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6126
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
6128
# icc used to be incompatible with GCC.
6129
# ICC 10 doesn't accept -KPIC any more.
6131
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6132
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6133
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
6135
# Lahey Fortran 8.1.
6137
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6138
_LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
6139
_LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
6142
# NAG Fortran compiler
6143
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
6144
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6145
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6147
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
6148
# Portland Group compilers (*not* the Pentium gcc compiler,
6149
# which looks to be a dead project)
6150
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6151
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
6152
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6155
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6156
# All Alpha code is PIC.
6157
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6159
xl* | bgxl* | bgf* | mpixl*)
6160
# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
6161
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6162
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
6163
_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
6166
case `$CC -V 2>&1 | sed 5q` in
6167
*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
6168
# Sun Fortran 8.3 passes all unrecognized flags to the linker
6169
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6170
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6171
_LT_TAGVAR(lt_prog_compiler_wl, $1)=''
6173
*Sun\ F* | *Sun*Fortran*)
6174
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6175
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6176
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6180
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6181
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6182
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6184
*Intel*\ [[CF]]*Compiler*)
6185
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6186
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6187
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
6190
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6191
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
6192
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6200
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6201
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6205
# QNX uses GNU C++, but need to define -shared option too, otherwise
6207
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
6210
osf3* | osf4* | osf5*)
6211
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6212
# All OSF/1 code is PIC.
6213
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6217
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6221
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6222
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6223
case $cc_basename in
6224
f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
6225
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
6227
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
6232
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6233
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6234
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6237
sysv4 | sysv4.2uw2* | sysv4.3*)
6238
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6239
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6240
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6244
if test -d /usr/nec ;then
6245
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
6246
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6250
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6251
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6252
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6253
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6257
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6258
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6262
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6263
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6267
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6273
# For platforms which do not support PIC, -DPIC is meaningless:
6275
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
6278
_LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
6282
AC_CACHE_CHECK([for $compiler option to produce PIC],
6283
[_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
6284
[_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
6285
_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
6288
# Check to make sure the PIC flag actually works.
6290
if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
6291
_LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
6292
[_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
6293
[$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
6294
[case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
6296
*) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
6298
[_LT_TAGVAR(lt_prog_compiler_pic, $1)=
6299
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
6301
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
6302
[Additional compiler flags for building library objects])
6304
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
6305
[How to pass a linker flag through the compiler])
6307
# Check to make sure the static flag actually works.
6309
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
6310
_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
6311
_LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
6312
$lt_tmp_static_flag,
6314
[_LT_TAGVAR(lt_prog_compiler_static, $1)=])
6315
_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
6316
[Compiler flag to prevent dynamic linking])
6317
])# _LT_COMPILER_PIC
6320
# _LT_LINKER_SHLIBS([TAGNAME])
6321
# ----------------------------
6322
# See if the linker supports building shared libraries.
6323
m4_defun([_LT_LINKER_SHLIBS],
6324
[AC_REQUIRE([LT_PATH_LD])dnl
6325
AC_REQUIRE([LT_PATH_NM])dnl
6326
m4_require([_LT_PATH_MANIFEST_TOOL])dnl
6327
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6328
m4_require([_LT_DECL_EGREP])dnl
6329
m4_require([_LT_DECL_SED])dnl
6330
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
6331
m4_require([_LT_TAG_COMPILER])dnl
6332
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6333
m4_if([$1], [CXX], [
6334
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6335
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
6338
# If we're using GNU nm, then we don't want the "-C" option.
6339
# -C means demangle to AIX nm, but means don't demangle with GNU nm
6340
# Also, AIX nm treats weak defined symbols like other global defined
6341
# symbols, whereas GNU nm marks them as "W".
6342
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
6343
_LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
6345
_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'
6349
_LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
6351
cygwin* | mingw* | cegcc*)
6352
case $cc_basename in
6354
_LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
6357
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
6358
_LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
6362
linux* | k*bsd*-gnu | gnu*)
6363
_LT_TAGVAR(link_all_deplibs, $1)=no
6366
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6371
_LT_TAGVAR(allow_undefined_flag, $1)=
6372
_LT_TAGVAR(always_export_symbols, $1)=no
6373
_LT_TAGVAR(archive_cmds, $1)=
6374
_LT_TAGVAR(archive_expsym_cmds, $1)=
6375
_LT_TAGVAR(compiler_needs_object, $1)=no
6376
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6377
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
6378
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6379
_LT_TAGVAR(hardcode_automatic, $1)=no
6380
_LT_TAGVAR(hardcode_direct, $1)=no
6381
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
6382
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6383
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6384
_LT_TAGVAR(hardcode_minus_L, $1)=no
6385
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6386
_LT_TAGVAR(inherit_rpath, $1)=no
6387
_LT_TAGVAR(link_all_deplibs, $1)=unknown
6388
_LT_TAGVAR(module_cmds, $1)=
6389
_LT_TAGVAR(module_expsym_cmds, $1)=
6390
_LT_TAGVAR(old_archive_from_new_cmds, $1)=
6391
_LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
6392
_LT_TAGVAR(thread_safe_flag_spec, $1)=
6393
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6394
# include_expsyms should be a list of space-separated symbols to be *always*
6395
# included in the symbol list
6396
_LT_TAGVAR(include_expsyms, $1)=
6397
# exclude_expsyms can be an extended regexp of symbols to exclude
6398
# it will be wrapped by ` (' and `)$', so one must not match beginning or
6399
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6400
# as well as any symbol that contains `d'.
6401
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
6402
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6403
# platforms (ab)use it in PIC code, but their linkers get confused if
6404
# the symbol is explicitly referenced. Since portable code cannot
6405
# rely on this symbol name, it's probably fine to never include it in
6406
# preloaded symbol tables.
6407
# Exclude shared library initialization/finalization symbols.
6408
dnl Note also adjust exclude_expsyms for C++ above.
6409
extract_expsyms_cmds=
6412
cygwin* | mingw* | pw32* | cegcc*)
6413
# FIXME: the MSVC++ port hasn't been tested in a loooong time
6414
# When not using gcc, we currently assume that we are using
6415
# Microsoft Visual C++.
6416
if test "$GCC" != yes; then
6421
# we just hope/assume this is gcc and not c89 (= MSVC++)
6427
linux* | k*bsd*-gnu | gnu*)
6428
_LT_TAGVAR(link_all_deplibs, $1)=no
6432
_LT_TAGVAR(ld_shlibs, $1)=yes
6434
# On some targets, GNU ld is compatible enough with the native linker
6435
# that we're better off using the native interface for both.
6436
lt_use_gnu_ld_interface=no
6437
if test "$with_gnu_ld" = yes; then
6440
# The AIX port of GNU ld has always aspired to compatibility
6441
# with the native linker. However, as the warning in the GNU ld
6442
# block says, versions before 2.19.5* couldn't really create working
6443
# shared libraries, regardless of the interface used.
6444
case `$LD -v 2>&1` in
6445
*\ \(GNU\ Binutils\)\ 2.19.5*) ;;
6446
*\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
6447
*\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
6449
lt_use_gnu_ld_interface=yes
6454
lt_use_gnu_ld_interface=yes
6459
if test "$lt_use_gnu_ld_interface" = yes; then
6460
# If archive_cmds runs LD, not CC, wlarc should be empty
6463
# Set some defaults for GNU ld with shared library support. These
6464
# are reset later if shared libraries are not supported. Putting them
6465
# here allows them to be overridden if necessary.
6466
runpath_var=LD_RUN_PATH
6467
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6468
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6469
# ancient GNU ld didn't support --whole-archive et. al.
6470
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
6471
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6473
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6475
supports_anon_versioning=no
6476
case `$LD -v 2>&1` in
6477
*GNU\ gold*) supports_anon_versioning=yes ;;
6478
*\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
6479
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6480
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6481
*\ 2.11.*) ;; # other 2.11 versions
6482
*) supports_anon_versioning=yes ;;
6485
# See if GNU ld supports shared libraries.
6488
# On AIX/PPC, the GNU linker is very broken
6489
if test "$host_cpu" != ia64; then
6490
_LT_TAGVAR(ld_shlibs, $1)=no
6493
*** Warning: the GNU linker, at least up to release 2.19, is reported
6494
*** to be unable to reliably create shared libraries on AIX.
6495
*** Therefore, libtool is disabling shared libraries support. If you
6496
*** really care for shared libraries, you may want to install binutils
6497
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
6498
*** You will then need to restart the configuration process.
6507
# see comment about AmigaOS4 .so support
6508
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6509
_LT_TAGVAR(archive_expsym_cmds, $1)=''
6512
_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)'
6513
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6514
_LT_TAGVAR(hardcode_minus_L, $1)=yes
6520
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6521
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6522
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6523
# support --undefined. This deserves some investigation. FIXME
6524
_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6526
_LT_TAGVAR(ld_shlibs, $1)=no
6530
cygwin* | mingw* | pw32* | cegcc*)
6531
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6532
# as there is no search path for DLLs.
6533
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6534
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
6535
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6536
_LT_TAGVAR(always_export_symbols, $1)=no
6537
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6538
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
6539
_LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
6541
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6542
_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'
6543
# If the export-symbols file already is a .def file (1st line
6544
# is EXPORTS), use it as is; otherwise, prepend...
6545
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6546
cp $export_symbols $output_objdir/$soname.def;
6548
echo EXPORTS > $output_objdir/$soname.def;
6549
cat $export_symbols >> $output_objdir/$soname.def;
6551
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6553
_LT_TAGVAR(ld_shlibs, $1)=no
6558
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6559
_LT_TAGVAR(link_all_deplibs, $1)=yes
6563
_LT_TAGVAR(hardcode_direct, $1)=no
6564
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6565
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6566
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6567
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6568
# Instead, shared libraries are loaded at an image base (0x10000000 by
6569
# default) and relocated if they conflict, which is a slow very memory
6570
# consuming and fragmenting process. To avoid this, we pick a random,
6571
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6572
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
6573
_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'
6574
_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'
6577
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
6579
if test "$host_os" = linux-dietlibc; then
6580
case $cc_basename in
6581
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
6584
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
6585
&& test "$tmp_diet" = no
6587
tmp_addflag=' $pic_flag'
6588
tmp_sharedflag='-shared'
6589
case $cc_basename,$host_cpu in
6590
pgcc*) # Portland Group C compiler
6591
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
6592
tmp_addflag=' $pic_flag'
6594
pgf77* | pgf90* | pgf95* | pgfortran*)
6595
# Portland Group f77 and f90 compilers
6596
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
6597
tmp_addflag=' $pic_flag -Mnomain' ;;
6598
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6599
tmp_addflag=' -i_dynamic' ;;
6600
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6601
tmp_addflag=' -i_dynamic -nofor_main' ;;
6602
ifc* | ifort*) # Intel Fortran compiler
6603
tmp_addflag=' -nofor_main' ;;
6604
lf95*) # Lahey Fortran 8.1
6605
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6606
tmp_sharedflag='--shared' ;;
6607
xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
6608
tmp_sharedflag='-qmkshrobj'
6610
nvcc*) # Cuda Compiler Driver 2.2
6611
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
6612
_LT_TAGVAR(compiler_needs_object, $1)=yes
6615
case `$CC -V 2>&1 | sed 5q` in
6616
*Sun\ C*) # Sun C 5.9
6617
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
6618
_LT_TAGVAR(compiler_needs_object, $1)=yes
6619
tmp_sharedflag='-G' ;;
6620
*Sun\ F*) # Sun Fortran 8.3
6621
tmp_sharedflag='-G' ;;
6623
_LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6625
if test "x$supports_anon_versioning" = xyes; then
6626
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
6627
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6628
echo "local: *; };" >> $output_objdir/$libname.ver~
6629
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6632
case $cc_basename in
6633
xlf* | bgf* | bgxlf* | mpixlf*)
6634
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
6635
_LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
6636
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6637
_LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
6638
if test "x$supports_anon_versioning" = xyes; then
6639
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
6640
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6641
echo "local: *; };" >> $output_objdir/$libname.ver~
6642
$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
6647
_LT_TAGVAR(ld_shlibs, $1)=no
6651
netbsd* | netbsdelf*-gnu)
6652
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6653
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6656
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6657
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6662
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
6663
_LT_TAGVAR(ld_shlibs, $1)=no
6666
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6667
*** create shared libraries on Solaris systems. Therefore, libtool
6668
*** is disabling shared libraries support. We urge you to upgrade GNU
6669
*** binutils to release 2.9.1 or newer. Another option is to modify
6670
*** your PATH or compiler configuration so that the native linker is
6671
*** used, and then restart.
6674
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6675
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6676
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6678
_LT_TAGVAR(ld_shlibs, $1)=no
6682
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6683
case `$LD -v 2>&1` in
6684
*\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
6685
_LT_TAGVAR(ld_shlibs, $1)=no
6688
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6689
*** reliably create shared libraries on SCO systems. Therefore, libtool
6690
*** is disabling shared libraries support. We urge you to upgrade GNU
6691
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
6692
*** your PATH or compiler configuration so that the native linker is
6693
*** used, and then restart.
6698
# For security reasons, it is highly recommended that you always
6699
# use absolute paths for naming shared libraries, and exclude the
6700
# DT_RUNPATH tag from executables and libraries. But doing so
6701
# requires that you compile everything twice, which is a pain.
6702
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6703
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6704
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6705
_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'
6707
_LT_TAGVAR(ld_shlibs, $1)=no
6714
_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6716
_LT_TAGVAR(hardcode_direct, $1)=yes
6717
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6721
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6722
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6723
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6725
_LT_TAGVAR(ld_shlibs, $1)=no
6730
if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
6732
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6733
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
6734
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6737
# PORTME fill in a description of your system's linker (not GNU ld)
6740
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6741
_LT_TAGVAR(always_export_symbols, $1)=yes
6742
_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'
6743
# Note: this linker hardcodes the directories in LIBPATH if there
6744
# are no directories specified by -L.
6745
_LT_TAGVAR(hardcode_minus_L, $1)=yes
6746
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6747
# Neither direct hardcoding nor static linking is supported with a
6749
_LT_TAGVAR(hardcode_direct, $1)=unsupported
6754
if test "$host_cpu" = ia64; then
6755
# On IA64, the linker does run time linking by default, so we don't
6756
# have to do anything special.
6757
aix_use_runtimelinking=no
6758
exp_sym_flag='-Bexport'
6761
# If we're using GNU nm, then we don't want the "-C" option.
6762
# -C means demangle to AIX nm, but means don't demangle with GNU nm
6763
# Also, AIX nm treats weak defined symbols like other global
6764
# defined symbols, whereas GNU nm marks them as "W".
6765
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
6766
_LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
6768
_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'
6770
aix_use_runtimelinking=no
6772
# Test if we are trying to use run time linking or normal
6773
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6774
# need to do runtime linking.
6775
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6776
for ld_flag in $LDFLAGS; do
6777
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6778
aix_use_runtimelinking=yes
6785
exp_sym_flag='-bexport'
6786
no_entry_flag='-bnoentry'
6789
# When large executables or shared objects are built, AIX ld can
6790
# have problems creating the table of contents. If linking a library
6791
# or program results in "error TOC overflow" add -mminimal-toc to
6792
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6793
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6795
_LT_TAGVAR(archive_cmds, $1)=''
6796
_LT_TAGVAR(hardcode_direct, $1)=yes
6797
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6798
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6799
_LT_TAGVAR(link_all_deplibs, $1)=yes
6800
_LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
6802
if test "$GCC" = yes; then
6803
case $host_os in aix4.[[012]]|aix4.[[012]].*)
6804
# We only want to do this on AIX 4.2 and lower, the check
6805
# below for broken collect2 doesn't work under 4.3+
6806
collect2name=`${CC} -print-prog-name=collect2`
6807
if test -f "$collect2name" &&
6808
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6810
# We have reworked collect2
6813
# We have old collect2
6814
_LT_TAGVAR(hardcode_direct, $1)=unsupported
6815
# It fails to find uninstalled libraries when the uninstalled
6816
# path is not listed in the libpath. Setting hardcode_minus_L
6817
# to unsupported forces relinking
6818
_LT_TAGVAR(hardcode_minus_L, $1)=yes
6819
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6820
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6824
shared_flag='-shared'
6825
if test "$aix_use_runtimelinking" = yes; then
6826
shared_flag="$shared_flag "'${wl}-G'
6828
_LT_TAGVAR(link_all_deplibs, $1)=no
6831
if test "$host_cpu" = ia64; then
6832
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6833
# chokes on -Wl,-G. The following line is correct:
6836
if test "$aix_use_runtimelinking" = yes; then
6837
shared_flag='${wl}-G'
6839
shared_flag='${wl}-bM:SRE'
6844
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
6845
# It seems that -bexpall does not export symbols beginning with
6846
# underscore (_), so it is better to generate a list of symbols to export.
6847
_LT_TAGVAR(always_export_symbols, $1)=yes
6848
if test "$aix_use_runtimelinking" = yes; then
6849
# Warning - without using the other runtime loading flags (-brtl),
6850
# -berok will link without error, but may produce a broken library.
6851
_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6852
# Determine the default libpath from the value encoded in an
6854
_LT_SYS_MODULE_PATH_AIX([$1])
6855
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6856
_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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6858
if test "$host_cpu" = ia64; then
6859
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6860
_LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6861
_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"
6863
# Determine the default libpath from the value encoded in an
6865
_LT_SYS_MODULE_PATH_AIX([$1])
6866
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6867
# Warning - without using the other run time loading flags,
6868
# -berok will link without error, but may produce a broken library.
6869
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6870
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6871
if test "$with_gnu_ld" = yes; then
6872
# We only use this code for GNU lds that support --whole-archive.
6873
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6875
# Exported symbols can be pulled into shared objects from archives
6876
_LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6878
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6879
# This is similar to how AIX traditionally builds its shared libraries.
6880
_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'
6888
# see comment about AmigaOS4 .so support
6889
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6890
_LT_TAGVAR(archive_expsym_cmds, $1)=''
6893
_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)'
6894
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6895
_LT_TAGVAR(hardcode_minus_L, $1)=yes
6901
_LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
6904
cygwin* | mingw* | pw32* | cegcc*)
6905
# When not using gcc, we currently assume that we are using
6906
# Microsoft Visual C++.
6907
# hardcode_libdir_flag_spec is actually meaningless, as there is
6908
# no search path for DLLs.
6909
case $cc_basename in
6912
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6913
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6914
_LT_TAGVAR(always_export_symbols, $1)=yes
6915
_LT_TAGVAR(file_list_spec, $1)='@'
6916
# Tell ltmain to make .lib files, not .a files.
6918
# Tell ltmain to make .dll files, not .so files.
6920
# FIXME: Setting linknames here is a bad hack.
6921
_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
6922
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6923
sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
6925
sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
6927
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6929
# The linker will not automatically build a static lib if we build a DLL.
6930
# _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6931
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6932
_LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
6933
_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'
6935
_LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
6936
_LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
6937
lt_tool_outputfile="@TOOL_OUTPUT@"~
6938
case $lt_outputfile in
6941
lt_outputfile="$lt_outputfile.exe"
6942
lt_tool_outputfile="$lt_tool_outputfile.exe"
6945
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
6946
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
6947
$RM "$lt_outputfile.manifest";
6951
# Assume MSVC wrapper
6952
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6953
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6954
# Tell ltmain to make .lib files, not .a files.
6956
# Tell ltmain to make .dll files, not .so files.
6958
# FIXME: Setting linknames here is a bad hack.
6959
_LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
6960
# The linker will automatically build a .lib file if we build a DLL.
6961
_LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6962
# FIXME: Should let the user specify the lib program.
6963
_LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
6964
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6969
darwin* | rhapsody*)
6970
_LT_DARWIN_LINKER_FEATURES($1)
6974
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6975
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6976
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6979
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6980
# support. Future versions do this automatically, but an explicit c++rt0.o
6981
# does not break anything, and helps significantly (at the cost of a little
6984
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6985
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6986
_LT_TAGVAR(hardcode_direct, $1)=yes
6987
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6990
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
6992
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6993
_LT_TAGVAR(hardcode_direct, $1)=yes
6994
_LT_TAGVAR(hardcode_minus_L, $1)=yes
6995
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6998
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6999
freebsd* | dragonfly*)
7000
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7001
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7002
_LT_TAGVAR(hardcode_direct, $1)=yes
7003
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7007
if test "$GCC" = yes; then
7008
_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7010
_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'
7012
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7013
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
7014
_LT_TAGVAR(hardcode_direct, $1)=yes
7016
# hardcode_minus_L: Not really in the search PATH,
7017
# but as the default location of the library.
7018
_LT_TAGVAR(hardcode_minus_L, $1)=yes
7019
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7023
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
7024
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7026
_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7028
if test "$with_gnu_ld" = no; then
7029
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7030
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
7031
_LT_TAGVAR(hardcode_direct, $1)=yes
7032
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
7033
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7034
# hardcode_minus_L: Not really in the search PATH,
7035
# but as the default location of the library.
7036
_LT_TAGVAR(hardcode_minus_L, $1)=yes
7041
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
7044
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7047
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7050
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7056
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7059
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7063
# Older versions of the 11.00 compiler do not understand -b yet
7064
# (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
7065
_LT_LINKER_OPTION([if $CC understands -b],
7066
_LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
7067
[_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
7068
[_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
7069
[_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
7073
if test "$with_gnu_ld" = no; then
7074
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7075
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
7079
_LT_TAGVAR(hardcode_direct, $1)=no
7080
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7083
_LT_TAGVAR(hardcode_direct, $1)=yes
7084
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
7085
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7087
# hardcode_minus_L: Not really in the search PATH,
7088
# but as the default location of the library.
7089
_LT_TAGVAR(hardcode_minus_L, $1)=yes
7095
irix5* | irix6* | nonstopux*)
7096
if test "$GCC" = yes; then
7097
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7098
# Try to use the -exported_symbol ld option, if it does not
7099
# work, assume that -exports_file does not work either and
7100
# implicitly export all symbols.
7101
# This should be the same for all languages, so no per-tag cache variable.
7102
AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
7103
[lt_cv_irix_exported_symbol],
7104
[save_LDFLAGS="$LDFLAGS"
7105
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7108
[AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
7109
[C++], [[int foo (void) { return 0; }]],
7116
[lt_cv_irix_exported_symbol=yes],
7117
[lt_cv_irix_exported_symbol=no])
7118
LDFLAGS="$save_LDFLAGS"])
7119
if test "$lt_cv_irix_exported_symbol" = yes; then
7120
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
7123
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
7124
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
7126
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
7127
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7128
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
7129
_LT_TAGVAR(inherit_rpath, $1)=yes
7130
_LT_TAGVAR(link_all_deplibs, $1)=yes
7133
netbsd* | netbsdelf*-gnu)
7134
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7135
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7137
_LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7139
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7140
_LT_TAGVAR(hardcode_direct, $1)=yes
7141
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7145
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7146
_LT_TAGVAR(hardcode_direct, $1)=yes
7147
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7148
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
7149
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7156
if test -f /usr/libexec/ld.so; then
7157
_LT_TAGVAR(hardcode_direct, $1)=yes
7158
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7159
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
7160
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7161
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7162
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7163
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7164
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7167
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
7168
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7169
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7172
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7173
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7178
_LT_TAGVAR(ld_shlibs, $1)=no
7183
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7184
_LT_TAGVAR(hardcode_minus_L, $1)=yes
7185
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
7186
_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'
7187
_LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7191
if test "$GCC" = yes; then
7192
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7193
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7195
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7196
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
7198
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
7199
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7200
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
7203
osf4* | osf5*) # as osf3* with the addition of -msym flag
7204
if test "$GCC" = yes; then
7205
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7206
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7207
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7209
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7210
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
7211
_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~
7212
$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
7214
# Both c and cxx compiler support -rpath directly
7215
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7217
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
7218
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
7222
_LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
7223
if test "$GCC" = yes; then
7225
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7226
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7227
$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7229
case `$CC -V 2>&1` in
7232
_LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7233
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7234
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
7238
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
7239
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7240
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7244
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7245
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7247
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7249
# The compiler driver will combine and reorder linker options,
7250
# but understands `-z linker_flag'. GCC discards it without `$wl',
7251
# but is careful enough not to reorder.
7252
# Supported since Solaris 2.6 (maybe 2.5.1?)
7253
if test "$GCC" = yes; then
7254
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7256
_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
7260
_LT_TAGVAR(link_all_deplibs, $1)=yes
7264
if test "x$host_vendor" = xsequent; then
7265
# Use $CC to link under sequent, because it throws in some extra .o
7266
# files that make .init and .fini sections work.
7267
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7269
_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7271
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7272
_LT_TAGVAR(hardcode_direct, $1)=yes
7273
_LT_TAGVAR(hardcode_minus_L, $1)=yes
7274
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7278
case $host_vendor in
7280
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7281
_LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
7284
## LD is ld it makes a PLAMLIB
7285
## CC just makes a GrossModule.
7286
_LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7287
_LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
7288
_LT_TAGVAR(hardcode_direct, $1)=no
7291
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7292
_LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
7295
runpath_var='LD_RUN_PATH'
7296
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7300
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7301
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7302
_LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
7306
if test -d /usr/nec; then
7307
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7308
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7309
runpath_var=LD_RUN_PATH
7310
hardcode_runpath_var=yes
7311
_LT_TAGVAR(ld_shlibs, $1)=yes
7315
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
7316
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7317
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7318
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7319
runpath_var='LD_RUN_PATH'
7321
if test "$GCC" = yes; then
7322
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7323
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7325
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7326
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7330
sysv5* | sco3.2v5* | sco5v6*)
7331
# Note: We can NOT use -z defs as we might desire, because we do not
7332
# link with -lc, and that would cause any symbols used from libc to
7333
# always be unresolved, which means just about no library would
7334
# ever link correctly. If we're not using GNU ld we use -z text
7335
# though, which does catch some bad symbols but isn't as heavy-handed
7337
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7338
_LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
7339
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7340
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7341
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
7342
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
7343
_LT_TAGVAR(link_all_deplibs, $1)=yes
7344
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
7345
runpath_var='LD_RUN_PATH'
7347
if test "$GCC" = yes; then
7348
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7349
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7351
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7352
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7357
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7358
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7359
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7363
_LT_TAGVAR(ld_shlibs, $1)=no
7367
if test x$host_vendor = xsni; then
7369
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7370
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
7376
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
7377
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
7379
_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
7381
_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
7382
_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
7383
_LT_DECL([], [extract_expsyms_cmds], [2],
7384
[The commands to extract the exported symbol list from a shared archive])
7387
# Do we need to explicitly link libc?
7389
case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
7391
# Assume -lc should be added
7392
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
7394
if test "$enable_shared" = yes && test "$GCC" = yes; then
7395
case $_LT_TAGVAR(archive_cmds, $1) in
7397
# FIXME: we may have to deal with multi-command sequences.
7400
# Test whether the compiler implicitly links with -lc since on some
7401
# systems, -lgcc has to come before -lc. If gcc already passes -lc
7402
# to ld, don't add -lc before -lgcc.
7403
AC_CACHE_CHECK([whether -lc should be explicitly linked in],
7404
[lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
7406
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7408
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
7411
libobjs=conftest.$ac_objext
7413
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
7414
pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
7420
lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
7421
_LT_TAGVAR(allow_undefined_flag, $1)=
7422
if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
7424
lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7426
lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
7428
_LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
7430
cat conftest.err 1>&5
7434
_LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
7441
_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
7442
[Whether or not to add -lc for building shared libraries])
7443
_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
7444
[enable_shared_with_static_runtimes], [0],
7445
[Whether or not to disallow shared libs when runtime libs are static])
7446
_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
7447
[Compiler flag to allow reflexive dlopens])
7448
_LT_TAGDECL([], [whole_archive_flag_spec], [1],
7449
[Compiler flag to generate shared objects directly from archives])
7450
_LT_TAGDECL([], [compiler_needs_object], [1],
7451
[Whether the compiler copes with passing no objects directly])
7452
_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
7453
[Create an old-style archive from a shared archive])
7454
_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
7455
[Create a temporary old-style archive to link instead of a shared archive])
7456
_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
7457
_LT_TAGDECL([], [archive_expsym_cmds], [2])
7458
_LT_TAGDECL([], [module_cmds], [2],
7459
[Commands used to build a loadable module if different from building
7461
_LT_TAGDECL([], [module_expsym_cmds], [2])
7462
_LT_TAGDECL([], [with_gnu_ld], [1],
7463
[Whether we are building with GNU ld or not])
7464
_LT_TAGDECL([], [allow_undefined_flag], [1],
7465
[Flag that allows shared libraries with undefined symbols to be built])
7466
_LT_TAGDECL([], [no_undefined_flag], [1],
7467
[Flag that enforces no undefined symbols])
7468
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
7469
[Flag to hardcode $libdir into a binary during linking.
7470
This must work even if $libdir does not exist])
7471
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
7472
[Whether we need a single "-rpath" flag with a separated argument])
7473
_LT_TAGDECL([], [hardcode_direct], [0],
7474
[Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
7475
DIR into the resulting binary])
7476
_LT_TAGDECL([], [hardcode_direct_absolute], [0],
7477
[Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
7478
DIR into the resulting binary and the resulting library dependency is
7479
"absolute", i.e impossible to change by setting ${shlibpath_var} if the
7480
library is relocated])
7481
_LT_TAGDECL([], [hardcode_minus_L], [0],
7482
[Set to "yes" if using the -LDIR flag during linking hardcodes DIR
7483
into the resulting binary])
7484
_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
7485
[Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
7486
into the resulting binary])
7487
_LT_TAGDECL([], [hardcode_automatic], [0],
7488
[Set to "yes" if building a shared library automatically hardcodes DIR
7489
into the library and all subsequent libraries and executables linked
7491
_LT_TAGDECL([], [inherit_rpath], [0],
7492
[Set to yes if linker adds runtime paths of dependent libraries
7493
to runtime path list])
7494
_LT_TAGDECL([], [link_all_deplibs], [0],
7495
[Whether libtool must link a program against all its dependency libraries])
7496
_LT_TAGDECL([], [always_export_symbols], [0],
7497
[Set to "yes" if exported symbols are required])
7498
_LT_TAGDECL([], [export_symbols_cmds], [2],
7499
[The commands to list exported symbols])
7500
_LT_TAGDECL([], [exclude_expsyms], [1],
7501
[Symbols that should not be listed in the preloaded symbols])
7502
_LT_TAGDECL([], [include_expsyms], [1],
7503
[Symbols that must always be exported])
7504
_LT_TAGDECL([], [prelink_cmds], [2],
7505
[Commands necessary for linking programs (against libraries) with templates])
7506
_LT_TAGDECL([], [postlink_cmds], [2],
7507
[Commands necessary for finishing linking programs])
7508
_LT_TAGDECL([], [file_list_spec], [1],
7509
[Specify filename containing input files])
7510
dnl FIXME: Not yet implemented
7511
dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
7512
dnl [Compiler flag to generate thread safe objects])
7513
])# _LT_LINKER_SHLIBS
7516
# _LT_LANG_C_CONFIG([TAG])
7517
# ------------------------
7518
# Ensure that the configuration variables for a C compiler are suitably
7519
# defined. These variables are subsequently used by _LT_CONFIG to write
7520
# the compiler configuration to `libtool'.
7521
m4_defun([_LT_LANG_C_CONFIG],
7522
[m4_require([_LT_DECL_EGREP])dnl
7526
# Source file extension for C test sources.
7529
# Object file extension for compiled C test sources.
7531
_LT_TAGVAR(objext, $1)=$objext
7533
# Code to be used in simple compile tests
7534
lt_simple_compile_test_code="int some_variable = 0;"
7536
# Code to be used in simple link tests
7537
lt_simple_link_test_code='int main(){return(0);}'
7540
# Save the default compiler, since it gets overwritten when the other
7541
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7542
compiler_DEFAULT=$CC
7544
# save warnings/boilerplate of simple test code
7545
_LT_COMPILER_BOILERPLATE
7546
_LT_LINKER_BOILERPLATE
7548
if test -n "$compiler"; then
7549
_LT_COMPILER_NO_RTTI($1)
7550
_LT_COMPILER_PIC($1)
7551
_LT_COMPILER_C_O($1)
7552
_LT_COMPILER_FILE_LOCKS($1)
7553
_LT_LINKER_SHLIBS($1)
7554
_LT_SYS_DYNAMIC_LINKER($1)
7555
_LT_LINKER_HARDCODE_LIBPATH($1)
7559
# Report which library types will actually be built
7560
AC_MSG_CHECKING([if libtool supports shared libraries])
7561
AC_MSG_RESULT([$can_build_shared])
7563
AC_MSG_CHECKING([whether to build shared libraries])
7564
test "$can_build_shared" = "no" && enable_shared=no
7566
# On AIX, shared libraries and static libraries use the same namespace, and
7567
# are all built from PIC.
7570
test "$enable_shared" = yes && enable_static=no
7571
if test -n "$RANLIB"; then
7572
archive_cmds="$archive_cmds~\$RANLIB \$lib"
7573
postinstall_cmds='$RANLIB $lib'
7578
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7579
test "$enable_shared" = yes && enable_static=no
7583
AC_MSG_RESULT([$enable_shared])
7585
AC_MSG_CHECKING([whether to build static libraries])
7586
# Make sure either enable_shared or enable_static is yes.
7587
test "$enable_shared" = yes || enable_static=yes
7588
AC_MSG_RESULT([$enable_static])
7594
])# _LT_LANG_C_CONFIG
7597
# _LT_LANG_CXX_CONFIG([TAG])
7598
# --------------------------
7599
# Ensure that the configuration variables for a C++ compiler are suitably
7600
# defined. These variables are subsequently used by _LT_CONFIG to write
7601
# the compiler configuration to `libtool'.
7602
m4_defun([_LT_LANG_CXX_CONFIG],
7603
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
7604
m4_require([_LT_DECL_EGREP])dnl
7605
m4_require([_LT_PATH_MANIFEST_TOOL])dnl
7606
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7607
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7608
(test "X$CXX" != "Xg++"))) ; then
7611
_lt_caught_CXX_error=yes
7615
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7616
_LT_TAGVAR(allow_undefined_flag, $1)=
7617
_LT_TAGVAR(always_export_symbols, $1)=no
7618
_LT_TAGVAR(archive_expsym_cmds, $1)=
7619
_LT_TAGVAR(compiler_needs_object, $1)=no
7620
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
7621
_LT_TAGVAR(hardcode_direct, $1)=no
7622
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7623
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7624
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7625
_LT_TAGVAR(hardcode_minus_L, $1)=no
7626
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
7627
_LT_TAGVAR(hardcode_automatic, $1)=no
7628
_LT_TAGVAR(inherit_rpath, $1)=no
7629
_LT_TAGVAR(module_cmds, $1)=
7630
_LT_TAGVAR(module_expsym_cmds, $1)=
7631
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7632
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7633
_LT_TAGVAR(reload_flag, $1)=$reload_flag
7634
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7635
_LT_TAGVAR(no_undefined_flag, $1)=
7636
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7637
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7639
# Source file extension for C++ test sources.
7642
# Object file extension for compiled C++ test sources.
7644
_LT_TAGVAR(objext, $1)=$objext
7646
# No sense in running all these tests if we already determined that
7647
# the CXX compiler isn't working. Some variables (like enable_shared)
7648
# are currently assumed to apply to all compilers on this platform,
7649
# and will be corrupted by setting them based on a non-working compiler.
7650
if test "$_lt_caught_CXX_error" != yes; then
7651
# Code to be used in simple compile tests
7652
lt_simple_compile_test_code="int some_variable = 0;"
7654
# Code to be used in simple link tests
7655
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
7657
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7660
# save warnings/boilerplate of simple test code
7661
_LT_COMPILER_BOILERPLATE
7662
_LT_LINKER_BOILERPLATE
7664
# Allow CC to be a program name with arguments.
7666
lt_save_CFLAGS=$CFLAGS
7670
lt_save_with_gnu_ld=$with_gnu_ld
7671
lt_save_path_LD=$lt_cv_path_LD
7672
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
7673
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
7675
$as_unset lt_cv_prog_gnu_ld
7677
if test -n "${lt_cv_path_LDCXX+set}"; then
7678
lt_cv_path_LD=$lt_cv_path_LDCXX
7680
$as_unset lt_cv_path_LD
7682
test -z "${LDCXX+set}" || LD=$LDCXX
7686
_LT_TAGVAR(compiler, $1)=$CC
7687
_LT_CC_BASENAME([$compiler])
7689
if test -n "$compiler"; then
7690
# We don't want -fno-exception when compiling C++ code, so set the
7691
# no_builtin_flag separately
7692
if test "$GXX" = yes; then
7693
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
7695
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
7698
if test "$GXX" = yes; then
7699
# Set up default GNU C++ configuration
7703
# Check if GNU C++ uses GNU ld as the underlying linker, since the
7704
# archiving commands below assume that GNU ld is being used.
7705
if test "$with_gnu_ld" = yes; then
7706
_LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
7707
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7709
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7710
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7712
# If archive_cmds runs LD, not CC, wlarc should be empty
7713
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
7714
# investigate it a little bit more. (MM)
7717
# ancient GNU ld didn't support --whole-archive et. al.
7718
if eval "`$CC -print-prog-name=ld` --help 2>&1" |
7719
$GREP 'no-whole-archive' > /dev/null; then
7720
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7722
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7728
# A generic and very simple default shared library creation
7729
# command for GNU C++ for the case where it uses the native
7730
# linker, instead of GNU ld. If possible, this setting should
7731
# overridden to take advantage of the native linker features on
7732
# the platform it is being used on.
7733
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
7736
# Commands to make compiler produce verbose output that lists
7737
# what "hidden" libraries, object files and flags are used when
7738
# linking a shared library.
7739
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
7747
# PORTME: fill in a description of your system's C++ link characteristics
7748
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
7749
_LT_TAGVAR(ld_shlibs, $1)=yes
7752
# FIXME: insert proper C++ library support
7753
_LT_TAGVAR(ld_shlibs, $1)=no
7756
if test "$host_cpu" = ia64; then
7757
# On IA64, the linker does run time linking by default, so we don't
7758
# have to do anything special.
7759
aix_use_runtimelinking=no
7760
exp_sym_flag='-Bexport'
7763
aix_use_runtimelinking=no
7765
# Test if we are trying to use run time linking or normal
7766
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7767
# need to do runtime linking.
7768
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
7769
for ld_flag in $LDFLAGS; do
7772
aix_use_runtimelinking=yes
7780
exp_sym_flag='-bexport'
7781
no_entry_flag='-bnoentry'
7784
# When large executables or shared objects are built, AIX ld can
7785
# have problems creating the table of contents. If linking a library
7786
# or program results in "error TOC overflow" add -mminimal-toc to
7787
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7788
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7790
_LT_TAGVAR(archive_cmds, $1)=''
7791
_LT_TAGVAR(hardcode_direct, $1)=yes
7792
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
7793
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
7794
_LT_TAGVAR(link_all_deplibs, $1)=yes
7795
_LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
7797
if test "$GXX" = yes; then
7798
case $host_os in aix4.[[012]]|aix4.[[012]].*)
7799
# We only want to do this on AIX 4.2 and lower, the check
7800
# below for broken collect2 doesn't work under 4.3+
7801
collect2name=`${CC} -print-prog-name=collect2`
7802
if test -f "$collect2name" &&
7803
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7805
# We have reworked collect2
7808
# We have old collect2
7809
_LT_TAGVAR(hardcode_direct, $1)=unsupported
7810
# It fails to find uninstalled libraries when the uninstalled
7811
# path is not listed in the libpath. Setting hardcode_minus_L
7812
# to unsupported forces relinking
7813
_LT_TAGVAR(hardcode_minus_L, $1)=yes
7814
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7815
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7818
shared_flag='-shared'
7819
if test "$aix_use_runtimelinking" = yes; then
7820
shared_flag="$shared_flag "'${wl}-G'
7824
if test "$host_cpu" = ia64; then
7825
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7826
# chokes on -Wl,-G. The following line is correct:
7829
if test "$aix_use_runtimelinking" = yes; then
7830
shared_flag='${wl}-G'
7832
shared_flag='${wl}-bM:SRE'
7837
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
7838
# It seems that -bexpall does not export symbols beginning with
7839
# underscore (_), so it is better to generate a list of symbols to
7841
_LT_TAGVAR(always_export_symbols, $1)=yes
7842
if test "$aix_use_runtimelinking" = yes; then
7843
# Warning - without using the other runtime loading flags (-brtl),
7844
# -berok will link without error, but may produce a broken library.
7845
_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
7846
# Determine the default libpath from the value encoded in an empty
7848
_LT_SYS_MODULE_PATH_AIX([$1])
7849
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
7851
_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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7853
if test "$host_cpu" = ia64; then
7854
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
7855
_LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
7856
_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"
7858
# Determine the default libpath from the value encoded in an
7860
_LT_SYS_MODULE_PATH_AIX([$1])
7861
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
7862
# Warning - without using the other run time loading flags,
7863
# -berok will link without error, but may produce a broken library.
7864
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
7865
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
7866
if test "$with_gnu_ld" = yes; then
7867
# We only use this code for GNU lds that support --whole-archive.
7868
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
7870
# Exported symbols can be pulled into shared objects from archives
7871
_LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
7873
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
7874
# This is similar to how AIX traditionally builds its shared
7876
_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'
7882
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7883
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
7884
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7885
# support --undefined. This deserves some investigation. FIXME
7886
_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7888
_LT_TAGVAR(ld_shlibs, $1)=no
7893
case $cc_basename in
7895
# FIXME: insert proper C++ library support
7896
_LT_TAGVAR(ld_shlibs, $1)=no
7901
cygwin* | mingw* | pw32* | cegcc*)
7902
case $GXX,$cc_basename in
7905
# hardcode_libdir_flag_spec is actually meaningless, as there is
7906
# no search path for DLLs.
7907
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
7908
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
7909
_LT_TAGVAR(always_export_symbols, $1)=yes
7910
_LT_TAGVAR(file_list_spec, $1)='@'
7911
# Tell ltmain to make .lib files, not .a files.
7913
# Tell ltmain to make .dll files, not .so files.
7915
# FIXME: Setting linknames here is a bad hack.
7916
_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
7917
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7918
$SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
7920
$SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
7922
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
7924
# The linker will not automatically build a static lib if we build a DLL.
7925
# _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
7926
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
7928
_LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
7929
_LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
7930
lt_tool_outputfile="@TOOL_OUTPUT@"~
7931
case $lt_outputfile in
7934
lt_outputfile="$lt_outputfile.exe"
7935
lt_tool_outputfile="$lt_tool_outputfile.exe"
7938
func_to_tool_file "$lt_outputfile"~
7939
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
7940
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
7941
$RM "$lt_outputfile.manifest";
7946
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
7947
# as there is no search path for DLLs.
7948
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7949
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
7950
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
7951
_LT_TAGVAR(always_export_symbols, $1)=no
7952
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
7954
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7955
_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'
7956
# If the export-symbols file already is a .def file (1st line
7957
# is EXPORTS), use it as is; otherwise, prepend...
7958
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7959
cp $export_symbols $output_objdir/$soname.def;
7961
echo EXPORTS > $output_objdir/$soname.def;
7962
cat $export_symbols >> $output_objdir/$soname.def;
7964
$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'
7966
_LT_TAGVAR(ld_shlibs, $1)=no
7971
darwin* | rhapsody*)
7972
_LT_DARWIN_LINKER_FEATURES($1)
7976
case $cc_basename in
7978
# FIXME: insert proper C++ library support
7979
_LT_TAGVAR(ld_shlibs, $1)=no
7982
# Green Hills C++ Compiler
7983
# FIXME: insert proper C++ library support
7984
_LT_TAGVAR(ld_shlibs, $1)=no
7987
# FIXME: insert proper C++ library support
7988
_LT_TAGVAR(ld_shlibs, $1)=no
7994
# C++ shared libraries reported to be fairly broken before
7996
_LT_TAGVAR(ld_shlibs, $1)=no
8000
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
8003
freebsd* | dragonfly*)
8004
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
8006
_LT_TAGVAR(ld_shlibs, $1)=yes
8010
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8011
_LT_TAGVAR(link_all_deplibs, $1)=yes
8015
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
8016
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
8017
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8018
_LT_TAGVAR(hardcode_direct, $1)=yes
8019
_LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
8020
# but as the default
8021
# location of the library.
8023
case $cc_basename in
8025
# FIXME: insert proper C++ library support
8026
_LT_TAGVAR(ld_shlibs, $1)=no
8029
_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'
8030
# Commands to make compiler produce verbose output that lists
8031
# what "hidden" libraries, object files and flags are used when
8032
# linking a shared library.
8034
# There doesn't appear to be a way to prevent this compiler from
8035
# explicitly linking system object files so we need to strip them
8036
# from the output so that they don't get included in the library
8038
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
8041
if test "$GXX" = yes; then
8042
_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8044
# FIXME: insert proper C++ library support
8045
_LT_TAGVAR(ld_shlibs, $1)=no
8052
if test $with_gnu_ld = no; then
8053
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
8054
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
8060
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8066
_LT_TAGVAR(hardcode_direct, $1)=no
8067
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8070
_LT_TAGVAR(hardcode_direct, $1)=yes
8071
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
8072
_LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
8073
# but as the default
8074
# location of the library.
8078
case $cc_basename in
8080
# FIXME: insert proper C++ library support
8081
_LT_TAGVAR(ld_shlibs, $1)=no
8086
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8089
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8092
_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'
8095
# Commands to make compiler produce verbose output that lists
8096
# what "hidden" libraries, object files and flags are used when
8097
# linking a shared library.
8099
# There doesn't appear to be a way to prevent this compiler from
8100
# explicitly linking system object files so we need to strip them
8101
# from the output so that they don't get included in the library
8103
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
8106
if test "$GXX" = yes; then
8107
if test $with_gnu_ld = no; then
8110
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8113
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8116
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8121
# FIXME: insert proper C++ library support
8122
_LT_TAGVAR(ld_shlibs, $1)=no
8129
_LT_TAGVAR(hardcode_direct, $1)=no
8130
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8131
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8132
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8133
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8134
# Instead, shared libraries are loaded at an image base (0x10000000 by
8135
# default) and relocated if they conflict, which is a slow very memory
8136
# consuming and fragmenting process. To avoid this, we pick a random,
8137
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8138
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
8139
_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'
8140
_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'
8143
case $cc_basename in
8146
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
8148
# Archives containing C++ object files must be created using
8149
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
8150
# necessary to make sure instantiated templates are included
8152
_LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
8155
if test "$GXX" = yes; then
8156
if test "$with_gnu_ld" = no; then
8157
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8159
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
8162
_LT_TAGVAR(link_all_deplibs, $1)=yes
8165
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8166
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
8167
_LT_TAGVAR(inherit_rpath, $1)=yes
8170
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8171
case $cc_basename in
8173
# Kuck and Associates, Inc. (KAI) C++ Compiler
8175
# KCC will only create a shared library if the output file
8176
# ends with ".so" (or ".sl" for HP-UX), so rename the library
8177
# to its proper name (with version) after linking.
8178
_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'
8179
_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'
8180
# Commands to make compiler produce verbose output that lists
8181
# what "hidden" libraries, object files and flags are used when
8182
# linking a shared library.
8184
# There doesn't appear to be a way to prevent this compiler from
8185
# explicitly linking system object files so we need to strip them
8186
# from the output so that they don't get included in the library
8188
output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
8190
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8191
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
8193
# Archives containing C++ object files must be created using
8194
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
8195
_LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
8200
# version 8.0 and above of icpc choke on multiply defined symbols
8201
# if we add $predep_objects and $postdep_objects, however 7.1 and
8202
# earlier do not add the objects themselves.
8203
case `$CC -V 2>&1` in
8205
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
8206
_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'
8208
*) # Version 8.0 or newer
8211
ia64*) tmp_idyn=' -i_dynamic';;
8213
_LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8214
_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'
8217
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
8218
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8219
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
8220
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8223
# Portland Group C++ compiler
8225
*pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
8226
_LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
8228
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
8229
compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
8230
_LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
8232
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
8233
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
8235
_LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
8237
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
8238
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
8239
_LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
8241
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
8242
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
8244
*) # Version 6 and above use weak symbols
8245
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
8246
_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'
8250
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
8251
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
8252
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8256
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
8257
_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'
8259
runpath_var=LD_RUN_PATH
8260
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
8261
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
8263
# Commands to make compiler produce verbose output that lists
8264
# what "hidden" libraries, object files and flags are used when
8265
# linking a shared library.
8267
# There doesn't appear to be a way to prevent this compiler from
8268
# explicitly linking system object files so we need to strip them
8269
# from the output so that they don't get included in the library
8271
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
8273
xl* | mpixl* | bgxl*)
8274
# IBM XL 8.0 on PPC, with GNU ld
8275
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8276
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
8277
_LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8278
if test "x$supports_anon_versioning" = xyes; then
8279
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
8280
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8281
echo "local: *; };" >> $output_objdir/$libname.ver~
8282
$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8286
case `$CC -V 2>&1 | sed 5q` in
8289
_LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
8290
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8291
_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'
8292
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8293
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8294
_LT_TAGVAR(compiler_needs_object, $1)=yes
8296
# Not sure whether something based on
8297
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
8299
output_verbose_link_cmd='func_echo_all'
8301
# Archives containing C++ object files must be created using
8302
# "CC -xar", where "CC" is the Sun C++ compiler. This is
8303
# necessary to make sure instantiated templates are included
8305
_LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
8313
# FIXME: insert proper C++ library support
8314
_LT_TAGVAR(ld_shlibs, $1)=no
8318
# FIXME: insert proper C++ library support
8319
_LT_TAGVAR(ld_shlibs, $1)=no
8323
case $cc_basename in
8325
# FIXME: insert proper C++ library support
8326
_LT_TAGVAR(ld_shlibs, $1)=no
8329
# FIXME: insert proper C++ library support
8330
_LT_TAGVAR(ld_shlibs, $1)=no
8336
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8337
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
8339
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8340
_LT_TAGVAR(hardcode_direct, $1)=yes
8341
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8343
# Workaround some broken pre-1.5 toolchains
8344
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
8348
_LT_TAGVAR(ld_shlibs, $1)=yes
8352
# C++ shared libraries are fairly broken
8353
_LT_TAGVAR(ld_shlibs, $1)=no
8357
if test -f /usr/libexec/ld.so; then
8358
_LT_TAGVAR(hardcode_direct, $1)=yes
8359
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8360
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
8361
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
8362
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8363
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8364
_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'
8365
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8366
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8368
output_verbose_link_cmd=func_echo_all
8370
_LT_TAGVAR(ld_shlibs, $1)=no
8374
osf3* | osf4* | osf5*)
8375
case $cc_basename in
8377
# Kuck and Associates, Inc. (KAI) C++ Compiler
8379
# KCC will only create a shared library if the output file
8380
# ends with ".so" (or ".sl" for HP-UX), so rename the library
8381
# to its proper name (with version) after linking.
8382
_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'
8384
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8385
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
8387
# Archives containing C++ object files must be created using
8388
# the KAI C++ compiler.
8390
osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
8391
*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
8395
# Rational C++ 2.4.1
8396
# FIXME: insert proper C++ library support
8397
_LT_TAGVAR(ld_shlibs, $1)=no
8402
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
8403
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
8404
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8407
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
8408
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
8409
_LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
8410
echo "-hidden">> $lib.exp~
8411
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
8413
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
8417
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
8419
# Commands to make compiler produce verbose output that lists
8420
# what "hidden" libraries, object files and flags are used when
8421
# linking a shared library.
8423
# There doesn't appear to be a way to prevent this compiler from
8424
# explicitly linking system object files so we need to strip them
8425
# from the output so that they don't get included in the library
8427
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
8430
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
8431
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
8434
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8437
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8441
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8442
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
8444
# Commands to make compiler produce verbose output that lists
8445
# what "hidden" libraries, object files and flags are used when
8446
# linking a shared library.
8447
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
8450
# FIXME: insert proper C++ library support
8451
_LT_TAGVAR(ld_shlibs, $1)=no
8458
# FIXME: insert proper C++ library support
8459
_LT_TAGVAR(ld_shlibs, $1)=no
8463
case $cc_basename in
8466
# FIXME: insert proper C++ library support
8467
_LT_TAGVAR(ld_shlibs, $1)=no
8471
# FIXME: insert proper C++ library support
8472
_LT_TAGVAR(ld_shlibs, $1)=no
8475
# FIXME: insert proper C++ library support
8476
_LT_TAGVAR(ld_shlibs, $1)=no
8482
case $cc_basename in
8484
# Sun C++ 4.2, 5.x and Centerline C++
8485
_LT_TAGVAR(archive_cmds_need_lc,$1)=yes
8486
_LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
8487
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8488
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8489
$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'
8491
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8492
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8494
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
8496
# The compiler driver will combine and reorder linker options,
8497
# but understands `-z linker_flag'.
8498
# Supported since Solaris 2.6 (maybe 2.5.1?)
8499
_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
8502
_LT_TAGVAR(link_all_deplibs, $1)=yes
8504
output_verbose_link_cmd='func_echo_all'
8506
# Archives containing C++ object files must be created using
8507
# "CC -xar", where "CC" is the Sun C++ compiler. This is
8508
# necessary to make sure instantiated templates are included
8510
_LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
8513
# Green Hills C++ Compiler
8514
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
8516
# The C++ compiler must be used to create the archive.
8517
_LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
8520
# GNU C++ compiler with Solaris linker
8521
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
8522
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
8523
if $CC --version | $GREP -v '^2\.7' > /dev/null; then
8524
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
8525
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8526
$CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
8528
# Commands to make compiler produce verbose output that lists
8529
# what "hidden" libraries, object files and flags are used when
8530
# linking a shared library.
8531
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
8533
# g++ 2.7 appears to require `-G' NOT `-shared' on this
8535
_LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
8536
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8537
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
8539
# Commands to make compiler produce verbose output that lists
8540
# what "hidden" libraries, object files and flags are used when
8541
# linking a shared library.
8542
output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
8545
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
8547
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
8549
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8557
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
8558
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
8559
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
8560
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8561
runpath_var='LD_RUN_PATH'
8563
case $cc_basename in
8565
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8566
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8569
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8570
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8575
sysv5* | sco3.2v5* | sco5v6*)
8576
# Note: We can NOT use -z defs as we might desire, because we do not
8577
# link with -lc, and that would cause any symbols used from libc to
8578
# always be unresolved, which means just about no library would
8579
# ever link correctly. If we're not using GNU ld we use -z text
8580
# though, which does catch some bad symbols but isn't as heavy-handed
8582
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
8583
_LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
8584
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
8585
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8586
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
8587
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
8588
_LT_TAGVAR(link_all_deplibs, $1)=yes
8589
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
8590
runpath_var='LD_RUN_PATH'
8592
case $cc_basename in
8594
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8595
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8596
_LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
8597
'"$_LT_TAGVAR(old_archive_cmds, $1)"
8598
_LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
8599
'"$_LT_TAGVAR(reload_cmds, $1)"
8602
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8603
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8609
case $cc_basename in
8611
# NonStop-UX NCC 3.20
8612
# FIXME: insert proper C++ library support
8613
_LT_TAGVAR(ld_shlibs, $1)=no
8616
# FIXME: insert proper C++ library support
8617
_LT_TAGVAR(ld_shlibs, $1)=no
8623
# FIXME: insert proper C++ library support
8624
_LT_TAGVAR(ld_shlibs, $1)=no
8628
# FIXME: insert proper C++ library support
8629
_LT_TAGVAR(ld_shlibs, $1)=no
8633
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
8634
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
8636
_LT_TAGVAR(GCC, $1)="$GXX"
8637
_LT_TAGVAR(LD, $1)="$LD"
8640
## There is no encapsulation within the following macros, do not change
8641
## the running order or otherwise move them around unless you know exactly
8642
## what you are doing...
8643
_LT_SYS_HIDDEN_LIBDEPS($1)
8644
_LT_COMPILER_PIC($1)
8645
_LT_COMPILER_C_O($1)
8646
_LT_COMPILER_FILE_LOCKS($1)
8647
_LT_LINKER_SHLIBS($1)
8648
_LT_SYS_DYNAMIC_LINKER($1)
8649
_LT_LINKER_HARDCODE_LIBPATH($1)
8652
fi # test -n "$compiler"
8655
CFLAGS=$lt_save_CFLAGS
8659
with_gnu_ld=$lt_save_with_gnu_ld
8660
lt_cv_path_LDCXX=$lt_cv_path_LD
8661
lt_cv_path_LD=$lt_save_path_LD
8662
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
8663
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
8664
fi # test "$_lt_caught_CXX_error" != yes
8667
])# _LT_LANG_CXX_CONFIG
8670
# _LT_FUNC_STRIPNAME_CNF
8671
# ----------------------
8672
# func_stripname_cnf prefix suffix name
8673
# strip PREFIX and SUFFIX off of NAME.
8674
# PREFIX and SUFFIX must not contain globbing or regex special
8675
# characters, hashes, percent signs, but SUFFIX may contain a leading
8676
# dot (in which case that matches only a dot).
8678
# This function is identical to the (non-XSI) version of func_stripname,
8679
# except this one can be used by m4 code that may be executed by configure,
8680
# rather than the libtool script.
8681
m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
8682
AC_REQUIRE([_LT_DECL_SED])
8683
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
8684
func_stripname_cnf ()
8687
.*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8688
*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8690
} # func_stripname_cnf
8691
])# _LT_FUNC_STRIPNAME_CNF
8693
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
8694
# ---------------------------------
8695
# Figure out "hidden" library dependencies from verbose
8696
# compiler output when linking a shared library.
8697
# Parse the compiler output and extract the necessary
8698
# objects, libraries and library flags.
8699
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
8700
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
8701
AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
8702
# Dependencies to place before and after the object being linked:
8703
_LT_TAGVAR(predep_objects, $1)=
8704
_LT_TAGVAR(postdep_objects, $1)=
8705
_LT_TAGVAR(predeps, $1)=
8706
_LT_TAGVAR(postdeps, $1)=
8707
_LT_TAGVAR(compiler_lib_search_path, $1)=
8709
dnl we can't use the lt_simple_compile_test_code here,
8710
dnl because it contains code intended for an executable,
8711
dnl not a library. It's possible we should let each
8712
dnl tag define a new lt_????_link_test_code variable,
8713
dnl but it's only used here...
8714
m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
8716
void foo (void) { a = 0; }
8718
], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
8722
Foo (void) { a = 0; }
8727
], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
8735
], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
8743
], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
8746
public void bar (void) {
8751
], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
8758
_lt_libdeps_save_CFLAGS=$CFLAGS
8759
case "$CC $CFLAGS " in #(
8760
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
8761
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
8762
*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
8765
dnl Parse the compiler output and extract the necessary
8766
dnl objects, libraries and library flags.
8767
if AC_TRY_EVAL(ac_compile); then
8768
# Parse the compiler output and extract the necessary
8769
# objects, libraries and library flags.
8771
# Sentinel used to keep track of whether or not we are before
8772
# the conftest object file.
8773
pre_test_object_deps_done=no
8775
for p in `eval "$output_verbose_link_cmd"`; do
8779
# Some compilers place space between "-{L,R}" and the path.
8781
if test $p = "-L" ||
8782
test $p = "-R"; then
8787
# Expand the sysroot to ease extracting the directories later.
8788
if test -z "$prev"; then
8790
-L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
8791
-R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
8792
-l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
8796
=*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
8798
if test "$pre_test_object_deps_done" = no; then
8801
# Internal compiler library paths should come after those
8802
# provided the user. The postdeps already come after the
8803
# user supplied libs so there is no need to process them.
8804
if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
8805
_LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
8807
_LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
8810
# The "-l" case would never come before the object being
8811
# linked, so don't bother handling this case.
8814
if test -z "$_LT_TAGVAR(postdeps, $1)"; then
8815
_LT_TAGVAR(postdeps, $1)="${prev}${p}"
8817
_LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
8823
*.lto.$objext) ;; # Ignore GCC LTO objects
8825
# This assumes that the test object file only shows up
8826
# once in the compiler output.
8827
if test "$p" = "conftest.$objext"; then
8828
pre_test_object_deps_done=yes
8832
if test "$pre_test_object_deps_done" = no; then
8833
if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
8834
_LT_TAGVAR(predep_objects, $1)="$p"
8836
_LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
8839
if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
8840
_LT_TAGVAR(postdep_objects, $1)="$p"
8842
_LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
8847
*) ;; # Ignore the rest.
8855
echo "libtool.m4: error: problem compiling $1 test program"
8858
$RM -f confest.$objext
8859
CFLAGS=$_lt_libdeps_save_CFLAGS
8861
# PORTME: override above test on systems where it is broken
8865
# Interix 3.5 installs completely hosed .la files for C++, so rather than
8866
# hack all around it, let's just trust "g++" to DTRT.
8867
_LT_TAGVAR(predep_objects,$1)=
8868
_LT_TAGVAR(postdep_objects,$1)=
8869
_LT_TAGVAR(postdeps,$1)=
8873
case `$CC -V 2>&1 | sed 5q` in
8877
# The more standards-conforming stlport4 library is
8878
# incompatible with the Cstd library. Avoid specifying
8879
# it if it's in CXXFLAGS. Ignore libCrun as
8880
# -library=stlport4 depends on it.
8881
case " $CXX $CXXFLAGS " in
8882
*" -library=stlport4 "*)
8883
solaris_use_stlport4=yes
8887
if test "$solaris_use_stlport4" != yes; then
8888
_LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
8895
case $cc_basename in
8897
# The more standards-conforming stlport4 library is
8898
# incompatible with the Cstd library. Avoid specifying
8899
# it if it's in CXXFLAGS. Ignore libCrun as
8900
# -library=stlport4 depends on it.
8901
case " $CXX $CXXFLAGS " in
8902
*" -library=stlport4 "*)
8903
solaris_use_stlport4=yes
8907
# Adding this requires a known-good setup of shared libraries for
8908
# Sun compiler versions before 5.6, else PIC objects from an old
8909
# archive will be linked into the output, leading to subtle bugs.
8910
if test "$solaris_use_stlport4" != yes; then
8911
_LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
8919
case " $_LT_TAGVAR(postdeps, $1) " in
8920
*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
8922
_LT_TAGVAR(compiler_lib_search_dirs, $1)=
8923
if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
8924
_LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
8926
_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
8927
[The directories searched by this compiler when creating a shared library])
8928
_LT_TAGDECL([], [predep_objects], [1],
8929
[Dependencies to place before and after the objects being linked to
8930
create a shared library])
8931
_LT_TAGDECL([], [postdep_objects], [1])
8932
_LT_TAGDECL([], [predeps], [1])
8933
_LT_TAGDECL([], [postdeps], [1])
8934
_LT_TAGDECL([], [compiler_lib_search_path], [1],
8935
[The library search path used internally by the compiler when linking
8937
])# _LT_SYS_HIDDEN_LIBDEPS
8940
# _LT_LANG_F77_CONFIG([TAG])
8941
# --------------------------
8942
# Ensure that the configuration variables for a Fortran 77 compiler are
8943
# suitably defined. These variables are subsequently used by _LT_CONFIG
8944
# to write the compiler configuration to `libtool'.
8945
m4_defun([_LT_LANG_F77_CONFIG],
8946
[AC_LANG_PUSH(Fortran 77)
8947
if test -z "$F77" || test "X$F77" = "Xno"; then
8951
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
8952
_LT_TAGVAR(allow_undefined_flag, $1)=
8953
_LT_TAGVAR(always_export_symbols, $1)=no
8954
_LT_TAGVAR(archive_expsym_cmds, $1)=
8955
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
8956
_LT_TAGVAR(hardcode_direct, $1)=no
8957
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
8958
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
8959
_LT_TAGVAR(hardcode_libdir_separator, $1)=
8960
_LT_TAGVAR(hardcode_minus_L, $1)=no
8961
_LT_TAGVAR(hardcode_automatic, $1)=no
8962
_LT_TAGVAR(inherit_rpath, $1)=no
8963
_LT_TAGVAR(module_cmds, $1)=
8964
_LT_TAGVAR(module_expsym_cmds, $1)=
8965
_LT_TAGVAR(link_all_deplibs, $1)=unknown
8966
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
8967
_LT_TAGVAR(reload_flag, $1)=$reload_flag
8968
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
8969
_LT_TAGVAR(no_undefined_flag, $1)=
8970
_LT_TAGVAR(whole_archive_flag_spec, $1)=
8971
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
8973
# Source file extension for f77 test sources.
8976
# Object file extension for compiled f77 test sources.
8978
_LT_TAGVAR(objext, $1)=$objext
8980
# No sense in running all these tests if we already determined that
8981
# the F77 compiler isn't working. Some variables (like enable_shared)
8982
# are currently assumed to apply to all compilers on this platform,
8983
# and will be corrupted by setting them based on a non-working compiler.
8984
if test "$_lt_disable_F77" != yes; then
8985
# Code to be used in simple compile tests
8986
lt_simple_compile_test_code="\
8992
# Code to be used in simple link tests
8993
lt_simple_link_test_code="\
8998
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9001
# save warnings/boilerplate of simple test code
9002
_LT_COMPILER_BOILERPLATE
9003
_LT_LINKER_BOILERPLATE
9005
# Allow CC to be a program name with arguments.
9008
lt_save_CFLAGS=$CFLAGS
9012
_LT_TAGVAR(compiler, $1)=$CC
9013
_LT_CC_BASENAME([$compiler])
9015
if test -n "$compiler"; then
9016
AC_MSG_CHECKING([if libtool supports shared libraries])
9017
AC_MSG_RESULT([$can_build_shared])
9019
AC_MSG_CHECKING([whether to build shared libraries])
9020
test "$can_build_shared" = "no" && enable_shared=no
9022
# On AIX, shared libraries and static libraries use the same namespace, and
9023
# are all built from PIC.
9026
test "$enable_shared" = yes && enable_static=no
9027
if test -n "$RANLIB"; then
9028
archive_cmds="$archive_cmds~\$RANLIB \$lib"
9029
postinstall_cmds='$RANLIB $lib'
9033
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9034
test "$enable_shared" = yes && enable_static=no
9038
AC_MSG_RESULT([$enable_shared])
9040
AC_MSG_CHECKING([whether to build static libraries])
9041
# Make sure either enable_shared or enable_static is yes.
9042
test "$enable_shared" = yes || enable_static=yes
9043
AC_MSG_RESULT([$enable_static])
9045
_LT_TAGVAR(GCC, $1)="$G77"
9046
_LT_TAGVAR(LD, $1)="$LD"
9049
## There is no encapsulation within the following macros, do not change
9050
## the running order or otherwise move them around unless you know exactly
9051
## what you are doing...
9052
_LT_COMPILER_PIC($1)
9053
_LT_COMPILER_C_O($1)
9054
_LT_COMPILER_FILE_LOCKS($1)
9055
_LT_LINKER_SHLIBS($1)
9056
_LT_SYS_DYNAMIC_LINKER($1)
9057
_LT_LINKER_HARDCODE_LIBPATH($1)
9060
fi # test -n "$compiler"
9064
CFLAGS="$lt_save_CFLAGS"
9065
fi # test "$_lt_disable_F77" != yes
9068
])# _LT_LANG_F77_CONFIG
9071
# _LT_LANG_FC_CONFIG([TAG])
9072
# -------------------------
9073
# Ensure that the configuration variables for a Fortran compiler are
9074
# suitably defined. These variables are subsequently used by _LT_CONFIG
9075
# to write the compiler configuration to `libtool'.
9076
m4_defun([_LT_LANG_FC_CONFIG],
9077
[AC_LANG_PUSH(Fortran)
9079
if test -z "$FC" || test "X$FC" = "Xno"; then
9083
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
9084
_LT_TAGVAR(allow_undefined_flag, $1)=
9085
_LT_TAGVAR(always_export_symbols, $1)=no
9086
_LT_TAGVAR(archive_expsym_cmds, $1)=
9087
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
9088
_LT_TAGVAR(hardcode_direct, $1)=no
9089
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
9090
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
9091
_LT_TAGVAR(hardcode_libdir_separator, $1)=
9092
_LT_TAGVAR(hardcode_minus_L, $1)=no
9093
_LT_TAGVAR(hardcode_automatic, $1)=no
9094
_LT_TAGVAR(inherit_rpath, $1)=no
9095
_LT_TAGVAR(module_cmds, $1)=
9096
_LT_TAGVAR(module_expsym_cmds, $1)=
9097
_LT_TAGVAR(link_all_deplibs, $1)=unknown
9098
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
9099
_LT_TAGVAR(reload_flag, $1)=$reload_flag
9100
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
9101
_LT_TAGVAR(no_undefined_flag, $1)=
9102
_LT_TAGVAR(whole_archive_flag_spec, $1)=
9103
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
9105
# Source file extension for fc test sources.
9106
ac_ext=${ac_fc_srcext-f}
9108
# Object file extension for compiled fc test sources.
9110
_LT_TAGVAR(objext, $1)=$objext
9112
# No sense in running all these tests if we already determined that
9113
# the FC compiler isn't working. Some variables (like enable_shared)
9114
# are currently assumed to apply to all compilers on this platform,
9115
# and will be corrupted by setting them based on a non-working compiler.
9116
if test "$_lt_disable_FC" != yes; then
9117
# Code to be used in simple compile tests
9118
lt_simple_compile_test_code="\
9124
# Code to be used in simple link tests
9125
lt_simple_link_test_code="\
9130
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9133
# save warnings/boilerplate of simple test code
9134
_LT_COMPILER_BOILERPLATE
9135
_LT_LINKER_BOILERPLATE
9137
# Allow CC to be a program name with arguments.
9140
lt_save_CFLAGS=$CFLAGS
9144
GCC=$ac_cv_fc_compiler_gnu
9146
_LT_TAGVAR(compiler, $1)=$CC
9147
_LT_CC_BASENAME([$compiler])
9149
if test -n "$compiler"; then
9150
AC_MSG_CHECKING([if libtool supports shared libraries])
9151
AC_MSG_RESULT([$can_build_shared])
9153
AC_MSG_CHECKING([whether to build shared libraries])
9154
test "$can_build_shared" = "no" && enable_shared=no
9156
# On AIX, shared libraries and static libraries use the same namespace, and
9157
# are all built from PIC.
9160
test "$enable_shared" = yes && enable_static=no
9161
if test -n "$RANLIB"; then
9162
archive_cmds="$archive_cmds~\$RANLIB \$lib"
9163
postinstall_cmds='$RANLIB $lib'
9167
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9168
test "$enable_shared" = yes && enable_static=no
9172
AC_MSG_RESULT([$enable_shared])
9174
AC_MSG_CHECKING([whether to build static libraries])
9175
# Make sure either enable_shared or enable_static is yes.
9176
test "$enable_shared" = yes || enable_static=yes
9177
AC_MSG_RESULT([$enable_static])
9179
_LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
9180
_LT_TAGVAR(LD, $1)="$LD"
9183
## There is no encapsulation within the following macros, do not change
9184
## the running order or otherwise move them around unless you know exactly
9185
## what you are doing...
9186
_LT_SYS_HIDDEN_LIBDEPS($1)
9187
_LT_COMPILER_PIC($1)
9188
_LT_COMPILER_C_O($1)
9189
_LT_COMPILER_FILE_LOCKS($1)
9190
_LT_LINKER_SHLIBS($1)
9191
_LT_SYS_DYNAMIC_LINKER($1)
9192
_LT_LINKER_HARDCODE_LIBPATH($1)
9195
fi # test -n "$compiler"
9199
CFLAGS=$lt_save_CFLAGS
9200
fi # test "$_lt_disable_FC" != yes
9203
])# _LT_LANG_FC_CONFIG
9206
# _LT_LANG_GCJ_CONFIG([TAG])
9207
# --------------------------
9208
# Ensure that the configuration variables for the GNU Java Compiler compiler
9209
# are suitably defined. These variables are subsequently used by _LT_CONFIG
9210
# to write the compiler configuration to `libtool'.
9211
m4_defun([_LT_LANG_GCJ_CONFIG],
9212
[AC_REQUIRE([LT_PROG_GCJ])dnl
9215
# Source file extension for Java test sources.
9218
# Object file extension for compiled Java test sources.
9220
_LT_TAGVAR(objext, $1)=$objext
9222
# Code to be used in simple compile tests
9223
lt_simple_compile_test_code="class foo {}"
9225
# Code to be used in simple link tests
9226
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
9228
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9231
# save warnings/boilerplate of simple test code
9232
_LT_COMPILER_BOILERPLATE
9233
_LT_LINKER_BOILERPLATE
9235
# Allow CC to be a program name with arguments.
9237
lt_save_CFLAGS=$CFLAGS
9243
_LT_TAGVAR(compiler, $1)=$CC
9244
_LT_TAGVAR(LD, $1)="$LD"
9245
_LT_CC_BASENAME([$compiler])
9247
# GCJ did not exist at the time GCC didn't implicitly link libc in.
9248
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
9250
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
9251
_LT_TAGVAR(reload_flag, $1)=$reload_flag
9252
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
9254
if test -n "$compiler"; then
9255
_LT_COMPILER_NO_RTTI($1)
9256
_LT_COMPILER_PIC($1)
9257
_LT_COMPILER_C_O($1)
9258
_LT_COMPILER_FILE_LOCKS($1)
9259
_LT_LINKER_SHLIBS($1)
9260
_LT_LINKER_HARDCODE_LIBPATH($1)
9269
CFLAGS=$lt_save_CFLAGS
9270
])# _LT_LANG_GCJ_CONFIG
9273
# _LT_LANG_GO_CONFIG([TAG])
9274
# --------------------------
9275
# Ensure that the configuration variables for the GNU Go compiler
9276
# are suitably defined. These variables are subsequently used by _LT_CONFIG
9277
# to write the compiler configuration to `libtool'.
9278
m4_defun([_LT_LANG_GO_CONFIG],
9279
[AC_REQUIRE([LT_PROG_GO])dnl
9282
# Source file extension for Go test sources.
9285
# Object file extension for compiled Go test sources.
9287
_LT_TAGVAR(objext, $1)=$objext
9289
# Code to be used in simple compile tests
9290
lt_simple_compile_test_code="package main; func main() { }"
9292
# Code to be used in simple link tests
9293
lt_simple_link_test_code='package main; func main() { }'
9295
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9298
# save warnings/boilerplate of simple test code
9299
_LT_COMPILER_BOILERPLATE
9300
_LT_LINKER_BOILERPLATE
9302
# Allow CC to be a program name with arguments.
9304
lt_save_CFLAGS=$CFLAGS
9310
_LT_TAGVAR(compiler, $1)=$CC
9311
_LT_TAGVAR(LD, $1)="$LD"
9312
_LT_CC_BASENAME([$compiler])
9314
# Go did not exist at the time GCC didn't implicitly link libc in.
9315
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
9317
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
9318
_LT_TAGVAR(reload_flag, $1)=$reload_flag
9319
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
9321
if test -n "$compiler"; then
9322
_LT_COMPILER_NO_RTTI($1)
9323
_LT_COMPILER_PIC($1)
9324
_LT_COMPILER_C_O($1)
9325
_LT_COMPILER_FILE_LOCKS($1)
9326
_LT_LINKER_SHLIBS($1)
9327
_LT_LINKER_HARDCODE_LIBPATH($1)
9336
CFLAGS=$lt_save_CFLAGS
9337
])# _LT_LANG_GO_CONFIG
9340
# _LT_LANG_RC_CONFIG([TAG])
9341
# -------------------------
9342
# Ensure that the configuration variables for the Windows resource compiler
9343
# are suitably defined. These variables are subsequently used by _LT_CONFIG
9344
# to write the compiler configuration to `libtool'.
9345
m4_defun([_LT_LANG_RC_CONFIG],
9346
[AC_REQUIRE([LT_PROG_RC])dnl
9349
# Source file extension for RC test sources.
9352
# Object file extension for compiled RC test sources.
9354
_LT_TAGVAR(objext, $1)=$objext
9356
# Code to be used in simple compile tests
9357
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
9359
# Code to be used in simple link tests
9360
lt_simple_link_test_code="$lt_simple_compile_test_code"
9362
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9365
# save warnings/boilerplate of simple test code
9366
_LT_COMPILER_BOILERPLATE
9367
_LT_LINKER_BOILERPLATE
9369
# Allow CC to be a program name with arguments.
9371
lt_save_CFLAGS=$CFLAGS
9377
_LT_TAGVAR(compiler, $1)=$CC
9378
_LT_CC_BASENAME([$compiler])
9379
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
9381
if test -n "$compiler"; then
9389
CFLAGS=$lt_save_CFLAGS
9390
])# _LT_LANG_RC_CONFIG
9395
AC_DEFUN([LT_PROG_GCJ],
9396
[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
9397
[m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
9398
[AC_CHECK_TOOL(GCJ, gcj,)
9399
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
9400
AC_SUBST(GCJFLAGS)])])[]dnl
9404
AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
9405
dnl aclocal-1.4 backwards compatibility:
9406
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
9411
AC_DEFUN([LT_PROG_GO],
9412
[AC_CHECK_TOOL(GOC, gccgo,)
9418
AC_DEFUN([LT_PROG_RC],
9419
[AC_CHECK_TOOL(RC, windres,)
9423
AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
9424
dnl aclocal-1.4 backwards compatibility:
9425
dnl AC_DEFUN([LT_AC_PROG_RC], [])
9430
# If we don't have a new enough Autoconf to choose the best grep
9431
# available, choose the one first in the user's PATH.
9432
m4_defun([_LT_DECL_EGREP],
9433
[AC_REQUIRE([AC_PROG_EGREP])dnl
9434
AC_REQUIRE([AC_PROG_FGREP])dnl
9435
test -z "$GREP" && GREP=grep
9436
_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
9437
_LT_DECL([], [EGREP], [1], [An ERE matcher])
9438
_LT_DECL([], [FGREP], [1], [A literal string matcher])
9439
dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
9446
# If we don't have a new enough Autoconf to choose the best objdump
9447
# available, choose the one first in the user's PATH.
9448
m4_defun([_LT_DECL_OBJDUMP],
9449
[AC_CHECK_TOOL(OBJDUMP, objdump, false)
9450
test -z "$OBJDUMP" && OBJDUMP=objdump
9451
_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
9457
# Ensure DLLTOOL variable is set.
9458
m4_defun([_LT_DECL_DLLTOOL],
9459
[AC_CHECK_TOOL(DLLTOOL, dlltool, false)
9460
test -z "$DLLTOOL" && DLLTOOL=dlltool
9461
_LT_DECL([], [DLLTOOL], [1], [DLL creation program])
9467
# Check for a fully-functional sed program, that truncates
9468
# as few characters as possible. Prefer GNU sed if found.
9469
m4_defun([_LT_DECL_SED],
9471
test -z "$SED" && SED=sed
9472
Xsed="$SED -e 1s/^X//"
9473
_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
9474
_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
9475
[Sed that helps us avoid accidentally triggering echo(1) options like -n])
9478
m4_ifndef([AC_PROG_SED], [
9479
# NOTE: This macro has been submitted for inclusion into #
9480
# GNU Autoconf as AC_PROG_SED. When it is available in #
9481
# a released version of Autoconf we should remove this #
9482
# macro and use it instead. #
9484
m4_defun([AC_PROG_SED],
9485
[AC_MSG_CHECKING([for a sed that does not truncate output])
9486
AC_CACHE_VAL(lt_cv_path_SED,
9487
[# Loop through the user's path and test for sed and gsed.
9488
# Then use that list of sed's as ones to test for truncation.
9489
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9493
test -z "$as_dir" && as_dir=.
9494
for lt_ac_prog in sed gsed; do
9495
for ac_exec_ext in '' $ac_executable_extensions; do
9496
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9497
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9505
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
9506
# along with /bin/sed that truncates output.
9507
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9508
test ! -f $lt_ac_sed && continue
9509
cat /dev/null > conftest.in
9511
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9512
# Check for GNU sed and select it if it is found.
9513
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9514
lt_cv_path_SED=$lt_ac_sed
9518
cat conftest.in conftest.in >conftest.tmp
9519
mv conftest.tmp conftest.in
9520
cp conftest.in conftest.nl
9522
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9523
cmp -s conftest.out conftest.nl || break
9524
# 10000 chars as input seems more than enough
9525
test $lt_ac_count -gt 10 && break
9526
lt_ac_count=`expr $lt_ac_count + 1`
9527
if test $lt_ac_count -gt $lt_ac_max; then
9528
lt_ac_max=$lt_ac_count
9529
lt_cv_path_SED=$lt_ac_sed
9536
AC_MSG_RESULT([$SED])
9541
AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
9542
dnl aclocal-1.4 backwards compatibility:
9543
dnl AC_DEFUN([LT_AC_PROG_SED], [])
9546
# _LT_CHECK_SHELL_FEATURES
9547
# ------------------------
9548
# Find out whether the shell is Bourne or XSI compatible,
9549
# or has some other useful features.
9550
m4_defun([_LT_CHECK_SHELL_FEATURES],
9551
[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
9552
# Try some XSI features
9555
test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
9557
&& eval 'test $(( 1 + 1 )) -eq 2 \
9558
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9560
AC_MSG_RESULT([$xsi_shell])
9561
_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
9563
AC_MSG_CHECKING([whether the shell understands "+="])
9565
( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
9567
&& lt_shell_append=yes
9568
AC_MSG_RESULT([$lt_shell_append])
9569
_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
9571
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9576
_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
9578
# test EBCDIC or ASCII
9579
case `echo X|tr X '\101'` in
9580
A) # ASCII based system
9581
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9582
lt_SP2NL='tr \040 \012'
9583
lt_NL2SP='tr \015\012 \040\040'
9585
*) # EBCDIC based system
9586
lt_SP2NL='tr \100 \n'
9587
lt_NL2SP='tr \r\n \100\100'
9590
_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
9591
_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
9592
])# _LT_CHECK_SHELL_FEATURES
9595
# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
9596
# ------------------------------------------------------
9597
# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
9598
# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
9599
m4_defun([_LT_PROG_FUNCTION_REPLACE],
9601
sed -e '/^$1 ()$/,/^} # $1 /c\
9604
m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
9605
} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
9606
&& mv -f "$cfgfile.tmp" "$cfgfile" \
9607
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
9608
test 0 -eq $? || _lt_function_replace_fail=:
9612
# _LT_PROG_REPLACE_SHELLFNS
9613
# -------------------------
9614
# Replace existing portable implementations of several shell functions with
9615
# equivalent extended shell implementations where those features are available..
9616
m4_defun([_LT_PROG_REPLACE_SHELLFNS],
9617
[if test x"$xsi_shell" = xyes; then
9618
_LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
9620
*/*) func_dirname_result="${1%/*}${2}" ;;
9621
* ) func_dirname_result="${3}" ;;
9624
_LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
9625
func_basename_result="${1##*/}"])
9627
_LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
9629
*/*) func_dirname_result="${1%/*}${2}" ;;
9630
* ) func_dirname_result="${3}" ;;
9632
func_basename_result="${1##*/}"])
9634
_LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
9635
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
9636
# positional parameters, so assign one to ordinary parameter first.
9637
func_stripname_result=${3}
9638
func_stripname_result=${func_stripname_result#"${1}"}
9639
func_stripname_result=${func_stripname_result%"${2}"}])
9641
_LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
9642
func_split_long_opt_name=${1%%=*}
9643
func_split_long_opt_arg=${1#*=}])
9645
_LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
9646
func_split_short_opt_arg=${1#??}
9647
func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
9649
_LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
9651
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
9652
*) func_lo2o_result=${1} ;;
9655
_LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
9657
_LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])
9659
_LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
9662
if test x"$lt_shell_append" = xyes; then
9663
_LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
9665
_LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
9666
func_quote_for_eval "${2}"
9667
dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
9668
eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
9670
# Save a `func_append' function call where possible by direct use of '+='
9671
sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
9672
&& mv -f "$cfgfile.tmp" "$cfgfile" \
9673
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
9674
test 0 -eq $? || _lt_function_replace_fail=:
9676
# Save a `func_append' function call even when '+=' is not available
9677
sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
9678
&& mv -f "$cfgfile.tmp" "$cfgfile" \
9679
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
9680
test 0 -eq $? || _lt_function_replace_fail=:
9683
if test x"$_lt_function_replace_fail" = x":"; then
9684
AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
9688
# _LT_PATH_CONVERSION_FUNCTIONS
9689
# -----------------------------
9690
# Determine which file name conversion functions should be used by
9691
# func_to_host_file (and, implicitly, by func_to_host_path). These are needed
9692
# for certain cross-compile configurations and native mingw.
9693
m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
9694
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
9695
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
9696
AC_MSG_CHECKING([how to convert $build file names to $host format])
9697
AC_CACHE_VAL(lt_cv_to_host_file_cmd,
9701
*-*-mingw* ) # actually msys
9702
lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
9705
lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
9707
* ) # otherwise, assume *nix
9708
lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
9714
*-*-mingw* ) # actually msys
9715
lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
9718
lt_cv_to_host_file_cmd=func_convert_file_noop
9720
* ) # otherwise, assume *nix
9721
lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
9725
* ) # unhandled hosts (and "normal" native builds)
9726
lt_cv_to_host_file_cmd=func_convert_file_noop
9730
to_host_file_cmd=$lt_cv_to_host_file_cmd
9731
AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
9732
_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
9733
[0], [convert $build file names to $host format])dnl
9735
AC_MSG_CHECKING([how to convert $build file names to toolchain format])
9736
AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
9737
[#assume ordinary cross tools, or native build.
9738
lt_cv_to_tool_file_cmd=func_convert_file_noop
9742
*-*-mingw* ) # actually msys
9743
lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
9749
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9750
AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
9751
_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
9752
[0], [convert $build files to toolchain format])dnl
9753
])# _LT_PATH_CONVERSION_FUNCTIONS
9755
# Helper functions for option handling. -*- Autoconf -*-
9757
# Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
9759
# Written by Gary V. Vaughan, 2004
9761
# This file is free software; the Free Software Foundation gives
9762
# unlimited permission to copy and/or distribute it, with or without
9763
# modifications, as long as this notice is preserved.
9765
# serial 7 ltoptions.m4
9767
# This is to help aclocal find these macros, as it can't see m4_define.
9768
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
9771
# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
9772
# ------------------------------------------
9773
m4_define([_LT_MANGLE_OPTION],
9774
[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
9777
# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
9778
# ---------------------------------------
9779
# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
9780
# matching handler defined, dispatch to it. Other OPTION-NAMEs are
9782
m4_define([_LT_SET_OPTION],
9783
[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
9784
m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
9785
_LT_MANGLE_DEFUN([$1], [$2]),
9786
[m4_warning([Unknown $1 option `$2'])])[]dnl
9790
# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
9791
# ------------------------------------------------------------
9792
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
9793
m4_define([_LT_IF_OPTION],
9794
[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
9797
# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
9798
# -------------------------------------------------------
9799
# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
9801
m4_define([_LT_UNLESS_OPTIONS],
9802
[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
9803
[m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
9804
[m4_define([$0_found])])])[]dnl
9805
m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
9810
# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
9811
# ----------------------------------------
9812
# OPTION-LIST is a space-separated list of Libtool options associated
9813
# with MACRO-NAME. If any OPTION has a matching handler declared with
9814
# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
9815
# the unknown option and exit.
9816
m4_defun([_LT_SET_OPTIONS],
9818
m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
9819
[_LT_SET_OPTION([$1], _LT_Option)])
9821
m4_if([$1],[LT_INIT],[
9823
dnl Simply set some default values (i.e off) if boolean options were not
9825
_LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
9827
_LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
9830
dnl If no reference was made to various pairs of opposing options, then
9831
dnl we run the default mode handler for the pair. For example, if neither
9832
dnl `shared' nor `disable-shared' was passed, we enable building of shared
9833
dnl archives by default:
9834
_LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
9835
_LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
9836
_LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
9837
_LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
9838
[_LT_ENABLE_FAST_INSTALL])
9844
# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
9845
# -----------------------------------------
9846
m4_define([_LT_MANGLE_DEFUN],
9847
[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
9850
# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
9851
# -----------------------------------------------
9852
m4_define([LT_OPTION_DEFINE],
9853
[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
9854
])# LT_OPTION_DEFINE
9859
LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
9862
AU_DEFUN([AC_LIBTOOL_DLOPEN],
9863
[_LT_SET_OPTION([LT_INIT], [dlopen])
9864
AC_DIAGNOSE([obsolete],
9865
[$0: Remove this warning and the call to _LT_SET_OPTION when you
9866
put the `dlopen' option into LT_INIT's first parameter.])
9869
dnl aclocal-1.4 backwards compatibility:
9870
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
9875
# Declare package support for building win32 dll's.
9876
LT_OPTION_DEFINE([LT_INIT], [win32-dll],
9877
[enable_win32_dll=yes
9880
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
9881
AC_CHECK_TOOL(AS, as, false)
9882
AC_CHECK_TOOL(DLLTOOL, dlltool, false)
9883
AC_CHECK_TOOL(OBJDUMP, objdump, false)
9887
test -z "$AS" && AS=as
9888
_LT_DECL([], [AS], [1], [Assembler program])dnl
9890
test -z "$DLLTOOL" && DLLTOOL=dlltool
9891
_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
9893
test -z "$OBJDUMP" && OBJDUMP=objdump
9894
_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
9897
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
9898
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
9899
_LT_SET_OPTION([LT_INIT], [win32-dll])
9900
AC_DIAGNOSE([obsolete],
9901
[$0: Remove this warning and the call to _LT_SET_OPTION when you
9902
put the `win32-dll' option into LT_INIT's first parameter.])
9905
dnl aclocal-1.4 backwards compatibility:
9906
dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
9909
# _LT_ENABLE_SHARED([DEFAULT])
9910
# ----------------------------
9911
# implement the --enable-shared flag, and supports the `shared' and
9912
# `disable-shared' LT_INIT options.
9913
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
9914
m4_define([_LT_ENABLE_SHARED],
9915
[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
9916
AC_ARG_ENABLE([shared],
9917
[AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
9918
[build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
9919
[p=${PACKAGE-default}
9921
yes) enable_shared=yes ;;
9922
no) enable_shared=no ;;
9925
# Look at the argument we got. We use all the common list separators.
9926
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9927
for pkg in $enableval; do
9929
if test "X$pkg" = "X$p"; then
9936
[enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
9938
_LT_DECL([build_libtool_libs], [enable_shared], [0],
9939
[Whether or not to build shared libraries])
9940
])# _LT_ENABLE_SHARED
9942
LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
9943
LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
9946
AC_DEFUN([AC_ENABLE_SHARED],
9947
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
9950
AC_DEFUN([AC_DISABLE_SHARED],
9951
[_LT_SET_OPTION([LT_INIT], [disable-shared])
9954
AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
9955
AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
9957
dnl aclocal-1.4 backwards compatibility:
9958
dnl AC_DEFUN([AM_ENABLE_SHARED], [])
9959
dnl AC_DEFUN([AM_DISABLE_SHARED], [])
9963
# _LT_ENABLE_STATIC([DEFAULT])
9964
# ----------------------------
9965
# implement the --enable-static flag, and support the `static' and
9966
# `disable-static' LT_INIT options.
9967
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
9968
m4_define([_LT_ENABLE_STATIC],
9969
[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
9970
AC_ARG_ENABLE([static],
9971
[AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
9972
[build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
9973
[p=${PACKAGE-default}
9975
yes) enable_static=yes ;;
9976
no) enable_static=no ;;
9979
# Look at the argument we got. We use all the common list separators.
9980
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9981
for pkg in $enableval; do
9983
if test "X$pkg" = "X$p"; then
9990
[enable_static=]_LT_ENABLE_STATIC_DEFAULT)
9992
_LT_DECL([build_old_libs], [enable_static], [0],
9993
[Whether or not to build static libraries])
9994
])# _LT_ENABLE_STATIC
9996
LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
9997
LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
10000
AC_DEFUN([AC_ENABLE_STATIC],
10001
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
10004
AC_DEFUN([AC_DISABLE_STATIC],
10005
[_LT_SET_OPTION([LT_INIT], [disable-static])
10008
AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
10009
AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
10011
dnl aclocal-1.4 backwards compatibility:
10012
dnl AC_DEFUN([AM_ENABLE_STATIC], [])
10013
dnl AC_DEFUN([AM_DISABLE_STATIC], [])
10017
# _LT_ENABLE_FAST_INSTALL([DEFAULT])
10018
# ----------------------------------
10019
# implement the --enable-fast-install flag, and support the `fast-install'
10020
# and `disable-fast-install' LT_INIT options.
10021
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
10022
m4_define([_LT_ENABLE_FAST_INSTALL],
10023
[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
10024
AC_ARG_ENABLE([fast-install],
10025
[AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
10026
[optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
10027
[p=${PACKAGE-default}
10029
yes) enable_fast_install=yes ;;
10030
no) enable_fast_install=no ;;
10032
enable_fast_install=no
10033
# Look at the argument we got. We use all the common list separators.
10034
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10035
for pkg in $enableval; do
10037
if test "X$pkg" = "X$p"; then
10038
enable_fast_install=yes
10044
[enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
10046
_LT_DECL([fast_install], [enable_fast_install], [0],
10047
[Whether or not to optimize for fast installation])dnl
10048
])# _LT_ENABLE_FAST_INSTALL
10050
LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
10051
LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
10054
AU_DEFUN([AC_ENABLE_FAST_INSTALL],
10055
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
10056
AC_DIAGNOSE([obsolete],
10057
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
10058
the `fast-install' option into LT_INIT's first parameter.])
10061
AU_DEFUN([AC_DISABLE_FAST_INSTALL],
10062
[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
10063
AC_DIAGNOSE([obsolete],
10064
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
10065
the `disable-fast-install' option into LT_INIT's first parameter.])
10068
dnl aclocal-1.4 backwards compatibility:
10069
dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
10070
dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
10073
# _LT_WITH_PIC([MODE])
10074
# --------------------
10075
# implement the --with-pic flag, and support the `pic-only' and `no-pic'
10077
# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
10078
m4_define([_LT_WITH_PIC],
10079
[AC_ARG_WITH([pic],
10080
[AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
10081
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
10082
[lt_p=${PACKAGE-default}
10084
yes|no) pic_mode=$withval ;;
10087
# Look at the argument we got. We use all the common list separators.
10088
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10089
for lt_pkg in $withval; do
10091
if test "X$lt_pkg" = "X$lt_p"; then
10098
[pic_mode=default])
10100
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
10102
_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
10105
LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
10106
LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
10109
AU_DEFUN([AC_LIBTOOL_PICMODE],
10110
[_LT_SET_OPTION([LT_INIT], [pic-only])
10111
AC_DIAGNOSE([obsolete],
10112
[$0: Remove this warning and the call to _LT_SET_OPTION when you
10113
put the `pic-only' option into LT_INIT's first parameter.])
10116
dnl aclocal-1.4 backwards compatibility:
10117
dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
10120
m4_define([_LTDL_MODE], [])
10121
LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
10122
[m4_define([_LTDL_MODE], [nonrecursive])])
10123
LT_OPTION_DEFINE([LTDL_INIT], [recursive],
10124
[m4_define([_LTDL_MODE], [recursive])])
10125
LT_OPTION_DEFINE([LTDL_INIT], [subproject],
10126
[m4_define([_LTDL_MODE], [subproject])])
10128
m4_define([_LTDL_TYPE], [])
10129
LT_OPTION_DEFINE([LTDL_INIT], [installable],
10130
[m4_define([_LTDL_TYPE], [installable])])
10131
LT_OPTION_DEFINE([LTDL_INIT], [convenience],
10132
[m4_define([_LTDL_TYPE], [convenience])])
10134
# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
10136
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
10137
# Written by Gary V. Vaughan, 2004
10139
# This file is free software; the Free Software Foundation gives
10140
# unlimited permission to copy and/or distribute it, with or without
10141
# modifications, as long as this notice is preserved.
10143
# serial 6 ltsugar.m4
10145
# This is to help aclocal find these macros, as it can't see m4_define.
10146
AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
10149
# lt_join(SEP, ARG1, [ARG2...])
10150
# -----------------------------
10151
# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
10152
# associated separator.
10153
# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
10154
# versions in m4sugar had bugs.
10155
m4_define([lt_join],
10156
[m4_if([$#], [1], [],
10158
[m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
10159
m4_define([_lt_join],
10160
[m4_if([$#$2], [2], [],
10161
[m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
10167
# Manipulate m4 lists.
10168
# These macros are necessary as long as will still need to support
10169
# Autoconf-2.59 which quotes differently.
10170
m4_define([lt_car], [[$1]])
10171
m4_define([lt_cdr],
10172
[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
10174
[m4_dquote(m4_shift($@))])])
10175
m4_define([lt_unquote], $1)
10178
# lt_append(MACRO-NAME, STRING, [SEPARATOR])
10179
# ------------------------------------------
10180
# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
10181
# Note that neither SEPARATOR nor STRING are expanded; they are appended
10182
# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
10183
# No SEPARATOR is output if MACRO-NAME was previously undefined (different
10184
# than defined and empty).
10186
# This macro is needed until we can rely on Autoconf 2.62, since earlier
10187
# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
10188
m4_define([lt_append],
10190
m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
10194
# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
10195
# ----------------------------------------------------------
10196
# Produce a SEP delimited list of all paired combinations of elements of
10197
# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
10198
# has the form PREFIXmINFIXSUFFIXn.
10199
# Needed until we can rely on m4_combine added in Autoconf 2.62.
10200
m4_define([lt_combine],
10201
[m4_if(m4_eval([$# > 3]), [1],
10202
[m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
10203
[[m4_foreach([_Lt_prefix], [$2],
10204
[m4_foreach([_Lt_suffix],
10205
]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
10206
[_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
10209
# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
10210
# -----------------------------------------------------------------------
10211
# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
10212
# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
10213
m4_define([lt_if_append_uniq],
10215
[m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
10216
[lt_append([$1], [$2], [$3])$4],
10218
[lt_append([$1], [$2], [$3])$4])])
10221
# lt_dict_add(DICT, KEY, VALUE)
10222
# -----------------------------
10223
m4_define([lt_dict_add],
10224
[m4_define([$1($2)], [$3])])
10227
# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
10228
# --------------------------------------------
10229
m4_define([lt_dict_add_subkey],
10230
[m4_define([$1($2:$3)], [$4])])
10233
# lt_dict_fetch(DICT, KEY, [SUBKEY])
10234
# ----------------------------------
10235
m4_define([lt_dict_fetch],
10237
m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
10238
m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
10241
# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
10242
# -----------------------------------------------------------------
10243
m4_define([lt_if_dict_fetch],
10244
[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
10249
# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
10250
# --------------------------------------------------------------
10251
m4_define([lt_dict_filter],
10252
[m4_if([$5], [], [],
10253
[lt_join(m4_quote(m4_default([$4], [[, ]])),
10254
lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
10255
[lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
10258
# ltversion.m4 -- version numbers -*- Autoconf -*-
10260
# Copyright (C) 2004 Free Software Foundation, Inc.
10261
# Written by Scott James Remnant, 2004
10263
# This file is free software; the Free Software Foundation gives
10264
# unlimited permission to copy and/or distribute it, with or without
10265
# modifications, as long as this notice is preserved.
10267
# @configure_input@
10269
# serial 3337 ltversion.m4
10270
# This file is part of GNU Libtool
10272
m4_define([LT_PACKAGE_VERSION], [2.4.2])
10273
m4_define([LT_PACKAGE_REVISION], [1.3337])
10275
AC_DEFUN([LTVERSION_VERSION],
10276
[macro_version='2.4.2'
10277
macro_revision='1.3337'
10278
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
10279
_LT_DECL(, macro_revision, 0)
10282
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
10284
# Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
10285
# Written by Scott James Remnant, 2004.
10287
# This file is free software; the Free Software Foundation gives
10288
# unlimited permission to copy and/or distribute it, with or without
10289
# modifications, as long as this notice is preserved.
10291
# serial 5 lt~obsolete.m4
10293
# These exist entirely to fool aclocal when bootstrapping libtool.
10295
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
10296
# which have later been changed to m4_define as they aren't part of the
10297
# exported API, or moved to Autoconf or Automake where they belong.
10299
# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
10300
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
10301
# using a macro with the same name in our local m4/libtool.m4 it'll
10302
# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
10303
# and doesn't know about Autoconf macros at all.)
10305
# So we provide this file, which has a silly filename so it's always
10306
# included after everything else. This provides aclocal with the
10307
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
10308
# because those macros already exist, or will be overwritten later.
10309
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
10311
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
10312
# Yes, that means every name once taken will need to remain here until
10313
# we give up compatibility with versions before 1.7, at which point
10314
# we need to keep only those names which we still refer to.
10316
# This is to help aclocal find these macros, as it can't see m4_define.
10317
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
10319
m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
10320
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
10321
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
10322
m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
10323
m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
10324
m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
10325
m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
10326
m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
10327
m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
10328
m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
10329
m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
10330
m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
10331
m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
10332
m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
10333
m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
10334
m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
10335
m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
10336
m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
10337
m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
10338
m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
10339
m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
10340
m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
10341
m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
10342
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
10343
m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
10344
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
10345
m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
10346
m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
10347
m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
10348
m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
10349
m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
10350
m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
10351
m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
10352
m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
10353
m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
10354
m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
10355
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
10356
m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
10357
m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
10358
m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
10359
m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
10360
m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
10361
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
10362
m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
10363
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
10364
m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
10365
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
10366
m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
10367
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
10368
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
10369
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
10370
m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
10371
m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
10372
m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
10373
m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
10374
m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
10375
m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
10376
m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
10377
m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
10378
m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
10379
m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
10381
1785
# nls.m4 serial 5 (gettext-0.18)
10382
1786
dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation,