13391
# Check if GNU C++ uses GNU ld as the underlying linker, since the
13392
# archiving commands below assume that GNU ld is being used.
13393
if test "$with_gnu_ld" = yes; then
13394
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13395
archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13397
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13398
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13400
# If archive_cmds runs LD, not CC, wlarc should be empty
13401
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13402
# investigate it a little bit more. (MM)
13405
# ancient GNU ld didn't support --whole-archive et. al.
13406
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
13407
grep 'no-whole-archive' > /dev/null; then
13408
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13410
whole_archive_flag_spec_CXX=
13416
# A generic and very simple default shared library creation
13417
# command for GNU C++ for the case where it uses the native
13418
# linker, instead of GNU ld. If possible, this setting should
13419
# overridden to take advantage of the native linker features on
13420
# the platform it is being used on.
13421
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13424
# Commands to make compiler produce verbose output that lists
13425
# what "hidden" libraries, object files and flags are used when
13426
# linking a shared library.
13427
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13435
# PORTME: fill in a description of your system's C++ link characteristics
13436
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13437
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13441
# FIXME: insert proper C++ library support
13445
if test "$host_cpu" = ia64; then
13446
# On IA64, the linker does run time linking by default, so we don't
13447
# have to do anything special.
13448
aix_use_runtimelinking=no
13449
exp_sym_flag='-Bexport'
13452
aix_use_runtimelinking=no
13454
# Test if we are trying to use run time linking or normal
13455
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13456
# need to do runtime linking.
13457
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13458
for ld_flag in $LDFLAGS; do
13461
aix_use_runtimelinking=yes
13469
exp_sym_flag='-bexport'
13470
no_entry_flag='-bnoentry'
13473
# When large executables or shared objects are built, AIX ld can
13474
# have problems creating the table of contents. If linking a library
13475
# or program results in "error TOC overflow" add -mminimal-toc to
13476
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13477
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13479
archive_cmds_CXX=''
13480
hardcode_direct_CXX=yes
13481
hardcode_libdir_separator_CXX=':'
13482
link_all_deplibs_CXX=yes
13484
if test "$GXX" = yes; then
13485
case $host_os in aix4.[012]|aix4.[012].*)
13486
# We only want to do this on AIX 4.2 and lower, the check
13487
# below for broken collect2 doesn't work under 4.3+
13488
collect2name=`${CC} -print-prog-name=collect2`
13489
if test -f "$collect2name" && \
13490
strings "$collect2name" | grep resolve_lib_name >/dev/null
13492
# We have reworked collect2
13495
# We have old collect2
13496
hardcode_direct_CXX=unsupported
13497
# It fails to find uninstalled libraries when the uninstalled
13498
# path is not listed in the libpath. Setting hardcode_minus_L
13499
# to unsupported forces relinking
13500
hardcode_minus_L_CXX=yes
13501
hardcode_libdir_flag_spec_CXX='-L$libdir'
13502
hardcode_libdir_separator_CXX=
13506
shared_flag='-shared'
13507
if test "$aix_use_runtimelinking" = yes; then
13508
shared_flag="$shared_flag "'${wl}-G'
13512
if test "$host_cpu" = ia64; then
13513
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13514
# chokes on -Wl,-G. The following line is correct:
13517
if test "$aix_use_runtimelinking" = yes; then
13518
shared_flag='${wl}-G'
13520
shared_flag='${wl}-bM:SRE'
13525
# It seems that -bexpall does not export symbols beginning with
13526
# underscore (_), so it is better to generate a list of symbols to export.
13527
always_export_symbols_CXX=yes
13528
if test "$aix_use_runtimelinking" = yes; then
13529
# Warning - without using the other runtime loading flags (-brtl),
13530
# -berok will link without error, but may produce a broken library.
13531
allow_undefined_flag_CXX='-berok'
13532
# Determine the default libpath from the value encoded in an empty executable.
13533
cat >conftest.$ac_ext <<_ACEOF
13536
cat confdefs.h >>conftest.$ac_ext
13537
cat >>conftest.$ac_ext <<_ACEOF
13538
/* end confdefs.h. */
13548
rm -f conftest.$ac_objext conftest$ac_exeext
13549
if { (ac_try="$ac_link"
13550
case "(($ac_try" in
13551
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13552
*) ac_try_echo=$ac_try;;
13554
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13555
$as_echo "$ac_try_echo") >&5
13556
(eval "$ac_link") 2>conftest.er1
13558
grep -v '^ *+' conftest.er1 >conftest.err
13560
cat conftest.err >&5
13561
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562
(exit $ac_status); } && {
13563
test -z "$ac_cxx_werror_flag" ||
13564
test ! -s conftest.err
13565
} && test -s conftest$ac_exeext && {
13566
test "$cross_compiling" = yes ||
13567
$as_test_x conftest$ac_exeext
13570
lt_aix_libpath_sed='
13571
/Import File Strings/,/^$/ {
13577
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13578
# Check for a 64-bit object if we didn't find anything.
13579
if test -z "$aix_libpath"; then
13580
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13583
$as_echo "$as_me: failed program was:" >&5
13584
sed 's/^/| /' conftest.$ac_ext >&5
13589
rm -rf conftest.dSYM
13590
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13591
conftest$ac_exeext conftest.$ac_ext
13592
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13594
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13596
archive_expsym_cmds_CXX="\$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"
13598
if test "$host_cpu" = ia64; then
13599
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13600
allow_undefined_flag_CXX="-z nodefs"
13601
archive_expsym_cmds_CXX="\$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"
13603
# Determine the default libpath from the value encoded in an empty executable.
13604
cat >conftest.$ac_ext <<_ACEOF
13607
cat confdefs.h >>conftest.$ac_ext
13608
cat >>conftest.$ac_ext <<_ACEOF
13609
/* end confdefs.h. */
13619
rm -f conftest.$ac_objext conftest$ac_exeext
13620
if { (ac_try="$ac_link"
13621
case "(($ac_try" in
13622
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13623
*) ac_try_echo=$ac_try;;
13625
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13626
$as_echo "$ac_try_echo") >&5
13627
(eval "$ac_link") 2>conftest.er1
13629
grep -v '^ *+' conftest.er1 >conftest.err
13631
cat conftest.err >&5
13632
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633
(exit $ac_status); } && {
13634
test -z "$ac_cxx_werror_flag" ||
13635
test ! -s conftest.err
13636
} && test -s conftest$ac_exeext && {
13637
test "$cross_compiling" = yes ||
13638
$as_test_x conftest$ac_exeext
13641
lt_aix_libpath_sed='
13642
/Import File Strings/,/^$/ {
13648
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13649
# Check for a 64-bit object if we didn't find anything.
13650
if test -z "$aix_libpath"; then
13651
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13654
$as_echo "$as_me: failed program was:" >&5
13655
sed 's/^/| /' conftest.$ac_ext >&5
13660
rm -rf conftest.dSYM
13661
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13662
conftest$ac_exeext conftest.$ac_ext
13663
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13665
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13666
# Warning - without using the other run time loading flags,
13667
# -berok will link without error, but may produce a broken library.
13668
no_undefined_flag_CXX=' ${wl}-bernotok'
13669
allow_undefined_flag_CXX=' ${wl}-berok'
13670
# Exported symbols can be pulled into shared objects from archives
13671
whole_archive_flag_spec_CXX='$convenience'
13672
archive_cmds_need_lc_CXX=yes
13673
# This is similar to how AIX traditionally builds its shared libraries.
13674
archive_expsym_cmds_CXX="\$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'
13680
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13681
allow_undefined_flag_CXX=unsupported
13682
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13683
# support --undefined. This deserves some investigation. FIXME
13684
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13691
case $cc_basename in
13693
# FIXME: insert proper C++ library support
13699
cygwin* | mingw* | pw32*)
13700
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13701
# as there is no search path for DLLs.
13702
hardcode_libdir_flag_spec_CXX='-L$libdir'
13703
allow_undefined_flag_CXX=unsupported
13704
always_export_symbols_CXX=no
13705
enable_shared_with_static_runtimes_CXX=yes
13707
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13708
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13709
# If the export-symbols file already is a .def file (1st line
13710
# is EXPORTS), use it as is; otherwise, prepend...
13711
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13712
cp $export_symbols $output_objdir/$soname.def;
13714
echo EXPORTS > $output_objdir/$soname.def;
13715
cat $export_symbols >> $output_objdir/$soname.def;
13717
$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'
13722
darwin* | rhapsody*)
13723
archive_cmds_need_lc_CXX=no
13724
hardcode_direct_CXX=no
13725
hardcode_automatic_CXX=yes
13726
hardcode_shlibpath_var_CXX=unsupported
13727
whole_archive_flag_spec_CXX=''
13728
link_all_deplibs_CXX=yes
13729
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13730
if test "$GXX" = yes ; then
13731
output_verbose_link_cmd='echo'
13732
archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13733
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13734
archive_expsym_cmds_CXX="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}"
13735
module_expsym_cmds_CXX="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}"
13736
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13737
archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13738
archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13741
case $cc_basename in
13743
output_verbose_link_cmd='echo'
13744
archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
13745
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13746
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13747
archive_expsym_cmds_CXX='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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13748
module_expsym_cmds_CXX='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}'
13758
case $cc_basename in
13760
# FIXME: insert proper C++ library support
13764
# Green Hills C++ Compiler
13765
# FIXME: insert proper C++ library support
13769
# FIXME: insert proper C++ library support
13775
# C++ shared libraries reported to be fairly broken before switch to ELF
13779
archive_cmds_need_lc_CXX=no
13781
freebsd* | dragonfly*)
13782
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13789
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13790
hardcode_libdir_separator_CXX=:
13791
export_dynamic_flag_spec_CXX='${wl}-E'
13792
hardcode_direct_CXX=yes
13793
hardcode_minus_L_CXX=yes # Not in the search PATH,
13794
# but as the default
13795
# location of the library.
13797
case $cc_basename in
13799
# FIXME: insert proper C++ library support
13803
archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14711
# Check if GNU C++ uses GNU ld as the underlying linker, since the
14712
# archiving commands below assume that GNU ld is being used.
14713
if test "$with_gnu_ld" = yes; then
14714
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14715
archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14717
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14718
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14720
# If archive_cmds runs LD, not CC, wlarc should be empty
14721
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14722
# investigate it a little bit more. (MM)
14725
# ancient GNU ld didn't support --whole-archive et. al.
14726
if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14727
$GREP 'no-whole-archive' > /dev/null; then
14728
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14730
whole_archive_flag_spec_CXX=
14736
# A generic and very simple default shared library creation
14737
# command for GNU C++ for the case where it uses the native
14738
# linker, instead of GNU ld. If possible, this setting should
14739
# overridden to take advantage of the native linker features on
14740
# the platform it is being used on.
14741
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13804
14744
# Commands to make compiler produce verbose output that lists
13805
14745
# what "hidden" libraries, object files and flags are used when
13806
14746
# linking a shared library.
13808
# There doesn't appear to be a way to prevent this compiler from
13809
# explicitly linking system object files so we need to strip them
13810
# from the output so that they don't get included in the library
13812
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13815
if test "$GXX" = yes; then
13816
archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14747
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14755
# PORTME: fill in a description of your system's C++ link characteristics
14756
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14757
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13818
14761
# FIXME: insert proper C++ library support
13819
14762
ld_shlibs_CXX=no
13825
if test $with_gnu_ld = no; then
13826
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13827
hardcode_libdir_separator_CXX=:
14765
if test "$host_cpu" = ia64; then
14766
# On IA64, the linker does run time linking by default, so we don't
14767
# have to do anything special.
14768
aix_use_runtimelinking=no
14769
exp_sym_flag='-Bexport'
14772
aix_use_runtimelinking=no
14774
# Test if we are trying to use run time linking or normal
14775
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14776
# need to do runtime linking.
14777
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14778
for ld_flag in $LDFLAGS; do
14781
aix_use_runtimelinking=yes
14789
exp_sym_flag='-bexport'
14790
no_entry_flag='-bnoentry'
14793
# When large executables or shared objects are built, AIX ld can
14794
# have problems creating the table of contents. If linking a library
14795
# or program results in "error TOC overflow" add -mminimal-toc to
14796
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14797
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14799
archive_cmds_CXX=''
14800
hardcode_direct_CXX=yes
14801
hardcode_direct_absolute_CXX=yes
14802
hardcode_libdir_separator_CXX=':'
14803
link_all_deplibs_CXX=yes
14804
file_list_spec_CXX='${wl}-f,'
14806
if test "$GXX" = yes; then
14807
case $host_os in aix4.[012]|aix4.[012].*)
14808
# We only want to do this on AIX 4.2 and lower, the check
14809
# below for broken collect2 doesn't work under 4.3+
14810
collect2name=`${CC} -print-prog-name=collect2`
14811
if test -f "$collect2name" &&
14812
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14814
# We have reworked collect2
14817
# We have old collect2
14818
hardcode_direct_CXX=unsupported
14819
# It fails to find uninstalled libraries when the uninstalled
14820
# path is not listed in the libpath. Setting hardcode_minus_L
14821
# to unsupported forces relinking
14822
hardcode_minus_L_CXX=yes
14823
hardcode_libdir_flag_spec_CXX='-L$libdir'
14824
hardcode_libdir_separator_CXX=
14827
shared_flag='-shared'
14828
if test "$aix_use_runtimelinking" = yes; then
14829
shared_flag="$shared_flag "'${wl}-G'
14833
if test "$host_cpu" = ia64; then
14834
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14835
# chokes on -Wl,-G. The following line is correct:
14838
if test "$aix_use_runtimelinking" = yes; then
14839
shared_flag='${wl}-G'
14841
shared_flag='${wl}-bM:SRE'
14846
export_dynamic_flag_spec_CXX='${wl}-bexpall'
14847
# It seems that -bexpall does not export symbols beginning with
14848
# underscore (_), so it is better to generate a list of symbols to
14850
always_export_symbols_CXX=yes
14851
if test "$aix_use_runtimelinking" = yes; then
14852
# Warning - without using the other runtime loading flags (-brtl),
14853
# -berok will link without error, but may produce a broken library.
14854
allow_undefined_flag_CXX='-berok'
14855
# Determine the default libpath from the value encoded in an empty
14857
cat >conftest.$ac_ext <<_ACEOF
14860
cat confdefs.h >>conftest.$ac_ext
14861
cat >>conftest.$ac_ext <<_ACEOF
14862
/* end confdefs.h. */
14872
rm -f conftest.$ac_objext conftest$ac_exeext
14873
if { (ac_try="$ac_link"
14874
case "(($ac_try" in
14875
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14876
*) ac_try_echo=$ac_try;;
14878
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14879
$as_echo "$ac_try_echo") >&5
14880
(eval "$ac_link") 2>conftest.er1
14882
grep -v '^ *+' conftest.er1 >conftest.err
14884
cat conftest.err >&5
14885
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886
(exit $ac_status); } && {
14887
test -z "$ac_cxx_werror_flag" ||
14888
test ! -s conftest.err
14889
} && test -s conftest$ac_exeext && {
14890
test "$cross_compiling" = yes ||
14891
$as_test_x conftest$ac_exeext
14894
lt_aix_libpath_sed='
14895
/Import File Strings/,/^$/ {
14901
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14902
# Check for a 64-bit object if we didn't find anything.
14903
if test -z "$aix_libpath"; then
14904
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14907
$as_echo "$as_me: failed program was:" >&5
14908
sed 's/^/| /' conftest.$ac_ext >&5
14913
rm -rf conftest.dSYM
14914
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14915
conftest$ac_exeext conftest.$ac_ext
14916
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14918
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14920
archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14922
if test "$host_cpu" = ia64; then
14923
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14924
allow_undefined_flag_CXX="-z nodefs"
14925
archive_expsym_cmds_CXX="\$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"
14927
# Determine the default libpath from the value encoded in an
14928
# empty executable.
14929
cat >conftest.$ac_ext <<_ACEOF
14932
cat confdefs.h >>conftest.$ac_ext
14933
cat >>conftest.$ac_ext <<_ACEOF
14934
/* end confdefs.h. */
14944
rm -f conftest.$ac_objext conftest$ac_exeext
14945
if { (ac_try="$ac_link"
14946
case "(($ac_try" in
14947
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14948
*) ac_try_echo=$ac_try;;
14950
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14951
$as_echo "$ac_try_echo") >&5
14952
(eval "$ac_link") 2>conftest.er1
14954
grep -v '^ *+' conftest.er1 >conftest.err
14956
cat conftest.err >&5
14957
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958
(exit $ac_status); } && {
14959
test -z "$ac_cxx_werror_flag" ||
14960
test ! -s conftest.err
14961
} && test -s conftest$ac_exeext && {
14962
test "$cross_compiling" = yes ||
14963
$as_test_x conftest$ac_exeext
14966
lt_aix_libpath_sed='
14967
/Import File Strings/,/^$/ {
14973
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14974
# Check for a 64-bit object if we didn't find anything.
14975
if test -z "$aix_libpath"; then
14976
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14979
$as_echo "$as_me: failed program was:" >&5
14980
sed 's/^/| /' conftest.$ac_ext >&5
14985
rm -rf conftest.dSYM
14986
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14987
conftest$ac_exeext conftest.$ac_ext
14988
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14990
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14991
# Warning - without using the other run time loading flags,
14992
# -berok will link without error, but may produce a broken library.
14993
no_undefined_flag_CXX=' ${wl}-bernotok'
14994
allow_undefined_flag_CXX=' ${wl}-berok'
14995
# Exported symbols can be pulled into shared objects from archives
14996
whole_archive_flag_spec_CXX='$convenience'
14997
archive_cmds_need_lc_CXX=yes
14998
# This is similar to how AIX traditionally builds its shared
15000
archive_expsym_cmds_CXX="\$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'
15006
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15007
allow_undefined_flag_CXX=unsupported
15008
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15009
# support --undefined. This deserves some investigation. FIXME
15010
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15017
case $cc_basename in
15019
# FIXME: insert proper C++ library support
15025
cygwin* | mingw* | pw32* | cegcc*)
15026
# _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15027
# as there is no search path for DLLs.
15028
hardcode_libdir_flag_spec_CXX='-L$libdir'
15029
allow_undefined_flag_CXX=unsupported
15030
always_export_symbols_CXX=no
15031
enable_shared_with_static_runtimes_CXX=yes
15033
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15034
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15035
# If the export-symbols file already is a .def file (1st line
15036
# is EXPORTS), use it as is; otherwise, prepend...
15037
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15038
cp $export_symbols $output_objdir/$soname.def;
15040
echo EXPORTS > $output_objdir/$soname.def;
15041
cat $export_symbols >> $output_objdir/$soname.def;
15043
$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'
15048
darwin* | rhapsody*)
15051
archive_cmds_need_lc_CXX=no
15052
hardcode_direct_CXX=no
15053
hardcode_automatic_CXX=yes
15054
hardcode_shlibpath_var_CXX=unsupported
15055
whole_archive_flag_spec_CXX=''
15056
link_all_deplibs_CXX=yes
15057
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
15058
case $cc_basename in
15059
ifort*) _lt_dar_can_shared=yes ;;
15060
*) _lt_dar_can_shared=$GCC ;;
15062
if test "$_lt_dar_can_shared" = "yes"; then
15063
output_verbose_link_cmd=echo
15064
archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15065
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15066
archive_expsym_cmds_CXX="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}"
15067
module_expsym_cmds_CXX="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}"
15068
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
15069
archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
15070
archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
15080
case $cc_basename in
15082
# FIXME: insert proper C++ library support
15086
# Green Hills C++ Compiler
15087
# FIXME: insert proper C++ library support
15091
# FIXME: insert proper C++ library support
15098
# C++ shared libraries reported to be fairly broken before
15104
archive_cmds_need_lc_CXX=no
15107
freebsd* | dragonfly*)
15108
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15117
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15118
hardcode_libdir_separator_CXX=:
15119
export_dynamic_flag_spec_CXX='${wl}-E'
15120
hardcode_direct_CXX=yes
15121
hardcode_minus_L_CXX=yes # Not in the search PATH,
15122
# but as the default
15123
# location of the library.
15125
case $cc_basename in
15127
# FIXME: insert proper C++ library support
15131
archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15132
# Commands to make compiler produce verbose output that lists
15133
# what "hidden" libraries, object files and flags are used when
15134
# linking a shared library.
15136
# There doesn't appear to be a way to prevent this compiler from
15137
# explicitly linking system object files so we need to strip them
15138
# from the output so that they don't get included in the library
15140
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
15143
if test "$GXX" = yes; then
15144
archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15146
# FIXME: insert proper C++ library support
15154
if test $with_gnu_ld = no; then
15155
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15156
hardcode_libdir_separator_CXX=:
15162
export_dynamic_flag_spec_CXX='${wl}-E'
15168
hardcode_direct_CXX=no
15169
hardcode_shlibpath_var_CXX=no
15172
hardcode_direct_CXX=yes
15173
hardcode_direct_absolute_CXX=yes
15174
hardcode_minus_L_CXX=yes # Not in the search PATH,
15175
# but as the default
15176
# location of the library.
15180
case $cc_basename in
15182
# FIXME: insert proper C++ library support
15188
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15191
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15194
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15197
# Commands to make compiler produce verbose output that lists
15198
# what "hidden" libraries, object files and flags are used when
15199
# linking a shared library.
15201
# There doesn't appear to be a way to prevent this compiler from
15202
# explicitly linking system object files so we need to strip them
15203
# from the output so that they don't get included in the library
15205
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
15208
if test "$GXX" = yes; then
15209
if test $with_gnu_ld = no; then
15212
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15215
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15218
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15223
# FIXME: insert proper C++ library support
15231
hardcode_direct_CXX=no
15232
hardcode_shlibpath_var_CXX=no
15233
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13832
15234
export_dynamic_flag_spec_CXX='${wl}-E'
13838
hardcode_direct_CXX=no
15235
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15236
# Instead, shared libraries are loaded at an image base (0x10000000 by
15237
# default) and relocated if they conflict, which is a slow very memory
15238
# consuming and fragmenting process. To avoid this, we pick a random,
15239
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15240
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
15241
archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15242
archive_expsym_cmds_CXX='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'
15245
case $cc_basename in
15248
archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
15250
# Archives containing C++ object files must be created using
15251
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
15252
# necessary to make sure instantiated templates are included
15254
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15257
if test "$GXX" = yes; then
15258
if test "$with_gnu_ld" = no; then
15259
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15261
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
15264
link_all_deplibs_CXX=yes
15267
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15268
hardcode_libdir_separator_CXX=:
15269
inherit_rpath_CXX=yes
15272
linux* | k*bsd*-gnu)
15273
case $cc_basename in
15275
# Kuck and Associates, Inc. (KAI) C++ Compiler
15277
# KCC will only create a shared library if the output file
15278
# ends with ".so" (or ".sl" for HP-UX), so rename the library
15279
# to its proper name (with version) after linking.
15280
archive_cmds_CXX='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'
15281
archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
15282
# Commands to make compiler produce verbose output that lists
15283
# what "hidden" libraries, object files and flags are used when
15284
# linking a shared library.
15286
# There doesn't appear to be a way to prevent this compiler from
15287
# explicitly linking system object files so we need to strip them
15288
# from the output so that they don't get included in the library
15290
output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
15292
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15293
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15295
# Archives containing C++ object files must be created using
15296
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
15297
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15302
# version 8.0 and above of icpc choke on multiply defined symbols
15303
# if we add $predep_objects and $postdep_objects, however 7.1 and
15304
# earlier do not add the objects themselves.
15305
case `$CC -V 2>&1` in
15307
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15308
archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15310
*) # Version 8.0 or newer
15313
ia64*) tmp_idyn=' -i_dynamic';;
15315
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15316
archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15319
archive_cmds_need_lc_CXX=no
15320
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15321
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15322
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15325
# Portland Group C++ compiler
15327
*pgCC\ [1-5]* | *pgcpp\ [1-5]*)
15328
prelink_cmds_CXX='tpldir=Template.dir~
15330
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15331
compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
15332
old_archive_cmds_CXX='tpldir=Template.dir~
15334
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15335
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
15337
archive_cmds_CXX='tpldir=Template.dir~
15339
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15340
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15341
archive_expsym_cmds_CXX='tpldir=Template.dir~
15343
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15344
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
15346
*) # Version 6 will use weak symbols
15347
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15348
archive_expsym_cmds_CXX='$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'
15352
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15353
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15354
whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
15358
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15359
archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
15361
runpath_var=LD_RUN_PATH
15362
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15363
hardcode_libdir_separator_CXX=:
15365
# Commands to make compiler produce verbose output that lists
15366
# what "hidden" libraries, object files and flags are used when
15367
# linking a shared library.
15369
# There doesn't appear to be a way to prevent this compiler from
15370
# explicitly linking system object files so we need to strip them
15371
# from the output so that they don't get included in the library
15373
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
15376
# IBM XL 8.0 on PPC, with GNU ld
15377
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15378
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15379
archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15380
if test "x$supports_anon_versioning" = xyes; then
15381
archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15382
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15383
echo "local: *; };" >> $output_objdir/$libname.ver~
15384
$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15388
case `$CC -V 2>&1 | sed 5q` in
15391
no_undefined_flag_CXX=' -zdefs'
15392
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15393
archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
15394
hardcode_libdir_flag_spec_CXX='-R$libdir'
15395
whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
15396
compiler_needs_object_CXX=yes
15398
# Not sure whether something based on
15399
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15401
output_verbose_link_cmd='echo'
15403
# Archives containing C++ object files must be created using
15404
# "CC -xar", where "CC" is the Sun C++ compiler. This is
15405
# necessary to make sure instantiated templates are included
15407
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15415
# FIXME: insert proper C++ library support
15420
# FIXME: insert proper C++ library support
15425
case $cc_basename in
15427
# FIXME: insert proper C++ library support
15431
# FIXME: insert proper C++ library support
15438
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15439
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15441
hardcode_libdir_flag_spec_CXX='-R$libdir'
15442
hardcode_direct_CXX=yes
15443
hardcode_shlibpath_var_CXX=no
15445
# Workaround some broken pre-1.5 toolchains
15446
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15454
# C++ shared libraries are fairly broken
15459
if test -f /usr/libexec/ld.so; then
15460
hardcode_direct_CXX=yes
15461
hardcode_shlibpath_var_CXX=no
15462
hardcode_direct_absolute_CXX=yes
15463
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15464
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15465
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15466
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15467
export_dynamic_flag_spec_CXX='${wl}-E'
15468
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15470
output_verbose_link_cmd=echo
15476
osf3* | osf4* | osf5*)
15477
case $cc_basename in
15479
# Kuck and Associates, Inc. (KAI) C++ Compiler
15481
# KCC will only create a shared library if the output file
15482
# ends with ".so" (or ".sl" for HP-UX), so rename the library
15483
# to its proper name (with version) after linking.
15484
archive_cmds_CXX='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'
15486
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15487
hardcode_libdir_separator_CXX=:
15489
# Archives containing C++ object files must be created using
15490
# the KAI C++ compiler.
15492
osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15493
*) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15497
# Rational C++ 2.4.1
15498
# FIXME: insert proper C++ library support
15504
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15505
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
15506
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15509
allow_undefined_flag_CXX=' -expect_unresolved \*'
15510
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
15511
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15512
echo "-hidden">> $lib.exp~
15513
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
15515
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15519
hardcode_libdir_separator_CXX=:
15521
# Commands to make compiler produce verbose output that lists
15522
# what "hidden" libraries, object files and flags are used when
15523
# linking a shared library.
15525
# There doesn't appear to be a way to prevent this compiler from
15526
# explicitly linking system object files so we need to strip them
15527
# from the output so that they don't get included in the library
15529
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
15532
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15533
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15536
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15539
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15543
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15544
hardcode_libdir_separator_CXX=:
15546
# Commands to make compiler produce verbose output that lists
15547
# what "hidden" libraries, object files and flags are used when
15548
# linking a shared library.
15549
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15552
# FIXME: insert proper C++ library support
15560
# FIXME: insert proper C++ library support
15565
case $cc_basename in
15568
# FIXME: insert proper C++ library support
15573
# FIXME: insert proper C++ library support
15577
# FIXME: insert proper C++ library support
15584
case $cc_basename in
15586
# Sun C++ 4.2, 5.x and Centerline C++
15587
archive_cmds_need_lc_CXX=yes
15588
no_undefined_flag_CXX=' -zdefs'
15589
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15590
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15591
$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'
15593
hardcode_libdir_flag_spec_CXX='-R$libdir'
15594
hardcode_shlibpath_var_CXX=no
15596
solaris2.[0-5] | solaris2.[0-5].*) ;;
15598
# The compiler driver will combine and reorder linker options,
15599
# but understands `-z linker_flag'.
15600
# Supported since Solaris 2.6 (maybe 2.5.1?)
15601
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15604
link_all_deplibs_CXX=yes
15606
output_verbose_link_cmd='echo'
15608
# Archives containing C++ object files must be created using
15609
# "CC -xar", where "CC" is the Sun C++ compiler. This is
15610
# necessary to make sure instantiated templates are included
15612
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15615
# Green Hills C++ Compiler
15616
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15618
# The C++ compiler must be used to create the archive.
15619
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15622
# GNU C++ compiler with Solaris linker
15623
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15624
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15625
if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15626
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15627
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15628
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15630
# Commands to make compiler produce verbose output that lists
15631
# what "hidden" libraries, object files and flags are used when
15632
# linking a shared library.
15633
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15635
# g++ 2.7 appears to require `-G' NOT `-shared' on this
15637
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15638
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15639
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15641
# Commands to make compiler produce verbose output that lists
15642
# what "hidden" libraries, object files and flags are used when
15643
# linking a shared library.
15644
output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15647
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15649
solaris2.[0-5] | solaris2.[0-5].*) ;;
15651
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15659
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15660
no_undefined_flag_CXX='${wl}-z,text'
15661
archive_cmds_need_lc_CXX=no
13839
15662
hardcode_shlibpath_var_CXX=no
13842
hardcode_direct_CXX=yes
13843
hardcode_minus_L_CXX=yes # Not in the search PATH,
13844
# but as the default
13845
# location of the library.
15663
runpath_var='LD_RUN_PATH'
13849
case $cc_basename in
13851
# FIXME: insert proper C++ library support
13857
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13860
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15665
case $cc_basename in
15667
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15668
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13863
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13866
# Commands to make compiler produce verbose output that lists
13867
# what "hidden" libraries, object files and flags are used when
13868
# linking a shared library.
13870
# There doesn't appear to be a way to prevent this compiler from
13871
# explicitly linking system object files so we need to strip them
13872
# from the output so that they don't get included in the library
13874
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13877
if test "$GXX" = yes; then
13878
if test $with_gnu_ld = no; then
13881
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13884
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13887
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13892
# FIXME: insert proper C++ library support
13899
hardcode_direct_CXX=no
13900
hardcode_shlibpath_var_CXX=no
13901
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13902
export_dynamic_flag_spec_CXX='${wl}-E'
13903
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13904
# Instead, shared libraries are loaded at an image base (0x10000000 by
13905
# default) and relocated if they conflict, which is a slow very memory
13906
# consuming and fragmenting process. To avoid this, we pick a random,
13907
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13908
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
13909
archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13910
archive_expsym_cmds_CXX='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'
13913
case $cc_basename in
13916
archive_cmds_CXX='$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'
13918
# Archives containing C++ object files must be created using
13919
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
13920
# necessary to make sure instantiated templates are included
13922
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13925
if test "$GXX" = yes; then
13926
if test "$with_gnu_ld" = no; then
13927
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13929
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
13932
link_all_deplibs_CXX=yes
13935
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13936
hardcode_libdir_separator_CXX=:
13938
linux* | k*bsd*-gnu)
13939
case $cc_basename in
13941
# Kuck and Associates, Inc. (KAI) C++ Compiler
13943
# KCC will only create a shared library if the output file
13944
# ends with ".so" (or ".sl" for HP-UX), so rename the library
13945
# to its proper name (with version) after linking.
13946
archive_cmds_CXX='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'
13947
archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13948
# Commands to make compiler produce verbose output that lists
13949
# what "hidden" libraries, object files and flags are used when
13950
# linking a shared library.
13952
# There doesn't appear to be a way to prevent this compiler from
13953
# explicitly linking system object files so we need to strip them
13954
# from the output so that they don't get included in the library
13956
output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13958
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13959
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13961
# Archives containing C++ object files must be created using
13962
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
13963
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13968
# version 8.0 and above of icpc choke on multiply defined symbols
13969
# if we add $predep_objects and $postdep_objects, however 7.1 and
13970
# earlier do not add the objects themselves.
13971
case `$CC -V 2>&1` in
13973
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13974
archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13976
*) # Version 8.0 or newer
13979
ia64*) tmp_idyn=' -i_dynamic';;
13981
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13982
archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15671
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15672
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15677
sysv5* | sco3.2v5* | sco5v6*)
15678
# Note: We can NOT use -z defs as we might desire, because we do not
15679
# link with -lc, and that would cause any symbols used from libc to
15680
# always be unresolved, which means just about no library would
15681
# ever link correctly. If we're not using GNU ld we use -z text
15682
# though, which does catch some bad symbols but isn't as heavy-handed
15684
no_undefined_flag_CXX='${wl}-z,text'
15685
allow_undefined_flag_CXX='${wl}-z,nodefs'
13985
15686
archive_cmds_need_lc_CXX=no
13986
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13987
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13988
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13991
# Portland Group C++ compiler
13992
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13993
archive_expsym_cmds_CXX='$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'
13995
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13996
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13997
whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14001
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14002
archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
14004
runpath_var=LD_RUN_PATH
14005
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14006
hardcode_libdir_separator_CXX=:
14008
# Commands to make compiler produce verbose output that lists
14009
# what "hidden" libraries, object files and flags are used when
14010
# linking a shared library.
14012
# There doesn't appear to be a way to prevent this compiler from
14013
# explicitly linking system object files so we need to strip them
14014
# from the output so that they don't get included in the library
14016
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
14019
case `$CC -V 2>&1 | sed 5q` in
14022
no_undefined_flag_CXX=' -zdefs'
14023
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14024
archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
14025
hardcode_libdir_flag_spec_CXX='-R$libdir'
14026
whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14028
# Not sure whether something based on
14029
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14031
output_verbose_link_cmd='echo'
14033
# Archives containing C++ object files must be created using
14034
# "CC -xar", where "CC" is the Sun C++ compiler. This is
14035
# necessary to make sure instantiated templates are included
14037
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14044
# FIXME: insert proper C++ library support
14048
# FIXME: insert proper C++ library support
14052
case $cc_basename in
14054
# FIXME: insert proper C++ library support
14058
# FIXME: insert proper C++ library support
14064
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14065
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14067
hardcode_libdir_flag_spec_CXX='-R$libdir'
14068
hardcode_direct_CXX=yes
14069
hardcode_shlibpath_var_CXX=no
14071
# Workaround some broken pre-1.5 toolchains
14072
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14075
# C++ shared libraries are fairly broken
14079
if test -f /usr/libexec/ld.so; then
14080
hardcode_direct_CXX=yes
14081
hardcode_shlibpath_var_CXX=no
14082
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14083
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14084
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14085
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14086
export_dynamic_flag_spec_CXX='${wl}-E'
14087
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14089
output_verbose_link_cmd='echo'
14095
case $cc_basename in
14097
# Kuck and Associates, Inc. (KAI) C++ Compiler
14099
# KCC will only create a shared library if the output file
14100
# ends with ".so" (or ".sl" for HP-UX), so rename the library
14101
# to its proper name (with version) after linking.
14102
archive_cmds_CXX='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'
14104
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14105
hardcode_libdir_separator_CXX=:
14107
# Archives containing C++ object files must be created using
14108
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
14109
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14113
# Rational C++ 2.4.1
14114
# FIXME: insert proper C++ library support
14118
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14119
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14121
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14122
hardcode_libdir_separator_CXX=:
14124
# Commands to make compiler produce verbose output that lists
14125
# what "hidden" libraries, object files and flags are used when
14126
# linking a shared library.
14128
# There doesn't appear to be a way to prevent this compiler from
14129
# explicitly linking system object files so we need to strip them
14130
# from the output so that they don't get included in the library
14132
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
14135
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14136
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14137
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14139
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14140
hardcode_libdir_separator_CXX=:
14142
# Commands to make compiler produce verbose output that lists
14143
# what "hidden" libraries, object files and flags are used when
14144
# linking a shared library.
14145
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
14148
# FIXME: insert proper C++ library support
14155
case $cc_basename in
14157
# Kuck and Associates, Inc. (KAI) C++ Compiler
14159
# KCC will only create a shared library if the output file
14160
# ends with ".so" (or ".sl" for HP-UX), so rename the library
14161
# to its proper name (with version) after linking.
14162
archive_cmds_CXX='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'
14164
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14165
hardcode_libdir_separator_CXX=:
14167
# Archives containing C++ object files must be created using
14168
# the KAI C++ compiler.
14169
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
14172
# Rational C++ 2.4.1
14173
# FIXME: insert proper C++ library support
14177
allow_undefined_flag_CXX=' -expect_unresolved \*'
14178
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14179
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14180
echo "-hidden">> $lib.exp~
14181
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
14184
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14185
hardcode_libdir_separator_CXX=:
14187
# Commands to make compiler produce verbose output that lists
14188
# what "hidden" libraries, object files and flags are used when
14189
# linking a shared library.
14191
# There doesn't appear to be a way to prevent this compiler from
14192
# explicitly linking system object files so we need to strip them
14193
# from the output so that they don't get included in the library
14195
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
14198
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14199
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14200
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14202
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14203
hardcode_libdir_separator_CXX=:
14205
# Commands to make compiler produce verbose output that lists
14206
# what "hidden" libraries, object files and flags are used when
14207
# linking a shared library.
14208
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
14211
# FIXME: insert proper C++ library support
14218
# FIXME: insert proper C++ library support
14222
case $cc_basename in
14225
# FIXME: insert proper C++ library support
14230
# FIXME: insert proper C++ library support
14234
# FIXME: insert proper C++ library support
14240
case $cc_basename in
14242
# Sun C++ 4.2, 5.x and Centerline C++
14243
archive_cmds_need_lc_CXX=yes
14244
no_undefined_flag_CXX=' -zdefs'
14245
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14246
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14247
$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'
14249
hardcode_libdir_flag_spec_CXX='-R$libdir'
14250
15687
hardcode_shlibpath_var_CXX=no
14252
solaris2.[0-5] | solaris2.[0-5].*) ;;
14254
# The compiler driver will combine and reorder linker options,
14255
# but understands `-z linker_flag'.
14256
# Supported since Solaris 2.6 (maybe 2.5.1?)
14257
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15688
hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15689
hardcode_libdir_separator_CXX=':'
14260
15690
link_all_deplibs_CXX=yes
14262
output_verbose_link_cmd='echo'
14264
# Archives containing C++ object files must be created using
14265
# "CC -xar", where "CC" is the Sun C++ compiler. This is
14266
# necessary to make sure instantiated templates are included
14268
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14271
# Green Hills C++ Compiler
14272
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14274
# The C++ compiler must be used to create the archive.
14275
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14278
# GNU C++ compiler with Solaris linker
14279
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14280
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14281
if $CC --version | grep -v '^2\.7' > /dev/null; then
14282
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14283
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14284
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
14286
# Commands to make compiler produce verbose output that lists
14287
# what "hidden" libraries, object files and flags are used when
14288
# linking a shared library.
14289
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
14291
# g++ 2.7 appears to require `-G' NOT `-shared' on this
14293
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14294
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14295
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
14297
# Commands to make compiler produce verbose output that lists
14298
# what "hidden" libraries, object files and flags are used when
14299
# linking a shared library.
14300
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
14303
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14305
solaris2.[0-5] | solaris2.[0-5].*) ;;
15691
export_dynamic_flag_spec_CXX='${wl}-Bexport'
15692
runpath_var='LD_RUN_PATH'
15694
case $cc_basename in
15696
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15697
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14307
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14314
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14315
no_undefined_flag_CXX='${wl}-z,text'
14316
archive_cmds_need_lc_CXX=no
14317
hardcode_shlibpath_var_CXX=no
14318
runpath_var='LD_RUN_PATH'
14320
case $cc_basename in
14322
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14323
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14326
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14327
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14331
sysv5* | sco3.2v5* | sco5v6*)
14332
# Note: We can NOT use -z defs as we might desire, because we do not
14333
# link with -lc, and that would cause any symbols used from libc to
14334
# always be unresolved, which means just about no library would
14335
# ever link correctly. If we're not using GNU ld we use -z text
14336
# though, which does catch some bad symbols but isn't as heavy-handed
14338
# For security reasons, it is highly recommended that you always
14339
# use absolute paths for naming shared libraries, and exclude the
14340
# DT_RUNPATH tag from executables and libraries. But doing so
14341
# requires that you compile everything twice, which is a pain.
14342
# So that behaviour is only enabled if SCOABSPATH is set to a
14343
# non-empty value in the environment. Most likely only useful for
14344
# creating official distributions of packages.
14345
# This is a hack until libtool officially supports absolute path
14346
# names for shared libraries.
14347
no_undefined_flag_CXX='${wl}-z,text'
14348
allow_undefined_flag_CXX='${wl}-z,nodefs'
14349
archive_cmds_need_lc_CXX=no
14350
hardcode_shlibpath_var_CXX=no
14351
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14352
hardcode_libdir_separator_CXX=':'
14353
link_all_deplibs_CXX=yes
14354
export_dynamic_flag_spec_CXX='${wl}-Bexport'
14355
runpath_var='LD_RUN_PATH'
14357
case $cc_basename in
14359
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14360
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14363
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14364
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14369
case $cc_basename in
14371
# NonStop-UX NCC 3.20
14372
# FIXME: insert proper C++ library support
14376
# FIXME: insert proper C++ library support
14382
# FIXME: insert proper C++ library support
14386
# FIXME: insert proper C++ library support
14390
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15700
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15701
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15707
case $cc_basename in
15709
# NonStop-UX NCC 3.20
15710
# FIXME: insert proper C++ library support
15714
# FIXME: insert proper C++ library support
15721
# FIXME: insert proper C++ library support
15726
# FIXME: insert proper C++ library support
15731
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14391
15732
$as_echo "$ld_shlibs_CXX" >&6; }
14392
test "$ld_shlibs_CXX" = no && can_build_shared=no
14397
cat > conftest.$ac_ext <<EOF
15733
test "$ld_shlibs_CXX" = no && can_build_shared=no
15739
## There is no encapsulation within the following macros, do not change
15740
## the running order or otherwise move them around unless you know exactly
15741
## what you are doing...
15742
# Dependencies to place before and after the object being linked:
15743
predep_objects_CXX=
15744
postdep_objects_CXX=
15747
compiler_lib_search_path_CXX=
15749
cat > conftest.$ac_ext <<_LT_EOF
15726
17368
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15727
17369
$as_echo "$hardcode_action_CXX" >&6; }
15729
if test "$hardcode_action_CXX" = relink; then
15730
# Fast installation is not supported
15731
enable_fast_install=no
15732
elif test "$shlibpath_overrides_runpath" = yes ||
15733
test "$enable_shared" = no; then
15734
# Fast installation is not necessary
15735
enable_fast_install=needless
15739
# The else clause should only fire when bootstrapping the
15740
# libtool distribution, otherwise you forgot to ship ltmain.sh
15741
# with your package, and you will get complaints that there are
15742
# no rules to generate ltmain.sh.
15743
if test -f "$ltmain"; then
15744
# See if we are running on zsh, and set the options which allow our commands through
15745
# without removal of \ escapes.
15746
if test -n "${ZSH_VERSION+set}" ; then
15747
setopt NO_GLOB_SUBST
15749
# Now quote all the things that may contain metacharacters while being
15750
# careful not to overquote the AC_SUBSTed values. We take copies of the
15751
# variables and quote the copies for generation of the libtool script.
15752
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15754
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15755
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15756
deplibs_check_method reload_flag reload_cmds need_locks \
15757
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15758
lt_cv_sys_global_symbol_to_c_name_address \
15759
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15760
old_postinstall_cmds old_postuninstall_cmds \
15764
lt_prog_compiler_wl_CXX \
15765
lt_prog_compiler_pic_CXX \
15766
lt_prog_compiler_static_CXX \
15767
lt_prog_compiler_no_builtin_flag_CXX \
15768
export_dynamic_flag_spec_CXX \
15769
thread_safe_flag_spec_CXX \
15770
whole_archive_flag_spec_CXX \
15771
enable_shared_with_static_runtimes_CXX \
15772
old_archive_cmds_CXX \
15773
old_archive_from_new_cmds_CXX \
15774
predep_objects_CXX \
15775
postdep_objects_CXX \
15778
compiler_lib_search_path_CXX \
15779
compiler_lib_search_dirs_CXX \
15781
archive_expsym_cmds_CXX \
15782
postinstall_cmds_CXX \
15783
postuninstall_cmds_CXX \
15784
old_archive_from_expsyms_cmds_CXX \
15785
allow_undefined_flag_CXX \
15786
no_undefined_flag_CXX \
15787
export_symbols_cmds_CXX \
15788
hardcode_libdir_flag_spec_CXX \
15789
hardcode_libdir_flag_spec_ld_CXX \
15790
hardcode_libdir_separator_CXX \
15791
hardcode_automatic_CXX \
15793
module_expsym_cmds_CXX \
15794
lt_cv_prog_compiler_c_o_CXX \
15795
fix_srcfile_path_CXX \
15796
exclude_expsyms_CXX \
15797
include_expsyms_CXX; do
15800
old_archive_cmds_CXX | \
15801
old_archive_from_new_cmds_CXX | \
15802
archive_cmds_CXX | \
15803
archive_expsym_cmds_CXX | \
15804
module_cmds_CXX | \
15805
module_expsym_cmds_CXX | \
15806
old_archive_from_expsyms_cmds_CXX | \
15807
export_symbols_cmds_CXX | \
15808
extract_expsyms_cmds | reload_cmds | finish_cmds | \
15809
postinstall_cmds | postuninstall_cmds | \
15810
old_postinstall_cmds | old_postuninstall_cmds | \
15811
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15812
# Double-quote double-evaled strings.
15813
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15816
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15822
*'\$0 --fallback-echo"')
15823
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15829
cat <<__EOF__ >> "$cfgfile"
15830
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15832
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15834
# Shell to use when invoking shell scripts.
15837
# Whether or not to build shared libraries.
15838
build_libtool_libs=$enable_shared
15840
# Whether or not to build static libraries.
15841
build_old_libs=$enable_static
15843
# Whether or not to add -lc for building shared libraries.
15844
build_libtool_need_lc=$archive_cmds_need_lc_CXX
15846
# Whether or not to disallow shared libs when runtime libs are static
15847
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15849
# Whether or not to optimize for fast installation.
15850
fast_install=$enable_fast_install
15853
host_alias=$host_alias
15857
# The build system.
15858
build_alias=$build_alias
15862
# An echo program that does not interpret backslashes.
15867
AR_FLAGS=$lt_AR_FLAGS
15872
# LTCC compiler flags.
15873
LTCFLAGS=$lt_LTCFLAGS
15875
# A language-specific compiler.
15876
CC=$lt_compiler_CXX
15878
# Is the compiler the GNU C compiler?
15884
# The linker used to build libraries.
15887
# Whether we need hard or soft links.
15890
# A BSD-compatible nm program.
15893
# A symbol stripping program
15896
# Used to examine libraries when file_magic_cmd begins "file"
15897
MAGIC_CMD=$MAGIC_CMD
15899
# Used on cygwin: DLL creation program.
15902
# Used on cygwin: object dumper.
15905
# Used on cygwin: assembler.
15908
# The name of the directory that contains temporary libtool files.
15911
# How to create reloadable object files.
15912
reload_flag=$lt_reload_flag
15913
reload_cmds=$lt_reload_cmds
15915
# How to pass a linker flag through the compiler.
15916
wl=$lt_lt_prog_compiler_wl_CXX
15918
# Object file suffix (normally "o").
15919
objext="$ac_objext"
15921
# Old archive suffix (normally "a").
15924
# Shared library suffix (normally ".so").
15925
shrext_cmds='$shrext_cmds'
15927
# Executable file suffix (normally "").
15930
# Additional compiler flags for building library objects.
15931
pic_flag=$lt_lt_prog_compiler_pic_CXX
15934
# What is the maximum length of a command?
15935
max_cmd_len=$lt_cv_sys_max_cmd_len
15937
# Does compiler simultaneously support -c and -o options?
15938
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15940
# Must we lock files when doing compilation?
15941
need_locks=$lt_need_locks
15943
# Do we need the lib prefix for modules?
15944
need_lib_prefix=$need_lib_prefix
15946
# Do we need a version for libraries?
15947
need_version=$need_version
15949
# Whether dlopen is supported.
15950
dlopen_support=$enable_dlopen
15952
# Whether dlopen of programs is supported.
15953
dlopen_self=$enable_dlopen_self
15955
# Whether dlopen of statically linked programs is supported.
15956
dlopen_self_static=$enable_dlopen_self_static
15958
# Compiler flag to prevent dynamic linking.
15959
link_static_flag=$lt_lt_prog_compiler_static_CXX
15961
# Compiler flag to turn off builtin functions.
15962
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15964
# Compiler flag to allow reflexive dlopens.
15965
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15967
# Compiler flag to generate shared objects directly from archives.
15968
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15970
# Compiler flag to generate thread-safe objects.
15971
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15973
# Library versioning type.
15974
version_type=$version_type
15976
# Format of library name prefix.
15977
libname_spec=$lt_libname_spec
15979
# List of archive names. First name is the real one, the rest are links.
15980
# The last name is the one that the linker finds with -lNAME.
15981
library_names_spec=$lt_library_names_spec
15983
# The coded name of the library, if different from the real name.
15984
soname_spec=$lt_soname_spec
15986
# Commands used to build and install an old-style archive.
15988
old_archive_cmds=$lt_old_archive_cmds_CXX
15989
old_postinstall_cmds=$lt_old_postinstall_cmds
15990
old_postuninstall_cmds=$lt_old_postuninstall_cmds
15992
# Create an old-style archive from a shared archive.
15993
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15995
# Create a temporary old-style archive to link instead of a shared archive.
15996
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15998
# Commands used to build and install a shared archive.
15999
archive_cmds=$lt_archive_cmds_CXX
16000
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
16001
postinstall_cmds=$lt_postinstall_cmds
16002
postuninstall_cmds=$lt_postuninstall_cmds
16004
# Commands used to build a loadable module (assumed same as above if empty)
16005
module_cmds=$lt_module_cmds_CXX
16006
module_expsym_cmds=$lt_module_expsym_cmds_CXX
16008
# Commands to strip libraries.
16009
old_striplib=$lt_old_striplib
16010
striplib=$lt_striplib
16012
# Dependencies to place before the objects being linked to create a
16014
predep_objects=$lt_predep_objects_CXX
16016
# Dependencies to place after the objects being linked to create a
16018
postdep_objects=$lt_postdep_objects_CXX
16020
# Dependencies to place before the objects being linked to create a
16022
predeps=$lt_predeps_CXX
16024
# Dependencies to place after the objects being linked to create a
16026
postdeps=$lt_postdeps_CXX
16028
# The directories searched by this compiler when creating a shared
16030
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
16032
# The library search path used internally by the compiler when linking
16033
# a shared library.
16034
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
16036
# Method to check whether dependent libraries are shared objects.
16037
deplibs_check_method=$lt_deplibs_check_method
16039
# Command to use when deplibs_check_method == file_magic.
16040
file_magic_cmd=$lt_file_magic_cmd
16042
# Flag that allows shared libraries with undefined symbols to be built.
16043
allow_undefined_flag=$lt_allow_undefined_flag_CXX
16045
# Flag that forces no undefined symbols.
16046
no_undefined_flag=$lt_no_undefined_flag_CXX
16048
# Commands used to finish a libtool library installation in a directory.
16049
finish_cmds=$lt_finish_cmds
16051
# Same as above, but a single script fragment to be evaled but not shown.
16052
finish_eval=$lt_finish_eval
16054
# Take the output of nm and produce a listing of raw symbols and C names.
16055
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16057
# Transform the output of nm in a proper C declaration
16058
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16060
# Transform the output of nm in a C name address pair
16061
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16063
# This is the shared library runtime path variable.
16064
runpath_var=$runpath_var
16066
# This is the shared library path variable.
16067
shlibpath_var=$shlibpath_var
16069
# Is shlibpath searched before the hard-coded library search path?
16070
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16072
# How to hardcode a shared library path into an executable.
16073
hardcode_action=$hardcode_action_CXX
16075
# Whether we should hardcode library paths into libraries.
16076
hardcode_into_libs=$hardcode_into_libs
16078
# Flag to hardcode \$libdir into a binary during linking.
16079
# This must work even if \$libdir does not exist.
16080
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
16082
# If ld is used when linking, flag to hardcode \$libdir into
16083
# a binary during linking. This must work even if \$libdir does
16085
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
16087
# Whether we need a single -rpath flag with a separated argument.
16088
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
16090
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16091
# resulting binary.
16092
hardcode_direct=$hardcode_direct_CXX
16094
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16095
# resulting binary.
16096
hardcode_minus_L=$hardcode_minus_L_CXX
16098
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16099
# the resulting binary.
16100
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
16102
# Set to yes if building a shared library automatically hardcodes DIR into the library
16103
# and all subsequent libraries and executables linked against it.
16104
hardcode_automatic=$hardcode_automatic_CXX
16106
# Variables whose values should be saved in libtool wrapper scripts and
16107
# restored at relink time.
16108
variables_saved_for_relink="$variables_saved_for_relink"
16110
# Whether libtool must link a program against all its dependency libraries.
16111
link_all_deplibs=$link_all_deplibs_CXX
16113
# Compile-time system search path for libraries
16114
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16116
# Run-time system search path for libraries
16117
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16119
# Fix the shell variable \$srcfile for the compiler.
16120
fix_srcfile_path=$lt_fix_srcfile_path
16122
# Set to yes if exported symbols are required.
16123
always_export_symbols=$always_export_symbols_CXX
16125
# The commands to list exported symbols.
16126
export_symbols_cmds=$lt_export_symbols_cmds_CXX
16128
# The commands to extract the exported symbol list from a shared archive.
16129
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16131
# Symbols that should not be listed in the preloaded symbols.
16132
exclude_expsyms=$lt_exclude_expsyms_CXX
16134
# Symbols that must always be exported.
16135
include_expsyms=$lt_include_expsyms_CXX
16137
# ### END LIBTOOL TAG CONFIG: $tagname
16143
# If there is no Makefile yet, we rely on a make rule to execute
16144
# `config.status --recheck' to rerun these tests and create the
16145
# libtool script then.
16146
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16147
if test -f "$ltmain_in"; then
16148
test -f Makefile && make "$ltmain"
16154
ac_cpp='$CPP $CPPFLAGS'
16155
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16156
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16157
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16163
with_gnu_ldcxx=$with_gnu_ld
16164
with_gnu_ld=$lt_save_with_gnu_ld
16165
lt_cv_path_LDCXX=$lt_cv_path_LD
16166
lt_cv_path_LD=$lt_save_path_LD
16167
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16168
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16176
if test -n "$F77" && test "X$F77" != "Xno"; then
16179
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
16180
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16181
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
16184
archive_cmds_need_lc_F77=no
16185
allow_undefined_flag_F77=
16186
always_export_symbols_F77=no
16187
archive_expsym_cmds_F77=
16188
export_dynamic_flag_spec_F77=
16189
hardcode_direct_F77=no
16190
hardcode_libdir_flag_spec_F77=
16191
hardcode_libdir_flag_spec_ld_F77=
16192
hardcode_libdir_separator_F77=
16193
hardcode_minus_L_F77=no
16194
hardcode_automatic_F77=no
16196
module_expsym_cmds_F77=
16197
link_all_deplibs_F77=unknown
16198
old_archive_cmds_F77=$old_archive_cmds
16199
no_undefined_flag_F77=
16200
whole_archive_flag_spec_F77=
16201
enable_shared_with_static_runtimes_F77=no
16203
# Source file extension for f77 test sources.
16206
# Object file extension for compiled f77 test sources.
16210
# Code to be used in simple compile tests
16211
lt_simple_compile_test_code="\
16217
# Code to be used in simple link tests
16218
lt_simple_link_test_code="\
16223
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16225
# If no C compiler was specified, use CC.
16228
# If no C compiler flags were specified, use CFLAGS.
16229
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16231
# Allow CC to be a program name with arguments.
16235
# save warnings/boilerplate of simple test code
16236
ac_outfile=conftest.$ac_objext
16237
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16238
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16239
_lt_compiler_boilerplate=`cat conftest.err`
16242
ac_outfile=conftest.$ac_objext
16243
echo "$lt_simple_link_test_code" >conftest.$ac_ext
16244
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16245
_lt_linker_boilerplate=`cat conftest.err`
16249
# Allow CC to be a program name with arguments.
16254
for cc_temp in $compiler""; do
16256
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16257
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16262
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16265
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
16266
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
16267
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
16268
$as_echo "$can_build_shared" >&6; }
16270
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
16271
$as_echo_n "checking whether to build shared libraries... " >&6; }
16272
test "$can_build_shared" = "no" && enable_shared=no
16274
# On AIX, shared libraries and static libraries use the same namespace, and
16275
# are all built from PIC.
16278
test "$enable_shared" = yes && enable_static=no
16279
if test -n "$RANLIB"; then
16280
archive_cmds="$archive_cmds~\$RANLIB \$lib"
16281
postinstall_cmds='$RANLIB $lib'
16285
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16286
test "$enable_shared" = yes && enable_static=no
16290
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
16291
$as_echo "$enable_shared" >&6; }
16293
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
16294
$as_echo_n "checking whether to build static libraries... " >&6; }
16295
# Make sure either enable_shared or enable_static is yes.
16296
test "$enable_shared" = yes || enable_static=yes
16297
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
16298
$as_echo "$enable_static" >&6; }
16303
lt_prog_compiler_wl_F77=
16304
lt_prog_compiler_pic_F77=
16305
lt_prog_compiler_static_F77=
16307
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16308
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16310
if test "$GCC" = yes; then
16311
lt_prog_compiler_wl_F77='-Wl,'
16312
lt_prog_compiler_static_F77='-static'
16316
# All AIX code is PIC.
16317
if test "$host_cpu" = ia64; then
16318
# AIX 5 now supports IA64 processor
16319
lt_prog_compiler_static_F77='-Bstatic'
16324
# FIXME: we need at least 68020 code to build shared libraries, but
16325
# adding the `-m68020' flag to GCC prevents building anything better,
16327
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
16330
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16331
# PIC is the default for these OSes.
16334
mingw* | cygwin* | pw32* | os2*)
16335
# This hack is so that the source file can tell whether it is being
16336
# built for inclusion in a dll (and should export symbols for example).
16337
# Although the cygwin gcc ignores -fPIC, still need this for old-style
16338
# (--disable-auto-import) libraries
16339
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
16342
darwin* | rhapsody*)
16343
# PIC is the default on this platform
16344
# Common symbols not allowed in MH_DYLIB files
16345
lt_prog_compiler_pic_F77='-fno-common'
16349
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
16350
# Instead, we relocate shared libraries at runtime.
16354
# Just because we use GCC doesn't mean we suddenly get shared libraries
16355
# on systems that don't support them.
16356
lt_prog_compiler_can_build_shared_F77=no
16361
if test -d /usr/nec; then
16362
lt_prog_compiler_pic_F77=-Kconform_pic
16367
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16368
# not for PA HP-UX.
16374
lt_prog_compiler_pic_F77='-fPIC'
16380
lt_prog_compiler_pic_F77='-fPIC'
16384
# PORTME Check for flag to pass linker flags through the system compiler.
16387
lt_prog_compiler_wl_F77='-Wl,'
16388
if test "$host_cpu" = ia64; then
16389
# AIX 5 now supports IA64 processor
16390
lt_prog_compiler_static_F77='-Bstatic'
16392
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
16396
# PIC is the default on this platform
16397
# Common symbols not allowed in MH_DYLIB files
16398
case $cc_basename in
16400
lt_prog_compiler_pic_F77='-qnocommon'
16401
lt_prog_compiler_wl_F77='-Wl,'
16406
mingw* | cygwin* | pw32* | os2*)
16407
# This hack is so that the source file can tell whether it is being
16408
# built for inclusion in a dll (and should export symbols for example).
16409
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
16412
hpux9* | hpux10* | hpux11*)
16413
lt_prog_compiler_wl_F77='-Wl,'
16414
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16415
# not for PA HP-UX.
16421
lt_prog_compiler_pic_F77='+Z'
16424
# Is there a better lt_prog_compiler_static that works with the bundled CC?
16425
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
16428
irix5* | irix6* | nonstopux*)
16429
lt_prog_compiler_wl_F77='-Wl,'
16430
# PIC (with -KPIC) is the default.
16431
lt_prog_compiler_static_F77='-non_shared'
16435
lt_prog_compiler_pic_F77='-KPIC'
16436
lt_prog_compiler_static_F77='-Bstatic'
16439
linux* | k*bsd*-gnu)
16440
case $cc_basename in
16442
lt_prog_compiler_wl_F77='-Wl,'
16443
lt_prog_compiler_pic_F77='-KPIC'
16444
lt_prog_compiler_static_F77='-static'
16446
pgcc* | pgf77* | pgf90* | pgf95*)
16447
# Portland Group compilers (*not* the Pentium gcc compiler,
16448
# which looks to be a dead project)
16449
lt_prog_compiler_wl_F77='-Wl,'
16450
lt_prog_compiler_pic_F77='-fpic'
16451
lt_prog_compiler_static_F77='-Bstatic'
16454
lt_prog_compiler_wl_F77='-Wl,'
16455
# All Alpha code is PIC.
16456
lt_prog_compiler_static_F77='-non_shared'
16459
case `$CC -V 2>&1 | sed 5q` in
16462
lt_prog_compiler_pic_F77='-KPIC'
16463
lt_prog_compiler_static_F77='-Bstatic'
16464
lt_prog_compiler_wl_F77='-Wl,'
16467
# Sun Fortran 8.3 passes all unrecognized flags to the linker
16468
lt_prog_compiler_pic_F77='-KPIC'
16469
lt_prog_compiler_static_F77='-Bstatic'
16470
lt_prog_compiler_wl_F77=''
16477
osf3* | osf4* | osf5*)
16478
lt_prog_compiler_wl_F77='-Wl,'
16479
# All OSF/1 code is PIC.
16480
lt_prog_compiler_static_F77='-non_shared'
16484
lt_prog_compiler_static_F77='-non_shared'
16488
lt_prog_compiler_pic_F77='-KPIC'
16489
lt_prog_compiler_static_F77='-Bstatic'
16490
case $cc_basename in
16491
f77* | f90* | f95*)
16492
lt_prog_compiler_wl_F77='-Qoption ld ';;
16494
lt_prog_compiler_wl_F77='-Wl,';;
16499
lt_prog_compiler_wl_F77='-Qoption ld '
16500
lt_prog_compiler_pic_F77='-PIC'
16501
lt_prog_compiler_static_F77='-Bstatic'
16504
sysv4 | sysv4.2uw2* | sysv4.3*)
16505
lt_prog_compiler_wl_F77='-Wl,'
16506
lt_prog_compiler_pic_F77='-KPIC'
16507
lt_prog_compiler_static_F77='-Bstatic'
16511
if test -d /usr/nec ;then
16512
lt_prog_compiler_pic_F77='-Kconform_pic'
16513
lt_prog_compiler_static_F77='-Bstatic'
16517
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16518
lt_prog_compiler_wl_F77='-Wl,'
16519
lt_prog_compiler_pic_F77='-KPIC'
16520
lt_prog_compiler_static_F77='-Bstatic'
16524
lt_prog_compiler_wl_F77='-Wl,'
16525
lt_prog_compiler_can_build_shared_F77=no
16529
lt_prog_compiler_pic_F77='-pic'
16530
lt_prog_compiler_static_F77='-Bstatic'
16534
lt_prog_compiler_can_build_shared_F77=no
16539
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
16540
$as_echo "$lt_prog_compiler_pic_F77" >&6; }
16543
# Check to make sure the PIC flag actually works.
16545
if test -n "$lt_prog_compiler_pic_F77"; then
16547
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
16548
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
16549
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
16550
$as_echo_n "(cached) " >&6
16552
lt_cv_prog_compiler_pic_works_F77=no
16553
ac_outfile=conftest.$ac_objext
16554
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16555
lt_compiler_flag="$lt_prog_compiler_pic_F77"
16556
# Insert the option either (1) after the last *FLAGS variable, or
16557
# (2) before a word containing "conftest.", or (3) at the end.
16558
# Note that $ac_compile itself does not contain backslashes and begins
16559
# with a dollar sign (not a hyphen), so the echo should work correctly.
16560
# The option is referenced via a variable to avoid confusing sed.
16561
lt_compile=`echo "$ac_compile" | $SED \
16562
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16563
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16564
-e 's:$: $lt_compiler_flag:'`
16565
(eval echo "\"\$as_me:16565: $lt_compile\"" >&5)
16566
(eval "$lt_compile" 2>conftest.err)
16568
cat conftest.err >&5
16569
echo "$as_me:16569: \$? = $ac_status" >&5
16570
if (exit $ac_status) && test -s "$ac_outfile"; then
16571
# The compiler can only warn and ignore the option if not recognized
16572
# So say no if there are warnings other than the usual output.
16573
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16574
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16575
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16576
lt_cv_prog_compiler_pic_works_F77=yes
16582
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
16583
$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
16585
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
16586
case $lt_prog_compiler_pic_F77 in
16588
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
16591
lt_prog_compiler_pic_F77=
16592
lt_prog_compiler_can_build_shared_F77=no
16597
# For platforms which do not support PIC, -DPIC is meaningless:
16599
lt_prog_compiler_pic_F77=
16602
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
16607
# Check to make sure the static flag actually works.
16609
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
16610
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16611
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16612
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
16613
$as_echo_n "(cached) " >&6
16615
lt_cv_prog_compiler_static_works_F77=no
16616
save_LDFLAGS="$LDFLAGS"
16617
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16618
echo "$lt_simple_link_test_code" > conftest.$ac_ext
16619
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16620
# The linker can only warn and ignore the option if not recognized
16621
# So say no if there are warnings
16622
if test -s conftest.err; then
16623
# Append any errors to the config.log.
16624
cat conftest.err 1>&5
16625
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16626
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16627
if diff conftest.exp conftest.er2 >/dev/null; then
16628
lt_cv_prog_compiler_static_works_F77=yes
16631
lt_cv_prog_compiler_static_works_F77=yes
16635
LDFLAGS="$save_LDFLAGS"
16638
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
16639
$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
16641
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
16644
lt_prog_compiler_static_F77=
16648
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16649
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16650
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
16651
$as_echo_n "(cached) " >&6
16653
lt_cv_prog_compiler_c_o_F77=no
16654
$rm -r conftest 2>/dev/null
16658
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16660
lt_compiler_flag="-o out/conftest2.$ac_objext"
16661
# Insert the option either (1) after the last *FLAGS variable, or
16662
# (2) before a word containing "conftest.", or (3) at the end.
16663
# Note that $ac_compile itself does not contain backslashes and begins
16664
# with a dollar sign (not a hyphen), so the echo should work correctly.
16665
lt_compile=`echo "$ac_compile" | $SED \
16666
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16667
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16668
-e 's:$: $lt_compiler_flag:'`
16669
(eval echo "\"\$as_me:16669: $lt_compile\"" >&5)
16670
(eval "$lt_compile" 2>out/conftest.err)
16672
cat out/conftest.err >&5
16673
echo "$as_me:16673: \$? = $ac_status" >&5
16674
if (exit $ac_status) && test -s out/conftest2.$ac_objext
16676
# The compiler can only warn and ignore the option if not recognized
16677
# So say no if there are warnings
16678
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16679
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16680
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16681
lt_cv_prog_compiler_c_o_F77=yes
16686
# SGI C++ compiler will create directory out/ii_files/ for
16687
# template instantiation
16688
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16689
$rm out/* && rmdir out
16695
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
16696
$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
16699
hard_links="nottested"
16700
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
16701
# do not overwrite the value of need_locks provided by the user
16702
{ $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16703
$as_echo_n "checking if we can lock with hard links... " >&6; }
16706
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16708
ln conftest.a conftest.b 2>&5 || hard_links=no
16709
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16710
{ $as_echo "$as_me:$LINENO: result: $hard_links" >&5
16711
$as_echo "$hard_links" >&6; }
16712
if test "$hard_links" = no; then
16713
{ $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16714
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16721
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16722
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16725
allow_undefined_flag_F77=
16726
enable_shared_with_static_runtimes_F77=no
16728
archive_expsym_cmds_F77=
16729
old_archive_From_new_cmds_F77=
16730
old_archive_from_expsyms_cmds_F77=
16731
export_dynamic_flag_spec_F77=
16732
whole_archive_flag_spec_F77=
16733
thread_safe_flag_spec_F77=
16734
hardcode_libdir_flag_spec_F77=
16735
hardcode_libdir_flag_spec_ld_F77=
16736
hardcode_libdir_separator_F77=
16737
hardcode_direct_F77=no
16738
hardcode_minus_L_F77=no
16739
hardcode_shlibpath_var_F77=unsupported
16740
link_all_deplibs_F77=unknown
16741
hardcode_automatic_F77=no
16743
module_expsym_cmds_F77=
16744
always_export_symbols_F77=no
16745
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16746
# include_expsyms should be a list of space-separated symbols to be *always*
16747
# included in the symbol list
16748
include_expsyms_F77=
16749
# exclude_expsyms can be an extended regexp of symbols to exclude
16750
# it will be wrapped by ` (' and `)$', so one must not match beginning or
16751
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16752
# as well as any symbol that contains `d'.
16753
exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16754
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16755
# platforms (ab)use it in PIC code, but their linkers get confused if
16756
# the symbol is explicitly referenced. Since portable code cannot
16757
# rely on this symbol name, it's probably fine to never include it in
16758
# preloaded symbol tables.
16759
# Exclude shared library initialization/finalization symbols.
16760
extract_expsyms_cmds=
16761
# Just being paranoid about ensuring that cc_basename is set.
16762
for cc_temp in $compiler""; do
16764
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16765
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16770
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16773
cygwin* | mingw* | pw32*)
16774
# FIXME: the MSVC++ port hasn't been tested in a loooong time
16775
# When not using gcc, we currently assume that we are using
16776
# Microsoft Visual C++.
16777
if test "$GCC" != yes; then
16782
# we just hope/assume this is gcc and not c89 (= MSVC++)
16791
if test "$with_gnu_ld" = yes; then
16792
# If archive_cmds runs LD, not CC, wlarc should be empty
16795
# Set some defaults for GNU ld with shared library support. These
16796
# are reset later if shared libraries are not supported. Putting them
16797
# here allows them to be overridden if necessary.
16798
runpath_var=LD_RUN_PATH
16799
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
16800
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
16801
# ancient GNU ld didn't support --whole-archive et. al.
16802
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16803
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16805
whole_archive_flag_spec_F77=
16807
supports_anon_versioning=no
16808
case `$LD -v 2>/dev/null` in
16809
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16810
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16811
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16812
*\ 2.11.*) ;; # other 2.11 versions
16813
*) supports_anon_versioning=yes ;;
16816
# See if GNU ld supports shared libraries.
16819
# On AIX/PPC, the GNU linker is very broken
16820
if test "$host_cpu" != ia64; then
16824
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16825
*** to be unable to reliably create shared libraries on AIX.
16826
*** Therefore, libtool is disabling shared libraries support. If you
16827
*** really care for shared libraries, you may want to modify your PATH
16828
*** so that a non-GNU linker is found, and then restart.
16835
archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16836
hardcode_libdir_flag_spec_F77='-L$libdir'
16837
hardcode_minus_L_F77=yes
16839
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16840
# that the semantics of dynamic libraries on AmigaOS, at least up
16841
# to version 4, is to share data among multiple programs linked
16842
# with the same dynamic library. Since this doesn't match the
16843
# behavior of shared libraries on other platforms, we can't use
16849
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16850
allow_undefined_flag_F77=unsupported
16851
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16852
# support --undefined. This deserves some investigation. FIXME
16853
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16859
cygwin* | mingw* | pw32*)
16860
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16861
# as there is no search path for DLLs.
16862
hardcode_libdir_flag_spec_F77='-L$libdir'
16863
allow_undefined_flag_F77=unsupported
16864
always_export_symbols_F77=no
16865
enable_shared_with_static_runtimes_F77=yes
16866
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16868
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16869
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16870
# If the export-symbols file already is a .def file (1st line
16871
# is EXPORTS), use it as is; otherwise, prepend...
16872
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16873
cp $export_symbols $output_objdir/$soname.def;
16875
echo EXPORTS > $output_objdir/$soname.def;
16876
cat $export_symbols >> $output_objdir/$soname.def;
16878
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16885
hardcode_direct_F77=no
16886
hardcode_shlibpath_var_F77=no
16887
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16888
export_dynamic_flag_spec_F77='${wl}-E'
16889
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16890
# Instead, shared libraries are loaded at an image base (0x10000000 by
16891
# default) and relocated if they conflict, which is a slow very memory
16892
# consuming and fragmenting process. To avoid this, we pick a random,
16893
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16894
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
16895
archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16896
archive_expsym_cmds_F77='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'
16899
gnu* | linux* | k*bsd*-gnu)
16900
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16902
case $cc_basename,$host_cpu in
16903
pgcc*) # Portland Group C compiler
16904
whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16905
tmp_addflag=' $pic_flag'
16907
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16908
whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16909
tmp_addflag=' $pic_flag -Mnomain' ;;
16910
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16911
tmp_addflag=' -i_dynamic' ;;
16912
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16913
tmp_addflag=' -i_dynamic -nofor_main' ;;
16914
ifc* | ifort*) # Intel Fortran compiler
16915
tmp_addflag=' -nofor_main' ;;
16917
case `$CC -V 2>&1 | sed 5q` in
16918
*Sun\ C*) # Sun C 5.9
16919
whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16920
tmp_sharedflag='-G' ;;
16921
*Sun\ F*) # Sun Fortran 8.3
16922
tmp_sharedflag='-G' ;;
16924
tmp_sharedflag='-shared' ;;
16926
archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16928
if test $supports_anon_versioning = yes; then
16929
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16930
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16931
$echo "local: *; };" >> $output_objdir/$libname.ver~
16932
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16940
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16941
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16944
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16945
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16950
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16954
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16955
*** create shared libraries on Solaris systems. Therefore, libtool
16956
*** is disabling shared libraries support. We urge you to upgrade GNU
16957
*** binutils to release 2.9.1 or newer. Another option is to modify
16958
*** your PATH or compiler configuration so that the native linker is
16959
*** used, and then restart.
16962
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16963
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16964
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16970
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16971
case `$LD -v 2>&1` in
16972
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16976
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16977
*** reliably create shared libraries on SCO systems. Therefore, libtool
16978
*** is disabling shared libraries support. We urge you to upgrade GNU
16979
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16980
*** your PATH or compiler configuration so that the native linker is
16981
*** used, and then restart.
16986
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16987
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16988
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16989
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16998
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17000
hardcode_direct_F77=yes
17001
hardcode_shlibpath_var_F77=no
17005
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17006
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17007
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17014
if test "$ld_shlibs_F77" = no; then
17016
hardcode_libdir_flag_spec_F77=
17017
export_dynamic_flag_spec_F77=
17018
whole_archive_flag_spec_F77=
17021
# PORTME fill in a description of your system's linker (not GNU ld)
17024
allow_undefined_flag_F77=unsupported
17025
always_export_symbols_F77=yes
17026
archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17027
# Note: this linker hardcodes the directories in LIBPATH if there
17028
# are no directories specified by -L.
17029
hardcode_minus_L_F77=yes
17030
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17031
# Neither direct hardcoding nor static linking is supported with a
17033
hardcode_direct_F77=unsupported
17038
if test "$host_cpu" = ia64; then
17039
# On IA64, the linker does run time linking by default, so we don't
17040
# have to do anything special.
17041
aix_use_runtimelinking=no
17042
exp_sym_flag='-Bexport'
17045
# If we're using GNU nm, then we don't want the "-C" option.
17046
# -C means demangle to AIX nm, but means don't demangle with GNU nm
17047
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17048
export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17050
export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17052
aix_use_runtimelinking=no
17054
# Test if we are trying to use run time linking or normal
17055
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17056
# need to do runtime linking.
17057
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17058
for ld_flag in $LDFLAGS; do
17059
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17060
aix_use_runtimelinking=yes
17067
exp_sym_flag='-bexport'
17068
no_entry_flag='-bnoentry'
17071
# When large executables or shared objects are built, AIX ld can
17072
# have problems creating the table of contents. If linking a library
17073
# or program results in "error TOC overflow" add -mminimal-toc to
17074
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17075
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17077
archive_cmds_F77=''
17078
hardcode_direct_F77=yes
17079
hardcode_libdir_separator_F77=':'
17080
link_all_deplibs_F77=yes
17082
if test "$GCC" = yes; then
17083
case $host_os in aix4.[012]|aix4.[012].*)
17084
# We only want to do this on AIX 4.2 and lower, the check
17085
# below for broken collect2 doesn't work under 4.3+
17086
collect2name=`${CC} -print-prog-name=collect2`
17087
if test -f "$collect2name" && \
17088
strings "$collect2name" | grep resolve_lib_name >/dev/null
17090
# We have reworked collect2
17093
# We have old collect2
17094
hardcode_direct_F77=unsupported
17095
# It fails to find uninstalled libraries when the uninstalled
17096
# path is not listed in the libpath. Setting hardcode_minus_L
17097
# to unsupported forces relinking
17098
hardcode_minus_L_F77=yes
17099
hardcode_libdir_flag_spec_F77='-L$libdir'
17100
hardcode_libdir_separator_F77=
17104
shared_flag='-shared'
17105
if test "$aix_use_runtimelinking" = yes; then
17106
shared_flag="$shared_flag "'${wl}-G'
17110
if test "$host_cpu" = ia64; then
17111
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17112
# chokes on -Wl,-G. The following line is correct:
17115
if test "$aix_use_runtimelinking" = yes; then
17116
shared_flag='${wl}-G'
17118
shared_flag='${wl}-bM:SRE'
17123
# It seems that -bexpall does not export symbols beginning with
17124
# underscore (_), so it is better to generate a list of symbols to export.
17125
always_export_symbols_F77=yes
17126
if test "$aix_use_runtimelinking" = yes; then
17127
# Warning - without using the other runtime loading flags (-brtl),
17128
# -berok will link without error, but may produce a broken library.
17129
allow_undefined_flag_F77='-berok'
17130
# Determine the default libpath from the value encoded in an empty executable.
17131
cat >conftest.$ac_ext <<_ACEOF
17136
rm -f conftest.$ac_objext conftest$ac_exeext
17137
if { (ac_try="$ac_link"
17138
case "(($ac_try" in
17139
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17140
*) ac_try_echo=$ac_try;;
17142
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17143
$as_echo "$ac_try_echo") >&5
17144
(eval "$ac_link") 2>conftest.er1
17146
grep -v '^ *+' conftest.er1 >conftest.err
17148
cat conftest.err >&5
17149
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17150
(exit $ac_status); } && {
17151
test -z "$ac_f77_werror_flag" ||
17152
test ! -s conftest.err
17153
} && test -s conftest$ac_exeext && {
17154
test "$cross_compiling" = yes ||
17155
$as_test_x conftest$ac_exeext
17158
lt_aix_libpath_sed='
17159
/Import File Strings/,/^$/ {
17165
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17166
# Check for a 64-bit object if we didn't find anything.
17167
if test -z "$aix_libpath"; then
17168
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17171
$as_echo "$as_me: failed program was:" >&5
17172
sed 's/^/| /' conftest.$ac_ext >&5
17177
rm -rf conftest.dSYM
17178
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17179
conftest$ac_exeext conftest.$ac_ext
17180
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17182
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
17183
archive_expsym_cmds_F77="\$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"
17185
if test "$host_cpu" = ia64; then
17186
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
17187
allow_undefined_flag_F77="-z nodefs"
17188
archive_expsym_cmds_F77="\$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"
17190
# Determine the default libpath from the value encoded in an empty executable.
17191
cat >conftest.$ac_ext <<_ACEOF
17196
rm -f conftest.$ac_objext conftest$ac_exeext
17197
if { (ac_try="$ac_link"
17198
case "(($ac_try" in
17199
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17200
*) ac_try_echo=$ac_try;;
17202
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17203
$as_echo "$ac_try_echo") >&5
17204
(eval "$ac_link") 2>conftest.er1
17206
grep -v '^ *+' conftest.er1 >conftest.err
17208
cat conftest.err >&5
17209
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17210
(exit $ac_status); } && {
17211
test -z "$ac_f77_werror_flag" ||
17212
test ! -s conftest.err
17213
} && test -s conftest$ac_exeext && {
17214
test "$cross_compiling" = yes ||
17215
$as_test_x conftest$ac_exeext
17218
lt_aix_libpath_sed='
17219
/Import File Strings/,/^$/ {
17225
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17226
# Check for a 64-bit object if we didn't find anything.
17227
if test -z "$aix_libpath"; then
17228
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17231
$as_echo "$as_me: failed program was:" >&5
17232
sed 's/^/| /' conftest.$ac_ext >&5
17237
rm -rf conftest.dSYM
17238
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17239
conftest$ac_exeext conftest.$ac_ext
17240
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17242
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
17243
# Warning - without using the other run time loading flags,
17244
# -berok will link without error, but may produce a broken library.
17245
no_undefined_flag_F77=' ${wl}-bernotok'
17246
allow_undefined_flag_F77=' ${wl}-berok'
17247
# Exported symbols can be pulled into shared objects from archives
17248
whole_archive_flag_spec_F77='$convenience'
17249
archive_cmds_need_lc_F77=yes
17250
# This is similar to how AIX traditionally builds its shared libraries.
17251
archive_expsym_cmds_F77="\$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'
17257
archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17258
hardcode_libdir_flag_spec_F77='-L$libdir'
17259
hardcode_minus_L_F77=yes
17260
# see comment about different semantics on the GNU ld section
17265
export_dynamic_flag_spec_F77=-rdynamic
17268
cygwin* | mingw* | pw32*)
17269
# When not using gcc, we currently assume that we are using
17270
# Microsoft Visual C++.
17271
# hardcode_libdir_flag_spec is actually meaningless, as there is
17272
# no search path for DLLs.
17273
hardcode_libdir_flag_spec_F77=' '
17274
allow_undefined_flag_F77=unsupported
17275
# Tell ltmain to make .lib files, not .a files.
17277
# Tell ltmain to make .dll files, not .so files.
17279
# FIXME: Setting linknames here is a bad hack.
17280
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17281
# The linker will automatically build a .lib file if we build a DLL.
17282
old_archive_From_new_cmds_F77='true'
17283
# FIXME: Should let the user specify the lib program.
17284
old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
17285
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
17286
enable_shared_with_static_runtimes_F77=yes
17289
darwin* | rhapsody*)
17291
rhapsody* | darwin1.[012])
17292
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
17295
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17296
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17298
case ${MACOSX_DEPLOYMENT_TARGET} in
17300
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17303
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
17309
archive_cmds_need_lc_F77=no
17310
hardcode_direct_F77=no
17311
hardcode_automatic_F77=yes
17312
hardcode_shlibpath_var_F77=unsupported
17313
whole_archive_flag_spec_F77=''
17314
link_all_deplibs_F77=yes
17315
if test "$GCC" = yes ; then
17316
output_verbose_link_cmd='echo'
17317
archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17318
module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17319
archive_expsym_cmds_F77="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}"
17320
module_expsym_cmds_F77="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}"
17322
case $cc_basename in
17324
output_verbose_link_cmd='echo'
17325
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17326
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17327
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17328
archive_expsym_cmds_F77='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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17329
module_expsym_cmds_F77='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}'
17339
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17340
hardcode_libdir_flag_spec_F77='-L$libdir'
17341
hardcode_shlibpath_var_F77=no
17348
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17349
# support. Future versions do this automatically, but an explicit c++rt0.o
17350
# does not break anything, and helps significantly (at the cost of a little
17353
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17354
hardcode_libdir_flag_spec_F77='-R$libdir'
17355
hardcode_direct_F77=yes
17356
hardcode_shlibpath_var_F77=no
17359
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
17361
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17362
hardcode_direct_F77=yes
17363
hardcode_minus_L_F77=yes
17364
hardcode_shlibpath_var_F77=no
17367
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17368
freebsd* | dragonfly*)
17369
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17370
hardcode_libdir_flag_spec_F77='-R$libdir'
17371
hardcode_direct_F77=yes
17372
hardcode_shlibpath_var_F77=no
17376
if test "$GCC" = yes; then
17377
archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17379
archive_cmds_F77='$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'
17381
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17382
hardcode_libdir_separator_F77=:
17383
hardcode_direct_F77=yes
17385
# hardcode_minus_L: Not really in the search PATH,
17386
# but as the default location of the library.
17387
hardcode_minus_L_F77=yes
17388
export_dynamic_flag_spec_F77='${wl}-E'
17392
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17393
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17395
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17397
if test "$with_gnu_ld" = no; then
17398
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17399
hardcode_libdir_separator_F77=:
17401
hardcode_direct_F77=yes
17402
export_dynamic_flag_spec_F77='${wl}-E'
17404
# hardcode_minus_L: Not really in the search PATH,
17405
# but as the default location of the library.
17406
hardcode_minus_L_F77=yes
17411
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17414
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17417
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17420
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17426
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17429
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17432
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17436
if test "$with_gnu_ld" = no; then
17437
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17438
hardcode_libdir_separator_F77=:
17442
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
17443
hardcode_direct_F77=no
17444
hardcode_shlibpath_var_F77=no
17447
hardcode_direct_F77=yes
17448
export_dynamic_flag_spec_F77='${wl}-E'
17450
# hardcode_minus_L: Not really in the search PATH,
17451
# but as the default location of the library.
17452
hardcode_minus_L_F77=yes
17458
irix5* | irix6* | nonstopux*)
17459
if test "$GCC" = yes; then
17460
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17462
archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17463
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
17465
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17466
hardcode_libdir_separator_F77=:
17467
link_all_deplibs_F77=yes
17471
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17472
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17474
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17476
hardcode_libdir_flag_spec_F77='-R$libdir'
17477
hardcode_direct_F77=yes
17478
hardcode_shlibpath_var_F77=no
17482
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17483
hardcode_direct_F77=yes
17484
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17485
hardcode_libdir_separator_F77=:
17486
hardcode_shlibpath_var_F77=no
17490
if test -f /usr/libexec/ld.so; then
17491
hardcode_direct_F77=yes
17492
hardcode_shlibpath_var_F77=no
17493
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17494
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17495
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17496
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17497
export_dynamic_flag_spec_F77='${wl}-E'
17500
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17501
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17502
hardcode_libdir_flag_spec_F77='-R$libdir'
17505
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17506
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17516
hardcode_libdir_flag_spec_F77='-L$libdir'
17517
hardcode_minus_L_F77=yes
17518
allow_undefined_flag_F77=unsupported
17519
archive_cmds_F77='$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'
17520
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17524
if test "$GCC" = yes; then
17525
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
17526
archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17528
allow_undefined_flag_F77=' -expect_unresolved \*'
17529
archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17531
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17532
hardcode_libdir_separator_F77=:
17535
osf4* | osf5*) # as osf3* with the addition of -msym flag
17536
if test "$GCC" = yes; then
17537
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
17538
archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17539
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17541
allow_undefined_flag_F77=' -expect_unresolved \*'
17542
archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17543
archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17544
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17546
# Both c and cxx compiler support -rpath directly
17547
hardcode_libdir_flag_spec_F77='-rpath $libdir'
17549
hardcode_libdir_separator_F77=:
17553
no_undefined_flag_F77=' -z text'
17554
if test "$GCC" = yes; then
17556
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17557
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17558
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17561
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17562
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17563
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17565
hardcode_libdir_flag_spec_F77='-R$libdir'
17566
hardcode_shlibpath_var_F77=no
17568
solaris2.[0-5] | solaris2.[0-5].*) ;;
17570
# The compiler driver will combine and reorder linker options,
17571
# but understands `-z linker_flag'. GCC discards it without `$wl',
17572
# but is careful enough not to reorder.
17573
# Supported since Solaris 2.6 (maybe 2.5.1?)
17574
if test "$GCC" = yes; then
17575
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17577
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
17581
link_all_deplibs_F77=yes
17585
if test "x$host_vendor" = xsequent; then
17586
# Use $CC to link under sequent, because it throws in some extra .o
17587
# files that make .init and .fini sections work.
17588
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17590
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17592
hardcode_libdir_flag_spec_F77='-L$libdir'
17593
hardcode_direct_F77=yes
17594
hardcode_minus_L_F77=yes
17595
hardcode_shlibpath_var_F77=no
17599
case $host_vendor in
17601
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17602
hardcode_direct_F77=yes # is this really true???
17605
## LD is ld it makes a PLAMLIB
17606
## CC just makes a GrossModule.
17607
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17608
reload_cmds_F77='$CC -r -o $output$reload_objs'
17609
hardcode_direct_F77=no
17612
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17613
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
17616
runpath_var='LD_RUN_PATH'
17617
hardcode_shlibpath_var_F77=no
17621
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17622
hardcode_shlibpath_var_F77=no
17623
export_dynamic_flag_spec_F77='-Bexport'
17627
if test -d /usr/nec; then
17628
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17629
hardcode_shlibpath_var_F77=no
17630
runpath_var=LD_RUN_PATH
17631
hardcode_runpath_var=yes
17636
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17637
no_undefined_flag_F77='${wl}-z,text'
17638
archive_cmds_need_lc_F77=no
17639
hardcode_shlibpath_var_F77=no
17640
runpath_var='LD_RUN_PATH'
17642
if test "$GCC" = yes; then
17643
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17644
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17646
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17647
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17651
sysv5* | sco3.2v5* | sco5v6*)
17652
# Note: We can NOT use -z defs as we might desire, because we do not
17653
# link with -lc, and that would cause any symbols used from libc to
17654
# always be unresolved, which means just about no library would
17655
# ever link correctly. If we're not using GNU ld we use -z text
17656
# though, which does catch some bad symbols but isn't as heavy-handed
17658
no_undefined_flag_F77='${wl}-z,text'
17659
allow_undefined_flag_F77='${wl}-z,nodefs'
17660
archive_cmds_need_lc_F77=no
17661
hardcode_shlibpath_var_F77=no
17662
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17663
hardcode_libdir_separator_F77=':'
17664
link_all_deplibs_F77=yes
17665
export_dynamic_flag_spec_F77='${wl}-Bexport'
17666
runpath_var='LD_RUN_PATH'
17668
if test "$GCC" = yes; then
17669
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17670
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17672
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17673
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17678
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17679
hardcode_libdir_flag_spec_F77='-L$libdir'
17680
hardcode_shlibpath_var_F77=no
17689
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
17690
$as_echo "$ld_shlibs_F77" >&6; }
17691
test "$ld_shlibs_F77" = no && can_build_shared=no
17694
# Do we need to explicitly link libc?
17696
case "x$archive_cmds_need_lc_F77" in
17698
# Assume -lc should be added
17699
archive_cmds_need_lc_F77=yes
17701
if test "$enable_shared" = yes && test "$GCC" = yes; then
17702
case $archive_cmds_F77 in
17704
# FIXME: we may have to deal with multi-command sequences.
17707
# Test whether the compiler implicitly links with -lc since on some
17708
# systems, -lgcc has to come before -lc. If gcc already passes -lc
17709
# to ld, don't add -lc before -lgcc.
17710
{ $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17711
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17713
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17715
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17716
(eval $ac_compile) 2>&5
17718
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719
(exit $ac_status); } 2>conftest.err; then
17722
libobjs=conftest.$ac_objext
17724
wl=$lt_prog_compiler_wl_F77
17725
pic_flag=$lt_prog_compiler_pic_F77
17731
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
17732
allow_undefined_flag_F77=
17733
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17734
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17736
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737
(exit $ac_status); }
17739
archive_cmds_need_lc_F77=no
17741
archive_cmds_need_lc_F77=yes
17743
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
17745
cat conftest.err 1>&5
17748
{ $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
17749
$as_echo "$archive_cmds_need_lc_F77" >&6; }
17756
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17757
$as_echo_n "checking dynamic linker characteristics... " >&6; }
17758
library_names_spec=
17759
libname_spec='lib$name'
17763
postuninstall_cmds=
17767
shlibpath_overrides_runpath=unknown
17769
dynamic_linker="$host_os ld.so"
17770
sys_lib_dlsearch_path_spec="/lib /usr/lib"
17772
need_lib_prefix=unknown
17773
hardcode_into_libs=no
17775
# when you set need_version to no, make sure it does not cause -set_version
17776
# flags to be left without arguments
17777
need_version=unknown
17782
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17783
shlibpath_var=LIBPATH
17785
# AIX 3 has no versioning support, so we append a major version to the name.
17786
soname_spec='${libname}${release}${shared_ext}$major'
17793
hardcode_into_libs=yes
17794
if test "$host_cpu" = ia64; then
17795
# AIX 5 supports IA64
17796
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17797
shlibpath_var=LD_LIBRARY_PATH
17799
# With GCC up to 2.95.x, collect2 would create an import file
17800
# for dependence libraries. The import file would start with
17801
# the line `#! .'. This would cause the generated library to
17802
# depend on `.', always an invalid library. This was fixed in
17803
# development snapshots of GCC prior to 3.0.
17805
aix4 | aix4.[01] | aix4.[01].*)
17806
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17808
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17811
can_build_shared=no
17815
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17816
# soname into executable. Probably we can add versioning support to
17817
# collect2, so additional links can be useful in future.
17818
if test "$aix_use_runtimelinking" = yes; then
17819
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
17820
# instead of lib<name>.a to let people know that these are not
17821
# typical AIX shared libraries.
17822
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17824
# We preserve .a as extension for shared libraries through AIX4.2
17825
# and later when we are not doing run time linking.
17826
library_names_spec='${libname}${release}.a $libname.a'
17827
soname_spec='${libname}${release}${shared_ext}$major'
17829
shlibpath_var=LIBPATH
17834
library_names_spec='$libname.ixlibrary $libname.a'
17835
# Create ${libname}_ixlibrary.a entries in /sys/libs.
17836
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
17840
library_names_spec='${libname}${shared_ext}'
17841
dynamic_linker="$host_os ld.so"
17842
shlibpath_var=LIBRARY_PATH
17848
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17849
soname_spec='${libname}${release}${shared_ext}$major'
17850
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17851
shlibpath_var=LD_LIBRARY_PATH
17852
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17853
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17854
# the default ld.so.conf also contains /usr/contrib/lib and
17855
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17856
# libtool to hard-code these into programs
17859
cygwin* | mingw* | pw32*)
17860
version_type=windows
17865
case $GCC,$host_os in
17866
yes,cygwin* | yes,mingw* | yes,pw32*)
17867
library_names_spec='$libname.dll.a'
17868
# DLL is installed to $(libdir)/../bin by postinstall_cmds
17869
postinstall_cmds='base_file=`basename \${file}`~
17870
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17871
dldir=$destdir/`dirname \$dlpath`~
17872
test -d \$dldir || mkdir -p \$dldir~
17873
$install_prog $dir/$dlname \$dldir/$dlname~
17874
chmod a+x \$dldir/$dlname'
17875
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17876
dlpath=$dir/\$dldll~
17878
shlibpath_overrides_runpath=yes
17882
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
17883
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17884
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17887
# MinGW DLLs use traditional 'lib' prefix
17888
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17889
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17890
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17891
# It is most probably a Windows format PATH printed by
17892
# mingw gcc, but we are running on Cygwin. Gcc prints its search
17893
# path with ; separators, and with drive letters. We can handle the
17894
# drive letters (cygwin fileutils understands them), so leave them,
17895
# especially as we might pass files found there to a mingw objdump,
17896
# which wouldn't understand a cygwinified path. Ahh.
17897
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17899
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17903
# pw32 DLLs use 'pw' prefix rather than 'lib'
17904
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17910
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17913
dynamic_linker='Win32 ld.exe'
17914
# FIXME: first we should search . and the directory the executable is in
17918
darwin* | rhapsody*)
17919
dynamic_linker="$host_os dyld"
17920
version_type=darwin
17923
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17924
soname_spec='${libname}${release}${major}$shared_ext'
17925
shlibpath_overrides_runpath=yes
17926
shlibpath_var=DYLD_LIBRARY_PATH
17927
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17929
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17936
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17937
soname_spec='${libname}${release}${shared_ext}$major'
17938
shlibpath_var=LD_LIBRARY_PATH
17945
freebsd* | dragonfly*)
17946
# DragonFly does not have aout. When/if they implement a new
17947
# versioning mechanism, adjust this.
17948
if test -x /usr/bin/objformat; then
17949
objformat=`/usr/bin/objformat`
17952
freebsd[123]*) objformat=aout ;;
17953
*) objformat=elf ;;
17956
version_type=freebsd-$objformat
17957
case $version_type in
17959
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17964
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17968
shlibpath_var=LD_LIBRARY_PATH
17971
shlibpath_overrides_runpath=yes
17973
freebsd3.[01]* | freebsdelf3.[01]*)
17974
shlibpath_overrides_runpath=yes
17975
hardcode_into_libs=yes
17977
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17978
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17979
shlibpath_overrides_runpath=no
17980
hardcode_into_libs=yes
17982
*) # from 4.6 on, and DragonFly
17983
shlibpath_overrides_runpath=yes
17984
hardcode_into_libs=yes
17993
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17994
soname_spec='${libname}${release}${shared_ext}$major'
17995
shlibpath_var=LD_LIBRARY_PATH
17996
hardcode_into_libs=yes
17999
hpux9* | hpux10* | hpux11*)
18000
# Give a soname corresponding to the major version so that dld.sl refuses to
18001
# link against other versions.
18008
hardcode_into_libs=yes
18009
dynamic_linker="$host_os dld.so"
18010
shlibpath_var=LD_LIBRARY_PATH
18011
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18012
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18013
soname_spec='${libname}${release}${shared_ext}$major'
18014
if test "X$HPUX_IA64_MODE" = X32; then
18015
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18017
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18019
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18023
hardcode_into_libs=yes
18024
dynamic_linker="$host_os dld.sl"
18025
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18026
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18027
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18028
soname_spec='${libname}${release}${shared_ext}$major'
18029
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18030
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18034
dynamic_linker="$host_os dld.sl"
18035
shlibpath_var=SHLIB_PATH
18036
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18037
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18038
soname_spec='${libname}${release}${shared_ext}$major'
18041
# HP-UX runs *really* slowly unless shared libraries are mode 555.
18042
postinstall_cmds='chmod 555 $lib'
18049
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18050
soname_spec='${libname}${release}${shared_ext}$major'
18051
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18052
shlibpath_var=LD_LIBRARY_PATH
18053
shlibpath_overrides_runpath=no
18054
hardcode_into_libs=yes
18057
irix5* | irix6* | nonstopux*)
18059
nonstopux*) version_type=nonstopux ;;
18061
if test "$lt_cv_prog_gnu_ld" = yes; then
18069
soname_spec='${libname}${release}${shared_ext}$major'
18070
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18072
irix5* | nonstopux*)
18073
libsuff= shlibsuff=
18076
case $LD in # libtool.m4 will add one of these switches to LD
18077
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18078
libsuff= shlibsuff= libmagic=32-bit;;
18079
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18080
libsuff=32 shlibsuff=N32 libmagic=N32;;
18081
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18082
libsuff=64 shlibsuff=64 libmagic=64-bit;;
18083
*) libsuff= shlibsuff= libmagic=never-match;;
18087
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18088
shlibpath_overrides_runpath=no
18089
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18090
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18091
hardcode_into_libs=yes
18094
# No shared lib support for Linux oldld, aout, or coff.
18095
linux*oldld* | linux*aout* | linux*coff*)
18099
# This must be Linux ELF.
18100
linux* | k*bsd*-gnu)
18104
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18105
soname_spec='${libname}${release}${shared_ext}$major'
18106
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18107
shlibpath_var=LD_LIBRARY_PATH
18108
shlibpath_overrides_runpath=no
18109
# This implies no fast_install, which is unacceptable.
18110
# Some rework will be needed to allow for fast_install
18111
# before this can be enabled.
18112
hardcode_into_libs=yes
18113
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18114
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18116
# Append ld.so.conf contents to the search path
18117
if test -f /etc/ld.so.conf; then
18118
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18119
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18122
# We used to test for /lib/ld.so.1 and disable shared libraries on
18123
# powerpc, because MkLinux only supported shared libraries with the
18124
# GNU dynamic linker. Since this was broken with cross compilers,
18125
# most powerpc-linux boxes support dynamic linking these days and
18126
# people can always --disable-shared, the test was removed, and we
18127
# assume the GNU/Linux dynamic linker is in use.
18128
dynamic_linker='GNU/Linux ld.so'
18135
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18136
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18137
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18138
dynamic_linker='NetBSD (a.out) ld.so'
18140
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18141
soname_spec='${libname}${release}${shared_ext}$major'
18142
dynamic_linker='NetBSD ld.elf_so'
18144
shlibpath_var=LD_LIBRARY_PATH
18145
shlibpath_overrides_runpath=yes
18146
hardcode_into_libs=yes
18151
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18152
shlibpath_var=LD_LIBRARY_PATH
18153
shlibpath_overrides_runpath=yes
18160
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18161
soname_spec='${libname}${release}${shared_ext}$major'
18162
shlibpath_var=LD_LIBRARY_PATH
18163
shlibpath_overrides_runpath=yes
18168
sys_lib_dlsearch_path_spec="/usr/lib"
18170
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18172
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18173
*) need_version=no ;;
18175
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18176
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18177
shlibpath_var=LD_LIBRARY_PATH
18178
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18180
openbsd2.[89] | openbsd2.[89].*)
18181
shlibpath_overrides_runpath=no
18184
shlibpath_overrides_runpath=yes
18188
shlibpath_overrides_runpath=yes
18193
libname_spec='$name'
18196
library_names_spec='$libname${shared_ext} $libname.a'
18197
dynamic_linker='OS/2 ld.exe'
18198
shlibpath_var=LIBPATH
18201
osf3* | osf4* | osf5*)
18205
soname_spec='${libname}${release}${shared_ext}$major'
18206
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18207
shlibpath_var=LD_LIBRARY_PATH
18208
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18209
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18220
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18221
soname_spec='${libname}${release}${shared_ext}$major'
18222
shlibpath_var=LD_LIBRARY_PATH
18223
shlibpath_overrides_runpath=yes
18224
hardcode_into_libs=yes
18225
# ldd complains unless libraries are executable
18226
postinstall_cmds='chmod +x $lib'
18231
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18232
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18233
shlibpath_var=LD_LIBRARY_PATH
18234
shlibpath_overrides_runpath=yes
18235
if test "$with_gnu_ld" = yes; then
18243
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18244
soname_spec='${libname}${release}${shared_ext}$major'
18245
shlibpath_var=LD_LIBRARY_PATH
18246
case $host_vendor in
18248
shlibpath_overrides_runpath=no
18250
export_dynamic_flag_spec='${wl}-Blargedynsym'
18251
runpath_var=LD_RUN_PATH
18259
shlibpath_overrides_runpath=no
18260
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18266
if test -d /usr/nec ;then
18268
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18269
soname_spec='$libname${shared_ext}.$major'
18270
shlibpath_var=LD_LIBRARY_PATH
18274
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18275
version_type=freebsd-elf
18278
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18279
soname_spec='${libname}${release}${shared_ext}$major'
18280
shlibpath_var=LD_LIBRARY_PATH
18281
hardcode_into_libs=yes
18282
if test "$with_gnu_ld" = yes; then
18283
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18284
shlibpath_overrides_runpath=no
18286
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18287
shlibpath_overrides_runpath=yes
18290
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18294
sys_lib_dlsearch_path_spec='/usr/lib'
18299
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18300
soname_spec='${libname}${release}${shared_ext}$major'
18301
shlibpath_var=LD_LIBRARY_PATH
18308
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18309
$as_echo "$dynamic_linker" >&6; }
18310
test "$dynamic_linker" = no && can_build_shared=no
18312
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18313
$as_echo_n "(cached) " >&6
18315
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18318
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18319
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18320
$as_echo_n "(cached) " >&6
18322
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18325
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18327
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18328
if test "$GCC" = yes; then
18329
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18332
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18333
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18334
hardcode_action_F77=
18335
if test -n "$hardcode_libdir_flag_spec_F77" || \
18336
test -n "$runpath_var_F77" || \
18337
test "X$hardcode_automatic_F77" = "Xyes" ; then
18339
# We can hardcode non-existant directories.
18340
if test "$hardcode_direct_F77" != no &&
18341
# If the only mechanism to avoid hardcoding is shlibpath_var, we
18342
# have to relink, otherwise we might link with an installed library
18343
# when we should be linking with a yet-to-be-installed one
18344
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
18345
test "$hardcode_minus_L_F77" != no; then
18346
# Linking always hardcodes the temporary library directory.
18347
hardcode_action_F77=relink
18349
# We can link without hardcoding, and we can hardcode nonexisting dirs.
18350
hardcode_action_F77=immediate
18353
# We cannot hardcode anything, or else we can only hardcode existing
18355
hardcode_action_F77=unsupported
18357
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
18358
$as_echo "$hardcode_action_F77" >&6; }
18360
if test "$hardcode_action_F77" = relink; then
18361
# Fast installation is not supported
18362
enable_fast_install=no
18363
elif test "$shlibpath_overrides_runpath" = yes ||
18364
test "$enable_shared" = no; then
18365
# Fast installation is not necessary
18366
enable_fast_install=needless
18370
# The else clause should only fire when bootstrapping the
18371
# libtool distribution, otherwise you forgot to ship ltmain.sh
18372
# with your package, and you will get complaints that there are
18373
# no rules to generate ltmain.sh.
18374
if test -f "$ltmain"; then
18375
# See if we are running on zsh, and set the options which allow our commands through
18376
# without removal of \ escapes.
18377
if test -n "${ZSH_VERSION+set}" ; then
18378
setopt NO_GLOB_SUBST
18380
# Now quote all the things that may contain metacharacters while being
18381
# careful not to overquote the AC_SUBSTed values. We take copies of the
18382
# variables and quote the copies for generation of the libtool script.
18383
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18385
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18386
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18387
deplibs_check_method reload_flag reload_cmds need_locks \
18388
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18389
lt_cv_sys_global_symbol_to_c_name_address \
18390
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18391
old_postinstall_cmds old_postuninstall_cmds \
18395
lt_prog_compiler_wl_F77 \
18396
lt_prog_compiler_pic_F77 \
18397
lt_prog_compiler_static_F77 \
18398
lt_prog_compiler_no_builtin_flag_F77 \
18399
export_dynamic_flag_spec_F77 \
18400
thread_safe_flag_spec_F77 \
18401
whole_archive_flag_spec_F77 \
18402
enable_shared_with_static_runtimes_F77 \
18403
old_archive_cmds_F77 \
18404
old_archive_from_new_cmds_F77 \
18405
predep_objects_F77 \
18406
postdep_objects_F77 \
18409
compiler_lib_search_path_F77 \
18410
compiler_lib_search_dirs_F77 \
18412
archive_expsym_cmds_F77 \
18413
postinstall_cmds_F77 \
18414
postuninstall_cmds_F77 \
18415
old_archive_from_expsyms_cmds_F77 \
18416
allow_undefined_flag_F77 \
18417
no_undefined_flag_F77 \
18418
export_symbols_cmds_F77 \
18419
hardcode_libdir_flag_spec_F77 \
18420
hardcode_libdir_flag_spec_ld_F77 \
18421
hardcode_libdir_separator_F77 \
18422
hardcode_automatic_F77 \
18424
module_expsym_cmds_F77 \
18425
lt_cv_prog_compiler_c_o_F77 \
18426
fix_srcfile_path_F77 \
18427
exclude_expsyms_F77 \
18428
include_expsyms_F77; do
18431
old_archive_cmds_F77 | \
18432
old_archive_from_new_cmds_F77 | \
18433
archive_cmds_F77 | \
18434
archive_expsym_cmds_F77 | \
18435
module_cmds_F77 | \
18436
module_expsym_cmds_F77 | \
18437
old_archive_from_expsyms_cmds_F77 | \
18438
export_symbols_cmds_F77 | \
18439
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18440
postinstall_cmds | postuninstall_cmds | \
18441
old_postinstall_cmds | old_postuninstall_cmds | \
18442
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18443
# Double-quote double-evaled strings.
18444
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18447
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18453
*'\$0 --fallback-echo"')
18454
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18460
cat <<__EOF__ >> "$cfgfile"
18461
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18463
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18465
# Shell to use when invoking shell scripts.
18468
# Whether or not to build shared libraries.
18469
build_libtool_libs=$enable_shared
18471
# Whether or not to build static libraries.
18472
build_old_libs=$enable_static
18474
# Whether or not to add -lc for building shared libraries.
18475
build_libtool_need_lc=$archive_cmds_need_lc_F77
18477
# Whether or not to disallow shared libs when runtime libs are static
18478
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
18480
# Whether or not to optimize for fast installation.
18481
fast_install=$enable_fast_install
18484
host_alias=$host_alias
18488
# The build system.
18489
build_alias=$build_alias
18493
# An echo program that does not interpret backslashes.
18498
AR_FLAGS=$lt_AR_FLAGS
18503
# LTCC compiler flags.
18504
LTCFLAGS=$lt_LTCFLAGS
18506
# A language-specific compiler.
18507
CC=$lt_compiler_F77
18509
# Is the compiler the GNU C compiler?
18515
# The linker used to build libraries.
18518
# Whether we need hard or soft links.
18521
# A BSD-compatible nm program.
18524
# A symbol stripping program
18527
# Used to examine libraries when file_magic_cmd begins "file"
18528
MAGIC_CMD=$MAGIC_CMD
18530
# Used on cygwin: DLL creation program.
18533
# Used on cygwin: object dumper.
18536
# Used on cygwin: assembler.
18539
# The name of the directory that contains temporary libtool files.
18542
# How to create reloadable object files.
18543
reload_flag=$lt_reload_flag
18544
reload_cmds=$lt_reload_cmds
18546
# How to pass a linker flag through the compiler.
18547
wl=$lt_lt_prog_compiler_wl_F77
18549
# Object file suffix (normally "o").
18550
objext="$ac_objext"
18552
# Old archive suffix (normally "a").
18555
# Shared library suffix (normally ".so").
18556
shrext_cmds='$shrext_cmds'
18558
# Executable file suffix (normally "").
18561
# Additional compiler flags for building library objects.
18562
pic_flag=$lt_lt_prog_compiler_pic_F77
18565
# What is the maximum length of a command?
18566
max_cmd_len=$lt_cv_sys_max_cmd_len
18568
# Does compiler simultaneously support -c and -o options?
18569
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
18571
# Must we lock files when doing compilation?
18572
need_locks=$lt_need_locks
18574
# Do we need the lib prefix for modules?
18575
need_lib_prefix=$need_lib_prefix
18577
# Do we need a version for libraries?
18578
need_version=$need_version
18580
# Whether dlopen is supported.
18581
dlopen_support=$enable_dlopen
18583
# Whether dlopen of programs is supported.
18584
dlopen_self=$enable_dlopen_self
18586
# Whether dlopen of statically linked programs is supported.
18587
dlopen_self_static=$enable_dlopen_self_static
18589
# Compiler flag to prevent dynamic linking.
18590
link_static_flag=$lt_lt_prog_compiler_static_F77
18592
# Compiler flag to turn off builtin functions.
18593
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
18595
# Compiler flag to allow reflexive dlopens.
18596
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
18598
# Compiler flag to generate shared objects directly from archives.
18599
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
18601
# Compiler flag to generate thread-safe objects.
18602
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
18604
# Library versioning type.
18605
version_type=$version_type
18607
# Format of library name prefix.
18608
libname_spec=$lt_libname_spec
18610
# List of archive names. First name is the real one, the rest are links.
18611
# The last name is the one that the linker finds with -lNAME.
18612
library_names_spec=$lt_library_names_spec
18614
# The coded name of the library, if different from the real name.
18615
soname_spec=$lt_soname_spec
18617
# Commands used to build and install an old-style archive.
18619
old_archive_cmds=$lt_old_archive_cmds_F77
18620
old_postinstall_cmds=$lt_old_postinstall_cmds
18621
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18623
# Create an old-style archive from a shared archive.
18624
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
18626
# Create a temporary old-style archive to link instead of a shared archive.
18627
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
18629
# Commands used to build and install a shared archive.
18630
archive_cmds=$lt_archive_cmds_F77
18631
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
18632
postinstall_cmds=$lt_postinstall_cmds
18633
postuninstall_cmds=$lt_postuninstall_cmds
18635
# Commands used to build a loadable module (assumed same as above if empty)
18636
module_cmds=$lt_module_cmds_F77
18637
module_expsym_cmds=$lt_module_expsym_cmds_F77
18639
# Commands to strip libraries.
18640
old_striplib=$lt_old_striplib
18641
striplib=$lt_striplib
18643
# Dependencies to place before the objects being linked to create a
18645
predep_objects=$lt_predep_objects_F77
18647
# Dependencies to place after the objects being linked to create a
18649
postdep_objects=$lt_postdep_objects_F77
18651
# Dependencies to place before the objects being linked to create a
18653
predeps=$lt_predeps_F77
18655
# Dependencies to place after the objects being linked to create a
18657
postdeps=$lt_postdeps_F77
18659
# The directories searched by this compiler when creating a shared
18661
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
18663
# The library search path used internally by the compiler when linking
18664
# a shared library.
18665
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
18667
# Method to check whether dependent libraries are shared objects.
18668
deplibs_check_method=$lt_deplibs_check_method
18670
# Command to use when deplibs_check_method == file_magic.
18671
file_magic_cmd=$lt_file_magic_cmd
18673
# Flag that allows shared libraries with undefined symbols to be built.
18674
allow_undefined_flag=$lt_allow_undefined_flag_F77
18676
# Flag that forces no undefined symbols.
18677
no_undefined_flag=$lt_no_undefined_flag_F77
18679
# Commands used to finish a libtool library installation in a directory.
18680
finish_cmds=$lt_finish_cmds
18682
# Same as above, but a single script fragment to be evaled but not shown.
18683
finish_eval=$lt_finish_eval
18685
# Take the output of nm and produce a listing of raw symbols and C names.
18686
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18688
# Transform the output of nm in a proper C declaration
18689
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18691
# Transform the output of nm in a C name address pair
18692
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18694
# This is the shared library runtime path variable.
18695
runpath_var=$runpath_var
18697
# This is the shared library path variable.
18698
shlibpath_var=$shlibpath_var
18700
# Is shlibpath searched before the hard-coded library search path?
18701
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18703
# How to hardcode a shared library path into an executable.
18704
hardcode_action=$hardcode_action_F77
18706
# Whether we should hardcode library paths into libraries.
18707
hardcode_into_libs=$hardcode_into_libs
18709
# Flag to hardcode \$libdir into a binary during linking.
18710
# This must work even if \$libdir does not exist.
18711
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
18713
# If ld is used when linking, flag to hardcode \$libdir into
18714
# a binary during linking. This must work even if \$libdir does
18716
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
18718
# Whether we need a single -rpath flag with a separated argument.
18719
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
18721
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18722
# resulting binary.
18723
hardcode_direct=$hardcode_direct_F77
18725
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18726
# resulting binary.
18727
hardcode_minus_L=$hardcode_minus_L_F77
18729
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18730
# the resulting binary.
18731
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
18733
# Set to yes if building a shared library automatically hardcodes DIR into the library
18734
# and all subsequent libraries and executables linked against it.
18735
hardcode_automatic=$hardcode_automatic_F77
18737
# Variables whose values should be saved in libtool wrapper scripts and
18738
# restored at relink time.
18739
variables_saved_for_relink="$variables_saved_for_relink"
18741
# Whether libtool must link a program against all its dependency libraries.
18742
link_all_deplibs=$link_all_deplibs_F77
18744
# Compile-time system search path for libraries
18745
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18747
# Run-time system search path for libraries
18748
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18750
# Fix the shell variable \$srcfile for the compiler.
18751
fix_srcfile_path=$lt_fix_srcfile_path
18753
# Set to yes if exported symbols are required.
18754
always_export_symbols=$always_export_symbols_F77
18756
# The commands to list exported symbols.
18757
export_symbols_cmds=$lt_export_symbols_cmds_F77
18759
# The commands to extract the exported symbol list from a shared archive.
18760
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18762
# Symbols that should not be listed in the preloaded symbols.
18763
exclude_expsyms=$lt_exclude_expsyms_F77
18765
# Symbols that must always be exported.
18766
include_expsyms=$lt_include_expsyms_F77
18768
# ### END LIBTOOL TAG CONFIG: $tagname
18774
# If there is no Makefile yet, we rely on a make rule to execute
18775
# `config.status --recheck' to rerun these tests and create the
18776
# libtool script then.
18777
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18778
if test -f "$ltmain_in"; then
18779
test -f Makefile && make "$ltmain"
18785
ac_cpp='$CPP $CPPFLAGS'
18786
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18787
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18788
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18798
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
18801
# Source file extension for Java test sources.
18804
# Object file extension for compiled Java test sources.
18808
# Code to be used in simple compile tests
18809
lt_simple_compile_test_code="class foo {}"
18811
# Code to be used in simple link tests
18812
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
18814
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18816
# If no C compiler was specified, use CC.
18819
# If no C compiler flags were specified, use CFLAGS.
18820
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18822
# Allow CC to be a program name with arguments.
18826
# save warnings/boilerplate of simple test code
18827
ac_outfile=conftest.$ac_objext
18828
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18829
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18830
_lt_compiler_boilerplate=`cat conftest.err`
18833
ac_outfile=conftest.$ac_objext
18834
echo "$lt_simple_link_test_code" >conftest.$ac_ext
18835
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18836
_lt_linker_boilerplate=`cat conftest.err`
18840
# Allow CC to be a program name with arguments.
18845
for cc_temp in $compiler""; do
18847
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18848
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18853
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18856
# GCJ did not exist at the time GCC didn't implicitly link libc in.
18857
archive_cmds_need_lc_GCJ=no
18859
old_archive_cmds_GCJ=$old_archive_cmds
18862
lt_prog_compiler_no_builtin_flag_GCJ=
18864
if test "$GCC" = yes; then
18865
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
18868
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18869
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
18870
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
18871
$as_echo_n "(cached) " >&6
18873
lt_cv_prog_compiler_rtti_exceptions=no
18874
ac_outfile=conftest.$ac_objext
18875
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18876
lt_compiler_flag="-fno-rtti -fno-exceptions"
18877
# Insert the option either (1) after the last *FLAGS variable, or
18878
# (2) before a word containing "conftest.", or (3) at the end.
18879
# Note that $ac_compile itself does not contain backslashes and begins
18880
# with a dollar sign (not a hyphen), so the echo should work correctly.
18881
# The option is referenced via a variable to avoid confusing sed.
18882
lt_compile=`echo "$ac_compile" | $SED \
18883
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18884
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18885
-e 's:$: $lt_compiler_flag:'`
18886
(eval echo "\"\$as_me:18886: $lt_compile\"" >&5)
18887
(eval "$lt_compile" 2>conftest.err)
18889
cat conftest.err >&5
18890
echo "$as_me:18890: \$? = $ac_status" >&5
18891
if (exit $ac_status) && test -s "$ac_outfile"; then
18892
# The compiler can only warn and ignore the option if not recognized
18893
# So say no if there are warnings other than the usual output.
18894
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18895
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18896
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18897
lt_cv_prog_compiler_rtti_exceptions=yes
18903
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18904
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18906
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18907
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18914
lt_prog_compiler_wl_GCJ=
18915
lt_prog_compiler_pic_GCJ=
18916
lt_prog_compiler_static_GCJ=
18918
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18919
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18921
if test "$GCC" = yes; then
18922
lt_prog_compiler_wl_GCJ='-Wl,'
18923
lt_prog_compiler_static_GCJ='-static'
18927
# All AIX code is PIC.
18928
if test "$host_cpu" = ia64; then
18929
# AIX 5 now supports IA64 processor
18930
lt_prog_compiler_static_GCJ='-Bstatic'
18935
# FIXME: we need at least 68020 code to build shared libraries, but
18936
# adding the `-m68020' flag to GCC prevents building anything better,
18938
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18941
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18942
# PIC is the default for these OSes.
18945
mingw* | cygwin* | pw32* | os2*)
18946
# This hack is so that the source file can tell whether it is being
18947
# built for inclusion in a dll (and should export symbols for example).
18948
# Although the cygwin gcc ignores -fPIC, still need this for old-style
18949
# (--disable-auto-import) libraries
18953
darwin* | rhapsody*)
18954
# PIC is the default on this platform
18955
# Common symbols not allowed in MH_DYLIB files
18956
lt_prog_compiler_pic_GCJ='-fno-common'
18960
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
18961
# Instead, we relocate shared libraries at runtime.
18965
# Just because we use GCC doesn't mean we suddenly get shared libraries
18966
# on systems that don't support them.
18967
lt_prog_compiler_can_build_shared_GCJ=no
18972
if test -d /usr/nec; then
18973
lt_prog_compiler_pic_GCJ=-Kconform_pic
18978
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18979
# not for PA HP-UX.
18985
lt_prog_compiler_pic_GCJ='-fPIC'
18991
lt_prog_compiler_pic_GCJ='-fPIC'
18995
# PORTME Check for flag to pass linker flags through the system compiler.
18998
lt_prog_compiler_wl_GCJ='-Wl,'
18999
if test "$host_cpu" = ia64; then
19000
# AIX 5 now supports IA64 processor
19001
lt_prog_compiler_static_GCJ='-Bstatic'
19003
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
19007
# PIC is the default on this platform
19008
# Common symbols not allowed in MH_DYLIB files
19009
case $cc_basename in
19011
lt_prog_compiler_pic_GCJ='-qnocommon'
19012
lt_prog_compiler_wl_GCJ='-Wl,'
19017
mingw* | cygwin* | pw32* | os2*)
19018
# This hack is so that the source file can tell whether it is being
19019
# built for inclusion in a dll (and should export symbols for example).
19023
hpux9* | hpux10* | hpux11*)
19024
lt_prog_compiler_wl_GCJ='-Wl,'
19025
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19026
# not for PA HP-UX.
19032
lt_prog_compiler_pic_GCJ='+Z'
19035
# Is there a better lt_prog_compiler_static that works with the bundled CC?
19036
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
19039
irix5* | irix6* | nonstopux*)
19040
lt_prog_compiler_wl_GCJ='-Wl,'
19041
# PIC (with -KPIC) is the default.
19042
lt_prog_compiler_static_GCJ='-non_shared'
19046
lt_prog_compiler_pic_GCJ='-KPIC'
19047
lt_prog_compiler_static_GCJ='-Bstatic'
19050
linux* | k*bsd*-gnu)
19051
case $cc_basename in
19053
lt_prog_compiler_wl_GCJ='-Wl,'
19054
lt_prog_compiler_pic_GCJ='-KPIC'
19055
lt_prog_compiler_static_GCJ='-static'
19057
pgcc* | pgf77* | pgf90* | pgf95*)
19058
# Portland Group compilers (*not* the Pentium gcc compiler,
19059
# which looks to be a dead project)
19060
lt_prog_compiler_wl_GCJ='-Wl,'
19061
lt_prog_compiler_pic_GCJ='-fpic'
19062
lt_prog_compiler_static_GCJ='-Bstatic'
19065
lt_prog_compiler_wl_GCJ='-Wl,'
19066
# All Alpha code is PIC.
19067
lt_prog_compiler_static_GCJ='-non_shared'
19070
case `$CC -V 2>&1 | sed 5q` in
19073
lt_prog_compiler_pic_GCJ='-KPIC'
19074
lt_prog_compiler_static_GCJ='-Bstatic'
19075
lt_prog_compiler_wl_GCJ='-Wl,'
19078
# Sun Fortran 8.3 passes all unrecognized flags to the linker
19079
lt_prog_compiler_pic_GCJ='-KPIC'
19080
lt_prog_compiler_static_GCJ='-Bstatic'
19081
lt_prog_compiler_wl_GCJ=''
19088
osf3* | osf4* | osf5*)
19089
lt_prog_compiler_wl_GCJ='-Wl,'
19090
# All OSF/1 code is PIC.
19091
lt_prog_compiler_static_GCJ='-non_shared'
19095
lt_prog_compiler_static_GCJ='-non_shared'
19099
lt_prog_compiler_pic_GCJ='-KPIC'
19100
lt_prog_compiler_static_GCJ='-Bstatic'
19101
case $cc_basename in
19102
f77* | f90* | f95*)
19103
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
19105
lt_prog_compiler_wl_GCJ='-Wl,';;
19110
lt_prog_compiler_wl_GCJ='-Qoption ld '
19111
lt_prog_compiler_pic_GCJ='-PIC'
19112
lt_prog_compiler_static_GCJ='-Bstatic'
19115
sysv4 | sysv4.2uw2* | sysv4.3*)
19116
lt_prog_compiler_wl_GCJ='-Wl,'
19117
lt_prog_compiler_pic_GCJ='-KPIC'
19118
lt_prog_compiler_static_GCJ='-Bstatic'
19122
if test -d /usr/nec ;then
19123
lt_prog_compiler_pic_GCJ='-Kconform_pic'
19124
lt_prog_compiler_static_GCJ='-Bstatic'
19128
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19129
lt_prog_compiler_wl_GCJ='-Wl,'
19130
lt_prog_compiler_pic_GCJ='-KPIC'
19131
lt_prog_compiler_static_GCJ='-Bstatic'
19135
lt_prog_compiler_wl_GCJ='-Wl,'
19136
lt_prog_compiler_can_build_shared_GCJ=no
19140
lt_prog_compiler_pic_GCJ='-pic'
19141
lt_prog_compiler_static_GCJ='-Bstatic'
19145
lt_prog_compiler_can_build_shared_GCJ=no
19150
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
19151
$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
19154
# Check to make sure the PIC flag actually works.
19156
if test -n "$lt_prog_compiler_pic_GCJ"; then
19158
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
19159
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
19160
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
19161
$as_echo_n "(cached) " >&6
19163
lt_cv_prog_compiler_pic_works_GCJ=no
19164
ac_outfile=conftest.$ac_objext
19165
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19166
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
19167
# Insert the option either (1) after the last *FLAGS variable, or
19168
# (2) before a word containing "conftest.", or (3) at the end.
19169
# Note that $ac_compile itself does not contain backslashes and begins
19170
# with a dollar sign (not a hyphen), so the echo should work correctly.
19171
# The option is referenced via a variable to avoid confusing sed.
19172
lt_compile=`echo "$ac_compile" | $SED \
19173
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19174
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19175
-e 's:$: $lt_compiler_flag:'`
19176
(eval echo "\"\$as_me:19176: $lt_compile\"" >&5)
19177
(eval "$lt_compile" 2>conftest.err)
19179
cat conftest.err >&5
19180
echo "$as_me:19180: \$? = $ac_status" >&5
19181
if (exit $ac_status) && test -s "$ac_outfile"; then
19182
# The compiler can only warn and ignore the option if not recognized
19183
# So say no if there are warnings other than the usual output.
19184
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19185
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19186
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19187
lt_cv_prog_compiler_pic_works_GCJ=yes
19193
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
19194
$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
19196
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
19197
case $lt_prog_compiler_pic_GCJ in
19199
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
19202
lt_prog_compiler_pic_GCJ=
19203
lt_prog_compiler_can_build_shared_GCJ=no
19208
# For platforms which do not support PIC, -DPIC is meaningless:
19210
lt_prog_compiler_pic_GCJ=
19213
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
19218
# Check to make sure the static flag actually works.
19220
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
19221
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19222
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19223
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
19224
$as_echo_n "(cached) " >&6
19226
lt_cv_prog_compiler_static_works_GCJ=no
19227
save_LDFLAGS="$LDFLAGS"
19228
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19229
echo "$lt_simple_link_test_code" > conftest.$ac_ext
19230
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19231
# The linker can only warn and ignore the option if not recognized
19232
# So say no if there are warnings
19233
if test -s conftest.err; then
19234
# Append any errors to the config.log.
19235
cat conftest.err 1>&5
19236
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19237
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19238
if diff conftest.exp conftest.er2 >/dev/null; then
19239
lt_cv_prog_compiler_static_works_GCJ=yes
19242
lt_cv_prog_compiler_static_works_GCJ=yes
19246
LDFLAGS="$save_LDFLAGS"
19249
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
19250
$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
19252
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
19255
lt_prog_compiler_static_GCJ=
19259
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19260
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19261
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
19262
$as_echo_n "(cached) " >&6
19264
lt_cv_prog_compiler_c_o_GCJ=no
19265
$rm -r conftest 2>/dev/null
19269
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19271
lt_compiler_flag="-o out/conftest2.$ac_objext"
19272
# Insert the option either (1) after the last *FLAGS variable, or
19273
# (2) before a word containing "conftest.", or (3) at the end.
19274
# Note that $ac_compile itself does not contain backslashes and begins
19275
# with a dollar sign (not a hyphen), so the echo should work correctly.
19276
lt_compile=`echo "$ac_compile" | $SED \
19277
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19278
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19279
-e 's:$: $lt_compiler_flag:'`
19280
(eval echo "\"\$as_me:19280: $lt_compile\"" >&5)
19281
(eval "$lt_compile" 2>out/conftest.err)
19283
cat out/conftest.err >&5
19284
echo "$as_me:19284: \$? = $ac_status" >&5
19285
if (exit $ac_status) && test -s out/conftest2.$ac_objext
19287
# The compiler can only warn and ignore the option if not recognized
19288
# So say no if there are warnings
19289
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19290
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19291
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19292
lt_cv_prog_compiler_c_o_GCJ=yes
19297
# SGI C++ compiler will create directory out/ii_files/ for
19298
# template instantiation
19299
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19300
$rm out/* && rmdir out
19306
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
19307
$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
19310
hard_links="nottested"
19311
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
19312
# do not overwrite the value of need_locks provided by the user
19313
{ $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19314
$as_echo_n "checking if we can lock with hard links... " >&6; }
19317
ln conftest.a conftest.b 2>/dev/null && hard_links=no
19319
ln conftest.a conftest.b 2>&5 || hard_links=no
19320
ln conftest.a conftest.b 2>/dev/null && hard_links=no
19321
{ $as_echo "$as_me:$LINENO: result: $hard_links" >&5
19322
$as_echo "$hard_links" >&6; }
19323
if test "$hard_links" = no; then
19324
{ $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19325
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19332
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19333
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19336
allow_undefined_flag_GCJ=
19337
enable_shared_with_static_runtimes_GCJ=no
19339
archive_expsym_cmds_GCJ=
19340
old_archive_From_new_cmds_GCJ=
19341
old_archive_from_expsyms_cmds_GCJ=
19342
export_dynamic_flag_spec_GCJ=
19343
whole_archive_flag_spec_GCJ=
19344
thread_safe_flag_spec_GCJ=
19345
hardcode_libdir_flag_spec_GCJ=
19346
hardcode_libdir_flag_spec_ld_GCJ=
19347
hardcode_libdir_separator_GCJ=
19348
hardcode_direct_GCJ=no
19349
hardcode_minus_L_GCJ=no
19350
hardcode_shlibpath_var_GCJ=unsupported
19351
link_all_deplibs_GCJ=unknown
19352
hardcode_automatic_GCJ=no
19354
module_expsym_cmds_GCJ=
19355
always_export_symbols_GCJ=no
19356
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19357
# include_expsyms should be a list of space-separated symbols to be *always*
19358
# included in the symbol list
19359
include_expsyms_GCJ=
19360
# exclude_expsyms can be an extended regexp of symbols to exclude
19361
# it will be wrapped by ` (' and `)$', so one must not match beginning or
19362
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19363
# as well as any symbol that contains `d'.
19364
exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19365
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19366
# platforms (ab)use it in PIC code, but their linkers get confused if
19367
# the symbol is explicitly referenced. Since portable code cannot
19368
# rely on this symbol name, it's probably fine to never include it in
19369
# preloaded symbol tables.
19370
# Exclude shared library initialization/finalization symbols.
19371
extract_expsyms_cmds=
19372
# Just being paranoid about ensuring that cc_basename is set.
19373
for cc_temp in $compiler""; do
19375
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19376
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19381
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19384
cygwin* | mingw* | pw32*)
19385
# FIXME: the MSVC++ port hasn't been tested in a loooong time
19386
# When not using gcc, we currently assume that we are using
19387
# Microsoft Visual C++.
19388
if test "$GCC" != yes; then
19393
# we just hope/assume this is gcc and not c89 (= MSVC++)
19402
if test "$with_gnu_ld" = yes; then
19403
# If archive_cmds runs LD, not CC, wlarc should be empty
19406
# Set some defaults for GNU ld with shared library support. These
19407
# are reset later if shared libraries are not supported. Putting them
19408
# here allows them to be overridden if necessary.
19409
runpath_var=LD_RUN_PATH
19410
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
19411
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
19412
# ancient GNU ld didn't support --whole-archive et. al.
19413
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19414
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19416
whole_archive_flag_spec_GCJ=
19418
supports_anon_versioning=no
19419
case `$LD -v 2>/dev/null` in
19420
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19421
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19422
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19423
*\ 2.11.*) ;; # other 2.11 versions
19424
*) supports_anon_versioning=yes ;;
19427
# See if GNU ld supports shared libraries.
19430
# On AIX/PPC, the GNU linker is very broken
19431
if test "$host_cpu" != ia64; then
19435
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
19436
*** to be unable to reliably create shared libraries on AIX.
19437
*** Therefore, libtool is disabling shared libraries support. If you
19438
*** really care for shared libraries, you may want to modify your PATH
19439
*** so that a non-GNU linker is found, and then restart.
19446
archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
19447
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19448
hardcode_minus_L_GCJ=yes
19450
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19451
# that the semantics of dynamic libraries on AmigaOS, at least up
19452
# to version 4, is to share data among multiple programs linked
19453
# with the same dynamic library. Since this doesn't match the
19454
# behavior of shared libraries on other platforms, we can't use
19460
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19461
allow_undefined_flag_GCJ=unsupported
19462
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19463
# support --undefined. This deserves some investigation. FIXME
19464
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19470
cygwin* | mingw* | pw32*)
19471
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
19472
# as there is no search path for DLLs.
19473
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19474
allow_undefined_flag_GCJ=unsupported
19475
always_export_symbols_GCJ=no
19476
enable_shared_with_static_runtimes_GCJ=yes
19477
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
19479
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19480
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19481
# If the export-symbols file already is a .def file (1st line
19482
# is EXPORTS), use it as is; otherwise, prepend...
19483
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19484
cp $export_symbols $output_objdir/$soname.def;
19486
echo EXPORTS > $output_objdir/$soname.def;
19487
cat $export_symbols >> $output_objdir/$soname.def;
19489
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19496
hardcode_direct_GCJ=no
19497
hardcode_shlibpath_var_GCJ=no
19498
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19499
export_dynamic_flag_spec_GCJ='${wl}-E'
19500
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19501
# Instead, shared libraries are loaded at an image base (0x10000000 by
19502
# default) and relocated if they conflict, which is a slow very memory
19503
# consuming and fragmenting process. To avoid this, we pick a random,
19504
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19505
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
19506
archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19507
archive_expsym_cmds_GCJ='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'
19510
gnu* | linux* | k*bsd*-gnu)
19511
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19513
case $cc_basename,$host_cpu in
19514
pgcc*) # Portland Group C compiler
19515
whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
19516
tmp_addflag=' $pic_flag'
19518
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
19519
whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
19520
tmp_addflag=' $pic_flag -Mnomain' ;;
19521
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
19522
tmp_addflag=' -i_dynamic' ;;
19523
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
19524
tmp_addflag=' -i_dynamic -nofor_main' ;;
19525
ifc* | ifort*) # Intel Fortran compiler
19526
tmp_addflag=' -nofor_main' ;;
19528
case `$CC -V 2>&1 | sed 5q` in
19529
*Sun\ C*) # Sun C 5.9
19530
whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
19531
tmp_sharedflag='-G' ;;
19532
*Sun\ F*) # Sun Fortran 8.3
19533
tmp_sharedflag='-G' ;;
19535
tmp_sharedflag='-shared' ;;
19537
archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19539
if test $supports_anon_versioning = yes; then
19540
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
19541
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19542
$echo "local: *; };" >> $output_objdir/$libname.ver~
19543
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19551
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19552
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19555
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19556
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19561
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19565
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
19566
*** create shared libraries on Solaris systems. Therefore, libtool
19567
*** is disabling shared libraries support. We urge you to upgrade GNU
19568
*** binutils to release 2.9.1 or newer. Another option is to modify
19569
*** your PATH or compiler configuration so that the native linker is
19570
*** used, and then restart.
19573
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19574
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19575
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19581
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
19582
case `$LD -v 2>&1` in
19583
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
19587
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
19588
*** reliably create shared libraries on SCO systems. Therefore, libtool
19589
*** is disabling shared libraries support. We urge you to upgrade GNU
19590
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
19591
*** your PATH or compiler configuration so that the native linker is
19592
*** used, and then restart.
19597
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19598
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
19599
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
19600
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
19609
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19611
hardcode_direct_GCJ=yes
19612
hardcode_shlibpath_var_GCJ=no
19616
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19617
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19618
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19625
if test "$ld_shlibs_GCJ" = no; then
19627
hardcode_libdir_flag_spec_GCJ=
19628
export_dynamic_flag_spec_GCJ=
19629
whole_archive_flag_spec_GCJ=
19632
# PORTME fill in a description of your system's linker (not GNU ld)
19635
allow_undefined_flag_GCJ=unsupported
19636
always_export_symbols_GCJ=yes
19637
archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
19638
# Note: this linker hardcodes the directories in LIBPATH if there
19639
# are no directories specified by -L.
19640
hardcode_minus_L_GCJ=yes
19641
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
19642
# Neither direct hardcoding nor static linking is supported with a
19644
hardcode_direct_GCJ=unsupported
19649
if test "$host_cpu" = ia64; then
19650
# On IA64, the linker does run time linking by default, so we don't
19651
# have to do anything special.
19652
aix_use_runtimelinking=no
19653
exp_sym_flag='-Bexport'
19656
# If we're using GNU nm, then we don't want the "-C" option.
19657
# -C means demangle to AIX nm, but means don't demangle with GNU nm
19658
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19659
export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
19661
export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
19663
aix_use_runtimelinking=no
19665
# Test if we are trying to use run time linking or normal
19666
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
19667
# need to do runtime linking.
19668
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19669
for ld_flag in $LDFLAGS; do
19670
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19671
aix_use_runtimelinking=yes
19678
exp_sym_flag='-bexport'
19679
no_entry_flag='-bnoentry'
19682
# When large executables or shared objects are built, AIX ld can
19683
# have problems creating the table of contents. If linking a library
19684
# or program results in "error TOC overflow" add -mminimal-toc to
19685
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19686
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19688
archive_cmds_GCJ=''
19689
hardcode_direct_GCJ=yes
19690
hardcode_libdir_separator_GCJ=':'
19691
link_all_deplibs_GCJ=yes
19693
if test "$GCC" = yes; then
19694
case $host_os in aix4.[012]|aix4.[012].*)
19695
# We only want to do this on AIX 4.2 and lower, the check
19696
# below for broken collect2 doesn't work under 4.3+
19697
collect2name=`${CC} -print-prog-name=collect2`
19698
if test -f "$collect2name" && \
19699
strings "$collect2name" | grep resolve_lib_name >/dev/null
19701
# We have reworked collect2
19704
# We have old collect2
19705
hardcode_direct_GCJ=unsupported
19706
# It fails to find uninstalled libraries when the uninstalled
19707
# path is not listed in the libpath. Setting hardcode_minus_L
19708
# to unsupported forces relinking
19709
hardcode_minus_L_GCJ=yes
19710
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19711
hardcode_libdir_separator_GCJ=
19715
shared_flag='-shared'
19716
if test "$aix_use_runtimelinking" = yes; then
19717
shared_flag="$shared_flag "'${wl}-G'
19721
if test "$host_cpu" = ia64; then
19722
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19723
# chokes on -Wl,-G. The following line is correct:
19726
if test "$aix_use_runtimelinking" = yes; then
19727
shared_flag='${wl}-G'
19729
shared_flag='${wl}-bM:SRE'
19734
# It seems that -bexpall does not export symbols beginning with
19735
# underscore (_), so it is better to generate a list of symbols to export.
19736
always_export_symbols_GCJ=yes
19737
if test "$aix_use_runtimelinking" = yes; then
19738
# Warning - without using the other runtime loading flags (-brtl),
19739
# -berok will link without error, but may produce a broken library.
19740
allow_undefined_flag_GCJ='-berok'
19741
# Determine the default libpath from the value encoded in an empty executable.
19742
cat >conftest.$ac_ext <<_ACEOF
19745
cat confdefs.h >>conftest.$ac_ext
19746
cat >>conftest.$ac_ext <<_ACEOF
19747
/* end confdefs.h. */
19757
rm -f conftest.$ac_objext conftest$ac_exeext
19758
if { (ac_try="$ac_link"
19759
case "(($ac_try" in
19760
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19761
*) ac_try_echo=$ac_try;;
19763
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19764
$as_echo "$ac_try_echo") >&5
19765
(eval "$ac_link") 2>conftest.er1
19767
grep -v '^ *+' conftest.er1 >conftest.err
19769
cat conftest.err >&5
19770
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19771
(exit $ac_status); } && {
19772
test -z "$ac_c_werror_flag" ||
19773
test ! -s conftest.err
19774
} && test -s conftest$ac_exeext && {
19775
test "$cross_compiling" = yes ||
19776
$as_test_x conftest$ac_exeext
19779
lt_aix_libpath_sed='
19780
/Import File Strings/,/^$/ {
19786
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19787
# Check for a 64-bit object if we didn't find anything.
19788
if test -z "$aix_libpath"; then
19789
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19792
$as_echo "$as_me: failed program was:" >&5
19793
sed 's/^/| /' conftest.$ac_ext >&5
19798
rm -rf conftest.dSYM
19799
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19800
conftest$ac_exeext conftest.$ac_ext
19801
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19803
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19804
archive_expsym_cmds_GCJ="\$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"
19806
if test "$host_cpu" = ia64; then
19807
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
19808
allow_undefined_flag_GCJ="-z nodefs"
19809
archive_expsym_cmds_GCJ="\$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"
19811
# Determine the default libpath from the value encoded in an empty executable.
19812
cat >conftest.$ac_ext <<_ACEOF
19815
cat confdefs.h >>conftest.$ac_ext
19816
cat >>conftest.$ac_ext <<_ACEOF
19817
/* end confdefs.h. */
19827
rm -f conftest.$ac_objext conftest$ac_exeext
19828
if { (ac_try="$ac_link"
19829
case "(($ac_try" in
19830
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19831
*) ac_try_echo=$ac_try;;
19833
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19834
$as_echo "$ac_try_echo") >&5
19835
(eval "$ac_link") 2>conftest.er1
19837
grep -v '^ *+' conftest.er1 >conftest.err
19839
cat conftest.err >&5
19840
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19841
(exit $ac_status); } && {
19842
test -z "$ac_c_werror_flag" ||
19843
test ! -s conftest.err
19844
} && test -s conftest$ac_exeext && {
19845
test "$cross_compiling" = yes ||
19846
$as_test_x conftest$ac_exeext
19849
lt_aix_libpath_sed='
19850
/Import File Strings/,/^$/ {
19856
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19857
# Check for a 64-bit object if we didn't find anything.
19858
if test -z "$aix_libpath"; then
19859
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19862
$as_echo "$as_me: failed program was:" >&5
19863
sed 's/^/| /' conftest.$ac_ext >&5
19868
rm -rf conftest.dSYM
19869
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19870
conftest$ac_exeext conftest.$ac_ext
19871
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19873
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19874
# Warning - without using the other run time loading flags,
19875
# -berok will link without error, but may produce a broken library.
19876
no_undefined_flag_GCJ=' ${wl}-bernotok'
19877
allow_undefined_flag_GCJ=' ${wl}-berok'
19878
# Exported symbols can be pulled into shared objects from archives
19879
whole_archive_flag_spec_GCJ='$convenience'
19880
archive_cmds_need_lc_GCJ=yes
19881
# This is similar to how AIX traditionally builds its shared libraries.
19882
archive_expsym_cmds_GCJ="\$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'
19888
archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
19889
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19890
hardcode_minus_L_GCJ=yes
19891
# see comment about different semantics on the GNU ld section
19896
export_dynamic_flag_spec_GCJ=-rdynamic
19899
cygwin* | mingw* | pw32*)
19900
# When not using gcc, we currently assume that we are using
19901
# Microsoft Visual C++.
19902
# hardcode_libdir_flag_spec is actually meaningless, as there is
19903
# no search path for DLLs.
19904
hardcode_libdir_flag_spec_GCJ=' '
19905
allow_undefined_flag_GCJ=unsupported
19906
# Tell ltmain to make .lib files, not .a files.
19908
# Tell ltmain to make .dll files, not .so files.
19910
# FIXME: Setting linknames here is a bad hack.
19911
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19912
# The linker will automatically build a .lib file if we build a DLL.
19913
old_archive_From_new_cmds_GCJ='true'
19914
# FIXME: Should let the user specify the lib program.
19915
old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
19916
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
19917
enable_shared_with_static_runtimes_GCJ=yes
19920
darwin* | rhapsody*)
19922
rhapsody* | darwin1.[012])
19923
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
19926
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19927
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19929
case ${MACOSX_DEPLOYMENT_TARGET} in
19931
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19934
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19940
archive_cmds_need_lc_GCJ=no
19941
hardcode_direct_GCJ=no
19942
hardcode_automatic_GCJ=yes
19943
hardcode_shlibpath_var_GCJ=unsupported
19944
whole_archive_flag_spec_GCJ=''
19945
link_all_deplibs_GCJ=yes
19946
if test "$GCC" = yes ; then
19947
output_verbose_link_cmd='echo'
19948
archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
19949
module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19950
archive_expsym_cmds_GCJ="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}"
19951
module_expsym_cmds_GCJ="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}"
19953
case $cc_basename in
19955
output_verbose_link_cmd='echo'
19956
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
19957
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19958
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19959
archive_expsym_cmds_GCJ='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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19960
module_expsym_cmds_GCJ='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}'
19970
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19971
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19972
hardcode_shlibpath_var_GCJ=no
19979
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19980
# support. Future versions do this automatically, but an explicit c++rt0.o
19981
# does not break anything, and helps significantly (at the cost of a little
19984
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19985
hardcode_libdir_flag_spec_GCJ='-R$libdir'
19986
hardcode_direct_GCJ=yes
19987
hardcode_shlibpath_var_GCJ=no
19990
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
19992
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19993
hardcode_direct_GCJ=yes
19994
hardcode_minus_L_GCJ=yes
19995
hardcode_shlibpath_var_GCJ=no
19998
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19999
freebsd* | dragonfly*)
20000
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
20001
hardcode_libdir_flag_spec_GCJ='-R$libdir'
20002
hardcode_direct_GCJ=yes
20003
hardcode_shlibpath_var_GCJ=no
20007
if test "$GCC" = yes; then
20008
archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
20010
archive_cmds_GCJ='$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'
20012
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
20013
hardcode_libdir_separator_GCJ=:
20014
hardcode_direct_GCJ=yes
20016
# hardcode_minus_L: Not really in the search PATH,
20017
# but as the default location of the library.
20018
hardcode_minus_L_GCJ=yes
20019
export_dynamic_flag_spec_GCJ='${wl}-E'
20023
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
20024
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20026
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
20028
if test "$with_gnu_ld" = no; then
20029
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
20030
hardcode_libdir_separator_GCJ=:
20032
hardcode_direct_GCJ=yes
20033
export_dynamic_flag_spec_GCJ='${wl}-E'
20035
# hardcode_minus_L: Not really in the search PATH,
20036
# but as the default location of the library.
20037
hardcode_minus_L_GCJ=yes
20042
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
20045
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20048
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
20051
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20057
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20060
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
20063
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20067
if test "$with_gnu_ld" = no; then
20068
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
20069
hardcode_libdir_separator_GCJ=:
20073
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
20074
hardcode_direct_GCJ=no
20075
hardcode_shlibpath_var_GCJ=no
20078
hardcode_direct_GCJ=yes
20079
export_dynamic_flag_spec_GCJ='${wl}-E'
20081
# hardcode_minus_L: Not really in the search PATH,
20082
# but as the default location of the library.
20083
hardcode_minus_L_GCJ=yes
20089
irix5* | irix6* | nonstopux*)
20090
if test "$GCC" = yes; then
20091
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
20093
archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
20094
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
20096
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20097
hardcode_libdir_separator_GCJ=:
20098
link_all_deplibs_GCJ=yes
20102
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20103
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
20105
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
20107
hardcode_libdir_flag_spec_GCJ='-R$libdir'
20108
hardcode_direct_GCJ=yes
20109
hardcode_shlibpath_var_GCJ=no
20113
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20114
hardcode_direct_GCJ=yes
20115
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20116
hardcode_libdir_separator_GCJ=:
20117
hardcode_shlibpath_var_GCJ=no
20121
if test -f /usr/libexec/ld.so; then
20122
hardcode_direct_GCJ=yes
20123
hardcode_shlibpath_var_GCJ=no
20124
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20125
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20126
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
20127
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
20128
export_dynamic_flag_spec_GCJ='${wl}-E'
20131
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
20132
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20133
hardcode_libdir_flag_spec_GCJ='-R$libdir'
20136
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20137
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
20147
hardcode_libdir_flag_spec_GCJ='-L$libdir'
20148
hardcode_minus_L_GCJ=yes
20149
allow_undefined_flag_GCJ=unsupported
20150
archive_cmds_GCJ='$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'
20151
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
20155
if test "$GCC" = yes; then
20156
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
20157
archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
20159
allow_undefined_flag_GCJ=' -expect_unresolved \*'
20160
archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
20162
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20163
hardcode_libdir_separator_GCJ=:
20166
osf4* | osf5*) # as osf3* with the addition of -msym flag
20167
if test "$GCC" = yes; then
20168
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
20169
archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
20170
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20172
allow_undefined_flag_GCJ=' -expect_unresolved \*'
20173
archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
20174
archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
20175
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
20177
# Both c and cxx compiler support -rpath directly
20178
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
20180
hardcode_libdir_separator_GCJ=:
20184
no_undefined_flag_GCJ=' -z text'
20185
if test "$GCC" = yes; then
20187
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20188
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20189
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
20192
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20193
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20194
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20196
hardcode_libdir_flag_spec_GCJ='-R$libdir'
20197
hardcode_shlibpath_var_GCJ=no
20199
solaris2.[0-5] | solaris2.[0-5].*) ;;
20201
# The compiler driver will combine and reorder linker options,
20202
# but understands `-z linker_flag'. GCC discards it without `$wl',
20203
# but is careful enough not to reorder.
20204
# Supported since Solaris 2.6 (maybe 2.5.1?)
20205
if test "$GCC" = yes; then
20206
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20208
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
20212
link_all_deplibs_GCJ=yes
20216
if test "x$host_vendor" = xsequent; then
20217
# Use $CC to link under sequent, because it throws in some extra .o
20218
# files that make .init and .fini sections work.
20219
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20221
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20223
hardcode_libdir_flag_spec_GCJ='-L$libdir'
20224
hardcode_direct_GCJ=yes
20225
hardcode_minus_L_GCJ=yes
20226
hardcode_shlibpath_var_GCJ=no
20230
case $host_vendor in
20232
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20233
hardcode_direct_GCJ=yes # is this really true???
20236
## LD is ld it makes a PLAMLIB
20237
## CC just makes a GrossModule.
20238
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20239
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
20240
hardcode_direct_GCJ=no
20243
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20244
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
20247
runpath_var='LD_RUN_PATH'
20248
hardcode_shlibpath_var_GCJ=no
20252
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20253
hardcode_shlibpath_var_GCJ=no
20254
export_dynamic_flag_spec_GCJ='-Bexport'
20258
if test -d /usr/nec; then
20259
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20260
hardcode_shlibpath_var_GCJ=no
20261
runpath_var=LD_RUN_PATH
20262
hardcode_runpath_var=yes
20267
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20268
no_undefined_flag_GCJ='${wl}-z,text'
20269
archive_cmds_need_lc_GCJ=no
20270
hardcode_shlibpath_var_GCJ=no
20271
runpath_var='LD_RUN_PATH'
20273
if test "$GCC" = yes; then
20274
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20275
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20277
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20278
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20282
sysv5* | sco3.2v5* | sco5v6*)
20283
# Note: We can NOT use -z defs as we might desire, because we do not
20284
# link with -lc, and that would cause any symbols used from libc to
20285
# always be unresolved, which means just about no library would
20286
# ever link correctly. If we're not using GNU ld we use -z text
20287
# though, which does catch some bad symbols but isn't as heavy-handed
20289
no_undefined_flag_GCJ='${wl}-z,text'
20290
allow_undefined_flag_GCJ='${wl}-z,nodefs'
20291
archive_cmds_need_lc_GCJ=no
20292
hardcode_shlibpath_var_GCJ=no
20293
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
20294
hardcode_libdir_separator_GCJ=':'
20295
link_all_deplibs_GCJ=yes
20296
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
20297
runpath_var='LD_RUN_PATH'
20299
if test "$GCC" = yes; then
20300
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20301
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20303
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20304
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20309
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20310
hardcode_libdir_flag_spec_GCJ='-L$libdir'
20311
hardcode_shlibpath_var_GCJ=no
20320
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
20321
$as_echo "$ld_shlibs_GCJ" >&6; }
20322
test "$ld_shlibs_GCJ" = no && can_build_shared=no
20325
# Do we need to explicitly link libc?
20327
case "x$archive_cmds_need_lc_GCJ" in
20329
# Assume -lc should be added
20330
archive_cmds_need_lc_GCJ=yes
20332
if test "$enable_shared" = yes && test "$GCC" = yes; then
20333
case $archive_cmds_GCJ in
20335
# FIXME: we may have to deal with multi-command sequences.
20338
# Test whether the compiler implicitly links with -lc since on some
20339
# systems, -lgcc has to come before -lc. If gcc already passes -lc
20340
# to ld, don't add -lc before -lgcc.
20341
{ $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20342
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20344
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20346
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20347
(eval $ac_compile) 2>&5
20349
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350
(exit $ac_status); } 2>conftest.err; then
20353
libobjs=conftest.$ac_objext
20355
wl=$lt_prog_compiler_wl_GCJ
20356
pic_flag=$lt_prog_compiler_pic_GCJ
20362
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
20363
allow_undefined_flag_GCJ=
20364
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20365
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20367
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368
(exit $ac_status); }
20370
archive_cmds_need_lc_GCJ=no
20372
archive_cmds_need_lc_GCJ=yes
20374
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
20376
cat conftest.err 1>&5
20379
{ $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
20380
$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
20387
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20388
$as_echo_n "checking dynamic linker characteristics... " >&6; }
20389
library_names_spec=
20390
libname_spec='lib$name'
20394
postuninstall_cmds=
20398
shlibpath_overrides_runpath=unknown
20400
dynamic_linker="$host_os ld.so"
20401
sys_lib_dlsearch_path_spec="/lib /usr/lib"
20403
need_lib_prefix=unknown
20404
hardcode_into_libs=no
20406
# when you set need_version to no, make sure it does not cause -set_version
20407
# flags to be left without arguments
20408
need_version=unknown
20413
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20414
shlibpath_var=LIBPATH
20416
# AIX 3 has no versioning support, so we append a major version to the name.
20417
soname_spec='${libname}${release}${shared_ext}$major'
20424
hardcode_into_libs=yes
20425
if test "$host_cpu" = ia64; then
20426
# AIX 5 supports IA64
20427
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20428
shlibpath_var=LD_LIBRARY_PATH
20430
# With GCC up to 2.95.x, collect2 would create an import file
20431
# for dependence libraries. The import file would start with
20432
# the line `#! .'. This would cause the generated library to
20433
# depend on `.', always an invalid library. This was fixed in
20434
# development snapshots of GCC prior to 3.0.
20436
aix4 | aix4.[01] | aix4.[01].*)
20437
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20439
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20442
can_build_shared=no
20446
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20447
# soname into executable. Probably we can add versioning support to
20448
# collect2, so additional links can be useful in future.
20449
if test "$aix_use_runtimelinking" = yes; then
20450
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
20451
# instead of lib<name>.a to let people know that these are not
20452
# typical AIX shared libraries.
20453
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20455
# We preserve .a as extension for shared libraries through AIX4.2
20456
# and later when we are not doing run time linking.
20457
library_names_spec='${libname}${release}.a $libname.a'
20458
soname_spec='${libname}${release}${shared_ext}$major'
20460
shlibpath_var=LIBPATH
20465
library_names_spec='$libname.ixlibrary $libname.a'
20466
# Create ${libname}_ixlibrary.a entries in /sys/libs.
20467
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
20471
library_names_spec='${libname}${shared_ext}'
20472
dynamic_linker="$host_os ld.so"
20473
shlibpath_var=LIBRARY_PATH
20479
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20480
soname_spec='${libname}${release}${shared_ext}$major'
20481
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20482
shlibpath_var=LD_LIBRARY_PATH
20483
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20484
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20485
# the default ld.so.conf also contains /usr/contrib/lib and
20486
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20487
# libtool to hard-code these into programs
20490
cygwin* | mingw* | pw32*)
20491
version_type=windows
20496
case $GCC,$host_os in
20497
yes,cygwin* | yes,mingw* | yes,pw32*)
20498
library_names_spec='$libname.dll.a'
20499
# DLL is installed to $(libdir)/../bin by postinstall_cmds
20500
postinstall_cmds='base_file=`basename \${file}`~
20501
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20502
dldir=$destdir/`dirname \$dlpath`~
20503
test -d \$dldir || mkdir -p \$dldir~
20504
$install_prog $dir/$dlname \$dldir/$dlname~
20505
chmod a+x \$dldir/$dlname'
20506
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20507
dlpath=$dir/\$dldll~
20509
shlibpath_overrides_runpath=yes
20513
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
20514
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20515
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20518
# MinGW DLLs use traditional 'lib' prefix
20519
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20520
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20521
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20522
# It is most probably a Windows format PATH printed by
20523
# mingw gcc, but we are running on Cygwin. Gcc prints its search
20524
# path with ; separators, and with drive letters. We can handle the
20525
# drive letters (cygwin fileutils understands them), so leave them,
20526
# especially as we might pass files found there to a mingw objdump,
20527
# which wouldn't understand a cygwinified path. Ahh.
20528
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20530
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20534
# pw32 DLLs use 'pw' prefix rather than 'lib'
20535
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20541
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20544
dynamic_linker='Win32 ld.exe'
20545
# FIXME: first we should search . and the directory the executable is in
20549
darwin* | rhapsody*)
20550
dynamic_linker="$host_os dyld"
20551
version_type=darwin
20554
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20555
soname_spec='${libname}${release}${major}$shared_ext'
20556
shlibpath_overrides_runpath=yes
20557
shlibpath_var=DYLD_LIBRARY_PATH
20558
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20560
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20567
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20568
soname_spec='${libname}${release}${shared_ext}$major'
20569
shlibpath_var=LD_LIBRARY_PATH
20576
freebsd* | dragonfly*)
20577
# DragonFly does not have aout. When/if they implement a new
20578
# versioning mechanism, adjust this.
20579
if test -x /usr/bin/objformat; then
20580
objformat=`/usr/bin/objformat`
20583
freebsd[123]*) objformat=aout ;;
20584
*) objformat=elf ;;
20587
version_type=freebsd-$objformat
20588
case $version_type in
20590
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20595
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20599
shlibpath_var=LD_LIBRARY_PATH
20602
shlibpath_overrides_runpath=yes
20604
freebsd3.[01]* | freebsdelf3.[01]*)
20605
shlibpath_overrides_runpath=yes
20606
hardcode_into_libs=yes
20608
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20609
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20610
shlibpath_overrides_runpath=no
20611
hardcode_into_libs=yes
20613
*) # from 4.6 on, and DragonFly
20614
shlibpath_overrides_runpath=yes
20615
hardcode_into_libs=yes
20624
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20625
soname_spec='${libname}${release}${shared_ext}$major'
20626
shlibpath_var=LD_LIBRARY_PATH
20627
hardcode_into_libs=yes
20630
hpux9* | hpux10* | hpux11*)
20631
# Give a soname corresponding to the major version so that dld.sl refuses to
20632
# link against other versions.
20639
hardcode_into_libs=yes
20640
dynamic_linker="$host_os dld.so"
20641
shlibpath_var=LD_LIBRARY_PATH
20642
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20643
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20644
soname_spec='${libname}${release}${shared_ext}$major'
20645
if test "X$HPUX_IA64_MODE" = X32; then
20646
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20648
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20650
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20654
hardcode_into_libs=yes
20655
dynamic_linker="$host_os dld.sl"
20656
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20657
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20658
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20659
soname_spec='${libname}${release}${shared_ext}$major'
20660
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20661
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20665
dynamic_linker="$host_os dld.sl"
20666
shlibpath_var=SHLIB_PATH
20667
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20668
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20669
soname_spec='${libname}${release}${shared_ext}$major'
20672
# HP-UX runs *really* slowly unless shared libraries are mode 555.
20673
postinstall_cmds='chmod 555 $lib'
20680
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20681
soname_spec='${libname}${release}${shared_ext}$major'
20682
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20683
shlibpath_var=LD_LIBRARY_PATH
20684
shlibpath_overrides_runpath=no
20685
hardcode_into_libs=yes
20688
irix5* | irix6* | nonstopux*)
20690
nonstopux*) version_type=nonstopux ;;
20692
if test "$lt_cv_prog_gnu_ld" = yes; then
20700
soname_spec='${libname}${release}${shared_ext}$major'
20701
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20703
irix5* | nonstopux*)
20704
libsuff= shlibsuff=
20707
case $LD in # libtool.m4 will add one of these switches to LD
20708
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20709
libsuff= shlibsuff= libmagic=32-bit;;
20710
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20711
libsuff=32 shlibsuff=N32 libmagic=N32;;
20712
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20713
libsuff=64 shlibsuff=64 libmagic=64-bit;;
20714
*) libsuff= shlibsuff= libmagic=never-match;;
20718
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20719
shlibpath_overrides_runpath=no
20720
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20721
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20722
hardcode_into_libs=yes
20725
# No shared lib support for Linux oldld, aout, or coff.
20726
linux*oldld* | linux*aout* | linux*coff*)
20730
# This must be Linux ELF.
20731
linux* | k*bsd*-gnu)
20735
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20736
soname_spec='${libname}${release}${shared_ext}$major'
20737
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20738
shlibpath_var=LD_LIBRARY_PATH
20739
shlibpath_overrides_runpath=no
20740
# This implies no fast_install, which is unacceptable.
20741
# Some rework will be needed to allow for fast_install
20742
# before this can be enabled.
20743
hardcode_into_libs=yes
20744
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20745
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20747
# Append ld.so.conf contents to the search path
20748
if test -f /etc/ld.so.conf; then
20749
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
20750
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
20753
# We used to test for /lib/ld.so.1 and disable shared libraries on
20754
# powerpc, because MkLinux only supported shared libraries with the
20755
# GNU dynamic linker. Since this was broken with cross compilers,
20756
# most powerpc-linux boxes support dynamic linking these days and
20757
# people can always --disable-shared, the test was removed, and we
20758
# assume the GNU/Linux dynamic linker is in use.
20759
dynamic_linker='GNU/Linux ld.so'
20766
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20767
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20768
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20769
dynamic_linker='NetBSD (a.out) ld.so'
20771
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20772
soname_spec='${libname}${release}${shared_ext}$major'
20773
dynamic_linker='NetBSD ld.elf_so'
20775
shlibpath_var=LD_LIBRARY_PATH
20776
shlibpath_overrides_runpath=yes
20777
hardcode_into_libs=yes
20782
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20783
shlibpath_var=LD_LIBRARY_PATH
20784
shlibpath_overrides_runpath=yes
20791
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20792
soname_spec='${libname}${release}${shared_ext}$major'
20793
shlibpath_var=LD_LIBRARY_PATH
20794
shlibpath_overrides_runpath=yes
20799
sys_lib_dlsearch_path_spec="/usr/lib"
20801
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20803
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20804
*) need_version=no ;;
20806
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20807
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20808
shlibpath_var=LD_LIBRARY_PATH
20809
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20811
openbsd2.[89] | openbsd2.[89].*)
20812
shlibpath_overrides_runpath=no
20815
shlibpath_overrides_runpath=yes
20819
shlibpath_overrides_runpath=yes
20824
libname_spec='$name'
20827
library_names_spec='$libname${shared_ext} $libname.a'
20828
dynamic_linker='OS/2 ld.exe'
20829
shlibpath_var=LIBPATH
20832
osf3* | osf4* | osf5*)
20836
soname_spec='${libname}${release}${shared_ext}$major'
20837
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20838
shlibpath_var=LD_LIBRARY_PATH
20839
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20840
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20851
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20852
soname_spec='${libname}${release}${shared_ext}$major'
20853
shlibpath_var=LD_LIBRARY_PATH
20854
shlibpath_overrides_runpath=yes
20855
hardcode_into_libs=yes
20856
# ldd complains unless libraries are executable
20857
postinstall_cmds='chmod +x $lib'
20862
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20863
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20864
shlibpath_var=LD_LIBRARY_PATH
20865
shlibpath_overrides_runpath=yes
20866
if test "$with_gnu_ld" = yes; then
20874
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20875
soname_spec='${libname}${release}${shared_ext}$major'
20876
shlibpath_var=LD_LIBRARY_PATH
20877
case $host_vendor in
20879
shlibpath_overrides_runpath=no
20881
export_dynamic_flag_spec='${wl}-Blargedynsym'
20882
runpath_var=LD_RUN_PATH
20890
shlibpath_overrides_runpath=no
20891
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20897
if test -d /usr/nec ;then
20899
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20900
soname_spec='$libname${shared_ext}.$major'
20901
shlibpath_var=LD_LIBRARY_PATH
20905
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20906
version_type=freebsd-elf
20909
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20910
soname_spec='${libname}${release}${shared_ext}$major'
20911
shlibpath_var=LD_LIBRARY_PATH
20912
hardcode_into_libs=yes
20913
if test "$with_gnu_ld" = yes; then
20914
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20915
shlibpath_overrides_runpath=no
20917
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20918
shlibpath_overrides_runpath=yes
20921
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20925
sys_lib_dlsearch_path_spec='/usr/lib'
20930
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20931
soname_spec='${libname}${release}${shared_ext}$major'
20932
shlibpath_var=LD_LIBRARY_PATH
20939
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20940
$as_echo "$dynamic_linker" >&6; }
20941
test "$dynamic_linker" = no && can_build_shared=no
20943
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20944
$as_echo_n "(cached) " >&6
20946
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
20949
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20950
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20951
$as_echo_n "(cached) " >&6
20953
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
20956
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20958
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20959
if test "$GCC" = yes; then
20960
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20963
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20964
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20965
hardcode_action_GCJ=
20966
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20967
test -n "$runpath_var_GCJ" || \
20968
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20970
# We can hardcode non-existant directories.
20971
if test "$hardcode_direct_GCJ" != no &&
20972
# If the only mechanism to avoid hardcoding is shlibpath_var, we
20973
# have to relink, otherwise we might link with an installed library
20974
# when we should be linking with a yet-to-be-installed one
20975
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20976
test "$hardcode_minus_L_GCJ" != no; then
20977
# Linking always hardcodes the temporary library directory.
20978
hardcode_action_GCJ=relink
20980
# We can link without hardcoding, and we can hardcode nonexisting dirs.
20981
hardcode_action_GCJ=immediate
20984
# We cannot hardcode anything, or else we can only hardcode existing
20986
hardcode_action_GCJ=unsupported
20988
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20989
$as_echo "$hardcode_action_GCJ" >&6; }
20991
if test "$hardcode_action_GCJ" = relink; then
20992
# Fast installation is not supported
20993
enable_fast_install=no
20994
elif test "$shlibpath_overrides_runpath" = yes ||
20995
test "$enable_shared" = no; then
20996
# Fast installation is not necessary
20997
enable_fast_install=needless
21001
# The else clause should only fire when bootstrapping the
21002
# libtool distribution, otherwise you forgot to ship ltmain.sh
21003
# with your package, and you will get complaints that there are
21004
# no rules to generate ltmain.sh.
21005
if test -f "$ltmain"; then
21006
# See if we are running on zsh, and set the options which allow our commands through
21007
# without removal of \ escapes.
21008
if test -n "${ZSH_VERSION+set}" ; then
21009
setopt NO_GLOB_SUBST
21011
# Now quote all the things that may contain metacharacters while being
21012
# careful not to overquote the AC_SUBSTed values. We take copies of the
21013
# variables and quote the copies for generation of the libtool script.
21014
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21016
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21017
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21018
deplibs_check_method reload_flag reload_cmds need_locks \
21019
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21020
lt_cv_sys_global_symbol_to_c_name_address \
21021
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21022
old_postinstall_cmds old_postuninstall_cmds \
21026
lt_prog_compiler_wl_GCJ \
21027
lt_prog_compiler_pic_GCJ \
21028
lt_prog_compiler_static_GCJ \
21029
lt_prog_compiler_no_builtin_flag_GCJ \
21030
export_dynamic_flag_spec_GCJ \
21031
thread_safe_flag_spec_GCJ \
21032
whole_archive_flag_spec_GCJ \
21033
enable_shared_with_static_runtimes_GCJ \
21034
old_archive_cmds_GCJ \
21035
old_archive_from_new_cmds_GCJ \
21036
predep_objects_GCJ \
21037
postdep_objects_GCJ \
21040
compiler_lib_search_path_GCJ \
21041
compiler_lib_search_dirs_GCJ \
21043
archive_expsym_cmds_GCJ \
21044
postinstall_cmds_GCJ \
21045
postuninstall_cmds_GCJ \
21046
old_archive_from_expsyms_cmds_GCJ \
21047
allow_undefined_flag_GCJ \
21048
no_undefined_flag_GCJ \
21049
export_symbols_cmds_GCJ \
21050
hardcode_libdir_flag_spec_GCJ \
21051
hardcode_libdir_flag_spec_ld_GCJ \
21052
hardcode_libdir_separator_GCJ \
21053
hardcode_automatic_GCJ \
21055
module_expsym_cmds_GCJ \
21056
lt_cv_prog_compiler_c_o_GCJ \
21057
fix_srcfile_path_GCJ \
21058
exclude_expsyms_GCJ \
21059
include_expsyms_GCJ; do
21062
old_archive_cmds_GCJ | \
21063
old_archive_from_new_cmds_GCJ | \
21064
archive_cmds_GCJ | \
21065
archive_expsym_cmds_GCJ | \
21066
module_cmds_GCJ | \
21067
module_expsym_cmds_GCJ | \
21068
old_archive_from_expsyms_cmds_GCJ | \
21069
export_symbols_cmds_GCJ | \
21070
extract_expsyms_cmds | reload_cmds | finish_cmds | \
21071
postinstall_cmds | postuninstall_cmds | \
21072
old_postinstall_cmds | old_postuninstall_cmds | \
21073
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21074
# Double-quote double-evaled strings.
21075
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21078
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21084
*'\$0 --fallback-echo"')
21085
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21091
cat <<__EOF__ >> "$cfgfile"
21092
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
21094
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21096
# Shell to use when invoking shell scripts.
21099
# Whether or not to build shared libraries.
21100
build_libtool_libs=$enable_shared
21102
# Whether or not to build static libraries.
21103
build_old_libs=$enable_static
21105
# Whether or not to add -lc for building shared libraries.
21106
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
21108
# Whether or not to disallow shared libs when runtime libs are static
21109
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
21111
# Whether or not to optimize for fast installation.
21112
fast_install=$enable_fast_install
21115
host_alias=$host_alias
21119
# The build system.
21120
build_alias=$build_alias
21124
# An echo program that does not interpret backslashes.
21129
AR_FLAGS=$lt_AR_FLAGS
21134
# LTCC compiler flags.
21135
LTCFLAGS=$lt_LTCFLAGS
21137
# A language-specific compiler.
21138
CC=$lt_compiler_GCJ
21140
# Is the compiler the GNU C compiler?
21146
# The linker used to build libraries.
21149
# Whether we need hard or soft links.
21152
# A BSD-compatible nm program.
21155
# A symbol stripping program
21158
# Used to examine libraries when file_magic_cmd begins "file"
21159
MAGIC_CMD=$MAGIC_CMD
21161
# Used on cygwin: DLL creation program.
21164
# Used on cygwin: object dumper.
21167
# Used on cygwin: assembler.
21170
# The name of the directory that contains temporary libtool files.
21173
# How to create reloadable object files.
21174
reload_flag=$lt_reload_flag
21175
reload_cmds=$lt_reload_cmds
21177
# How to pass a linker flag through the compiler.
21178
wl=$lt_lt_prog_compiler_wl_GCJ
21180
# Object file suffix (normally "o").
21181
objext="$ac_objext"
21183
# Old archive suffix (normally "a").
21186
# Shared library suffix (normally ".so").
21187
shrext_cmds='$shrext_cmds'
21189
# Executable file suffix (normally "").
21192
# Additional compiler flags for building library objects.
21193
pic_flag=$lt_lt_prog_compiler_pic_GCJ
21196
# What is the maximum length of a command?
21197
max_cmd_len=$lt_cv_sys_max_cmd_len
21199
# Does compiler simultaneously support -c and -o options?
21200
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
21202
# Must we lock files when doing compilation?
21203
need_locks=$lt_need_locks
21205
# Do we need the lib prefix for modules?
21206
need_lib_prefix=$need_lib_prefix
21208
# Do we need a version for libraries?
21209
need_version=$need_version
21211
# Whether dlopen is supported.
21212
dlopen_support=$enable_dlopen
21214
# Whether dlopen of programs is supported.
21215
dlopen_self=$enable_dlopen_self
21217
# Whether dlopen of statically linked programs is supported.
21218
dlopen_self_static=$enable_dlopen_self_static
21220
# Compiler flag to prevent dynamic linking.
21221
link_static_flag=$lt_lt_prog_compiler_static_GCJ
21223
# Compiler flag to turn off builtin functions.
21224
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
21226
# Compiler flag to allow reflexive dlopens.
21227
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
21229
# Compiler flag to generate shared objects directly from archives.
21230
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
21232
# Compiler flag to generate thread-safe objects.
21233
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
21235
# Library versioning type.
21236
version_type=$version_type
21238
# Format of library name prefix.
21239
libname_spec=$lt_libname_spec
21241
# List of archive names. First name is the real one, the rest are links.
21242
# The last name is the one that the linker finds with -lNAME.
21243
library_names_spec=$lt_library_names_spec
21245
# The coded name of the library, if different from the real name.
21246
soname_spec=$lt_soname_spec
21248
# Commands used to build and install an old-style archive.
21250
old_archive_cmds=$lt_old_archive_cmds_GCJ
21251
old_postinstall_cmds=$lt_old_postinstall_cmds
21252
old_postuninstall_cmds=$lt_old_postuninstall_cmds
21254
# Create an old-style archive from a shared archive.
21255
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
21257
# Create a temporary old-style archive to link instead of a shared archive.
21258
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
21260
# Commands used to build and install a shared archive.
21261
archive_cmds=$lt_archive_cmds_GCJ
21262
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
21263
postinstall_cmds=$lt_postinstall_cmds
21264
postuninstall_cmds=$lt_postuninstall_cmds
21266
# Commands used to build a loadable module (assumed same as above if empty)
21267
module_cmds=$lt_module_cmds_GCJ
21268
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
21270
# Commands to strip libraries.
21271
old_striplib=$lt_old_striplib
21272
striplib=$lt_striplib
21274
# Dependencies to place before the objects being linked to create a
21276
predep_objects=$lt_predep_objects_GCJ
21278
# Dependencies to place after the objects being linked to create a
21280
postdep_objects=$lt_postdep_objects_GCJ
21282
# Dependencies to place before the objects being linked to create a
21284
predeps=$lt_predeps_GCJ
21286
# Dependencies to place after the objects being linked to create a
21288
postdeps=$lt_postdeps_GCJ
21290
# The directories searched by this compiler when creating a shared
21292
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
21294
# The library search path used internally by the compiler when linking
21295
# a shared library.
21296
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
21298
# Method to check whether dependent libraries are shared objects.
21299
deplibs_check_method=$lt_deplibs_check_method
21301
# Command to use when deplibs_check_method == file_magic.
21302
file_magic_cmd=$lt_file_magic_cmd
21304
# Flag that allows shared libraries with undefined symbols to be built.
21305
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
21307
# Flag that forces no undefined symbols.
21308
no_undefined_flag=$lt_no_undefined_flag_GCJ
21310
# Commands used to finish a libtool library installation in a directory.
21311
finish_cmds=$lt_finish_cmds
21313
# Same as above, but a single script fragment to be evaled but not shown.
21314
finish_eval=$lt_finish_eval
21316
# Take the output of nm and produce a listing of raw symbols and C names.
21317
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21319
# Transform the output of nm in a proper C declaration
21320
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21322
# Transform the output of nm in a C name address pair
21323
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21325
# This is the shared library runtime path variable.
21326
runpath_var=$runpath_var
21328
# This is the shared library path variable.
21329
shlibpath_var=$shlibpath_var
21331
# Is shlibpath searched before the hard-coded library search path?
21332
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21334
# How to hardcode a shared library path into an executable.
21335
hardcode_action=$hardcode_action_GCJ
21337
# Whether we should hardcode library paths into libraries.
21338
hardcode_into_libs=$hardcode_into_libs
21340
# Flag to hardcode \$libdir into a binary during linking.
21341
# This must work even if \$libdir does not exist.
21342
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
21344
# If ld is used when linking, flag to hardcode \$libdir into
21345
# a binary during linking. This must work even if \$libdir does
21347
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
21349
# Whether we need a single -rpath flag with a separated argument.
21350
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
21352
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21353
# resulting binary.
21354
hardcode_direct=$hardcode_direct_GCJ
21356
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21357
# resulting binary.
21358
hardcode_minus_L=$hardcode_minus_L_GCJ
21360
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21361
# the resulting binary.
21362
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
21364
# Set to yes if building a shared library automatically hardcodes DIR into the library
21365
# and all subsequent libraries and executables linked against it.
21366
hardcode_automatic=$hardcode_automatic_GCJ
21368
# Variables whose values should be saved in libtool wrapper scripts and
21369
# restored at relink time.
21370
variables_saved_for_relink="$variables_saved_for_relink"
21372
# Whether libtool must link a program against all its dependency libraries.
21373
link_all_deplibs=$link_all_deplibs_GCJ
21375
# Compile-time system search path for libraries
21376
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21378
# Run-time system search path for libraries
21379
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21381
# Fix the shell variable \$srcfile for the compiler.
21382
fix_srcfile_path=$lt_fix_srcfile_path
21384
# Set to yes if exported symbols are required.
21385
always_export_symbols=$always_export_symbols_GCJ
21387
# The commands to list exported symbols.
21388
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
21390
# The commands to extract the exported symbol list from a shared archive.
21391
extract_expsyms_cmds=$lt_extract_expsyms_cmds
21393
# Symbols that should not be listed in the preloaded symbols.
21394
exclude_expsyms=$lt_exclude_expsyms_GCJ
21396
# Symbols that must always be exported.
21397
include_expsyms=$lt_include_expsyms_GCJ
21399
# ### END LIBTOOL TAG CONFIG: $tagname
21405
# If there is no Makefile yet, we rely on a make rule to execute
21406
# `config.status --recheck' to rerun these tests and create the
21407
# libtool script then.
21408
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21409
if test -f "$ltmain_in"; then
21410
test -f Makefile && make "$ltmain"
21416
ac_cpp='$CPP $CPPFLAGS'
21417
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21418
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21419
ac_compiler_gnu=$ac_cv_c_compiler_gnu
21431
# Source file extension for RC test sources.
21434
# Object file extension for compiled RC test sources.
21438
# Code to be used in simple compile tests
21439
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
21441
# Code to be used in simple link tests
21442
lt_simple_link_test_code="$lt_simple_compile_test_code"
21444
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21446
# If no C compiler was specified, use CC.
21449
# If no C compiler flags were specified, use CFLAGS.
21450
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21452
# Allow CC to be a program name with arguments.
21456
# save warnings/boilerplate of simple test code
21457
ac_outfile=conftest.$ac_objext
21458
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
21459
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21460
_lt_compiler_boilerplate=`cat conftest.err`
21463
ac_outfile=conftest.$ac_objext
21464
echo "$lt_simple_link_test_code" >conftest.$ac_ext
21465
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21466
_lt_linker_boilerplate=`cat conftest.err`
21470
# Allow CC to be a program name with arguments.
21475
for cc_temp in $compiler""; do
21477
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21478
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21483
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21485
lt_cv_prog_compiler_c_o_RC=yes
21487
# The else clause should only fire when bootstrapping the
21488
# libtool distribution, otherwise you forgot to ship ltmain.sh
21489
# with your package, and you will get complaints that there are
21490
# no rules to generate ltmain.sh.
21491
if test -f "$ltmain"; then
21492
# See if we are running on zsh, and set the options which allow our commands through
21493
# without removal of \ escapes.
21494
if test -n "${ZSH_VERSION+set}" ; then
21495
setopt NO_GLOB_SUBST
21497
# Now quote all the things that may contain metacharacters while being
21498
# careful not to overquote the AC_SUBSTed values. We take copies of the
21499
# variables and quote the copies for generation of the libtool script.
21500
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21502
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21503
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21504
deplibs_check_method reload_flag reload_cmds need_locks \
21505
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21506
lt_cv_sys_global_symbol_to_c_name_address \
21507
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21508
old_postinstall_cmds old_postuninstall_cmds \
21512
lt_prog_compiler_wl_RC \
21513
lt_prog_compiler_pic_RC \
21514
lt_prog_compiler_static_RC \
21515
lt_prog_compiler_no_builtin_flag_RC \
21516
export_dynamic_flag_spec_RC \
21517
thread_safe_flag_spec_RC \
21518
whole_archive_flag_spec_RC \
21519
enable_shared_with_static_runtimes_RC \
21520
old_archive_cmds_RC \
21521
old_archive_from_new_cmds_RC \
21522
predep_objects_RC \
21523
postdep_objects_RC \
21526
compiler_lib_search_path_RC \
21527
compiler_lib_search_dirs_RC \
21529
archive_expsym_cmds_RC \
21530
postinstall_cmds_RC \
21531
postuninstall_cmds_RC \
21532
old_archive_from_expsyms_cmds_RC \
21533
allow_undefined_flag_RC \
21534
no_undefined_flag_RC \
21535
export_symbols_cmds_RC \
21536
hardcode_libdir_flag_spec_RC \
21537
hardcode_libdir_flag_spec_ld_RC \
21538
hardcode_libdir_separator_RC \
21539
hardcode_automatic_RC \
21541
module_expsym_cmds_RC \
21542
lt_cv_prog_compiler_c_o_RC \
21543
fix_srcfile_path_RC \
21544
exclude_expsyms_RC \
21545
include_expsyms_RC; do
21548
old_archive_cmds_RC | \
21549
old_archive_from_new_cmds_RC | \
21550
archive_cmds_RC | \
21551
archive_expsym_cmds_RC | \
21553
module_expsym_cmds_RC | \
21554
old_archive_from_expsyms_cmds_RC | \
21555
export_symbols_cmds_RC | \
21556
extract_expsyms_cmds | reload_cmds | finish_cmds | \
21557
postinstall_cmds | postuninstall_cmds | \
21558
old_postinstall_cmds | old_postuninstall_cmds | \
21559
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21560
# Double-quote double-evaled strings.
21561
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21564
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21570
*'\$0 --fallback-echo"')
21571
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21577
cat <<__EOF__ >> "$cfgfile"
21578
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
21580
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21582
# Shell to use when invoking shell scripts.
21585
# Whether or not to build shared libraries.
21586
build_libtool_libs=$enable_shared
21588
# Whether or not to build static libraries.
21589
build_old_libs=$enable_static
21591
# Whether or not to add -lc for building shared libraries.
21592
build_libtool_need_lc=$archive_cmds_need_lc_RC
21594
# Whether or not to disallow shared libs when runtime libs are static
21595
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
21597
# Whether or not to optimize for fast installation.
21598
fast_install=$enable_fast_install
21601
host_alias=$host_alias
21605
# The build system.
21606
build_alias=$build_alias
21610
# An echo program that does not interpret backslashes.
21615
AR_FLAGS=$lt_AR_FLAGS
21620
# LTCC compiler flags.
21621
LTCFLAGS=$lt_LTCFLAGS
21623
# A language-specific compiler.
21626
# Is the compiler the GNU C compiler?
21632
# The linker used to build libraries.
21635
# Whether we need hard or soft links.
21638
# A BSD-compatible nm program.
21641
# A symbol stripping program
21644
# Used to examine libraries when file_magic_cmd begins "file"
21645
MAGIC_CMD=$MAGIC_CMD
21647
# Used on cygwin: DLL creation program.
21650
# Used on cygwin: object dumper.
21653
# Used on cygwin: assembler.
21656
# The name of the directory that contains temporary libtool files.
21659
# How to create reloadable object files.
21660
reload_flag=$lt_reload_flag
21661
reload_cmds=$lt_reload_cmds
21663
# How to pass a linker flag through the compiler.
21664
wl=$lt_lt_prog_compiler_wl_RC
21666
# Object file suffix (normally "o").
21667
objext="$ac_objext"
21669
# Old archive suffix (normally "a").
21672
# Shared library suffix (normally ".so").
21673
shrext_cmds='$shrext_cmds'
21675
# Executable file suffix (normally "").
21678
# Additional compiler flags for building library objects.
21679
pic_flag=$lt_lt_prog_compiler_pic_RC
21682
# What is the maximum length of a command?
21683
max_cmd_len=$lt_cv_sys_max_cmd_len
21685
# Does compiler simultaneously support -c and -o options?
21686
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21688
# Must we lock files when doing compilation?
21689
need_locks=$lt_need_locks
21691
# Do we need the lib prefix for modules?
21692
need_lib_prefix=$need_lib_prefix
21694
# Do we need a version for libraries?
21695
need_version=$need_version
21697
# Whether dlopen is supported.
21698
dlopen_support=$enable_dlopen
21700
# Whether dlopen of programs is supported.
21701
dlopen_self=$enable_dlopen_self
21703
# Whether dlopen of statically linked programs is supported.
21704
dlopen_self_static=$enable_dlopen_self_static
21706
# Compiler flag to prevent dynamic linking.
21707
link_static_flag=$lt_lt_prog_compiler_static_RC
21709
# Compiler flag to turn off builtin functions.
21710
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21712
# Compiler flag to allow reflexive dlopens.
21713
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21715
# Compiler flag to generate shared objects directly from archives.
21716
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21718
# Compiler flag to generate thread-safe objects.
21719
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21721
# Library versioning type.
21722
version_type=$version_type
21724
# Format of library name prefix.
21725
libname_spec=$lt_libname_spec
21727
# List of archive names. First name is the real one, the rest are links.
21728
# The last name is the one that the linker finds with -lNAME.
21729
library_names_spec=$lt_library_names_spec
21731
# The coded name of the library, if different from the real name.
21732
soname_spec=$lt_soname_spec
21734
# Commands used to build and install an old-style archive.
21736
old_archive_cmds=$lt_old_archive_cmds_RC
21737
old_postinstall_cmds=$lt_old_postinstall_cmds
21738
old_postuninstall_cmds=$lt_old_postuninstall_cmds
21740
# Create an old-style archive from a shared archive.
21741
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21743
# Create a temporary old-style archive to link instead of a shared archive.
21744
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21746
# Commands used to build and install a shared archive.
21747
archive_cmds=$lt_archive_cmds_RC
21748
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21749
postinstall_cmds=$lt_postinstall_cmds
21750
postuninstall_cmds=$lt_postuninstall_cmds
21752
# Commands used to build a loadable module (assumed same as above if empty)
21753
module_cmds=$lt_module_cmds_RC
21754
module_expsym_cmds=$lt_module_expsym_cmds_RC
21756
# Commands to strip libraries.
21757
old_striplib=$lt_old_striplib
21758
striplib=$lt_striplib
21760
# Dependencies to place before the objects being linked to create a
21762
predep_objects=$lt_predep_objects_RC
21764
# Dependencies to place after the objects being linked to create a
21766
postdep_objects=$lt_postdep_objects_RC
21768
# Dependencies to place before the objects being linked to create a
21770
predeps=$lt_predeps_RC
21772
# Dependencies to place after the objects being linked to create a
21774
postdeps=$lt_postdeps_RC
21776
# The directories searched by this compiler when creating a shared
21778
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
21780
# The library search path used internally by the compiler when linking
21781
# a shared library.
21782
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21784
# Method to check whether dependent libraries are shared objects.
21785
deplibs_check_method=$lt_deplibs_check_method
21787
# Command to use when deplibs_check_method == file_magic.
21788
file_magic_cmd=$lt_file_magic_cmd
21790
# Flag that allows shared libraries with undefined symbols to be built.
21791
allow_undefined_flag=$lt_allow_undefined_flag_RC
21793
# Flag that forces no undefined symbols.
21794
no_undefined_flag=$lt_no_undefined_flag_RC
21796
# Commands used to finish a libtool library installation in a directory.
21797
finish_cmds=$lt_finish_cmds
21799
# Same as above, but a single script fragment to be evaled but not shown.
21800
finish_eval=$lt_finish_eval
21802
# Take the output of nm and produce a listing of raw symbols and C names.
21803
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21805
# Transform the output of nm in a proper C declaration
21806
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21808
# Transform the output of nm in a C name address pair
21809
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21811
# This is the shared library runtime path variable.
21812
runpath_var=$runpath_var
21814
# This is the shared library path variable.
21815
shlibpath_var=$shlibpath_var
21817
# Is shlibpath searched before the hard-coded library search path?
21818
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21820
# How to hardcode a shared library path into an executable.
21821
hardcode_action=$hardcode_action_RC
21823
# Whether we should hardcode library paths into libraries.
21824
hardcode_into_libs=$hardcode_into_libs
21826
# Flag to hardcode \$libdir into a binary during linking.
21827
# This must work even if \$libdir does not exist.
21828
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21830
# If ld is used when linking, flag to hardcode \$libdir into
21831
# a binary during linking. This must work even if \$libdir does
21833
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21835
# Whether we need a single -rpath flag with a separated argument.
21836
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21838
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21839
# resulting binary.
21840
hardcode_direct=$hardcode_direct_RC
21842
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21843
# resulting binary.
21844
hardcode_minus_L=$hardcode_minus_L_RC
21846
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21847
# the resulting binary.
21848
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21850
# Set to yes if building a shared library automatically hardcodes DIR into the library
21851
# and all subsequent libraries and executables linked against it.
21852
hardcode_automatic=$hardcode_automatic_RC
21854
# Variables whose values should be saved in libtool wrapper scripts and
21855
# restored at relink time.
21856
variables_saved_for_relink="$variables_saved_for_relink"
21858
# Whether libtool must link a program against all its dependency libraries.
21859
link_all_deplibs=$link_all_deplibs_RC
21861
# Compile-time system search path for libraries
21862
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21864
# Run-time system search path for libraries
21865
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21867
# Fix the shell variable \$srcfile for the compiler.
21868
fix_srcfile_path=$lt_fix_srcfile_path
21870
# Set to yes if exported symbols are required.
21871
always_export_symbols=$always_export_symbols_RC
21873
# The commands to list exported symbols.
21874
export_symbols_cmds=$lt_export_symbols_cmds_RC
21876
# The commands to extract the exported symbol list from a shared archive.
21877
extract_expsyms_cmds=$lt_extract_expsyms_cmds
21879
# Symbols that should not be listed in the preloaded symbols.
21880
exclude_expsyms=$lt_exclude_expsyms_RC
21882
# Symbols that must always be exported.
21883
include_expsyms=$lt_include_expsyms_RC
21885
# ### END LIBTOOL TAG CONFIG: $tagname
21891
# If there is no Makefile yet, we rely on a make rule to execute
21892
# `config.status --recheck' to rerun these tests and create the
21893
# libtool script then.
21894
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21895
if test -f "$ltmain_in"; then
21896
test -f Makefile && make "$ltmain"
21902
ac_cpp='$CPP $CPPFLAGS'
21903
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21904
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21905
ac_compiler_gnu=$ac_cv_c_compiler_gnu
21912
{ { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21913
$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21914
{ (exit 1); exit 1; }; }
21918
# Append the new tag name to the list of available tags.
21919
if test -n "$tagname" ; then
21920
available_tags="$available_tags $tagname"
21926
# Now substitute the updated list of available tags.
21927
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21928
mv "${ofile}T" "$ofile"
21932
{ { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21933
$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21934
{ (exit 1); exit 1; }; }
21940
# This can be used to rebuild libtool when needed
21941
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21943
# Always use our own libtool.
21944
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21946
# Prevent multiple expansion
17371
if test "$hardcode_action_CXX" = relink ||
17372
test "$inherit_rpath_CXX" = yes; then
17373
# Fast installation is not supported
17374
enable_fast_install=no
17375
elif test "$shlibpath_overrides_runpath" = yes ||
17376
test "$enable_shared" = no; then
17377
# Fast installation is not necessary
17378
enable_fast_install=needless
17387
fi # test -n "$compiler"
17393
with_gnu_ld=$lt_save_with_gnu_ld
17394
lt_cv_path_LDCXX=$lt_cv_path_LD
17395
lt_cv_path_LD=$lt_save_path_LD
17396
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17397
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17398
fi # test "$_lt_caught_CXX_error" != yes
17401
ac_cpp='$CPP $CPPFLAGS'
17402
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17403
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17404
ac_compiler_gnu=$ac_cv_c_compiler_gnu
17418
ac_config_commands="$ac_config_commands libtool"
17423
# Only expand once: