6669
6677
if test -n "$NM"; then
6670
6678
# Let the user override the test.
6673
lt_nm_to_check="${ac_tool_prefix}nm"
6681
lt_nm_to_check=${ac_tool_prefix}nm
6674
6682
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6675
6683
lt_nm_to_check="$lt_nm_to_check nm"
6677
6685
for lt_tmp_nm in $lt_nm_to_check; do
6678
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6686
lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6679
6687
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6681
6689
test -z "$ac_dir" && ac_dir=.
6682
tmp_nm="$ac_dir/$lt_tmp_nm"
6683
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6690
tmp_nm=$ac_dir/$lt_tmp_nm
6691
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6684
6692
# Check to see if the nm accepts a BSD-compat flag.
6685
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
6693
# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6686
6694
# nm: unknown option "B" ignored
6687
6695
# Tru64's nm complains that /dev/null is an invalid object file
6688
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6689
*/dev/null* | *'Invalid file or object type'*)
6696
# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6698
mingw*) lt_bad_file=conftest.nm/nofile ;;
6699
*) lt_bad_file=/dev/null ;;
6701
case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6702
*$lt_bad_file* | *'Invalid file or object type'*)
6690
6703
lt_cv_path_NM="$tmp_nm -B"
6694
6707
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6696
6709
lt_cv_path_NM="$tmp_nm -p"
6700
6713
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6973
6986
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6974
6987
if test -n "$lt_cv_sys_max_cmd_len" && \
6975
test undefined != "$lt_cv_sys_max_cmd_len"; then
6988
test undefined != "$lt_cv_sys_max_cmd_len"; then
6976
6989
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6977
6990
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6979
6992
# Make teststring a little bigger before we do anything with it.
6980
6993
# a 1K string should be a reasonable start.
6981
for i in 1 2 3 4 5 6 7 8 ; do
6994
for i in 1 2 3 4 5 6 7 8; do
6982
6995
teststring=$teststring$teststring
6984
6997
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6985
6998
# If test is not a shell built-in, we'll probably end up computing a
6986
6999
# maximum length that is only half of the actual maximum length, but
6987
7000
# we can't tell.
6988
while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
7001
while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6989
7002
= "X$teststring$teststring"; } >/dev/null 2>&1 &&
6990
test $i != 17 # 1/2 MB should be enough
7003
test 17 != "$i" # 1/2 MB should be enough
6992
7005
i=`expr $i + 1`
6993
7006
teststring=$teststring$teststring
8172
8163
symcode='[ABCDGIRSTW]' ;;
8166
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8167
# Gets list of data symbols to import.
8168
lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8169
# Adjust the below global symbol transforms to fixup imported variables.
8170
lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8171
lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
8172
lt_c_name_lib_hook="\
8173
-e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8174
-e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8176
# Disable hooks by default.
8177
lt_cv_sys_global_symbol_to_import=
8175
8183
# Transform an extracted symbol line into a proper C declaration.
8176
8184
# Some systems (esp. on ia64) link data and code symbols differently,
8177
8185
# so use this general approach.
8178
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8186
lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8188
" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8189
" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8180
8191
# Transform an extracted symbol line into symbol name and symbol address
8181
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8182
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'"
8192
lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8194
" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8195
" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
8197
# Transform an extracted symbol line into symbol name with lib prefix and
8199
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8200
$lt_c_name_lib_hook\
8201
" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8202
" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
8203
" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8184
8205
# Handle CRLF in mingw tool chain
8198
8219
# Write the raw and C identifiers.
8199
8220
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8200
# Fake it for dumpbin and say T for any non-static function
8201
# and D for any global variable.
8221
# Fake it for dumpbin and say T for any non-static function,
8222
# D for any global variable and I for any imported variable.
8202
8223
# Also find C++ and __fastcall symbols from MSVC++,
8203
8224
# which start with @ or ?.
8204
8225
lt_cv_sys_global_symbol_pipe="$AWK '"\
8205
8226
" {last_section=section; section=\$ 3};"\
8206
8227
" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8207
8228
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8229
" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8230
" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8231
" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8208
8232
" \$ 0!~/External *\|/{next};"\
8209
8233
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8210
8234
" {if(hide[section]) next};"\
8211
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8212
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8213
" s[1]~/^[@?]/{print s[1], s[1]; next};"\
8214
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8235
" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8236
" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8237
" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8238
" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8215
8239
" ' prfx=^$ac_symprfx"
8217
8241
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8463
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8464
$as_echo_n "checking for a working dd... " >&6; }
8465
if ${ac_cv_path_lt_DD+:} false; then :
8466
$as_echo_n "(cached) " >&6
8468
printf 0123456789abcdef0123456789abcdef >conftest.i
8469
cat conftest.i conftest.i >conftest2.i
8471
if test -z "$lt_DD"; then
8472
ac_path_lt_DD_found=false
8473
# Loop through the user's path and test for each of PROGNAME-LIST
8474
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8478
test -z "$as_dir" && as_dir=.
8479
for ac_prog in dd; do
8480
for ac_exec_ext in '' $ac_executable_extensions; do
8481
ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
8482
as_fn_executable_p "$ac_path_lt_DD" || continue
8483
if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8484
cmp -s conftest.i conftest.out \
8485
&& ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8487
$ac_path_lt_DD_found && break 3
8492
if test -z "$ac_cv_path_lt_DD"; then
8496
ac_cv_path_lt_DD=$lt_DD
8499
rm -f conftest.i conftest2.i conftest.out
8501
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8502
$as_echo "$ac_cv_path_lt_DD" >&6; }
8505
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8506
$as_echo_n "checking how to truncate binary pipes... " >&6; }
8507
if ${lt_cv_truncate_bin+:} false; then :
8508
$as_echo_n "(cached) " >&6
8510
printf 0123456789abcdef0123456789abcdef >conftest.i
8511
cat conftest.i conftest.i >conftest2.i
8513
if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8514
cmp -s conftest.i conftest.out \
8515
&& lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8517
rm -f conftest.i conftest2.i conftest.out
8518
test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8520
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8521
$as_echo "$lt_cv_truncate_bin" >&6; }
8529
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8532
for cc_temp in $*""; do
8534
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8535
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8540
func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8429
8543
# Check whether --enable-libtool-lock was given.
8430
8544
if test "${enable_libtool_lock+set}" = set; then :
8431
8545
enableval=$enable_libtool_lock;
8434
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8548
test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8436
8550
# Some flags need to be propagated to the compiler or linker for good
8437
8551
# libtool support.
8440
# Find out which ABI we are using.
8554
# Find out what ABI is being produced by ac_compile, and set mode
8555
# options accordingly.
8441
8556
echo 'int i;' > conftest.$ac_ext
8442
8557
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8443
8558
(eval $ac_compile) 2>&5
8492
8608
rm -rf conftest*
8612
# Find out what ABI is being produced by ac_compile, and set linker
8613
# options accordingly.
8614
echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8615
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8616
(eval $ac_compile) 2>&5
8618
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8619
test $ac_status = 0; }; then
8621
case `/usr/bin/file conftest.$ac_objext` in
8629
case `/usr/bin/file conftest.$ac_objext` in
8631
emul="${emul}btsmip"
8634
emul="${emul}ltsmip"
8637
case `/usr/bin/file conftest.$ac_objext` in
8642
LD="${LD-ld} -m $emul"
8495
8647
x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8496
8648
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8497
# Find out which ABI we are using.
8649
# Find out what ABI is being produced by ac_compile, and set linker
8650
# options accordingly. Note that the listed cases only cover the
8651
# situations where additional linker options are needed (such as when
8652
# doing 32-bit compilation for a host where ld defaults to 64-bit, or
8653
# vice versa); the common cases where no linker options are needed do
8654
# not appear in the list.
8498
8655
echo 'int i;' > conftest.$ac_ext
8499
8656
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8500
8657
(eval $ac_compile) 2>&5
9356
9514
$as_echo "$lt_cv_ld_force_load" >&6; }
9357
9515
case $host_os in
9358
9516
rhapsody* | darwin1.[012])
9359
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9517
_lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9361
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9519
_lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9362
9520
darwin*) # darwin 5.x on
9363
9521
# if running on 10.5 or later, the deployment target defaults
9364
9522
# to the OS version, if on x86, and 10.4, the deployment
9365
9523
# target defaults to 10.4. Don't you love it?
9366
9524
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9367
9525
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9368
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9370
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9526
_lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9528
_lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9372
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9530
_lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9376
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9534
if test yes = "$lt_cv_apple_cc_single_mod"; then
9377
9535
_lt_dar_single_mod='$single_module'
9379
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9380
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9537
if test yes = "$lt_cv_ld_exported_symbols_list"; then
9538
_lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9382
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9540
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9384
if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9542
if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9385
9543
_lt_dsymutil='~$DSYMUTIL $lib || :'
9733
shared_archive_member_spec=
9734
case $host,$enable_shared in
9735
power*-*-aix[5-9]*,yes)
9736
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9737
$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9739
# Check whether --with-aix-soname was given.
9740
if test "${with_aix_soname+set}" = set; then :
9741
withval=$with_aix_soname; case $withval in
9745
as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9748
lt_cv_with_aix_soname=$with_aix_soname
9750
if ${lt_cv_with_aix_soname+:} false; then :
9751
$as_echo_n "(cached) " >&6
9753
lt_cv_with_aix_soname=aix
9756
with_aix_soname=$lt_cv_with_aix_soname
9759
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9760
$as_echo "$with_aix_soname" >&6; }
9761
if test aix != "$with_aix_soname"; then
9762
# For the AIX way of multilib, we name the shared archive member
9763
# based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9764
# and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9765
# Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9766
# the AIX toolchain works better with OBJECT_MODE set (default 32).
9767
if test 64 = "${OBJECT_MODE-32}"; then
9768
shared_archive_member_spec=shr_64
9770
shared_archive_member_spec=shr
9545
9788
# This can be used to rebuild libtool when needed
9546
LIBTOOL_DEPS="$ltmain"
9789
LIBTOOL_DEPS=$ltmain
9548
9791
# Always use our own libtool.
9549
9792
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9682
9918
case $MAGIC_CMD in
9683
9919
[\\/*] | ?:[\\/]*)
9684
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9920
lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9687
lt_save_MAGIC_CMD="$MAGIC_CMD"
9688
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9923
lt_save_MAGIC_CMD=$MAGIC_CMD
9924
lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9689
9925
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9690
9926
for ac_dir in $ac_dummy; do
9692
9928
test -z "$ac_dir" && ac_dir=.
9693
if test -f $ac_dir/${ac_tool_prefix}file; then
9694
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9929
if test -f "$ac_dir/${ac_tool_prefix}file"; then
9930
lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9695
9931
if test -n "$file_magic_test_file"; then
9696
9932
case $deplibs_check_method in
9697
9933
"file_magic "*)
9698
9934
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9699
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9935
MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9700
9936
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9701
9937
$EGREP "$file_magic_regex" > /dev/null; then
9748
9984
case $MAGIC_CMD in
9749
9985
[\\/*] | ?:[\\/]*)
9750
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9986
lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9753
lt_save_MAGIC_CMD="$MAGIC_CMD"
9754
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9989
lt_save_MAGIC_CMD=$MAGIC_CMD
9990
lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9755
9991
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9756
9992
for ac_dir in $ac_dummy; do
9758
9994
test -z "$ac_dir" && ac_dir=.
9759
if test -f $ac_dir/file; then
9760
lt_cv_path_MAGIC_CMD="$ac_dir/file"
9995
if test -f "$ac_dir/file"; then
9996
lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9761
9997
if test -n "$file_magic_test_file"; then
9762
9998
case $deplibs_check_method in
9763
9999
"file_magic "*)
9764
10000
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9765
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10001
MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9766
10002
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9767
10003
$EGREP "$file_magic_regex" > /dev/null; then
10591
if test "$lt_use_gnu_ld_interface" = yes; then
10855
if test yes = "$lt_use_gnu_ld_interface"; then
10592
10856
# If archive_cmds runs LD, not CC, wlarc should be empty
10595
10859
# Set some defaults for GNU ld with shared library support. These
10596
10860
# are reset later if shared libraries are not supported. Putting them
10597
10861
# here allows them to be overridden if necessary.
10598
10862
runpath_var=LD_RUN_PATH
10599
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10600
export_dynamic_flag_spec='${wl}--export-dynamic'
10863
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10864
export_dynamic_flag_spec='$wl--export-dynamic'
10601
10865
# ancient GNU ld didn't support --whole-archive et. al.
10602
10866
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10603
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10867
whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10605
10869
whole_archive_flag_spec=
10607
10871
supports_anon_versioning=no
10608
case `$LD -v 2>&1` in
10872
case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10609
10873
*GNU\ gold*) supports_anon_versioning=yes ;;
10610
10874
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10611
10875
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10671
10935
exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10673
10937
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10674
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10675
# If the export-symbols file already is a .def file (1st line
10676
# is EXPORTS), use it as is; otherwise, prepend...
10677
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10678
cp $export_symbols $output_objdir/$soname.def;
10680
echo EXPORTS > $output_objdir/$soname.def;
10681
cat $export_symbols >> $output_objdir/$soname.def;
10683
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10938
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10939
# If the export-symbols file already is a .def file, use it as
10940
# is; otherwise, prepend EXPORTS...
10941
archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10942
cp $export_symbols $output_objdir/$soname.def;
10944
echo EXPORTS > $output_objdir/$soname.def;
10945
cat $export_symbols >> $output_objdir/$soname.def;
10947
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10690
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10954
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10691
10955
link_all_deplibs=yes
10959
hardcode_libdir_flag_spec='-L$libdir'
10960
hardcode_minus_L=yes
10961
allow_undefined_flag=unsupported
10963
archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10964
$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10965
$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10966
$ECHO EXPORTS >> $output_objdir/$libname.def~
10967
emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10968
$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10969
emximp -o $lib $output_objdir/$libname.def'
10970
archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10971
$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10972
$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10973
$ECHO EXPORTS >> $output_objdir/$libname.def~
10974
prefix_cmds="$SED"~
10975
if test EXPORTS = "`$SED 1q $export_symbols`"; then
10976
prefix_cmds="$prefix_cmds -e 1d";
10978
prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10979
cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10980
$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10981
emximp -o $lib $output_objdir/$libname.def'
10982
old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10983
enable_shared_with_static_runtimes=yes
10694
10986
interix[3-9]*)
10695
10987
hardcode_direct=no
10696
10988
hardcode_shlibpath_var=no
10697
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10698
export_dynamic_flag_spec='${wl}-E'
10989
hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10990
export_dynamic_flag_spec='$wl-E'
10699
10991
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10700
10992
# Instead, shared libraries are loaded at an image base (0x10000000 by
10701
10993
# default) and relocated if they conflict, which is a slow very memory
10702
10994
# consuming and fragmenting process. To avoid this, we pick a random,
10703
10995
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10704
10996
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
10705
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10706
archive_expsym_cmds='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'
10997
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10998
archive_expsym_cmds='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'
10709
11001
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10711
if test "$host_os" = linux-dietlibc; then
11003
if test linux-dietlibc = "$host_os"; then
10712
11004
case $cc_basename in
10713
11005
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10716
11008
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10717
&& test "$tmp_diet" = no
11009
&& test no = "$tmp_diet"
10719
11011
tmp_addflag=' $pic_flag'
10720
11012
tmp_sharedflag='-shared'
10721
11013
case $cc_basename,$host_cpu in
10722
11014
pgcc*) # Portland Group C compiler
10723
whole_archive_flag_spec='${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'
11015
whole_archive_flag_spec='$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'
10724
11016
tmp_addflag=' $pic_flag'
10726
11018
pgf77* | pgf90* | pgf95* | pgfortran*)
10727
11019
# Portland Group f77 and f90 compilers
10728
whole_archive_flag_spec='${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'
11020
whole_archive_flag_spec='$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'
10729
11021
tmp_addflag=' $pic_flag -Mnomain' ;;
10730
11022
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10731
11023
tmp_addflag=' -i_dynamic' ;;
10736
11028
lf95*) # Lahey Fortran 8.1
10737
11029
whole_archive_flag_spec=
10738
11030
tmp_sharedflag='--shared' ;;
11031
nagfor*) # NAGFOR 5.3
11032
tmp_sharedflag='-Wl,-shared' ;;
10739
11033
xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10740
11034
tmp_sharedflag='-qmkshrobj'
10741
11035
tmp_addflag= ;;
10742
11036
nvcc*) # Cuda Compiler Driver 2.2
10743
whole_archive_flag_spec='${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'
11037
whole_archive_flag_spec='$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'
10744
11038
compiler_needs_object=yes
10747
11041
case `$CC -V 2>&1 | sed 5q` in
10748
11042
*Sun\ C*) # Sun C 5.9
10749
whole_archive_flag_spec='${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'
11043
whole_archive_flag_spec='$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'
10750
11044
compiler_needs_object=yes
10751
11045
tmp_sharedflag='-G' ;;
10752
11046
*Sun\ F*) # Sun Fortran 8.3
10753
11047
tmp_sharedflag='-G' ;;
10755
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11049
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10757
if test "x$supports_anon_versioning" = xyes; then
11051
if test yes = "$supports_anon_versioning"; then
10758
11052
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10759
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10760
echo "local: *; };" >> $output_objdir/$libname.ver~
10761
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11053
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11054
echo "local: *; };" >> $output_objdir/$libname.ver~
11055
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10764
11058
case $cc_basename in
11060
export_dynamic_flag_spec='-rdynamic'
10765
11062
xlf* | bgf* | bgxlf* | mpixlf*)
10766
11063
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10767
11064
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10768
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11065
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10769
11066
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10770
if test "x$supports_anon_versioning" = xyes; then
11067
if test yes = "$supports_anon_versioning"; then
10771
11068
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10772
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10773
echo "local: *; };" >> $output_objdir/$libname.ver~
10774
$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11069
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11070
echo "local: *; };" >> $output_objdir/$libname.ver~
11071
$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10886
if test "$host_cpu" = ia64; then
11183
if test ia64 = "$host_cpu"; then
10887
11184
# On IA64, the linker does run time linking by default, so we don't
10888
11185
# have to do anything special.
10889
11186
aix_use_runtimelinking=no
10890
11187
exp_sym_flag='-Bexport'
10893
11190
# If we're using GNU nm, then we don't want the "-C" option.
10894
# -C means demangle to AIX nm, but means don't demangle with GNU nm
10895
# Also, AIX nm treats weak defined symbols like other global
10896
# defined symbols, whereas GNU nm marks them as "W".
11191
# -C means demangle to GNU nm, but means don't demangle to AIX nm.
11192
# Without the "-l" option, or with the "-B" option, AIX nm treats
11193
# weak defined symbols like other global defined symbols, whereas
11194
# GNU nm marks them as "W".
11195
# While the 'weak' keyword is ignored in the Export File, we need
11196
# it in the Import File for the 'aix-soname' feature, so we have
11197
# to replace the "-B" option with "-P" for AIX nm.
10897
11198
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10898
export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11199
export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10900
export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11201
export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10902
11203
aix_use_runtimelinking=no
10904
11205
# Test if we are trying to use run time linking or normal
10905
11206
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10906
# need to do runtime linking.
11207
# have runtime linking enabled, and use it for executables.
11208
# For shared libraries, we enable/disable runtime linking
11209
# depending on the kind of the shared library created -
11210
# when "with_aix_soname,aix_use_runtimelinking" is:
11211
# "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11212
# "aix,yes" lib.so shared, rtl:yes, for executables
11213
# lib.a static archive
11214
# "both,no" lib.so.V(shr.o) shared, rtl:yes
11215
# lib.a(lib.so.V) shared, rtl:no, for executables
11216
# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11217
# lib.a(lib.so.V) shared, rtl:no
11218
# "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11219
# lib.a static archive
10907
11220
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10908
11221
for ld_flag in $LDFLAGS; do
10909
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11222
if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10910
11223
aix_use_runtimelinking=yes
11227
if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11228
# With aix-soname=svr4, we create the lib.so.V shared archives only,
11229
# so we don't have lib.a shared libs to link our executables.
11230
# We have to force runtime linking in this case.
11231
aix_use_runtimelinking=yes
11232
LDFLAGS="$LDFLAGS -Wl,-brtl"
10929
11249
hardcode_direct_absolute=yes
10930
11250
hardcode_libdir_separator=':'
10931
11251
link_all_deplibs=yes
10932
file_list_spec='${wl}-f,'
11252
file_list_spec='$wl-f,'
11253
case $with_aix_soname,$aix_use_runtimelinking in
11254
aix,*) ;; # traditional, no import file
11255
svr4,* | *,yes) # use import file
11256
# The Import File defines what to hardcode.
11258
hardcode_direct_absolute=no
10934
if test "$GCC" = yes; then
11262
if test yes = "$GCC"; then
10935
11263
case $host_os in aix4.[012]|aix4.[012].*)
10936
11264
# We only want to do this on AIX 4.2 and lower, the check
10937
11265
# below for broken collect2 doesn't work under 4.3+
10938
collect2name=`${CC} -print-prog-name=collect2`
11266
collect2name=`$CC -print-prog-name=collect2`
10939
11267
if test -f "$collect2name" &&
10940
11268
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10956
11284
shared_flag='-shared'
10957
if test "$aix_use_runtimelinking" = yes; then
10958
shared_flag="$shared_flag "'${wl}-G'
11285
if test yes = "$aix_use_runtimelinking"; then
11286
shared_flag="$shared_flag "'$wl-G'
10960
link_all_deplibs=no
11288
# Need to ensure runtime linking is disabled for the traditional
11289
# shared library, or the linker may eventually find shared libraries
11290
# /with/ Import File - we do not want to mix them.
11291
shared_flag_aix='-shared'
11292
shared_flag_svr4='-shared $wl-G'
10962
11294
# not using gcc
10963
if test "$host_cpu" = ia64; then
11295
if test ia64 = "$host_cpu"; then
10964
11296
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10965
11297
# chokes on -Wl,-G. The following line is correct:
10966
11298
shared_flag='-G'
10968
if test "$aix_use_runtimelinking" = yes; then
10969
shared_flag='${wl}-G'
11300
if test yes = "$aix_use_runtimelinking"; then
11301
shared_flag='$wl-G'
10971
shared_flag='${wl}-bM:SRE'
11303
shared_flag='$wl-bM:SRE'
11305
shared_flag_aix='$wl-bM:SRE'
11306
shared_flag_svr4='$wl-G'
10976
export_dynamic_flag_spec='${wl}-bexpall'
11310
export_dynamic_flag_spec='$wl-bexpall'
10977
11311
# It seems that -bexpall does not export symbols beginning with
10978
11312
# underscore (_), so it is better to generate a list of symbols to export.
10979
11313
always_export_symbols=yes
10980
if test "$aix_use_runtimelinking" = yes; then
11314
if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10981
11315
# Warning - without using the other runtime loading flags (-brtl),
10982
11316
# -berok will link without error, but may produce a broken library.
10983
11317
allow_undefined_flag='-berok'
10984
11318
# Determine the default libpath from the value encoded in an
10985
11319
# empty executable.
10986
if test "${lt_cv_aix_libpath+set}" = set; then
11320
if test set = "${lt_cv_aix_libpath+set}"; then
10987
11321
aix_libpath=$lt_cv_aix_libpath
10989
11323
if ${lt_cv_aix_libpath_+:} false; then :
11026
11360
aix_libpath=$lt_cv_aix_libpath_
11029
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11030
archive_expsym_cmds='$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"
11363
hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11364
archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
11032
if test "$host_cpu" = ia64; then
11033
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11366
if test ia64 = "$host_cpu"; then
11367
hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11034
11368
allow_undefined_flag="-z nodefs"
11035
archive_expsym_cmds="\$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"
11369
archive_expsym_cmds="\$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"
11037
11371
# Determine the default libpath from the value encoded in an
11038
11372
# empty executable.
11039
if test "${lt_cv_aix_libpath+set}" = set; then
11373
if test set = "${lt_cv_aix_libpath+set}"; then
11040
11374
aix_libpath=$lt_cv_aix_libpath
11042
11376
if ${lt_cv_aix_libpath_+:} false; then :
11079
11413
aix_libpath=$lt_cv_aix_libpath_
11082
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11416
hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11083
11417
# Warning - without using the other run time loading flags,
11084
11418
# -berok will link without error, but may produce a broken library.
11085
no_undefined_flag=' ${wl}-bernotok'
11086
allow_undefined_flag=' ${wl}-berok'
11087
if test "$with_gnu_ld" = yes; then
11419
no_undefined_flag=' $wl-bernotok'
11420
allow_undefined_flag=' $wl-berok'
11421
if test yes = "$with_gnu_ld"; then
11088
11422
# We only use this code for GNU lds that support --whole-archive.
11089
whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11423
whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11091
11425
# Exported symbols can be pulled into shared objects from archives
11092
11426
whole_archive_flag_spec='$convenience'
11094
11428
archive_cmds_need_lc=yes
11095
# This is similar to how AIX traditionally builds its shared libraries.
11096
archive_expsym_cmds="\$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'
11429
archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11430
# -brtl affects multiple linker settings, -berok does not and is overridden later
11431
compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11432
if test svr4 != "$with_aix_soname"; then
11433
# This is similar to how AIX traditionally builds its shared libraries.
11434
archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
11436
if test aix != "$with_aix_soname"; then
11437
archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
11439
# used by -dlpreopen to get the symbols
11440
archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11442
archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11132
11478
# Tell ltmain to make .lib files, not .a files.
11134
11480
# Tell ltmain to make .dll files, not .so files.
11136
11482
# FIXME: Setting linknames here is a bad hack.
11137
archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11138
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11139
sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11141
sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11143
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11483
archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11484
archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11485
cp "$export_symbols" "$output_objdir/$soname.def";
11486
echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11488
$SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11490
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11145
11492
# The linker will not automatically build a static lib if we build a DLL.
11146
11493
# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11147
11494
enable_shared_with_static_runtimes=yes
11189
11536
hardcode_direct=no
11190
11537
hardcode_automatic=yes
11191
11538
hardcode_shlibpath_var=unsupported
11192
if test "$lt_cv_ld_force_load" = "yes"; then
11193
whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
11539
if test yes = "$lt_cv_ld_force_load"; then
11540
whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
11196
11543
whole_archive_flag_spec=''
11198
11545
link_all_deplibs=yes
11199
allow_undefined_flag="$_lt_dar_allow_undefined"
11546
allow_undefined_flag=$_lt_dar_allow_undefined
11200
11547
case $cc_basename in
11201
ifort*) _lt_dar_can_shared=yes ;;
11548
ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11202
11549
*) _lt_dar_can_shared=$GCC ;;
11204
if test "$_lt_dar_can_shared" = "yes"; then
11551
if test yes = "$_lt_dar_can_shared"; then
11205
11552
output_verbose_link_cmd=func_echo_all
11206
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11207
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11208
archive_expsym_cmds="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}"
11209
module_expsym_cmds="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}"
11553
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11554
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11555
archive_expsym_cmds="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"
11556
module_expsym_cmds="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"
11251
if test "$GCC" = yes; then
11252
archive_cmds='$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'
11598
if test yes = "$GCC"; then
11599
archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11254
archive_cmds='$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'
11601
archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11256
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11603
hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11257
11604
hardcode_libdir_separator=:
11258
11605
hardcode_direct=yes
11260
11607
# hardcode_minus_L: Not really in the search PATH,
11261
11608
# but as the default location of the library.
11262
11609
hardcode_minus_L=yes
11263
export_dynamic_flag_spec='${wl}-E'
11610
export_dynamic_flag_spec='$wl-E'
11267
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11268
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11614
if test yes,no = "$GCC,$with_gnu_ld"; then
11615
archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11270
11617
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11272
if test "$with_gnu_ld" = no; then
11273
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11619
if test no = "$with_gnu_ld"; then
11620
hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11274
11621
hardcode_libdir_separator=:
11275
11622
hardcode_direct=yes
11276
11623
hardcode_direct_absolute=yes
11277
export_dynamic_flag_spec='${wl}-E'
11624
export_dynamic_flag_spec='$wl-E'
11278
11625
# hardcode_minus_L: Not really in the search PATH,
11279
11626
# but as the default location of the library.
11280
11627
hardcode_minus_L=yes
11394
11741
rm -f core conftest.err conftest.$ac_objext \
11395
11742
conftest$ac_exeext conftest.$ac_ext
11396
LDFLAGS="$save_LDFLAGS"
11743
LDFLAGS=$save_LDFLAGS
11398
11745
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11399
11746
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
11400
if test "$lt_cv_irix_exported_symbol" = yes; then
11401
archive_expsym_cmds='$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'
11747
if test yes = "$lt_cv_irix_exported_symbol"; then
11748
archive_expsym_cmds='$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'
11404
archive_cmds='$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'
11405
archive_expsym_cmds='$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'
11751
archive_cmds='$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'
11752
archive_expsym_cmds='$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'
11407
11754
archive_cmds_need_lc='no'
11408
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11755
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11409
11756
hardcode_libdir_separator=:
11410
11757
inherit_rpath=yes
11411
11758
link_all_deplibs=yes
11414
netbsd* | netbsdelf*-gnu)
11762
case $cc_basename in
11764
# Fabrice Bellard et al's Tiny C Compiler
11766
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11415
11772
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11416
11773
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11433
11790
*nto* | *qnx*)
11793
openbsd* | bitrig*)
11437
11794
if test -f /usr/libexec/ld.so; then
11438
11795
hardcode_direct=yes
11439
11796
hardcode_shlibpath_var=no
11440
11797
hardcode_direct_absolute=yes
11441
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11798
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11442
11799
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11443
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11444
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11445
export_dynamic_flag_spec='${wl}-E'
11800
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11801
hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11802
export_dynamic_flag_spec='$wl-E'
11448
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11449
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11450
hardcode_libdir_flag_spec='-R$libdir'
11453
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11454
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11804
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11805
hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11464
11813
hardcode_libdir_flag_spec='-L$libdir'
11465
11814
hardcode_minus_L=yes
11466
11815
allow_undefined_flag=unsupported
11467
archive_cmds='$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'
11468
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11817
archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11818
$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11819
$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11820
$ECHO EXPORTS >> $output_objdir/$libname.def~
11821
emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11822
$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11823
emximp -o $lib $output_objdir/$libname.def'
11824
archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11825
$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11826
$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11827
$ECHO EXPORTS >> $output_objdir/$libname.def~
11828
prefix_cmds="$SED"~
11829
if test EXPORTS = "`$SED 1q $export_symbols`"; then
11830
prefix_cmds="$prefix_cmds -e 1d";
11832
prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11833
cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11834
$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11835
emximp -o $lib $output_objdir/$libname.def'
11836
old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11837
enable_shared_with_static_runtimes=yes
11472
if test "$GCC" = yes; then
11473
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11474
archive_cmds='$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'
11841
if test yes = "$GCC"; then
11842
allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11843
archive_cmds='$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'
11476
11845
allow_undefined_flag=' -expect_unresolved \*'
11477
archive_cmds='$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'
11846
archive_cmds='$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'
11479
11848
archive_cmds_need_lc='no'
11480
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11849
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11481
11850
hardcode_libdir_separator=:
11484
11853
osf4* | osf5*) # as osf3* with the addition of -msym flag
11485
if test "$GCC" = yes; then
11486
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11487
archive_cmds='$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'
11488
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11854
if test yes = "$GCC"; then
11855
allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11856
archive_cmds='$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'
11857
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11490
11859
allow_undefined_flag=' -expect_unresolved \*'
11491
archive_cmds='$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'
11860
archive_cmds='$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'
11492
11861
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
11493
$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'
11862
$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'
11495
11864
# Both c and cxx compiler support -rpath directly
11496
11865
hardcode_libdir_flag_spec='-rpath $libdir'
11503
11872
no_undefined_flag=' -z defs'
11504
if test "$GCC" = yes; then
11506
archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11873
if test yes = "$GCC"; then
11875
archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11507
11876
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11508
$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'
11877
$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'
11510
11879
case `$CC -V 2>&1` in
11511
11880
*"Compilers 5.0"*)
11513
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11882
archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11514
11883
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11515
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11884
$LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11519
archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11888
archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11520
11889
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11521
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11890
$CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11596
11965
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11597
no_undefined_flag='${wl}-z,text'
11966
no_undefined_flag='$wl-z,text'
11598
11967
archive_cmds_need_lc=no
11599
11968
hardcode_shlibpath_var=no
11600
11969
runpath_var='LD_RUN_PATH'
11602
if test "$GCC" = yes; then
11603
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11604
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11971
if test yes = "$GCC"; then
11972
archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11973
archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11606
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11607
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11975
archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11976
archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11611
11980
sysv5* | sco3.2v5* | sco5v6*)
11612
# Note: We can NOT use -z defs as we might desire, because we do not
11981
# Note: We CANNOT use -z defs as we might desire, because we do not
11613
11982
# link with -lc, and that would cause any symbols used from libc to
11614
11983
# always be unresolved, which means just about no library would
11615
11984
# ever link correctly. If we're not using GNU ld we use -z text
11616
11985
# though, which does catch some bad symbols but isn't as heavy-handed
11617
11986
# as -z defs.
11618
no_undefined_flag='${wl}-z,text'
11619
allow_undefined_flag='${wl}-z,nodefs'
11987
no_undefined_flag='$wl-z,text'
11988
allow_undefined_flag='$wl-z,nodefs'
11620
11989
archive_cmds_need_lc=no
11621
11990
hardcode_shlibpath_var=no
11622
hardcode_libdir_flag_spec='${wl}-R,$libdir'
11991
hardcode_libdir_flag_spec='$wl-R,$libdir'
11623
11992
hardcode_libdir_separator=':'
11624
11993
link_all_deplibs=yes
11625
export_dynamic_flag_spec='${wl}-Bexport'
11994
export_dynamic_flag_spec='$wl-Bexport'
11626
11995
runpath_var='LD_RUN_PATH'
11628
if test "$GCC" = yes; then
11629
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11630
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11997
if test yes = "$GCC"; then
11998
archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11999
archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11632
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11633
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12001
archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12002
archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11922
12291
# Ok, now we have the path, separated by spaces, we can step through it
11923
# and add multilib dir if necessary.
12292
# and add multilib dir if necessary...
11924
12293
lt_tmp_lt_search_path_spec=
11925
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12294
lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12295
# ...but if some path component already ends with the multilib dir we assume
12296
# that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12297
case "$lt_multi_os_dir; $lt_search_path_spec " in
12298
"/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11926
12302
for lt_sys_path in $lt_search_path_spec; do
11927
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11928
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12303
if test -d "$lt_sys_path$lt_multi_os_dir"; then
12304
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12305
elif test -n "$lt_multi_os_dir"; then
11930
12306
test -d "$lt_sys_path" && \
11931
12307
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11934
12310
lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11935
BEGIN {RS=" "; FS="/|\n";} {
12311
BEGIN {RS = " "; FS = "/|\n";} {
11938
12314
for (lt_i = NF; lt_i > 0; lt_i--) {
11939
12315
if ($lt_i != "" && $lt_i != ".") {
11940
12316
if ($lt_i == "..") {
11943
12319
if (lt_count == 0) {
11944
lt_foo="/" $lt_i lt_foo;
12320
lt_foo = "/" $lt_i lt_foo;
11996
12374
need_lib_prefix=no
11997
12375
need_version=no
11998
12376
hardcode_into_libs=yes
11999
if test "$host_cpu" = ia64; then
12377
if test ia64 = "$host_cpu"; then
12000
12378
# AIX 5 supports IA64
12001
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12379
library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12002
12380
shlibpath_var=LD_LIBRARY_PATH
12004
12382
# With GCC up to 2.95.x, collect2 would create an import file
12005
12383
# for dependence libraries. The import file would start with
12006
# the line `#! .'. This would cause the generated library to
12007
# depend on `.', always an invalid library. This was fixed in
12384
# the line '#! .'. This would cause the generated library to
12385
# depend on '.', always an invalid library. This was fixed in
12008
12386
# development snapshots of GCC prior to 3.0.
12009
12387
case $host_os in
12010
12388
aix4 | aix4.[01] | aix4.[01].*)
12011
12389
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12013
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12391
echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12016
12394
can_build_shared=no
12020
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12398
# Using Import Files as archive members, it is possible to support
12399
# filename-based versioning of shared library archives on AIX. While
12400
# this would work for both with and without runtime linking, it will
12401
# prevent static linking of such archives. So we do filename-based
12402
# shared library versioning with .so extension only, which is used
12403
# when both runtime linking and shared linking is enabled.
12404
# Unfortunately, runtime linking may impact performance, so we do
12405
# not want this to be the default eventually. Also, we use the
12406
# versioned .so libs for executables only if there is the -brtl
12407
# linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12408
# To allow for filename-based versioning support, we need to create
12409
# libNAME.so.V as an archive file, containing:
12410
# *) an Import File, referring to the versioned filename of the
12411
# archive as well as the shared archive member, telling the
12412
# bitwidth (32 or 64) of that shared object, and providing the
12413
# list of exported symbols of that shared object, eventually
12414
# decorated with the 'weak' keyword
12415
# *) the shared object with the F_LOADONLY flag set, to really avoid
12416
# it being seen by the linker.
12417
# At run time we better use the real file rather than another symlink,
12418
# but for link time we create the symlink libNAME.so -> libNAME.so.V
12420
case $with_aix_soname,$aix_use_runtimelinking in
12421
# AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12021
12422
# soname into executable. Probably we can add versioning support to
12022
12423
# collect2, so additional links can be useful in future.
12023
if test "$aix_use_runtimelinking" = yes; then
12424
aix,yes) # traditional libtool
12425
dynamic_linker='AIX unversionable lib.so'
12024
12426
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
12025
12427
# instead of lib<name>.a to let people know that these are not
12026
12428
# typical AIX shared libraries.
12027
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12429
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12431
aix,no) # traditional AIX only
12432
dynamic_linker='AIX lib.a(lib.so.V)'
12029
12433
# We preserve .a as extension for shared libraries through AIX4.2
12030
12434
# and later when we are not doing run time linking.
12031
library_names_spec='${libname}${release}.a $libname.a'
12032
soname_spec='${libname}${release}${shared_ext}$major'
12435
library_names_spec='$libname$release.a $libname.a'
12436
soname_spec='$libname$release$shared_ext$major'
12438
svr4,*) # full svr4 only
12439
dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12440
library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12441
# We do not specify a path in Import Files, so LIBPATH fires.
12442
shlibpath_overrides_runpath=yes
12444
*,yes) # both, prefer svr4
12445
dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12446
library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12447
# unpreferred sharedlib libNAME.a needs extra handling
12448
postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
12449
postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
12450
# We do not specify a path in Import Files, so LIBPATH fires.
12451
shlibpath_overrides_runpath=yes
12453
*,no) # both, prefer aix
12454
dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12455
library_names_spec='$libname$release.a $libname.a'
12456
soname_spec='$libname$release$shared_ext$major'
12457
# unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12458
postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
12459
postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
12034
12462
shlibpath_var=LIBPATH
12363
12793
dynamic_linker=no
12797
version_type=none # Android doesn't support versioned libraries.
12800
library_names_spec='$libname$release$shared_ext'
12801
soname_spec='$libname$release$shared_ext'
12803
shlibpath_var=LD_LIBRARY_PATH
12804
shlibpath_overrides_runpath=yes
12806
# This implies no fast_install, which is unacceptable.
12807
# Some rework will be needed to allow for fast_install
12808
# before this can be enabled.
12809
hardcode_into_libs=yes
12811
dynamic_linker='Android linker'
12812
# Don't embed -rpath directories since the linker doesn't support them.
12813
hardcode_libdir_flag_spec='-L$libdir'
12366
12816
# This must be glibc/ELF.
12367
12817
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12368
12818
version_type=linux # correct to gnu/linux during the next big refactor
12369
12819
need_lib_prefix=no
12370
12820
need_version=no
12371
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12372
soname_spec='${libname}${release}${shared_ext}$major'
12821
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12822
soname_spec='$libname$release$shared_ext$major'
12373
12823
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12374
12824
shlibpath_var=LD_LIBRARY_PATH
12375
12825
shlibpath_overrides_runpath=no
12469
12912
version_type=qnx
12470
12913
need_lib_prefix=no
12471
12914
need_version=no
12472
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12473
soname_spec='${libname}${release}${shared_ext}$major'
12915
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12916
soname_spec='$libname$release$shared_ext$major'
12474
12917
shlibpath_var=LD_LIBRARY_PATH
12475
12918
shlibpath_overrides_runpath=no
12476
12919
hardcode_into_libs=yes
12477
12920
dynamic_linker='ldqnx.so'
12923
openbsd* | bitrig*)
12481
12924
version_type=sunos
12482
sys_lib_dlsearch_path_spec="/usr/lib"
12925
sys_lib_dlsearch_path_spec=/usr/lib
12483
12926
need_lib_prefix=no
12484
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12486
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12487
*) need_version=no ;;
12489
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12927
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12932
library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12490
12933
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12491
12934
shlibpath_var=LD_LIBRARY_PATH
12492
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12494
openbsd2.[89] | openbsd2.[89].*)
12495
shlibpath_overrides_runpath=no
12498
shlibpath_overrides_runpath=yes
12502
shlibpath_overrides_runpath=yes
12935
shlibpath_overrides_runpath=yes
12507
12939
libname_spec='$name'
12940
version_type=windows
12509
12943
need_lib_prefix=no
12510
library_names_spec='$libname${shared_ext} $libname.a'
12944
# OS/2 can only load a DLL with a base name of 8 characters or less.
12945
soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12946
v=$($ECHO $release$versuffix | tr -d .-);
12947
n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12948
$ECHO $n$v`$shared_ext'
12949
library_names_spec='${libname}_dll.$libext'
12511
12950
dynamic_linker='OS/2 ld.exe'
12512
shlibpath_var=LIBPATH
12951
shlibpath_var=BEGINLIBPATH
12952
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12953
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12954
postinstall_cmds='base_file=`basename \$file`~
12955
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12956
dldir=$destdir/`dirname \$dlpath`~
12957
test -d \$dldir || mkdir -p \$dldir~
12958
$install_prog $dir/$dlname \$dldir/$dlname~
12959
chmod a+x \$dldir/$dlname~
12960
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12961
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12963
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12964
dlpath=$dir/\$dldll~
12515
12968
osf3* | osf4* | osf5*)
12516
12969
version_type=osf
12517
12970
need_lib_prefix=no
12518
12971
need_version=no
12519
soname_spec='${libname}${release}${shared_ext}$major'
12520
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12972
soname_spec='$libname$release$shared_ext$major'
12973
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12521
12974
shlibpath_var=LD_LIBRARY_PATH
12522
12975
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12523
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12976
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12579
if test -d /usr/nec ;then
13032
if test -d /usr/nec; then
12580
13033
version_type=linux # correct to gnu/linux during the next big refactor
12581
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12582
soname_spec='$libname${shared_ext}.$major'
13034
library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13035
soname_spec='$libname$shared_ext.$major'
12583
13036
shlibpath_var=LD_LIBRARY_PATH
12587
13040
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12588
version_type=freebsd-elf
12589
13042
need_lib_prefix=no
12590
13043
need_version=no
12591
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12592
soname_spec='${libname}${release}${shared_ext}$major'
13044
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13045
soname_spec='$libname$release$shared_ext$major'
12593
13046
shlibpath_var=LD_LIBRARY_PATH
12594
13047
shlibpath_overrides_runpath=yes
12595
13048
hardcode_into_libs=yes
12596
if test "$with_gnu_ld" = yes; then
13049
if test yes = "$with_gnu_ld"; then
12597
13050
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12599
13052
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12631
13084
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12632
13085
$as_echo "$dynamic_linker" >&6; }
12633
test "$dynamic_linker" = no && can_build_shared=no
13086
test no = "$dynamic_linker" && can_build_shared=no
12635
13088
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12636
if test "$GCC" = yes; then
13089
if test yes = "$GCC"; then
12637
13090
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12640
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12641
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12643
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12644
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13093
if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13094
sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13097
if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13098
sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13101
# lt_cv_sys_lib... is unaugmented for libtool script decls...
13102
lt_cv_sys_lib_dlsearch_path_spec=$sys_lib_dlsearch_path_spec
13104
# ..but sys_lib_... needs LT_SYS_LIBRARY_PATH munging for
13105
# LT_SYS_DLSEARCH_PATH macro in ltdl.m4 to work with the correct paths:
13106
func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
20504
# See if we are running on zsh, and set the options which allow our
20981
# See if we are running on zsh, and set the options that allow our
20505
20982
# commands through without removal of \ escapes.
20506
if test -n "${ZSH_VERSION+set}" ; then
20983
if test -n "${ZSH_VERSION+set}"; then
20507
20984
setopt NO_GLOB_SUBST
20510
cfgfile="${ofile}T"
20511
20988
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20512
20989
$RM "$cfgfile"
20514
20991
cat <<_LT_EOF >> "$cfgfile"
20517
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20518
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20993
# Generated automatically by $as_me ($PACKAGE) $VERSION
20519
20994
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20520
20995
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20522
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20523
# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20525
# Written by Gordon Matzigkeit, 1996
20527
# This file is part of GNU Libtool.
20529
# GNU Libtool is free software; you can redistribute it and/or
20530
# modify it under the terms of the GNU General Public License as
20531
# published by the Free Software Foundation; either version 2 of
20532
# the License, or (at your option) any later version.
20534
# As a special exception to the GNU General Public License,
20535
# if you distribute this file as part of a program or library that
20536
# is built using GNU Libtool, you may include this file under the
20537
# same distribution terms that you use for the rest of that program.
20539
# GNU Libtool is distributed in the hope that it will be useful,
20540
# but WITHOUT ANY WARRANTY; without even the implied warranty of
20997
# Provide generalized library-building support services.
20998
# Written by Gordon Matzigkeit, 1996
21000
# Copyright (C) 2014 Free Software Foundation, Inc.
21001
# This is free software; see the source for copying conditions. There is NO
21002
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21004
# GNU Libtool is free software; you can redistribute it and/or modify
21005
# it under the terms of the GNU General Public License as published by
21006
# the Free Software Foundation; either version 2 of of the License, or
21007
# (at your option) any later version.
21009
# As a special exception to the GNU General Public License, if you
21010
# distribute this file as part of a program or library that is built
21011
# using GNU Libtool, you may include this file under the same
21012
# distribution terms that you use for the rest of that program.
21014
# GNU Libtool is distributed in the hope that it will be useful, but
21015
# WITHOUT ANY WARRANTY; without even the implied warranty of
20541
21016
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20542
21017
# GNU General Public License for more details.
20544
21019
# You should have received a copy of the GNU General Public License
20545
# along with GNU Libtool; see the file COPYING. If not, a copy
20546
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20547
# obtained by writing to the Free Software Foundation, Inc.,
20548
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21020
# along with this program. If not, see <http://www.gnu.org/licenses/>.
20551
21023
# The names of the tagged configurations supported by this script.
21026
# Configured defaults for sys_lib_dlsearch_path munging.
21027
: \${LT_SYS_LIBRARY_PATH="$LT_SYS_LIBRARY_PATH"}
20554
21029
# ### BEGIN LIBTOOL CONFIG
20686
21164
# Transform the output of nm in a proper C declaration.
20687
21165
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21167
# Transform the output of nm into a list of symbols to manually relocate.
21168
global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20689
21170
# Transform the output of nm in a C name address pair.
20690
21171
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20692
21173
# Transform the output of nm in a C name address pair when lib prefix is needed.
20693
21174
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21176
# The name lister interface.
21177
nm_interface=$lt_lt_cv_nm_interface
20695
21179
# Specify filename containing input files for \$NM.
20696
21180
nm_file_list_spec=$lt_nm_file_list_spec
20698
# The root where to search for dependent libraries,and in which our libraries should be installed.
21182
# The root where to search for dependent libraries,and where our libraries should be installed.
20699
21183
lt_sysroot=$lt_sysroot
21185
# Command to truncate a binary pipe.
21186
lt_truncate_bin=$lt_lt_cv_truncate_bin
20701
21188
# The name of the directory that contains temporary libtool files.
20702
21189
objdir=$objdir
21430
cat <<'_LT_EOF' >> "$cfgfile"
21432
# func_munge_path_list VARIABLE PATH
21433
# -----------------------------------
21434
# VARIABLE is name of variable containing _space_ separated list of
21435
# directories to be munged by the contents of PATH, which is string
21438
# string "DIR[ DIR]" will be prepended to VARIABLE
21440
# string "DIR[ DIR]" will be appended to VARIABLE
21441
# "DIRP[:DIRP]::[DIRA:]DIRA"
21442
# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21443
# "DIRA[ DIRA]" will be appended to VARIABLE
21445
# VARIABLE will be replaced by "DIR[ DIR]"
21446
func_munge_path_list ()
21452
eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \S|@1\"
21455
eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21458
eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21459
eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21462
eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21468
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
21469
func_cc_basename ()
21471
for cc_temp in $*""; do
21473
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21474
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21479
func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20943
21485
case $host_os in
20945
21487
cat <<\_LT_EOF >> "$cfgfile"
20946
21488
# AIX sometimes has problems with the GCC collect2 program. For some
20947
21489
# reason, if we set the COLLECT_NAMES environment variable, the problems
20948
21490
# vanish in a puff of smoke.
20949
if test "X${COLLECT_NAMES+set}" != Xset; then
21491
if test set != "${COLLECT_NAMES+set}"; then
20950
21492
COLLECT_NAMES=
20951
21493
export COLLECT_NAMES
20965
21507
sed '$q' "$ltmain" >> "$cfgfile" \
20966
21508
|| (rm -f "$cfgfile"; exit 1)
20968
if test x"$xsi_shell" = xyes; then
20969
sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20973
\ */*) func_dirname_result="${1%/*}${2}" ;;\
20974
\ * ) func_dirname_result="${3}" ;;\
20976
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20977
&& mv -f "$cfgfile.tmp" "$cfgfile" \
20978
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20979
test 0 -eq $? || _lt_function_replace_fail=:
20982
sed -e '/^func_basename ()$/,/^} # func_basename /c\
20985
\ func_basename_result="${1##*/}"\
20986
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20987
&& mv -f "$cfgfile.tmp" "$cfgfile" \
20988
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20989
test 0 -eq $? || _lt_function_replace_fail=:
20992
sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20993
func_dirname_and_basename ()\
20996
\ */*) func_dirname_result="${1%/*}${2}" ;;\
20997
\ * ) func_dirname_result="${3}" ;;\
20999
\ func_basename_result="${1##*/}"\
21000
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21001
&& mv -f "$cfgfile.tmp" "$cfgfile" \
21002
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21003
test 0 -eq $? || _lt_function_replace_fail=:
21006
sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21009
\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21010
\ # positional parameters, so assign one to ordinary parameter first.\
21011
\ func_stripname_result=${3}\
21012
\ func_stripname_result=${func_stripname_result#"${1}"}\
21013
\ func_stripname_result=${func_stripname_result%"${2}"}\
21014
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21015
&& mv -f "$cfgfile.tmp" "$cfgfile" \
21016
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21017
test 0 -eq $? || _lt_function_replace_fail=:
21020
sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21021
func_split_long_opt ()\
21023
\ func_split_long_opt_name=${1%%=*}\
21024
\ func_split_long_opt_arg=${1#*=}\
21025
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21026
&& mv -f "$cfgfile.tmp" "$cfgfile" \
21027
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21028
test 0 -eq $? || _lt_function_replace_fail=:
21031
sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21032
func_split_short_opt ()\
21034
\ func_split_short_opt_arg=${1#??}\
21035
\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21036
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21037
&& mv -f "$cfgfile.tmp" "$cfgfile" \
21038
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21039
test 0 -eq $? || _lt_function_replace_fail=:
21042
sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21046
\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21047
\ *) func_lo2o_result=${1} ;;\
21049
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21050
&& mv -f "$cfgfile.tmp" "$cfgfile" \
21051
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21052
test 0 -eq $? || _lt_function_replace_fail=:
21055
sed -e '/^func_xform ()$/,/^} # func_xform /c\
21058
func_xform_result=${1%.*}.lo\
21059
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21060
&& mv -f "$cfgfile.tmp" "$cfgfile" \
21061
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21062
test 0 -eq $? || _lt_function_replace_fail=:
21065
sed -e '/^func_arith ()$/,/^} # func_arith /c\
21068
func_arith_result=$(( $* ))\
21069
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21070
&& mv -f "$cfgfile.tmp" "$cfgfile" \
21071
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21072
test 0 -eq $? || _lt_function_replace_fail=:
21075
sed -e '/^func_len ()$/,/^} # func_len /c\
21078
func_len_result=${#1}\
21079
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21080
&& mv -f "$cfgfile.tmp" "$cfgfile" \
21081
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21082
test 0 -eq $? || _lt_function_replace_fail=:
21086
if test x"$lt_shell_append" = xyes; then
21087
sed -e '/^func_append ()$/,/^} # func_append /c\
21090
eval "${1}+=\\${2}"\
21091
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21092
&& mv -f "$cfgfile.tmp" "$cfgfile" \
21093
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21094
test 0 -eq $? || _lt_function_replace_fail=:
21097
sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21098
func_append_quoted ()\
21100
\ func_quote_for_eval "${2}"\
21101
\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21102
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21103
&& mv -f "$cfgfile.tmp" "$cfgfile" \
21104
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21105
test 0 -eq $? || _lt_function_replace_fail=:
21108
# Save a `func_append' function call where possible by direct use of '+='
21109
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21110
&& mv -f "$cfgfile.tmp" "$cfgfile" \
21111
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21112
test 0 -eq $? || _lt_function_replace_fail=:
21114
# Save a `func_append' function call even when '+=' is not available
21115
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21116
&& mv -f "$cfgfile.tmp" "$cfgfile" \
21117
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21118
test 0 -eq $? || _lt_function_replace_fail=:
21121
if test x"$_lt_function_replace_fail" = x":"; then
21122
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21123
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21127
21510
mv -f "$cfgfile" "$ofile" ||
21128
21511
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21129
21512
chmod +x "$ofile"