4636
if test "$GCC" = yes; then
4637
# Check to see if options -fno-rtti -fno-exceptions are supported by compiler
4638
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
4639
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
4640
echo "int some_variable = 0;" > conftest.$ac_ext
4641
save_CFLAGS="$CFLAGS"
4642
CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
4643
compiler_rtti_exceptions=no
4644
cat >conftest.$ac_ext <<_ACEOF
4645
#line $LINENO "configure"
4648
cat confdefs.h >>conftest.$ac_ext
4649
cat >>conftest.$ac_ext <<_ACEOF
4650
/* end confdefs.h. */
4655
int some_variable = 0;
4660
rm -f conftest.$ac_objext
4661
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4662
(eval $ac_compile) 2>&5
4664
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665
(exit $ac_status); } &&
4666
{ ac_try='test -s conftest.$ac_objext'
4667
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4670
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671
(exit $ac_status); }; }; then
4672
# The compiler can only warn and ignore the option if not recognized
4673
# So say no if there are warnings
4674
if test -s conftest.err; then
4675
compiler_rtti_exceptions=no
4677
compiler_rtti_exceptions=yes
6048
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6049
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6052
allow_undefined_flag=
6053
enable_shared_with_static_runtimes=no
6055
archive_expsym_cmds=
6056
old_archive_From_new_cmds=
6057
old_archive_from_expsyms_cmds=
6058
export_dynamic_flag_spec=
6059
whole_archive_flag_spec=
6060
thread_safe_flag_spec=
6061
hardcode_libdir_flag_spec=
6062
hardcode_libdir_flag_spec_ld=
6063
hardcode_libdir_separator=
6066
hardcode_shlibpath_var=unsupported
6067
link_all_deplibs=unknown
6068
hardcode_automatic=no
6071
always_export_symbols=no
6072
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6073
# include_expsyms should be a list of space-separated symbols to be *always*
6074
# included in the symbol list
6076
# exclude_expsyms can be an extended regexp of symbols to exclude
6077
# it will be wrapped by ` (' and `)$', so one must not match beginning or
6078
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6079
# as well as any symbol that contains `d'.
6080
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6081
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6082
# platforms (ab)use it in PIC code, but their linkers get confused if
6083
# the symbol is explicitly referenced. Since portable code cannot
6084
# rely on this symbol name, it's probably fine to never include it in
6085
# preloaded symbol tables.
6086
extract_expsyms_cmds=
6087
# Just being paranoid about ensuring that cc_basename is set.
6088
for cc_temp in $compiler""; do
6090
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6091
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6096
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6099
cygwin* | mingw* | pw32*)
6100
# FIXME: the MSVC++ port hasn't been tested in a loooong time
6101
# When not using gcc, we currently assume that we are using
6102
# Microsoft Visual C++.
6103
if test "$GCC" != yes; then
4681
echo "$as_me: failed program was:" >&5
4682
sed 's/^/| /' conftest.$ac_ext >&5
4685
rm -f conftest.$ac_objext conftest.$ac_ext
4686
CFLAGS="$save_CFLAGS"
4687
echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
4688
echo "${ECHO_T}$compiler_rtti_exceptions" >&6
4690
if test "$compiler_rtti_exceptions" = "yes"; then
4691
no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
4693
no_builtin_flag=' -fno-builtin'
4697
# See if the linker supports building shared libraries.
4698
echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
4699
echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
4701
allow_undefined_flag=
4703
need_lib_prefix=unknown
4704
need_version=unknown
4705
# when you set need_version to no, make sure it does not cause -set_version
4706
# flags to be left without arguments
4708
archive_expsym_cmds=
4709
old_archive_from_new_cmds=
4710
old_archive_from_expsyms_cmds=
4711
export_dynamic_flag_spec=
4712
whole_archive_flag_spec=
4713
thread_safe_flag_spec=
4714
hardcode_into_libs=no
4715
hardcode_libdir_flag_spec=
4716
hardcode_libdir_separator=
4719
hardcode_shlibpath_var=unsupported
4721
link_all_deplibs=unknown
4722
always_export_symbols=no
4723
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
4724
# include_expsyms should be a list of space-separated symbols to be *always*
4725
# included in the symbol list
4727
# exclude_expsyms can be an egrep regular expression of symbols to exclude
4728
# it will be wrapped by ` (' and `)$', so one must not match beginning or
4729
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4730
# as well as any symbol that contains `d'.
4731
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
4732
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4733
# platforms (ab)use it in PIC code, but their linkers get confused if
4734
# the symbol is explicitly referenced. Since portable code cannot
4735
# rely on this symbol name, it's probably fine to never include it in
4736
# preloaded symbol tables.
4737
extract_expsyms_cmds=
4740
cygwin* | mingw* | pw32*)
4741
# FIXME: the MSVC++ port hasn't been tested in a loooong time
4742
# When not using gcc, we currently assume that we are using
4743
# Microsoft Visual C++.
4744
if test "$GCC" != yes; then
4754
if test "$with_gnu_ld" = yes; then
4755
# If archive_cmds runs LD, not CC, wlarc should be empty
4758
# See if GNU ld supports shared libraries.
4760
aix3* | aix4* | aix5*)
4761
# On AIX, the GNU linker is very broken
4762
# Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
4766
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
4767
*** to be unable to reliably create shared libraries on AIX.
4768
*** Therefore, libtool is disabling shared libraries support. If you
4769
*** really care for shared libraries, you may want to modify your PATH
4770
*** so that a non-GNU linker is found, and then restart.
4776
archive_cmds='$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)'
4777
hardcode_libdir_flag_spec='-L$libdir'
4778
hardcode_minus_L=yes
4780
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
4781
# that the semantics of dynamic libraries on AmigaOS, at least up
4782
# to version 4, is to share data among multiple programs linked
4783
# with the same dynamic library. Since this doesn't match the
4784
# behavior of shared libraries on other platforms, we can use
4790
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4791
allow_undefined_flag=unsupported
4792
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4793
# support --undefined. This deserves some investigation. FIXME
4794
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4800
cygwin* | mingw* | pw32*)
4801
# hardcode_libdir_flag_spec is actually meaningless, as there is
4802
# no search path for DLLs.
4803
hardcode_libdir_flag_spec='-L$libdir'
4804
allow_undefined_flag=unsupported
4805
always_export_symbols=yes
4807
extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
4808
sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
4809
test -f $output_objdir/impgen.exe || (cd $output_objdir && \
4810
if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
4811
else $CC -o impgen impgen.c ; fi)~
4812
$output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
4814
old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
4816
# cygwin and mingw dlls have different entry points and sets of symbols
4818
# FIXME: what about values for MSVC?
4819
dll_entry=__cygwin_dll_entry@12
4820
dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
4824
dll_entry=_DllMainCRTStartup@12
4825
dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
4829
# mingw and cygwin differ, and it's simplest to just exclude the union
4830
# of the two symbol sets.
4831
dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
4833
# recent cygwin and mingw systems supply a stub DllMain which the user
4834
# can override, but on older systems we have to supply one (in ltdll.c)
4835
if test "x$lt_cv_need_dllmain" = "xyes"; then
4836
ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
4837
ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
4838
test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
4844
# Extract the symbol export list from an `--export-all' def file,
4845
# then regenerate the def file from the symbol export list, so that
4846
# the compiled dll only exports the symbol export list.
4847
# Be careful not to strip the DATA tag left be newer dlltools.
4848
export_symbols_cmds="$ltdll_cmds"'
4849
$DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
4850
sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
4852
# If the export-symbols file already is a .def file (1st line
4853
# is EXPORTS), use it as is.
4854
# If DATA tags from a recent dlltool are present, honour them!
4855
archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
4856
cp $export_symbols $output_objdir/$soname-def;
4858
echo EXPORTS > $output_objdir/$soname-def;
4860
cat $export_symbols | while read symbol; do
4863
2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
4864
*) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
4866
_lt_hint=`expr 1 + \$_lt_hint`;
4870
$CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
4871
$DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
4872
$CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
4873
$DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
4874
$CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
4878
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4879
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4882
archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4883
archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4888
if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
4892
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
4893
*** create shared libraries on Solaris systems. Therefore, libtool
4894
*** is disabling shared libraries support. We urge you to upgrade GNU
4895
*** binutils to release 2.9.1 or newer. Another option is to modify
4896
*** your PATH or compiler configuration so that the native linker is
4897
*** used, and then restart.
4900
elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4901
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4902
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4909
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4912
hardcode_shlibpath_var=no
4916
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4917
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4918
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4925
if test "$ld_shlibs" = yes; then
6113
if test "$with_gnu_ld" = yes; then
6114
# If archive_cmds runs LD, not CC, wlarc should be empty
6117
# Set some defaults for GNU ld with shared library support. These
6118
# are reset later if shared libraries are not supported. Putting them
6119
# here allows them to be overridden if necessary.
4926
6120
runpath_var=LD_RUN_PATH
4927
6121
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
4928
6122
export_dynamic_flag_spec='${wl}--export-dynamic'
6123
# ancient GNU ld didn't support --whole-archive et. al.
6124
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6125
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6127
whole_archive_flag_spec=
6129
supports_anon_versioning=no
6130
case `$LD -v 2>/dev/null` in
6131
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6132
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6133
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6134
*\ 2.11.*) ;; # other 2.11 versions
6135
*) supports_anon_versioning=yes ;;
6138
# See if GNU ld supports shared libraries.
4929
6139
case $host_os in
6140
aix3* | aix4* | aix5*)
6141
# On AIX/PPC, the GNU linker is very broken
6142
if test "$host_cpu" != ia64; then
6146
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6147
*** to be unable to reliably create shared libraries on AIX.
6148
*** Therefore, libtool is disabling shared libraries support. If you
6149
*** really care for shared libraries, you may want to modify your PATH
6150
*** so that a non-GNU linker is found, and then restart.
6157
archive_cmds='$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)'
6158
hardcode_libdir_flag_spec='-L$libdir'
6159
hardcode_minus_L=yes
6161
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6162
# that the semantics of dynamic libraries on AmigaOS, at least up
6163
# to version 4, is to share data among multiple programs linked
6164
# with the same dynamic library. Since this doesn't match the
6165
# behavior of shared libraries on other platforms, we can't use
6171
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6172
allow_undefined_flag=unsupported
6173
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6174
# support --undefined. This deserves some investigation. FIXME
6175
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4930
6181
cygwin* | mingw* | pw32*)
4931
# dlltool doesn't understand --whole-archive et. al.
6182
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6183
# as there is no search path for DLLs.
6184
hardcode_libdir_flag_spec='-L$libdir'
6185
allow_undefined_flag=unsupported
6186
always_export_symbols=no
6187
enable_shared_with_static_runtimes=yes
6188
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6190
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6191
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6192
# If the export-symbols file already is a .def file (1st line
6193
# is EXPORTS), use it as is; otherwise, prepend...
6194
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6195
cp $export_symbols $output_objdir/$soname.def;
6197
echo EXPORTS > $output_objdir/$soname.def;
6198
cat $export_symbols >> $output_objdir/$soname.def;
6200
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6207
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6209
case $cc_basename,$host_cpu in
6210
pgcc*) # Portland Group C compiler
6211
whole_archive_flag_spec='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6212
tmp_addflag=' $pic_flag'
6214
pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
6215
whole_archive_flag_spec='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6216
tmp_addflag=' $pic_flag -Mnomain' ;;
6217
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6218
tmp_addflag=' -i_dynamic' ;;
6219
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6220
tmp_addflag=' -i_dynamic -nofor_main' ;;
6221
ifc* | ifort*) # Intel Fortran compiler
6222
tmp_addflag=' -nofor_main' ;;
6224
archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6226
if test $supports_anon_versioning = yes; then
6227
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6228
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6229
$echo "local: *; };" >> $output_objdir/$libname.ver~
6230
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6238
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6239
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6242
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6243
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6248
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6252
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6253
*** create shared libraries on Solaris systems. Therefore, libtool
6254
*** is disabling shared libraries support. We urge you to upgrade GNU
6255
*** binutils to release 2.9.1 or newer. Another option is to modify
6256
*** your PATH or compiler configuration so that the native linker is
6257
*** used, and then restart.
6260
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6261
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6262
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6269
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6272
hardcode_shlibpath_var=no
6276
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6277
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6278
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6285
if test "$ld_shlibs" = no; then
6287
hardcode_libdir_flag_spec=
6288
export_dynamic_flag_spec=
4932
6289
whole_archive_flag_spec=
4935
# ancient GNU ld didn't support --whole-archive et. al.
4936
if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
4937
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4939
whole_archive_flag_spec=
4945
# PORTME fill in a description of your system's linker (not GNU ld)
4948
allow_undefined_flag=unsupported
4949
always_export_symbols=yes
4950
archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
4951
# Note: this linker hardcodes the directories in LIBPATH if there
4952
# are no directories specified by -L.
4953
hardcode_minus_L=yes
4954
if test "$GCC" = yes && test -z "$link_static_flag"; then
4955
# Neither direct hardcoding nor static linking is supported with a
4957
hardcode_direct=unsupported
4962
if test "$host_cpu" = ia64; then
4963
# On IA64, the linker does run time linking by default, so we don't
4964
# have to do anything special.
4965
aix_use_runtimelinking=no
4966
exp_sym_flag='-Bexport'
6292
# PORTME fill in a description of your system's linker (not GNU ld)
6295
allow_undefined_flag=unsupported
6296
always_export_symbols=yes
6297
archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
6298
# Note: this linker hardcodes the directories in LIBPATH if there
6299
# are no directories specified by -L.
6300
hardcode_minus_L=yes
6301
if test "$GCC" = yes && test -z "$link_static_flag"; then
6302
# Neither direct hardcoding nor static linking is supported with a
6304
hardcode_direct=unsupported
6309
if test "$host_cpu" = ia64; then
6310
# On IA64, the linker does run time linking by default, so we don't
6311
# have to do anything special.
6312
aix_use_runtimelinking=no
6313
exp_sym_flag='-Bexport'
6316
# If we're using GNU nm, then we don't want the "-C" option.
6317
# -C means demangle to AIX nm, but means don't demangle with GNU nm
6318
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6319
export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
6321
export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
6323
aix_use_runtimelinking=no
6325
# Test if we are trying to use run time linking or normal
6326
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6327
# need to do runtime linking.
6328
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6329
for ld_flag in $LDFLAGS; do
6330
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6331
aix_use_runtimelinking=yes
6337
exp_sym_flag='-bexport'
6338
no_entry_flag='-bnoentry'
6341
# When large executables or shared objects are built, AIX ld can
6342
# have problems creating the table of contents. If linking a library
6343
# or program results in "error TOC overflow" add -mminimal-toc to
6344
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6345
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6349
hardcode_libdir_separator=':'
6350
link_all_deplibs=yes
6352
if test "$GCC" = yes; then
6353
case $host_os in aix4.[012]|aix4.[012].*)
6354
# We only want to do this on AIX 4.2 and lower, the check
6355
# below for broken collect2 doesn't work under 4.3+
6356
collect2name=`${CC} -print-prog-name=collect2`
6357
if test -f "$collect2name" && \
6358
strings "$collect2name" | grep resolve_lib_name >/dev/null
6360
# We have reworked collect2
6363
# We have old collect2
6364
hardcode_direct=unsupported
6365
# It fails to find uninstalled libraries when the uninstalled
6366
# path is not listed in the libpath. Setting hardcode_minus_L
6367
# to unsupported forces relinking
6368
hardcode_minus_L=yes
6369
hardcode_libdir_flag_spec='-L$libdir'
6370
hardcode_libdir_separator=
6373
shared_flag='-shared'
6374
if test "$aix_use_runtimelinking" = yes; then
6375
shared_flag="$shared_flag "'${wl}-G'
6379
if test "$host_cpu" = ia64; then
6380
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6381
# chokes on -Wl,-G. The following line is correct:
6384
if test "$aix_use_runtimelinking" = yes; then
6385
shared_flag='${wl}-G'
6387
shared_flag='${wl}-bM:SRE'
6392
# It seems that -bexpall does not export symbols beginning with
6393
# underscore (_), so it is better to generate a list of symbols to export.
6394
always_export_symbols=yes
6395
if test "$aix_use_runtimelinking" = yes; then
6396
# Warning - without using the other runtime loading flags (-brtl),
6397
# -berok will link without error, but may produce a broken library.
6398
allow_undefined_flag='-berok'
6399
# Determine the default libpath from the value encoded in an empty executable.
6400
cat >conftest.$ac_ext <<_ACEOF
6403
cat confdefs.h >>conftest.$ac_ext
6404
cat >>conftest.$ac_ext <<_ACEOF
6405
/* end confdefs.h. */
6415
rm -f conftest.$ac_objext conftest$ac_exeext
6416
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6417
(eval $ac_link) 2>conftest.er1
6419
grep -v '^ *+' conftest.er1 >conftest.err
6421
cat conftest.err >&5
6422
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423
(exit $ac_status); } &&
6424
{ ac_try='test -z "$ac_c_werror_flag"
6425
|| test ! -s conftest.err'
6426
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6429
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430
(exit $ac_status); }; } &&
6431
{ ac_try='test -s conftest$ac_exeext'
6432
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6435
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436
(exit $ac_status); }; }; then
6438
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6440
# Check for a 64-bit object if we didn't find anything.
6441
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6444
echo "$as_me: failed program was:" >&5
6445
sed 's/^/| /' conftest.$ac_ext >&5
6448
rm -f conftest.err conftest.$ac_objext \
6449
conftest$ac_exeext conftest.$ac_ext
6450
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6452
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6453
archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6455
if test "$host_cpu" = ia64; then
6456
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6457
allow_undefined_flag="-z nodefs"
6458
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6460
# Determine the default libpath from the value encoded in an empty executable.
6461
cat >conftest.$ac_ext <<_ACEOF
6464
cat confdefs.h >>conftest.$ac_ext
6465
cat >>conftest.$ac_ext <<_ACEOF
6466
/* end confdefs.h. */
6476
rm -f conftest.$ac_objext conftest$ac_exeext
6477
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6478
(eval $ac_link) 2>conftest.er1
6480
grep -v '^ *+' conftest.er1 >conftest.err
6482
cat conftest.err >&5
6483
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484
(exit $ac_status); } &&
6485
{ ac_try='test -z "$ac_c_werror_flag"
6486
|| test ! -s conftest.err'
6487
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6490
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491
(exit $ac_status); }; } &&
6492
{ ac_try='test -s conftest$ac_exeext'
6493
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6496
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497
(exit $ac_status); }; }; then
6499
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6501
# Check for a 64-bit object if we didn't find anything.
6502
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6505
echo "$as_me: failed program was:" >&5
6506
sed 's/^/| /' conftest.$ac_ext >&5
6509
rm -f conftest.err conftest.$ac_objext \
6510
conftest$ac_exeext conftest.$ac_ext
6511
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6513
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6514
# Warning - without using the other run time loading flags,
6515
# -berok will link without error, but may produce a broken library.
6516
no_undefined_flag=' ${wl}-bernotok'
6517
allow_undefined_flag=' ${wl}-berok'
6518
# -bexpall does not export symbols beginning with underscore (_)
6519
always_export_symbols=yes
6520
# Exported symbols can be pulled into shared objects from archives
6521
whole_archive_flag_spec=' '
6522
archive_cmds_need_lc=yes
6523
# This is similar to how AIX traditionally builds it's shared libraries.
6524
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6530
archive_cmds='$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)'
6531
hardcode_libdir_flag_spec='-L$libdir'
6532
hardcode_minus_L=yes
6533
# see comment about different semantics on the GNU ld section
6538
export_dynamic_flag_spec=-rdynamic
6541
cygwin* | mingw* | pw32*)
6542
# When not using gcc, we currently assume that we are using
6543
# Microsoft Visual C++.
6544
# hardcode_libdir_flag_spec is actually meaningless, as there is
6545
# no search path for DLLs.
6546
hardcode_libdir_flag_spec=' '
6547
allow_undefined_flag=unsupported
6548
# Tell ltmain to make .lib files, not .a files.
6550
# Tell ltmain to make .dll files, not .so files.
6552
# FIXME: Setting linknames here is a bad hack.
6553
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6554
# The linker will automatically build a .lib file if we build a DLL.
6555
old_archive_From_new_cmds='true'
6556
# FIXME: Should let the user specify the lib program.
6557
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6558
fix_srcfile_path='`cygpath -w "$srcfile"`'
6559
enable_shared_with_static_runtimes=yes
6562
darwin* | rhapsody*)
6564
rhapsody* | darwin1.[012])
6565
allow_undefined_flag='${wl}-undefined ${wl}suppress'
6568
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6569
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6571
case ${MACOSX_DEPLOYMENT_TARGET} in
6573
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6576
allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
6582
archive_cmds_need_lc=no
6584
hardcode_automatic=yes
6585
hardcode_shlibpath_var=unsupported
6586
whole_archive_flag_spec=''
6587
link_all_deplibs=yes
6588
if test "$GCC" = yes ; then
6589
output_verbose_link_cmd='echo'
6590
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6591
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6592
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6593
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6594
module_expsym_cmds='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}'
4969
aix_use_runtimelinking=no
4971
# Test if we are trying to use run time linking or normal
4972
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
4973
# need to do runtime linking.
4974
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
4975
for ld_flag in $LDFLAGS; do
4976
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
4977
aix_use_runtimelinking=yes
6596
case $cc_basename in
6598
output_verbose_link_cmd='echo'
6599
archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
6600
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6601
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6602
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6603
module_expsym_cmds='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}'
4983
exp_sym_flag='-bexport'
4984
no_entry_flag='-bnoentry'
4987
# When large executables or shared objects are built, AIX ld can
4988
# have problems creating the table of contents. If linking a library
4989
# or program results in "error TOC overflow" add -mminimal-toc to
4990
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
4991
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
4995
hardcode_libdir_separator=':'
4996
if test "$GCC" = yes; then
4997
case $host_os in aix4.[012]|aix4.[012].*)
4998
collect2name=`${CC} -print-prog-name=collect2`
4999
if test -f "$collect2name" && \
5000
strings "$collect2name" | grep resolve_lib_name >/dev/null
5002
# We have reworked collect2
6613
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6614
hardcode_libdir_flag_spec='-L$libdir'
6615
hardcode_shlibpath_var=no
6622
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6623
# support. Future versions do this automatically, but an explicit c++rt0.o
6624
# does not break anything, and helps significantly (at the cost of a little
6627
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6628
hardcode_libdir_flag_spec='-R$libdir'
6630
hardcode_shlibpath_var=no
6633
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
6635
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6637
hardcode_minus_L=yes
6638
hardcode_shlibpath_var=no
6641
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6642
freebsd* | kfreebsd*-gnu | dragonfly*)
6643
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6644
hardcode_libdir_flag_spec='-R$libdir'
6646
hardcode_shlibpath_var=no
6650
if test "$GCC" = yes; then
6651
archive_cmds='$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'
6653
archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6655
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6656
hardcode_libdir_separator=:
6659
# hardcode_minus_L: Not really in the search PATH,
6660
# but as the default location of the library.
6661
hardcode_minus_L=yes
6662
export_dynamic_flag_spec='${wl}-E'
6666
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6669
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6672
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6678
archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6681
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6685
if test "$with_gnu_ld" = no; then
6688
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6689
hardcode_libdir_flag_spec_ld='+b $libdir'
6690
hardcode_libdir_separator=:
6692
hardcode_shlibpath_var=no
6695
hardcode_libdir_flag_spec='-L$libdir'
6697
hardcode_shlibpath_var=no
6699
# hardcode_minus_L: Not really in the search PATH,
6700
# but as the default location of the library.
6701
hardcode_minus_L=yes
6704
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6705
hardcode_libdir_separator=:
5003
6706
hardcode_direct=yes
5005
# We have old collect2
5006
hardcode_direct=unsupported
5007
# It fails to find uninstalled libraries when the uninstalled
5008
# path is not listed in the libpath. Setting hardcode_minus_L
5009
# to unsupported forces relinking
6707
export_dynamic_flag_spec='${wl}-E'
6709
# hardcode_minus_L: Not really in the search PATH,
6710
# but as the default location of the library.
5010
6711
hardcode_minus_L=yes
5011
hardcode_libdir_flag_spec='-L$libdir'
5012
hardcode_libdir_separator=
5016
shared_flag='-shared'
5019
if test "$host_cpu" = ia64; then
5020
shared_flag='${wl}-G'
5022
if test "$aix_use_runtimelinking" = yes; then
5023
shared_flag='${wl}-G'
5025
shared_flag='${wl}-bM:SRE'
5030
# It seems that -bexpall can do strange things, so it is better to
5031
# generate a list of symbols to export.
5032
always_export_symbols=yes
5033
if test "$aix_use_runtimelinking" = yes; then
5034
# Warning - without using the other runtime loading flags (-brtl),
5035
# -berok will link without error, but may produce a broken library.
5036
allow_undefined_flag='-berok'
5037
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5038
archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5040
if test "$host_cpu" = ia64; then
5041
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5042
allow_undefined_flag="-z nodefs"
5043
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
5045
hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5046
# Warning - without using the other run time loading flags,
5047
# -berok will link without error, but may produce a broken library.
5048
allow_undefined_flag='${wl}-berok'
5049
# This is a bit strange, but is similar to how AIX traditionally builds
5050
# it's shared libraries.
5051
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
5057
archive_cmds='$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)'
5058
hardcode_libdir_flag_spec='-L$libdir'
5059
hardcode_minus_L=yes
5060
# see comment about different semantics on the GNU ld section
5064
cygwin* | mingw* | pw32*)
5065
# When not using gcc, we currently assume that we are using
5066
# Microsoft Visual C++.
5067
# hardcode_libdir_flag_spec is actually meaningless, as there is
5068
# no search path for DLLs.
5069
hardcode_libdir_flag_spec=' '
5070
allow_undefined_flag=unsupported
5071
# Tell ltmain to make .lib files, not .a files.
5073
# FIXME: Setting linknames here is a bad hack.
5074
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5075
# The linker will automatically build a .lib file if we build a DLL.
5076
old_archive_from_new_cmds='true'
5077
# FIXME: Should let the user specify the lib program.
5078
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5079
fix_srcfile_path='`cygpath -w "$srcfile"`'
5082
darwin* | rhapsody*)
5084
rhapsody* | darwin1.[012])
5085
allow_undefined_flag='-undefined suppress'
5088
allow_undefined_flag='-flat_namespace -undefined suppress'
5091
# FIXME: Relying on posixy $() will cause problems for
5092
# cross-compilation, but unfortunately the echo tests do not
5093
# yet detect zsh echo's removal of \ escapes.
5094
archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
5095
# We need to add '_' to the symbols in $export_symbols first
5096
#archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5098
hardcode_shlibpath_var=no
5099
whole_archive_flag_spec='-all_load $convenience'
5106
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5107
# support. Future versions do this automatically, but an explicit c++rt0.o
5108
# does not break anything, and helps significantly (at the cost of a little
5111
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5112
hardcode_libdir_flag_spec='-R$libdir'
5114
hardcode_shlibpath_var=no
5117
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
5119
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5121
hardcode_minus_L=yes
5122
hardcode_shlibpath_var=no
5125
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5127
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5128
hardcode_libdir_flag_spec='-R$libdir'
5130
hardcode_shlibpath_var=no
5133
hpux9* | hpux10* | hpux11*)
5135
hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
5136
*) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5138
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5139
hardcode_libdir_separator=:
5141
hardcode_minus_L=yes # Not in the search PATH, but as the default
5142
# location of the library.
5143
export_dynamic_flag_spec='${wl}-E'
5147
if test "$GCC" = yes; then
5148
archive_cmds='$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'
5150
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5152
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5153
hardcode_libdir_separator=:
5154
link_all_deplibs=yes
5158
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5159
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5161
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5163
hardcode_libdir_flag_spec='-R$libdir'
5165
hardcode_shlibpath_var=no
5169
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5171
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5172
hardcode_libdir_separator=:
5173
hardcode_shlibpath_var=no
5178
hardcode_shlibpath_var=no
5179
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5180
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5181
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5182
export_dynamic_flag_spec='${wl}-E'
5185
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5186
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5187
hardcode_libdir_flag_spec='-R$libdir'
6717
irix5* | irix6* | nonstopux*)
6718
if test "$GCC" = yes; then
6719
archive_cmds='$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'
6721
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6722
hardcode_libdir_flag_spec_ld='-rpath $libdir'
6724
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6725
hardcode_libdir_separator=:
6726
link_all_deplibs=yes
6730
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6731
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6733
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6735
hardcode_libdir_flag_spec='-R$libdir'
6737
hardcode_shlibpath_var=no
6741
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6743
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6744
hardcode_libdir_separator=:
6745
hardcode_shlibpath_var=no
6750
hardcode_shlibpath_var=no
6751
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6752
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6753
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6754
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6755
export_dynamic_flag_spec='${wl}-E'
6758
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6759
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6760
hardcode_libdir_flag_spec='-R$libdir'
6763
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6764
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6771
hardcode_libdir_flag_spec='-L$libdir'
6772
hardcode_minus_L=yes
6773
allow_undefined_flag=unsupported
6774
archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
6775
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6779
if test "$GCC" = yes; then
6780
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6781
archive_cmds='$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'
6783
allow_undefined_flag=' -expect_unresolved \*'
6784
archive_cmds='$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'
6786
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6787
hardcode_libdir_separator=:
6790
osf4* | osf5*) # as osf3* with the addition of -msym flag
6791
if test "$GCC" = yes; then
6792
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6793
archive_cmds='$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'
6794
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6796
allow_undefined_flag=' -expect_unresolved \*'
6797
archive_cmds='$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'
6798
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6799
$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'
6801
# Both c and cxx compiler support -rpath directly
6802
hardcode_libdir_flag_spec='-rpath $libdir'
6804
hardcode_libdir_separator=:
6808
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6809
hardcode_shlibpath_var=no
6810
export_dynamic_flag_spec='${wl}-Bexport'
6811
runpath_var=LD_RUN_PATH
6812
hardcode_runpath_var=yes
6816
no_undefined_flag=' -z text'
6817
if test "$GCC" = yes; then
6819
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6820
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6821
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6824
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6825
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6826
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6828
hardcode_libdir_flag_spec='-R$libdir'
6829
hardcode_shlibpath_var=no
6831
solaris2.[0-5] | solaris2.[0-5].*) ;;
5190
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5191
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6833
# The compiler driver will combine linker options so we
6834
# cannot just pass the convience library names through
6835
# without $wl, iff we do not link with $LD.
6836
# Luckily, gcc supports the same syntax we need for Sun Studio.
6837
# Supported since Solaris 2.6 (maybe 2.5.1?)
6840
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6842
whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
6845
link_all_deplibs=yes
6849
if test "x$host_vendor" = xsequent; then
6850
# Use $CC to link under sequent, because it throws in some extra .o
6851
# files that make .init and .fini sections work.
6852
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6854
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6856
hardcode_libdir_flag_spec='-L$libdir'
6858
hardcode_minus_L=yes
6859
hardcode_shlibpath_var=no
6863
case $host_vendor in
6865
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6866
hardcode_direct=yes # is this really true???
6869
## LD is ld it makes a PLAMLIB
6870
## CC just makes a GrossModule.
6871
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6872
reload_cmds='$CC -r -o $output$reload_objs'
5198
hardcode_libdir_flag_spec='-L$libdir'
5199
hardcode_minus_L=yes
5200
allow_undefined_flag=unsupported
5201
archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
5202
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5206
if test "$GCC" = yes; then
5207
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5208
archive_cmds='$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'
5210
allow_undefined_flag=' -expect_unresolved \*'
5211
archive_cmds='$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'
5213
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5214
hardcode_libdir_separator=:
5217
osf4* | osf5*) # as osf3* with the addition of -msym flag
5218
if test "$GCC" = yes; then
5219
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5220
archive_cmds='$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'
5221
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5223
allow_undefined_flag=' -expect_unresolved \*'
5224
archive_cmds='$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'
5225
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5226
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
5228
#Both c and cxx compiler support -rpath directly
5229
hardcode_libdir_flag_spec='-rpath $libdir'
5231
hardcode_libdir_separator=:
5235
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5236
hardcode_shlibpath_var=no
5237
runpath_var=LD_RUN_PATH
5238
hardcode_runpath_var=yes
5239
export_dynamic_flag_spec='${wl}-Bexport'
5243
# gcc --version < 3.0 without binutils cannot create self contained
5244
# shared libraries reliably, requiring libgcc.a to resolve some of
5245
# the object symbols generated in some cases. Libraries that use
5246
# assert need libgcc.a to resolve __eprintf, for example. Linking
5247
# a copy of libgcc.a into every shared library to guarantee resolving
5248
# such symbols causes other problems: According to Tim Van Holder
5249
# <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5250
# (to the application) exception stack for one thing.
5251
no_undefined_flag=' -z defs'
5252
if test "$GCC" = yes; then
5253
case `$CC --version 2>/dev/null` in
5257
*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5258
*** create self contained shared libraries on Solaris systems, without
5259
*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5260
*** -no-undefined support, which will at least allow you to build shared
5261
*** libraries. However, you may find that when you link such libraries
5262
*** into an application without using GCC, you have to manually add
5263
*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5264
*** upgrade to a newer version of GCC. Another option is to rebuild your
5265
*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6876
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6877
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5272
# $CC -shared without GNU ld will not create a library from C++
5273
# object files and a static libstdc++, better avoid it by now
5274
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5275
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5276
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5277
hardcode_libdir_flag_spec='-R$libdir'
5278
hardcode_shlibpath_var=no
5280
solaris2.[0-5] | solaris2.[0-5].*) ;;
5281
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
5282
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6880
runpath_var='LD_RUN_PATH'
6881
hardcode_shlibpath_var=no
6885
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6886
hardcode_shlibpath_var=no
6887
export_dynamic_flag_spec='-Bexport'
6891
if test -d /usr/nec; then
6892
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6893
hardcode_shlibpath_var=no
6894
runpath_var=LD_RUN_PATH
6895
hardcode_runpath_var=yes
6901
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6904
hardcode_shlibpath_var=no
6905
hardcode_runpath_var=yes
6906
runpath_var=LD_RUN_PATH
6909
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
6910
no_undefined_flag='${wl}-z ${wl}text'
6911
if test "$GCC" = yes; then
6912
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6914
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6916
runpath_var='LD_RUN_PATH'
6917
hardcode_shlibpath_var=no
6921
no_undefined_flag=' -z text'
6922
# $CC -shared without GNU ld will not create a library from C++
6923
# object files and a static libstdc++, better avoid it by now
6924
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6925
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6926
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6927
hardcode_libdir_flag_spec=
6928
hardcode_shlibpath_var=no
6929
runpath_var='LD_RUN_PATH'
6933
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6934
hardcode_libdir_flag_spec='-L$libdir'
6935
hardcode_shlibpath_var=no
5284
link_all_deplibs=yes
5288
if test "x$host_vendor" = xsequent; then
5289
# Use $CC to link under sequent, because it throws in some extra .o
5290
# files that make .init and .fini sections work.
5291
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5293
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5295
hardcode_libdir_flag_spec='-L$libdir'
5297
hardcode_minus_L=yes
5298
hardcode_shlibpath_var=no
5302
if test "x$host_vendor" = xsno; then
5303
archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
5304
hardcode_direct=yes # is this really true???
5306
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5307
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5309
runpath_var='LD_RUN_PATH'
5310
hardcode_shlibpath_var=no
5314
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5315
hardcode_shlibpath_var=no
5316
export_dynamic_flag_spec='-Bexport'
5320
no_undefined_flag=' -z text'
5321
# $CC -shared without GNU ld will not create a library from C++
5322
# object files and a static libstdc++, better avoid it by now
5323
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5324
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5325
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5326
hardcode_libdir_flag_spec=
5327
hardcode_shlibpath_var=no
5328
runpath_var='LD_RUN_PATH'
5332
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5333
hardcode_libdir_flag_spec='-L$libdir'
5334
hardcode_shlibpath_var=no
5338
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5339
hardcode_libdir_flag_spec='-L$libdir'
5340
hardcode_shlibpath_var=no
5344
if test -d /usr/nec; then
5345
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5346
hardcode_shlibpath_var=no
5347
runpath_var=LD_RUN_PATH
5348
hardcode_runpath_var=yes
5354
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5357
hardcode_shlibpath_var=no
5358
hardcode_runpath_var=yes
5359
runpath_var=LD_RUN_PATH
5362
sysv5uw7* | unixware7*)
5363
no_undefined_flag='${wl}-z ${wl}text'
5364
if test "$GCC" = yes; then
5365
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5367
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5369
runpath_var='LD_RUN_PATH'
5370
hardcode_shlibpath_var=no
5378
6944
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
5379
6945
echo "${ECHO_T}$ld_shlibs" >&6
5380
6946
test "$ld_shlibs" = no && can_build_shared=no
5382
# Check hardcoding attributes.
6948
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6949
if test "$GCC" = yes; then
6950
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6954
# Do we need to explicitly link libc?
6956
case "x$archive_cmds_need_lc" in
6958
# Assume -lc should be added
6959
archive_cmds_need_lc=yes
6961
if test "$enable_shared" = yes && test "$GCC" = yes; then
6962
case $archive_cmds in
6964
# FIXME: we may have to deal with multi-command sequences.
6967
# Test whether the compiler implicitly links with -lc since on some
6968
# systems, -lgcc has to come before -lc. If gcc already passes -lc
6969
# to ld, don't add -lc before -lgcc.
6970
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6971
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6973
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6975
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6976
(eval $ac_compile) 2>&5
6978
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979
(exit $ac_status); } 2>conftest.err; then
6982
libobjs=conftest.$ac_objext
6984
wl=$lt_prog_compiler_wl
6990
lt_save_allow_undefined_flag=$allow_undefined_flag
6991
allow_undefined_flag=
6992
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6993
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6995
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996
(exit $ac_status); }
6998
archive_cmds_need_lc=no
7000
archive_cmds_need_lc=yes
7002
allow_undefined_flag=$lt_save_allow_undefined_flag
7004
cat conftest.err 1>&5
7007
echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7008
echo "${ECHO_T}$archive_cmds_need_lc" >&6
7015
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7016
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7018
libname_spec='lib$name'
7026
shlibpath_overrides_runpath=unknown
7028
dynamic_linker="$host_os ld.so"
7029
sys_lib_dlsearch_path_spec="/lib /usr/lib"
7030
if test "$GCC" = yes; then
7031
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7032
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7033
# if the path contains ";" then we assume it to be the separator
7034
# otherwise default to the standard path separator (i.e. ":") - it is
7035
# assumed that no part of a normal pathname contains ";" but that should
7036
# okay in the real world where ";" in dirpaths is itself problematic.
7037
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7039
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7042
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7044
need_lib_prefix=unknown
7045
hardcode_into_libs=no
7047
# when you set need_version to no, make sure it does not cause -set_version
7048
# flags to be left without arguments
7049
need_version=unknown
7054
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7055
shlibpath_var=LIBPATH
7057
# AIX 3 has no versioning support, so we append a major version to the name.
7058
soname_spec='${libname}${release}${shared_ext}$major'
7065
hardcode_into_libs=yes
7066
if test "$host_cpu" = ia64; then
7067
# AIX 5 supports IA64
7068
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7069
shlibpath_var=LD_LIBRARY_PATH
7071
# With GCC up to 2.95.x, collect2 would create an import file
7072
# for dependence libraries. The import file would start with
7073
# the line `#! .'. This would cause the generated library to
7074
# depend on `.', always an invalid library. This was fixed in
7075
# development snapshots of GCC prior to 3.0.
7077
aix4 | aix4.[01] | aix4.[01].*)
7078
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7080
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7087
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7088
# soname into executable. Probably we can add versioning support to
7089
# collect2, so additional links can be useful in future.
7090
if test "$aix_use_runtimelinking" = yes; then
7091
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
7092
# instead of lib<name>.a to let people know that these are not
7093
# typical AIX shared libraries.
7094
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7096
# We preserve .a as extension for shared libraries through AIX4.2
7097
# and later when we are not doing run time linking.
7098
library_names_spec='${libname}${release}.a $libname.a'
7099
soname_spec='${libname}${release}${shared_ext}$major'
7101
shlibpath_var=LIBPATH
7106
library_names_spec='$libname.ixlibrary $libname.a'
7107
# Create ${libname}_ixlibrary.a entries in /sys/libs.
7108
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'
7112
library_names_spec='${libname}${shared_ext}'
7113
dynamic_linker="$host_os ld.so"
7114
shlibpath_var=LIBRARY_PATH
7120
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7121
soname_spec='${libname}${release}${shared_ext}$major'
7122
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7123
shlibpath_var=LD_LIBRARY_PATH
7124
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7125
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7126
# the default ld.so.conf also contains /usr/contrib/lib and
7127
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7128
# libtool to hard-code these into programs
7131
cygwin* | mingw* | pw32*)
7132
version_type=windows
7137
case $GCC,$host_os in
7138
yes,cygwin* | yes,mingw* | yes,pw32*)
7139
library_names_spec='$libname.dll.a'
7140
# DLL is installed to $(libdir)/../bin by postinstall_cmds
7141
postinstall_cmds='base_file=`basename \${file}`~
7142
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7143
dldir=$destdir/`dirname \$dlpath`~
7144
test -d \$dldir || mkdir -p \$dldir~
7145
$install_prog $dir/$dlname \$dldir/$dlname'
7146
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7147
dlpath=$dir/\$dldll~
7149
shlibpath_overrides_runpath=yes
7153
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
7154
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7155
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7158
# MinGW DLLs use traditional 'lib' prefix
7159
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7160
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7161
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7162
# It is most probably a Windows format PATH printed by
7163
# mingw gcc, but we are running on Cygwin. Gcc prints its search
7164
# path with ; separators, and with drive letters. We can handle the
7165
# drive letters (cygwin fileutils understands them), so leave them,
7166
# especially as we might pass files found there to a mingw objdump,
7167
# which wouldn't understand a cygwinified path. Ahh.
7168
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7170
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7174
# pw32 DLLs use 'pw' prefix rather than 'lib'
7175
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7181
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7184
dynamic_linker='Win32 ld.exe'
7185
# FIXME: first we should search . and the directory the executable is in
7189
darwin* | rhapsody*)
7190
dynamic_linker="$host_os dyld"
7194
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7195
soname_spec='${libname}${release}${major}$shared_ext'
7196
shlibpath_overrides_runpath=yes
7197
shlibpath_var=DYLD_LIBRARY_PATH
7198
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7199
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7200
if test "$GCC" = yes; then
7201
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
7203
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7205
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7212
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7213
soname_spec='${libname}${release}${shared_ext}$major'
7214
shlibpath_var=LD_LIBRARY_PATH
7225
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7226
soname_spec='${libname}${release}${shared_ext}$major'
7227
shlibpath_var=LD_LIBRARY_PATH
7228
shlibpath_overrides_runpath=no
7229
hardcode_into_libs=yes
7230
dynamic_linker='GNU ld.so'
7233
freebsd* | dragonfly*)
7234
# DragonFly does not have aout. When/if they implement a new
7235
# versioning mechanism, adjust this.
7236
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7237
version_type=freebsd-$objformat
7238
case $version_type in
7240
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7245
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7249
shlibpath_var=LD_LIBRARY_PATH
7252
shlibpath_overrides_runpath=yes
7254
freebsd3.[01]* | freebsdelf3.[01]*)
7255
shlibpath_overrides_runpath=yes
7256
hardcode_into_libs=yes
7259
shlibpath_overrides_runpath=no
7260
hardcode_into_libs=yes
7269
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7270
soname_spec='${libname}${release}${shared_ext}$major'
7271
shlibpath_var=LD_LIBRARY_PATH
7272
hardcode_into_libs=yes
7275
hpux9* | hpux10* | hpux11*)
7276
# Give a soname corresponding to the major version so that dld.sl refuses to
7277
# link against other versions.
7284
hardcode_into_libs=yes
7285
dynamic_linker="$host_os dld.so"
7286
shlibpath_var=LD_LIBRARY_PATH
7287
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7288
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7289
soname_spec='${libname}${release}${shared_ext}$major'
7290
if test "X$HPUX_IA64_MODE" = X32; then
7291
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7293
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7295
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7299
hardcode_into_libs=yes
7300
dynamic_linker="$host_os dld.sl"
7301
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7302
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7303
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7304
soname_spec='${libname}${release}${shared_ext}$major'
7305
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7306
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7310
dynamic_linker="$host_os dld.sl"
7311
shlibpath_var=SHLIB_PATH
7312
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7313
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7314
soname_spec='${libname}${release}${shared_ext}$major'
7317
# HP-UX runs *really* slowly unless shared libraries are mode 555.
7318
postinstall_cmds='chmod 555 $lib'
7321
irix5* | irix6* | nonstopux*)
7323
nonstopux*) version_type=nonstopux ;;
7325
if test "$lt_cv_prog_gnu_ld" = yes; then
7333
soname_spec='${libname}${release}${shared_ext}$major'
7334
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7336
irix5* | nonstopux*)
7340
case $LD in # libtool.m4 will add one of these switches to LD
7341
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7342
libsuff= shlibsuff= libmagic=32-bit;;
7343
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7344
libsuff=32 shlibsuff=N32 libmagic=N32;;
7345
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7346
libsuff=64 shlibsuff=64 libmagic=64-bit;;
7347
*) libsuff= shlibsuff= libmagic=never-match;;
7351
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7352
shlibpath_overrides_runpath=no
7353
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7354
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7355
hardcode_into_libs=yes
7358
# No shared lib support for Linux oldld, aout, or coff.
7359
linux*oldld* | linux*aout* | linux*coff*)
7363
# This must be Linux ELF.
7368
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7369
soname_spec='${libname}${release}${shared_ext}$major'
7370
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7371
shlibpath_var=LD_LIBRARY_PATH
7372
shlibpath_overrides_runpath=no
7373
# This implies no fast_install, which is unacceptable.
7374
# Some rework will be needed to allow for fast_install
7375
# before this can be enabled.
7376
hardcode_into_libs=yes
7378
# find out which ABI we are using
7381
x86_64*|s390x*|powerpc64*)
7382
echo '#line 7382 "configure"' > conftest.$ac_ext
7383
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7384
(eval $ac_compile) 2>&5
7386
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7387
(exit $ac_status); }; then
7388
case `/usr/bin/file conftest.$ac_objext` in
7391
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
7399
# Append ld.so.conf contents to the search path
7400
if test -f /etc/ld.so.conf; then
7401
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
7402
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
7405
# We used to test for /lib/ld.so.1 and disable shared libraries on
7406
# powerpc, because MkLinux only supported shared libraries with the
7407
# GNU dynamic linker. Since this was broken with cross compilers,
7408
# most powerpc-linux boxes support dynamic linking these days and
7409
# people can always --disable-shared, the test was removed, and we
7410
# assume the GNU/Linux dynamic linker is in use.
7411
dynamic_linker='GNU/Linux ld.so'
7418
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7419
soname_spec='${libname}${release}${shared_ext}$major'
7420
shlibpath_var=LD_LIBRARY_PATH
7421
shlibpath_overrides_runpath=no
7422
hardcode_into_libs=yes
7423
dynamic_linker='GNU ld.so'
7430
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7431
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7432
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7433
dynamic_linker='NetBSD (a.out) ld.so'
7435
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7436
soname_spec='${libname}${release}${shared_ext}$major'
7437
dynamic_linker='NetBSD ld.elf_so'
7439
shlibpath_var=LD_LIBRARY_PATH
7440
shlibpath_overrides_runpath=yes
7441
hardcode_into_libs=yes
7446
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7447
shlibpath_var=LD_LIBRARY_PATH
7448
shlibpath_overrides_runpath=yes
7455
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7456
soname_spec='${libname}${release}${shared_ext}$major'
7457
shlibpath_var=LD_LIBRARY_PATH
7458
shlibpath_overrides_runpath=yes
7464
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
7466
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
7467
*) need_version=no ;;
7469
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7470
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7471
shlibpath_var=LD_LIBRARY_PATH
7472
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7474
openbsd2.[89] | openbsd2.[89].*)
7475
shlibpath_overrides_runpath=no
7478
shlibpath_overrides_runpath=yes
7482
shlibpath_overrides_runpath=yes
7487
libname_spec='$name'
7490
library_names_spec='$libname${shared_ext} $libname.a'
7491
dynamic_linker='OS/2 ld.exe'
7492
shlibpath_var=LIBPATH
7495
osf3* | osf4* | osf5*)
7499
soname_spec='${libname}${release}${shared_ext}$major'
7500
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7501
shlibpath_var=LD_LIBRARY_PATH
7502
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7503
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7508
soname_spec='${libname}${release}${shared_ext}$major'
7509
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7510
shlibpath_var=LD_LIBRARY_PATH
7517
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7518
soname_spec='${libname}${release}${shared_ext}$major'
7519
shlibpath_var=LD_LIBRARY_PATH
7520
shlibpath_overrides_runpath=yes
7521
hardcode_into_libs=yes
7522
# ldd complains unless libraries are executable
7523
postinstall_cmds='chmod +x $lib'
7528
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7529
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7530
shlibpath_var=LD_LIBRARY_PATH
7531
shlibpath_overrides_runpath=yes
7532
if test "$with_gnu_ld" = yes; then
7538
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7540
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7541
soname_spec='${libname}${release}${shared_ext}$major'
7542
shlibpath_var=LD_LIBRARY_PATH
7543
case $host_vendor in
7545
shlibpath_overrides_runpath=no
7547
export_dynamic_flag_spec='${wl}-Blargedynsym'
7548
runpath_var=LD_RUN_PATH
7556
shlibpath_overrides_runpath=no
7557
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7563
if test -d /usr/nec ;then
7565
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7566
soname_spec='$libname${shared_ext}.$major'
7567
shlibpath_var=LD_LIBRARY_PATH
7573
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7574
soname_spec='${libname}${release}${shared_ext}$major'
7575
shlibpath_var=LD_LIBRARY_PATH
7582
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7583
echo "${ECHO_T}$dynamic_linker" >&6
7584
test "$dynamic_linker" = no && can_build_shared=no
5383
7586
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
5384
7587
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5385
7588
hardcode_action=
5386
7589
if test -n "$hardcode_libdir_flag_spec" || \
5387
test -n "$runpath_var"; then
7590
test -n "$runpath_var" || \
7591
test "X$hardcode_automatic" = "Xyes" ; then
5389
7593
# We can hardcode non-existant directories.
5390
7594
if test "$hardcode_direct" != no &&
5391
7595
# If the only mechanism to avoid hardcoding is shlibpath_var, we
5392
7596
# have to relink, otherwise we might link with an installed library
5393
7597
# when we should be linking with a yet-to-be-installed one
5394
## test "$hardcode_shlibpath_var" != no &&
7598
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
5395
7599
test "$hardcode_minus_L" != no; then
5396
7600
# Linking always hardcodes the temporary library directory.
5397
7601
hardcode_action=relink
6941
cygwin* | mingw* | pw32* | os2*)
6942
cat <<'EOF' >> "${ofile}T"
6943
# This is a source program that is used to create dlls on Windows
6944
# Don't remove nor modify the starting and closing comments
6945
# /* ltdll.c starts here */
6946
# #define WIN32_LEAN_AND_MEAN
6947
# #include <windows.h>
6948
# #undef WIN32_LEAN_AND_MEAN
6949
# #include <stdio.h>
6951
# #ifndef __CYGWIN__
6952
# # ifdef __CYGWIN32__
6953
# # define __CYGWIN__ __CYGWIN32__
6957
# #ifdef __cplusplus
6960
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6961
# #ifdef __cplusplus
6966
# #include <cygwin/cygwin_dll.h>
6967
# DECLARE_CYGWIN_DLL( DllMain );
6969
# HINSTANCE __hDllInstance_base;
6972
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6974
# __hDllInstance_base = hInst;
6977
# /* ltdll.c ends here */
6978
# This is a source program that is used to create import libraries
6979
# on Windows for dlls which lack them. Don't remove nor modify the
6980
# starting and closing comments
6981
# /* impgen.c starts here */
6982
# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
6984
# This file is part of GNU libtool.
6986
# This program is free software; you can redistribute it and/or modify
6987
# it under the terms of the GNU General Public License as published by
6988
# the Free Software Foundation; either version 2 of the License, or
6989
# (at your option) any later version.
6991
# This program is distributed in the hope that it will be useful,
6992
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6993
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6994
# GNU General Public License for more details.
6996
# You should have received a copy of the GNU General Public License
6997
# along with this program; if not, write to the Free Software
6998
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7001
# #include <stdio.h> /* for printf() */
7002
# #include <unistd.h> /* for open(), lseek(), read() */
7003
# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7004
# #include <string.h> /* for strdup() */
7006
# /* O_BINARY isn't required (or even defined sometimes) under Unix */
7008
# #define O_BINARY 0
7011
# static unsigned int
7012
# pe_get16 (fd, offset)
7016
# unsigned char b[2];
7017
# lseek (fd, offset, SEEK_SET);
7019
# return b[0] + (b[1]<<8);
7022
# static unsigned int
7023
# pe_get32 (fd, offset)
7027
# unsigned char b[4];
7028
# lseek (fd, offset, SEEK_SET);
7030
# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7033
# static unsigned int
7037
# unsigned char *b = ptr;
7038
# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7047
# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7048
# unsigned long export_rva, export_size, nsections, secptr, expptr;
7049
# unsigned long name_rvas, nexp;
7050
# unsigned char *expdata, *erva;
7051
# char *filename, *dll_name;
7053
# filename = argv[1];
7055
# dll = open(filename, O_RDONLY|O_BINARY);
7059
# dll_name = filename;
7061
# for (i=0; filename[i]; i++)
7062
# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7063
# dll_name = filename + i +1;
7065
# pe_header_offset = pe_get32 (dll, 0x3c);
7066
# opthdr_ofs = pe_header_offset + 4 + 20;
7067
# num_entries = pe_get32 (dll, opthdr_ofs + 92);
7069
# if (num_entries < 1) /* no exports */
7072
# export_rva = pe_get32 (dll, opthdr_ofs + 96);
7073
# export_size = pe_get32 (dll, opthdr_ofs + 100);
7074
# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7075
# secptr = (pe_header_offset + 4 + 20 +
7076
# pe_get16 (dll, pe_header_offset + 4 + 16));
7079
# for (i = 0; i < nsections; i++)
7082
# unsigned long secptr1 = secptr + 40 * i;
7083
# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7084
# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7085
# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7086
# lseek(dll, secptr1, SEEK_SET);
7087
# read(dll, sname, 8);
7088
# if (vaddr <= export_rva && vaddr+vsize > export_rva)
7090
# expptr = fptr + (export_rva - vaddr);
7091
# if (export_rva + export_size > vaddr + vsize)
7092
# export_size = vsize - (export_rva - vaddr);
7097
# expdata = (unsigned char*)malloc(export_size);
7098
# lseek (dll, expptr, SEEK_SET);
7099
# read (dll, expdata, export_size);
7100
# erva = expdata - export_rva;
7102
# nexp = pe_as32 (expdata+24);
7103
# name_rvas = pe_as32 (expdata+32);
7105
# printf ("EXPORTS\n");
7106
# for (i = 0; i<nexp; i++)
7108
# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7109
# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7114
# /* impgen.c ends here */
7120
8953
# We use sed instead of cat because bash on DJGPP gets confused if
7121
8954
# if finds mixed CR/LF and LF-only lines. Since sed operates in
7122
8955
# text mode, it properly converts lines to CR/LF. This bash problem
7123
8956
# is reportedly fixed, but why not run on old versions too?
7124
sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8957
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
7126
mv -f "${ofile}T" "$ofile" || \
7127
(rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8959
mv -f "$cfgfile" "$ofile" || \
8960
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
7128
8961
chmod +x "$ofile"
8964
# If there is no Makefile yet, we rely on a make rule to execute
8965
# `config.status --recheck' to rerun these tests and create the
8966
# libtool script then.
8967
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
8968
if test -f "$ltmain_in"; then
8969
test -f Makefile && make "$ltmain"
8975
ac_cpp='$CPP $CPPFLAGS'
8976
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8977
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8978
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8983
# Check whether --with-tags or --without-tags was given.
8984
if test "${with_tags+set}" = set; then
8985
withval="$with_tags"
8989
if test -f "$ltmain" && test -n "$tagnames"; then
8990
if test ! -f "${ofile}"; then
8991
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8992
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8995
if test -z "$LTCC"; then
8996
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8997
if test -z "$LTCC"; then
8998
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8999
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9001
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9002
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9006
# Extract list of available tagged configurations in $ofile.
9007
# Note that this assumes the entire list is on one line.
9008
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9010
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9011
for tagname in $tagnames; do
9013
# Check whether tagname contains only valid characters
9014
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9016
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9017
echo "$as_me: error: invalid tag name: $tagname" >&2;}
9018
{ (exit 1); exit 1; }; }
9022
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9024
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9025
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9026
{ (exit 1); exit 1; }; }
9029
# Update the list of available tags.
9030
if test -n "$tagname"; then
9031
echo appending configuration tag \"$tagname\" to $ofile
9035
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9036
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9037
(test "X$CXX" != "Xg++"))) ; then
9039
ac_cpp='$CXXCPP $CPPFLAGS'
9040
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9041
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9042
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9047
archive_cmds_need_lc_CXX=no
9048
allow_undefined_flag_CXX=
9049
always_export_symbols_CXX=no
9050
archive_expsym_cmds_CXX=
9051
export_dynamic_flag_spec_CXX=
9052
hardcode_direct_CXX=no
9053
hardcode_libdir_flag_spec_CXX=
9054
hardcode_libdir_flag_spec_ld_CXX=
9055
hardcode_libdir_separator_CXX=
9056
hardcode_minus_L_CXX=no
9057
hardcode_automatic_CXX=no
9059
module_expsym_cmds_CXX=
9060
link_all_deplibs_CXX=unknown
9061
old_archive_cmds_CXX=$old_archive_cmds
9062
no_undefined_flag_CXX=
9063
whole_archive_flag_spec_CXX=
9064
enable_shared_with_static_runtimes_CXX=no
9066
# Dependencies to place before and after the object being linked:
9068
postdep_objects_CXX=
9071
compiler_lib_search_path_CXX=
9073
# Source file extension for C++ test sources.
9076
# Object file extension for compiled C++ test sources.
9080
# Code to be used in simple compile tests
9081
lt_simple_compile_test_code="int some_variable = 0;\n"
9083
# Code to be used in simple link tests
9084
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9086
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9088
# If no C compiler was specified, use CC.
9091
# Allow CC to be a program name with arguments.
9095
# save warnings/boilerplate of simple test code
9096
ac_outfile=conftest.$ac_objext
9097
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9098
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9099
_lt_compiler_boilerplate=`cat conftest.err`
9102
ac_outfile=conftest.$ac_objext
9103
printf "$lt_simple_link_test_code" >conftest.$ac_ext
9104
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9105
_lt_linker_boilerplate=`cat conftest.err`
9109
# Allow CC to be a program name with arguments.
9114
lt_save_with_gnu_ld=$with_gnu_ld
9115
lt_save_path_LD=$lt_cv_path_LD
9116
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9117
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9119
unset lt_cv_prog_gnu_ld
9121
if test -n "${lt_cv_path_LDCXX+set}"; then
9122
lt_cv_path_LD=$lt_cv_path_LDCXX
9126
test -z "${LDCXX+set}" || LD=$LDCXX
9130
for cc_temp in $compiler""; do
9132
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9133
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9138
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9141
# We don't want -fno-exception wen compiling C++ code, so set the
9142
# no_builtin_flag separately
9143
if test "$GXX" = yes; then
9144
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9146
lt_prog_compiler_no_builtin_flag_CXX=
9149
if test "$GXX" = yes; then
9150
# Set up default GNU C++ configuration
9153
# Check whether --with-gnu-ld or --without-gnu-ld was given.
9154
if test "${with_gnu_ld+set}" = set; then
9155
withval="$with_gnu_ld"
9156
test "$withval" = no || with_gnu_ld=yes
9161
if test "$GCC" = yes; then
9162
# Check if gcc -print-prog-name=ld gives a path.
9163
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9164
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9167
# gcc leaves a trailing carriage return which upsets mingw
9168
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9170
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9173
# Accept absolute paths.
9175
re_direlt='/[^/][^/]*/\.\./'
9176
# Canonicalize the pathname of ld
9177
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9178
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9179
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9181
test -z "$LD" && LD="$ac_prog"
9184
# If it fails, then pretend we aren't using GCC.
9188
# If it is relative, then search for the first ld in PATH.
9192
elif test "$with_gnu_ld" = yes; then
9193
echo "$as_me:$LINENO: checking for GNU ld" >&5
9194
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9196
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9197
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9199
if test "${lt_cv_path_LD+set}" = set; then
9200
echo $ECHO_N "(cached) $ECHO_C" >&6
9202
if test -z "$LD"; then
9203
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9204
for ac_dir in $PATH; do
9206
test -z "$ac_dir" && ac_dir=.
9207
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9208
lt_cv_path_LD="$ac_dir/$ac_prog"
9209
# Check to see if the program is GNU ld. I'd rather use --version,
9210
# but apparently some GNU ld's only accept -v.
9211
# Break only if it was the GNU/non-GNU ld that we prefer.
9212
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9213
*GNU* | *'with BFD'*)
9214
test "$with_gnu_ld" != no && break
9217
test "$with_gnu_ld" != yes && break
9224
lt_cv_path_LD="$LD" # Let the user override the test with a path.
9229
if test -n "$LD"; then
9230
echo "$as_me:$LINENO: result: $LD" >&5
9231
echo "${ECHO_T}$LD" >&6
9233
echo "$as_me:$LINENO: result: no" >&5
9234
echo "${ECHO_T}no" >&6
9236
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9237
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9238
{ (exit 1); exit 1; }; }
9239
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9240
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9241
if test "${lt_cv_prog_gnu_ld+set}" = set; then
9242
echo $ECHO_N "(cached) $ECHO_C" >&6
9244
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
9245
case `$LD -v 2>&1 </dev/null` in
9246
*GNU* | *'with BFD'*)
9247
lt_cv_prog_gnu_ld=yes
9250
lt_cv_prog_gnu_ld=no
9254
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9255
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9256
with_gnu_ld=$lt_cv_prog_gnu_ld
9260
# Check if GNU C++ uses GNU ld as the underlying linker, since the
9261
# archiving commands below assume that GNU ld is being used.
9262
if test "$with_gnu_ld" = yes; then
9263
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9264
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'
9266
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9267
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9269
# If archive_cmds runs LD, not CC, wlarc should be empty
9270
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9271
# investigate it a little bit more. (MM)
9274
# ancient GNU ld didn't support --whole-archive et. al.
9275
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9276
grep 'no-whole-archive' > /dev/null; then
9277
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9279
whole_archive_flag_spec_CXX=
9285
# A generic and very simple default shared library creation
9286
# command for GNU C++ for the case where it uses the native
9287
# linker, instead of GNU ld. If possible, this setting should
9288
# overridden to take advantage of the native linker features on
9289
# the platform it is being used on.
9290
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9293
# Commands to make compiler produce verbose output that lists
9294
# what "hidden" libraries, object files and flags are used when
9295
# linking a shared library.
9296
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9304
# PORTME: fill in a description of your system's C++ link characteristics
9305
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9306
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9310
# FIXME: insert proper C++ library support
9314
if test "$host_cpu" = ia64; then
9315
# On IA64, the linker does run time linking by default, so we don't
9316
# have to do anything special.
9317
aix_use_runtimelinking=no
9318
exp_sym_flag='-Bexport'
9321
aix_use_runtimelinking=no
9323
# Test if we are trying to use run time linking or normal
9324
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9325
# need to do runtime linking.
9326
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9327
for ld_flag in $LDFLAGS; do
9330
aix_use_runtimelinking=yes
9337
exp_sym_flag='-bexport'
9338
no_entry_flag='-bnoentry'
9341
# When large executables or shared objects are built, AIX ld can
9342
# have problems creating the table of contents. If linking a library
9343
# or program results in "error TOC overflow" add -mminimal-toc to
9344
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9345
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9348
hardcode_direct_CXX=yes
9349
hardcode_libdir_separator_CXX=':'
9350
link_all_deplibs_CXX=yes
9352
if test "$GXX" = yes; then
9353
case $host_os in aix4.[012]|aix4.[012].*)
9354
# We only want to do this on AIX 4.2 and lower, the check
9355
# below for broken collect2 doesn't work under 4.3+
9356
collect2name=`${CC} -print-prog-name=collect2`
9357
if test -f "$collect2name" && \
9358
strings "$collect2name" | grep resolve_lib_name >/dev/null
9360
# We have reworked collect2
9361
hardcode_direct_CXX=yes
9363
# We have old collect2
9364
hardcode_direct_CXX=unsupported
9365
# It fails to find uninstalled libraries when the uninstalled
9366
# path is not listed in the libpath. Setting hardcode_minus_L
9367
# to unsupported forces relinking
9368
hardcode_minus_L_CXX=yes
9369
hardcode_libdir_flag_spec_CXX='-L$libdir'
9370
hardcode_libdir_separator_CXX=
9373
shared_flag='-shared'
9374
if test "$aix_use_runtimelinking" = yes; then
9375
shared_flag="$shared_flag "'${wl}-G'
9379
if test "$host_cpu" = ia64; then
9380
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9381
# chokes on -Wl,-G. The following line is correct:
9384
if test "$aix_use_runtimelinking" = yes; then
9385
shared_flag='${wl}-G'
9387
shared_flag='${wl}-bM:SRE'
9392
# It seems that -bexpall does not export symbols beginning with
9393
# underscore (_), so it is better to generate a list of symbols to export.
9394
always_export_symbols_CXX=yes
9395
if test "$aix_use_runtimelinking" = yes; then
9396
# Warning - without using the other runtime loading flags (-brtl),
9397
# -berok will link without error, but may produce a broken library.
9398
allow_undefined_flag_CXX='-berok'
9399
# Determine the default libpath from the value encoded in an empty executable.
9400
cat >conftest.$ac_ext <<_ACEOF
9403
cat confdefs.h >>conftest.$ac_ext
9404
cat >>conftest.$ac_ext <<_ACEOF
9405
/* end confdefs.h. */
9415
rm -f conftest.$ac_objext conftest$ac_exeext
9416
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9417
(eval $ac_link) 2>conftest.er1
9419
grep -v '^ *+' conftest.er1 >conftest.err
9421
cat conftest.err >&5
9422
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423
(exit $ac_status); } &&
9424
{ ac_try='test -z "$ac_cxx_werror_flag"
9425
|| test ! -s conftest.err'
9426
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9429
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430
(exit $ac_status); }; } &&
9431
{ ac_try='test -s conftest$ac_exeext'
9432
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9435
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436
(exit $ac_status); }; }; then
9438
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9440
# Check for a 64-bit object if we didn't find anything.
9441
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9444
echo "$as_me: failed program was:" >&5
9445
sed 's/^/| /' conftest.$ac_ext >&5
9448
rm -f conftest.err conftest.$ac_objext \
9449
conftest$ac_exeext conftest.$ac_ext
9450
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9452
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9454
archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9456
if test "$host_cpu" = ia64; then
9457
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9458
allow_undefined_flag_CXX="-z nodefs"
9459
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9461
# Determine the default libpath from the value encoded in an empty executable.
9462
cat >conftest.$ac_ext <<_ACEOF
9465
cat confdefs.h >>conftest.$ac_ext
9466
cat >>conftest.$ac_ext <<_ACEOF
9467
/* end confdefs.h. */
9477
rm -f conftest.$ac_objext conftest$ac_exeext
9478
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9479
(eval $ac_link) 2>conftest.er1
9481
grep -v '^ *+' conftest.er1 >conftest.err
9483
cat conftest.err >&5
9484
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485
(exit $ac_status); } &&
9486
{ ac_try='test -z "$ac_cxx_werror_flag"
9487
|| test ! -s conftest.err'
9488
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9491
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492
(exit $ac_status); }; } &&
9493
{ ac_try='test -s conftest$ac_exeext'
9494
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9497
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498
(exit $ac_status); }; }; then
9500
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9502
# Check for a 64-bit object if we didn't find anything.
9503
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9506
echo "$as_me: failed program was:" >&5
9507
sed 's/^/| /' conftest.$ac_ext >&5
9510
rm -f conftest.err conftest.$ac_objext \
9511
conftest$ac_exeext conftest.$ac_ext
9512
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9514
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9515
# Warning - without using the other run time loading flags,
9516
# -berok will link without error, but may produce a broken library.
9517
no_undefined_flag_CXX=' ${wl}-bernotok'
9518
allow_undefined_flag_CXX=' ${wl}-berok'
9519
# -bexpall does not export symbols beginning with underscore (_)
9520
always_export_symbols_CXX=yes
9521
# Exported symbols can be pulled into shared objects from archives
9522
whole_archive_flag_spec_CXX=' '
9523
archive_cmds_need_lc_CXX=yes
9524
# This is similar to how AIX traditionally builds it's shared libraries.
9525
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9530
case $cc_basename in
9532
# FIXME: insert proper C++ library support
9539
cygwin* | mingw* | pw32*)
9540
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9541
# as there is no search path for DLLs.
9542
hardcode_libdir_flag_spec_CXX='-L$libdir'
9543
allow_undefined_flag_CXX=unsupported
9544
always_export_symbols_CXX=no
9545
enable_shared_with_static_runtimes_CXX=yes
9547
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9548
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9549
# If the export-symbols file already is a .def file (1st line
9550
# is EXPORTS), use it as is; otherwise, prepend...
9551
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9552
cp $export_symbols $output_objdir/$soname.def;
9554
echo EXPORTS > $output_objdir/$soname.def;
9555
cat $export_symbols >> $output_objdir/$soname.def;
9557
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9562
darwin* | rhapsody*)
9564
rhapsody* | darwin1.[012])
9565
allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
9568
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9569
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9571
case ${MACOSX_DEPLOYMENT_TARGET} in
9573
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9576
allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
9582
archive_cmds_need_lc_CXX=no
9583
hardcode_direct_CXX=no
9584
hardcode_automatic_CXX=yes
9585
hardcode_shlibpath_var_CXX=unsupported
9586
whole_archive_flag_spec_CXX=''
9587
link_all_deplibs_CXX=yes
9589
if test "$GXX" = yes ; then
9590
lt_int_apple_cc_single_mod=no
9591
output_verbose_link_cmd='echo'
9592
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
9593
lt_int_apple_cc_single_mod=yes
9595
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9596
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9598
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'
9600
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9601
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9602
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9603
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9605
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9607
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}'
9609
case $cc_basename in
9611
output_verbose_link_cmd='echo'
9612
archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9613
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9614
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9615
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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9616
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}'
9626
case $cc_basename in
9628
# FIXME: insert proper C++ library support
9632
# Green Hills C++ Compiler
9633
# FIXME: insert proper C++ library support
9637
# FIXME: insert proper C++ library support
9643
# C++ shared libraries reported to be fairly broken before switch to ELF
9647
archive_cmds_need_lc_CXX=no
9649
freebsd* | kfreebsd*-gnu | dragonfly*)
9650
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9657
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9658
hardcode_libdir_separator_CXX=:
9659
export_dynamic_flag_spec_CXX='${wl}-E'
9660
hardcode_direct_CXX=yes
9661
hardcode_minus_L_CXX=yes # Not in the search PATH,
9662
# but as the default
9663
# location of the library.
9665
case $cc_basename in
9667
# FIXME: insert proper C++ library support
9671
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'
9672
# Commands to make compiler produce verbose output that lists
9673
# what "hidden" libraries, object files and flags are used when
9674
# linking a shared library.
9676
# There doesn't appear to be a way to prevent this compiler from
9677
# explicitly linking system object files so we need to strip them
9678
# from the output so that they don't get included in the library
9680
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'
9683
if test "$GXX" = yes; then
9684
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'
9686
# FIXME: insert proper C++ library support
9693
if test $with_gnu_ld = no; then
9696
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9697
hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9698
hardcode_libdir_separator_CXX=:
9701
hardcode_libdir_flag_spec_CXX='-L$libdir'
9704
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9705
hardcode_libdir_separator_CXX=:
9706
export_dynamic_flag_spec_CXX='${wl}-E'
9712
hardcode_direct_CXX=no
9713
hardcode_shlibpath_var_CXX=no
9716
hardcode_direct_CXX=no
9717
hardcode_shlibpath_var_CXX=no
9718
hardcode_minus_L_CXX=yes # Not in the search PATH,
9719
# but as the default
9720
# location of the library.
9723
hardcode_direct_CXX=yes
9724
hardcode_minus_L_CXX=yes # Not in the search PATH,
9725
# but as the default
9726
# location of the library.
9730
case $cc_basename in
9732
# FIXME: insert proper C++ library support
9738
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9741
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9744
# Commands to make compiler produce verbose output that lists
9745
# what "hidden" libraries, object files and flags are used when
9746
# linking a shared library.
9748
# There doesn't appear to be a way to prevent this compiler from
9749
# explicitly linking system object files so we need to strip them
9750
# from the output so that they don't get included in the library
9752
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'
9755
if test "$GXX" = yes; then
9756
if test $with_gnu_ld = no; then
9759
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9762
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'
9767
# FIXME: insert proper C++ library support
9774
case $cc_basename in
9777
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'
9779
# Archives containing C++ object files must be created using
9780
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
9781
# necessary to make sure instantiated templates are included
9783
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9786
if test "$GXX" = yes; then
9787
if test "$with_gnu_ld" = no; then
9788
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'
9790
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'
9793
link_all_deplibs_CXX=yes
9796
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9797
hardcode_libdir_separator_CXX=:
9800
case $cc_basename in
9802
# Kuck and Associates, Inc. (KAI) C++ Compiler
9804
# KCC will only create a shared library if the output file
9805
# ends with ".so" (or ".sl" for HP-UX), so rename the library
9806
# to its proper name (with version) after linking.
9807
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'
9808
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'
9809
# Commands to make compiler produce verbose output that lists
9810
# what "hidden" libraries, object files and flags are used when
9811
# linking a shared library.
9813
# There doesn't appear to be a way to prevent this compiler from
9814
# explicitly linking system object files so we need to strip them
9815
# from the output so that they don't get included in the library
9817
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'
9819
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9820
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9822
# Archives containing C++ object files must be created using
9823
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
9824
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9829
# version 8.0 and above of icpc choke on multiply defined symbols
9830
# if we add $predep_objects and $postdep_objects, however 7.1 and
9831
# earlier do not add the objects themselves.
9832
case `$CC -V 2>&1` in
9834
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9835
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'
9837
*) # Version 8.0 or newer
9840
ia64*) tmp_idyn=' -i_dynamic';;
9842
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9843
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'
9846
archive_cmds_need_lc_CXX=no
9847
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9848
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9849
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9852
# Portland Group C++ compiler
9853
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
9854
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'
9856
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9857
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9858
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'
9862
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9863
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'
9865
runpath_var=LD_RUN_PATH
9866
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9867
hardcode_libdir_separator_CXX=:
9869
# Commands to make compiler produce verbose output that lists
9870
# what "hidden" libraries, object files and flags are used when
9871
# linking a shared library.
9873
# There doesn't appear to be a way to prevent this compiler from
9874
# explicitly linking system object files so we need to strip them
9875
# from the output so that they don't get included in the library
9877
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'
9882
# FIXME: insert proper C++ library support
9886
# FIXME: insert proper C++ library support
9890
case $cc_basename in
9892
# FIXME: insert proper C++ library support
9896
# FIXME: insert proper C++ library support
9902
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9903
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9905
hardcode_libdir_flag_spec_CXX='-R$libdir'
9906
hardcode_direct_CXX=yes
9907
hardcode_shlibpath_var_CXX=no
9909
# Workaround some broken pre-1.5 toolchains
9910
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9913
# C++ shared libraries are fairly broken
9917
hardcode_direct_CXX=yes
9918
hardcode_shlibpath_var_CXX=no
9919
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9920
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9921
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9922
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
9923
export_dynamic_flag_spec_CXX='${wl}-E'
9924
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9926
output_verbose_link_cmd='echo'
9929
case $cc_basename in
9931
# Kuck and Associates, Inc. (KAI) C++ Compiler
9933
# KCC will only create a shared library if the output file
9934
# ends with ".so" (or ".sl" for HP-UX), so rename the library
9935
# to its proper name (with version) after linking.
9936
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'
9938
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9939
hardcode_libdir_separator_CXX=:
9941
# Archives containing C++ object files must be created using
9942
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
9943
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9947
# Rational C++ 2.4.1
9948
# FIXME: insert proper C++ library support
9952
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9953
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'
9955
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9956
hardcode_libdir_separator_CXX=:
9958
# Commands to make compiler produce verbose output that lists
9959
# what "hidden" libraries, object files and flags are used when
9960
# linking a shared library.
9962
# There doesn't appear to be a way to prevent this compiler from
9963
# explicitly linking system object files so we need to strip them
9964
# from the output so that they don't get included in the library
9966
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'
9969
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9970
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9971
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'
9973
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9974
hardcode_libdir_separator_CXX=:
9976
# Commands to make compiler produce verbose output that lists
9977
# what "hidden" libraries, object files and flags are used when
9978
# linking a shared library.
9979
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9982
# FIXME: insert proper C++ library support
9989
case $cc_basename in
9991
# Kuck and Associates, Inc. (KAI) C++ Compiler
9993
# KCC will only create a shared library if the output file
9994
# ends with ".so" (or ".sl" for HP-UX), so rename the library
9995
# to its proper name (with version) after linking.
9996
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'
9998
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9999
hardcode_libdir_separator_CXX=:
10001
# Archives containing C++ object files must be created using
10002
# the KAI C++ compiler.
10003
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10006
# Rational C++ 2.4.1
10007
# FIXME: insert proper C++ library support
10011
allow_undefined_flag_CXX=' -expect_unresolved \*'
10012
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'
10013
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10014
echo "-hidden">> $lib.exp~
10015
$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~
10018
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10019
hardcode_libdir_separator_CXX=:
10021
# Commands to make compiler produce verbose output that lists
10022
# what "hidden" libraries, object files and flags are used when
10023
# linking a shared library.
10025
# There doesn't appear to be a way to prevent this compiler from
10026
# explicitly linking system object files so we need to strip them
10027
# from the output so that they don't get included in the library
10029
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'
10032
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10033
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10034
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'
10036
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10037
hardcode_libdir_separator_CXX=:
10039
# Commands to make compiler produce verbose output that lists
10040
# what "hidden" libraries, object files and flags are used when
10041
# linking a shared library.
10042
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10045
# FIXME: insert proper C++ library support
10052
# FIXME: insert proper C++ library support
10056
archive_cmds_need_lc_CXX=no
10057
case $cc_basename in
10059
# FIXME: insert proper C++ library support
10063
# FIXME: insert proper C++ library support
10069
case $cc_basename in
10072
# FIXME: insert proper C++ library support
10077
# FIXME: insert proper C++ library support
10081
# FIXME: insert proper C++ library support
10087
case $cc_basename in
10089
# Sun C++ 4.2, 5.x and Centerline C++
10090
no_undefined_flag_CXX=' -zdefs'
10091
archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10092
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10093
$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10095
hardcode_libdir_flag_spec_CXX='-R$libdir'
10096
hardcode_shlibpath_var_CXX=no
10098
solaris2.[0-5] | solaris2.[0-5].*) ;;
10100
# The C++ compiler is used as linker so we must use $wl
10101
# flag to pass the commands to the underlying system
10102
# linker. We must also pass each convience library through
10103
# to the system linker between allextract/defaultextract.
10104
# The C++ compiler will combine linker options so we
10105
# cannot just pass the convience library names through
10107
# Supported since Solaris 2.6 (maybe 2.5.1?)
10108
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
10111
link_all_deplibs_CXX=yes
10113
# Commands to make compiler produce verbose output that lists
10114
# what "hidden" libraries, object files and flags are used when
10115
# linking a shared library.
10117
# There doesn't appear to be a way to prevent this compiler from
10118
# explicitly linking system object files so we need to strip them
10119
# from the output so that they don't get included in the library
10121
output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10123
# Archives containing C++ object files must be created using
10124
# "CC -xar", where "CC" is the Sun C++ compiler. This is
10125
# necessary to make sure instantiated templates are included
10127
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10130
# Green Hills C++ Compiler
10131
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10133
# The C++ compiler must be used to create the archive.
10134
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10137
# GNU C++ compiler with Solaris linker
10138
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10139
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10140
if $CC --version | grep -v '^2\.7' > /dev/null; then
10141
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10142
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10143
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10145
# Commands to make compiler produce verbose output that lists
10146
# what "hidden" libraries, object files and flags are used when
10147
# linking a shared library.
10148
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10150
# g++ 2.7 appears to require `-G' NOT `-shared' on this
10152
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10153
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10154
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10156
# Commands to make compiler produce verbose output that lists
10157
# what "hidden" libraries, object files and flags are used when
10158
# linking a shared library.
10159
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10162
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10167
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10168
archive_cmds_need_lc_CXX=no
10171
case $cc_basename in
10173
# NonStop-UX NCC 3.20
10174
# FIXME: insert proper C++ library support
10178
# FIXME: insert proper C++ library support
10184
# FIXME: insert proper C++ library support
10188
# FIXME: insert proper C++ library support
10192
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10193
echo "${ECHO_T}$ld_shlibs_CXX" >&6
10194
test "$ld_shlibs_CXX" = no && can_build_shared=no
10200
## There is no encapsulation within the following macros, do not change
10201
## the running order or otherwise move them around unless you know exactly
10202
## what you are doing...
10204
cat > conftest.$ac_ext <<EOF
10208
Foo (void) { a = 0; }
10214
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10215
(eval $ac_compile) 2>&5
10217
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218
(exit $ac_status); }; then
10219
# Parse the compiler output and extract the necessary
10220
# objects, libraries and library flags.
10222
# Sentinel used to keep track of whether or not we are before
10223
# the conftest object file.
10224
pre_test_object_deps_done=no
10226
# The `*' in the case matches for architectures that use `case' in
10227
# $output_verbose_cmd can trigger glob expansion during the loop
10228
# eval without this substitution.
10229
output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10231
for p in `eval $output_verbose_link_cmd`; do
10235
# Some compilers place space between "-{L,R}" and the path.
10236
# Remove the space.
10237
if test $p = "-L" \
10238
|| test $p = "-R"; then
10245
if test "$pre_test_object_deps_done" = no; then
10248
# Internal compiler library paths should come after those
10249
# provided the user. The postdeps already come after the
10250
# user supplied libs so there is no need to process them.
10251
if test -z "$compiler_lib_search_path_CXX"; then
10252
compiler_lib_search_path_CXX="${prev}${p}"
10254
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10257
# The "-l" case would never come before the object being
10258
# linked, so don't bother handling this case.
10261
if test -z "$postdeps_CXX"; then
10262
postdeps_CXX="${prev}${p}"
10264
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10270
# This assumes that the test object file only shows up
10271
# once in the compiler output.
10272
if test "$p" = "conftest.$objext"; then
10273
pre_test_object_deps_done=yes
10277
if test "$pre_test_object_deps_done" = no; then
10278
if test -z "$predep_objects_CXX"; then
10279
predep_objects_CXX="$p"
10281
predep_objects_CXX="$predep_objects_CXX $p"
10284
if test -z "$postdep_objects_CXX"; then
10285
postdep_objects_CXX="$p"
10287
postdep_objects_CXX="$postdep_objects_CXX $p"
10292
*) ;; # Ignore the rest.
10300
echo "libtool.m4: error: problem compiling CXX test program"
10303
$rm -f confest.$objext
10305
case " $postdeps_CXX " in
10306
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10309
lt_prog_compiler_wl_CXX=
10310
lt_prog_compiler_pic_CXX=
10311
lt_prog_compiler_static_CXX=
10313
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10314
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10316
# C++ specific cases for pic, static, wl, etc.
10317
if test "$GXX" = yes; then
10318
lt_prog_compiler_wl_CXX='-Wl,'
10319
lt_prog_compiler_static_CXX='-static'
10323
# All AIX code is PIC.
10324
if test "$host_cpu" = ia64; then
10325
# AIX 5 now supports IA64 processor
10326
lt_prog_compiler_static_CXX='-Bstatic'
10330
# FIXME: we need at least 68020 code to build shared libraries, but
10331
# adding the `-m68020' flag to GCC prevents building anything better,
10333
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10335
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10336
# PIC is the default for these OSes.
10338
mingw* | os2* | pw32*)
10339
# This hack is so that the source file can tell whether it is being
10340
# built for inclusion in a dll (and should export symbols for example).
10341
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10343
darwin* | rhapsody*)
10344
# PIC is the default on this platform
10345
# Common symbols not allowed in MH_DYLIB files
10346
lt_prog_compiler_pic_CXX='-fno-common'
10349
# DJGPP does not support shared libraries at all
10350
lt_prog_compiler_pic_CXX=
10353
if test -d /usr/nec; then
10354
lt_prog_compiler_pic_CXX=-Kconform_pic
10358
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10359
# not for PA HP-UX.
10360
case "$host_cpu" in
10364
lt_prog_compiler_pic_CXX='-fPIC'
10369
lt_prog_compiler_pic_CXX='-fPIC'
10375
# All AIX code is PIC.
10376
if test "$host_cpu" = ia64; then
10377
# AIX 5 now supports IA64 processor
10378
lt_prog_compiler_static_CXX='-Bstatic'
10380
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10384
case $cc_basename in
10386
# Green Hills C++ Compiler
10387
# _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
10392
# PIC is the default on this platform
10393
# Common symbols not allowed in MH_DYLIB files
10394
case $cc_basename in
10396
lt_prog_compiler_pic_CXX='-qnocommon'
10397
lt_prog_compiler_wl_CXX='-Wl,'
10402
case $cc_basename in
10404
lt_prog_compiler_pic_CXX='-KPIC'
10407
# Green Hills C++ Compiler
10408
lt_prog_compiler_pic_CXX='-pic'
10414
freebsd* | kfreebsd*-gnu | dragonfly*)
10415
# FreeBSD uses GNU C++
10417
hpux9* | hpux10* | hpux11*)
10418
case $cc_basename in
10420
lt_prog_compiler_wl_CXX='-Wl,'
10421
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10422
if test "$host_cpu" != ia64; then
10423
lt_prog_compiler_pic_CXX='+Z'
10427
lt_prog_compiler_wl_CXX='-Wl,'
10428
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10429
case "$host_cpu" in
10434
lt_prog_compiler_pic_CXX='+Z'
10442
irix5* | irix6* | nonstopux*)
10443
case $cc_basename in
10445
lt_prog_compiler_wl_CXX='-Wl,'
10446
lt_prog_compiler_static_CXX='-non_shared'
10447
# CC pic flag -KPIC is the default.
10454
case $cc_basename in
10457
lt_prog_compiler_wl_CXX='--backend -Wl,'
10458
lt_prog_compiler_pic_CXX='-fPIC'
10462
lt_prog_compiler_wl_CXX='-Wl,'
10463
lt_prog_compiler_pic_CXX='-KPIC'
10464
lt_prog_compiler_static_CXX='-static'
10467
# Portland Group C++ compiler.
10468
lt_prog_compiler_wl_CXX='-Wl,'
10469
lt_prog_compiler_pic_CXX='-fpic'
10470
lt_prog_compiler_static_CXX='-static'
10474
# Make sure the PIC flag is empty. It appears that all Alpha
10475
# Linux and Compaq Tru64 Unix objects are PIC.
10476
lt_prog_compiler_pic_CXX=
10477
lt_prog_compiler_static_CXX='-non_shared'
10488
case $cc_basename in
10490
lt_prog_compiler_pic_CXX='-W c,exportall'
10498
osf3* | osf4* | osf5*)
10499
case $cc_basename in
10501
lt_prog_compiler_wl_CXX='--backend -Wl,'
10504
# Rational C++ 2.4.1
10505
lt_prog_compiler_pic_CXX='-pic'
10508
# Digital/Compaq C++
10509
lt_prog_compiler_wl_CXX='-Wl,'
10510
# Make sure the PIC flag is empty. It appears that all Alpha
10511
# Linux and Compaq Tru64 Unix objects are PIC.
10512
lt_prog_compiler_pic_CXX=
10513
lt_prog_compiler_static_CXX='-non_shared'
10522
case $cc_basename in
10524
lt_prog_compiler_pic_CXX='-fPIC'
10531
case $cc_basename in
10533
# Sun C++ 4.2, 5.x and Centerline C++
10534
lt_prog_compiler_pic_CXX='-KPIC'
10535
lt_prog_compiler_static_CXX='-Bstatic'
10536
lt_prog_compiler_wl_CXX='-Qoption ld '
10539
# Green Hills C++ Compiler
10540
lt_prog_compiler_pic_CXX='-PIC'
10547
case $cc_basename in
10550
lt_prog_compiler_pic_CXX='-pic'
10551
lt_prog_compiler_static_CXX='-Bstatic'
10555
lt_prog_compiler_pic_CXX='-pic'
10562
case $cc_basename in
10564
# NonStop-UX NCC 3.20
10565
lt_prog_compiler_pic_CXX='-KPIC'
10576
lt_prog_compiler_can_build_shared_CXX=no
10581
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10582
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10585
# Check to make sure the PIC flag actually works.
10587
if test -n "$lt_prog_compiler_pic_CXX"; then
10589
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10590
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10591
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10592
echo $ECHO_N "(cached) $ECHO_C" >&6
10594
lt_prog_compiler_pic_works_CXX=no
10595
ac_outfile=conftest.$ac_objext
10596
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10597
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10598
# Insert the option either (1) after the last *FLAGS variable, or
10599
# (2) before a word containing "conftest.", or (3) at the end.
10600
# Note that $ac_compile itself does not contain backslashes and begins
10601
# with a dollar sign (not a hyphen), so the echo should work correctly.
10602
# The option is referenced via a variable to avoid confusing sed.
10603
lt_compile=`echo "$ac_compile" | $SED \
10604
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10605
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10606
-e 's:$: $lt_compiler_flag:'`
10607
(eval echo "\"\$as_me:10607: $lt_compile\"" >&5)
10608
(eval "$lt_compile" 2>conftest.err)
10610
cat conftest.err >&5
10611
echo "$as_me:10611: \$? = $ac_status" >&5
10612
if (exit $ac_status) && test -s "$ac_outfile"; then
10613
# The compiler can only warn and ignore the option if not recognized
10614
# So say no if there are warnings other than the usual output.
10615
$echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
10616
$SED '/^$/d' conftest.err >conftest.er2
10617
if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
10618
lt_prog_compiler_pic_works_CXX=yes
10624
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10625
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10627
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10628
case $lt_prog_compiler_pic_CXX in
10630
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10633
lt_prog_compiler_pic_CXX=
10634
lt_prog_compiler_can_build_shared_CXX=no
10639
# For platforms which do not support PIC, -DPIC is meaningless:
10641
lt_prog_compiler_pic_CXX=
10644
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10648
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10649
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10650
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10651
echo $ECHO_N "(cached) $ECHO_C" >&6
10653
lt_cv_prog_compiler_c_o_CXX=no
10654
$rm -r conftest 2>/dev/null
10658
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10660
lt_compiler_flag="-o out/conftest2.$ac_objext"
10661
# Insert the option either (1) after the last *FLAGS variable, or
10662
# (2) before a word containing "conftest.", or (3) at the end.
10663
# Note that $ac_compile itself does not contain backslashes and begins
10664
# with a dollar sign (not a hyphen), so the echo should work correctly.
10665
lt_compile=`echo "$ac_compile" | $SED \
10666
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10667
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10668
-e 's:$: $lt_compiler_flag:'`
10669
(eval echo "\"\$as_me:10669: $lt_compile\"" >&5)
10670
(eval "$lt_compile" 2>out/conftest.err)
10672
cat out/conftest.err >&5
10673
echo "$as_me:10673: \$? = $ac_status" >&5
10674
if (exit $ac_status) && test -s out/conftest2.$ac_objext
10676
# The compiler can only warn and ignore the option if not recognized
10677
# So say no if there are warnings
10678
$echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
10679
$SED '/^$/d' out/conftest.err >out/conftest.er2
10680
if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10681
lt_cv_prog_compiler_c_o_CXX=yes
10686
# SGI C++ compiler will create directory out/ii_files/ for
10687
# template instantiation
10688
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10689
$rm out/* && rmdir out
10695
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10696
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10699
hard_links="nottested"
10700
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10701
# do not overwrite the value of need_locks provided by the user
10702
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10703
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10706
ln conftest.a conftest.b 2>/dev/null && hard_links=no
10708
ln conftest.a conftest.b 2>&5 || hard_links=no
10709
ln conftest.a conftest.b 2>/dev/null && hard_links=no
10710
echo "$as_me:$LINENO: result: $hard_links" >&5
10711
echo "${ECHO_T}$hard_links" >&6
10712
if test "$hard_links" = no; then
10713
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10714
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10721
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10722
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10724
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10727
# If we're using GNU nm, then we don't want the "-C" option.
10728
# -C means demangle to AIX nm, but means don't demangle with GNU nm
10729
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10730
export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
10732
export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
10736
export_symbols_cmds_CXX="$ltdll_cmds"
10739
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10742
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10746
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10747
echo "${ECHO_T}$ld_shlibs_CXX" >&6
10748
test "$ld_shlibs_CXX" = no && can_build_shared=no
10750
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10751
if test "$GCC" = yes; then
10752
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10756
# Do we need to explicitly link libc?
10758
case "x$archive_cmds_need_lc_CXX" in
10760
# Assume -lc should be added
10761
archive_cmds_need_lc_CXX=yes
10763
if test "$enable_shared" = yes && test "$GCC" = yes; then
10764
case $archive_cmds_CXX in
10766
# FIXME: we may have to deal with multi-command sequences.
10769
# Test whether the compiler implicitly links with -lc since on some
10770
# systems, -lgcc has to come before -lc. If gcc already passes -lc
10771
# to ld, don't add -lc before -lgcc.
10772
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10773
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10775
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10777
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10778
(eval $ac_compile) 2>&5
10780
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781
(exit $ac_status); } 2>conftest.err; then
10784
libobjs=conftest.$ac_objext
10786
wl=$lt_prog_compiler_wl_CXX
10792
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10793
allow_undefined_flag_CXX=
10794
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10795
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10797
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798
(exit $ac_status); }
10800
archive_cmds_need_lc_CXX=no
10802
archive_cmds_need_lc_CXX=yes
10804
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10806
cat conftest.err 1>&5
10809
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10810
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10817
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10818
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10819
library_names_spec=
10820
libname_spec='lib$name'
10824
postuninstall_cmds=
10828
shlibpath_overrides_runpath=unknown
10830
dynamic_linker="$host_os ld.so"
10831
sys_lib_dlsearch_path_spec="/lib /usr/lib"
10832
if test "$GCC" = yes; then
10833
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10834
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10835
# if the path contains ";" then we assume it to be the separator
10836
# otherwise default to the standard path separator (i.e. ":") - it is
10837
# assumed that no part of a normal pathname contains ";" but that should
10838
# okay in the real world where ";" in dirpaths is itself problematic.
10839
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10841
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10844
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10846
need_lib_prefix=unknown
10847
hardcode_into_libs=no
10849
# when you set need_version to no, make sure it does not cause -set_version
10850
# flags to be left without arguments
10851
need_version=unknown
10856
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10857
shlibpath_var=LIBPATH
10859
# AIX 3 has no versioning support, so we append a major version to the name.
10860
soname_spec='${libname}${release}${shared_ext}$major'
10867
hardcode_into_libs=yes
10868
if test "$host_cpu" = ia64; then
10869
# AIX 5 supports IA64
10870
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10871
shlibpath_var=LD_LIBRARY_PATH
10873
# With GCC up to 2.95.x, collect2 would create an import file
10874
# for dependence libraries. The import file would start with
10875
# the line `#! .'. This would cause the generated library to
10876
# depend on `.', always an invalid library. This was fixed in
10877
# development snapshots of GCC prior to 3.0.
10879
aix4 | aix4.[01] | aix4.[01].*)
10880
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10882
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10885
can_build_shared=no
10889
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10890
# soname into executable. Probably we can add versioning support to
10891
# collect2, so additional links can be useful in future.
10892
if test "$aix_use_runtimelinking" = yes; then
10893
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
10894
# instead of lib<name>.a to let people know that these are not
10895
# typical AIX shared libraries.
10896
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10898
# We preserve .a as extension for shared libraries through AIX4.2
10899
# and later when we are not doing run time linking.
10900
library_names_spec='${libname}${release}.a $libname.a'
10901
soname_spec='${libname}${release}${shared_ext}$major'
10903
shlibpath_var=LIBPATH
10908
library_names_spec='$libname.ixlibrary $libname.a'
10909
# Create ${libname}_ixlibrary.a entries in /sys/libs.
10910
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'
10914
library_names_spec='${libname}${shared_ext}'
10915
dynamic_linker="$host_os ld.so"
10916
shlibpath_var=LIBRARY_PATH
10922
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10923
soname_spec='${libname}${release}${shared_ext}$major'
10924
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10925
shlibpath_var=LD_LIBRARY_PATH
10926
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10927
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10928
# the default ld.so.conf also contains /usr/contrib/lib and
10929
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10930
# libtool to hard-code these into programs
10933
cygwin* | mingw* | pw32*)
10934
version_type=windows
10939
case $GCC,$host_os in
10940
yes,cygwin* | yes,mingw* | yes,pw32*)
10941
library_names_spec='$libname.dll.a'
10942
# DLL is installed to $(libdir)/../bin by postinstall_cmds
10943
postinstall_cmds='base_file=`basename \${file}`~
10944
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10945
dldir=$destdir/`dirname \$dlpath`~
10946
test -d \$dldir || mkdir -p \$dldir~
10947
$install_prog $dir/$dlname \$dldir/$dlname'
10948
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10949
dlpath=$dir/\$dldll~
10951
shlibpath_overrides_runpath=yes
10955
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
10956
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10957
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10960
# MinGW DLLs use traditional 'lib' prefix
10961
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10962
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10963
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10964
# It is most probably a Windows format PATH printed by
10965
# mingw gcc, but we are running on Cygwin. Gcc prints its search
10966
# path with ; separators, and with drive letters. We can handle the
10967
# drive letters (cygwin fileutils understands them), so leave them,
10968
# especially as we might pass files found there to a mingw objdump,
10969
# which wouldn't understand a cygwinified path. Ahh.
10970
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10972
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10976
# pw32 DLLs use 'pw' prefix rather than 'lib'
10977
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10983
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10986
dynamic_linker='Win32 ld.exe'
10987
# FIXME: first we should search . and the directory the executable is in
10991
darwin* | rhapsody*)
10992
dynamic_linker="$host_os dyld"
10993
version_type=darwin
10996
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10997
soname_spec='${libname}${release}${major}$shared_ext'
10998
shlibpath_overrides_runpath=yes
10999
shlibpath_var=DYLD_LIBRARY_PATH
11000
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11001
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11002
if test "$GCC" = yes; then
11003
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11005
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11007
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11014
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11015
soname_spec='${libname}${release}${shared_ext}$major'
11016
shlibpath_var=LD_LIBRARY_PATH
11027
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11028
soname_spec='${libname}${release}${shared_ext}$major'
11029
shlibpath_var=LD_LIBRARY_PATH
11030
shlibpath_overrides_runpath=no
11031
hardcode_into_libs=yes
11032
dynamic_linker='GNU ld.so'
11035
freebsd* | dragonfly*)
11036
# DragonFly does not have aout. When/if they implement a new
11037
# versioning mechanism, adjust this.
11038
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11039
version_type=freebsd-$objformat
11040
case $version_type in
11042
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11047
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11051
shlibpath_var=LD_LIBRARY_PATH
11054
shlibpath_overrides_runpath=yes
11056
freebsd3.[01]* | freebsdelf3.[01]*)
11057
shlibpath_overrides_runpath=yes
11058
hardcode_into_libs=yes
11061
shlibpath_overrides_runpath=no
11062
hardcode_into_libs=yes
11071
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11072
soname_spec='${libname}${release}${shared_ext}$major'
11073
shlibpath_var=LD_LIBRARY_PATH
11074
hardcode_into_libs=yes
11077
hpux9* | hpux10* | hpux11*)
11078
# Give a soname corresponding to the major version so that dld.sl refuses to
11079
# link against other versions.
11083
case "$host_cpu" in
11086
hardcode_into_libs=yes
11087
dynamic_linker="$host_os dld.so"
11088
shlibpath_var=LD_LIBRARY_PATH
11089
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11090
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11091
soname_spec='${libname}${release}${shared_ext}$major'
11092
if test "X$HPUX_IA64_MODE" = X32; then
11093
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11095
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11097
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11101
hardcode_into_libs=yes
11102
dynamic_linker="$host_os dld.sl"
11103
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11104
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11105
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11106
soname_spec='${libname}${release}${shared_ext}$major'
11107
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11108
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11112
dynamic_linker="$host_os dld.sl"
11113
shlibpath_var=SHLIB_PATH
11114
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11115
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11116
soname_spec='${libname}${release}${shared_ext}$major'
11119
# HP-UX runs *really* slowly unless shared libraries are mode 555.
11120
postinstall_cmds='chmod 555 $lib'
11123
irix5* | irix6* | nonstopux*)
11125
nonstopux*) version_type=nonstopux ;;
11127
if test "$lt_cv_prog_gnu_ld" = yes; then
11135
soname_spec='${libname}${release}${shared_ext}$major'
11136
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11138
irix5* | nonstopux*)
11139
libsuff= shlibsuff=
11142
case $LD in # libtool.m4 will add one of these switches to LD
11143
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11144
libsuff= shlibsuff= libmagic=32-bit;;
11145
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11146
libsuff=32 shlibsuff=N32 libmagic=N32;;
11147
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11148
libsuff=64 shlibsuff=64 libmagic=64-bit;;
11149
*) libsuff= shlibsuff= libmagic=never-match;;
11153
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11154
shlibpath_overrides_runpath=no
11155
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11156
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11157
hardcode_into_libs=yes
11160
# No shared lib support for Linux oldld, aout, or coff.
11161
linux*oldld* | linux*aout* | linux*coff*)
11165
# This must be Linux ELF.
11170
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11171
soname_spec='${libname}${release}${shared_ext}$major'
11172
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11173
shlibpath_var=LD_LIBRARY_PATH
11174
shlibpath_overrides_runpath=no
11175
# This implies no fast_install, which is unacceptable.
11176
# Some rework will be needed to allow for fast_install
11177
# before this can be enabled.
11178
hardcode_into_libs=yes
11180
# find out which ABI we are using
11182
case "$host_cpu" in
11183
x86_64*|s390x*|powerpc64*)
11184
echo '#line 11184 "configure"' > conftest.$ac_ext
11185
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11186
(eval $ac_compile) 2>&5
11188
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189
(exit $ac_status); }; then
11190
case `/usr/bin/file conftest.$ac_objext` in
11193
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
11201
# Append ld.so.conf contents to the search path
11202
if test -f /etc/ld.so.conf; then
11203
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11204
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
11207
# We used to test for /lib/ld.so.1 and disable shared libraries on
11208
# powerpc, because MkLinux only supported shared libraries with the
11209
# GNU dynamic linker. Since this was broken with cross compilers,
11210
# most powerpc-linux boxes support dynamic linking these days and
11211
# people can always --disable-shared, the test was removed, and we
11212
# assume the GNU/Linux dynamic linker is in use.
11213
dynamic_linker='GNU/Linux ld.so'
11220
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11221
soname_spec='${libname}${release}${shared_ext}$major'
11222
shlibpath_var=LD_LIBRARY_PATH
11223
shlibpath_overrides_runpath=no
11224
hardcode_into_libs=yes
11225
dynamic_linker='GNU ld.so'
11232
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11233
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11234
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11235
dynamic_linker='NetBSD (a.out) ld.so'
11237
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11238
soname_spec='${libname}${release}${shared_ext}$major'
11239
dynamic_linker='NetBSD ld.elf_so'
11241
shlibpath_var=LD_LIBRARY_PATH
11242
shlibpath_overrides_runpath=yes
11243
hardcode_into_libs=yes
11248
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11249
shlibpath_var=LD_LIBRARY_PATH
11250
shlibpath_overrides_runpath=yes
11257
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11258
soname_spec='${libname}${release}${shared_ext}$major'
11259
shlibpath_var=LD_LIBRARY_PATH
11260
shlibpath_overrides_runpath=yes
11266
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11268
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11269
*) need_version=no ;;
11271
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11272
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11273
shlibpath_var=LD_LIBRARY_PATH
11274
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11276
openbsd2.[89] | openbsd2.[89].*)
11277
shlibpath_overrides_runpath=no
11280
shlibpath_overrides_runpath=yes
11284
shlibpath_overrides_runpath=yes
11289
libname_spec='$name'
11292
library_names_spec='$libname${shared_ext} $libname.a'
11293
dynamic_linker='OS/2 ld.exe'
11294
shlibpath_var=LIBPATH
11297
osf3* | osf4* | osf5*)
11301
soname_spec='${libname}${release}${shared_ext}$major'
11302
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11303
shlibpath_var=LD_LIBRARY_PATH
11304
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11305
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11310
soname_spec='${libname}${release}${shared_ext}$major'
11311
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11312
shlibpath_var=LD_LIBRARY_PATH
11319
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11320
soname_spec='${libname}${release}${shared_ext}$major'
11321
shlibpath_var=LD_LIBRARY_PATH
11322
shlibpath_overrides_runpath=yes
11323
hardcode_into_libs=yes
11324
# ldd complains unless libraries are executable
11325
postinstall_cmds='chmod +x $lib'
11330
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11331
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11332
shlibpath_var=LD_LIBRARY_PATH
11333
shlibpath_overrides_runpath=yes
11334
if test "$with_gnu_ld" = yes; then
11340
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11342
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11343
soname_spec='${libname}${release}${shared_ext}$major'
11344
shlibpath_var=LD_LIBRARY_PATH
11345
case $host_vendor in
11347
shlibpath_overrides_runpath=no
11349
export_dynamic_flag_spec='${wl}-Blargedynsym'
11350
runpath_var=LD_RUN_PATH
11358
shlibpath_overrides_runpath=no
11359
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11365
if test -d /usr/nec ;then
11367
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11368
soname_spec='$libname${shared_ext}.$major'
11369
shlibpath_var=LD_LIBRARY_PATH
11375
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11376
soname_spec='${libname}${release}${shared_ext}$major'
11377
shlibpath_var=LD_LIBRARY_PATH
11384
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11385
echo "${ECHO_T}$dynamic_linker" >&6
11386
test "$dynamic_linker" = no && can_build_shared=no
11388
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11389
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11390
hardcode_action_CXX=
11391
if test -n "$hardcode_libdir_flag_spec_CXX" || \
11392
test -n "$runpath_var_CXX" || \
11393
test "X$hardcode_automatic_CXX" = "Xyes" ; then
11395
# We can hardcode non-existant directories.
11396
if test "$hardcode_direct_CXX" != no &&
11397
# If the only mechanism to avoid hardcoding is shlibpath_var, we
11398
# have to relink, otherwise we might link with an installed library
11399
# when we should be linking with a yet-to-be-installed one
11400
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11401
test "$hardcode_minus_L_CXX" != no; then
11402
# Linking always hardcodes the temporary library directory.
11403
hardcode_action_CXX=relink
11405
# We can link without hardcoding, and we can hardcode nonexisting dirs.
11406
hardcode_action_CXX=immediate
11409
# We cannot hardcode anything, or else we can only hardcode existing
11411
hardcode_action_CXX=unsupported
11413
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11414
echo "${ECHO_T}$hardcode_action_CXX" >&6
11416
if test "$hardcode_action_CXX" = relink; then
11417
# Fast installation is not supported
11418
enable_fast_install=no
11419
elif test "$shlibpath_overrides_runpath" = yes ||
11420
test "$enable_shared" = no; then
11421
# Fast installation is not necessary
11422
enable_fast_install=needless
11427
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11428
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11429
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11430
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11431
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11432
echo "$as_me:$LINENO: result: yes" >&5
11433
echo "${ECHO_T}yes" >&6
11435
# FIXME - insert some real tests, host_os isn't really good enough
11438
if test -n "$STRIP" ; then
11439
striplib="$STRIP -x"
11440
echo "$as_me:$LINENO: result: yes" >&5
11441
echo "${ECHO_T}yes" >&6
11443
echo "$as_me:$LINENO: result: no" >&5
11444
echo "${ECHO_T}no" >&6
11448
echo "$as_me:$LINENO: result: no" >&5
11449
echo "${ECHO_T}no" >&6
11454
if test "x$enable_dlopen" != xyes; then
11455
enable_dlopen=unknown
11456
enable_dlopen_self=unknown
11457
enable_dlopen_self_static=unknown
11464
lt_cv_dlopen="load_add_on"
11466
lt_cv_dlopen_self=yes
11470
lt_cv_dlopen="LoadLibrary"
11475
lt_cv_dlopen="dlopen"
11480
# if libdl is installed we need to link against it
11481
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11482
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11483
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11484
echo $ECHO_N "(cached) $ECHO_C" >&6
11486
ac_check_lib_save_LIBS=$LIBS
11488
cat >conftest.$ac_ext <<_ACEOF
11491
cat confdefs.h >>conftest.$ac_ext
11492
cat >>conftest.$ac_ext <<_ACEOF
11493
/* end confdefs.h. */
11495
/* Override any gcc2 internal prototype to avoid an error. */
11499
/* We use char because int might match the return type of a gcc2
11500
builtin and then its argument prototype would still apply. */
11510
rm -f conftest.$ac_objext conftest$ac_exeext
11511
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11512
(eval $ac_link) 2>conftest.er1
11514
grep -v '^ *+' conftest.er1 >conftest.err
11516
cat conftest.err >&5
11517
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11518
(exit $ac_status); } &&
11519
{ ac_try='test -z "$ac_cxx_werror_flag"
11520
|| test ! -s conftest.err'
11521
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11522
(eval $ac_try) 2>&5
11524
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525
(exit $ac_status); }; } &&
11526
{ ac_try='test -s conftest$ac_exeext'
11527
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11528
(eval $ac_try) 2>&5
11530
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531
(exit $ac_status); }; }; then
11532
ac_cv_lib_dl_dlopen=yes
11534
echo "$as_me: failed program was:" >&5
11535
sed 's/^/| /' conftest.$ac_ext >&5
11537
ac_cv_lib_dl_dlopen=no
11539
rm -f conftest.err conftest.$ac_objext \
11540
conftest$ac_exeext conftest.$ac_ext
11541
LIBS=$ac_check_lib_save_LIBS
11543
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11544
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11545
if test $ac_cv_lib_dl_dlopen = yes; then
11546
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11549
lt_cv_dlopen="dyld"
11551
lt_cv_dlopen_self=yes
11558
echo "$as_me:$LINENO: checking for shl_load" >&5
11559
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11560
if test "${ac_cv_func_shl_load+set}" = set; then
11561
echo $ECHO_N "(cached) $ECHO_C" >&6
11563
cat >conftest.$ac_ext <<_ACEOF
11566
cat confdefs.h >>conftest.$ac_ext
11567
cat >>conftest.$ac_ext <<_ACEOF
11568
/* end confdefs.h. */
11569
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11570
For example, HP-UX 11i <limits.h> declares gettimeofday. */
11571
#define shl_load innocuous_shl_load
11573
/* System header to define __stub macros and hopefully few prototypes,
11574
which can conflict with char shl_load (); below.
11575
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11576
<limits.h> exists even on freestanding compilers. */
11579
# include <limits.h>
11581
# include <assert.h>
11586
/* Override any gcc2 internal prototype to avoid an error. */
11591
/* We use char because int might match the return type of a gcc2
11592
builtin and then its argument prototype would still apply. */
11594
/* The GNU C library defines this for functions which it implements
11595
to always fail with ENOSYS. Some functions are actually named
11596
something starting with __ and the normal name is an alias. */
11597
#if defined (__stub_shl_load) || defined (__stub___shl_load)
11600
char (*f) () = shl_load;
11609
return f != shl_load;
11614
rm -f conftest.$ac_objext conftest$ac_exeext
11615
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11616
(eval $ac_link) 2>conftest.er1
11618
grep -v '^ *+' conftest.er1 >conftest.err
11620
cat conftest.err >&5
11621
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11622
(exit $ac_status); } &&
11623
{ ac_try='test -z "$ac_cxx_werror_flag"
11624
|| test ! -s conftest.err'
11625
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11626
(eval $ac_try) 2>&5
11628
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629
(exit $ac_status); }; } &&
11630
{ ac_try='test -s conftest$ac_exeext'
11631
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11632
(eval $ac_try) 2>&5
11634
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635
(exit $ac_status); }; }; then
11636
ac_cv_func_shl_load=yes
11638
echo "$as_me: failed program was:" >&5
11639
sed 's/^/| /' conftest.$ac_ext >&5
11641
ac_cv_func_shl_load=no
11643
rm -f conftest.err conftest.$ac_objext \
11644
conftest$ac_exeext conftest.$ac_ext
11646
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11647
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11648
if test $ac_cv_func_shl_load = yes; then
11649
lt_cv_dlopen="shl_load"
11651
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11652
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11653
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11654
echo $ECHO_N "(cached) $ECHO_C" >&6
11656
ac_check_lib_save_LIBS=$LIBS
11658
cat >conftest.$ac_ext <<_ACEOF
11661
cat confdefs.h >>conftest.$ac_ext
11662
cat >>conftest.$ac_ext <<_ACEOF
11663
/* end confdefs.h. */
11665
/* Override any gcc2 internal prototype to avoid an error. */
11669
/* We use char because int might match the return type of a gcc2
11670
builtin and then its argument prototype would still apply. */
11680
rm -f conftest.$ac_objext conftest$ac_exeext
11681
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11682
(eval $ac_link) 2>conftest.er1
11684
grep -v '^ *+' conftest.er1 >conftest.err
11686
cat conftest.err >&5
11687
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688
(exit $ac_status); } &&
11689
{ ac_try='test -z "$ac_cxx_werror_flag"
11690
|| test ! -s conftest.err'
11691
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11692
(eval $ac_try) 2>&5
11694
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695
(exit $ac_status); }; } &&
11696
{ ac_try='test -s conftest$ac_exeext'
11697
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11698
(eval $ac_try) 2>&5
11700
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11701
(exit $ac_status); }; }; then
11702
ac_cv_lib_dld_shl_load=yes
11704
echo "$as_me: failed program was:" >&5
11705
sed 's/^/| /' conftest.$ac_ext >&5
11707
ac_cv_lib_dld_shl_load=no
11709
rm -f conftest.err conftest.$ac_objext \
11710
conftest$ac_exeext conftest.$ac_ext
11711
LIBS=$ac_check_lib_save_LIBS
11713
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11714
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11715
if test $ac_cv_lib_dld_shl_load = yes; then
11716
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11718
echo "$as_me:$LINENO: checking for dlopen" >&5
11719
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11720
if test "${ac_cv_func_dlopen+set}" = set; then
11721
echo $ECHO_N "(cached) $ECHO_C" >&6
11723
cat >conftest.$ac_ext <<_ACEOF
11726
cat confdefs.h >>conftest.$ac_ext
11727
cat >>conftest.$ac_ext <<_ACEOF
11728
/* end confdefs.h. */
11729
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11730
For example, HP-UX 11i <limits.h> declares gettimeofday. */
11731
#define dlopen innocuous_dlopen
11733
/* System header to define __stub macros and hopefully few prototypes,
11734
which can conflict with char dlopen (); below.
11735
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11736
<limits.h> exists even on freestanding compilers. */
11739
# include <limits.h>
11741
# include <assert.h>
11746
/* Override any gcc2 internal prototype to avoid an error. */
11751
/* We use char because int might match the return type of a gcc2
11752
builtin and then its argument prototype would still apply. */
11754
/* The GNU C library defines this for functions which it implements
11755
to always fail with ENOSYS. Some functions are actually named
11756
something starting with __ and the normal name is an alias. */
11757
#if defined (__stub_dlopen) || defined (__stub___dlopen)
11760
char (*f) () = dlopen;
11769
return f != dlopen;
11774
rm -f conftest.$ac_objext conftest$ac_exeext
11775
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11776
(eval $ac_link) 2>conftest.er1
11778
grep -v '^ *+' conftest.er1 >conftest.err
11780
cat conftest.err >&5
11781
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782
(exit $ac_status); } &&
11783
{ ac_try='test -z "$ac_cxx_werror_flag"
11784
|| test ! -s conftest.err'
11785
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11786
(eval $ac_try) 2>&5
11788
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789
(exit $ac_status); }; } &&
11790
{ ac_try='test -s conftest$ac_exeext'
11791
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11792
(eval $ac_try) 2>&5
11794
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795
(exit $ac_status); }; }; then
11796
ac_cv_func_dlopen=yes
11798
echo "$as_me: failed program was:" >&5
11799
sed 's/^/| /' conftest.$ac_ext >&5
11801
ac_cv_func_dlopen=no
11803
rm -f conftest.err conftest.$ac_objext \
11804
conftest$ac_exeext conftest.$ac_ext
11806
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11807
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11808
if test $ac_cv_func_dlopen = yes; then
11809
lt_cv_dlopen="dlopen"
11811
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11812
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11813
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11814
echo $ECHO_N "(cached) $ECHO_C" >&6
11816
ac_check_lib_save_LIBS=$LIBS
11818
cat >conftest.$ac_ext <<_ACEOF
11821
cat confdefs.h >>conftest.$ac_ext
11822
cat >>conftest.$ac_ext <<_ACEOF
11823
/* end confdefs.h. */
11825
/* Override any gcc2 internal prototype to avoid an error. */
11829
/* We use char because int might match the return type of a gcc2
11830
builtin and then its argument prototype would still apply. */
11840
rm -f conftest.$ac_objext conftest$ac_exeext
11841
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11842
(eval $ac_link) 2>conftest.er1
11844
grep -v '^ *+' conftest.er1 >conftest.err
11846
cat conftest.err >&5
11847
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848
(exit $ac_status); } &&
11849
{ ac_try='test -z "$ac_cxx_werror_flag"
11850
|| test ! -s conftest.err'
11851
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11852
(eval $ac_try) 2>&5
11854
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855
(exit $ac_status); }; } &&
11856
{ ac_try='test -s conftest$ac_exeext'
11857
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11858
(eval $ac_try) 2>&5
11860
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861
(exit $ac_status); }; }; then
11862
ac_cv_lib_dl_dlopen=yes
11864
echo "$as_me: failed program was:" >&5
11865
sed 's/^/| /' conftest.$ac_ext >&5
11867
ac_cv_lib_dl_dlopen=no
11869
rm -f conftest.err conftest.$ac_objext \
11870
conftest$ac_exeext conftest.$ac_ext
11871
LIBS=$ac_check_lib_save_LIBS
11873
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11874
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11875
if test $ac_cv_lib_dl_dlopen = yes; then
11876
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11878
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11879
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11880
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11881
echo $ECHO_N "(cached) $ECHO_C" >&6
11883
ac_check_lib_save_LIBS=$LIBS
11884
LIBS="-lsvld $LIBS"
11885
cat >conftest.$ac_ext <<_ACEOF
11888
cat confdefs.h >>conftest.$ac_ext
11889
cat >>conftest.$ac_ext <<_ACEOF
11890
/* end confdefs.h. */
11892
/* Override any gcc2 internal prototype to avoid an error. */
11896
/* We use char because int might match the return type of a gcc2
11897
builtin and then its argument prototype would still apply. */
11907
rm -f conftest.$ac_objext conftest$ac_exeext
11908
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11909
(eval $ac_link) 2>conftest.er1
11911
grep -v '^ *+' conftest.er1 >conftest.err
11913
cat conftest.err >&5
11914
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915
(exit $ac_status); } &&
11916
{ ac_try='test -z "$ac_cxx_werror_flag"
11917
|| test ! -s conftest.err'
11918
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11919
(eval $ac_try) 2>&5
11921
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922
(exit $ac_status); }; } &&
11923
{ ac_try='test -s conftest$ac_exeext'
11924
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11925
(eval $ac_try) 2>&5
11927
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928
(exit $ac_status); }; }; then
11929
ac_cv_lib_svld_dlopen=yes
11931
echo "$as_me: failed program was:" >&5
11932
sed 's/^/| /' conftest.$ac_ext >&5
11934
ac_cv_lib_svld_dlopen=no
11936
rm -f conftest.err conftest.$ac_objext \
11937
conftest$ac_exeext conftest.$ac_ext
11938
LIBS=$ac_check_lib_save_LIBS
11940
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11941
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11942
if test $ac_cv_lib_svld_dlopen = yes; then
11943
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11945
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11946
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11947
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11948
echo $ECHO_N "(cached) $ECHO_C" >&6
11950
ac_check_lib_save_LIBS=$LIBS
11952
cat >conftest.$ac_ext <<_ACEOF
11955
cat confdefs.h >>conftest.$ac_ext
11956
cat >>conftest.$ac_ext <<_ACEOF
11957
/* end confdefs.h. */
11959
/* Override any gcc2 internal prototype to avoid an error. */
11963
/* We use char because int might match the return type of a gcc2
11964
builtin and then its argument prototype would still apply. */
11974
rm -f conftest.$ac_objext conftest$ac_exeext
11975
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11976
(eval $ac_link) 2>conftest.er1
11978
grep -v '^ *+' conftest.er1 >conftest.err
11980
cat conftest.err >&5
11981
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982
(exit $ac_status); } &&
11983
{ ac_try='test -z "$ac_cxx_werror_flag"
11984
|| test ! -s conftest.err'
11985
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11986
(eval $ac_try) 2>&5
11988
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989
(exit $ac_status); }; } &&
11990
{ ac_try='test -s conftest$ac_exeext'
11991
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11992
(eval $ac_try) 2>&5
11994
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995
(exit $ac_status); }; }; then
11996
ac_cv_lib_dld_dld_link=yes
11998
echo "$as_me: failed program was:" >&5
11999
sed 's/^/| /' conftest.$ac_ext >&5
12001
ac_cv_lib_dld_dld_link=no
12003
rm -f conftest.err conftest.$ac_objext \
12004
conftest$ac_exeext conftest.$ac_ext
12005
LIBS=$ac_check_lib_save_LIBS
12007
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12008
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12009
if test $ac_cv_lib_dld_dld_link = yes; then
12010
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12031
if test "x$lt_cv_dlopen" != xno; then
12037
case $lt_cv_dlopen in
12039
save_CPPFLAGS="$CPPFLAGS"
12040
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12042
save_LDFLAGS="$LDFLAGS"
12043
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12046
LIBS="$lt_cv_dlopen_libs $LIBS"
12048
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12049
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12050
if test "${lt_cv_dlopen_self+set}" = set; then
12051
echo $ECHO_N "(cached) $ECHO_C" >&6
12053
if test "$cross_compiling" = yes; then :
12054
lt_cv_dlopen_self=cross
12056
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12057
lt_status=$lt_dlunknown
12058
cat > conftest.$ac_ext <<EOF
12059
#line 12059 "configure"
12060
#include "confdefs.h"
12069
# define LT_DLGLOBAL RTLD_GLOBAL
12072
# define LT_DLGLOBAL DL_GLOBAL
12074
# define LT_DLGLOBAL 0
12078
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12079
find out it does not work in some platform. */
12080
#ifndef LT_DLLAZY_OR_NOW
12082
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12085
# define LT_DLLAZY_OR_NOW DL_LAZY
12088
# define LT_DLLAZY_OR_NOW RTLD_NOW
12091
# define LT_DLLAZY_OR_NOW DL_NOW
12093
# define LT_DLLAZY_OR_NOW 0
12101
extern "C" void exit (int);
12104
void fnord() { int i=42;}
12107
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12108
int status = $lt_dlunknown;
12112
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12113
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12114
/* dlclose (self); */
12120
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12121
(eval $ac_link) 2>&5
12123
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12125
(./conftest; exit; ) 2>/dev/null
12127
case x$lt_status in
12128
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12129
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12130
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12133
# compilation failed
12134
lt_cv_dlopen_self=no
12141
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12142
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12144
if test "x$lt_cv_dlopen_self" = xyes; then
12145
LDFLAGS="$LDFLAGS $link_static_flag"
12146
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12147
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12148
if test "${lt_cv_dlopen_self_static+set}" = set; then
12149
echo $ECHO_N "(cached) $ECHO_C" >&6
12151
if test "$cross_compiling" = yes; then :
12152
lt_cv_dlopen_self_static=cross
12154
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12155
lt_status=$lt_dlunknown
12156
cat > conftest.$ac_ext <<EOF
12157
#line 12157 "configure"
12158
#include "confdefs.h"
12167
# define LT_DLGLOBAL RTLD_GLOBAL
12170
# define LT_DLGLOBAL DL_GLOBAL
12172
# define LT_DLGLOBAL 0
12176
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12177
find out it does not work in some platform. */
12178
#ifndef LT_DLLAZY_OR_NOW
12180
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12183
# define LT_DLLAZY_OR_NOW DL_LAZY
12186
# define LT_DLLAZY_OR_NOW RTLD_NOW
12189
# define LT_DLLAZY_OR_NOW DL_NOW
12191
# define LT_DLLAZY_OR_NOW 0
12199
extern "C" void exit (int);
12202
void fnord() { int i=42;}
12205
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12206
int status = $lt_dlunknown;
12210
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12211
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12212
/* dlclose (self); */
12218
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12219
(eval $ac_link) 2>&5
12221
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12223
(./conftest; exit; ) 2>/dev/null
12225
case x$lt_status in
12226
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12227
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12228
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12231
# compilation failed
12232
lt_cv_dlopen_self_static=no
12239
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12240
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12243
CPPFLAGS="$save_CPPFLAGS"
12244
LDFLAGS="$save_LDFLAGS"
12249
case $lt_cv_dlopen_self in
12250
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12251
*) enable_dlopen_self=unknown ;;
12254
case $lt_cv_dlopen_self_static in
12255
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12256
*) enable_dlopen_self_static=unknown ;;
12261
# The else clause should only fire when bootstrapping the
12262
# libtool distribution, otherwise you forgot to ship ltmain.sh
12263
# with your package, and you will get complaints that there are
12264
# no rules to generate ltmain.sh.
12265
if test -f "$ltmain"; then
12266
# See if we are running on zsh, and set the options which allow our commands through
12267
# without removal of \ escapes.
12268
if test -n "${ZSH_VERSION+set}" ; then
12269
setopt NO_GLOB_SUBST
12271
# Now quote all the things that may contain metacharacters while being
12272
# careful not to overquote the AC_SUBSTed values. We take copies of the
12273
# variables and quote the copies for generation of the libtool script.
12274
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12276
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12277
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12278
deplibs_check_method reload_flag reload_cmds need_locks \
12279
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12280
lt_cv_sys_global_symbol_to_c_name_address \
12281
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12282
old_postinstall_cmds old_postuninstall_cmds \
12286
lt_prog_compiler_wl_CXX \
12287
lt_prog_compiler_pic_CXX \
12288
lt_prog_compiler_static_CXX \
12289
lt_prog_compiler_no_builtin_flag_CXX \
12290
export_dynamic_flag_spec_CXX \
12291
thread_safe_flag_spec_CXX \
12292
whole_archive_flag_spec_CXX \
12293
enable_shared_with_static_runtimes_CXX \
12294
old_archive_cmds_CXX \
12295
old_archive_from_new_cmds_CXX \
12296
predep_objects_CXX \
12297
postdep_objects_CXX \
12300
compiler_lib_search_path_CXX \
12302
archive_expsym_cmds_CXX \
12303
postinstall_cmds_CXX \
12304
postuninstall_cmds_CXX \
12305
old_archive_from_expsyms_cmds_CXX \
12306
allow_undefined_flag_CXX \
12307
no_undefined_flag_CXX \
12308
export_symbols_cmds_CXX \
12309
hardcode_libdir_flag_spec_CXX \
12310
hardcode_libdir_flag_spec_ld_CXX \
12311
hardcode_libdir_separator_CXX \
12312
hardcode_automatic_CXX \
12314
module_expsym_cmds_CXX \
12315
lt_cv_prog_compiler_c_o_CXX \
12316
exclude_expsyms_CXX \
12317
include_expsyms_CXX; do
12320
old_archive_cmds_CXX | \
12321
old_archive_from_new_cmds_CXX | \
12322
archive_cmds_CXX | \
12323
archive_expsym_cmds_CXX | \
12324
module_cmds_CXX | \
12325
module_expsym_cmds_CXX | \
12326
old_archive_from_expsyms_cmds_CXX | \
12327
export_symbols_cmds_CXX | \
12328
extract_expsyms_cmds | reload_cmds | finish_cmds | \
12329
postinstall_cmds | postuninstall_cmds | \
12330
old_postinstall_cmds | old_postuninstall_cmds | \
12331
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12332
# Double-quote double-evaled strings.
12333
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12336
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12342
*'\$0 --fallback-echo"')
12343
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12349
cat <<__EOF__ >> "$cfgfile"
12350
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12352
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12354
# Shell to use when invoking shell scripts.
12357
# Whether or not to build shared libraries.
12358
build_libtool_libs=$enable_shared
12360
# Whether or not to build static libraries.
12361
build_old_libs=$enable_static
12363
# Whether or not to add -lc for building shared libraries.
12364
build_libtool_need_lc=$archive_cmds_need_lc_CXX
12366
# Whether or not to disallow shared libs when runtime libs are static
12367
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12369
# Whether or not to optimize for fast installation.
12370
fast_install=$enable_fast_install
12373
host_alias=$host_alias
12377
# The build system.
12378
build_alias=$build_alias
12382
# An echo program that does not interpret backslashes.
12387
AR_FLAGS=$lt_AR_FLAGS
12392
# A language-specific compiler.
12393
CC=$lt_compiler_CXX
12395
# Is the compiler the GNU C compiler?
12401
# The linker used to build libraries.
12404
# Whether we need hard or soft links.
12407
# A BSD-compatible nm program.
12410
# A symbol stripping program
12413
# Used to examine libraries when file_magic_cmd begins "file"
12414
MAGIC_CMD=$MAGIC_CMD
12416
# Used on cygwin: DLL creation program.
12419
# Used on cygwin: object dumper.
12422
# Used on cygwin: assembler.
12425
# The name of the directory that contains temporary libtool files.
12428
# How to create reloadable object files.
12429
reload_flag=$lt_reload_flag
12430
reload_cmds=$lt_reload_cmds
12432
# How to pass a linker flag through the compiler.
12433
wl=$lt_lt_prog_compiler_wl_CXX
12435
# Object file suffix (normally "o").
12436
objext="$ac_objext"
12438
# Old archive suffix (normally "a").
12441
# Shared library suffix (normally ".so").
12442
shrext_cmds='$shrext_cmds'
12444
# Executable file suffix (normally "").
12447
# Additional compiler flags for building library objects.
12448
pic_flag=$lt_lt_prog_compiler_pic_CXX
12451
# What is the maximum length of a command?
12452
max_cmd_len=$lt_cv_sys_max_cmd_len
12454
# Does compiler simultaneously support -c and -o options?
12455
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12457
# Must we lock files when doing compilation?
12458
need_locks=$lt_need_locks
12460
# Do we need the lib prefix for modules?
12461
need_lib_prefix=$need_lib_prefix
12463
# Do we need a version for libraries?
12464
need_version=$need_version
12466
# Whether dlopen is supported.
12467
dlopen_support=$enable_dlopen
12469
# Whether dlopen of programs is supported.
12470
dlopen_self=$enable_dlopen_self
12472
# Whether dlopen of statically linked programs is supported.
12473
dlopen_self_static=$enable_dlopen_self_static
12475
# Compiler flag to prevent dynamic linking.
12476
link_static_flag=$lt_lt_prog_compiler_static_CXX
12478
# Compiler flag to turn off builtin functions.
12479
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12481
# Compiler flag to allow reflexive dlopens.
12482
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12484
# Compiler flag to generate shared objects directly from archives.
12485
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12487
# Compiler flag to generate thread-safe objects.
12488
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12490
# Library versioning type.
12491
version_type=$version_type
12493
# Format of library name prefix.
12494
libname_spec=$lt_libname_spec
12496
# List of archive names. First name is the real one, the rest are links.
12497
# The last name is the one that the linker finds with -lNAME.
12498
library_names_spec=$lt_library_names_spec
12500
# The coded name of the library, if different from the real name.
12501
soname_spec=$lt_soname_spec
12503
# Commands used to build and install an old-style archive.
12505
old_archive_cmds=$lt_old_archive_cmds_CXX
12506
old_postinstall_cmds=$lt_old_postinstall_cmds
12507
old_postuninstall_cmds=$lt_old_postuninstall_cmds
12509
# Create an old-style archive from a shared archive.
12510
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12512
# Create a temporary old-style archive to link instead of a shared archive.
12513
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12515
# Commands used to build and install a shared archive.
12516
archive_cmds=$lt_archive_cmds_CXX
12517
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12518
postinstall_cmds=$lt_postinstall_cmds
12519
postuninstall_cmds=$lt_postuninstall_cmds
12521
# Commands used to build a loadable module (assumed same as above if empty)
12522
module_cmds=$lt_module_cmds_CXX
12523
module_expsym_cmds=$lt_module_expsym_cmds_CXX
12525
# Commands to strip libraries.
12526
old_striplib=$lt_old_striplib
12527
striplib=$lt_striplib
12529
# Dependencies to place before the objects being linked to create a
12531
predep_objects=$lt_predep_objects_CXX
12533
# Dependencies to place after the objects being linked to create a
12535
postdep_objects=$lt_postdep_objects_CXX
12537
# Dependencies to place before the objects being linked to create a
12539
predeps=$lt_predeps_CXX
12541
# Dependencies to place after the objects being linked to create a
12543
postdeps=$lt_postdeps_CXX
12545
# The library search path used internally by the compiler when linking
12546
# a shared library.
12547
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12549
# Method to check whether dependent libraries are shared objects.
12550
deplibs_check_method=$lt_deplibs_check_method
12552
# Command to use when deplibs_check_method == file_magic.
12553
file_magic_cmd=$lt_file_magic_cmd
12555
# Flag that allows shared libraries with undefined symbols to be built.
12556
allow_undefined_flag=$lt_allow_undefined_flag_CXX
12558
# Flag that forces no undefined symbols.
12559
no_undefined_flag=$lt_no_undefined_flag_CXX
12561
# Commands used to finish a libtool library installation in a directory.
12562
finish_cmds=$lt_finish_cmds
12564
# Same as above, but a single script fragment to be evaled but not shown.
12565
finish_eval=$lt_finish_eval
12567
# Take the output of nm and produce a listing of raw symbols and C names.
12568
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12570
# Transform the output of nm in a proper C declaration
12571
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12573
# Transform the output of nm in a C name address pair
12574
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12576
# This is the shared library runtime path variable.
12577
runpath_var=$runpath_var
12579
# This is the shared library path variable.
12580
shlibpath_var=$shlibpath_var
12582
# Is shlibpath searched before the hard-coded library search path?
12583
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12585
# How to hardcode a shared library path into an executable.
12586
hardcode_action=$hardcode_action_CXX
12588
# Whether we should hardcode library paths into libraries.
12589
hardcode_into_libs=$hardcode_into_libs
12591
# Flag to hardcode \$libdir into a binary during linking.
12592
# This must work even if \$libdir does not exist.
12593
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12595
# If ld is used when linking, flag to hardcode \$libdir into
12596
# a binary during linking. This must work even if \$libdir does
12598
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12600
# Whether we need a single -rpath flag with a separated argument.
12601
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12603
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12604
# resulting binary.
12605
hardcode_direct=$hardcode_direct_CXX
12607
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12608
# resulting binary.
12609
hardcode_minus_L=$hardcode_minus_L_CXX
12611
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12612
# the resulting binary.
12613
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12615
# Set to yes if building a shared library automatically hardcodes DIR into the library
12616
# and all subsequent libraries and executables linked against it.
12617
hardcode_automatic=$hardcode_automatic_CXX
12619
# Variables whose values should be saved in libtool wrapper scripts and
12620
# restored at relink time.
12621
variables_saved_for_relink="$variables_saved_for_relink"
12623
# Whether libtool must link a program against all its dependency libraries.
12624
link_all_deplibs=$link_all_deplibs_CXX
12626
# Compile-time system search path for libraries
12627
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12629
# Run-time system search path for libraries
12630
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12632
# Fix the shell variable \$srcfile for the compiler.
12633
fix_srcfile_path="$fix_srcfile_path_CXX"
12635
# Set to yes if exported symbols are required.
12636
always_export_symbols=$always_export_symbols_CXX
12638
# The commands to list exported symbols.
12639
export_symbols_cmds=$lt_export_symbols_cmds_CXX
12641
# The commands to extract the exported symbol list from a shared archive.
12642
extract_expsyms_cmds=$lt_extract_expsyms_cmds
12644
# Symbols that should not be listed in the preloaded symbols.
12645
exclude_expsyms=$lt_exclude_expsyms_CXX
12647
# Symbols that must always be exported.
12648
include_expsyms=$lt_include_expsyms_CXX
12650
# ### END LIBTOOL TAG CONFIG: $tagname
12656
# If there is no Makefile yet, we rely on a make rule to execute
12657
# `config.status --recheck' to rerun these tests and create the
12658
# libtool script then.
12659
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12660
if test -f "$ltmain_in"; then
12661
test -f Makefile && make "$ltmain"
12667
ac_cpp='$CPP $CPPFLAGS'
12668
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12669
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12670
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12676
with_gnu_ldcxx=$with_gnu_ld
12677
with_gnu_ld=$lt_save_with_gnu_ld
12678
lt_cv_path_LDCXX=$lt_cv_path_LD
12679
lt_cv_path_LD=$lt_save_path_LD
12680
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12681
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12689
if test -n "$F77" && test "X$F77" != "Xno"; then
12692
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12693
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12694
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12697
archive_cmds_need_lc_F77=no
12698
allow_undefined_flag_F77=
12699
always_export_symbols_F77=no
12700
archive_expsym_cmds_F77=
12701
export_dynamic_flag_spec_F77=
12702
hardcode_direct_F77=no
12703
hardcode_libdir_flag_spec_F77=
12704
hardcode_libdir_flag_spec_ld_F77=
12705
hardcode_libdir_separator_F77=
12706
hardcode_minus_L_F77=no
12707
hardcode_automatic_F77=no
12709
module_expsym_cmds_F77=
12710
link_all_deplibs_F77=unknown
12711
old_archive_cmds_F77=$old_archive_cmds
12712
no_undefined_flag_F77=
12713
whole_archive_flag_spec_F77=
12714
enable_shared_with_static_runtimes_F77=no
12716
# Source file extension for f77 test sources.
12719
# Object file extension for compiled f77 test sources.
12723
# Code to be used in simple compile tests
12724
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12726
# Code to be used in simple link tests
12727
lt_simple_link_test_code=" program t\n end\n"
12729
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12731
# If no C compiler was specified, use CC.
12734
# Allow CC to be a program name with arguments.
12738
# save warnings/boilerplate of simple test code
12739
ac_outfile=conftest.$ac_objext
12740
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12741
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
12742
_lt_compiler_boilerplate=`cat conftest.err`
12745
ac_outfile=conftest.$ac_objext
12746
printf "$lt_simple_link_test_code" >conftest.$ac_ext
12747
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
12748
_lt_linker_boilerplate=`cat conftest.err`
12752
# Allow CC to be a program name with arguments.
12757
for cc_temp in $compiler""; do
12759
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12760
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12765
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12768
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12769
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12770
echo "$as_me:$LINENO: result: $can_build_shared" >&5
12771
echo "${ECHO_T}$can_build_shared" >&6
12773
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12774
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12775
test "$can_build_shared" = "no" && enable_shared=no
12777
# On AIX, shared libraries and static libraries use the same namespace, and
12778
# are all built from PIC.
12781
test "$enable_shared" = yes && enable_static=no
12782
if test -n "$RANLIB"; then
12783
archive_cmds="$archive_cmds~\$RANLIB \$lib"
12784
postinstall_cmds='$RANLIB $lib'
12788
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12789
test "$enable_shared" = yes && enable_static=no
12793
echo "$as_me:$LINENO: result: $enable_shared" >&5
12794
echo "${ECHO_T}$enable_shared" >&6
12796
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12797
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12798
# Make sure either enable_shared or enable_static is yes.
12799
test "$enable_shared" = yes || enable_static=yes
12800
echo "$as_me:$LINENO: result: $enable_static" >&5
12801
echo "${ECHO_T}$enable_static" >&6
12803
test "$ld_shlibs_F77" = no && can_build_shared=no
12808
lt_prog_compiler_wl_F77=
12809
lt_prog_compiler_pic_F77=
12810
lt_prog_compiler_static_F77=
12812
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12813
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12815
if test "$GCC" = yes; then
12816
lt_prog_compiler_wl_F77='-Wl,'
12817
lt_prog_compiler_static_F77='-static'
12821
# All AIX code is PIC.
12822
if test "$host_cpu" = ia64; then
12823
# AIX 5 now supports IA64 processor
12824
lt_prog_compiler_static_F77='-Bstatic'
12829
# FIXME: we need at least 68020 code to build shared libraries, but
12830
# adding the `-m68020' flag to GCC prevents building anything better,
12832
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12835
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12836
# PIC is the default for these OSes.
12839
mingw* | pw32* | os2*)
12840
# This hack is so that the source file can tell whether it is being
12841
# built for inclusion in a dll (and should export symbols for example).
12842
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12845
darwin* | rhapsody*)
12846
# PIC is the default on this platform
12847
# Common symbols not allowed in MH_DYLIB files
12848
lt_prog_compiler_pic_F77='-fno-common'
12852
# Just because we use GCC doesn't mean we suddenly get shared libraries
12853
# on systems that don't support them.
12854
lt_prog_compiler_can_build_shared_F77=no
12859
if test -d /usr/nec; then
12860
lt_prog_compiler_pic_F77=-Kconform_pic
12865
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12866
# not for PA HP-UX.
12867
case "$host_cpu" in
12872
lt_prog_compiler_pic_F77='-fPIC'
12878
lt_prog_compiler_pic_F77='-fPIC'
12882
# PORTME Check for flag to pass linker flags through the system compiler.
12885
lt_prog_compiler_wl_F77='-Wl,'
12886
if test "$host_cpu" = ia64; then
12887
# AIX 5 now supports IA64 processor
12888
lt_prog_compiler_static_F77='-Bstatic'
12890
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12894
# PIC is the default on this platform
12895
# Common symbols not allowed in MH_DYLIB files
12896
case $cc_basename in
12898
lt_prog_compiler_pic_F77='-qnocommon'
12899
lt_prog_compiler_wl_F77='-Wl,'
12904
mingw* | pw32* | os2*)
12905
# This hack is so that the source file can tell whether it is being
12906
# built for inclusion in a dll (and should export symbols for example).
12907
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12910
hpux9* | hpux10* | hpux11*)
12911
lt_prog_compiler_wl_F77='-Wl,'
12912
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12913
# not for PA HP-UX.
12914
case "$host_cpu" in
12919
lt_prog_compiler_pic_F77='+Z'
12922
# Is there a better lt_prog_compiler_static that works with the bundled CC?
12923
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12926
irix5* | irix6* | nonstopux*)
12927
lt_prog_compiler_wl_F77='-Wl,'
12928
# PIC (with -KPIC) is the default.
12929
lt_prog_compiler_static_F77='-non_shared'
12933
lt_prog_compiler_pic_F77='-KPIC'
12934
lt_prog_compiler_static_F77='-Bstatic'
12938
case $cc_basename in
12940
lt_prog_compiler_wl_F77='-Wl,'
12941
lt_prog_compiler_pic_F77='-KPIC'
12942
lt_prog_compiler_static_F77='-static'
12944
pgcc* | pgf77* | pgf90*)
12945
# Portland Group compilers (*not* the Pentium gcc compiler,
12946
# which looks to be a dead project)
12947
lt_prog_compiler_wl_F77='-Wl,'
12948
lt_prog_compiler_pic_F77='-fpic'
12949
lt_prog_compiler_static_F77='-static'
12952
lt_prog_compiler_wl_F77='-Wl,'
12953
# All Alpha code is PIC.
12954
lt_prog_compiler_static_F77='-non_shared'
12959
osf3* | osf4* | osf5*)
12960
lt_prog_compiler_wl_F77='-Wl,'
12961
# All OSF/1 code is PIC.
12962
lt_prog_compiler_static_F77='-non_shared'
12966
lt_prog_compiler_pic_F77='-Kpic'
12967
lt_prog_compiler_static_F77='-dn'
12971
lt_prog_compiler_pic_F77='-KPIC'
12972
lt_prog_compiler_static_F77='-Bstatic'
12973
case $cc_basename in
12974
f77* | f90* | f95*)
12975
lt_prog_compiler_wl_F77='-Qoption ld ';;
12977
lt_prog_compiler_wl_F77='-Wl,';;
12982
lt_prog_compiler_wl_F77='-Qoption ld '
12983
lt_prog_compiler_pic_F77='-PIC'
12984
lt_prog_compiler_static_F77='-Bstatic'
12987
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12988
lt_prog_compiler_wl_F77='-Wl,'
12989
lt_prog_compiler_pic_F77='-KPIC'
12990
lt_prog_compiler_static_F77='-Bstatic'
12994
if test -d /usr/nec ;then
12995
lt_prog_compiler_pic_F77='-Kconform_pic'
12996
lt_prog_compiler_static_F77='-Bstatic'
13001
lt_prog_compiler_wl_F77='-Wl,'
13002
lt_prog_compiler_can_build_shared_F77=no
13006
lt_prog_compiler_pic_F77='-pic'
13007
lt_prog_compiler_static_F77='-Bstatic'
13011
lt_prog_compiler_can_build_shared_F77=no
13016
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13017
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13020
# Check to make sure the PIC flag actually works.
13022
if test -n "$lt_prog_compiler_pic_F77"; then
13024
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13025
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13026
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13027
echo $ECHO_N "(cached) $ECHO_C" >&6
13029
lt_prog_compiler_pic_works_F77=no
13030
ac_outfile=conftest.$ac_objext
13031
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13032
lt_compiler_flag="$lt_prog_compiler_pic_F77"
13033
# Insert the option either (1) after the last *FLAGS variable, or
13034
# (2) before a word containing "conftest.", or (3) at the end.
13035
# Note that $ac_compile itself does not contain backslashes and begins
13036
# with a dollar sign (not a hyphen), so the echo should work correctly.
13037
# The option is referenced via a variable to avoid confusing sed.
13038
lt_compile=`echo "$ac_compile" | $SED \
13039
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13040
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13041
-e 's:$: $lt_compiler_flag:'`
13042
(eval echo "\"\$as_me:13042: $lt_compile\"" >&5)
13043
(eval "$lt_compile" 2>conftest.err)
13045
cat conftest.err >&5
13046
echo "$as_me:13046: \$? = $ac_status" >&5
13047
if (exit $ac_status) && test -s "$ac_outfile"; then
13048
# The compiler can only warn and ignore the option if not recognized
13049
# So say no if there are warnings other than the usual output.
13050
$echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13051
$SED '/^$/d' conftest.err >conftest.er2
13052
if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13053
lt_prog_compiler_pic_works_F77=yes
13059
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13060
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13062
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13063
case $lt_prog_compiler_pic_F77 in
13065
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13068
lt_prog_compiler_pic_F77=
13069
lt_prog_compiler_can_build_shared_F77=no
13074
# For platforms which do not support PIC, -DPIC is meaningless:
13076
lt_prog_compiler_pic_F77=
13079
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13083
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13084
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13085
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13086
echo $ECHO_N "(cached) $ECHO_C" >&6
13088
lt_cv_prog_compiler_c_o_F77=no
13089
$rm -r conftest 2>/dev/null
13093
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13095
lt_compiler_flag="-o out/conftest2.$ac_objext"
13096
# Insert the option either (1) after the last *FLAGS variable, or
13097
# (2) before a word containing "conftest.", or (3) at the end.
13098
# Note that $ac_compile itself does not contain backslashes and begins
13099
# with a dollar sign (not a hyphen), so the echo should work correctly.
13100
lt_compile=`echo "$ac_compile" | $SED \
13101
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13102
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13103
-e 's:$: $lt_compiler_flag:'`
13104
(eval echo "\"\$as_me:13104: $lt_compile\"" >&5)
13105
(eval "$lt_compile" 2>out/conftest.err)
13107
cat out/conftest.err >&5
13108
echo "$as_me:13108: \$? = $ac_status" >&5
13109
if (exit $ac_status) && test -s out/conftest2.$ac_objext
13111
# The compiler can only warn and ignore the option if not recognized
13112
# So say no if there are warnings
13113
$echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13114
$SED '/^$/d' out/conftest.err >out/conftest.er2
13115
if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13116
lt_cv_prog_compiler_c_o_F77=yes
13121
# SGI C++ compiler will create directory out/ii_files/ for
13122
# template instantiation
13123
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13124
$rm out/* && rmdir out
13130
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13131
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13134
hard_links="nottested"
13135
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13136
# do not overwrite the value of need_locks provided by the user
13137
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13138
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13141
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13143
ln conftest.a conftest.b 2>&5 || hard_links=no
13144
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13145
echo "$as_me:$LINENO: result: $hard_links" >&5
13146
echo "${ECHO_T}$hard_links" >&6
13147
if test "$hard_links" = no; then
13148
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13149
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13156
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13157
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13160
allow_undefined_flag_F77=
13161
enable_shared_with_static_runtimes_F77=no
13163
archive_expsym_cmds_F77=
13164
old_archive_From_new_cmds_F77=
13165
old_archive_from_expsyms_cmds_F77=
13166
export_dynamic_flag_spec_F77=
13167
whole_archive_flag_spec_F77=
13168
thread_safe_flag_spec_F77=
13169
hardcode_libdir_flag_spec_F77=
13170
hardcode_libdir_flag_spec_ld_F77=
13171
hardcode_libdir_separator_F77=
13172
hardcode_direct_F77=no
13173
hardcode_minus_L_F77=no
13174
hardcode_shlibpath_var_F77=unsupported
13175
link_all_deplibs_F77=unknown
13176
hardcode_automatic_F77=no
13178
module_expsym_cmds_F77=
13179
always_export_symbols_F77=no
13180
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13181
# include_expsyms should be a list of space-separated symbols to be *always*
13182
# included in the symbol list
13183
include_expsyms_F77=
13184
# exclude_expsyms can be an extended regexp of symbols to exclude
13185
# it will be wrapped by ` (' and `)$', so one must not match beginning or
13186
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13187
# as well as any symbol that contains `d'.
13188
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13189
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13190
# platforms (ab)use it in PIC code, but their linkers get confused if
13191
# the symbol is explicitly referenced. Since portable code cannot
13192
# rely on this symbol name, it's probably fine to never include it in
13193
# preloaded symbol tables.
13194
extract_expsyms_cmds=
13195
# Just being paranoid about ensuring that cc_basename is set.
13196
for cc_temp in $compiler""; do
13198
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13199
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13204
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13207
cygwin* | mingw* | pw32*)
13208
# FIXME: the MSVC++ port hasn't been tested in a loooong time
13209
# When not using gcc, we currently assume that we are using
13210
# Microsoft Visual C++.
13211
if test "$GCC" != yes; then
13221
if test "$with_gnu_ld" = yes; then
13222
# If archive_cmds runs LD, not CC, wlarc should be empty
13225
# Set some defaults for GNU ld with shared library support. These
13226
# are reset later if shared libraries are not supported. Putting them
13227
# here allows them to be overridden if necessary.
13228
runpath_var=LD_RUN_PATH
13229
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13230
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13231
# ancient GNU ld didn't support --whole-archive et. al.
13232
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13233
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13235
whole_archive_flag_spec_F77=
13237
supports_anon_versioning=no
13238
case `$LD -v 2>/dev/null` in
13239
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13240
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13241
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13242
*\ 2.11.*) ;; # other 2.11 versions
13243
*) supports_anon_versioning=yes ;;
13246
# See if GNU ld supports shared libraries.
13248
aix3* | aix4* | aix5*)
13249
# On AIX/PPC, the GNU linker is very broken
13250
if test "$host_cpu" != ia64; then
13254
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13255
*** to be unable to reliably create shared libraries on AIX.
13256
*** Therefore, libtool is disabling shared libraries support. If you
13257
*** really care for shared libraries, you may want to modify your PATH
13258
*** so that a non-GNU linker is found, and then restart.
13265
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)'
13266
hardcode_libdir_flag_spec_F77='-L$libdir'
13267
hardcode_minus_L_F77=yes
13269
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13270
# that the semantics of dynamic libraries on AmigaOS, at least up
13271
# to version 4, is to share data among multiple programs linked
13272
# with the same dynamic library. Since this doesn't match the
13273
# behavior of shared libraries on other platforms, we can't use
13279
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13280
allow_undefined_flag_F77=unsupported
13281
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13282
# support --undefined. This deserves some investigation. FIXME
13283
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13289
cygwin* | mingw* | pw32*)
13290
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13291
# as there is no search path for DLLs.
13292
hardcode_libdir_flag_spec_F77='-L$libdir'
13293
allow_undefined_flag_F77=unsupported
13294
always_export_symbols_F77=no
13295
enable_shared_with_static_runtimes_F77=yes
13296
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13298
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13299
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13300
# If the export-symbols file already is a .def file (1st line
13301
# is EXPORTS), use it as is; otherwise, prepend...
13302
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13303
cp $export_symbols $output_objdir/$soname.def;
13305
echo EXPORTS > $output_objdir/$soname.def;
13306
cat $export_symbols >> $output_objdir/$soname.def;
13308
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13315
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13317
case $cc_basename,$host_cpu in
13318
pgcc*) # Portland Group C compiler
13319
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'
13320
tmp_addflag=' $pic_flag'
13322
pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
13323
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'
13324
tmp_addflag=' $pic_flag -Mnomain' ;;
13325
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13326
tmp_addflag=' -i_dynamic' ;;
13327
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13328
tmp_addflag=' -i_dynamic -nofor_main' ;;
13329
ifc* | ifort*) # Intel Fortran compiler
13330
tmp_addflag=' -nofor_main' ;;
13332
archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13334
if test $supports_anon_versioning = yes; then
13335
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13336
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13337
$echo "local: *; };" >> $output_objdir/$libname.ver~
13338
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13346
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13347
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13350
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13351
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13356
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13360
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13361
*** create shared libraries on Solaris systems. Therefore, libtool
13362
*** is disabling shared libraries support. We urge you to upgrade GNU
13363
*** binutils to release 2.9.1 or newer. Another option is to modify
13364
*** your PATH or compiler configuration so that the native linker is
13365
*** used, and then restart.
13368
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13369
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13370
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13377
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13379
hardcode_direct_F77=yes
13380
hardcode_shlibpath_var_F77=no
13384
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13385
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13386
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13393
if test "$ld_shlibs_F77" = no; then
13395
hardcode_libdir_flag_spec_F77=
13396
export_dynamic_flag_spec_F77=
13397
whole_archive_flag_spec_F77=
13400
# PORTME fill in a description of your system's linker (not GNU ld)
13403
allow_undefined_flag_F77=unsupported
13404
always_export_symbols_F77=yes
13405
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'
13406
# Note: this linker hardcodes the directories in LIBPATH if there
13407
# are no directories specified by -L.
13408
hardcode_minus_L_F77=yes
13409
if test "$GCC" = yes && test -z "$link_static_flag"; then
13410
# Neither direct hardcoding nor static linking is supported with a
13412
hardcode_direct_F77=unsupported
13417
if test "$host_cpu" = ia64; then
13418
# On IA64, the linker does run time linking by default, so we don't
13419
# have to do anything special.
13420
aix_use_runtimelinking=no
13421
exp_sym_flag='-Bexport'
13424
# If we're using GNU nm, then we don't want the "-C" option.
13425
# -C means demangle to AIX nm, but means don't demangle with GNU nm
13426
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13427
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'
13429
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'
13431
aix_use_runtimelinking=no
13433
# Test if we are trying to use run time linking or normal
13434
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13435
# need to do runtime linking.
13436
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13437
for ld_flag in $LDFLAGS; do
13438
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13439
aix_use_runtimelinking=yes
13445
exp_sym_flag='-bexport'
13446
no_entry_flag='-bnoentry'
13449
# When large executables or shared objects are built, AIX ld can
13450
# have problems creating the table of contents. If linking a library
13451
# or program results in "error TOC overflow" add -mminimal-toc to
13452
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13453
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13455
archive_cmds_F77=''
13456
hardcode_direct_F77=yes
13457
hardcode_libdir_separator_F77=':'
13458
link_all_deplibs_F77=yes
13460
if test "$GCC" = yes; then
13461
case $host_os in aix4.[012]|aix4.[012].*)
13462
# We only want to do this on AIX 4.2 and lower, the check
13463
# below for broken collect2 doesn't work under 4.3+
13464
collect2name=`${CC} -print-prog-name=collect2`
13465
if test -f "$collect2name" && \
13466
strings "$collect2name" | grep resolve_lib_name >/dev/null
13468
# We have reworked collect2
13469
hardcode_direct_F77=yes
13471
# We have old collect2
13472
hardcode_direct_F77=unsupported
13473
# It fails to find uninstalled libraries when the uninstalled
13474
# path is not listed in the libpath. Setting hardcode_minus_L
13475
# to unsupported forces relinking
13476
hardcode_minus_L_F77=yes
13477
hardcode_libdir_flag_spec_F77='-L$libdir'
13478
hardcode_libdir_separator_F77=
13481
shared_flag='-shared'
13482
if test "$aix_use_runtimelinking" = yes; then
13483
shared_flag="$shared_flag "'${wl}-G'
13487
if test "$host_cpu" = ia64; then
13488
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13489
# chokes on -Wl,-G. The following line is correct:
13492
if test "$aix_use_runtimelinking" = yes; then
13493
shared_flag='${wl}-G'
13495
shared_flag='${wl}-bM:SRE'
13500
# It seems that -bexpall does not export symbols beginning with
13501
# underscore (_), so it is better to generate a list of symbols to export.
13502
always_export_symbols_F77=yes
13503
if test "$aix_use_runtimelinking" = yes; then
13504
# Warning - without using the other runtime loading flags (-brtl),
13505
# -berok will link without error, but may produce a broken library.
13506
allow_undefined_flag_F77='-berok'
13507
# Determine the default libpath from the value encoded in an empty executable.
13508
cat >conftest.$ac_ext <<_ACEOF
13513
rm -f conftest.$ac_objext conftest$ac_exeext
13514
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13515
(eval $ac_link) 2>conftest.er1
13517
grep -v '^ *+' conftest.er1 >conftest.err
13519
cat conftest.err >&5
13520
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13521
(exit $ac_status); } &&
13522
{ ac_try='test -z "$ac_f77_werror_flag"
13523
|| test ! -s conftest.err'
13524
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13525
(eval $ac_try) 2>&5
13527
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528
(exit $ac_status); }; } &&
13529
{ ac_try='test -s conftest$ac_exeext'
13530
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13531
(eval $ac_try) 2>&5
13533
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534
(exit $ac_status); }; }; then
13536
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13538
# Check for a 64-bit object if we didn't find anything.
13539
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13542
echo "$as_me: failed program was:" >&5
13543
sed 's/^/| /' conftest.$ac_ext >&5
13546
rm -f conftest.err conftest.$ac_objext \
13547
conftest$ac_exeext conftest.$ac_ext
13548
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13550
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13551
archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13553
if test "$host_cpu" = ia64; then
13554
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13555
allow_undefined_flag_F77="-z nodefs"
13556
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13558
# Determine the default libpath from the value encoded in an empty executable.
13559
cat >conftest.$ac_ext <<_ACEOF
13564
rm -f conftest.$ac_objext conftest$ac_exeext
13565
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13566
(eval $ac_link) 2>conftest.er1
13568
grep -v '^ *+' conftest.er1 >conftest.err
13570
cat conftest.err >&5
13571
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572
(exit $ac_status); } &&
13573
{ ac_try='test -z "$ac_f77_werror_flag"
13574
|| test ! -s conftest.err'
13575
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13576
(eval $ac_try) 2>&5
13578
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579
(exit $ac_status); }; } &&
13580
{ ac_try='test -s conftest$ac_exeext'
13581
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13582
(eval $ac_try) 2>&5
13584
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585
(exit $ac_status); }; }; then
13587
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13589
# Check for a 64-bit object if we didn't find anything.
13590
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13593
echo "$as_me: failed program was:" >&5
13594
sed 's/^/| /' conftest.$ac_ext >&5
13597
rm -f conftest.err conftest.$ac_objext \
13598
conftest$ac_exeext conftest.$ac_ext
13599
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13601
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13602
# Warning - without using the other run time loading flags,
13603
# -berok will link without error, but may produce a broken library.
13604
no_undefined_flag_F77=' ${wl}-bernotok'
13605
allow_undefined_flag_F77=' ${wl}-berok'
13606
# -bexpall does not export symbols beginning with underscore (_)
13607
always_export_symbols_F77=yes
13608
# Exported symbols can be pulled into shared objects from archives
13609
whole_archive_flag_spec_F77=' '
13610
archive_cmds_need_lc_F77=yes
13611
# This is similar to how AIX traditionally builds it's shared libraries.
13612
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13618
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)'
13619
hardcode_libdir_flag_spec_F77='-L$libdir'
13620
hardcode_minus_L_F77=yes
13621
# see comment about different semantics on the GNU ld section
13626
export_dynamic_flag_spec_F77=-rdynamic
13629
cygwin* | mingw* | pw32*)
13630
# When not using gcc, we currently assume that we are using
13631
# Microsoft Visual C++.
13632
# hardcode_libdir_flag_spec is actually meaningless, as there is
13633
# no search path for DLLs.
13634
hardcode_libdir_flag_spec_F77=' '
13635
allow_undefined_flag_F77=unsupported
13636
# Tell ltmain to make .lib files, not .a files.
13638
# Tell ltmain to make .dll files, not .so files.
13640
# FIXME: Setting linknames here is a bad hack.
13641
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13642
# The linker will automatically build a .lib file if we build a DLL.
13643
old_archive_From_new_cmds_F77='true'
13644
# FIXME: Should let the user specify the lib program.
13645
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13646
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13647
enable_shared_with_static_runtimes_F77=yes
13650
darwin* | rhapsody*)
13652
rhapsody* | darwin1.[012])
13653
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13656
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13657
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13659
case ${MACOSX_DEPLOYMENT_TARGET} in
13661
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13664
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13670
archive_cmds_need_lc_F77=no
13671
hardcode_direct_F77=no
13672
hardcode_automatic_F77=yes
13673
hardcode_shlibpath_var_F77=unsupported
13674
whole_archive_flag_spec_F77=''
13675
link_all_deplibs_F77=yes
13676
if test "$GCC" = yes ; then
13677
output_verbose_link_cmd='echo'
13678
archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13679
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13680
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13681
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13682
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}'
13684
case $cc_basename in
13686
output_verbose_link_cmd='echo'
13687
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13688
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13689
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13690
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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13691
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}'
13701
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13702
hardcode_libdir_flag_spec_F77='-L$libdir'
13703
hardcode_shlibpath_var_F77=no
13710
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13711
# support. Future versions do this automatically, but an explicit c++rt0.o
13712
# does not break anything, and helps significantly (at the cost of a little
13715
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13716
hardcode_libdir_flag_spec_F77='-R$libdir'
13717
hardcode_direct_F77=yes
13718
hardcode_shlibpath_var_F77=no
13721
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
13723
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13724
hardcode_direct_F77=yes
13725
hardcode_minus_L_F77=yes
13726
hardcode_shlibpath_var_F77=no
13729
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13730
freebsd* | kfreebsd*-gnu | dragonfly*)
13731
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13732
hardcode_libdir_flag_spec_F77='-R$libdir'
13733
hardcode_direct_F77=yes
13734
hardcode_shlibpath_var_F77=no
13738
if test "$GCC" = yes; then
13739
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'
13741
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'
13743
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13744
hardcode_libdir_separator_F77=:
13745
hardcode_direct_F77=yes
13747
# hardcode_minus_L: Not really in the search PATH,
13748
# but as the default location of the library.
13749
hardcode_minus_L_F77=yes
13750
export_dynamic_flag_spec_F77='${wl}-E'
13754
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13755
case "$host_cpu" in
13757
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13760
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13764
case "$host_cpu" in
13766
archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13769
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13773
if test "$with_gnu_ld" = no; then
13774
case "$host_cpu" in
13776
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13777
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13778
hardcode_libdir_separator_F77=:
13779
hardcode_direct_F77=no
13780
hardcode_shlibpath_var_F77=no
13783
hardcode_libdir_flag_spec_F77='-L$libdir'
13784
hardcode_direct_F77=no
13785
hardcode_shlibpath_var_F77=no
13787
# hardcode_minus_L: Not really in the search PATH,
13788
# but as the default location of the library.
13789
hardcode_minus_L_F77=yes
13792
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13793
hardcode_libdir_separator_F77=:
13794
hardcode_direct_F77=yes
13795
export_dynamic_flag_spec_F77='${wl}-E'
13797
# hardcode_minus_L: Not really in the search PATH,
13798
# but as the default location of the library.
13799
hardcode_minus_L_F77=yes
13805
irix5* | irix6* | nonstopux*)
13806
if test "$GCC" = yes; then
13807
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'
13809
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'
13810
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13812
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13813
hardcode_libdir_separator_F77=:
13814
link_all_deplibs_F77=yes
13818
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13819
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13821
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13823
hardcode_libdir_flag_spec_F77='-R$libdir'
13824
hardcode_direct_F77=yes
13825
hardcode_shlibpath_var_F77=no
13829
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13830
hardcode_direct_F77=yes
13831
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13832
hardcode_libdir_separator_F77=:
13833
hardcode_shlibpath_var_F77=no
13837
hardcode_direct_F77=yes
13838
hardcode_shlibpath_var_F77=no
13839
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13840
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13841
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13842
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13843
export_dynamic_flag_spec_F77='${wl}-E'
13846
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13847
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13848
hardcode_libdir_flag_spec_F77='-R$libdir'
13851
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13852
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13859
hardcode_libdir_flag_spec_F77='-L$libdir'
13860
hardcode_minus_L_F77=yes
13861
allow_undefined_flag_F77=unsupported
13862
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'
13863
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13867
if test "$GCC" = yes; then
13868
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13869
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'
13871
allow_undefined_flag_F77=' -expect_unresolved \*'
13872
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'
13874
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13875
hardcode_libdir_separator_F77=:
13878
osf4* | osf5*) # as osf3* with the addition of -msym flag
13879
if test "$GCC" = yes; then
13880
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13881
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'
13882
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13884
allow_undefined_flag_F77=' -expect_unresolved \*'
13885
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'
13886
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~
13887
$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'
13889
# Both c and cxx compiler support -rpath directly
13890
hardcode_libdir_flag_spec_F77='-rpath $libdir'
13892
hardcode_libdir_separator_F77=:
13896
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13897
hardcode_shlibpath_var_F77=no
13898
export_dynamic_flag_spec_F77='${wl}-Bexport'
13899
runpath_var=LD_RUN_PATH
13900
hardcode_runpath_var=yes
13904
no_undefined_flag_F77=' -z text'
13905
if test "$GCC" = yes; then
13907
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13908
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13909
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13912
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13913
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13914
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13916
hardcode_libdir_flag_spec_F77='-R$libdir'
13917
hardcode_shlibpath_var_F77=no
13919
solaris2.[0-5] | solaris2.[0-5].*) ;;
13921
# The compiler driver will combine linker options so we
13922
# cannot just pass the convience library names through
13923
# without $wl, iff we do not link with $LD.
13924
# Luckily, gcc supports the same syntax we need for Sun Studio.
13925
# Supported since Solaris 2.6 (maybe 2.5.1?)
13928
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13930
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
13933
link_all_deplibs_F77=yes
13937
if test "x$host_vendor" = xsequent; then
13938
# Use $CC to link under sequent, because it throws in some extra .o
13939
# files that make .init and .fini sections work.
13940
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13942
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13944
hardcode_libdir_flag_spec_F77='-L$libdir'
13945
hardcode_direct_F77=yes
13946
hardcode_minus_L_F77=yes
13947
hardcode_shlibpath_var_F77=no
13951
case $host_vendor in
13953
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13954
hardcode_direct_F77=yes # is this really true???
13957
## LD is ld it makes a PLAMLIB
13958
## CC just makes a GrossModule.
13959
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13960
reload_cmds_F77='$CC -r -o $output$reload_objs'
13961
hardcode_direct_F77=no
13964
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13965
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13968
runpath_var='LD_RUN_PATH'
13969
hardcode_shlibpath_var_F77=no
13973
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13974
hardcode_shlibpath_var_F77=no
13975
export_dynamic_flag_spec_F77='-Bexport'
13979
if test -d /usr/nec; then
13980
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13981
hardcode_shlibpath_var_F77=no
13982
runpath_var=LD_RUN_PATH
13983
hardcode_runpath_var=yes
13989
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13990
hardcode_direct_F77=yes
13991
hardcode_minus_L_F77=no
13992
hardcode_shlibpath_var_F77=no
13993
hardcode_runpath_var=yes
13994
runpath_var=LD_RUN_PATH
13997
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13998
no_undefined_flag_F77='${wl}-z ${wl}text'
13999
if test "$GCC" = yes; then
14000
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14002
archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14004
runpath_var='LD_RUN_PATH'
14005
hardcode_shlibpath_var_F77=no
14009
no_undefined_flag_F77=' -z text'
14010
# $CC -shared without GNU ld will not create a library from C++
14011
# object files and a static libstdc++, better avoid it by now
14012
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14013
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14014
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14015
hardcode_libdir_flag_spec_F77=
14016
hardcode_shlibpath_var_F77=no
14017
runpath_var='LD_RUN_PATH'
14021
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14022
hardcode_libdir_flag_spec_F77='-L$libdir'
14023
hardcode_shlibpath_var_F77=no
14032
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14033
echo "${ECHO_T}$ld_shlibs_F77" >&6
14034
test "$ld_shlibs_F77" = no && can_build_shared=no
14036
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14037
if test "$GCC" = yes; then
14038
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14042
# Do we need to explicitly link libc?
14044
case "x$archive_cmds_need_lc_F77" in
14046
# Assume -lc should be added
14047
archive_cmds_need_lc_F77=yes
14049
if test "$enable_shared" = yes && test "$GCC" = yes; then
14050
case $archive_cmds_F77 in
14052
# FIXME: we may have to deal with multi-command sequences.
14055
# Test whether the compiler implicitly links with -lc since on some
14056
# systems, -lgcc has to come before -lc. If gcc already passes -lc
14057
# to ld, don't add -lc before -lgcc.
14058
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14059
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14061
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14063
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14064
(eval $ac_compile) 2>&5
14066
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067
(exit $ac_status); } 2>conftest.err; then
14070
libobjs=conftest.$ac_objext
14072
wl=$lt_prog_compiler_wl_F77
14078
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14079
allow_undefined_flag_F77=
14080
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14081
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14083
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14084
(exit $ac_status); }
14086
archive_cmds_need_lc_F77=no
14088
archive_cmds_need_lc_F77=yes
14090
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14092
cat conftest.err 1>&5
14095
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14096
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14103
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14104
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14105
library_names_spec=
14106
libname_spec='lib$name'
14110
postuninstall_cmds=
14114
shlibpath_overrides_runpath=unknown
14116
dynamic_linker="$host_os ld.so"
14117
sys_lib_dlsearch_path_spec="/lib /usr/lib"
14118
if test "$GCC" = yes; then
14119
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14120
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14121
# if the path contains ";" then we assume it to be the separator
14122
# otherwise default to the standard path separator (i.e. ":") - it is
14123
# assumed that no part of a normal pathname contains ";" but that should
14124
# okay in the real world where ";" in dirpaths is itself problematic.
14125
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14127
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14130
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14132
need_lib_prefix=unknown
14133
hardcode_into_libs=no
14135
# when you set need_version to no, make sure it does not cause -set_version
14136
# flags to be left without arguments
14137
need_version=unknown
14142
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14143
shlibpath_var=LIBPATH
14145
# AIX 3 has no versioning support, so we append a major version to the name.
14146
soname_spec='${libname}${release}${shared_ext}$major'
14153
hardcode_into_libs=yes
14154
if test "$host_cpu" = ia64; then
14155
# AIX 5 supports IA64
14156
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14157
shlibpath_var=LD_LIBRARY_PATH
14159
# With GCC up to 2.95.x, collect2 would create an import file
14160
# for dependence libraries. The import file would start with
14161
# the line `#! .'. This would cause the generated library to
14162
# depend on `.', always an invalid library. This was fixed in
14163
# development snapshots of GCC prior to 3.0.
14165
aix4 | aix4.[01] | aix4.[01].*)
14166
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14168
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14171
can_build_shared=no
14175
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14176
# soname into executable. Probably we can add versioning support to
14177
# collect2, so additional links can be useful in future.
14178
if test "$aix_use_runtimelinking" = yes; then
14179
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
14180
# instead of lib<name>.a to let people know that these are not
14181
# typical AIX shared libraries.
14182
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14184
# We preserve .a as extension for shared libraries through AIX4.2
14185
# and later when we are not doing run time linking.
14186
library_names_spec='${libname}${release}.a $libname.a'
14187
soname_spec='${libname}${release}${shared_ext}$major'
14189
shlibpath_var=LIBPATH
14194
library_names_spec='$libname.ixlibrary $libname.a'
14195
# Create ${libname}_ixlibrary.a entries in /sys/libs.
14196
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'
14200
library_names_spec='${libname}${shared_ext}'
14201
dynamic_linker="$host_os ld.so"
14202
shlibpath_var=LIBRARY_PATH
14208
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14209
soname_spec='${libname}${release}${shared_ext}$major'
14210
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14211
shlibpath_var=LD_LIBRARY_PATH
14212
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14213
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14214
# the default ld.so.conf also contains /usr/contrib/lib and
14215
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14216
# libtool to hard-code these into programs
14219
cygwin* | mingw* | pw32*)
14220
version_type=windows
14225
case $GCC,$host_os in
14226
yes,cygwin* | yes,mingw* | yes,pw32*)
14227
library_names_spec='$libname.dll.a'
14228
# DLL is installed to $(libdir)/../bin by postinstall_cmds
14229
postinstall_cmds='base_file=`basename \${file}`~
14230
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14231
dldir=$destdir/`dirname \$dlpath`~
14232
test -d \$dldir || mkdir -p \$dldir~
14233
$install_prog $dir/$dlname \$dldir/$dlname'
14234
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14235
dlpath=$dir/\$dldll~
14237
shlibpath_overrides_runpath=yes
14241
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
14242
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14243
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14246
# MinGW DLLs use traditional 'lib' prefix
14247
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14248
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14249
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14250
# It is most probably a Windows format PATH printed by
14251
# mingw gcc, but we are running on Cygwin. Gcc prints its search
14252
# path with ; separators, and with drive letters. We can handle the
14253
# drive letters (cygwin fileutils understands them), so leave them,
14254
# especially as we might pass files found there to a mingw objdump,
14255
# which wouldn't understand a cygwinified path. Ahh.
14256
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14258
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14262
# pw32 DLLs use 'pw' prefix rather than 'lib'
14263
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14269
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14272
dynamic_linker='Win32 ld.exe'
14273
# FIXME: first we should search . and the directory the executable is in
14277
darwin* | rhapsody*)
14278
dynamic_linker="$host_os dyld"
14279
version_type=darwin
14282
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14283
soname_spec='${libname}${release}${major}$shared_ext'
14284
shlibpath_overrides_runpath=yes
14285
shlibpath_var=DYLD_LIBRARY_PATH
14286
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14287
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14288
if test "$GCC" = yes; then
14289
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14291
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14293
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14300
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14301
soname_spec='${libname}${release}${shared_ext}$major'
14302
shlibpath_var=LD_LIBRARY_PATH
14313
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14314
soname_spec='${libname}${release}${shared_ext}$major'
14315
shlibpath_var=LD_LIBRARY_PATH
14316
shlibpath_overrides_runpath=no
14317
hardcode_into_libs=yes
14318
dynamic_linker='GNU ld.so'
14321
freebsd* | dragonfly*)
14322
# DragonFly does not have aout. When/if they implement a new
14323
# versioning mechanism, adjust this.
14324
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14325
version_type=freebsd-$objformat
14326
case $version_type in
14328
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14333
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14337
shlibpath_var=LD_LIBRARY_PATH
14340
shlibpath_overrides_runpath=yes
14342
freebsd3.[01]* | freebsdelf3.[01]*)
14343
shlibpath_overrides_runpath=yes
14344
hardcode_into_libs=yes
14347
shlibpath_overrides_runpath=no
14348
hardcode_into_libs=yes
14357
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14358
soname_spec='${libname}${release}${shared_ext}$major'
14359
shlibpath_var=LD_LIBRARY_PATH
14360
hardcode_into_libs=yes
14363
hpux9* | hpux10* | hpux11*)
14364
# Give a soname corresponding to the major version so that dld.sl refuses to
14365
# link against other versions.
14369
case "$host_cpu" in
14372
hardcode_into_libs=yes
14373
dynamic_linker="$host_os dld.so"
14374
shlibpath_var=LD_LIBRARY_PATH
14375
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14376
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14377
soname_spec='${libname}${release}${shared_ext}$major'
14378
if test "X$HPUX_IA64_MODE" = X32; then
14379
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14381
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14383
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14387
hardcode_into_libs=yes
14388
dynamic_linker="$host_os dld.sl"
14389
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14390
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14391
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14392
soname_spec='${libname}${release}${shared_ext}$major'
14393
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14394
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14398
dynamic_linker="$host_os dld.sl"
14399
shlibpath_var=SHLIB_PATH
14400
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14401
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14402
soname_spec='${libname}${release}${shared_ext}$major'
14405
# HP-UX runs *really* slowly unless shared libraries are mode 555.
14406
postinstall_cmds='chmod 555 $lib'
14409
irix5* | irix6* | nonstopux*)
14411
nonstopux*) version_type=nonstopux ;;
14413
if test "$lt_cv_prog_gnu_ld" = yes; then
14421
soname_spec='${libname}${release}${shared_ext}$major'
14422
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14424
irix5* | nonstopux*)
14425
libsuff= shlibsuff=
14428
case $LD in # libtool.m4 will add one of these switches to LD
14429
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14430
libsuff= shlibsuff= libmagic=32-bit;;
14431
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14432
libsuff=32 shlibsuff=N32 libmagic=N32;;
14433
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14434
libsuff=64 shlibsuff=64 libmagic=64-bit;;
14435
*) libsuff= shlibsuff= libmagic=never-match;;
14439
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14440
shlibpath_overrides_runpath=no
14441
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14442
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14443
hardcode_into_libs=yes
14446
# No shared lib support for Linux oldld, aout, or coff.
14447
linux*oldld* | linux*aout* | linux*coff*)
14451
# This must be Linux ELF.
14456
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14457
soname_spec='${libname}${release}${shared_ext}$major'
14458
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14459
shlibpath_var=LD_LIBRARY_PATH
14460
shlibpath_overrides_runpath=no
14461
# This implies no fast_install, which is unacceptable.
14462
# Some rework will be needed to allow for fast_install
14463
# before this can be enabled.
14464
hardcode_into_libs=yes
14466
# find out which ABI we are using
14468
case "$host_cpu" in
14469
x86_64*|s390x*|powerpc64*)
14470
echo '#line 14470 "configure"' > conftest.$ac_ext
14471
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14472
(eval $ac_compile) 2>&5
14474
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475
(exit $ac_status); }; then
14476
case `/usr/bin/file conftest.$ac_objext` in
14479
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14487
# Append ld.so.conf contents to the search path
14488
if test -f /etc/ld.so.conf; then
14489
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14490
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
14493
# We used to test for /lib/ld.so.1 and disable shared libraries on
14494
# powerpc, because MkLinux only supported shared libraries with the
14495
# GNU dynamic linker. Since this was broken with cross compilers,
14496
# most powerpc-linux boxes support dynamic linking these days and
14497
# people can always --disable-shared, the test was removed, and we
14498
# assume the GNU/Linux dynamic linker is in use.
14499
dynamic_linker='GNU/Linux ld.so'
14506
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14507
soname_spec='${libname}${release}${shared_ext}$major'
14508
shlibpath_var=LD_LIBRARY_PATH
14509
shlibpath_overrides_runpath=no
14510
hardcode_into_libs=yes
14511
dynamic_linker='GNU ld.so'
14518
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14519
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14520
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14521
dynamic_linker='NetBSD (a.out) ld.so'
14523
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14524
soname_spec='${libname}${release}${shared_ext}$major'
14525
dynamic_linker='NetBSD ld.elf_so'
14527
shlibpath_var=LD_LIBRARY_PATH
14528
shlibpath_overrides_runpath=yes
14529
hardcode_into_libs=yes
14534
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14535
shlibpath_var=LD_LIBRARY_PATH
14536
shlibpath_overrides_runpath=yes
14543
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14544
soname_spec='${libname}${release}${shared_ext}$major'
14545
shlibpath_var=LD_LIBRARY_PATH
14546
shlibpath_overrides_runpath=yes
14552
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14554
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14555
*) need_version=no ;;
14557
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14558
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14559
shlibpath_var=LD_LIBRARY_PATH
14560
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14562
openbsd2.[89] | openbsd2.[89].*)
14563
shlibpath_overrides_runpath=no
14566
shlibpath_overrides_runpath=yes
14570
shlibpath_overrides_runpath=yes
14575
libname_spec='$name'
14578
library_names_spec='$libname${shared_ext} $libname.a'
14579
dynamic_linker='OS/2 ld.exe'
14580
shlibpath_var=LIBPATH
14583
osf3* | osf4* | osf5*)
14587
soname_spec='${libname}${release}${shared_ext}$major'
14588
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14589
shlibpath_var=LD_LIBRARY_PATH
14590
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14591
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14596
soname_spec='${libname}${release}${shared_ext}$major'
14597
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14598
shlibpath_var=LD_LIBRARY_PATH
14605
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14606
soname_spec='${libname}${release}${shared_ext}$major'
14607
shlibpath_var=LD_LIBRARY_PATH
14608
shlibpath_overrides_runpath=yes
14609
hardcode_into_libs=yes
14610
# ldd complains unless libraries are executable
14611
postinstall_cmds='chmod +x $lib'
14616
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14617
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14618
shlibpath_var=LD_LIBRARY_PATH
14619
shlibpath_overrides_runpath=yes
14620
if test "$with_gnu_ld" = yes; then
14626
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14628
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14629
soname_spec='${libname}${release}${shared_ext}$major'
14630
shlibpath_var=LD_LIBRARY_PATH
14631
case $host_vendor in
14633
shlibpath_overrides_runpath=no
14635
export_dynamic_flag_spec='${wl}-Blargedynsym'
14636
runpath_var=LD_RUN_PATH
14644
shlibpath_overrides_runpath=no
14645
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14651
if test -d /usr/nec ;then
14653
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14654
soname_spec='$libname${shared_ext}.$major'
14655
shlibpath_var=LD_LIBRARY_PATH
14661
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14662
soname_spec='${libname}${release}${shared_ext}$major'
14663
shlibpath_var=LD_LIBRARY_PATH
14670
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14671
echo "${ECHO_T}$dynamic_linker" >&6
14672
test "$dynamic_linker" = no && can_build_shared=no
14674
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14675
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14676
hardcode_action_F77=
14677
if test -n "$hardcode_libdir_flag_spec_F77" || \
14678
test -n "$runpath_var_F77" || \
14679
test "X$hardcode_automatic_F77" = "Xyes" ; then
14681
# We can hardcode non-existant directories.
14682
if test "$hardcode_direct_F77" != no &&
14683
# If the only mechanism to avoid hardcoding is shlibpath_var, we
14684
# have to relink, otherwise we might link with an installed library
14685
# when we should be linking with a yet-to-be-installed one
14686
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14687
test "$hardcode_minus_L_F77" != no; then
14688
# Linking always hardcodes the temporary library directory.
14689
hardcode_action_F77=relink
14691
# We can link without hardcoding, and we can hardcode nonexisting dirs.
14692
hardcode_action_F77=immediate
14695
# We cannot hardcode anything, or else we can only hardcode existing
14697
hardcode_action_F77=unsupported
14699
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14700
echo "${ECHO_T}$hardcode_action_F77" >&6
14702
if test "$hardcode_action_F77" = relink; then
14703
# Fast installation is not supported
14704
enable_fast_install=no
14705
elif test "$shlibpath_overrides_runpath" = yes ||
14706
test "$enable_shared" = no; then
14707
# Fast installation is not necessary
14708
enable_fast_install=needless
14713
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14714
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14715
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14716
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14717
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14718
echo "$as_me:$LINENO: result: yes" >&5
14719
echo "${ECHO_T}yes" >&6
14721
# FIXME - insert some real tests, host_os isn't really good enough
14724
if test -n "$STRIP" ; then
14725
striplib="$STRIP -x"
14726
echo "$as_me:$LINENO: result: yes" >&5
14727
echo "${ECHO_T}yes" >&6
14729
echo "$as_me:$LINENO: result: no" >&5
14730
echo "${ECHO_T}no" >&6
14734
echo "$as_me:$LINENO: result: no" >&5
14735
echo "${ECHO_T}no" >&6
14742
# The else clause should only fire when bootstrapping the
14743
# libtool distribution, otherwise you forgot to ship ltmain.sh
14744
# with your package, and you will get complaints that there are
14745
# no rules to generate ltmain.sh.
14746
if test -f "$ltmain"; then
14747
# See if we are running on zsh, and set the options which allow our commands through
14748
# without removal of \ escapes.
14749
if test -n "${ZSH_VERSION+set}" ; then
14750
setopt NO_GLOB_SUBST
14752
# Now quote all the things that may contain metacharacters while being
14753
# careful not to overquote the AC_SUBSTed values. We take copies of the
14754
# variables and quote the copies for generation of the libtool script.
14755
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14757
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14758
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14759
deplibs_check_method reload_flag reload_cmds need_locks \
14760
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14761
lt_cv_sys_global_symbol_to_c_name_address \
14762
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14763
old_postinstall_cmds old_postuninstall_cmds \
14767
lt_prog_compiler_wl_F77 \
14768
lt_prog_compiler_pic_F77 \
14769
lt_prog_compiler_static_F77 \
14770
lt_prog_compiler_no_builtin_flag_F77 \
14771
export_dynamic_flag_spec_F77 \
14772
thread_safe_flag_spec_F77 \
14773
whole_archive_flag_spec_F77 \
14774
enable_shared_with_static_runtimes_F77 \
14775
old_archive_cmds_F77 \
14776
old_archive_from_new_cmds_F77 \
14777
predep_objects_F77 \
14778
postdep_objects_F77 \
14781
compiler_lib_search_path_F77 \
14783
archive_expsym_cmds_F77 \
14784
postinstall_cmds_F77 \
14785
postuninstall_cmds_F77 \
14786
old_archive_from_expsyms_cmds_F77 \
14787
allow_undefined_flag_F77 \
14788
no_undefined_flag_F77 \
14789
export_symbols_cmds_F77 \
14790
hardcode_libdir_flag_spec_F77 \
14791
hardcode_libdir_flag_spec_ld_F77 \
14792
hardcode_libdir_separator_F77 \
14793
hardcode_automatic_F77 \
14795
module_expsym_cmds_F77 \
14796
lt_cv_prog_compiler_c_o_F77 \
14797
exclude_expsyms_F77 \
14798
include_expsyms_F77; do
14801
old_archive_cmds_F77 | \
14802
old_archive_from_new_cmds_F77 | \
14803
archive_cmds_F77 | \
14804
archive_expsym_cmds_F77 | \
14805
module_cmds_F77 | \
14806
module_expsym_cmds_F77 | \
14807
old_archive_from_expsyms_cmds_F77 | \
14808
export_symbols_cmds_F77 | \
14809
extract_expsyms_cmds | reload_cmds | finish_cmds | \
14810
postinstall_cmds | postuninstall_cmds | \
14811
old_postinstall_cmds | old_postuninstall_cmds | \
14812
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14813
# Double-quote double-evaled strings.
14814
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14817
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14823
*'\$0 --fallback-echo"')
14824
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14830
cat <<__EOF__ >> "$cfgfile"
14831
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14833
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14835
# Shell to use when invoking shell scripts.
14838
# Whether or not to build shared libraries.
14839
build_libtool_libs=$enable_shared
14841
# Whether or not to build static libraries.
14842
build_old_libs=$enable_static
14844
# Whether or not to add -lc for building shared libraries.
14845
build_libtool_need_lc=$archive_cmds_need_lc_F77
14847
# Whether or not to disallow shared libs when runtime libs are static
14848
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14850
# Whether or not to optimize for fast installation.
14851
fast_install=$enable_fast_install
14854
host_alias=$host_alias
14858
# The build system.
14859
build_alias=$build_alias
14863
# An echo program that does not interpret backslashes.
14868
AR_FLAGS=$lt_AR_FLAGS
14873
# A language-specific compiler.
14874
CC=$lt_compiler_F77
14876
# Is the compiler the GNU C compiler?
14882
# The linker used to build libraries.
14885
# Whether we need hard or soft links.
14888
# A BSD-compatible nm program.
14891
# A symbol stripping program
14894
# Used to examine libraries when file_magic_cmd begins "file"
14895
MAGIC_CMD=$MAGIC_CMD
14897
# Used on cygwin: DLL creation program.
14900
# Used on cygwin: object dumper.
14903
# Used on cygwin: assembler.
14906
# The name of the directory that contains temporary libtool files.
14909
# How to create reloadable object files.
14910
reload_flag=$lt_reload_flag
14911
reload_cmds=$lt_reload_cmds
14913
# How to pass a linker flag through the compiler.
14914
wl=$lt_lt_prog_compiler_wl_F77
14916
# Object file suffix (normally "o").
14917
objext="$ac_objext"
14919
# Old archive suffix (normally "a").
14922
# Shared library suffix (normally ".so").
14923
shrext_cmds='$shrext_cmds'
14925
# Executable file suffix (normally "").
14928
# Additional compiler flags for building library objects.
14929
pic_flag=$lt_lt_prog_compiler_pic_F77
14932
# What is the maximum length of a command?
14933
max_cmd_len=$lt_cv_sys_max_cmd_len
14935
# Does compiler simultaneously support -c and -o options?
14936
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14938
# Must we lock files when doing compilation?
14939
need_locks=$lt_need_locks
14941
# Do we need the lib prefix for modules?
14942
need_lib_prefix=$need_lib_prefix
14944
# Do we need a version for libraries?
14945
need_version=$need_version
14947
# Whether dlopen is supported.
14948
dlopen_support=$enable_dlopen
14950
# Whether dlopen of programs is supported.
14951
dlopen_self=$enable_dlopen_self
14953
# Whether dlopen of statically linked programs is supported.
14954
dlopen_self_static=$enable_dlopen_self_static
14956
# Compiler flag to prevent dynamic linking.
14957
link_static_flag=$lt_lt_prog_compiler_static_F77
14959
# Compiler flag to turn off builtin functions.
14960
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14962
# Compiler flag to allow reflexive dlopens.
14963
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14965
# Compiler flag to generate shared objects directly from archives.
14966
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14968
# Compiler flag to generate thread-safe objects.
14969
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14971
# Library versioning type.
14972
version_type=$version_type
14974
# Format of library name prefix.
14975
libname_spec=$lt_libname_spec
14977
# List of archive names. First name is the real one, the rest are links.
14978
# The last name is the one that the linker finds with -lNAME.
14979
library_names_spec=$lt_library_names_spec
14981
# The coded name of the library, if different from the real name.
14982
soname_spec=$lt_soname_spec
14984
# Commands used to build and install an old-style archive.
14986
old_archive_cmds=$lt_old_archive_cmds_F77
14987
old_postinstall_cmds=$lt_old_postinstall_cmds
14988
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14990
# Create an old-style archive from a shared archive.
14991
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14993
# Create a temporary old-style archive to link instead of a shared archive.
14994
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14996
# Commands used to build and install a shared archive.
14997
archive_cmds=$lt_archive_cmds_F77
14998
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14999
postinstall_cmds=$lt_postinstall_cmds
15000
postuninstall_cmds=$lt_postuninstall_cmds
15002
# Commands used to build a loadable module (assumed same as above if empty)
15003
module_cmds=$lt_module_cmds_F77
15004
module_expsym_cmds=$lt_module_expsym_cmds_F77
15006
# Commands to strip libraries.
15007
old_striplib=$lt_old_striplib
15008
striplib=$lt_striplib
15010
# Dependencies to place before the objects being linked to create a
15012
predep_objects=$lt_predep_objects_F77
15014
# Dependencies to place after the objects being linked to create a
15016
postdep_objects=$lt_postdep_objects_F77
15018
# Dependencies to place before the objects being linked to create a
15020
predeps=$lt_predeps_F77
15022
# Dependencies to place after the objects being linked to create a
15024
postdeps=$lt_postdeps_F77
15026
# The library search path used internally by the compiler when linking
15027
# a shared library.
15028
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15030
# Method to check whether dependent libraries are shared objects.
15031
deplibs_check_method=$lt_deplibs_check_method
15033
# Command to use when deplibs_check_method == file_magic.
15034
file_magic_cmd=$lt_file_magic_cmd
15036
# Flag that allows shared libraries with undefined symbols to be built.
15037
allow_undefined_flag=$lt_allow_undefined_flag_F77
15039
# Flag that forces no undefined symbols.
15040
no_undefined_flag=$lt_no_undefined_flag_F77
15042
# Commands used to finish a libtool library installation in a directory.
15043
finish_cmds=$lt_finish_cmds
15045
# Same as above, but a single script fragment to be evaled but not shown.
15046
finish_eval=$lt_finish_eval
15048
# Take the output of nm and produce a listing of raw symbols and C names.
15049
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15051
# Transform the output of nm in a proper C declaration
15052
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15054
# Transform the output of nm in a C name address pair
15055
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15057
# This is the shared library runtime path variable.
15058
runpath_var=$runpath_var
15060
# This is the shared library path variable.
15061
shlibpath_var=$shlibpath_var
15063
# Is shlibpath searched before the hard-coded library search path?
15064
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15066
# How to hardcode a shared library path into an executable.
15067
hardcode_action=$hardcode_action_F77
15069
# Whether we should hardcode library paths into libraries.
15070
hardcode_into_libs=$hardcode_into_libs
15072
# Flag to hardcode \$libdir into a binary during linking.
15073
# This must work even if \$libdir does not exist.
15074
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15076
# If ld is used when linking, flag to hardcode \$libdir into
15077
# a binary during linking. This must work even if \$libdir does
15079
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15081
# Whether we need a single -rpath flag with a separated argument.
15082
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15084
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15085
# resulting binary.
15086
hardcode_direct=$hardcode_direct_F77
15088
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15089
# resulting binary.
15090
hardcode_minus_L=$hardcode_minus_L_F77
15092
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15093
# the resulting binary.
15094
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15096
# Set to yes if building a shared library automatically hardcodes DIR into the library
15097
# and all subsequent libraries and executables linked against it.
15098
hardcode_automatic=$hardcode_automatic_F77
15100
# Variables whose values should be saved in libtool wrapper scripts and
15101
# restored at relink time.
15102
variables_saved_for_relink="$variables_saved_for_relink"
15104
# Whether libtool must link a program against all its dependency libraries.
15105
link_all_deplibs=$link_all_deplibs_F77
15107
# Compile-time system search path for libraries
15108
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15110
# Run-time system search path for libraries
15111
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15113
# Fix the shell variable \$srcfile for the compiler.
15114
fix_srcfile_path="$fix_srcfile_path_F77"
15116
# Set to yes if exported symbols are required.
15117
always_export_symbols=$always_export_symbols_F77
15119
# The commands to list exported symbols.
15120
export_symbols_cmds=$lt_export_symbols_cmds_F77
15122
# The commands to extract the exported symbol list from a shared archive.
15123
extract_expsyms_cmds=$lt_extract_expsyms_cmds
15125
# Symbols that should not be listed in the preloaded symbols.
15126
exclude_expsyms=$lt_exclude_expsyms_F77
15128
# Symbols that must always be exported.
15129
include_expsyms=$lt_include_expsyms_F77
15131
# ### END LIBTOOL TAG CONFIG: $tagname
15137
# If there is no Makefile yet, we rely on a make rule to execute
15138
# `config.status --recheck' to rerun these tests and create the
15139
# libtool script then.
15140
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15141
if test -f "$ltmain_in"; then
15142
test -f Makefile && make "$ltmain"
15148
ac_cpp='$CPP $CPPFLAGS'
15149
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15150
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15151
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15161
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15165
# Source file extension for Java test sources.
15168
# Object file extension for compiled Java test sources.
15172
# Code to be used in simple compile tests
15173
lt_simple_compile_test_code="class foo {}\n"
15175
# Code to be used in simple link tests
15176
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15178
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15180
# If no C compiler was specified, use CC.
15183
# Allow CC to be a program name with arguments.
15187
# save warnings/boilerplate of simple test code
15188
ac_outfile=conftest.$ac_objext
15189
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15190
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15191
_lt_compiler_boilerplate=`cat conftest.err`
15194
ac_outfile=conftest.$ac_objext
15195
printf "$lt_simple_link_test_code" >conftest.$ac_ext
15196
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15197
_lt_linker_boilerplate=`cat conftest.err`
15201
# Allow CC to be a program name with arguments.
15206
for cc_temp in $compiler""; do
15208
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15209
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15214
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15217
# GCJ did not exist at the time GCC didn't implicitly link libc in.
15218
archive_cmds_need_lc_GCJ=no
15220
old_archive_cmds_GCJ=$old_archive_cmds
15223
## There is no encapsulation within the following macros, do not change
15224
## the running order or otherwise move them around unless you know exactly
15225
## what you are doing...
15227
lt_prog_compiler_no_builtin_flag_GCJ=
15229
if test "$GCC" = yes; then
15230
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15233
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15234
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15235
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15236
echo $ECHO_N "(cached) $ECHO_C" >&6
15238
lt_cv_prog_compiler_rtti_exceptions=no
15239
ac_outfile=conftest.$ac_objext
15240
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15241
lt_compiler_flag="-fno-rtti -fno-exceptions"
15242
# Insert the option either (1) after the last *FLAGS variable, or
15243
# (2) before a word containing "conftest.", or (3) at the end.
15244
# Note that $ac_compile itself does not contain backslashes and begins
15245
# with a dollar sign (not a hyphen), so the echo should work correctly.
15246
# The option is referenced via a variable to avoid confusing sed.
15247
lt_compile=`echo "$ac_compile" | $SED \
15248
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15249
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15250
-e 's:$: $lt_compiler_flag:'`
15251
(eval echo "\"\$as_me:15251: $lt_compile\"" >&5)
15252
(eval "$lt_compile" 2>conftest.err)
15254
cat conftest.err >&5
15255
echo "$as_me:15255: \$? = $ac_status" >&5
15256
if (exit $ac_status) && test -s "$ac_outfile"; then
15257
# The compiler can only warn and ignore the option if not recognized
15258
# So say no if there are warnings other than the usual output.
15259
$echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15260
$SED '/^$/d' conftest.err >conftest.er2
15261
if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15262
lt_cv_prog_compiler_rtti_exceptions=yes
15268
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15269
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15271
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15272
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15279
lt_prog_compiler_wl_GCJ=
15280
lt_prog_compiler_pic_GCJ=
15281
lt_prog_compiler_static_GCJ=
15283
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15284
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15286
if test "$GCC" = yes; then
15287
lt_prog_compiler_wl_GCJ='-Wl,'
15288
lt_prog_compiler_static_GCJ='-static'
15292
# All AIX code is PIC.
15293
if test "$host_cpu" = ia64; then
15294
# AIX 5 now supports IA64 processor
15295
lt_prog_compiler_static_GCJ='-Bstatic'
15300
# FIXME: we need at least 68020 code to build shared libraries, but
15301
# adding the `-m68020' flag to GCC prevents building anything better,
15303
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15306
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15307
# PIC is the default for these OSes.
15310
mingw* | pw32* | os2*)
15311
# This hack is so that the source file can tell whether it is being
15312
# built for inclusion in a dll (and should export symbols for example).
15313
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15316
darwin* | rhapsody*)
15317
# PIC is the default on this platform
15318
# Common symbols not allowed in MH_DYLIB files
15319
lt_prog_compiler_pic_GCJ='-fno-common'
15323
# Just because we use GCC doesn't mean we suddenly get shared libraries
15324
# on systems that don't support them.
15325
lt_prog_compiler_can_build_shared_GCJ=no
15330
if test -d /usr/nec; then
15331
lt_prog_compiler_pic_GCJ=-Kconform_pic
15336
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15337
# not for PA HP-UX.
15338
case "$host_cpu" in
15343
lt_prog_compiler_pic_GCJ='-fPIC'
15349
lt_prog_compiler_pic_GCJ='-fPIC'
15353
# PORTME Check for flag to pass linker flags through the system compiler.
15356
lt_prog_compiler_wl_GCJ='-Wl,'
15357
if test "$host_cpu" = ia64; then
15358
# AIX 5 now supports IA64 processor
15359
lt_prog_compiler_static_GCJ='-Bstatic'
15361
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15365
# PIC is the default on this platform
15366
# Common symbols not allowed in MH_DYLIB files
15367
case $cc_basename in
15369
lt_prog_compiler_pic_GCJ='-qnocommon'
15370
lt_prog_compiler_wl_GCJ='-Wl,'
15375
mingw* | pw32* | os2*)
15376
# This hack is so that the source file can tell whether it is being
15377
# built for inclusion in a dll (and should export symbols for example).
15378
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15381
hpux9* | hpux10* | hpux11*)
15382
lt_prog_compiler_wl_GCJ='-Wl,'
15383
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15384
# not for PA HP-UX.
15385
case "$host_cpu" in
15390
lt_prog_compiler_pic_GCJ='+Z'
15393
# Is there a better lt_prog_compiler_static that works with the bundled CC?
15394
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15397
irix5* | irix6* | nonstopux*)
15398
lt_prog_compiler_wl_GCJ='-Wl,'
15399
# PIC (with -KPIC) is the default.
15400
lt_prog_compiler_static_GCJ='-non_shared'
15404
lt_prog_compiler_pic_GCJ='-KPIC'
15405
lt_prog_compiler_static_GCJ='-Bstatic'
15409
case $cc_basename in
15411
lt_prog_compiler_wl_GCJ='-Wl,'
15412
lt_prog_compiler_pic_GCJ='-KPIC'
15413
lt_prog_compiler_static_GCJ='-static'
15415
pgcc* | pgf77* | pgf90*)
15416
# Portland Group compilers (*not* the Pentium gcc compiler,
15417
# which looks to be a dead project)
15418
lt_prog_compiler_wl_GCJ='-Wl,'
15419
lt_prog_compiler_pic_GCJ='-fpic'
15420
lt_prog_compiler_static_GCJ='-static'
15423
lt_prog_compiler_wl_GCJ='-Wl,'
15424
# All Alpha code is PIC.
15425
lt_prog_compiler_static_GCJ='-non_shared'
15430
osf3* | osf4* | osf5*)
15431
lt_prog_compiler_wl_GCJ='-Wl,'
15432
# All OSF/1 code is PIC.
15433
lt_prog_compiler_static_GCJ='-non_shared'
15437
lt_prog_compiler_pic_GCJ='-Kpic'
15438
lt_prog_compiler_static_GCJ='-dn'
15442
lt_prog_compiler_pic_GCJ='-KPIC'
15443
lt_prog_compiler_static_GCJ='-Bstatic'
15444
case $cc_basename in
15445
f77* | f90* | f95*)
15446
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15448
lt_prog_compiler_wl_GCJ='-Wl,';;
15453
lt_prog_compiler_wl_GCJ='-Qoption ld '
15454
lt_prog_compiler_pic_GCJ='-PIC'
15455
lt_prog_compiler_static_GCJ='-Bstatic'
15458
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15459
lt_prog_compiler_wl_GCJ='-Wl,'
15460
lt_prog_compiler_pic_GCJ='-KPIC'
15461
lt_prog_compiler_static_GCJ='-Bstatic'
15465
if test -d /usr/nec ;then
15466
lt_prog_compiler_pic_GCJ='-Kconform_pic'
15467
lt_prog_compiler_static_GCJ='-Bstatic'
15472
lt_prog_compiler_wl_GCJ='-Wl,'
15473
lt_prog_compiler_can_build_shared_GCJ=no
15477
lt_prog_compiler_pic_GCJ='-pic'
15478
lt_prog_compiler_static_GCJ='-Bstatic'
15482
lt_prog_compiler_can_build_shared_GCJ=no
15487
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15488
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15491
# Check to make sure the PIC flag actually works.
15493
if test -n "$lt_prog_compiler_pic_GCJ"; then
15495
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15496
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15497
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15498
echo $ECHO_N "(cached) $ECHO_C" >&6
15500
lt_prog_compiler_pic_works_GCJ=no
15501
ac_outfile=conftest.$ac_objext
15502
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15503
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15504
# Insert the option either (1) after the last *FLAGS variable, or
15505
# (2) before a word containing "conftest.", or (3) at the end.
15506
# Note that $ac_compile itself does not contain backslashes and begins
15507
# with a dollar sign (not a hyphen), so the echo should work correctly.
15508
# The option is referenced via a variable to avoid confusing sed.
15509
lt_compile=`echo "$ac_compile" | $SED \
15510
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15511
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15512
-e 's:$: $lt_compiler_flag:'`
15513
(eval echo "\"\$as_me:15513: $lt_compile\"" >&5)
15514
(eval "$lt_compile" 2>conftest.err)
15516
cat conftest.err >&5
15517
echo "$as_me:15517: \$? = $ac_status" >&5
15518
if (exit $ac_status) && test -s "$ac_outfile"; then
15519
# The compiler can only warn and ignore the option if not recognized
15520
# So say no if there are warnings other than the usual output.
15521
$echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15522
$SED '/^$/d' conftest.err >conftest.er2
15523
if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15524
lt_prog_compiler_pic_works_GCJ=yes
15530
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15531
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15533
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15534
case $lt_prog_compiler_pic_GCJ in
15536
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15539
lt_prog_compiler_pic_GCJ=
15540
lt_prog_compiler_can_build_shared_GCJ=no
15545
# For platforms which do not support PIC, -DPIC is meaningless:
15547
lt_prog_compiler_pic_GCJ=
15550
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15554
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15555
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15556
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15557
echo $ECHO_N "(cached) $ECHO_C" >&6
15559
lt_cv_prog_compiler_c_o_GCJ=no
15560
$rm -r conftest 2>/dev/null
15564
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15566
lt_compiler_flag="-o out/conftest2.$ac_objext"
15567
# Insert the option either (1) after the last *FLAGS variable, or
15568
# (2) before a word containing "conftest.", or (3) at the end.
15569
# Note that $ac_compile itself does not contain backslashes and begins
15570
# with a dollar sign (not a hyphen), so the echo should work correctly.
15571
lt_compile=`echo "$ac_compile" | $SED \
15572
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15573
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15574
-e 's:$: $lt_compiler_flag:'`
15575
(eval echo "\"\$as_me:15575: $lt_compile\"" >&5)
15576
(eval "$lt_compile" 2>out/conftest.err)
15578
cat out/conftest.err >&5
15579
echo "$as_me:15579: \$? = $ac_status" >&5
15580
if (exit $ac_status) && test -s out/conftest2.$ac_objext
15582
# The compiler can only warn and ignore the option if not recognized
15583
# So say no if there are warnings
15584
$echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
15585
$SED '/^$/d' out/conftest.err >out/conftest.er2
15586
if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15587
lt_cv_prog_compiler_c_o_GCJ=yes
15592
# SGI C++ compiler will create directory out/ii_files/ for
15593
# template instantiation
15594
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15595
$rm out/* && rmdir out
15601
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15602
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15605
hard_links="nottested"
15606
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15607
# do not overwrite the value of need_locks provided by the user
15608
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15609
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15612
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15614
ln conftest.a conftest.b 2>&5 || hard_links=no
15615
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15616
echo "$as_me:$LINENO: result: $hard_links" >&5
15617
echo "${ECHO_T}$hard_links" >&6
15618
if test "$hard_links" = no; then
15619
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15620
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15627
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15628
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15631
allow_undefined_flag_GCJ=
15632
enable_shared_with_static_runtimes_GCJ=no
15634
archive_expsym_cmds_GCJ=
15635
old_archive_From_new_cmds_GCJ=
15636
old_archive_from_expsyms_cmds_GCJ=
15637
export_dynamic_flag_spec_GCJ=
15638
whole_archive_flag_spec_GCJ=
15639
thread_safe_flag_spec_GCJ=
15640
hardcode_libdir_flag_spec_GCJ=
15641
hardcode_libdir_flag_spec_ld_GCJ=
15642
hardcode_libdir_separator_GCJ=
15643
hardcode_direct_GCJ=no
15644
hardcode_minus_L_GCJ=no
15645
hardcode_shlibpath_var_GCJ=unsupported
15646
link_all_deplibs_GCJ=unknown
15647
hardcode_automatic_GCJ=no
15649
module_expsym_cmds_GCJ=
15650
always_export_symbols_GCJ=no
15651
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15652
# include_expsyms should be a list of space-separated symbols to be *always*
15653
# included in the symbol list
15654
include_expsyms_GCJ=
15655
# exclude_expsyms can be an extended regexp of symbols to exclude
15656
# it will be wrapped by ` (' and `)$', so one must not match beginning or
15657
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15658
# as well as any symbol that contains `d'.
15659
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15660
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15661
# platforms (ab)use it in PIC code, but their linkers get confused if
15662
# the symbol is explicitly referenced. Since portable code cannot
15663
# rely on this symbol name, it's probably fine to never include it in
15664
# preloaded symbol tables.
15665
extract_expsyms_cmds=
15666
# Just being paranoid about ensuring that cc_basename is set.
15667
for cc_temp in $compiler""; do
15669
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15670
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15675
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15678
cygwin* | mingw* | pw32*)
15679
# FIXME: the MSVC++ port hasn't been tested in a loooong time
15680
# When not using gcc, we currently assume that we are using
15681
# Microsoft Visual C++.
15682
if test "$GCC" != yes; then
15692
if test "$with_gnu_ld" = yes; then
15693
# If archive_cmds runs LD, not CC, wlarc should be empty
15696
# Set some defaults for GNU ld with shared library support. These
15697
# are reset later if shared libraries are not supported. Putting them
15698
# here allows them to be overridden if necessary.
15699
runpath_var=LD_RUN_PATH
15700
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15701
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15702
# ancient GNU ld didn't support --whole-archive et. al.
15703
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15704
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15706
whole_archive_flag_spec_GCJ=
15708
supports_anon_versioning=no
15709
case `$LD -v 2>/dev/null` in
15710
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15711
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15712
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15713
*\ 2.11.*) ;; # other 2.11 versions
15714
*) supports_anon_versioning=yes ;;
15717
# See if GNU ld supports shared libraries.
15719
aix3* | aix4* | aix5*)
15720
# On AIX/PPC, the GNU linker is very broken
15721
if test "$host_cpu" != ia64; then
15725
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15726
*** to be unable to reliably create shared libraries on AIX.
15727
*** Therefore, libtool is disabling shared libraries support. If you
15728
*** really care for shared libraries, you may want to modify your PATH
15729
*** so that a non-GNU linker is found, and then restart.
15736
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)'
15737
hardcode_libdir_flag_spec_GCJ='-L$libdir'
15738
hardcode_minus_L_GCJ=yes
15740
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15741
# that the semantics of dynamic libraries on AmigaOS, at least up
15742
# to version 4, is to share data among multiple programs linked
15743
# with the same dynamic library. Since this doesn't match the
15744
# behavior of shared libraries on other platforms, we can't use
15750
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15751
allow_undefined_flag_GCJ=unsupported
15752
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15753
# support --undefined. This deserves some investigation. FIXME
15754
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15760
cygwin* | mingw* | pw32*)
15761
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15762
# as there is no search path for DLLs.
15763
hardcode_libdir_flag_spec_GCJ='-L$libdir'
15764
allow_undefined_flag_GCJ=unsupported
15765
always_export_symbols_GCJ=no
15766
enable_shared_with_static_runtimes_GCJ=yes
15767
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15769
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15770
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15771
# If the export-symbols file already is a .def file (1st line
15772
# is EXPORTS), use it as is; otherwise, prepend...
15773
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15774
cp $export_symbols $output_objdir/$soname.def;
15776
echo EXPORTS > $output_objdir/$soname.def;
15777
cat $export_symbols >> $output_objdir/$soname.def;
15779
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15786
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15788
case $cc_basename,$host_cpu in
15789
pgcc*) # Portland Group C compiler
15790
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'
15791
tmp_addflag=' $pic_flag'
15793
pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
15794
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'
15795
tmp_addflag=' $pic_flag -Mnomain' ;;
15796
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15797
tmp_addflag=' -i_dynamic' ;;
15798
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15799
tmp_addflag=' -i_dynamic -nofor_main' ;;
15800
ifc* | ifort*) # Intel Fortran compiler
15801
tmp_addflag=' -nofor_main' ;;
15803
archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15805
if test $supports_anon_versioning = yes; then
15806
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15807
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15808
$echo "local: *; };" >> $output_objdir/$libname.ver~
15809
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15817
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15818
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15821
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15822
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15827
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15831
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15832
*** create shared libraries on Solaris systems. Therefore, libtool
15833
*** is disabling shared libraries support. We urge you to upgrade GNU
15834
*** binutils to release 2.9.1 or newer. Another option is to modify
15835
*** your PATH or compiler configuration so that the native linker is
15836
*** used, and then restart.
15839
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15840
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15841
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15848
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15850
hardcode_direct_GCJ=yes
15851
hardcode_shlibpath_var_GCJ=no
15855
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15856
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15857
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15864
if test "$ld_shlibs_GCJ" = no; then
15866
hardcode_libdir_flag_spec_GCJ=
15867
export_dynamic_flag_spec_GCJ=
15868
whole_archive_flag_spec_GCJ=
15871
# PORTME fill in a description of your system's linker (not GNU ld)
15874
allow_undefined_flag_GCJ=unsupported
15875
always_export_symbols_GCJ=yes
15876
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'
15877
# Note: this linker hardcodes the directories in LIBPATH if there
15878
# are no directories specified by -L.
15879
hardcode_minus_L_GCJ=yes
15880
if test "$GCC" = yes && test -z "$link_static_flag"; then
15881
# Neither direct hardcoding nor static linking is supported with a
15883
hardcode_direct_GCJ=unsupported
15888
if test "$host_cpu" = ia64; then
15889
# On IA64, the linker does run time linking by default, so we don't
15890
# have to do anything special.
15891
aix_use_runtimelinking=no
15892
exp_sym_flag='-Bexport'
15895
# If we're using GNU nm, then we don't want the "-C" option.
15896
# -C means demangle to AIX nm, but means don't demangle with GNU nm
15897
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15898
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'
15900
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'
15902
aix_use_runtimelinking=no
15904
# Test if we are trying to use run time linking or normal
15905
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15906
# need to do runtime linking.
15907
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15908
for ld_flag in $LDFLAGS; do
15909
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15910
aix_use_runtimelinking=yes
15916
exp_sym_flag='-bexport'
15917
no_entry_flag='-bnoentry'
15920
# When large executables or shared objects are built, AIX ld can
15921
# have problems creating the table of contents. If linking a library
15922
# or program results in "error TOC overflow" add -mminimal-toc to
15923
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15924
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15926
archive_cmds_GCJ=''
15927
hardcode_direct_GCJ=yes
15928
hardcode_libdir_separator_GCJ=':'
15929
link_all_deplibs_GCJ=yes
15931
if test "$GCC" = yes; then
15932
case $host_os in aix4.[012]|aix4.[012].*)
15933
# We only want to do this on AIX 4.2 and lower, the check
15934
# below for broken collect2 doesn't work under 4.3+
15935
collect2name=`${CC} -print-prog-name=collect2`
15936
if test -f "$collect2name" && \
15937
strings "$collect2name" | grep resolve_lib_name >/dev/null
15939
# We have reworked collect2
15940
hardcode_direct_GCJ=yes
15942
# We have old collect2
15943
hardcode_direct_GCJ=unsupported
15944
# It fails to find uninstalled libraries when the uninstalled
15945
# path is not listed in the libpath. Setting hardcode_minus_L
15946
# to unsupported forces relinking
15947
hardcode_minus_L_GCJ=yes
15948
hardcode_libdir_flag_spec_GCJ='-L$libdir'
15949
hardcode_libdir_separator_GCJ=
15952
shared_flag='-shared'
15953
if test "$aix_use_runtimelinking" = yes; then
15954
shared_flag="$shared_flag "'${wl}-G'
15958
if test "$host_cpu" = ia64; then
15959
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15960
# chokes on -Wl,-G. The following line is correct:
15963
if test "$aix_use_runtimelinking" = yes; then
15964
shared_flag='${wl}-G'
15966
shared_flag='${wl}-bM:SRE'
15971
# It seems that -bexpall does not export symbols beginning with
15972
# underscore (_), so it is better to generate a list of symbols to export.
15973
always_export_symbols_GCJ=yes
15974
if test "$aix_use_runtimelinking" = yes; then
15975
# Warning - without using the other runtime loading flags (-brtl),
15976
# -berok will link without error, but may produce a broken library.
15977
allow_undefined_flag_GCJ='-berok'
15978
# Determine the default libpath from the value encoded in an empty executable.
15979
cat >conftest.$ac_ext <<_ACEOF
15982
cat confdefs.h >>conftest.$ac_ext
15983
cat >>conftest.$ac_ext <<_ACEOF
15984
/* end confdefs.h. */
15994
rm -f conftest.$ac_objext conftest$ac_exeext
15995
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15996
(eval $ac_link) 2>conftest.er1
15998
grep -v '^ *+' conftest.er1 >conftest.err
16000
cat conftest.err >&5
16001
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16002
(exit $ac_status); } &&
16003
{ ac_try='test -z "$ac_c_werror_flag"
16004
|| test ! -s conftest.err'
16005
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16006
(eval $ac_try) 2>&5
16008
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009
(exit $ac_status); }; } &&
16010
{ ac_try='test -s conftest$ac_exeext'
16011
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16012
(eval $ac_try) 2>&5
16014
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16015
(exit $ac_status); }; }; then
16017
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16019
# Check for a 64-bit object if we didn't find anything.
16020
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16023
echo "$as_me: failed program was:" >&5
16024
sed 's/^/| /' conftest.$ac_ext >&5
16027
rm -f conftest.err conftest.$ac_objext \
16028
conftest$ac_exeext conftest.$ac_ext
16029
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16031
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16032
archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16034
if test "$host_cpu" = ia64; then
16035
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16036
allow_undefined_flag_GCJ="-z nodefs"
16037
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16039
# Determine the default libpath from the value encoded in an empty executable.
16040
cat >conftest.$ac_ext <<_ACEOF
16043
cat confdefs.h >>conftest.$ac_ext
16044
cat >>conftest.$ac_ext <<_ACEOF
16045
/* end confdefs.h. */
16055
rm -f conftest.$ac_objext conftest$ac_exeext
16056
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16057
(eval $ac_link) 2>conftest.er1
16059
grep -v '^ *+' conftest.er1 >conftest.err
16061
cat conftest.err >&5
16062
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16063
(exit $ac_status); } &&
16064
{ ac_try='test -z "$ac_c_werror_flag"
16065
|| test ! -s conftest.err'
16066
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16067
(eval $ac_try) 2>&5
16069
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070
(exit $ac_status); }; } &&
16071
{ ac_try='test -s conftest$ac_exeext'
16072
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16073
(eval $ac_try) 2>&5
16075
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16076
(exit $ac_status); }; }; then
16078
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16080
# Check for a 64-bit object if we didn't find anything.
16081
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16084
echo "$as_me: failed program was:" >&5
16085
sed 's/^/| /' conftest.$ac_ext >&5
16088
rm -f conftest.err conftest.$ac_objext \
16089
conftest$ac_exeext conftest.$ac_ext
16090
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16092
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16093
# Warning - without using the other run time loading flags,
16094
# -berok will link without error, but may produce a broken library.
16095
no_undefined_flag_GCJ=' ${wl}-bernotok'
16096
allow_undefined_flag_GCJ=' ${wl}-berok'
16097
# -bexpall does not export symbols beginning with underscore (_)
16098
always_export_symbols_GCJ=yes
16099
# Exported symbols can be pulled into shared objects from archives
16100
whole_archive_flag_spec_GCJ=' '
16101
archive_cmds_need_lc_GCJ=yes
16102
# This is similar to how AIX traditionally builds it's shared libraries.
16103
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16109
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)'
16110
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16111
hardcode_minus_L_GCJ=yes
16112
# see comment about different semantics on the GNU ld section
16117
export_dynamic_flag_spec_GCJ=-rdynamic
16120
cygwin* | mingw* | pw32*)
16121
# When not using gcc, we currently assume that we are using
16122
# Microsoft Visual C++.
16123
# hardcode_libdir_flag_spec is actually meaningless, as there is
16124
# no search path for DLLs.
16125
hardcode_libdir_flag_spec_GCJ=' '
16126
allow_undefined_flag_GCJ=unsupported
16127
# Tell ltmain to make .lib files, not .a files.
16129
# Tell ltmain to make .dll files, not .so files.
16131
# FIXME: Setting linknames here is a bad hack.
16132
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16133
# The linker will automatically build a .lib file if we build a DLL.
16134
old_archive_From_new_cmds_GCJ='true'
16135
# FIXME: Should let the user specify the lib program.
16136
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16137
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16138
enable_shared_with_static_runtimes_GCJ=yes
16141
darwin* | rhapsody*)
16143
rhapsody* | darwin1.[012])
16144
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16147
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16148
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16150
case ${MACOSX_DEPLOYMENT_TARGET} in
16152
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16155
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16161
archive_cmds_need_lc_GCJ=no
16162
hardcode_direct_GCJ=no
16163
hardcode_automatic_GCJ=yes
16164
hardcode_shlibpath_var_GCJ=unsupported
16165
whole_archive_flag_spec_GCJ=''
16166
link_all_deplibs_GCJ=yes
16167
if test "$GCC" = yes ; then
16168
output_verbose_link_cmd='echo'
16169
archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16170
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16171
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16172
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16173
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}'
16175
case $cc_basename in
16177
output_verbose_link_cmd='echo'
16178
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16179
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16180
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16181
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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16182
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}'
16192
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16193
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16194
hardcode_shlibpath_var_GCJ=no
16201
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16202
# support. Future versions do this automatically, but an explicit c++rt0.o
16203
# does not break anything, and helps significantly (at the cost of a little
16206
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16207
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16208
hardcode_direct_GCJ=yes
16209
hardcode_shlibpath_var_GCJ=no
16212
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
16214
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16215
hardcode_direct_GCJ=yes
16216
hardcode_minus_L_GCJ=yes
16217
hardcode_shlibpath_var_GCJ=no
16220
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16221
freebsd* | kfreebsd*-gnu | dragonfly*)
16222
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16223
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16224
hardcode_direct_GCJ=yes
16225
hardcode_shlibpath_var_GCJ=no
16229
if test "$GCC" = yes; then
16230
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'
16232
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'
16234
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16235
hardcode_libdir_separator_GCJ=:
16236
hardcode_direct_GCJ=yes
16238
# hardcode_minus_L: Not really in the search PATH,
16239
# but as the default location of the library.
16240
hardcode_minus_L_GCJ=yes
16241
export_dynamic_flag_spec_GCJ='${wl}-E'
16245
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16246
case "$host_cpu" in
16248
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16251
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16255
case "$host_cpu" in
16257
archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16260
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16264
if test "$with_gnu_ld" = no; then
16265
case "$host_cpu" in
16267
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16268
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16269
hardcode_libdir_separator_GCJ=:
16270
hardcode_direct_GCJ=no
16271
hardcode_shlibpath_var_GCJ=no
16274
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16275
hardcode_direct_GCJ=no
16276
hardcode_shlibpath_var_GCJ=no
16278
# hardcode_minus_L: Not really in the search PATH,
16279
# but as the default location of the library.
16280
hardcode_minus_L_GCJ=yes
16283
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16284
hardcode_libdir_separator_GCJ=:
16285
hardcode_direct_GCJ=yes
16286
export_dynamic_flag_spec_GCJ='${wl}-E'
16288
# hardcode_minus_L: Not really in the search PATH,
16289
# but as the default location of the library.
16290
hardcode_minus_L_GCJ=yes
16296
irix5* | irix6* | nonstopux*)
16297
if test "$GCC" = yes; then
16298
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'
16300
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'
16301
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16303
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16304
hardcode_libdir_separator_GCJ=:
16305
link_all_deplibs_GCJ=yes
16309
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16310
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16312
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16314
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16315
hardcode_direct_GCJ=yes
16316
hardcode_shlibpath_var_GCJ=no
16320
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16321
hardcode_direct_GCJ=yes
16322
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16323
hardcode_libdir_separator_GCJ=:
16324
hardcode_shlibpath_var_GCJ=no
16328
hardcode_direct_GCJ=yes
16329
hardcode_shlibpath_var_GCJ=no
16330
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16331
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16332
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16333
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16334
export_dynamic_flag_spec_GCJ='${wl}-E'
16337
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16338
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16339
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16342
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16343
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16350
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16351
hardcode_minus_L_GCJ=yes
16352
allow_undefined_flag_GCJ=unsupported
16353
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'
16354
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16358
if test "$GCC" = yes; then
16359
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16360
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'
16362
allow_undefined_flag_GCJ=' -expect_unresolved \*'
16363
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'
16365
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16366
hardcode_libdir_separator_GCJ=:
16369
osf4* | osf5*) # as osf3* with the addition of -msym flag
16370
if test "$GCC" = yes; then
16371
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16372
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'
16373
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16375
allow_undefined_flag_GCJ=' -expect_unresolved \*'
16376
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'
16377
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~
16378
$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'
16380
# Both c and cxx compiler support -rpath directly
16381
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16383
hardcode_libdir_separator_GCJ=:
16387
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16388
hardcode_shlibpath_var_GCJ=no
16389
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16390
runpath_var=LD_RUN_PATH
16391
hardcode_runpath_var=yes
16395
no_undefined_flag_GCJ=' -z text'
16396
if test "$GCC" = yes; then
16398
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16399
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16400
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16403
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16404
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16405
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16407
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16408
hardcode_shlibpath_var_GCJ=no
16410
solaris2.[0-5] | solaris2.[0-5].*) ;;
16412
# The compiler driver will combine linker options so we
16413
# cannot just pass the convience library names through
16414
# without $wl, iff we do not link with $LD.
16415
# Luckily, gcc supports the same syntax we need for Sun Studio.
16416
# Supported since Solaris 2.6 (maybe 2.5.1?)
16419
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16421
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16424
link_all_deplibs_GCJ=yes
16428
if test "x$host_vendor" = xsequent; then
16429
# Use $CC to link under sequent, because it throws in some extra .o
16430
# files that make .init and .fini sections work.
16431
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16433
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16435
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16436
hardcode_direct_GCJ=yes
16437
hardcode_minus_L_GCJ=yes
16438
hardcode_shlibpath_var_GCJ=no
16442
case $host_vendor in
16444
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16445
hardcode_direct_GCJ=yes # is this really true???
16448
## LD is ld it makes a PLAMLIB
16449
## CC just makes a GrossModule.
16450
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16451
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16452
hardcode_direct_GCJ=no
16455
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16456
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16459
runpath_var='LD_RUN_PATH'
16460
hardcode_shlibpath_var_GCJ=no
16464
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16465
hardcode_shlibpath_var_GCJ=no
16466
export_dynamic_flag_spec_GCJ='-Bexport'
16470
if test -d /usr/nec; then
16471
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16472
hardcode_shlibpath_var_GCJ=no
16473
runpath_var=LD_RUN_PATH
16474
hardcode_runpath_var=yes
16480
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16481
hardcode_direct_GCJ=yes
16482
hardcode_minus_L_GCJ=no
16483
hardcode_shlibpath_var_GCJ=no
16484
hardcode_runpath_var=yes
16485
runpath_var=LD_RUN_PATH
16488
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16489
no_undefined_flag_GCJ='${wl}-z ${wl}text'
16490
if test "$GCC" = yes; then
16491
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16493
archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16495
runpath_var='LD_RUN_PATH'
16496
hardcode_shlibpath_var_GCJ=no
16500
no_undefined_flag_GCJ=' -z text'
16501
# $CC -shared without GNU ld will not create a library from C++
16502
# object files and a static libstdc++, better avoid it by now
16503
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16504
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16505
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16506
hardcode_libdir_flag_spec_GCJ=
16507
hardcode_shlibpath_var_GCJ=no
16508
runpath_var='LD_RUN_PATH'
16512
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16513
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16514
hardcode_shlibpath_var_GCJ=no
16523
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16524
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16525
test "$ld_shlibs_GCJ" = no && can_build_shared=no
16527
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16528
if test "$GCC" = yes; then
16529
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16533
# Do we need to explicitly link libc?
16535
case "x$archive_cmds_need_lc_GCJ" in
16537
# Assume -lc should be added
16538
archive_cmds_need_lc_GCJ=yes
16540
if test "$enable_shared" = yes && test "$GCC" = yes; then
16541
case $archive_cmds_GCJ in
16543
# FIXME: we may have to deal with multi-command sequences.
16546
# Test whether the compiler implicitly links with -lc since on some
16547
# systems, -lgcc has to come before -lc. If gcc already passes -lc
16548
# to ld, don't add -lc before -lgcc.
16549
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16550
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16552
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16554
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16555
(eval $ac_compile) 2>&5
16557
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558
(exit $ac_status); } 2>conftest.err; then
16561
libobjs=conftest.$ac_objext
16563
wl=$lt_prog_compiler_wl_GCJ
16569
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16570
allow_undefined_flag_GCJ=
16571
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16572
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16574
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16575
(exit $ac_status); }
16577
archive_cmds_need_lc_GCJ=no
16579
archive_cmds_need_lc_GCJ=yes
16581
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16583
cat conftest.err 1>&5
16586
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16587
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16594
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16595
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16596
library_names_spec=
16597
libname_spec='lib$name'
16601
postuninstall_cmds=
16605
shlibpath_overrides_runpath=unknown
16607
dynamic_linker="$host_os ld.so"
16608
sys_lib_dlsearch_path_spec="/lib /usr/lib"
16609
if test "$GCC" = yes; then
16610
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16611
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16612
# if the path contains ";" then we assume it to be the separator
16613
# otherwise default to the standard path separator (i.e. ":") - it is
16614
# assumed that no part of a normal pathname contains ";" but that should
16615
# okay in the real world where ";" in dirpaths is itself problematic.
16616
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16618
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16621
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16623
need_lib_prefix=unknown
16624
hardcode_into_libs=no
16626
# when you set need_version to no, make sure it does not cause -set_version
16627
# flags to be left without arguments
16628
need_version=unknown
16633
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16634
shlibpath_var=LIBPATH
16636
# AIX 3 has no versioning support, so we append a major version to the name.
16637
soname_spec='${libname}${release}${shared_ext}$major'
16644
hardcode_into_libs=yes
16645
if test "$host_cpu" = ia64; then
16646
# AIX 5 supports IA64
16647
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16648
shlibpath_var=LD_LIBRARY_PATH
16650
# With GCC up to 2.95.x, collect2 would create an import file
16651
# for dependence libraries. The import file would start with
16652
# the line `#! .'. This would cause the generated library to
16653
# depend on `.', always an invalid library. This was fixed in
16654
# development snapshots of GCC prior to 3.0.
16656
aix4 | aix4.[01] | aix4.[01].*)
16657
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16659
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16662
can_build_shared=no
16666
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16667
# soname into executable. Probably we can add versioning support to
16668
# collect2, so additional links can be useful in future.
16669
if test "$aix_use_runtimelinking" = yes; then
16670
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
16671
# instead of lib<name>.a to let people know that these are not
16672
# typical AIX shared libraries.
16673
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16675
# We preserve .a as extension for shared libraries through AIX4.2
16676
# and later when we are not doing run time linking.
16677
library_names_spec='${libname}${release}.a $libname.a'
16678
soname_spec='${libname}${release}${shared_ext}$major'
16680
shlibpath_var=LIBPATH
16685
library_names_spec='$libname.ixlibrary $libname.a'
16686
# Create ${libname}_ixlibrary.a entries in /sys/libs.
16687
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'
16691
library_names_spec='${libname}${shared_ext}'
16692
dynamic_linker="$host_os ld.so"
16693
shlibpath_var=LIBRARY_PATH
16699
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16700
soname_spec='${libname}${release}${shared_ext}$major'
16701
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16702
shlibpath_var=LD_LIBRARY_PATH
16703
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16704
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16705
# the default ld.so.conf also contains /usr/contrib/lib and
16706
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16707
# libtool to hard-code these into programs
16710
cygwin* | mingw* | pw32*)
16711
version_type=windows
16716
case $GCC,$host_os in
16717
yes,cygwin* | yes,mingw* | yes,pw32*)
16718
library_names_spec='$libname.dll.a'
16719
# DLL is installed to $(libdir)/../bin by postinstall_cmds
16720
postinstall_cmds='base_file=`basename \${file}`~
16721
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16722
dldir=$destdir/`dirname \$dlpath`~
16723
test -d \$dldir || mkdir -p \$dldir~
16724
$install_prog $dir/$dlname \$dldir/$dlname'
16725
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16726
dlpath=$dir/\$dldll~
16728
shlibpath_overrides_runpath=yes
16732
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
16733
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16734
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16737
# MinGW DLLs use traditional 'lib' prefix
16738
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16739
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16740
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16741
# It is most probably a Windows format PATH printed by
16742
# mingw gcc, but we are running on Cygwin. Gcc prints its search
16743
# path with ; separators, and with drive letters. We can handle the
16744
# drive letters (cygwin fileutils understands them), so leave them,
16745
# especially as we might pass files found there to a mingw objdump,
16746
# which wouldn't understand a cygwinified path. Ahh.
16747
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16749
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16753
# pw32 DLLs use 'pw' prefix rather than 'lib'
16754
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16760
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16763
dynamic_linker='Win32 ld.exe'
16764
# FIXME: first we should search . and the directory the executable is in
16768
darwin* | rhapsody*)
16769
dynamic_linker="$host_os dyld"
16770
version_type=darwin
16773
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16774
soname_spec='${libname}${release}${major}$shared_ext'
16775
shlibpath_overrides_runpath=yes
16776
shlibpath_var=DYLD_LIBRARY_PATH
16777
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16778
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16779
if test "$GCC" = yes; then
16780
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16782
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16784
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16791
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16792
soname_spec='${libname}${release}${shared_ext}$major'
16793
shlibpath_var=LD_LIBRARY_PATH
16804
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16805
soname_spec='${libname}${release}${shared_ext}$major'
16806
shlibpath_var=LD_LIBRARY_PATH
16807
shlibpath_overrides_runpath=no
16808
hardcode_into_libs=yes
16809
dynamic_linker='GNU ld.so'
16812
freebsd* | dragonfly*)
16813
# DragonFly does not have aout. When/if they implement a new
16814
# versioning mechanism, adjust this.
16815
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16816
version_type=freebsd-$objformat
16817
case $version_type in
16819
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16824
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16828
shlibpath_var=LD_LIBRARY_PATH
16831
shlibpath_overrides_runpath=yes
16833
freebsd3.[01]* | freebsdelf3.[01]*)
16834
shlibpath_overrides_runpath=yes
16835
hardcode_into_libs=yes
16838
shlibpath_overrides_runpath=no
16839
hardcode_into_libs=yes
16848
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16849
soname_spec='${libname}${release}${shared_ext}$major'
16850
shlibpath_var=LD_LIBRARY_PATH
16851
hardcode_into_libs=yes
16854
hpux9* | hpux10* | hpux11*)
16855
# Give a soname corresponding to the major version so that dld.sl refuses to
16856
# link against other versions.
16860
case "$host_cpu" in
16863
hardcode_into_libs=yes
16864
dynamic_linker="$host_os dld.so"
16865
shlibpath_var=LD_LIBRARY_PATH
16866
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16867
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16868
soname_spec='${libname}${release}${shared_ext}$major'
16869
if test "X$HPUX_IA64_MODE" = X32; then
16870
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16872
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16874
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16878
hardcode_into_libs=yes
16879
dynamic_linker="$host_os dld.sl"
16880
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16881
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16882
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16883
soname_spec='${libname}${release}${shared_ext}$major'
16884
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16885
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16889
dynamic_linker="$host_os dld.sl"
16890
shlibpath_var=SHLIB_PATH
16891
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16892
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16893
soname_spec='${libname}${release}${shared_ext}$major'
16896
# HP-UX runs *really* slowly unless shared libraries are mode 555.
16897
postinstall_cmds='chmod 555 $lib'
16900
irix5* | irix6* | nonstopux*)
16902
nonstopux*) version_type=nonstopux ;;
16904
if test "$lt_cv_prog_gnu_ld" = yes; then
16912
soname_spec='${libname}${release}${shared_ext}$major'
16913
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16915
irix5* | nonstopux*)
16916
libsuff= shlibsuff=
16919
case $LD in # libtool.m4 will add one of these switches to LD
16920
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16921
libsuff= shlibsuff= libmagic=32-bit;;
16922
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16923
libsuff=32 shlibsuff=N32 libmagic=N32;;
16924
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16925
libsuff=64 shlibsuff=64 libmagic=64-bit;;
16926
*) libsuff= shlibsuff= libmagic=never-match;;
16930
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16931
shlibpath_overrides_runpath=no
16932
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16933
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16934
hardcode_into_libs=yes
16937
# No shared lib support for Linux oldld, aout, or coff.
16938
linux*oldld* | linux*aout* | linux*coff*)
16942
# This must be Linux ELF.
16947
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16948
soname_spec='${libname}${release}${shared_ext}$major'
16949
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16950
shlibpath_var=LD_LIBRARY_PATH
16951
shlibpath_overrides_runpath=no
16952
# This implies no fast_install, which is unacceptable.
16953
# Some rework will be needed to allow for fast_install
16954
# before this can be enabled.
16955
hardcode_into_libs=yes
16957
# find out which ABI we are using
16959
case "$host_cpu" in
16960
x86_64*|s390x*|powerpc64*)
16961
echo '#line 16961 "configure"' > conftest.$ac_ext
16962
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16963
(eval $ac_compile) 2>&5
16965
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16966
(exit $ac_status); }; then
16967
case `/usr/bin/file conftest.$ac_objext` in
16970
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
16978
# Append ld.so.conf contents to the search path
16979
if test -f /etc/ld.so.conf; then
16980
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16981
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
16984
# We used to test for /lib/ld.so.1 and disable shared libraries on
16985
# powerpc, because MkLinux only supported shared libraries with the
16986
# GNU dynamic linker. Since this was broken with cross compilers,
16987
# most powerpc-linux boxes support dynamic linking these days and
16988
# people can always --disable-shared, the test was removed, and we
16989
# assume the GNU/Linux dynamic linker is in use.
16990
dynamic_linker='GNU/Linux ld.so'
16997
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16998
soname_spec='${libname}${release}${shared_ext}$major'
16999
shlibpath_var=LD_LIBRARY_PATH
17000
shlibpath_overrides_runpath=no
17001
hardcode_into_libs=yes
17002
dynamic_linker='GNU ld.so'
17009
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17010
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17011
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17012
dynamic_linker='NetBSD (a.out) ld.so'
17014
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17015
soname_spec='${libname}${release}${shared_ext}$major'
17016
dynamic_linker='NetBSD ld.elf_so'
17018
shlibpath_var=LD_LIBRARY_PATH
17019
shlibpath_overrides_runpath=yes
17020
hardcode_into_libs=yes
17025
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17026
shlibpath_var=LD_LIBRARY_PATH
17027
shlibpath_overrides_runpath=yes
17034
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17035
soname_spec='${libname}${release}${shared_ext}$major'
17036
shlibpath_var=LD_LIBRARY_PATH
17037
shlibpath_overrides_runpath=yes
17043
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17045
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17046
*) need_version=no ;;
17048
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17049
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17050
shlibpath_var=LD_LIBRARY_PATH
17051
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17053
openbsd2.[89] | openbsd2.[89].*)
17054
shlibpath_overrides_runpath=no
17057
shlibpath_overrides_runpath=yes
17061
shlibpath_overrides_runpath=yes
17066
libname_spec='$name'
17069
library_names_spec='$libname${shared_ext} $libname.a'
17070
dynamic_linker='OS/2 ld.exe'
17071
shlibpath_var=LIBPATH
17074
osf3* | osf4* | osf5*)
17078
soname_spec='${libname}${release}${shared_ext}$major'
17079
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17080
shlibpath_var=LD_LIBRARY_PATH
17081
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17082
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17087
soname_spec='${libname}${release}${shared_ext}$major'
17088
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17089
shlibpath_var=LD_LIBRARY_PATH
17096
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17097
soname_spec='${libname}${release}${shared_ext}$major'
17098
shlibpath_var=LD_LIBRARY_PATH
17099
shlibpath_overrides_runpath=yes
17100
hardcode_into_libs=yes
17101
# ldd complains unless libraries are executable
17102
postinstall_cmds='chmod +x $lib'
17107
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17108
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17109
shlibpath_var=LD_LIBRARY_PATH
17110
shlibpath_overrides_runpath=yes
17111
if test "$with_gnu_ld" = yes; then
17117
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17119
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17120
soname_spec='${libname}${release}${shared_ext}$major'
17121
shlibpath_var=LD_LIBRARY_PATH
17122
case $host_vendor in
17124
shlibpath_overrides_runpath=no
17126
export_dynamic_flag_spec='${wl}-Blargedynsym'
17127
runpath_var=LD_RUN_PATH
17135
shlibpath_overrides_runpath=no
17136
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17142
if test -d /usr/nec ;then
17144
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17145
soname_spec='$libname${shared_ext}.$major'
17146
shlibpath_var=LD_LIBRARY_PATH
17152
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17153
soname_spec='${libname}${release}${shared_ext}$major'
17154
shlibpath_var=LD_LIBRARY_PATH
17161
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17162
echo "${ECHO_T}$dynamic_linker" >&6
17163
test "$dynamic_linker" = no && can_build_shared=no
17165
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17166
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17167
hardcode_action_GCJ=
17168
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17169
test -n "$runpath_var_GCJ" || \
17170
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17172
# We can hardcode non-existant directories.
17173
if test "$hardcode_direct_GCJ" != no &&
17174
# If the only mechanism to avoid hardcoding is shlibpath_var, we
17175
# have to relink, otherwise we might link with an installed library
17176
# when we should be linking with a yet-to-be-installed one
17177
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17178
test "$hardcode_minus_L_GCJ" != no; then
17179
# Linking always hardcodes the temporary library directory.
17180
hardcode_action_GCJ=relink
17182
# We can link without hardcoding, and we can hardcode nonexisting dirs.
17183
hardcode_action_GCJ=immediate
17186
# We cannot hardcode anything, or else we can only hardcode existing
17188
hardcode_action_GCJ=unsupported
17190
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17191
echo "${ECHO_T}$hardcode_action_GCJ" >&6
17193
if test "$hardcode_action_GCJ" = relink; then
17194
# Fast installation is not supported
17195
enable_fast_install=no
17196
elif test "$shlibpath_overrides_runpath" = yes ||
17197
test "$enable_shared" = no; then
17198
# Fast installation is not necessary
17199
enable_fast_install=needless
17204
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17205
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17206
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17207
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17208
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17209
echo "$as_me:$LINENO: result: yes" >&5
17210
echo "${ECHO_T}yes" >&6
17212
# FIXME - insert some real tests, host_os isn't really good enough
17215
if test -n "$STRIP" ; then
17216
striplib="$STRIP -x"
17217
echo "$as_me:$LINENO: result: yes" >&5
17218
echo "${ECHO_T}yes" >&6
17220
echo "$as_me:$LINENO: result: no" >&5
17221
echo "${ECHO_T}no" >&6
17225
echo "$as_me:$LINENO: result: no" >&5
17226
echo "${ECHO_T}no" >&6
17231
if test "x$enable_dlopen" != xyes; then
17232
enable_dlopen=unknown
17233
enable_dlopen_self=unknown
17234
enable_dlopen_self_static=unknown
17241
lt_cv_dlopen="load_add_on"
17243
lt_cv_dlopen_self=yes
17247
lt_cv_dlopen="LoadLibrary"
17252
lt_cv_dlopen="dlopen"
17257
# if libdl is installed we need to link against it
17258
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17259
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17260
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17261
echo $ECHO_N "(cached) $ECHO_C" >&6
17263
ac_check_lib_save_LIBS=$LIBS
17265
cat >conftest.$ac_ext <<_ACEOF
17268
cat confdefs.h >>conftest.$ac_ext
17269
cat >>conftest.$ac_ext <<_ACEOF
17270
/* end confdefs.h. */
17272
/* Override any gcc2 internal prototype to avoid an error. */
17276
/* We use char because int might match the return type of a gcc2
17277
builtin and then its argument prototype would still apply. */
17287
rm -f conftest.$ac_objext conftest$ac_exeext
17288
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17289
(eval $ac_link) 2>conftest.er1
17291
grep -v '^ *+' conftest.er1 >conftest.err
17293
cat conftest.err >&5
17294
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17295
(exit $ac_status); } &&
17296
{ ac_try='test -z "$ac_c_werror_flag"
17297
|| test ! -s conftest.err'
17298
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17299
(eval $ac_try) 2>&5
17301
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302
(exit $ac_status); }; } &&
17303
{ ac_try='test -s conftest$ac_exeext'
17304
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17305
(eval $ac_try) 2>&5
17307
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17308
(exit $ac_status); }; }; then
17309
ac_cv_lib_dl_dlopen=yes
17311
echo "$as_me: failed program was:" >&5
17312
sed 's/^/| /' conftest.$ac_ext >&5
17314
ac_cv_lib_dl_dlopen=no
17316
rm -f conftest.err conftest.$ac_objext \
17317
conftest$ac_exeext conftest.$ac_ext
17318
LIBS=$ac_check_lib_save_LIBS
17320
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17321
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17322
if test $ac_cv_lib_dl_dlopen = yes; then
17323
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17326
lt_cv_dlopen="dyld"
17328
lt_cv_dlopen_self=yes
17335
echo "$as_me:$LINENO: checking for shl_load" >&5
17336
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17337
if test "${ac_cv_func_shl_load+set}" = set; then
17338
echo $ECHO_N "(cached) $ECHO_C" >&6
17340
cat >conftest.$ac_ext <<_ACEOF
17343
cat confdefs.h >>conftest.$ac_ext
17344
cat >>conftest.$ac_ext <<_ACEOF
17345
/* end confdefs.h. */
17346
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17347
For example, HP-UX 11i <limits.h> declares gettimeofday. */
17348
#define shl_load innocuous_shl_load
17350
/* System header to define __stub macros and hopefully few prototypes,
17351
which can conflict with char shl_load (); below.
17352
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17353
<limits.h> exists even on freestanding compilers. */
17356
# include <limits.h>
17358
# include <assert.h>
17363
/* Override any gcc2 internal prototype to avoid an error. */
17368
/* We use char because int might match the return type of a gcc2
17369
builtin and then its argument prototype would still apply. */
17371
/* The GNU C library defines this for functions which it implements
17372
to always fail with ENOSYS. Some functions are actually named
17373
something starting with __ and the normal name is an alias. */
17374
#if defined (__stub_shl_load) || defined (__stub___shl_load)
17377
char (*f) () = shl_load;
17386
return f != shl_load;
17391
rm -f conftest.$ac_objext conftest$ac_exeext
17392
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17393
(eval $ac_link) 2>conftest.er1
17395
grep -v '^ *+' conftest.er1 >conftest.err
17397
cat conftest.err >&5
17398
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399
(exit $ac_status); } &&
17400
{ ac_try='test -z "$ac_c_werror_flag"
17401
|| test ! -s conftest.err'
17402
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17403
(eval $ac_try) 2>&5
17405
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406
(exit $ac_status); }; } &&
17407
{ ac_try='test -s conftest$ac_exeext'
17408
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17409
(eval $ac_try) 2>&5
17411
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17412
(exit $ac_status); }; }; then
17413
ac_cv_func_shl_load=yes
17415
echo "$as_me: failed program was:" >&5
17416
sed 's/^/| /' conftest.$ac_ext >&5
17418
ac_cv_func_shl_load=no
17420
rm -f conftest.err conftest.$ac_objext \
17421
conftest$ac_exeext conftest.$ac_ext
17423
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17424
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17425
if test $ac_cv_func_shl_load = yes; then
17426
lt_cv_dlopen="shl_load"
17428
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17429
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17430
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17431
echo $ECHO_N "(cached) $ECHO_C" >&6
17433
ac_check_lib_save_LIBS=$LIBS
17435
cat >conftest.$ac_ext <<_ACEOF
17438
cat confdefs.h >>conftest.$ac_ext
17439
cat >>conftest.$ac_ext <<_ACEOF
17440
/* end confdefs.h. */
17442
/* Override any gcc2 internal prototype to avoid an error. */
17446
/* We use char because int might match the return type of a gcc2
17447
builtin and then its argument prototype would still apply. */
17457
rm -f conftest.$ac_objext conftest$ac_exeext
17458
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17459
(eval $ac_link) 2>conftest.er1
17461
grep -v '^ *+' conftest.er1 >conftest.err
17463
cat conftest.err >&5
17464
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465
(exit $ac_status); } &&
17466
{ ac_try='test -z "$ac_c_werror_flag"
17467
|| test ! -s conftest.err'
17468
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17469
(eval $ac_try) 2>&5
17471
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472
(exit $ac_status); }; } &&
17473
{ ac_try='test -s conftest$ac_exeext'
17474
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17475
(eval $ac_try) 2>&5
17477
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478
(exit $ac_status); }; }; then
17479
ac_cv_lib_dld_shl_load=yes
17481
echo "$as_me: failed program was:" >&5
17482
sed 's/^/| /' conftest.$ac_ext >&5
17484
ac_cv_lib_dld_shl_load=no
17486
rm -f conftest.err conftest.$ac_objext \
17487
conftest$ac_exeext conftest.$ac_ext
17488
LIBS=$ac_check_lib_save_LIBS
17490
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17491
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17492
if test $ac_cv_lib_dld_shl_load = yes; then
17493
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17495
echo "$as_me:$LINENO: checking for dlopen" >&5
17496
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17497
if test "${ac_cv_func_dlopen+set}" = set; then
17498
echo $ECHO_N "(cached) $ECHO_C" >&6
17500
cat >conftest.$ac_ext <<_ACEOF
17503
cat confdefs.h >>conftest.$ac_ext
17504
cat >>conftest.$ac_ext <<_ACEOF
17505
/* end confdefs.h. */
17506
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17507
For example, HP-UX 11i <limits.h> declares gettimeofday. */
17508
#define dlopen innocuous_dlopen
17510
/* System header to define __stub macros and hopefully few prototypes,
17511
which can conflict with char dlopen (); below.
17512
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17513
<limits.h> exists even on freestanding compilers. */
17516
# include <limits.h>
17518
# include <assert.h>
17523
/* Override any gcc2 internal prototype to avoid an error. */
17528
/* We use char because int might match the return type of a gcc2
17529
builtin and then its argument prototype would still apply. */
17531
/* The GNU C library defines this for functions which it implements
17532
to always fail with ENOSYS. Some functions are actually named
17533
something starting with __ and the normal name is an alias. */
17534
#if defined (__stub_dlopen) || defined (__stub___dlopen)
17537
char (*f) () = dlopen;
17546
return f != dlopen;
17551
rm -f conftest.$ac_objext conftest$ac_exeext
17552
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17553
(eval $ac_link) 2>conftest.er1
17555
grep -v '^ *+' conftest.er1 >conftest.err
17557
cat conftest.err >&5
17558
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17559
(exit $ac_status); } &&
17560
{ ac_try='test -z "$ac_c_werror_flag"
17561
|| test ! -s conftest.err'
17562
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17563
(eval $ac_try) 2>&5
17565
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566
(exit $ac_status); }; } &&
17567
{ ac_try='test -s conftest$ac_exeext'
17568
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17569
(eval $ac_try) 2>&5
17571
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17572
(exit $ac_status); }; }; then
17573
ac_cv_func_dlopen=yes
17575
echo "$as_me: failed program was:" >&5
17576
sed 's/^/| /' conftest.$ac_ext >&5
17578
ac_cv_func_dlopen=no
17580
rm -f conftest.err conftest.$ac_objext \
17581
conftest$ac_exeext conftest.$ac_ext
17583
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17584
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17585
if test $ac_cv_func_dlopen = yes; then
17586
lt_cv_dlopen="dlopen"
17588
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17589
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17590
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17591
echo $ECHO_N "(cached) $ECHO_C" >&6
17593
ac_check_lib_save_LIBS=$LIBS
17595
cat >conftest.$ac_ext <<_ACEOF
17598
cat confdefs.h >>conftest.$ac_ext
17599
cat >>conftest.$ac_ext <<_ACEOF
17600
/* end confdefs.h. */
17602
/* Override any gcc2 internal prototype to avoid an error. */
17606
/* We use char because int might match the return type of a gcc2
17607
builtin and then its argument prototype would still apply. */
17617
rm -f conftest.$ac_objext conftest$ac_exeext
17618
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17619
(eval $ac_link) 2>conftest.er1
17621
grep -v '^ *+' conftest.er1 >conftest.err
17623
cat conftest.err >&5
17624
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625
(exit $ac_status); } &&
17626
{ ac_try='test -z "$ac_c_werror_flag"
17627
|| test ! -s conftest.err'
17628
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17629
(eval $ac_try) 2>&5
17631
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632
(exit $ac_status); }; } &&
17633
{ ac_try='test -s conftest$ac_exeext'
17634
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17635
(eval $ac_try) 2>&5
17637
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17638
(exit $ac_status); }; }; then
17639
ac_cv_lib_dl_dlopen=yes
17641
echo "$as_me: failed program was:" >&5
17642
sed 's/^/| /' conftest.$ac_ext >&5
17644
ac_cv_lib_dl_dlopen=no
17646
rm -f conftest.err conftest.$ac_objext \
17647
conftest$ac_exeext conftest.$ac_ext
17648
LIBS=$ac_check_lib_save_LIBS
17650
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17651
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17652
if test $ac_cv_lib_dl_dlopen = yes; then
17653
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17655
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17656
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17657
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17658
echo $ECHO_N "(cached) $ECHO_C" >&6
17660
ac_check_lib_save_LIBS=$LIBS
17661
LIBS="-lsvld $LIBS"
17662
cat >conftest.$ac_ext <<_ACEOF
17665
cat confdefs.h >>conftest.$ac_ext
17666
cat >>conftest.$ac_ext <<_ACEOF
17667
/* end confdefs.h. */
17669
/* Override any gcc2 internal prototype to avoid an error. */
17673
/* We use char because int might match the return type of a gcc2
17674
builtin and then its argument prototype would still apply. */
17684
rm -f conftest.$ac_objext conftest$ac_exeext
17685
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17686
(eval $ac_link) 2>conftest.er1
17688
grep -v '^ *+' conftest.er1 >conftest.err
17690
cat conftest.err >&5
17691
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692
(exit $ac_status); } &&
17693
{ ac_try='test -z "$ac_c_werror_flag"
17694
|| test ! -s conftest.err'
17695
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17696
(eval $ac_try) 2>&5
17698
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699
(exit $ac_status); }; } &&
17700
{ ac_try='test -s conftest$ac_exeext'
17701
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17702
(eval $ac_try) 2>&5
17704
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705
(exit $ac_status); }; }; then
17706
ac_cv_lib_svld_dlopen=yes
17708
echo "$as_me: failed program was:" >&5
17709
sed 's/^/| /' conftest.$ac_ext >&5
17711
ac_cv_lib_svld_dlopen=no
17713
rm -f conftest.err conftest.$ac_objext \
17714
conftest$ac_exeext conftest.$ac_ext
17715
LIBS=$ac_check_lib_save_LIBS
17717
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17718
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17719
if test $ac_cv_lib_svld_dlopen = yes; then
17720
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17722
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17723
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17724
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17725
echo $ECHO_N "(cached) $ECHO_C" >&6
17727
ac_check_lib_save_LIBS=$LIBS
17729
cat >conftest.$ac_ext <<_ACEOF
17732
cat confdefs.h >>conftest.$ac_ext
17733
cat >>conftest.$ac_ext <<_ACEOF
17734
/* end confdefs.h. */
17736
/* Override any gcc2 internal prototype to avoid an error. */
17740
/* We use char because int might match the return type of a gcc2
17741
builtin and then its argument prototype would still apply. */
17751
rm -f conftest.$ac_objext conftest$ac_exeext
17752
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17753
(eval $ac_link) 2>conftest.er1
17755
grep -v '^ *+' conftest.er1 >conftest.err
17757
cat conftest.err >&5
17758
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759
(exit $ac_status); } &&
17760
{ ac_try='test -z "$ac_c_werror_flag"
17761
|| test ! -s conftest.err'
17762
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17763
(eval $ac_try) 2>&5
17765
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766
(exit $ac_status); }; } &&
17767
{ ac_try='test -s conftest$ac_exeext'
17768
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17769
(eval $ac_try) 2>&5
17771
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772
(exit $ac_status); }; }; then
17773
ac_cv_lib_dld_dld_link=yes
17775
echo "$as_me: failed program was:" >&5
17776
sed 's/^/| /' conftest.$ac_ext >&5
17778
ac_cv_lib_dld_dld_link=no
17780
rm -f conftest.err conftest.$ac_objext \
17781
conftest$ac_exeext conftest.$ac_ext
17782
LIBS=$ac_check_lib_save_LIBS
17784
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17785
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17786
if test $ac_cv_lib_dld_dld_link = yes; then
17787
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17808
if test "x$lt_cv_dlopen" != xno; then
17814
case $lt_cv_dlopen in
17816
save_CPPFLAGS="$CPPFLAGS"
17817
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17819
save_LDFLAGS="$LDFLAGS"
17820
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17823
LIBS="$lt_cv_dlopen_libs $LIBS"
17825
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17826
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17827
if test "${lt_cv_dlopen_self+set}" = set; then
17828
echo $ECHO_N "(cached) $ECHO_C" >&6
17830
if test "$cross_compiling" = yes; then :
17831
lt_cv_dlopen_self=cross
17833
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17834
lt_status=$lt_dlunknown
17835
cat > conftest.$ac_ext <<EOF
17836
#line 17836 "configure"
17837
#include "confdefs.h"
17846
# define LT_DLGLOBAL RTLD_GLOBAL
17849
# define LT_DLGLOBAL DL_GLOBAL
17851
# define LT_DLGLOBAL 0
17855
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17856
find out it does not work in some platform. */
17857
#ifndef LT_DLLAZY_OR_NOW
17859
# define LT_DLLAZY_OR_NOW RTLD_LAZY
17862
# define LT_DLLAZY_OR_NOW DL_LAZY
17865
# define LT_DLLAZY_OR_NOW RTLD_NOW
17868
# define LT_DLLAZY_OR_NOW DL_NOW
17870
# define LT_DLLAZY_OR_NOW 0
17878
extern "C" void exit (int);
17881
void fnord() { int i=42;}
17884
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17885
int status = $lt_dlunknown;
17889
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17890
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17891
/* dlclose (self); */
17897
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17898
(eval $ac_link) 2>&5
17900
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17902
(./conftest; exit; ) 2>/dev/null
17904
case x$lt_status in
17905
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17906
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17907
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17910
# compilation failed
17911
lt_cv_dlopen_self=no
17918
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17919
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17921
if test "x$lt_cv_dlopen_self" = xyes; then
17922
LDFLAGS="$LDFLAGS $link_static_flag"
17923
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17924
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17925
if test "${lt_cv_dlopen_self_static+set}" = set; then
17926
echo $ECHO_N "(cached) $ECHO_C" >&6
17928
if test "$cross_compiling" = yes; then :
17929
lt_cv_dlopen_self_static=cross
17931
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17932
lt_status=$lt_dlunknown
17933
cat > conftest.$ac_ext <<EOF
17934
#line 17934 "configure"
17935
#include "confdefs.h"
17944
# define LT_DLGLOBAL RTLD_GLOBAL
17947
# define LT_DLGLOBAL DL_GLOBAL
17949
# define LT_DLGLOBAL 0
17953
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17954
find out it does not work in some platform. */
17955
#ifndef LT_DLLAZY_OR_NOW
17957
# define LT_DLLAZY_OR_NOW RTLD_LAZY
17960
# define LT_DLLAZY_OR_NOW DL_LAZY
17963
# define LT_DLLAZY_OR_NOW RTLD_NOW
17966
# define LT_DLLAZY_OR_NOW DL_NOW
17968
# define LT_DLLAZY_OR_NOW 0
17976
extern "C" void exit (int);
17979
void fnord() { int i=42;}
17982
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17983
int status = $lt_dlunknown;
17987
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17988
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17989
/* dlclose (self); */
17995
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17996
(eval $ac_link) 2>&5
17998
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18000
(./conftest; exit; ) 2>/dev/null
18002
case x$lt_status in
18003
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18004
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18005
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18008
# compilation failed
18009
lt_cv_dlopen_self_static=no
18016
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18017
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18020
CPPFLAGS="$save_CPPFLAGS"
18021
LDFLAGS="$save_LDFLAGS"
18026
case $lt_cv_dlopen_self in
18027
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18028
*) enable_dlopen_self=unknown ;;
18031
case $lt_cv_dlopen_self_static in
18032
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18033
*) enable_dlopen_self_static=unknown ;;
18038
# The else clause should only fire when bootstrapping the
18039
# libtool distribution, otherwise you forgot to ship ltmain.sh
18040
# with your package, and you will get complaints that there are
18041
# no rules to generate ltmain.sh.
18042
if test -f "$ltmain"; then
18043
# See if we are running on zsh, and set the options which allow our commands through
18044
# without removal of \ escapes.
18045
if test -n "${ZSH_VERSION+set}" ; then
18046
setopt NO_GLOB_SUBST
18048
# Now quote all the things that may contain metacharacters while being
18049
# careful not to overquote the AC_SUBSTed values. We take copies of the
18050
# variables and quote the copies for generation of the libtool script.
18051
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18053
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18054
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18055
deplibs_check_method reload_flag reload_cmds need_locks \
18056
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18057
lt_cv_sys_global_symbol_to_c_name_address \
18058
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18059
old_postinstall_cmds old_postuninstall_cmds \
18063
lt_prog_compiler_wl_GCJ \
18064
lt_prog_compiler_pic_GCJ \
18065
lt_prog_compiler_static_GCJ \
18066
lt_prog_compiler_no_builtin_flag_GCJ \
18067
export_dynamic_flag_spec_GCJ \
18068
thread_safe_flag_spec_GCJ \
18069
whole_archive_flag_spec_GCJ \
18070
enable_shared_with_static_runtimes_GCJ \
18071
old_archive_cmds_GCJ \
18072
old_archive_from_new_cmds_GCJ \
18073
predep_objects_GCJ \
18074
postdep_objects_GCJ \
18077
compiler_lib_search_path_GCJ \
18079
archive_expsym_cmds_GCJ \
18080
postinstall_cmds_GCJ \
18081
postuninstall_cmds_GCJ \
18082
old_archive_from_expsyms_cmds_GCJ \
18083
allow_undefined_flag_GCJ \
18084
no_undefined_flag_GCJ \
18085
export_symbols_cmds_GCJ \
18086
hardcode_libdir_flag_spec_GCJ \
18087
hardcode_libdir_flag_spec_ld_GCJ \
18088
hardcode_libdir_separator_GCJ \
18089
hardcode_automatic_GCJ \
18091
module_expsym_cmds_GCJ \
18092
lt_cv_prog_compiler_c_o_GCJ \
18093
exclude_expsyms_GCJ \
18094
include_expsyms_GCJ; do
18097
old_archive_cmds_GCJ | \
18098
old_archive_from_new_cmds_GCJ | \
18099
archive_cmds_GCJ | \
18100
archive_expsym_cmds_GCJ | \
18101
module_cmds_GCJ | \
18102
module_expsym_cmds_GCJ | \
18103
old_archive_from_expsyms_cmds_GCJ | \
18104
export_symbols_cmds_GCJ | \
18105
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18106
postinstall_cmds | postuninstall_cmds | \
18107
old_postinstall_cmds | old_postuninstall_cmds | \
18108
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18109
# Double-quote double-evaled strings.
18110
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18113
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18119
*'\$0 --fallback-echo"')
18120
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18126
cat <<__EOF__ >> "$cfgfile"
18127
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18129
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18131
# Shell to use when invoking shell scripts.
18134
# Whether or not to build shared libraries.
18135
build_libtool_libs=$enable_shared
18137
# Whether or not to build static libraries.
18138
build_old_libs=$enable_static
18140
# Whether or not to add -lc for building shared libraries.
18141
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18143
# Whether or not to disallow shared libs when runtime libs are static
18144
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18146
# Whether or not to optimize for fast installation.
18147
fast_install=$enable_fast_install
18150
host_alias=$host_alias
18154
# The build system.
18155
build_alias=$build_alias
18159
# An echo program that does not interpret backslashes.
18164
AR_FLAGS=$lt_AR_FLAGS
18169
# A language-specific compiler.
18170
CC=$lt_compiler_GCJ
18172
# Is the compiler the GNU C compiler?
18178
# The linker used to build libraries.
18181
# Whether we need hard or soft links.
18184
# A BSD-compatible nm program.
18187
# A symbol stripping program
18190
# Used to examine libraries when file_magic_cmd begins "file"
18191
MAGIC_CMD=$MAGIC_CMD
18193
# Used on cygwin: DLL creation program.
18196
# Used on cygwin: object dumper.
18199
# Used on cygwin: assembler.
18202
# The name of the directory that contains temporary libtool files.
18205
# How to create reloadable object files.
18206
reload_flag=$lt_reload_flag
18207
reload_cmds=$lt_reload_cmds
18209
# How to pass a linker flag through the compiler.
18210
wl=$lt_lt_prog_compiler_wl_GCJ
18212
# Object file suffix (normally "o").
18213
objext="$ac_objext"
18215
# Old archive suffix (normally "a").
18218
# Shared library suffix (normally ".so").
18219
shrext_cmds='$shrext_cmds'
18221
# Executable file suffix (normally "").
18224
# Additional compiler flags for building library objects.
18225
pic_flag=$lt_lt_prog_compiler_pic_GCJ
18228
# What is the maximum length of a command?
18229
max_cmd_len=$lt_cv_sys_max_cmd_len
18231
# Does compiler simultaneously support -c and -o options?
18232
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18234
# Must we lock files when doing compilation?
18235
need_locks=$lt_need_locks
18237
# Do we need the lib prefix for modules?
18238
need_lib_prefix=$need_lib_prefix
18240
# Do we need a version for libraries?
18241
need_version=$need_version
18243
# Whether dlopen is supported.
18244
dlopen_support=$enable_dlopen
18246
# Whether dlopen of programs is supported.
18247
dlopen_self=$enable_dlopen_self
18249
# Whether dlopen of statically linked programs is supported.
18250
dlopen_self_static=$enable_dlopen_self_static
18252
# Compiler flag to prevent dynamic linking.
18253
link_static_flag=$lt_lt_prog_compiler_static_GCJ
18255
# Compiler flag to turn off builtin functions.
18256
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18258
# Compiler flag to allow reflexive dlopens.
18259
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18261
# Compiler flag to generate shared objects directly from archives.
18262
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18264
# Compiler flag to generate thread-safe objects.
18265
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18267
# Library versioning type.
18268
version_type=$version_type
18270
# Format of library name prefix.
18271
libname_spec=$lt_libname_spec
18273
# List of archive names. First name is the real one, the rest are links.
18274
# The last name is the one that the linker finds with -lNAME.
18275
library_names_spec=$lt_library_names_spec
18277
# The coded name of the library, if different from the real name.
18278
soname_spec=$lt_soname_spec
18280
# Commands used to build and install an old-style archive.
18282
old_archive_cmds=$lt_old_archive_cmds_GCJ
18283
old_postinstall_cmds=$lt_old_postinstall_cmds
18284
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18286
# Create an old-style archive from a shared archive.
18287
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18289
# Create a temporary old-style archive to link instead of a shared archive.
18290
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18292
# Commands used to build and install a shared archive.
18293
archive_cmds=$lt_archive_cmds_GCJ
18294
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18295
postinstall_cmds=$lt_postinstall_cmds
18296
postuninstall_cmds=$lt_postuninstall_cmds
18298
# Commands used to build a loadable module (assumed same as above if empty)
18299
module_cmds=$lt_module_cmds_GCJ
18300
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18302
# Commands to strip libraries.
18303
old_striplib=$lt_old_striplib
18304
striplib=$lt_striplib
18306
# Dependencies to place before the objects being linked to create a
18308
predep_objects=$lt_predep_objects_GCJ
18310
# Dependencies to place after the objects being linked to create a
18312
postdep_objects=$lt_postdep_objects_GCJ
18314
# Dependencies to place before the objects being linked to create a
18316
predeps=$lt_predeps_GCJ
18318
# Dependencies to place after the objects being linked to create a
18320
postdeps=$lt_postdeps_GCJ
18322
# The library search path used internally by the compiler when linking
18323
# a shared library.
18324
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18326
# Method to check whether dependent libraries are shared objects.
18327
deplibs_check_method=$lt_deplibs_check_method
18329
# Command to use when deplibs_check_method == file_magic.
18330
file_magic_cmd=$lt_file_magic_cmd
18332
# Flag that allows shared libraries with undefined symbols to be built.
18333
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18335
# Flag that forces no undefined symbols.
18336
no_undefined_flag=$lt_no_undefined_flag_GCJ
18338
# Commands used to finish a libtool library installation in a directory.
18339
finish_cmds=$lt_finish_cmds
18341
# Same as above, but a single script fragment to be evaled but not shown.
18342
finish_eval=$lt_finish_eval
18344
# Take the output of nm and produce a listing of raw symbols and C names.
18345
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18347
# Transform the output of nm in a proper C declaration
18348
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18350
# Transform the output of nm in a C name address pair
18351
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18353
# This is the shared library runtime path variable.
18354
runpath_var=$runpath_var
18356
# This is the shared library path variable.
18357
shlibpath_var=$shlibpath_var
18359
# Is shlibpath searched before the hard-coded library search path?
18360
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18362
# How to hardcode a shared library path into an executable.
18363
hardcode_action=$hardcode_action_GCJ
18365
# Whether we should hardcode library paths into libraries.
18366
hardcode_into_libs=$hardcode_into_libs
18368
# Flag to hardcode \$libdir into a binary during linking.
18369
# This must work even if \$libdir does not exist.
18370
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18372
# If ld is used when linking, flag to hardcode \$libdir into
18373
# a binary during linking. This must work even if \$libdir does
18375
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18377
# Whether we need a single -rpath flag with a separated argument.
18378
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18380
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18381
# resulting binary.
18382
hardcode_direct=$hardcode_direct_GCJ
18384
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18385
# resulting binary.
18386
hardcode_minus_L=$hardcode_minus_L_GCJ
18388
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18389
# the resulting binary.
18390
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18392
# Set to yes if building a shared library automatically hardcodes DIR into the library
18393
# and all subsequent libraries and executables linked against it.
18394
hardcode_automatic=$hardcode_automatic_GCJ
18396
# Variables whose values should be saved in libtool wrapper scripts and
18397
# restored at relink time.
18398
variables_saved_for_relink="$variables_saved_for_relink"
18400
# Whether libtool must link a program against all its dependency libraries.
18401
link_all_deplibs=$link_all_deplibs_GCJ
18403
# Compile-time system search path for libraries
18404
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18406
# Run-time system search path for libraries
18407
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18409
# Fix the shell variable \$srcfile for the compiler.
18410
fix_srcfile_path="$fix_srcfile_path_GCJ"
18412
# Set to yes if exported symbols are required.
18413
always_export_symbols=$always_export_symbols_GCJ
18415
# The commands to list exported symbols.
18416
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18418
# The commands to extract the exported symbol list from a shared archive.
18419
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18421
# Symbols that should not be listed in the preloaded symbols.
18422
exclude_expsyms=$lt_exclude_expsyms_GCJ
18424
# Symbols that must always be exported.
18425
include_expsyms=$lt_include_expsyms_GCJ
18427
# ### END LIBTOOL TAG CONFIG: $tagname
18433
# If there is no Makefile yet, we rely on a make rule to execute
18434
# `config.status --recheck' to rerun these tests and create the
18435
# libtool script then.
18436
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18437
if test -f "$ltmain_in"; then
18438
test -f Makefile && make "$ltmain"
18444
ac_cpp='$CPP $CPPFLAGS'
18445
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18446
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18447
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18460
# Source file extension for RC test sources.
18463
# Object file extension for compiled RC test sources.
18467
# Code to be used in simple compile tests
18468
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18470
# Code to be used in simple link tests
18471
lt_simple_link_test_code="$lt_simple_compile_test_code"
18473
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18475
# If no C compiler was specified, use CC.
18478
# Allow CC to be a program name with arguments.
18482
# save warnings/boilerplate of simple test code
18483
ac_outfile=conftest.$ac_objext
18484
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18485
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
18486
_lt_compiler_boilerplate=`cat conftest.err`
18489
ac_outfile=conftest.$ac_objext
18490
printf "$lt_simple_link_test_code" >conftest.$ac_ext
18491
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
18492
_lt_linker_boilerplate=`cat conftest.err`
18496
# Allow CC to be a program name with arguments.
18501
for cc_temp in $compiler""; do
18503
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18504
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18509
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18511
lt_cv_prog_compiler_c_o_RC=yes
18513
# The else clause should only fire when bootstrapping the
18514
# libtool distribution, otherwise you forgot to ship ltmain.sh
18515
# with your package, and you will get complaints that there are
18516
# no rules to generate ltmain.sh.
18517
if test -f "$ltmain"; then
18518
# See if we are running on zsh, and set the options which allow our commands through
18519
# without removal of \ escapes.
18520
if test -n "${ZSH_VERSION+set}" ; then
18521
setopt NO_GLOB_SUBST
18523
# Now quote all the things that may contain metacharacters while being
18524
# careful not to overquote the AC_SUBSTed values. We take copies of the
18525
# variables and quote the copies for generation of the libtool script.
18526
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18528
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18529
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18530
deplibs_check_method reload_flag reload_cmds need_locks \
18531
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18532
lt_cv_sys_global_symbol_to_c_name_address \
18533
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18534
old_postinstall_cmds old_postuninstall_cmds \
18538
lt_prog_compiler_wl_RC \
18539
lt_prog_compiler_pic_RC \
18540
lt_prog_compiler_static_RC \
18541
lt_prog_compiler_no_builtin_flag_RC \
18542
export_dynamic_flag_spec_RC \
18543
thread_safe_flag_spec_RC \
18544
whole_archive_flag_spec_RC \
18545
enable_shared_with_static_runtimes_RC \
18546
old_archive_cmds_RC \
18547
old_archive_from_new_cmds_RC \
18548
predep_objects_RC \
18549
postdep_objects_RC \
18552
compiler_lib_search_path_RC \
18554
archive_expsym_cmds_RC \
18555
postinstall_cmds_RC \
18556
postuninstall_cmds_RC \
18557
old_archive_from_expsyms_cmds_RC \
18558
allow_undefined_flag_RC \
18559
no_undefined_flag_RC \
18560
export_symbols_cmds_RC \
18561
hardcode_libdir_flag_spec_RC \
18562
hardcode_libdir_flag_spec_ld_RC \
18563
hardcode_libdir_separator_RC \
18564
hardcode_automatic_RC \
18566
module_expsym_cmds_RC \
18567
lt_cv_prog_compiler_c_o_RC \
18568
exclude_expsyms_RC \
18569
include_expsyms_RC; do
18572
old_archive_cmds_RC | \
18573
old_archive_from_new_cmds_RC | \
18574
archive_cmds_RC | \
18575
archive_expsym_cmds_RC | \
18577
module_expsym_cmds_RC | \
18578
old_archive_from_expsyms_cmds_RC | \
18579
export_symbols_cmds_RC | \
18580
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18581
postinstall_cmds | postuninstall_cmds | \
18582
old_postinstall_cmds | old_postuninstall_cmds | \
18583
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18584
# Double-quote double-evaled strings.
18585
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18588
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18594
*'\$0 --fallback-echo"')
18595
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18601
cat <<__EOF__ >> "$cfgfile"
18602
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18604
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18606
# Shell to use when invoking shell scripts.
18609
# Whether or not to build shared libraries.
18610
build_libtool_libs=$enable_shared
18612
# Whether or not to build static libraries.
18613
build_old_libs=$enable_static
18615
# Whether or not to add -lc for building shared libraries.
18616
build_libtool_need_lc=$archive_cmds_need_lc_RC
18618
# Whether or not to disallow shared libs when runtime libs are static
18619
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18621
# Whether or not to optimize for fast installation.
18622
fast_install=$enable_fast_install
18625
host_alias=$host_alias
18629
# The build system.
18630
build_alias=$build_alias
18634
# An echo program that does not interpret backslashes.
18639
AR_FLAGS=$lt_AR_FLAGS
18644
# A language-specific compiler.
18647
# Is the compiler the GNU C compiler?
18653
# The linker used to build libraries.
18656
# Whether we need hard or soft links.
18659
# A BSD-compatible nm program.
18662
# A symbol stripping program
18665
# Used to examine libraries when file_magic_cmd begins "file"
18666
MAGIC_CMD=$MAGIC_CMD
18668
# Used on cygwin: DLL creation program.
18671
# Used on cygwin: object dumper.
18674
# Used on cygwin: assembler.
18677
# The name of the directory that contains temporary libtool files.
18680
# How to create reloadable object files.
18681
reload_flag=$lt_reload_flag
18682
reload_cmds=$lt_reload_cmds
18684
# How to pass a linker flag through the compiler.
18685
wl=$lt_lt_prog_compiler_wl_RC
18687
# Object file suffix (normally "o").
18688
objext="$ac_objext"
18690
# Old archive suffix (normally "a").
18693
# Shared library suffix (normally ".so").
18694
shrext_cmds='$shrext_cmds'
18696
# Executable file suffix (normally "").
18699
# Additional compiler flags for building library objects.
18700
pic_flag=$lt_lt_prog_compiler_pic_RC
18703
# What is the maximum length of a command?
18704
max_cmd_len=$lt_cv_sys_max_cmd_len
18706
# Does compiler simultaneously support -c and -o options?
18707
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18709
# Must we lock files when doing compilation?
18710
need_locks=$lt_need_locks
18712
# Do we need the lib prefix for modules?
18713
need_lib_prefix=$need_lib_prefix
18715
# Do we need a version for libraries?
18716
need_version=$need_version
18718
# Whether dlopen is supported.
18719
dlopen_support=$enable_dlopen
18721
# Whether dlopen of programs is supported.
18722
dlopen_self=$enable_dlopen_self
18724
# Whether dlopen of statically linked programs is supported.
18725
dlopen_self_static=$enable_dlopen_self_static
18727
# Compiler flag to prevent dynamic linking.
18728
link_static_flag=$lt_lt_prog_compiler_static_RC
18730
# Compiler flag to turn off builtin functions.
18731
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18733
# Compiler flag to allow reflexive dlopens.
18734
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18736
# Compiler flag to generate shared objects directly from archives.
18737
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18739
# Compiler flag to generate thread-safe objects.
18740
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18742
# Library versioning type.
18743
version_type=$version_type
18745
# Format of library name prefix.
18746
libname_spec=$lt_libname_spec
18748
# List of archive names. First name is the real one, the rest are links.
18749
# The last name is the one that the linker finds with -lNAME.
18750
library_names_spec=$lt_library_names_spec
18752
# The coded name of the library, if different from the real name.
18753
soname_spec=$lt_soname_spec
18755
# Commands used to build and install an old-style archive.
18757
old_archive_cmds=$lt_old_archive_cmds_RC
18758
old_postinstall_cmds=$lt_old_postinstall_cmds
18759
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18761
# Create an old-style archive from a shared archive.
18762
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18764
# Create a temporary old-style archive to link instead of a shared archive.
18765
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18767
# Commands used to build and install a shared archive.
18768
archive_cmds=$lt_archive_cmds_RC
18769
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18770
postinstall_cmds=$lt_postinstall_cmds
18771
postuninstall_cmds=$lt_postuninstall_cmds
18773
# Commands used to build a loadable module (assumed same as above if empty)
18774
module_cmds=$lt_module_cmds_RC
18775
module_expsym_cmds=$lt_module_expsym_cmds_RC
18777
# Commands to strip libraries.
18778
old_striplib=$lt_old_striplib
18779
striplib=$lt_striplib
18781
# Dependencies to place before the objects being linked to create a
18783
predep_objects=$lt_predep_objects_RC
18785
# Dependencies to place after the objects being linked to create a
18787
postdep_objects=$lt_postdep_objects_RC
18789
# Dependencies to place before the objects being linked to create a
18791
predeps=$lt_predeps_RC
18793
# Dependencies to place after the objects being linked to create a
18795
postdeps=$lt_postdeps_RC
18797
# The library search path used internally by the compiler when linking
18798
# a shared library.
18799
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18801
# Method to check whether dependent libraries are shared objects.
18802
deplibs_check_method=$lt_deplibs_check_method
18804
# Command to use when deplibs_check_method == file_magic.
18805
file_magic_cmd=$lt_file_magic_cmd
18807
# Flag that allows shared libraries with undefined symbols to be built.
18808
allow_undefined_flag=$lt_allow_undefined_flag_RC
18810
# Flag that forces no undefined symbols.
18811
no_undefined_flag=$lt_no_undefined_flag_RC
18813
# Commands used to finish a libtool library installation in a directory.
18814
finish_cmds=$lt_finish_cmds
18816
# Same as above, but a single script fragment to be evaled but not shown.
18817
finish_eval=$lt_finish_eval
18819
# Take the output of nm and produce a listing of raw symbols and C names.
18820
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18822
# Transform the output of nm in a proper C declaration
18823
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18825
# Transform the output of nm in a C name address pair
18826
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18828
# This is the shared library runtime path variable.
18829
runpath_var=$runpath_var
18831
# This is the shared library path variable.
18832
shlibpath_var=$shlibpath_var
18834
# Is shlibpath searched before the hard-coded library search path?
18835
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18837
# How to hardcode a shared library path into an executable.
18838
hardcode_action=$hardcode_action_RC
18840
# Whether we should hardcode library paths into libraries.
18841
hardcode_into_libs=$hardcode_into_libs
18843
# Flag to hardcode \$libdir into a binary during linking.
18844
# This must work even if \$libdir does not exist.
18845
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18847
# If ld is used when linking, flag to hardcode \$libdir into
18848
# a binary during linking. This must work even if \$libdir does
18850
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18852
# Whether we need a single -rpath flag with a separated argument.
18853
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18855
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18856
# resulting binary.
18857
hardcode_direct=$hardcode_direct_RC
18859
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18860
# resulting binary.
18861
hardcode_minus_L=$hardcode_minus_L_RC
18863
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18864
# the resulting binary.
18865
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18867
# Set to yes if building a shared library automatically hardcodes DIR into the library
18868
# and all subsequent libraries and executables linked against it.
18869
hardcode_automatic=$hardcode_automatic_RC
18871
# Variables whose values should be saved in libtool wrapper scripts and
18872
# restored at relink time.
18873
variables_saved_for_relink="$variables_saved_for_relink"
18875
# Whether libtool must link a program against all its dependency libraries.
18876
link_all_deplibs=$link_all_deplibs_RC
18878
# Compile-time system search path for libraries
18879
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18881
# Run-time system search path for libraries
18882
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18884
# Fix the shell variable \$srcfile for the compiler.
18885
fix_srcfile_path="$fix_srcfile_path_RC"
18887
# Set to yes if exported symbols are required.
18888
always_export_symbols=$always_export_symbols_RC
18890
# The commands to list exported symbols.
18891
export_symbols_cmds=$lt_export_symbols_cmds_RC
18893
# The commands to extract the exported symbol list from a shared archive.
18894
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18896
# Symbols that should not be listed in the preloaded symbols.
18897
exclude_expsyms=$lt_exclude_expsyms_RC
18899
# Symbols that must always be exported.
18900
include_expsyms=$lt_include_expsyms_RC
18902
# ### END LIBTOOL TAG CONFIG: $tagname
18908
# If there is no Makefile yet, we rely on a make rule to execute
18909
# `config.status --recheck' to rerun these tests and create the
18910
# libtool script then.
18911
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18912
if test -f "$ltmain_in"; then
18913
test -f Makefile && make "$ltmain"
18919
ac_cpp='$CPP $CPPFLAGS'
18920
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18921
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18922
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18929
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18930
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18931
{ (exit 1); exit 1; }; }
18935
# Append the new tag name to the list of available tags.
18936
if test -n "$tagname" ; then
18937
available_tags="$available_tags $tagname"
18943
# Now substitute the updated list of available tags.
18944
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18945
mv "${ofile}T" "$ofile"
18949
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18950
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18951
{ (exit 1); exit 1; }; }