5961
5974
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
5962
## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
5975
## Copyright 1996, 1997, 1998, 1999, 2000, 2001
5963
5976
## Free Software Foundation, Inc.
5964
5977
## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
5966
## This file is free software; the Free Software Foundation gives
5967
## unlimited permission to copy and/or distribute it, with or without
5968
## modifications, as long as this notice is preserved.
5979
## This program is free software; you can redistribute it and/or modify
5980
## it under the terms of the GNU General Public License as published by
5981
## the Free Software Foundation; either version 2 of the License, or
5982
## (at your option) any later version.
5984
## This program is distributed in the hope that it will be useful, but
5985
## WITHOUT ANY WARRANTY; without even the implied warranty of
5986
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
5987
## General Public License for more details.
5989
## You should have received a copy of the GNU General Public License
5990
## along with this program; if not, write to the Free Software
5991
## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
5993
## As a special exception to the GNU General Public License, if you
5994
## distribute this file as part of a program that contains a
5995
## configuration script generated by Autoconf, you may include it under
5996
## the same distribution terms that you use for the rest of that program.
5970
# serial 48 Debian 1.5.22-4 AC_PROG_LIBTOOL
5998
# serial 47 AC_PROG_LIBTOOL
5973
6001
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
6188
6213
# If no C compiler was specified, use CC.
6189
6214
LTCC=${LTCC-"$CC"}
6191
# If no C compiler flags were specified, use CFLAGS.
6192
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6194
6216
# Allow CC to be a program name with arguments.
6196
6218
])# _LT_AC_SYS_COMPILER
6199
# _LT_CC_BASENAME(CC)
6200
# -------------------
6201
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6202
AC_DEFUN([_LT_CC_BASENAME],
6203
[for cc_temp in $1""; do
6205
compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
6206
distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
6211
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6215
# _LT_COMPILER_BOILERPLATE
6216
# ------------------------
6217
# Check for compiler boilerplate output or warnings with
6218
# the simple compiler test code.
6219
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
6220
[ac_outfile=conftest.$ac_objext
6221
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6222
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6223
_lt_compiler_boilerplate=`cat conftest.err`
6225
])# _LT_COMPILER_BOILERPLATE
6228
# _LT_LINKER_BOILERPLATE
6229
# ----------------------
6230
# Check for linker boilerplate output or warnings with
6231
# the simple link test code.
6232
AC_DEFUN([_LT_LINKER_BOILERPLATE],
6233
[ac_outfile=conftest.$ac_objext
6234
printf "$lt_simple_link_test_code" >conftest.$ac_ext
6235
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6236
_lt_linker_boilerplate=`cat conftest.err`
6238
])# _LT_LINKER_BOILERPLATE
6241
6221
# _LT_AC_SYS_LIBPATH_AIX
6242
6222
# ----------------------
6243
6223
# Links a minimal program and checks the executable
6686
6645
lt_cv_sys_max_cmd_len=8192;
6690
# On AmigaOS with pdksh, this test takes hours, literally.
6691
# So we just punt and use a minimum line length of 8192.
6692
lt_cv_sys_max_cmd_len=8192;
6695
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6696
# This has been around since 386BSD, at least. Likely further.
6697
if test -x /sbin/sysctl; then
6698
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6699
elif test -x /usr/sbin/sysctl; then
6700
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6702
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6704
# And add a safety zone
6705
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6706
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6710
# We know the value 262144 and hardcode it with a safety zone (like BSD)
6711
lt_cv_sys_max_cmd_len=196608
6715
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6716
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6717
# nice to cause kernel panics so lets avoid the loop below.
6718
# First set a reasonable default.
6719
lt_cv_sys_max_cmd_len=16384
6721
if test -x /sbin/sysconfig; then
6722
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6723
*1*) lt_cv_sys_max_cmd_len=-1 ;;
6728
lt_cv_sys_max_cmd_len=102400
6730
sysv5* | sco5v6* | sysv4.2uw2*)
6731
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6732
if test -n "$kargmax"; then
6733
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
6735
lt_cv_sys_max_cmd_len=32768
6739
6649
# If test is not a shell built-in, we'll probably end up computing a
6740
6650
# maximum length that is only half of the actual maximum length, but
6741
6651
# we can't tell.
6742
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6743
while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
6744
= "XX$teststring") >/dev/null 2>&1 &&
6745
new_result=`expr "X$teststring" : ".*" 2>&1` &&
6652
while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$testring" 2>/dev/null` \
6653
= "XX$testring") >/dev/null 2>&1 &&
6654
new_result=`expr "X$testring" : ".*" 2>&1` &&
6746
6655
lt_cv_sys_max_cmd_len=$new_result &&
6747
6656
test $i != 17 # 1/2 MB should be enough
6749
6658
i=`expr $i + 1`
6750
teststring=$teststring$teststring
6659
testring=$testring$testring
6753
6662
# Add a significant safety factor because C++ compilers can tack on massive
6754
6663
# amounts of additional arguments before passing them to the linker.
6755
6664
# It appears as though 1/2 is a usable value.
7508
7389
# This must be Linux ELF.
7509
linux* | k*bsd*-gnu)
7510
7391
version_type=linux
7511
7392
need_lib_prefix=no
7512
7393
need_version=no
7513
7394
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7514
7395
soname_spec='${libname}${release}${shared_ext}$major'
7515
7396
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7398
if test "x$LINUX_64_MODE" = x64; then
7399
# Some platforms are per default 64-bit, so there's no /lib64
7400
if test -d /lib64 -a ! -h /lib64; then
7516
7404
shlibpath_var=LD_LIBRARY_PATH
7517
7405
shlibpath_overrides_runpath=no
7406
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
7407
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
7518
7408
# This implies no fast_install, which is unacceptable.
7519
7409
# Some rework will be needed to allow for fast_install
7520
7410
# before this can be enabled.
7521
7411
hardcode_into_libs=yes
7523
# Append ld.so.conf contents to the search path
7524
if test -f /etc/ld.so.conf; then
7525
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
7526
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7529
7413
# We used to test for /lib/ld.so.1 and disable shared libraries on
7530
7414
# powerpc, because MkLinux only supported shared libraries with the
7531
7415
# GNU dynamic linker. Since this was broken with cross compilers,
8229
8061
lt_cv_deplibs_check_method=pass_all
8233
8065
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
8234
8066
lt_cv_file_magic_cmd='/usr/bin/file -L'
8235
8067
lt_cv_file_magic_test_file=/shlib/libc.so
8239
# func_win32_libid is a shell function defined in ltmain.sh
8071
lt_cv_deplibs_check_method=pass_all
8075
# win32_libid is a shell function defined in ltmain.sh
8240
8076
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8241
lt_cv_file_magic_cmd='func_win32_libid'
8245
# Base MSYS/MinGW do not provide the 'file' command needed by
8246
# func_win32_libid shell function, so use a weaker test based on 'objdump'.
8247
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
8248
lt_cv_file_magic_cmd='$OBJDUMP -f'
8077
lt_cv_file_magic_cmd='win32_libid'
8251
8080
darwin* | rhapsody*)
8081
# this will be overwritten by pass_all, but leave it in just in case
8082
lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
8083
lt_cv_file_magic_cmd='/usr/bin/file -L'
8085
rhapsody* | darwin1.[[012]])
8086
lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
8089
lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
8252
8092
lt_cv_deplibs_check_method=pass_all
8255
freebsd* | dragonfly*)
8095
freebsd* | kfreebsd*-gnu)
8256
8096
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
8257
8097
case $host_cpu in
8259
8099
# Not sure whether the presence of OpenBSD here was a mistake.
8260
8100
# Let's accept both of them until this is cleared up.
8261
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
8101
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
8262
8102
lt_cv_file_magic_cmd=/usr/bin/file
8263
8103
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8294
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8295
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
8298
8133
irix5* | irix6* | nonstopux*)
8300
*-32|*"-32 ") libmagic=32-bit;;
8301
*-n32|*"-n32 ") libmagic=N32;;
8302
*-64|*"-64 ") libmagic=64-bit;;
8303
*) libmagic=never-match;;
8135
irix5* | nonstopux*)
8136
# this will be overridden with pass_all, but let us keep it just in case
8137
lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
8141
*-32|*"-32 ") libmagic=32-bit;;
8142
*-n32|*"-n32 ") libmagic=N32;;
8143
*-64|*"-64 ") libmagic=64-bit;;
8144
*) libmagic=never-match;;
8146
# this will be overridden with pass_all, but let us keep it just in case
8147
lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[[1234]] dynamic lib MIPS - version 1"
8150
lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
8305
8151
lt_cv_deplibs_check_method=pass_all
8308
8154
# This must be Linux ELF.
8309
linux* | k*bsd*-gnu)
8310
lt_cv_deplibs_check_method=pass_all
8157
alpha* | hppa* | i*86 | ia64* | m68* | mips* | powerpc* | sparc* | s390* | sh* | x86_64* )
8158
lt_cv_deplibs_check_method=pass_all ;;
8159
# the debian people say, arm and glibc 2.3.1 works for them with pass_all
8161
lt_cv_deplibs_check_method=pass_all ;;
8163
# glibc up to 2.1.1 does not perform some relocations on ARM
8164
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;;
8166
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
8313
netbsd* | netbsdelf*-gnu)
8314
8170
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
8315
8171
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
8391
8254
# Let the user override the test.
8392
8255
lt_cv_path_NM="$NM"
8394
lt_nm_to_check="${ac_tool_prefix}nm"
8395
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8396
lt_nm_to_check="$lt_nm_to_check nm"
8398
for lt_tmp_nm in $lt_nm_to_check; do
8399
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8400
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8402
test -z "$ac_dir" && ac_dir=.
8403
tmp_nm="$ac_dir/$lt_tmp_nm"
8404
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8405
# Check to see if the nm accepts a BSD-compat flag.
8406
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
8407
# nm: unknown option "B" ignored
8408
# Tru64's nm complains that /dev/null is an invalid object file
8409
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8410
*/dev/null* | *'Invalid file or object type'*)
8411
lt_cv_path_NM="$tmp_nm -B"
8257
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8258
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
8260
test -z "$ac_dir" && ac_dir=.
8261
tmp_nm="$ac_dir/${ac_tool_prefix}nm"
8262
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8263
# Check to see if the nm accepts a BSD-compat flag.
8264
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
8265
# nm: unknown option "B" ignored
8266
# Tru64's nm complains that /dev/null is an invalid object file
8267
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8268
*/dev/null* | *'Invalid file or object type'*)
8269
lt_cv_path_NM="$tmp_nm -B"
8273
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8275
lt_cv_path_NM="$tmp_nm -p"
8415
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8417
lt_cv_path_NM="$tmp_nm -p"
8421
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8422
continue # so that we can try to find one that supports BSD flags
8279
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8280
continue # so that we can try to find one that supports BSD flags
8431
8287
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
8433
8289
NM="$lt_cv_path_NM"
8484
8340
# -----------------------------------
8485
8341
# sets LIBLTDL to the link flags for the libltdl installable library and
8486
8342
# LTDLINCL to the include flags for the libltdl header and adds
8487
# --enable-ltdl-install to the configure arguments. Note that
8488
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
8489
# and an installed libltdl is not found, it is assumed to be `libltdl'.
8490
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
8491
# '${top_srcdir}/' (note the single quotes!). If your package is not
8492
# flat and you're not using automake, define top_builddir and top_srcdir
8493
# appropriately in the Makefiles.
8343
# --enable-ltdl-install to the configure arguments. Note that LIBLTDL
8344
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
8345
# DIRECTORY is not provided and an installed libltdl is not found, it is
8346
# assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/'
8347
# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
8348
# quotes!). If your package is not flat and you're not using automake,
8349
# define top_builddir and top_srcdir appropriately in the Makefiles.
8494
8350
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
8495
8351
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
8496
8352
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
8655
8527
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8656
8528
test "$enable_shared" = yes && enable_static=no
8531
darwin* | rhapsody*)
8532
if test "$GCC" = yes; then
8533
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
8535
rhapsody* | darwin1.[[012]])
8536
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-undefined -Wl,suppress'
8539
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8540
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
8542
case ${MACOSX_DEPLOYMENT_TARGET} in
8544
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
8547
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-undefined -Wl,dynamic_lookup'
8553
output_verbose_link_cmd='echo'
8554
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
8555
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
8556
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8557
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8558
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8559
_LT_AC_TAGVAR(hardcode_direct, $1)=no
8560
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
8561
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
8562
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
8563
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
8565
_LT_AC_TAGVAR(ld_shlibs, $1)=no
8660
8569
AC_MSG_RESULT([$enable_shared])
8923
8808
# -berok will link without error, but may produce a broken library.
8924
8809
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
8925
8810
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
8811
# -bexpall does not export symbols beginning with underscore (_)
8812
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
8926
8813
# Exported symbols can be pulled into shared objects from archives
8927
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
8814
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
8928
8815
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
8929
# This is similar to how AIX traditionally builds its shared libraries.
8930
_LT_AC_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'
8816
# This is similar to how AIX traditionally builds it's shared libraries.
8817
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8936
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8937
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
8938
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8939
# support --undefined. This deserves some investigation. FIXME
8940
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8942
_LT_AC_TAGVAR(ld_shlibs, $1)=no
8947
8822
case $cc_basename in
8970
8845
echo EXPORTS > $output_objdir/$soname.def;
8971
8846
cat $export_symbols >> $output_objdir/$soname.def;
8973
$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'
8848
$CC -shared -nostdlib $output_objdir/$soname.def $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8975
8850
_LT_AC_TAGVAR(ld_shlibs, $1)=no
8978
darwin* | rhapsody*)
8980
rhapsody* | darwin1.[[012]])
8981
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
8984
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8985
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8987
case ${MACOSX_DEPLOYMENT_TARGET} in
8989
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8992
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
8998
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
8999
_LT_AC_TAGVAR(hardcode_direct, $1)=no
9000
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
9001
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
9002
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
9003
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
9005
if test "$GXX" = yes ; then
9006
lt_int_apple_cc_single_mod=no
9007
output_verbose_link_cmd='echo'
9008
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
9009
lt_int_apple_cc_single_mod=yes
9011
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9012
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9014
_LT_AC_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'
9016
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9017
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9018
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9019
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9021
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9023
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9025
case $cc_basename in
9027
output_verbose_link_cmd='echo'
9028
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9029
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9030
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9031
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9032
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9035
_LT_AC_TAGVAR(ld_shlibs, $1)=no
8854
darwin* | rhapsody*)
8855
if test "$GXX" = yes; then
8856
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
8858
rhapsody* | darwin1.[[012]])
8859
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-undefined -Wl,suppress'
8862
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8863
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
8865
case ${MACOSX_DEPLOYMENT_TARGET} in
8867
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
8870
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-undefined -Wl,dynamic_lookup'
8876
lt_int_apple_cc_single_mod=no
8877
output_verbose_link_cmd='echo'
8878
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
8879
lt_int_apple_cc_single_mod=yes
8881
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
8882
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
8884
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring'
8886
_LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
8888
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8889
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
8890
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8892
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8894
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8895
_LT_AC_TAGVAR(hardcode_direct, $1)=no
8896
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
8897
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
8898
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
8899
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
8901
_LT_AC_TAGVAR(ld_shlibs, $1)=no
9042
8906
case $cc_basename in
9044
8908
# FIXME: insert proper C++ library support
9045
8909
_LT_AC_TAGVAR(ld_shlibs, $1)=no
9048
8912
# Green Hills C++ Compiler
9049
8913
# FIXME: insert proper C++ library support
9050
8914
_LT_AC_TAGVAR(ld_shlibs, $1)=no
9108
8972
hpux10*|hpux11*)
9109
8973
if test $with_gnu_ld = no; then
9110
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
9111
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8976
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
9115
8977
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
8978
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8981
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8984
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
8985
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
9118
8986
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
9124
_LT_AC_TAGVAR(hardcode_direct, $1)=no
9125
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8992
_LT_AC_TAGVAR(hardcode_direct, $1)=no
8993
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8996
_LT_AC_TAGVAR(hardcode_direct, $1)=no
8997
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8998
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
8999
# but as the default
9000
# location of the library.
9128
9003
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
9185
_LT_AC_TAGVAR(hardcode_direct, $1)=no
9186
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
9187
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
9188
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
9189
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9190
# Instead, shared libraries are loaded at an image base (0x10000000 by
9191
# default) and relocated if they conflict, which is a slow very memory
9192
# consuming and fragmenting process. To avoid this, we pick a random,
9193
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9194
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
9195
_LT_AC_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'
9196
_LT_AC_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'
9198
9053
irix5* | irix6*)
9199
9054
case $cc_basename in
9202
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9057
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
9204
9059
# Archives containing C++ object files must be created using
9205
9060
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
9248
9103
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
9249
9104
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
9253
9108
with_gnu_ld=yes
9254
# version 8.0 and above of icpc choke on multiply defined symbols
9255
# if we add $predep_objects and $postdep_objects, however 7.1 and
9256
# earlier do not add the objects themselves.
9257
case `$CC -V 2>&1` in
9259
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9260
_LT_AC_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'
9262
*) # Version 8.0 or newer
9265
ia64*) tmp_idyn=' -i_dynamic';;
9267
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9268
_LT_AC_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'
9271
9109
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
9110
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib'
9111
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9272
9112
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
9273
9113
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
9274
9114
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9277
# Portland Group C++ compiler
9278
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
9279
_LT_AC_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'
9281
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
9282
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
9283
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9287
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9288
_LT_AC_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'
9118
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib'
9119
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
9290
9121
runpath_var=LD_RUN_PATH
9291
9122
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
9334
9165
# Workaround some broken pre-1.5 toolchains
9335
9166
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9338
# C++ shared libraries are fairly broken
9339
_LT_AC_TAGVAR(ld_shlibs, $1)=no
9342
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
9343
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
9344
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9345
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
9346
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9347
_LT_AC_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'
9348
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
9349
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9351
output_verbose_link_cmd='echo'
9354
9169
case $cc_basename in
9356
9171
# Kuck and Associates, Inc. (KAI) C++ Compiler
9358
9173
# KCC will only create a shared library if the output file
9359
9174
# ends with ".so" (or ".sl" for HP-UX), so rename the library
9360
9175
# to its proper name (with version) after linking.
9361
_LT_AC_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'
9176
_LT_AC_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 $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib; mv \$templib $lib'
9363
9178
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
9364
9179
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
9499
9327
case $cc_basename in
9501
9329
# Sun C++ 4.2, 5.x and Centerline C++
9502
_LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
9503
9330
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
9504
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9331
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects'
9505
9332
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9506
$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'
9333
$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp'
9508
9335
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
9509
9336
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
9510
9337
case $host_os in
9511
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
9338
solaris2.[0-5] | solaris2.[0-5].*) ;;
9513
9340
# The C++ compiler is used as linker so we must use $wl
9514
9341
# flag to pass the commands to the underlying system
9515
# linker. We must also pass each convience library through
9516
# to the system linker between allextract/defaultextract.
9517
# The C++ compiler will combine linker options so we
9518
# cannot just pass the convience library names through
9520
9343
# Supported since Solaris 2.6 (maybe 2.5.1?)
9521
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
9344
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9524
9347
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
9526
output_verbose_link_cmd='echo'
9349
# Commands to make compiler produce verbose output that lists
9350
# what "hidden" libraries, object files and flags are used when
9351
# linking a shared library.
9353
# There doesn't appear to be a way to prevent this compiler from
9354
# explicitly linking system object files so we need to strip them
9355
# from the output so that they don't get included in the library
9357
output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9528
9359
# Archives containing C++ object files must be created using
9529
9360
# "CC -xar", where "CC" is the Sun C++ compiler. This is
9572
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
9573
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
9574
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
9575
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
9576
runpath_var='LD_RUN_PATH'
9578
case $cc_basename in
9580
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9581
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9584
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9585
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9589
sysv5* | sco3.2v5* | sco5v6*)
9590
# Note: We can NOT use -z defs as we might desire, because we do not
9591
# link with -lc, and that would cause any symbols used from libc to
9592
# always be unresolved, which means just about no library would
9593
# ever link correctly. If we're not using GNU ld we use -z text
9594
# though, which does catch some bad symbols but isn't as heavy-handed
9596
# For security reasons, it is highly recommended that you always
9597
# use absolute paths for naming shared libraries, and exclude the
9598
# DT_RUNPATH tag from executables and libraries. But doing so
9599
# requires that you compile everything twice, which is a pain.
9600
# So that behaviour is only enabled if SCOABSPATH is set to a
9601
# non-empty value in the environment. Most likely only useful for
9602
# creating official distributions of packages.
9603
# This is a hack until libtool officially supports absolute path
9604
# names for shared libraries.
9605
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
9606
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
9607
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
9608
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
9609
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9610
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
9611
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
9612
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
9613
runpath_var='LD_RUN_PATH'
9615
case $cc_basename in
9617
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9618
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9621
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9622
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9403
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
9404
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
9627
9407
case $cc_basename in
9629
9409
# NonStop-UX NCC 3.20
9630
9410
# FIXME: insert proper C++ library support
9631
9411
_LT_AC_TAGVAR(ld_shlibs, $1)=no
11459
11082
echo EXPORTS > $output_objdir/$soname.def;
11460
11083
cat $export_symbols >> $output_objdir/$soname.def;
11462
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11464
_LT_AC_TAGVAR(ld_shlibs, $1)=no
11469
_LT_AC_TAGVAR(hardcode_direct, $1)=no
11470
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11471
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
11472
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
11473
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11474
# Instead, shared libraries are loaded at an image base (0x10000000 by
11475
# default) and relocated if they conflict, which is a slow very memory
11476
# consuming and fragmenting process. To avoid this, we pick a random,
11477
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11478
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
11479
_LT_AC_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'
11480
_LT_AC_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'
11483
linux* | k*bsd*-gnu)
11484
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11486
case $cc_basename,$host_cpu in
11487
pgcc*) # Portland Group C compiler
11488
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11489
tmp_addflag=' $pic_flag'
11491
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
11492
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11493
tmp_addflag=' $pic_flag -Mnomain' ;;
11494
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11495
tmp_addflag=' -i_dynamic' ;;
11496
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11497
tmp_addflag=' -i_dynamic -nofor_main' ;;
11498
ifc* | ifort*) # Intel Fortran compiler
11499
tmp_addflag=' -nofor_main' ;;
11501
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11503
if test $supports_anon_versioning = yes; then
11504
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
11505
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11506
$echo "local: *; };" >> $output_objdir/$libname.ver~
11507
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11509
_LT_AC_TAGVAR(link_all_deplibs, $1)=no
11511
_LT_AC_TAGVAR(ld_shlibs, $1)=no
11515
netbsd* | netbsdelf*-gnu)
11085
$CC -shared $output_objdir/$soname.def $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11516
11092
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11517
11093
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11520
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11521
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11096
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
11097
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11526
11102
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
11527
11103
_LT_AC_TAGVAR(ld_shlibs, $1)=no
11528
11104
cat <<EOF 1>&2
11538
11114
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11539
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11540
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11115
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
11116
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11542
11118
_LT_AC_TAGVAR(ld_shlibs, $1)=no
11546
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11547
case `$LD -v 2>&1` in
11548
*\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
11549
_LT_AC_TAGVAR(ld_shlibs, $1)=no
11552
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11553
*** reliably create shared libraries on SCO systems. Therefore, libtool
11554
*** is disabling shared libraries support. We urge you to upgrade GNU
11555
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11556
*** your PATH or compiler configuration so that the native linker is
11557
*** used, and then restart.
11562
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11563
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
11564
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
11565
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
11567
_LT_AC_TAGVAR(ld_shlibs, $1)=no
11574
11123
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11581
11130
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11582
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11583
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11131
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
11132
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11585
11134
_LT_AC_TAGVAR(ld_shlibs, $1)=no
11590
if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
11592
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
11593
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
11594
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
11139
if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then
11140
runpath_var=LD_RUN_PATH
11141
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
11142
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
11143
# ancient GNU ld didn't support --whole-archive et. al.
11144
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
11145
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11147
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
11597
11151
# PORTME fill in a description of your system's linker (not GNU ld)
11688
11226
# chokes on -Wl,-G. The following line is correct:
11689
11227
shared_flag='-G'
11691
if test "$aix_use_runtimelinking" = yes; then
11692
shared_flag='${wl}-G'
11229
if test "$aix_use_runtimelinking" = yes; then
11230
shared_flag='-qmkshrobj ${wl}-G'
11694
shared_flag='${wl}-bM:SRE'
11232
shared_flag='-qmkshrobj'
11699
# It seems that -bexpall does not export symbols beginning with
11700
# underscore (_), so it is better to generate a list of symbols to export.
11701
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
11237
# Let the compiler handle the export list.
11238
_LT_AC_TAGVAR(always_export_symbols, $1)=no
11702
11239
if test "$aix_use_runtimelinking" = yes; then
11703
11240
# Warning - without using the other runtime loading flags (-brtl),
11704
11241
# -berok will link without error, but may produce a broken library.
11705
11242
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
11706
11243
# Determine the default libpath from the value encoded in an empty executable.
11707
_LT_AC_SYS_LIBPATH_AIX
11708
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
11709
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11244
_LT_AC_SYS_LIBPATH_AIX
11245
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
11246
_LT_AC_TAGVAR(archive_cmds, $1)="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
11247
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11711
11249
if test "$host_cpu" = ia64; then
11712
11250
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
11713
11251
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
11714
_LT_AC_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"
11252
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
11716
11254
# Determine the default libpath from the value encoded in an empty executable.
11717
11255
_LT_AC_SYS_LIBPATH_AIX
11747
11287
# hardcode_libdir_flag_spec is actually meaningless, as there is
11748
11288
# no search path for DLLs.
11749
11289
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
11750
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
11290
_LT_AC_TAGVAR(allow_undefined_flag, $1)=no
11751
11291
# Tell ltmain to make .lib files, not .a files.
11753
11293
# Tell ltmain to make .dll files, not .so files.
11755
11295
# FIXME: Setting linknames here is a bad hack.
11756
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
11296
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $compiler_flags $libobjs `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
11757
11297
# The linker will automatically build a .lib file if we build a DLL.
11758
11298
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
11759
11299
# FIXME: Should let the user specify the lib program.
11760
11300
_LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
11761
_LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
11301
fix_srcfile_path='`cygpath -w "$srcfile"`'
11762
11302
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
11765
11305
darwin* | rhapsody*)
11767
rhapsody* | darwin1.[[012]])
11768
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
11771
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11772
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11774
case ${MACOSX_DEPLOYMENT_TARGET} in
11776
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11779
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
11306
if test "$GXX" = yes ; then
11307
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
11309
rhapsody* | darwin1.[[012]])
11310
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-undefined -Wl,suppress'
11313
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11314
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
11316
case ${MACOSX_DEPLOYMENT_TARGET} in
11318
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
11321
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-undefined -Wl,dynamic_lookup'
11785
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
11786
_LT_AC_TAGVAR(hardcode_direct, $1)=no
11787
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
11788
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
11789
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
11790
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
11791
if test "$GCC" = yes ; then
11327
lt_int_apple_cc_single_mod=no
11792
11328
output_verbose_link_cmd='echo'
11793
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11794
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11795
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11796
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11797
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11799
case $cc_basename in
11801
output_verbose_link_cmd='echo'
11802
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11803
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11804
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11805
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11806
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11809
_LT_AC_TAGVAR(ld_shlibs, $1)=no
11329
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
11330
lt_int_apple_cc_single_mod=yes
11332
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11333
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
11335
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring'
11337
_LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
11338
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11339
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11340
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11342
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11344
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11345
_LT_AC_TAGVAR(hardcode_direct, $1)=no
11346
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
11347
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
11348
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
11349
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
11351
_LT_AC_TAGVAR(ld_shlibs, $1)=no
11865
11405
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
11869
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11870
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11872
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11874
if test "$with_gnu_ld" = no; then
11875
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
11876
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
11878
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
11879
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
11881
# hardcode_minus_L: Not really in the search PATH,
11882
# but as the default location of the library.
11883
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
11888
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11891
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11894
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11897
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11903
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11906
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11909
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11913
if test "$with_gnu_ld" = no; then
11914
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
11915
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
11409
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11410
case "$host_cpu" in
11412
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
11415
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $libobjs $deplibs'
11419
case "$host_cpu" in
11421
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
11424
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11428
if test "$with_gnu_ld" = no; then
11429
case "$host_cpu" in
11431
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
11919
11432
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
11920
_LT_AC_TAGVAR(hardcode_direct, $1)=no
11921
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11433
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
11434
_LT_AC_TAGVAR(hardcode_direct, $1)=no
11435
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11438
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
11439
_LT_AC_TAGVAR(hardcode_direct, $1)=no
11440
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11442
# hardcode_minus_L: Not really in the search PATH,
11443
# but as the default location of the library.
11444
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
11447
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
11448
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
11924
11449
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
11925
11450
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
12110
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
12111
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
12112
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
12113
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
12114
runpath_var='LD_RUN_PATH'
12116
if test "$GCC" = yes; then
12117
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12118
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12120
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12121
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12125
sysv5* | sco3.2v5* | sco5v6*)
12126
# Note: We can NOT use -z defs as we might desire, because we do not
12127
# link with -lc, and that would cause any symbols used from libc to
12128
# always be unresolved, which means just about no library would
12129
# ever link correctly. If we're not using GNU ld we use -z text
12130
# though, which does catch some bad symbols but isn't as heavy-handed
12132
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
12133
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
12134
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
12135
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
12136
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12137
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
12138
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
12139
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
12140
runpath_var='LD_RUN_PATH'
12142
if test "$GCC" = yes; then
12143
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12144
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12146
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12147
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11631
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11632
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
11633
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
11634
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11635
hardcode_runpath_var=yes
11636
runpath_var=LD_RUN_PATH
11639
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
11640
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
11641
if test "$GCC" = yes; then
11642
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
11644
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
11646
runpath_var='LD_RUN_PATH'
11647
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11651
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
11652
# $CC -shared without GNU ld will not create a library from C++
11653
# object files and a static libstdc++, better avoid it by now
11654
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11655
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11656
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
11657
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
11658
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11659
runpath_var='LD_RUN_PATH'