5669
7135
*** used, and then restart.
5672
elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5673
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5674
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5681
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5684
hardcode_shlibpath_var=no
5688
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5689
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5690
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5697
if test "$ld_shlibs" = yes; then
5698
runpath_var=LD_RUN_PATH
5699
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5700
export_dynamic_flag_spec='${wl}--export-dynamic'
5702
cygwin* | mingw* | pw32*)
5703
# dlltool doesn't understand --whole-archive et. al.
5704
whole_archive_flag_spec=
7138
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7139
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7140
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7147
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7150
hardcode_shlibpath_var=no
7154
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7155
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7156
archive_cmds="$tmp_archive_cmds"
7157
supports_anon_versioning=no
7158
case `$LD -v 2>/dev/null` in
7159
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7160
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7161
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7162
*\ 2.11.*) ;; # other 2.11 versions
7163
*) supports_anon_versioning=yes ;;
7165
if test $supports_anon_versioning = yes; then
7166
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7167
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7168
$echo "local: *; };" >> $output_objdir/$libname.ver~
7169
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7171
archive_expsym_cmds="$tmp_archive_cmds"
7179
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7180
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7181
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7188
if test "$ld_shlibs" = yes; then
7189
runpath_var=LD_RUN_PATH
7190
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7191
export_dynamic_flag_spec='${wl}--export-dynamic'
5707
7192
# ancient GNU ld didn't support --whole-archive et. al.
5708
if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5709
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7193
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7194
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5711
whole_archive_flag_spec=
7196
whole_archive_flag_spec=
5717
# PORTME fill in a description of your system's linker (not GNU ld)
5720
allow_undefined_flag=unsupported
5721
always_export_symbols=yes
5722
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'
5723
# Note: this linker hardcodes the directories in LIBPATH if there
5724
# are no directories specified by -L.
5725
hardcode_minus_L=yes
5726
if test "$GCC" = yes && test -z "$link_static_flag"; then
5727
# Neither direct hardcoding nor static linking is supported with a
5729
hardcode_direct=unsupported
5734
if test "$host_cpu" = ia64; then
5735
# On IA64, the linker does run time linking by default, so we don't
5736
# have to do anything special.
5737
aix_use_runtimelinking=no
5738
exp_sym_flag='-Bexport'
7200
# PORTME fill in a description of your system's linker (not GNU ld)
7203
allow_undefined_flag=unsupported
7204
always_export_symbols=yes
7205
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'
7206
# Note: this linker hardcodes the directories in LIBPATH if there
7207
# are no directories specified by -L.
7208
hardcode_minus_L=yes
7209
if test "$GCC" = yes && test -z "$link_static_flag"; then
7210
# Neither direct hardcoding nor static linking is supported with a
7212
hardcode_direct=unsupported
7217
if test "$host_cpu" = ia64; then
7218
# On IA64, the linker does run time linking by default, so we don't
7219
# have to do anything special.
7220
aix_use_runtimelinking=no
7221
exp_sym_flag='-Bexport'
7224
# If we're using GNU nm, then we don't want the "-C" option.
7225
# -C means demangle to AIX nm, but means don't demangle with GNU nm
7226
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7227
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'
7229
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'
7231
aix_use_runtimelinking=no
7233
# Test if we are trying to use run time linking or normal
7234
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7235
# need to do runtime linking.
7236
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7237
for ld_flag in $LDFLAGS; do
7238
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7239
aix_use_runtimelinking=yes
7245
exp_sym_flag='-bexport'
7246
no_entry_flag='-bnoentry'
7249
# When large executables or shared objects are built, AIX ld can
7250
# have problems creating the table of contents. If linking a library
7251
# or program results in "error TOC overflow" add -mminimal-toc to
7252
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7253
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7257
hardcode_libdir_separator=':'
7258
link_all_deplibs=yes
7260
if test "$GCC" = yes; then
7261
case $host_os in aix4.012|aix4.012.*)
7262
# We only want to do this on AIX 4.2 and lower, the check
7263
# below for broken collect2 doesn't work under 4.3+
7264
collect2name=`${CC} -print-prog-name=collect2`
7265
if test -f "$collect2name" && \
7266
strings "$collect2name" | grep resolve_lib_name >/dev/null
7268
# We have reworked collect2
7271
# We have old collect2
7272
hardcode_direct=unsupported
7273
# It fails to find uninstalled libraries when the uninstalled
7274
# path is not listed in the libpath. Setting hardcode_minus_L
7275
# to unsupported forces relinking
7276
hardcode_minus_L=yes
7277
hardcode_libdir_flag_spec='-L$libdir'
7278
hardcode_libdir_separator=
7281
shared_flag='-shared'
7284
if test "$host_cpu" = ia64; then
7285
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7286
# chokes on -Wl,-G. The following line is correct:
7289
if test "$aix_use_runtimelinking" = yes; then
7290
shared_flag='${wl}-G'
7292
shared_flag='${wl}-bM:SRE'
7297
# It seems that -bexpall does not export symbols beginning with
7298
# underscore (_), so it is better to generate a list of symbols to export.
7299
always_export_symbols=yes
7300
if test "$aix_use_runtimelinking" = yes; then
7301
# Warning - without using the other runtime loading flags (-brtl),
7302
# -berok will link without error, but may produce a broken library.
7303
allow_undefined_flag='-berok'
7304
# Determine the default libpath from the value encoded in an empty executable.
7305
cat >conftest.$ac_ext <<_ACEOF
7308
cat confdefs.h >>conftest.$ac_ext
7309
cat >>conftest.$ac_ext <<_ACEOF
7310
/* end confdefs.h. */
7320
rm -f conftest.$ac_objext conftest$ac_exeext
7321
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7322
(eval $ac_link) 2>conftest.er1
7324
grep -v '^ *+' conftest.er1 >conftest.err
7326
cat conftest.err >&5
7327
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7328
(exit $ac_status); } &&
7329
{ ac_try='test -z "$ac_c_werror_flag"
7330
|| test ! -s conftest.err'
7331
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7334
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7335
(exit $ac_status); }; } &&
7336
{ ac_try='test -s conftest$ac_exeext'
7337
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7340
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341
(exit $ac_status); }; }; then
7343
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7345
# Check for a 64-bit object if we didn't find anything.
7346
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; }
7349
echo "$as_me: failed program was:" >&5
7350
sed 's/^/| /' conftest.$ac_ext >&5
7353
rm -f conftest.err conftest.$ac_objext \
7354
conftest$ac_exeext conftest.$ac_ext
7355
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7357
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7358
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"
7360
if test "$host_cpu" = ia64; then
7361
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7362
allow_undefined_flag="-z nodefs"
7363
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"
7365
# Determine the default libpath from the value encoded in an empty executable.
7366
cat >conftest.$ac_ext <<_ACEOF
7369
cat confdefs.h >>conftest.$ac_ext
7370
cat >>conftest.$ac_ext <<_ACEOF
7371
/* end confdefs.h. */
7381
rm -f conftest.$ac_objext conftest$ac_exeext
7382
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7383
(eval $ac_link) 2>conftest.er1
7385
grep -v '^ *+' conftest.er1 >conftest.err
7387
cat conftest.err >&5
7388
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389
(exit $ac_status); } &&
7390
{ ac_try='test -z "$ac_c_werror_flag"
7391
|| test ! -s conftest.err'
7392
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7395
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396
(exit $ac_status); }; } &&
7397
{ ac_try='test -s conftest$ac_exeext'
7398
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7401
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402
(exit $ac_status); }; }; then
7404
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7406
# Check for a 64-bit object if we didn't find anything.
7407
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; }
7410
echo "$as_me: failed program was:" >&5
7411
sed 's/^/| /' conftest.$ac_ext >&5
7414
rm -f conftest.err conftest.$ac_objext \
7415
conftest$ac_exeext conftest.$ac_ext
7416
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7418
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7419
# Warning - without using the other run time loading flags,
7420
# -berok will link without error, but may produce a broken library.
7421
no_undefined_flag=' ${wl}-bernotok'
7422
allow_undefined_flag=' ${wl}-berok'
7423
# -bexpall does not export symbols beginning with underscore (_)
7424
always_export_symbols=yes
7425
# Exported symbols can be pulled into shared objects from archives
7426
whole_archive_flag_spec=' '
7427
archive_cmds_need_lc=yes
7428
# This is similar to how AIX traditionally builds it's shared libraries.
7429
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'
7435
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)'
7436
hardcode_libdir_flag_spec='-L$libdir'
7437
hardcode_minus_L=yes
7438
# see comment about different semantics on the GNU ld section
7443
export_dynamic_flag_spec=-rdynamic
7446
cygwin* | mingw* | pw32*)
7447
# When not using gcc, we currently assume that we are using
7448
# Microsoft Visual C++.
7449
# hardcode_libdir_flag_spec is actually meaningless, as there is
7450
# no search path for DLLs.
7451
hardcode_libdir_flag_spec=' '
7452
allow_undefined_flag=unsupported
7453
# Tell ltmain to make .lib files, not .a files.
7455
# Tell ltmain to make .dll files, not .so files.
7457
# FIXME: Setting linknames here is a bad hack.
7458
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7459
# The linker will automatically build a .lib file if we build a DLL.
7460
old_archive_From_new_cmds='true'
7461
# FIXME: Should let the user specify the lib program.
7462
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7463
fix_srcfile_path='`cygpath -w "$srcfile"`'
7464
enable_shared_with_static_runtimes=yes
7467
darwin* | rhapsody*)
7468
if test "$GXX" = yes ; then
7469
archive_cmds_need_lc=no
7471
rhapsody* | darwin1.[012])
7472
allow_undefined_flag='-undefined suppress'
7475
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7476
allow_undefined_flag='-flat_namespace -undefined suppress'
7478
case ${MACOSX_DEPLOYMENT_TARGET} in
7480
allow_undefined_flag='-flat_namespace -undefined suppress'
7483
allow_undefined_flag='-undefined dynamic_lookup'
7489
lt_int_apple_cc_single_mod=no
7490
output_verbose_link_cmd='echo'
7491
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7492
lt_int_apple_cc_single_mod=yes
7494
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7495
archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7497
archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7499
module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7500
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7501
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7502
archive_expsym_cmds='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}'
7504
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7506
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}'
7508
hardcode_automatic=yes
7509
hardcode_shlibpath_var=unsupported
7510
whole_archive_flag_spec='-all_load $convenience'
7511
link_all_deplibs=yes
5741
aix_use_runtimelinking=no
5743
# Test if we are trying to use run time linking or normal
5744
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
5745
# need to do runtime linking.
5746
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5747
for ld_flag in $LDFLAGS; do
5750
aix_use_runtimelinking=yes
5757
exp_sym_flag='-bexport'
5758
no_entry_flag='-bnoentry'
5761
# When large executables or shared objects are built, AIX ld can
5762
# have problems creating the table of contents. If linking a library
5763
# or program results in "error TOC overflow" add -mminimal-toc to
5764
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5765
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5769
hardcode_libdir_separator=':'
5770
if test "$GCC" = yes; then
5771
case $host_os in aix4.[012]|aix4.[012].*)
5772
collect2name=`${CC} -print-prog-name=collect2`
5773
if test -f "$collect2name" && \
5774
strings "$collect2name" | grep resolve_lib_name >/dev/null
5776
# We have reworked collect2
7518
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7519
hardcode_libdir_flag_spec='-L$libdir'
7520
hardcode_shlibpath_var=no
7527
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7528
# support. Future versions do this automatically, but an explicit c++rt0.o
7529
# does not break anything, and helps significantly (at the cost of a little
7532
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7533
hardcode_libdir_flag_spec='-R$libdir'
7535
hardcode_shlibpath_var=no
7538
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
7540
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7542
hardcode_minus_L=yes
7543
hardcode_shlibpath_var=no
7546
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7547
freebsd* | kfreebsd*-gnu)
7548
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7549
hardcode_libdir_flag_spec='-R$libdir'
7551
hardcode_shlibpath_var=no
7555
if test "$GCC" = yes; then
7556
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'
7558
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'
7560
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7561
hardcode_libdir_separator=:
7564
# hardcode_minus_L: Not really in the search PATH,
7565
# but as the default location of the library.
7566
hardcode_minus_L=yes
7567
export_dynamic_flag_spec='${wl}-E'
7571
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7574
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7577
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7583
archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7586
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7590
if test "$with_gnu_ld" = no; then
7593
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7594
hardcode_libdir_flag_spec_ld='+b $libdir'
7595
hardcode_libdir_separator=:
7597
hardcode_shlibpath_var=no
7600
hardcode_libdir_flag_spec='-L$libdir'
7602
hardcode_shlibpath_var=no
7604
# hardcode_minus_L: Not really in the search PATH,
7605
# but as the default location of the library.
7606
hardcode_minus_L=yes
7609
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7610
hardcode_libdir_separator=:
5777
7611
hardcode_direct=yes
5779
# We have old collect2
5780
hardcode_direct=unsupported
5781
# It fails to find uninstalled libraries when the uninstalled
5782
# path is not listed in the libpath. Setting hardcode_minus_L
5783
# to unsupported forces relinking
7612
export_dynamic_flag_spec='${wl}-E'
7614
# hardcode_minus_L: Not really in the search PATH,
7615
# but as the default location of the library.
5784
7616
hardcode_minus_L=yes
5785
hardcode_libdir_flag_spec='-L$libdir'
5786
hardcode_libdir_separator=
5790
shared_flag='-shared'
5793
if test "$host_cpu" = ia64; then
5794
shared_flag='${wl}-G'
5796
if test "$aix_use_runtimelinking" = yes; then
5797
shared_flag='${wl}-G'
5799
shared_flag='${wl}-bM:SRE'
5804
# It seems that -bexpall can do strange things, so it is better to
5805
# generate a list of symbols to export.
5806
always_export_symbols=yes
5807
if test "$aix_use_runtimelinking" = yes; then
5808
# Warning - without using the other runtime loading flags (-brtl),
5809
# -berok will link without error, but may produce a broken library.
5810
allow_undefined_flag='-berok'
5811
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5812
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"
5814
if test "$host_cpu" = ia64; then
5815
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5816
allow_undefined_flag="-z nodefs"
5817
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"
5819
hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5820
# Warning - without using the other run time loading flags,
5821
# -berok will link without error, but may produce a broken library.
5822
allow_undefined_flag='${wl}-berok'
5823
# This is a bit strange, but is similar to how AIX traditionally builds
5824
# it's shared libraries.
5825
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'
5831
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)'
5832
hardcode_libdir_flag_spec='-L$libdir'
5833
hardcode_minus_L=yes
5834
# see comment about different semantics on the GNU ld section
5838
cygwin* | mingw* | pw32*)
5839
# When not using gcc, we currently assume that we are using
5840
# Microsoft Visual C++.
5841
# hardcode_libdir_flag_spec is actually meaningless, as there is
5842
# no search path for DLLs.
5843
hardcode_libdir_flag_spec=' '
5844
allow_undefined_flag=unsupported
5845
# Tell ltmain to make .lib files, not .a files.
5847
# FIXME: Setting linknames here is a bad hack.
5848
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5849
# The linker will automatically build a .lib file if we build a DLL.
5850
old_archive_from_new_cmds='true'
5851
# FIXME: Should let the user specify the lib program.
5852
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5853
fix_srcfile_path='`cygpath -w "$srcfile"`'
5856
darwin* | rhapsody*)
5858
rhapsody* | darwin1.[012])
5859
allow_undefined_flag='-undefined suppress'
5862
allow_undefined_flag='-flat_namespace -undefined suppress'
5865
# FIXME: Relying on posixy $() will cause problems for
5866
# cross-compilation, but unfortunately the echo tests do not
5867
# yet detect zsh echo's removal of \ escapes. Also zsh mangles
5868
# `"' quotes if we put them in here... so don't!
5869
archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
5870
# We need to add '_' to the symbols in $export_symbols first
5871
#archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5873
hardcode_shlibpath_var=no
5874
whole_archive_flag_spec='-all_load $convenience'
5881
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5882
# support. Future versions do this automatically, but an explicit c++rt0.o
5883
# does not break anything, and helps significantly (at the cost of a little
5886
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5887
hardcode_libdir_flag_spec='-R$libdir'
5889
hardcode_shlibpath_var=no
5892
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
5894
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5896
hardcode_minus_L=yes
5897
hardcode_shlibpath_var=no
5900
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5902
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5903
hardcode_libdir_flag_spec='-R$libdir'
5905
hardcode_shlibpath_var=no
5908
hpux9* | hpux10* | hpux11*)
5910
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' ;;
5911
*) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5913
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5914
hardcode_libdir_separator=:
5916
hardcode_minus_L=yes # Not in the search PATH, but as the default
5917
# location of the library.
5918
export_dynamic_flag_spec='${wl}-E'
5921
irix5* | irix6* | nonstopux*)
5922
if test "$GCC" = yes; then
5923
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'
5924
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5926
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'
5927
hardcode_libdir_flag_spec='-rpath $libdir'
5929
hardcode_libdir_separator=:
5930
link_all_deplibs=yes
5934
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5935
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5937
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5939
hardcode_libdir_flag_spec='-R$libdir'
5941
hardcode_shlibpath_var=no
5945
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5947
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5948
hardcode_libdir_separator=:
5949
hardcode_shlibpath_var=no
5954
hardcode_shlibpath_var=no
5955
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5956
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5957
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5958
export_dynamic_flag_spec='${wl}-E'
5961
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5962
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5963
hardcode_libdir_flag_spec='-R$libdir'
5966
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5967
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5974
hardcode_libdir_flag_spec='-L$libdir'
5975
hardcode_minus_L=yes
5976
allow_undefined_flag=unsupported
5977
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'
5978
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5982
if test "$GCC" = yes; then
5983
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5984
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'
5986
allow_undefined_flag=' -expect_unresolved \*'
5987
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'
5989
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5990
hardcode_libdir_separator=:
5993
osf4* | osf5*) # as osf3* with the addition of -msym flag
5994
if test "$GCC" = yes; then
5995
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5996
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'
5997
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5999
allow_undefined_flag=' -expect_unresolved \*'
6000
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'
6001
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6002
$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'
6004
#Both c and cxx compiler support -rpath directly
6005
hardcode_libdir_flag_spec='-rpath $libdir'
6007
hardcode_libdir_separator=:
6011
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6012
hardcode_shlibpath_var=no
6013
runpath_var=LD_RUN_PATH
6014
hardcode_runpath_var=yes
6015
export_dynamic_flag_spec='${wl}-Bexport'
6019
# gcc --version < 3.0 without binutils cannot create self contained
6020
# shared libraries reliably, requiring libgcc.a to resolve some of
6021
# the object symbols generated in some cases. Libraries that use
6022
# assert need libgcc.a to resolve __eprintf, for example. Linking
6023
# a copy of libgcc.a into every shared library to guarantee resolving
6024
# such symbols causes other problems: According to Tim Van Holder
6025
# <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6026
# (to the application) exception stack for one thing.
6027
no_undefined_flag=' -z defs'
6028
if test "$GCC" = yes; then
6029
case `$CC --version 2>/dev/null` in
6033
*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6034
*** create self contained shared libraries on Solaris systems, without
6035
*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
6036
*** -no-undefined support, which will at least allow you to build shared
6037
*** libraries. However, you may find that when you link such libraries
6038
*** into an application without using GCC, you have to manually add
6039
*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
6040
*** upgrade to a newer version of GCC. Another option is to rebuild your
6041
*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6048
# $CC -shared without GNU ld will not create a library from C++
6049
# object files and a static libstdc++, better avoid it by now
6050
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6051
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6052
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6053
hardcode_libdir_flag_spec='-R$libdir'
6054
hardcode_shlibpath_var=no
6056
solaris2.[0-5] | solaris2.[0-5].*) ;;
6057
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
6058
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6060
link_all_deplibs=yes
6064
if test "x$host_vendor" = xsequent; then
6065
# Use $CC to link under sequent, because it throws in some extra .o
6066
# files that make .init and .fini sections work.
6067
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6069
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6071
hardcode_libdir_flag_spec='-L$libdir'
6073
hardcode_minus_L=yes
6074
hardcode_shlibpath_var=no
6078
case $host_vendor in
6080
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6081
hardcode_direct=yes # is this really true???
6084
## LD is ld it makes a PLAMLIB
6085
## CC just makes a GrossModule.
6086
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6087
reload_cmds='$CC -r -o $output$reload_objs'
6091
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6092
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6095
runpath_var='LD_RUN_PATH'
6096
hardcode_shlibpath_var=no
6100
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6101
hardcode_shlibpath_var=no
6102
export_dynamic_flag_spec='-Bexport'
6106
no_undefined_flag=' -z text'
6107
# $CC -shared without GNU ld will not create a library from C++
6108
# object files and a static libstdc++, better avoid it by now
6109
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6110
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6111
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6112
hardcode_libdir_flag_spec=
6113
hardcode_shlibpath_var=no
6114
runpath_var='LD_RUN_PATH'
6118
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6119
hardcode_libdir_flag_spec='-L$libdir'
6120
hardcode_shlibpath_var=no
6124
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6125
hardcode_libdir_flag_spec='-L$libdir'
6126
hardcode_shlibpath_var=no
6130
if test -d /usr/nec; then
6131
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6132
hardcode_shlibpath_var=no
6133
runpath_var=LD_RUN_PATH
6134
hardcode_runpath_var=yes
6140
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6143
hardcode_shlibpath_var=no
6144
hardcode_runpath_var=yes
6145
runpath_var=LD_RUN_PATH
6148
sysv5uw7* | unixware7*)
6149
no_undefined_flag='${wl}-z ${wl}text'
6150
if test "$GCC" = yes; then
6151
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6153
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6155
runpath_var='LD_RUN_PATH'
6156
hardcode_shlibpath_var=no
7622
irix5* | irix6* | nonstopux*)
7623
if test "$GCC" = yes; then
7624
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'
7626
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'
7627
hardcode_libdir_flag_spec_ld='-rpath $libdir'
7629
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7630
hardcode_libdir_separator=:
7631
link_all_deplibs=yes
7635
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7636
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7638
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7640
hardcode_libdir_flag_spec='-R$libdir'
7642
hardcode_shlibpath_var=no
7646
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7648
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7649
hardcode_libdir_separator=:
7650
hardcode_shlibpath_var=no
7655
hardcode_shlibpath_var=no
7656
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7657
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7658
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7659
export_dynamic_flag_spec='${wl}-E'
7662
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7663
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7664
hardcode_libdir_flag_spec='-R$libdir'
7667
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7668
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7675
hardcode_libdir_flag_spec='-L$libdir'
7676
hardcode_minus_L=yes
7677
allow_undefined_flag=unsupported
7678
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'
7679
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7683
if test "$GCC" = yes; then
7684
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7685
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'
7687
allow_undefined_flag=' -expect_unresolved \*'
7688
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'
7690
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7691
hardcode_libdir_separator=:
7694
osf4* | osf5*) # as osf3* with the addition of -msym flag
7695
if test "$GCC" = yes; then
7696
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7697
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'
7698
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7700
allow_undefined_flag=' -expect_unresolved \*'
7701
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'
7702
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7703
$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'
7705
# Both c and cxx compiler support -rpath directly
7706
hardcode_libdir_flag_spec='-rpath $libdir'
7708
hardcode_libdir_separator=:
7712
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7713
hardcode_shlibpath_var=no
7714
export_dynamic_flag_spec='${wl}-Bexport'
7715
runpath_var=LD_RUN_PATH
7716
hardcode_runpath_var=yes
7720
no_undefined_flag=' -z text'
7721
if test "$GCC" = yes; then
7722
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7723
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7724
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7726
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7727
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7728
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7730
hardcode_libdir_flag_spec='-R$libdir'
7731
hardcode_shlibpath_var=no
7733
solaris2.[0-5] | solaris2.[0-5].*) ;;
7734
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
7735
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7737
link_all_deplibs=yes
7741
if test "x$host_vendor" = xsequent; then
7742
# Use $CC to link under sequent, because it throws in some extra .o
7743
# files that make .init and .fini sections work.
7744
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7746
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7748
hardcode_libdir_flag_spec='-L$libdir'
7750
hardcode_minus_L=yes
7751
hardcode_shlibpath_var=no
7755
case $host_vendor in
7757
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7758
hardcode_direct=yes # is this really true???
7761
## LD is ld it makes a PLAMLIB
7762
## CC just makes a GrossModule.
7763
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7764
reload_cmds='$CC -r -o $output$reload_objs'
7768
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7769
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7772
runpath_var='LD_RUN_PATH'
7773
hardcode_shlibpath_var=no
7777
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7778
hardcode_shlibpath_var=no
7779
export_dynamic_flag_spec='-Bexport'
7783
if test -d /usr/nec; then
7784
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7785
hardcode_shlibpath_var=no
7786
runpath_var=LD_RUN_PATH
7787
hardcode_runpath_var=yes
7793
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7796
hardcode_shlibpath_var=no
7797
hardcode_runpath_var=yes
7798
runpath_var=LD_RUN_PATH
7801
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7802
no_undefined_flag='${wl}-z ${wl}text'
7803
if test "$GCC" = yes; then
7804
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7806
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7808
runpath_var='LD_RUN_PATH'
7809
hardcode_shlibpath_var=no
7813
no_undefined_flag=' -z text'
7814
# $CC -shared without GNU ld will not create a library from C++
7815
# object files and a static libstdc++, better avoid it by now
7816
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7817
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7818
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7819
hardcode_libdir_flag_spec=
7820
hardcode_shlibpath_var=no
7821
runpath_var='LD_RUN_PATH'
7825
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7826
hardcode_libdir_flag_spec='-L$libdir'
7827
hardcode_shlibpath_var=no
6164
7836
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6165
7837
echo "${ECHO_T}$ld_shlibs" >&6
6166
7838
test "$ld_shlibs" = no && can_build_shared=no
6168
# Check hardcoding attributes.
7840
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7841
if test "$GCC" = yes; then
7842
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7846
# Do we need to explicitly link libc?
7848
case "x$archive_cmds_need_lc" in
7850
# Assume -lc should be added
7851
archive_cmds_need_lc=yes
7853
if test "$enable_shared" = yes && test "$GCC" = yes; then
7854
case $archive_cmds in
7856
# FIXME: we may have to deal with multi-command sequences.
7859
# Test whether the compiler implicitly links with -lc since on some
7860
# systems, -lgcc has to come before -lc. If gcc already passes -lc
7861
# to ld, don't add -lc before -lgcc.
7862
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7863
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7865
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7867
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7868
(eval $ac_compile) 2>&5
7870
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871
(exit $ac_status); } 2>conftest.err; then
7874
libobjs=conftest.$ac_objext
7876
wl=$lt_prog_compiler_wl
7882
lt_save_allow_undefined_flag=$allow_undefined_flag
7883
allow_undefined_flag=
7884
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7885
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7887
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888
(exit $ac_status); }
7890
archive_cmds_need_lc=no
7892
archive_cmds_need_lc=yes
7894
allow_undefined_flag=$lt_save_allow_undefined_flag
7896
cat conftest.err 1>&5
7899
echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7900
echo "${ECHO_T}$archive_cmds_need_lc" >&6
7907
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7908
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7910
libname_spec='lib$name'
7918
shlibpath_overrides_runpath=unknown
7920
dynamic_linker="$host_os ld.so"
7921
sys_lib_dlsearch_path_spec="/lib /usr/lib"
7922
if test "$GCC" = yes; then
7923
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7924
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7925
# if the path contains ";" then we assume it to be the separator
7926
# otherwise default to the standard path separator (i.e. ":") - it is
7927
# assumed that no part of a normal pathname contains ";" but that should
7928
# okay in the real world where ";" in dirpaths is itself problematic.
7929
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7931
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7934
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7936
need_lib_prefix=unknown
7937
hardcode_into_libs=no
7939
# when you set need_version to no, make sure it does not cause -set_version
7940
# flags to be left without arguments
7941
need_version=unknown
7946
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7947
shlibpath_var=LIBPATH
7949
# AIX 3 has no versioning support, so we append a major version to the name.
7950
soname_spec='${libname}${release}${shared_ext}$major'
7957
hardcode_into_libs=yes
7958
if test "$host_cpu" = ia64; then
7959
# AIX 5 supports IA64
7960
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7961
shlibpath_var=LD_LIBRARY_PATH
7963
# With GCC up to 2.95.x, collect2 would create an import file
7964
# for dependence libraries. The import file would start with
7965
# the line `#! .'. This would cause the generated library to
7966
# depend on `.', always an invalid library. This was fixed in
7967
# development snapshots of GCC prior to 3.0.
7969
aix4 | aix4.[01] | aix4.[01].*)
7970
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7972
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7979
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7980
# soname into executable. Probably we can add versioning support to
7981
# collect2, so additional links can be useful in future.
7982
if test "$aix_use_runtimelinking" = yes; then
7983
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
7984
# instead of lib<name>.a to let people know that these are not
7985
# typical AIX shared libraries.
7986
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7988
# We preserve .a as extension for shared libraries through AIX4.2
7989
# and later when we are not doing run time linking.
7990
library_names_spec='${libname}${release}.a $libname.a'
7991
soname_spec='${libname}${release}${shared_ext}$major'
7993
shlibpath_var=LIBPATH
7998
library_names_spec='$libname.ixlibrary $libname.a'
7999
# Create ${libname}_ixlibrary.a entries in /sys/libs.
8000
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'
8004
library_names_spec='${libname}${shared_ext}'
8005
dynamic_linker="$host_os ld.so"
8006
shlibpath_var=LIBRARY_PATH
8012
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8013
soname_spec='${libname}${release}${shared_ext}$major'
8014
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8015
shlibpath_var=LD_LIBRARY_PATH
8016
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8017
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8018
# the default ld.so.conf also contains /usr/contrib/lib and
8019
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8020
# libtool to hard-code these into programs
8023
cygwin* | mingw* | pw32*)
8024
version_type=windows
8029
case $GCC,$host_os in
8030
yes,cygwin* | yes,mingw* | yes,pw32*)
8031
library_names_spec='$libname.dll.a'
8032
# DLL is installed to $(libdir)/../bin by postinstall_cmds
8033
postinstall_cmds='base_file=`basename \${file}`~
8034
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8035
dldir=$destdir/`dirname \$dlpath`~
8036
test -d \$dldir || mkdir -p \$dldir~
8037
$install_prog $dir/$dlname \$dldir/$dlname'
8038
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8039
dlpath=$dir/\$dldll~
8041
shlibpath_overrides_runpath=yes
8045
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
8046
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8047
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8050
# MinGW DLLs use traditional 'lib' prefix
8051
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8052
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8053
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8054
# It is most probably a Windows format PATH printed by
8055
# mingw gcc, but we are running on Cygwin. Gcc prints its search
8056
# path with ; separators, and with drive letters. We can handle the
8057
# drive letters (cygwin fileutils understands them), so leave them,
8058
# especially as we might pass files found there to a mingw objdump,
8059
# which wouldn't understand a cygwinified path. Ahh.
8060
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8062
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8066
# pw32 DLLs use 'pw' prefix rather than 'lib'
8067
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8073
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8076
dynamic_linker='Win32 ld.exe'
8077
# FIXME: first we should search . and the directory the executable is in
8081
darwin* | rhapsody*)
8082
dynamic_linker="$host_os dyld"
8086
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8087
soname_spec='${libname}${release}${major}$shared_ext'
8088
shlibpath_overrides_runpath=yes
8089
shlibpath_var=DYLD_LIBRARY_PATH
8090
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
8091
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8092
if test "$GCC" = yes; then
8093
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"`
8095
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8097
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8104
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8105
soname_spec='${libname}${release}${shared_ext}$major'
8106
shlibpath_var=LD_LIBRARY_PATH
8117
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8118
soname_spec='${libname}${release}${shared_ext}$major'
8119
shlibpath_var=LD_LIBRARY_PATH
8120
shlibpath_overrides_runpath=no
8121
hardcode_into_libs=yes
8122
dynamic_linker='GNU ld.so'
8126
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8127
version_type=freebsd-$objformat
8128
case $version_type in
8130
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8135
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8139
shlibpath_var=LD_LIBRARY_PATH
8142
shlibpath_overrides_runpath=yes
8144
freebsd3.01* | freebsdelf3.01*)
8145
shlibpath_overrides_runpath=yes
8146
hardcode_into_libs=yes
8149
shlibpath_overrides_runpath=no
8150
hardcode_into_libs=yes
8159
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8160
soname_spec='${libname}${release}${shared_ext}$major'
8161
shlibpath_var=LD_LIBRARY_PATH
8162
hardcode_into_libs=yes
8165
hpux9* | hpux10* | hpux11*)
8166
# Give a soname corresponding to the major version so that dld.sl refuses to
8167
# link against other versions.
8174
hardcode_into_libs=yes
8175
dynamic_linker="$host_os dld.so"
8176
shlibpath_var=LD_LIBRARY_PATH
8177
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8178
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8179
soname_spec='${libname}${release}${shared_ext}$major'
8180
if test "X$HPUX_IA64_MODE" = X32; then
8181
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8183
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8185
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8189
hardcode_into_libs=yes
8190
dynamic_linker="$host_os dld.sl"
8191
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8192
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8193
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8194
soname_spec='${libname}${release}${shared_ext}$major'
8195
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8196
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8200
dynamic_linker="$host_os dld.sl"
8201
shlibpath_var=SHLIB_PATH
8202
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8203
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8204
soname_spec='${libname}${release}${shared_ext}$major'
8207
# HP-UX runs *really* slowly unless shared libraries are mode 555.
8208
postinstall_cmds='chmod 555 $lib'
8211
irix5* | irix6* | nonstopux*)
8213
nonstopux*) version_type=nonstopux ;;
8215
if test "$lt_cv_prog_gnu_ld" = yes; then
8223
soname_spec='${libname}${release}${shared_ext}$major'
8224
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8226
irix5* | nonstopux*)
8230
case $LD in # libtool.m4 will add one of these switches to LD
8231
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8232
libsuff= shlibsuff= libmagic=32-bit;;
8233
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8234
libsuff=32 shlibsuff=N32 libmagic=N32;;
8235
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8236
libsuff=64 shlibsuff=64 libmagic=64-bit;;
8237
*) libsuff= shlibsuff= libmagic=never-match;;
8241
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8242
shlibpath_overrides_runpath=no
8243
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8244
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8245
hardcode_into_libs=yes
8248
# No shared lib support for Linux oldld, aout, or coff.
8249
linux*oldld* | linux*aout* | linux*coff*)
8253
# This must be Linux ELF.
8258
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8259
soname_spec='${libname}${release}${shared_ext}$major'
8260
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8261
shlibpath_var=LD_LIBRARY_PATH
8262
shlibpath_overrides_runpath=no
8263
# This implies no fast_install, which is unacceptable.
8264
# Some rework will be needed to allow for fast_install
8265
# before this can be enabled.
8266
hardcode_into_libs=yes
8268
# find out which ABI we are using
8271
x86_64*|s390x*|powerpc64*)
8272
echo '#line 8272 "configure"' > conftest.$ac_ext
8273
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8274
(eval $ac_compile) 2>&5
8276
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277
(exit $ac_status); }; then
8278
case `/usr/bin/file conftest.$ac_objext` in
8281
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8289
# Append ld.so.conf contents to the search path
8290
if test -f /etc/ld.so.conf; then
8291
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
8292
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8295
# We used to test for /lib/ld.so.1 and disable shared libraries on
8296
# powerpc, because MkLinux only supported shared libraries with the
8297
# GNU dynamic linker. Since this was broken with cross compilers,
8298
# most powerpc-linux boxes support dynamic linking these days and
8299
# people can always --disable-shared, the test was removed, and we
8300
# assume the GNU/Linux dynamic linker is in use.
8301
dynamic_linker='GNU/Linux ld.so'
8308
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8309
soname_spec='${libname}${release}${shared_ext}$major'
8310
shlibpath_var=LD_LIBRARY_PATH
8311
shlibpath_overrides_runpath=no
8312
hardcode_into_libs=yes
8313
dynamic_linker='GNU ld.so'
8320
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8321
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8322
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8323
dynamic_linker='NetBSD (a.out) ld.so'
8325
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8326
soname_spec='${libname}${release}${shared_ext}$major'
8327
dynamic_linker='NetBSD ld.elf_so'
8329
shlibpath_var=LD_LIBRARY_PATH
8330
shlibpath_overrides_runpath=yes
8331
hardcode_into_libs=yes
8336
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8337
shlibpath_var=LD_LIBRARY_PATH
8338
shlibpath_overrides_runpath=yes
8345
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8346
soname_spec='${libname}${release}${shared_ext}$major'
8347
shlibpath_var=LD_LIBRARY_PATH
8348
shlibpath_overrides_runpath=yes
8355
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8356
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8357
shlibpath_var=LD_LIBRARY_PATH
8358
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8360
openbsd2.[89] | openbsd2.[89].*)
8361
shlibpath_overrides_runpath=no
8364
shlibpath_overrides_runpath=yes
8368
shlibpath_overrides_runpath=yes
8373
libname_spec='$name'
8376
library_names_spec='$libname${shared_ext} $libname.a'
8377
dynamic_linker='OS/2 ld.exe'
8378
shlibpath_var=LIBPATH
8381
osf3* | osf4* | osf5*)
8385
soname_spec='${libname}${release}${shared_ext}$major'
8386
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8387
shlibpath_var=LD_LIBRARY_PATH
8388
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8389
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8394
soname_spec='${libname}${release}${shared_ext}$major'
8395
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8396
shlibpath_var=LD_LIBRARY_PATH
8403
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8404
soname_spec='${libname}${release}${shared_ext}$major'
8405
shlibpath_var=LD_LIBRARY_PATH
8406
shlibpath_overrides_runpath=yes
8407
hardcode_into_libs=yes
8408
# ldd complains unless libraries are executable
8409
postinstall_cmds='chmod +x $lib'
8414
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8415
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8416
shlibpath_var=LD_LIBRARY_PATH
8417
shlibpath_overrides_runpath=yes
8418
if test "$with_gnu_ld" = yes; then
8424
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8426
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8427
soname_spec='${libname}${release}${shared_ext}$major'
8428
shlibpath_var=LD_LIBRARY_PATH
8429
case $host_vendor in
8431
shlibpath_overrides_runpath=no
8433
export_dynamic_flag_spec='${wl}-Blargedynsym'
8434
runpath_var=LD_RUN_PATH
8442
shlibpath_overrides_runpath=no
8443
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8449
if test -d /usr/nec ;then
8451
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8452
soname_spec='$libname${shared_ext}.$major'
8453
shlibpath_var=LD_LIBRARY_PATH
8459
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8460
soname_spec='${libname}${release}${shared_ext}$major'
8461
shlibpath_var=LD_LIBRARY_PATH
8468
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8469
echo "${ECHO_T}$dynamic_linker" >&6
8470
test "$dynamic_linker" = no && can_build_shared=no
6169
8472
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6170
8473
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6171
8474
hardcode_action=
6172
8475
if test -n "$hardcode_libdir_flag_spec" || \
6173
test -n "$runpath_var"; then
8476
test -n "$runpath_var " || \
8477
test "X$hardcode_automatic"="Xyes" ; then
6175
8479
# We can hardcode non-existant directories.
6176
8480
if test "$hardcode_direct" != no &&
6177
8481
# If the only mechanism to avoid hardcoding is shlibpath_var, we
6178
8482
# have to relink, otherwise we might link with an installed library
6179
8483
# when we should be linking with a yet-to-be-installed one
6180
## test "$hardcode_shlibpath_var" != no &&
8484
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
6181
8485
test "$hardcode_minus_L" != no; then
6182
8486
# Linking always hardcodes the temporary library directory.
6183
8487
hardcode_action=relink
7768
cygwin* | mingw* | pw32* | os2*)
7769
cat <<'EOF' >> "${ofile}T"
7770
# This is a source program that is used to create dlls on Windows
7771
# Don't remove nor modify the starting and closing comments
7772
# /* ltdll.c starts here */
7773
# #define WIN32_LEAN_AND_MEAN
7774
# #include <windows.h>
7775
# #undef WIN32_LEAN_AND_MEAN
7776
# #include <stdio.h>
7778
# #ifndef __CYGWIN__
7779
# # ifdef __CYGWIN32__
7780
# # define __CYGWIN__ __CYGWIN32__
7784
# #ifdef __cplusplus
7787
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7788
# #ifdef __cplusplus
7793
# #include <cygwin/cygwin_dll.h>
7794
# DECLARE_CYGWIN_DLL( DllMain );
7796
# HINSTANCE __hDllInstance_base;
7799
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7801
# __hDllInstance_base = hInst;
7804
# /* ltdll.c ends here */
7805
# This is a source program that is used to create import libraries
7806
# on Windows for dlls which lack them. Don't remove nor modify the
7807
# starting and closing comments
7808
# /* impgen.c starts here */
7809
# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7811
# This file is part of GNU libtool.
7813
# This program is free software; you can redistribute it and/or modify
7814
# it under the terms of the GNU General Public License as published by
7815
# the Free Software Foundation; either version 2 of the License, or
7816
# (at your option) any later version.
7818
# This program is distributed in the hope that it will be useful,
7819
# but WITHOUT ANY WARRANTY; without even the implied warranty of
7820
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7821
# GNU General Public License for more details.
7823
# You should have received a copy of the GNU General Public License
7824
# along with this program; if not, write to the Free Software
7825
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7828
# #include <stdio.h> /* for printf() */
7829
# #include <unistd.h> /* for open(), lseek(), read() */
7830
# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7831
# #include <string.h> /* for strdup() */
7833
# /* O_BINARY isn't required (or even defined sometimes) under Unix */
7835
# #define O_BINARY 0
7838
# static unsigned int
7839
# pe_get16 (fd, offset)
7843
# unsigned char b[2];
7844
# lseek (fd, offset, SEEK_SET);
7846
# return b[0] + (b[1]<<8);
7849
# static unsigned int
7850
# pe_get32 (fd, offset)
7854
# unsigned char b[4];
7855
# lseek (fd, offset, SEEK_SET);
7857
# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7860
# static unsigned int
7864
# unsigned char *b = ptr;
7865
# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7874
# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7875
# unsigned long export_rva, export_size, nsections, secptr, expptr;
7876
# unsigned long name_rvas, nexp;
7877
# unsigned char *expdata, *erva;
7878
# char *filename, *dll_name;
7880
# filename = argv[1];
7882
# dll = open(filename, O_RDONLY|O_BINARY);
7886
# dll_name = filename;
7888
# for (i=0; filename[i]; i++)
7889
# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7890
# dll_name = filename + i +1;
7892
# pe_header_offset = pe_get32 (dll, 0x3c);
7893
# opthdr_ofs = pe_header_offset + 4 + 20;
7894
# num_entries = pe_get32 (dll, opthdr_ofs + 92);
7896
# if (num_entries < 1) /* no exports */
7899
# export_rva = pe_get32 (dll, opthdr_ofs + 96);
7900
# export_size = pe_get32 (dll, opthdr_ofs + 100);
7901
# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7902
# secptr = (pe_header_offset + 4 + 20 +
7903
# pe_get16 (dll, pe_header_offset + 4 + 16));
7906
# for (i = 0; i < nsections; i++)
7909
# unsigned long secptr1 = secptr + 40 * i;
7910
# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7911
# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7912
# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7913
# lseek(dll, secptr1, SEEK_SET);
7914
# read(dll, sname, 8);
7915
# if (vaddr <= export_rva && vaddr+vsize > export_rva)
7917
# expptr = fptr + (export_rva - vaddr);
7918
# if (export_rva + export_size > vaddr + vsize)
7919
# export_size = vsize - (export_rva - vaddr);
7924
# expdata = (unsigned char*)malloc(export_size);
7925
# lseek (dll, expptr, SEEK_SET);
7926
# read (dll, expdata, export_size);
7927
# erva = expdata - export_rva;
7929
# nexp = pe_as32 (expdata+24);
7930
# name_rvas = pe_as32 (expdata+32);
7932
# printf ("EXPORTS\n");
7933
# for (i = 0; i<nexp; i++)
7935
# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7936
# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7941
# /* impgen.c ends here */
7947
9870
# We use sed instead of cat because bash on DJGPP gets confused if
7948
9871
# if finds mixed CR/LF and LF-only lines. Since sed operates in
7949
9872
# text mode, it properly converts lines to CR/LF. This bash problem
7950
9873
# is reportedly fixed, but why not run on old versions too?
7951
sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
9874
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
7953
mv -f "${ofile}T" "$ofile" || \
7954
(rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
9876
mv -f "$cfgfile" "$ofile" || \
9877
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
7955
9878
chmod +x "$ofile"
9881
# If there is no Makefile yet, we rely on a make rule to execute
9882
# `config.status --recheck' to rerun these tests and create the
9883
# libtool script then.
9884
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9885
if test -f "$ltmain_in"; then
9886
test -f Makefile && make "$ltmain"
9892
ac_cpp='$CPP $CPPFLAGS'
9893
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9894
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9895
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9900
# Check whether --with-tags or --without-tags was given.
9901
if test "${with_tags+set}" = set; then
9902
withval="$with_tags"
9906
if test -f "$ltmain" && test -n "$tagnames"; then
9907
if test ! -f "${ofile}"; then
9908
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9909
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9912
if test -z "$LTCC"; then
9913
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9914
if test -z "$LTCC"; then
9915
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9916
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9918
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9919
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9923
# Extract list of available tagged configurations in $ofile.
9924
# Note that this assumes the entire list is on one line.
9925
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9927
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9928
for tagname in $tagnames; do
9930
# Check whether tagname contains only valid characters
9931
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9933
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9934
echo "$as_me: error: invalid tag name: $tagname" >&2;}
9935
{ (exit 1); exit 1; }; }
9939
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9941
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9942
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9943
{ (exit 1); exit 1; }; }
9946
# Update the list of available tags.
9947
if test -n "$tagname"; then
9948
echo appending configuration tag \"$tagname\" to $ofile
9952
if test -n "$CXX" && test "X$CXX" != "Xno"; then
9954
ac_cpp='$CXXCPP $CPPFLAGS'
9955
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9956
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9957
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9962
archive_cmds_need_lc_CXX=no
9963
allow_undefined_flag_CXX=
9964
always_export_symbols_CXX=no
9965
archive_expsym_cmds_CXX=
9966
export_dynamic_flag_spec_CXX=
9967
hardcode_direct_CXX=no
9968
hardcode_libdir_flag_spec_CXX=
9969
hardcode_libdir_flag_spec_ld_CXX=
9970
hardcode_libdir_separator_CXX=
9971
hardcode_minus_L_CXX=no
9972
hardcode_automatic_CXX=no
9974
module_expsym_cmds_CXX=
9975
link_all_deplibs_CXX=unknown
9976
old_archive_cmds_CXX=$old_archive_cmds
9977
no_undefined_flag_CXX=
9978
whole_archive_flag_spec_CXX=
9979
enable_shared_with_static_runtimes_CXX=no
9981
# Dependencies to place before and after the object being linked:
9983
postdep_objects_CXX=
9986
compiler_lib_search_path_CXX=
9988
# Source file extension for C++ test sources.
9991
# Object file extension for compiled C++ test sources.
9995
# Code to be used in simple compile tests
9996
lt_simple_compile_test_code="int some_variable = 0;\n"
9998
# Code to be used in simple link tests
9999
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10001
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10003
# If no C compiler was specified, use CC.
10006
# Allow CC to be a program name with arguments.
10010
# Allow CC to be a program name with arguments.
10015
lt_save_with_gnu_ld=$with_gnu_ld
10016
lt_save_path_LD=$lt_cv_path_LD
10017
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10018
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10020
unset lt_cv_prog_gnu_ld
10022
if test -n "${lt_cv_path_LDCXX+set}"; then
10023
lt_cv_path_LD=$lt_cv_path_LDCXX
10025
unset lt_cv_path_LD
10027
test -z "${LDCXX+set}" || LD=$LDCXX
10031
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
10033
# We don't want -fno-exception wen compiling C++ code, so set the
10034
# no_builtin_flag separately
10035
if test "$GXX" = yes; then
10036
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10038
lt_prog_compiler_no_builtin_flag_CXX=
10041
if test "$GXX" = yes; then
10042
# Set up default GNU C++ configuration
10045
# Check whether --with-gnu-ld or --without-gnu-ld was given.
10046
if test "${with_gnu_ld+set}" = set; then
10047
withval="$with_gnu_ld"
10048
test "$withval" = no || with_gnu_ld=yes
10053
if test "$GCC" = yes; then
10054
# Check if gcc -print-prog-name=ld gives a path.
10055
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10056
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10059
# gcc leaves a trailing carriage return which upsets mingw
10060
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10062
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10065
# Accept absolute paths.
10067
re_direlt='/[^/][^/]*/\.\./'
10068
# Canonicalize the pathname of ld
10069
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10070
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10071
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10073
test -z "$LD" && LD="$ac_prog"
10076
# If it fails, then pretend we aren't using GCC.
10080
# If it is relative, then search for the first ld in PATH.
10081
with_gnu_ld=unknown
10084
elif test "$with_gnu_ld" = yes; then
10085
echo "$as_me:$LINENO: checking for GNU ld" >&5
10086
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10088
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10089
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10091
if test "${lt_cv_path_LD+set}" = set; then
10092
echo $ECHO_N "(cached) $ECHO_C" >&6
10094
if test -z "$LD"; then
10095
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10096
for ac_dir in $PATH; do
10098
test -z "$ac_dir" && ac_dir=.
10099
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10100
lt_cv_path_LD="$ac_dir/$ac_prog"
10101
# Check to see if the program is GNU ld. I'd rather use --version,
10102
# but apparently some GNU ld's only accept -v.
10103
# Break only if it was the GNU/non-GNU ld that we prefer.
10104
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10105
*GNU* | *'with BFD'*)
10106
test "$with_gnu_ld" != no && break
10109
test "$with_gnu_ld" != yes && break
10116
lt_cv_path_LD="$LD" # Let the user override the test with a path.
10120
LD="$lt_cv_path_LD"
10121
if test -n "$LD"; then
10122
echo "$as_me:$LINENO: result: $LD" >&5
10123
echo "${ECHO_T}$LD" >&6
10125
echo "$as_me:$LINENO: result: no" >&5
10126
echo "${ECHO_T}no" >&6
10128
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10129
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10130
{ (exit 1); exit 1; }; }
10131
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10132
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10133
if test "${lt_cv_prog_gnu_ld+set}" = set; then
10134
echo $ECHO_N "(cached) $ECHO_C" >&6
10136
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
10137
case `$LD -v 2>&1 </dev/null` in
10138
*GNU* | *'with BFD'*)
10139
lt_cv_prog_gnu_ld=yes
10142
lt_cv_prog_gnu_ld=no
10146
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10147
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10148
with_gnu_ld=$lt_cv_prog_gnu_ld
10152
# Check if GNU C++ uses GNU ld as the underlying linker, since the
10153
# archiving commands below assume that GNU ld is being used.
10154
if test "$with_gnu_ld" = yes; then
10155
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10156
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'
10158
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10159
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10161
# If archive_cmds runs LD, not CC, wlarc should be empty
10162
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10163
# investigate it a little bit more. (MM)
10166
# ancient GNU ld didn't support --whole-archive et. al.
10167
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10168
grep 'no-whole-archive' > /dev/null; then
10169
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10171
whole_archive_flag_spec_CXX=
10177
# A generic and very simple default shared library creation
10178
# command for GNU C++ for the case where it uses the native
10179
# linker, instead of GNU ld. If possible, this setting should
10180
# overridden to take advantage of the native linker features on
10181
# the platform it is being used on.
10182
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10185
# Commands to make compiler produce verbose output that lists
10186
# what "hidden" libraries, object files and flags are used when
10187
# linking a shared library.
10188
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10196
# PORTME: fill in a description of your system's C++ link characteristics
10197
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10198
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10202
# FIXME: insert proper C++ library support
10206
if test "$host_cpu" = ia64; then
10207
# On IA64, the linker does run time linking by default, so we don't
10208
# have to do anything special.
10209
aix_use_runtimelinking=no
10210
exp_sym_flag='-Bexport'
10213
aix_use_runtimelinking=no
10215
# Test if we are trying to use run time linking or normal
10216
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10217
# need to do runtime linking.
10218
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10219
for ld_flag in $LDFLAGS; do
10222
aix_use_runtimelinking=yes
10229
exp_sym_flag='-bexport'
10230
no_entry_flag='-bnoentry'
10233
# When large executables or shared objects are built, AIX ld can
10234
# have problems creating the table of contents. If linking a library
10235
# or program results in "error TOC overflow" add -mminimal-toc to
10236
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10237
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10239
archive_cmds_CXX=''
10240
hardcode_direct_CXX=yes
10241
hardcode_libdir_separator_CXX=':'
10242
link_all_deplibs_CXX=yes
10244
if test "$GXX" = yes; then
10245
case $host_os in aix4.012|aix4.012.*)
10246
# We only want to do this on AIX 4.2 and lower, the check
10247
# below for broken collect2 doesn't work under 4.3+
10248
collect2name=`${CC} -print-prog-name=collect2`
10249
if test -f "$collect2name" && \
10250
strings "$collect2name" | grep resolve_lib_name >/dev/null
10252
# We have reworked collect2
10253
hardcode_direct_CXX=yes
10255
# We have old collect2
10256
hardcode_direct_CXX=unsupported
10257
# It fails to find uninstalled libraries when the uninstalled
10258
# path is not listed in the libpath. Setting hardcode_minus_L
10259
# to unsupported forces relinking
10260
hardcode_minus_L_CXX=yes
10261
hardcode_libdir_flag_spec_CXX='-L$libdir'
10262
hardcode_libdir_separator_CXX=
10265
shared_flag='-shared'
10268
if test "$host_cpu" = ia64; then
10269
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10270
# chokes on -Wl,-G. The following line is correct:
10273
if test "$aix_use_runtimelinking" = yes; then
10274
shared_flag='${wl}-G'
10276
shared_flag='${wl}-bM:SRE'
10281
# It seems that -bexpall does not export symbols beginning with
10282
# underscore (_), so it is better to generate a list of symbols to export.
10283
always_export_symbols_CXX=yes
10284
if test "$aix_use_runtimelinking" = yes; then
10285
# Warning - without using the other runtime loading flags (-brtl),
10286
# -berok will link without error, but may produce a broken library.
10287
allow_undefined_flag_CXX='-berok'
10288
# Determine the default libpath from the value encoded in an empty executable.
10289
cat >conftest.$ac_ext <<_ACEOF
10292
cat confdefs.h >>conftest.$ac_ext
10293
cat >>conftest.$ac_ext <<_ACEOF
10294
/* end confdefs.h. */
10304
rm -f conftest.$ac_objext conftest$ac_exeext
10305
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10306
(eval $ac_link) 2>conftest.er1
10308
grep -v '^ *+' conftest.er1 >conftest.err
10310
cat conftest.err >&5
10311
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312
(exit $ac_status); } &&
10313
{ ac_try='test -z "$ac_cxx_werror_flag"
10314
|| test ! -s conftest.err'
10315
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10316
(eval $ac_try) 2>&5
10318
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319
(exit $ac_status); }; } &&
10320
{ ac_try='test -s conftest$ac_exeext'
10321
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10322
(eval $ac_try) 2>&5
10324
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325
(exit $ac_status); }; }; then
10327
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10329
# Check for a 64-bit object if we didn't find anything.
10330
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; }
10333
echo "$as_me: failed program was:" >&5
10334
sed 's/^/| /' conftest.$ac_ext >&5
10337
rm -f conftest.err conftest.$ac_objext \
10338
conftest$ac_exeext conftest.$ac_ext
10339
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10341
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10343
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"
10345
if test "$host_cpu" = ia64; then
10346
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10347
allow_undefined_flag_CXX="-z nodefs"
10348
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"
10350
# Determine the default libpath from the value encoded in an empty executable.
10351
cat >conftest.$ac_ext <<_ACEOF
10354
cat confdefs.h >>conftest.$ac_ext
10355
cat >>conftest.$ac_ext <<_ACEOF
10356
/* end confdefs.h. */
10366
rm -f conftest.$ac_objext conftest$ac_exeext
10367
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10368
(eval $ac_link) 2>conftest.er1
10370
grep -v '^ *+' conftest.er1 >conftest.err
10372
cat conftest.err >&5
10373
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374
(exit $ac_status); } &&
10375
{ ac_try='test -z "$ac_cxx_werror_flag"
10376
|| test ! -s conftest.err'
10377
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10378
(eval $ac_try) 2>&5
10380
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381
(exit $ac_status); }; } &&
10382
{ ac_try='test -s conftest$ac_exeext'
10383
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10384
(eval $ac_try) 2>&5
10386
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387
(exit $ac_status); }; }; then
10389
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10391
# Check for a 64-bit object if we didn't find anything.
10392
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; }
10395
echo "$as_me: failed program was:" >&5
10396
sed 's/^/| /' conftest.$ac_ext >&5
10399
rm -f conftest.err conftest.$ac_objext \
10400
conftest$ac_exeext conftest.$ac_ext
10401
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10403
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10404
# Warning - without using the other run time loading flags,
10405
# -berok will link without error, but may produce a broken library.
10406
no_undefined_flag_CXX=' ${wl}-bernotok'
10407
allow_undefined_flag_CXX=' ${wl}-berok'
10408
# -bexpall does not export symbols beginning with underscore (_)
10409
always_export_symbols_CXX=yes
10410
# Exported symbols can be pulled into shared objects from archives
10411
whole_archive_flag_spec_CXX=' '
10412
archive_cmds_need_lc_CXX=yes
10413
# This is similar to how AIX traditionally builds it's shared libraries.
10414
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'
10419
case $cc_basename in
10421
# FIXME: insert proper C++ library support
10427
cygwin* | mingw* | pw32*)
10428
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10429
# as there is no search path for DLLs.
10430
hardcode_libdir_flag_spec_CXX='-L$libdir'
10431
allow_undefined_flag_CXX=unsupported
10432
always_export_symbols_CXX=no
10433
enable_shared_with_static_runtimes_CXX=yes
10435
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10436
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'
10437
# If the export-symbols file already is a .def file (1st line
10438
# is EXPORTS), use it as is; otherwise, prepend...
10439
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10440
cp $export_symbols $output_objdir/$soname.def;
10442
echo EXPORTS > $output_objdir/$soname.def;
10443
cat $export_symbols >> $output_objdir/$soname.def;
10445
$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'
10451
darwin* | rhapsody*)
10452
if test "$GXX" = yes; then
10453
archive_cmds_need_lc_CXX=no
10455
rhapsody* | darwin1.[012])
10456
allow_undefined_flag_CXX='-undefined suppress'
10459
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10460
allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10462
case ${MACOSX_DEPLOYMENT_TARGET} in
10464
allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10467
allow_undefined_flag_CXX='-undefined dynamic_lookup'
10473
lt_int_apple_cc_single_mod=no
10474
output_verbose_link_cmd='echo'
10475
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10476
lt_int_apple_cc_single_mod=yes
10478
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10479
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10481
archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10483
module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10485
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10486
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10487
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}'
10489
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10491
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}'
10492
hardcode_direct_CXX=no
10493
hardcode_automatic_CXX=yes
10494
hardcode_shlibpath_var_CXX=unsupported
10495
whole_archive_flag_spec_CXX='-all_load $convenience'
10496
link_all_deplibs_CXX=yes
10503
case $cc_basename in
10505
# FIXME: insert proper C++ library support
10509
# Green Hills C++ Compiler
10510
# FIXME: insert proper C++ library support
10514
# FIXME: insert proper C++ library support
10520
# C++ shared libraries reported to be fairly broken before switch to ELF
10524
archive_cmds_need_lc_CXX=no
10526
freebsd* | kfreebsd*-gnu)
10527
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10534
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10535
hardcode_libdir_separator_CXX=:
10536
export_dynamic_flag_spec_CXX='${wl}-E'
10537
hardcode_direct_CXX=yes
10538
hardcode_minus_L_CXX=yes # Not in the search PATH,
10539
# but as the default
10540
# location of the library.
10542
case $cc_basename in
10544
# FIXME: insert proper C++ library support
10548
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'
10549
# Commands to make compiler produce verbose output that lists
10550
# what "hidden" libraries, object files and flags are used when
10551
# linking a shared library.
10553
# There doesn't appear to be a way to prevent this compiler from
10554
# explicitly linking system object files so we need to strip them
10555
# from the output so that they don't get included in the library
10557
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'
10560
if test "$GXX" = yes; then
10561
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'
10563
# FIXME: insert proper C++ library support
10570
if test $with_gnu_ld = no; then
10571
case "$host_cpu" in
10573
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10574
hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10575
hardcode_libdir_separator_CXX=:
10578
hardcode_libdir_flag_spec_CXX='-L$libdir'
10581
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10582
hardcode_libdir_separator_CXX=:
10583
export_dynamic_flag_spec_CXX='${wl}-E'
10587
case "$host_cpu" in
10589
hardcode_direct_CXX=no
10590
hardcode_shlibpath_var_CXX=no
10593
hardcode_direct_CXX=no
10594
hardcode_shlibpath_var_CXX=no
10595
hardcode_minus_L_CXX=yes # Not in the search PATH,
10596
# but as the default
10597
# location of the library.
10600
hardcode_direct_CXX=yes
10601
hardcode_minus_L_CXX=yes # Not in the search PATH,
10602
# but as the default
10603
# location of the library.
10607
case $cc_basename in
10609
# FIXME: insert proper C++ library support
10613
case "$host_cpu" in
10615
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10618
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10621
# Commands to make compiler produce verbose output that lists
10622
# what "hidden" libraries, object files and flags are used when
10623
# linking a shared library.
10625
# There doesn't appear to be a way to prevent this compiler from
10626
# explicitly linking system object files so we need to strip them
10627
# from the output so that they don't get included in the library
10629
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'
10632
if test "$GXX" = yes; then
10633
if test $with_gnu_ld = no; then
10634
case "$host_cpu" in
10636
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10639
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'
10644
# FIXME: insert proper C++ library support
10651
case $cc_basename in
10654
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 ${objdir}/so_locations -o $lib'
10656
# Archives containing C++ object files must be created using
10657
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
10658
# necessary to make sure instantiated templates are included
10660
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10663
if test "$GXX" = yes; then
10664
if test "$with_gnu_ld" = no; then
10665
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}${objdir}/so_locations -o $lib'
10667
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'
10670
link_all_deplibs_CXX=yes
10673
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10674
hardcode_libdir_separator_CXX=:
10677
case $cc_basename in
10679
# Kuck and Associates, Inc. (KAI) C++ Compiler
10681
# KCC will only create a shared library if the output file
10682
# ends with ".so" (or ".sl" for HP-UX), so rename the library
10683
# to its proper name (with version) after linking.
10684
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'
10685
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'
10686
# Commands to make compiler produce verbose output that lists
10687
# what "hidden" libraries, object files and flags are used when
10688
# linking a shared library.
10690
# There doesn't appear to be a way to prevent this compiler from
10691
# explicitly linking system object files so we need to strip them
10692
# from the output so that they don't get included in the library
10694
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'
10696
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10697
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10699
# Archives containing C++ object files must be created using
10700
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10701
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10706
archive_cmds_need_lc_CXX=no
10707
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10708
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'
10709
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10710
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10711
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10715
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10716
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'
10718
runpath_var=LD_RUN_PATH
10719
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10720
hardcode_libdir_separator_CXX=:
10722
# Commands to make compiler produce verbose output that lists
10723
# what "hidden" libraries, object files and flags are used when
10724
# linking a shared library.
10726
# There doesn't appear to be a way to prevent this compiler from
10727
# explicitly linking system object files so we need to strip them
10728
# from the output so that they don't get included in the library
10730
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'
10735
# FIXME: insert proper C++ library support
10739
# FIXME: insert proper C++ library support
10743
case $cc_basename in
10745
# FIXME: insert proper C++ library support
10749
# FIXME: insert proper C++ library support
10755
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10756
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10758
hardcode_libdir_flag_spec_CXX='-R$libdir'
10759
hardcode_direct_CXX=yes
10760
hardcode_shlibpath_var_CXX=no
10762
# Workaround some broken pre-1.5 toolchains
10763
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10766
case $cc_basename in
10768
# Kuck and Associates, Inc. (KAI) C++ Compiler
10770
# KCC will only create a shared library if the output file
10771
# ends with ".so" (or ".sl" for HP-UX), so rename the library
10772
# to its proper name (with version) after linking.
10773
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'
10775
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10776
hardcode_libdir_separator_CXX=:
10778
# Archives containing C++ object files must be created using
10779
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10780
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10784
# Rational C++ 2.4.1
10785
# FIXME: insert proper C++ library support
10789
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10790
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 ${objdir}/so_locations -o $lib'
10792
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10793
hardcode_libdir_separator_CXX=:
10795
# Commands to make compiler produce verbose output that lists
10796
# what "hidden" libraries, object files and flags are used when
10797
# linking a shared library.
10799
# There doesn't appear to be a way to prevent this compiler from
10800
# explicitly linking system object files so we need to strip them
10801
# from the output so that they don't get included in the library
10803
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'
10806
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10807
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10808
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}${objdir}/so_locations -o $lib'
10810
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10811
hardcode_libdir_separator_CXX=:
10813
# Commands to make compiler produce verbose output that lists
10814
# what "hidden" libraries, object files and flags are used when
10815
# linking a shared library.
10816
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10819
# FIXME: insert proper C++ library support
10826
case $cc_basename in
10828
# Kuck and Associates, Inc. (KAI) C++ Compiler
10830
# KCC will only create a shared library if the output file
10831
# ends with ".so" (or ".sl" for HP-UX), so rename the library
10832
# to its proper name (with version) after linking.
10833
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'
10835
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10836
hardcode_libdir_separator_CXX=:
10838
# Archives containing C++ object files must be created using
10839
# the KAI C++ compiler.
10840
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10843
# Rational C++ 2.4.1
10844
# FIXME: insert proper C++ library support
10848
allow_undefined_flag_CXX=' -expect_unresolved \*'
10849
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 ${objdir}/so_locations -o $lib'
10850
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10851
echo "-hidden">> $lib.exp~
10852
$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 $objdir/so_locations -o $lib~
10855
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10856
hardcode_libdir_separator_CXX=:
10858
# Commands to make compiler produce verbose output that lists
10859
# what "hidden" libraries, object files and flags are used when
10860
# linking a shared library.
10862
# There doesn't appear to be a way to prevent this compiler from
10863
# explicitly linking system object files so we need to strip them
10864
# from the output so that they don't get included in the library
10866
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'
10869
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10870
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10871
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}${objdir}/so_locations -o $lib'
10873
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10874
hardcode_libdir_separator_CXX=:
10876
# Commands to make compiler produce verbose output that lists
10877
# what "hidden" libraries, object files and flags are used when
10878
# linking a shared library.
10879
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10882
# FIXME: insert proper C++ library support
10889
# FIXME: insert proper C++ library support
10893
archive_cmds_need_lc_CXX=no
10894
case $cc_basename in
10896
# FIXME: insert proper C++ library support
10900
# FIXME: insert proper C++ library support
10906
case $cc_basename in
10909
# FIXME: insert proper C++ library support
10914
# FIXME: insert proper C++ library support
10918
# FIXME: insert proper C++ library support
10924
case $cc_basename in
10926
# Sun C++ 4.2, 5.x and Centerline C++
10927
no_undefined_flag_CXX=' -zdefs'
10928
archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10929
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10930
$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'
10932
hardcode_libdir_flag_spec_CXX='-R$libdir'
10933
hardcode_shlibpath_var_CXX=no
10935
solaris2.0-5 | solaris2.0-5.*) ;;
10937
# The C++ compiler is used as linker so we must use $wl
10938
# flag to pass the commands to the underlying system
10940
# Supported since Solaris 2.6 (maybe 2.5.1?)
10941
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10944
link_all_deplibs_CXX=yes
10946
# Commands to make compiler produce verbose output that lists
10947
# what "hidden" libraries, object files and flags are used when
10948
# linking a shared library.
10950
# There doesn't appear to be a way to prevent this compiler from
10951
# explicitly linking system object files so we need to strip them
10952
# from the output so that they don't get included in the library
10954
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'
10956
# Archives containing C++ object files must be created using
10957
# "CC -xar", where "CC" is the Sun C++ compiler. This is
10958
# necessary to make sure instantiated templates are included
10960
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10963
# Green Hills C++ Compiler
10964
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10966
# The C++ compiler must be used to create the archive.
10967
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10970
# GNU C++ compiler with Solaris linker
10971
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10972
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10973
if $CC --version | grep -v '^2\.7' > /dev/null; then
10974
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10975
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10976
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10978
# Commands to make compiler produce verbose output that lists
10979
# what "hidden" libraries, object files and flags are used when
10980
# linking a shared library.
10981
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10983
# g++ 2.7 appears to require `-G' NOT `-shared' on this
10985
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10986
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10987
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10989
# Commands to make compiler produce verbose output that lists
10990
# what "hidden" libraries, object files and flags are used when
10991
# linking a shared library.
10992
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10995
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11000
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11001
archive_cmds_need_lc_CXX=no
11004
case $cc_basename in
11006
# NonStop-UX NCC 3.20
11007
# FIXME: insert proper C++ library support
11011
# FIXME: insert proper C++ library support
11017
# FIXME: insert proper C++ library support
11021
# FIXME: insert proper C++ library support
11025
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11026
echo "${ECHO_T}$ld_shlibs_CXX" >&6
11027
test "$ld_shlibs_CXX" = no && can_build_shared=no
11033
cat > conftest.$ac_ext <<EOF
11037
Foo (void) { a = 0; }
11043
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11044
(eval $ac_compile) 2>&5
11046
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047
(exit $ac_status); }; then
11048
# Parse the compiler output and extract the necessary
11049
# objects, libraries and library flags.
11051
# Sentinel used to keep track of whether or not we are before
11052
# the conftest object file.
11053
pre_test_object_deps_done=no
11055
# The `*' in the case matches for architectures that use `case' in
11056
# $output_verbose_cmd can trigger glob expansion during the loop
11057
# eval without this substitution.
11058
output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11060
for p in `eval $output_verbose_link_cmd`; do
11064
# Some compilers place space between "-{L,R}" and the path.
11065
# Remove the space.
11066
if test $p = "-L" \
11067
|| test $p = "-R"; then
11074
if test "$pre_test_object_deps_done" = no; then
11077
# Internal compiler library paths should come after those
11078
# provided the user. The postdeps already come after the
11079
# user supplied libs so there is no need to process them.
11080
if test -z "$compiler_lib_search_path_CXX"; then
11081
compiler_lib_search_path_CXX="${prev}${p}"
11083
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11086
# The "-l" case would never come before the object being
11087
# linked, so don't bother handling this case.
11090
if test -z "$postdeps_CXX"; then
11091
postdeps_CXX="${prev}${p}"
11093
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11099
# This assumes that the test object file only shows up
11100
# once in the compiler output.
11101
if test "$p" = "conftest.$objext"; then
11102
pre_test_object_deps_done=yes
11106
if test "$pre_test_object_deps_done" = no; then
11107
if test -z "$predep_objects_CXX"; then
11108
predep_objects_CXX="$p"
11110
predep_objects_CXX="$predep_objects_CXX $p"
11113
if test -z "$postdep_objects_CXX"; then
11114
postdep_objects_CXX="$p"
11116
postdep_objects_CXX="$postdep_objects_CXX $p"
11121
*) ;; # Ignore the rest.
11129
echo "libtool.m4: error: problem compiling CXX test program"
11132
$rm -f confest.$objext
11134
case " $postdeps_CXX " in
11135
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11138
lt_prog_compiler_wl_CXX=
11139
lt_prog_compiler_pic_CXX=
11140
lt_prog_compiler_static_CXX=
11142
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11143
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11145
# C++ specific cases for pic, static, wl, etc.
11146
if test "$GXX" = yes; then
11147
lt_prog_compiler_wl_CXX='-Wl,'
11148
lt_prog_compiler_static_CXX='-static'
11152
# All AIX code is PIC.
11153
if test "$host_cpu" = ia64; then
11154
# AIX 5 now supports IA64 processor
11155
lt_prog_compiler_static_CXX='-Bstatic'
11159
# FIXME: we need at least 68020 code to build shared libraries, but
11160
# adding the `-m68020' flag to GCC prevents building anything better,
11162
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11164
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11165
# PIC is the default for these OSes.
11167
mingw* | os2* | pw32*)
11168
# This hack is so that the source file can tell whether it is being
11169
# built for inclusion in a dll (and should export symbols for example).
11170
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11172
darwin* | rhapsody*)
11173
# PIC is the default on this platform
11174
# Common symbols not allowed in MH_DYLIB files
11175
lt_prog_compiler_pic_CXX='-fno-common'
11178
# DJGPP does not support shared libraries at all
11179
lt_prog_compiler_pic_CXX=
11182
if test -d /usr/nec; then
11183
lt_prog_compiler_pic_CXX=-Kconform_pic
11187
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11188
# not for PA HP-UX.
11189
case "$host_cpu" in
11193
lt_prog_compiler_pic_CXX='-fPIC'
11198
lt_prog_compiler_pic_CXX='-fPIC'
11204
# All AIX code is PIC.
11205
if test "$host_cpu" = ia64; then
11206
# AIX 5 now supports IA64 processor
11207
lt_prog_compiler_static_CXX='-Bstatic'
11209
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11213
case $cc_basename in
11215
# Green Hills C++ Compiler
11216
# _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"
11221
case $cc_basename in
11223
lt_prog_compiler_pic_CXX='-KPIC'
11226
# Green Hills C++ Compiler
11227
lt_prog_compiler_pic_CXX='-pic'
11233
freebsd* | kfreebsd*-gnu)
11234
# FreeBSD uses GNU C++
11236
hpux9* | hpux10* | hpux11*)
11237
case $cc_basename in
11239
lt_prog_compiler_wl_CXX='-Wl,'
11240
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11241
if test "$host_cpu" != ia64; then
11242
lt_prog_compiler_pic_CXX='+Z'
11246
lt_prog_compiler_wl_CXX='-Wl,'
11247
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11248
case "$host_cpu" in
11253
lt_prog_compiler_pic_CXX='+Z'
11261
irix5* | irix6* | nonstopux*)
11262
case $cc_basename in
11264
lt_prog_compiler_wl_CXX='-Wl,'
11265
lt_prog_compiler_static_CXX='-non_shared'
11266
# CC pic flag -KPIC is the default.
11273
case $cc_basename in
11276
lt_prog_compiler_wl_CXX='--backend -Wl,'
11277
lt_prog_compiler_pic_CXX='-fPIC'
11281
lt_prog_compiler_wl_CXX='-Wl,'
11282
lt_prog_compiler_pic_CXX='-KPIC'
11283
lt_prog_compiler_static_CXX='-static'
11287
# Make sure the PIC flag is empty. It appears that all Alpha
11288
# Linux and Compaq Tru64 Unix objects are PIC.
11289
lt_prog_compiler_pic_CXX=
11290
lt_prog_compiler_static_CXX='-non_shared'
11301
case $cc_basename in
11303
lt_prog_compiler_pic_CXX='-W c,exportall'
11311
osf3* | osf4* | osf5*)
11312
case $cc_basename in
11314
lt_prog_compiler_wl_CXX='--backend -Wl,'
11317
# Rational C++ 2.4.1
11318
lt_prog_compiler_pic_CXX='-pic'
11321
# Digital/Compaq C++
11322
lt_prog_compiler_wl_CXX='-Wl,'
11323
# Make sure the PIC flag is empty. It appears that all Alpha
11324
# Linux and Compaq Tru64 Unix objects are PIC.
11325
lt_prog_compiler_pic_CXX=
11326
lt_prog_compiler_static_CXX='-non_shared'
11335
case $cc_basename in
11337
lt_prog_compiler_pic_CXX='-fPIC'
11344
case $cc_basename in
11346
# Sun C++ 4.2, 5.x and Centerline C++
11347
lt_prog_compiler_pic_CXX='-KPIC'
11348
lt_prog_compiler_static_CXX='-Bstatic'
11349
lt_prog_compiler_wl_CXX='-Qoption ld '
11352
# Green Hills C++ Compiler
11353
lt_prog_compiler_pic_CXX='-PIC'
11360
case $cc_basename in
11363
lt_prog_compiler_pic_CXX='-pic'
11364
lt_prog_compiler_static_CXX='-Bstatic'
11368
lt_prog_compiler_pic_CXX='-pic'
11375
case $cc_basename in
11377
# NonStop-UX NCC 3.20
11378
lt_prog_compiler_pic_CXX='-KPIC'
11389
lt_prog_compiler_can_build_shared_CXX=no
11394
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11395
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11398
# Check to make sure the PIC flag actually works.
11400
if test -n "$lt_prog_compiler_pic_CXX"; then
11402
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11403
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11404
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11405
echo $ECHO_N "(cached) $ECHO_C" >&6
11407
lt_prog_compiler_pic_works_CXX=no
11408
ac_outfile=conftest.$ac_objext
11409
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11410
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11411
# Insert the option either (1) after the last *FLAGS variable, or
11412
# (2) before a word containing "conftest.", or (3) at the end.
11413
# Note that $ac_compile itself does not contain backslashes and begins
11414
# with a dollar sign (not a hyphen), so the echo should work correctly.
11415
# The option is referenced via a variable to avoid confusing sed.
11416
lt_compile=`echo "$ac_compile" | $SED \
11417
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11418
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11419
-e 's:$: $lt_compiler_flag:'`
11420
(eval echo "\"\$as_me:11420: $lt_compile\"" >&5)
11421
(eval "$lt_compile" 2>conftest.err)
11423
cat conftest.err >&5
11424
echo "$as_me:11424: \$? = $ac_status" >&5
11425
if (exit $ac_status) && test -s "$ac_outfile"; then
11426
# The compiler can only warn and ignore the option if not recognized
11427
# So say no if there are warnings
11428
if test ! -s conftest.err; then
11429
lt_prog_compiler_pic_works_CXX=yes
11435
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11436
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11438
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11439
case $lt_prog_compiler_pic_CXX in
11441
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11444
lt_prog_compiler_pic_CXX=
11445
lt_prog_compiler_can_build_shared_CXX=no
11450
# For platforms which do not support PIC, -DPIC is meaningless:
11452
lt_prog_compiler_pic_CXX=
11455
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11459
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11460
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11461
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11462
echo $ECHO_N "(cached) $ECHO_C" >&6
11464
lt_cv_prog_compiler_c_o_CXX=no
11465
$rm -r conftest 2>/dev/null
11469
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11471
lt_compiler_flag="-o out/conftest2.$ac_objext"
11472
# Insert the option either (1) after the last *FLAGS variable, or
11473
# (2) before a word containing "conftest.", or (3) at the end.
11474
# Note that $ac_compile itself does not contain backslashes and begins
11475
# with a dollar sign (not a hyphen), so the echo should work correctly.
11476
lt_compile=`echo "$ac_compile" | $SED \
11477
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11478
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11479
-e 's:$: $lt_compiler_flag:'`
11480
(eval echo "\"\$as_me:11480: $lt_compile\"" >&5)
11481
(eval "$lt_compile" 2>out/conftest.err)
11483
cat out/conftest.err >&5
11484
echo "$as_me:11484: \$? = $ac_status" >&5
11485
if (exit $ac_status) && test -s out/conftest2.$ac_objext
11487
# The compiler can only warn and ignore the option if not recognized
11488
# So say no if there are warnings
11489
if test ! -s out/conftest.err; then
11490
lt_cv_prog_compiler_c_o_CXX=yes
11495
# SGI C++ compiler will create directory out/ii_files/ for
11496
# template instantiation
11497
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11498
$rm out/* && rmdir out
11504
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11505
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11508
hard_links="nottested"
11509
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11510
# do not overwrite the value of need_locks provided by the user
11511
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11512
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11515
ln conftest.a conftest.b 2>/dev/null && hard_links=no
11517
ln conftest.a conftest.b 2>&5 || hard_links=no
11518
ln conftest.a conftest.b 2>/dev/null && hard_links=no
11519
echo "$as_me:$LINENO: result: $hard_links" >&5
11520
echo "${ECHO_T}$hard_links" >&6
11521
if test "$hard_links" = no; then
11522
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11523
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11530
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11531
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11533
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11536
# If we're using GNU nm, then we don't want the "-C" option.
11537
# -C means demangle to AIX nm, but means don't demangle with GNU nm
11538
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11539
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'
11541
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'
11545
export_symbols_cmds_CXX="$ltdll_cmds"
11548
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11551
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11555
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11556
echo "${ECHO_T}$ld_shlibs_CXX" >&6
11557
test "$ld_shlibs_CXX" = no && can_build_shared=no
11559
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11560
if test "$GCC" = yes; then
11561
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11565
# Do we need to explicitly link libc?
11567
case "x$archive_cmds_need_lc_CXX" in
11569
# Assume -lc should be added
11570
archive_cmds_need_lc_CXX=yes
11572
if test "$enable_shared" = yes && test "$GCC" = yes; then
11573
case $archive_cmds_CXX in
11575
# FIXME: we may have to deal with multi-command sequences.
11578
# Test whether the compiler implicitly links with -lc since on some
11579
# systems, -lgcc has to come before -lc. If gcc already passes -lc
11580
# to ld, don't add -lc before -lgcc.
11581
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11582
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11584
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11586
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11587
(eval $ac_compile) 2>&5
11589
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11590
(exit $ac_status); } 2>conftest.err; then
11593
libobjs=conftest.$ac_objext
11595
wl=$lt_prog_compiler_wl_CXX
11601
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11602
allow_undefined_flag_CXX=
11603
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11604
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11606
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607
(exit $ac_status); }
11609
archive_cmds_need_lc_CXX=no
11611
archive_cmds_need_lc_CXX=yes
11613
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11615
cat conftest.err 1>&5
11618
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11619
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11626
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11627
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11628
library_names_spec=
11629
libname_spec='lib$name'
11633
postuninstall_cmds=
11637
shlibpath_overrides_runpath=unknown
11639
dynamic_linker="$host_os ld.so"
11640
sys_lib_dlsearch_path_spec="/lib /usr/lib"
11641
if test "$GCC" = yes; then
11642
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11643
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11644
# if the path contains ";" then we assume it to be the separator
11645
# otherwise default to the standard path separator (i.e. ":") - it is
11646
# assumed that no part of a normal pathname contains ";" but that should
11647
# okay in the real world where ";" in dirpaths is itself problematic.
11648
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11650
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11653
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11655
need_lib_prefix=unknown
11656
hardcode_into_libs=no
11658
# when you set need_version to no, make sure it does not cause -set_version
11659
# flags to be left without arguments
11660
need_version=unknown
11665
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11666
shlibpath_var=LIBPATH
11668
# AIX 3 has no versioning support, so we append a major version to the name.
11669
soname_spec='${libname}${release}${shared_ext}$major'
11676
hardcode_into_libs=yes
11677
if test "$host_cpu" = ia64; then
11678
# AIX 5 supports IA64
11679
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11680
shlibpath_var=LD_LIBRARY_PATH
11682
# With GCC up to 2.95.x, collect2 would create an import file
11683
# for dependence libraries. The import file would start with
11684
# the line `#! .'. This would cause the generated library to
11685
# depend on `.', always an invalid library. This was fixed in
11686
# development snapshots of GCC prior to 3.0.
11688
aix4 | aix4.[01] | aix4.[01].*)
11689
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11691
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11694
can_build_shared=no
11698
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11699
# soname into executable. Probably we can add versioning support to
11700
# collect2, so additional links can be useful in future.
11701
if test "$aix_use_runtimelinking" = yes; then
11702
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
11703
# instead of lib<name>.a to let people know that these are not
11704
# typical AIX shared libraries.
11705
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11707
# We preserve .a as extension for shared libraries through AIX4.2
11708
# and later when we are not doing run time linking.
11709
library_names_spec='${libname}${release}.a $libname.a'
11710
soname_spec='${libname}${release}${shared_ext}$major'
11712
shlibpath_var=LIBPATH
11717
library_names_spec='$libname.ixlibrary $libname.a'
11718
# Create ${libname}_ixlibrary.a entries in /sys/libs.
11719
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'
11723
library_names_spec='${libname}${shared_ext}'
11724
dynamic_linker="$host_os ld.so"
11725
shlibpath_var=LIBRARY_PATH
11731
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11732
soname_spec='${libname}${release}${shared_ext}$major'
11733
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11734
shlibpath_var=LD_LIBRARY_PATH
11735
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11736
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11737
# the default ld.so.conf also contains /usr/contrib/lib and
11738
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11739
# libtool to hard-code these into programs
11742
cygwin* | mingw* | pw32*)
11743
version_type=windows
11748
case $GCC,$host_os in
11749
yes,cygwin* | yes,mingw* | yes,pw32*)
11750
library_names_spec='$libname.dll.a'
11751
# DLL is installed to $(libdir)/../bin by postinstall_cmds
11752
postinstall_cmds='base_file=`basename \${file}`~
11753
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11754
dldir=$destdir/`dirname \$dlpath`~
11755
test -d \$dldir || mkdir -p \$dldir~
11756
$install_prog $dir/$dlname \$dldir/$dlname'
11757
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11758
dlpath=$dir/\$dldll~
11760
shlibpath_overrides_runpath=yes
11764
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
11765
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11766
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11769
# MinGW DLLs use traditional 'lib' prefix
11770
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11771
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11772
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11773
# It is most probably a Windows format PATH printed by
11774
# mingw gcc, but we are running on Cygwin. Gcc prints its search
11775
# path with ; separators, and with drive letters. We can handle the
11776
# drive letters (cygwin fileutils understands them), so leave them,
11777
# especially as we might pass files found there to a mingw objdump,
11778
# which wouldn't understand a cygwinified path. Ahh.
11779
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11781
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11785
# pw32 DLLs use 'pw' prefix rather than 'lib'
11786
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11792
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11795
dynamic_linker='Win32 ld.exe'
11796
# FIXME: first we should search . and the directory the executable is in
11800
darwin* | rhapsody*)
11801
dynamic_linker="$host_os dyld"
11802
version_type=darwin
11805
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11806
soname_spec='${libname}${release}${major}$shared_ext'
11807
shlibpath_overrides_runpath=yes
11808
shlibpath_var=DYLD_LIBRARY_PATH
11809
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11810
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11811
if test "$GCC" = yes; then
11812
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"`
11814
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11816
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11823
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11824
soname_spec='${libname}${release}${shared_ext}$major'
11825
shlibpath_var=LD_LIBRARY_PATH
11836
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11837
soname_spec='${libname}${release}${shared_ext}$major'
11838
shlibpath_var=LD_LIBRARY_PATH
11839
shlibpath_overrides_runpath=no
11840
hardcode_into_libs=yes
11841
dynamic_linker='GNU ld.so'
11845
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11846
version_type=freebsd-$objformat
11847
case $version_type in
11849
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11854
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11858
shlibpath_var=LD_LIBRARY_PATH
11861
shlibpath_overrides_runpath=yes
11863
freebsd3.01* | freebsdelf3.01*)
11864
shlibpath_overrides_runpath=yes
11865
hardcode_into_libs=yes
11868
shlibpath_overrides_runpath=no
11869
hardcode_into_libs=yes
11878
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11879
soname_spec='${libname}${release}${shared_ext}$major'
11880
shlibpath_var=LD_LIBRARY_PATH
11881
hardcode_into_libs=yes
11884
hpux9* | hpux10* | hpux11*)
11885
# Give a soname corresponding to the major version so that dld.sl refuses to
11886
# link against other versions.
11890
case "$host_cpu" in
11893
hardcode_into_libs=yes
11894
dynamic_linker="$host_os dld.so"
11895
shlibpath_var=LD_LIBRARY_PATH
11896
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11897
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11898
soname_spec='${libname}${release}${shared_ext}$major'
11899
if test "X$HPUX_IA64_MODE" = X32; then
11900
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11902
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11904
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11908
hardcode_into_libs=yes
11909
dynamic_linker="$host_os dld.sl"
11910
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11911
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11912
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11913
soname_spec='${libname}${release}${shared_ext}$major'
11914
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11915
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11919
dynamic_linker="$host_os dld.sl"
11920
shlibpath_var=SHLIB_PATH
11921
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11922
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11923
soname_spec='${libname}${release}${shared_ext}$major'
11926
# HP-UX runs *really* slowly unless shared libraries are mode 555.
11927
postinstall_cmds='chmod 555 $lib'
11930
irix5* | irix6* | nonstopux*)
11932
nonstopux*) version_type=nonstopux ;;
11934
if test "$lt_cv_prog_gnu_ld" = yes; then
11942
soname_spec='${libname}${release}${shared_ext}$major'
11943
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11945
irix5* | nonstopux*)
11946
libsuff= shlibsuff=
11949
case $LD in # libtool.m4 will add one of these switches to LD
11950
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11951
libsuff= shlibsuff= libmagic=32-bit;;
11952
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11953
libsuff=32 shlibsuff=N32 libmagic=N32;;
11954
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11955
libsuff=64 shlibsuff=64 libmagic=64-bit;;
11956
*) libsuff= shlibsuff= libmagic=never-match;;
11960
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11961
shlibpath_overrides_runpath=no
11962
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11963
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11964
hardcode_into_libs=yes
11967
# No shared lib support for Linux oldld, aout, or coff.
11968
linux*oldld* | linux*aout* | linux*coff*)
11972
# This must be Linux ELF.
11977
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11978
soname_spec='${libname}${release}${shared_ext}$major'
11979
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11980
shlibpath_var=LD_LIBRARY_PATH
11981
shlibpath_overrides_runpath=no
11982
# This implies no fast_install, which is unacceptable.
11983
# Some rework will be needed to allow for fast_install
11984
# before this can be enabled.
11985
hardcode_into_libs=yes
11987
# find out which ABI we are using
11989
case "$host_cpu" in
11990
x86_64*|s390x*|powerpc64*)
11991
echo '#line 11991 "configure"' > conftest.$ac_ext
11992
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11993
(eval $ac_compile) 2>&5
11995
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11996
(exit $ac_status); }; then
11997
case `/usr/bin/file conftest.$ac_objext` in
12000
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12008
# Append ld.so.conf contents to the search path
12009
if test -f /etc/ld.so.conf; then
12010
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
12011
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12014
# We used to test for /lib/ld.so.1 and disable shared libraries on
12015
# powerpc, because MkLinux only supported shared libraries with the
12016
# GNU dynamic linker. Since this was broken with cross compilers,
12017
# most powerpc-linux boxes support dynamic linking these days and
12018
# people can always --disable-shared, the test was removed, and we
12019
# assume the GNU/Linux dynamic linker is in use.
12020
dynamic_linker='GNU/Linux ld.so'
12027
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12028
soname_spec='${libname}${release}${shared_ext}$major'
12029
shlibpath_var=LD_LIBRARY_PATH
12030
shlibpath_overrides_runpath=no
12031
hardcode_into_libs=yes
12032
dynamic_linker='GNU ld.so'
12039
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12040
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12041
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12042
dynamic_linker='NetBSD (a.out) ld.so'
12044
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12045
soname_spec='${libname}${release}${shared_ext}$major'
12046
dynamic_linker='NetBSD ld.elf_so'
12048
shlibpath_var=LD_LIBRARY_PATH
12049
shlibpath_overrides_runpath=yes
12050
hardcode_into_libs=yes
12055
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12056
shlibpath_var=LD_LIBRARY_PATH
12057
shlibpath_overrides_runpath=yes
12064
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12065
soname_spec='${libname}${release}${shared_ext}$major'
12066
shlibpath_var=LD_LIBRARY_PATH
12067
shlibpath_overrides_runpath=yes
12074
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12075
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12076
shlibpath_var=LD_LIBRARY_PATH
12077
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12079
openbsd2.[89] | openbsd2.[89].*)
12080
shlibpath_overrides_runpath=no
12083
shlibpath_overrides_runpath=yes
12087
shlibpath_overrides_runpath=yes
12092
libname_spec='$name'
12095
library_names_spec='$libname${shared_ext} $libname.a'
12096
dynamic_linker='OS/2 ld.exe'
12097
shlibpath_var=LIBPATH
12100
osf3* | osf4* | osf5*)
12104
soname_spec='${libname}${release}${shared_ext}$major'
12105
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12106
shlibpath_var=LD_LIBRARY_PATH
12107
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12108
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12113
soname_spec='${libname}${release}${shared_ext}$major'
12114
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12115
shlibpath_var=LD_LIBRARY_PATH
12122
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12123
soname_spec='${libname}${release}${shared_ext}$major'
12124
shlibpath_var=LD_LIBRARY_PATH
12125
shlibpath_overrides_runpath=yes
12126
hardcode_into_libs=yes
12127
# ldd complains unless libraries are executable
12128
postinstall_cmds='chmod +x $lib'
12133
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12134
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12135
shlibpath_var=LD_LIBRARY_PATH
12136
shlibpath_overrides_runpath=yes
12137
if test "$with_gnu_ld" = yes; then
12143
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12145
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12146
soname_spec='${libname}${release}${shared_ext}$major'
12147
shlibpath_var=LD_LIBRARY_PATH
12148
case $host_vendor in
12150
shlibpath_overrides_runpath=no
12152
export_dynamic_flag_spec='${wl}-Blargedynsym'
12153
runpath_var=LD_RUN_PATH
12161
shlibpath_overrides_runpath=no
12162
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12168
if test -d /usr/nec ;then
12170
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12171
soname_spec='$libname${shared_ext}.$major'
12172
shlibpath_var=LD_LIBRARY_PATH
12178
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12179
soname_spec='${libname}${release}${shared_ext}$major'
12180
shlibpath_var=LD_LIBRARY_PATH
12187
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12188
echo "${ECHO_T}$dynamic_linker" >&6
12189
test "$dynamic_linker" = no && can_build_shared=no
12191
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12192
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12193
hardcode_action_CXX=
12194
if test -n "$hardcode_libdir_flag_spec_CXX" || \
12195
test -n "$runpath_var CXX" || \
12196
test "X$hardcode_automatic_CXX"="Xyes" ; then
12198
# We can hardcode non-existant directories.
12199
if test "$hardcode_direct_CXX" != no &&
12200
# If the only mechanism to avoid hardcoding is shlibpath_var, we
12201
# have to relink, otherwise we might link with an installed library
12202
# when we should be linking with a yet-to-be-installed one
12203
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12204
test "$hardcode_minus_L_CXX" != no; then
12205
# Linking always hardcodes the temporary library directory.
12206
hardcode_action_CXX=relink
12208
# We can link without hardcoding, and we can hardcode nonexisting dirs.
12209
hardcode_action_CXX=immediate
12212
# We cannot hardcode anything, or else we can only hardcode existing
12214
hardcode_action_CXX=unsupported
12216
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12217
echo "${ECHO_T}$hardcode_action_CXX" >&6
12219
if test "$hardcode_action_CXX" = relink; then
12220
# Fast installation is not supported
12221
enable_fast_install=no
12222
elif test "$shlibpath_overrides_runpath" = yes ||
12223
test "$enable_shared" = no; then
12224
# Fast installation is not necessary
12225
enable_fast_install=needless
12230
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12231
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12232
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12233
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12234
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12235
echo "$as_me:$LINENO: result: yes" >&5
12236
echo "${ECHO_T}yes" >&6
12238
# FIXME - insert some real tests, host_os isn't really good enough
12241
if test -n "$STRIP" ; then
12242
striplib="$STRIP -x"
12243
echo "$as_me:$LINENO: result: yes" >&5
12244
echo "${ECHO_T}yes" >&6
12246
echo "$as_me:$LINENO: result: no" >&5
12247
echo "${ECHO_T}no" >&6
12251
echo "$as_me:$LINENO: result: no" >&5
12252
echo "${ECHO_T}no" >&6
12257
if test "x$enable_dlopen" != xyes; then
12258
enable_dlopen=unknown
12259
enable_dlopen_self=unknown
12260
enable_dlopen_self_static=unknown
12267
lt_cv_dlopen="load_add_on"
12269
lt_cv_dlopen_self=yes
12273
lt_cv_dlopen="LoadLibrary"
12278
lt_cv_dlopen="dlopen"
12283
# if libdl is installed we need to link against it
12284
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12285
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12286
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12287
echo $ECHO_N "(cached) $ECHO_C" >&6
12289
ac_check_lib_save_LIBS=$LIBS
12291
cat >conftest.$ac_ext <<_ACEOF
12294
cat confdefs.h >>conftest.$ac_ext
12295
cat >>conftest.$ac_ext <<_ACEOF
12296
/* end confdefs.h. */
12298
/* Override any gcc2 internal prototype to avoid an error. */
12302
/* We use char because int might match the return type of a gcc2
12303
builtin and then its argument prototype would still apply. */
12313
rm -f conftest.$ac_objext conftest$ac_exeext
12314
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12315
(eval $ac_link) 2>conftest.er1
12317
grep -v '^ *+' conftest.er1 >conftest.err
12319
cat conftest.err >&5
12320
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321
(exit $ac_status); } &&
12322
{ ac_try='test -z "$ac_cxx_werror_flag"
12323
|| test ! -s conftest.err'
12324
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12325
(eval $ac_try) 2>&5
12327
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328
(exit $ac_status); }; } &&
12329
{ ac_try='test -s conftest$ac_exeext'
12330
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12331
(eval $ac_try) 2>&5
12333
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334
(exit $ac_status); }; }; then
12335
ac_cv_lib_dl_dlopen=yes
12337
echo "$as_me: failed program was:" >&5
12338
sed 's/^/| /' conftest.$ac_ext >&5
12340
ac_cv_lib_dl_dlopen=no
12342
rm -f conftest.err conftest.$ac_objext \
12343
conftest$ac_exeext conftest.$ac_ext
12344
LIBS=$ac_check_lib_save_LIBS
12346
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12347
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12348
if test $ac_cv_lib_dl_dlopen = yes; then
12349
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12352
lt_cv_dlopen="dyld"
12354
lt_cv_dlopen_self=yes
12361
echo "$as_me:$LINENO: checking for shl_load" >&5
12362
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12363
if test "${ac_cv_func_shl_load+set}" = set; then
12364
echo $ECHO_N "(cached) $ECHO_C" >&6
12366
cat >conftest.$ac_ext <<_ACEOF
12369
cat confdefs.h >>conftest.$ac_ext
12370
cat >>conftest.$ac_ext <<_ACEOF
12371
/* end confdefs.h. */
12372
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12373
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12374
#define shl_load innocuous_shl_load
12376
/* System header to define __stub macros and hopefully few prototypes,
12377
which can conflict with char shl_load (); below.
12378
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12379
<limits.h> exists even on freestanding compilers. */
12382
# include <limits.h>
12384
# include <assert.h>
12389
/* Override any gcc2 internal prototype to avoid an error. */
12394
/* We use char because int might match the return type of a gcc2
12395
builtin and then its argument prototype would still apply. */
12397
/* The GNU C library defines this for functions which it implements
12398
to always fail with ENOSYS. Some functions are actually named
12399
something starting with __ and the normal name is an alias. */
12400
#if defined (__stub_shl_load) || defined (__stub___shl_load)
12403
char (*f) () = shl_load;
12412
return f != shl_load;
12417
rm -f conftest.$ac_objext conftest$ac_exeext
12418
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12419
(eval $ac_link) 2>conftest.er1
12421
grep -v '^ *+' conftest.er1 >conftest.err
12423
cat conftest.err >&5
12424
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425
(exit $ac_status); } &&
12426
{ ac_try='test -z "$ac_cxx_werror_flag"
12427
|| test ! -s conftest.err'
12428
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12429
(eval $ac_try) 2>&5
12431
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432
(exit $ac_status); }; } &&
12433
{ ac_try='test -s conftest$ac_exeext'
12434
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12435
(eval $ac_try) 2>&5
12437
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438
(exit $ac_status); }; }; then
12439
ac_cv_func_shl_load=yes
12441
echo "$as_me: failed program was:" >&5
12442
sed 's/^/| /' conftest.$ac_ext >&5
12444
ac_cv_func_shl_load=no
12446
rm -f conftest.err conftest.$ac_objext \
12447
conftest$ac_exeext conftest.$ac_ext
12449
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12450
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12451
if test $ac_cv_func_shl_load = yes; then
12452
lt_cv_dlopen="shl_load"
12454
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12455
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12456
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12457
echo $ECHO_N "(cached) $ECHO_C" >&6
12459
ac_check_lib_save_LIBS=$LIBS
12461
cat >conftest.$ac_ext <<_ACEOF
12464
cat confdefs.h >>conftest.$ac_ext
12465
cat >>conftest.$ac_ext <<_ACEOF
12466
/* end confdefs.h. */
12468
/* Override any gcc2 internal prototype to avoid an error. */
12472
/* We use char because int might match the return type of a gcc2
12473
builtin and then its argument prototype would still apply. */
12483
rm -f conftest.$ac_objext conftest$ac_exeext
12484
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12485
(eval $ac_link) 2>conftest.er1
12487
grep -v '^ *+' conftest.er1 >conftest.err
12489
cat conftest.err >&5
12490
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491
(exit $ac_status); } &&
12492
{ ac_try='test -z "$ac_cxx_werror_flag"
12493
|| test ! -s conftest.err'
12494
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12495
(eval $ac_try) 2>&5
12497
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498
(exit $ac_status); }; } &&
12499
{ ac_try='test -s conftest$ac_exeext'
12500
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12501
(eval $ac_try) 2>&5
12503
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504
(exit $ac_status); }; }; then
12505
ac_cv_lib_dld_shl_load=yes
12507
echo "$as_me: failed program was:" >&5
12508
sed 's/^/| /' conftest.$ac_ext >&5
12510
ac_cv_lib_dld_shl_load=no
12512
rm -f conftest.err conftest.$ac_objext \
12513
conftest$ac_exeext conftest.$ac_ext
12514
LIBS=$ac_check_lib_save_LIBS
12516
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12517
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12518
if test $ac_cv_lib_dld_shl_load = yes; then
12519
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12521
echo "$as_me:$LINENO: checking for dlopen" >&5
12522
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12523
if test "${ac_cv_func_dlopen+set}" = set; then
12524
echo $ECHO_N "(cached) $ECHO_C" >&6
12526
cat >conftest.$ac_ext <<_ACEOF
12529
cat confdefs.h >>conftest.$ac_ext
12530
cat >>conftest.$ac_ext <<_ACEOF
12531
/* end confdefs.h. */
12532
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12533
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12534
#define dlopen innocuous_dlopen
12536
/* System header to define __stub macros and hopefully few prototypes,
12537
which can conflict with char dlopen (); below.
12538
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12539
<limits.h> exists even on freestanding compilers. */
12542
# include <limits.h>
12544
# include <assert.h>
12549
/* Override any gcc2 internal prototype to avoid an error. */
12554
/* We use char because int might match the return type of a gcc2
12555
builtin and then its argument prototype would still apply. */
12557
/* The GNU C library defines this for functions which it implements
12558
to always fail with ENOSYS. Some functions are actually named
12559
something starting with __ and the normal name is an alias. */
12560
#if defined (__stub_dlopen) || defined (__stub___dlopen)
12563
char (*f) () = dlopen;
12572
return f != dlopen;
12577
rm -f conftest.$ac_objext conftest$ac_exeext
12578
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12579
(eval $ac_link) 2>conftest.er1
12581
grep -v '^ *+' conftest.er1 >conftest.err
12583
cat conftest.err >&5
12584
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585
(exit $ac_status); } &&
12586
{ ac_try='test -z "$ac_cxx_werror_flag"
12587
|| test ! -s conftest.err'
12588
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12589
(eval $ac_try) 2>&5
12591
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592
(exit $ac_status); }; } &&
12593
{ ac_try='test -s conftest$ac_exeext'
12594
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12595
(eval $ac_try) 2>&5
12597
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598
(exit $ac_status); }; }; then
12599
ac_cv_func_dlopen=yes
12601
echo "$as_me: failed program was:" >&5
12602
sed 's/^/| /' conftest.$ac_ext >&5
12604
ac_cv_func_dlopen=no
12606
rm -f conftest.err conftest.$ac_objext \
12607
conftest$ac_exeext conftest.$ac_ext
12609
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12610
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12611
if test $ac_cv_func_dlopen = yes; then
12612
lt_cv_dlopen="dlopen"
12614
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12615
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12616
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12617
echo $ECHO_N "(cached) $ECHO_C" >&6
12619
ac_check_lib_save_LIBS=$LIBS
12621
cat >conftest.$ac_ext <<_ACEOF
12624
cat confdefs.h >>conftest.$ac_ext
12625
cat >>conftest.$ac_ext <<_ACEOF
12626
/* end confdefs.h. */
12628
/* Override any gcc2 internal prototype to avoid an error. */
12632
/* We use char because int might match the return type of a gcc2
12633
builtin and then its argument prototype would still apply. */
12643
rm -f conftest.$ac_objext conftest$ac_exeext
12644
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12645
(eval $ac_link) 2>conftest.er1
12647
grep -v '^ *+' conftest.er1 >conftest.err
12649
cat conftest.err >&5
12650
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651
(exit $ac_status); } &&
12652
{ ac_try='test -z "$ac_cxx_werror_flag"
12653
|| test ! -s conftest.err'
12654
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12655
(eval $ac_try) 2>&5
12657
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658
(exit $ac_status); }; } &&
12659
{ ac_try='test -s conftest$ac_exeext'
12660
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12661
(eval $ac_try) 2>&5
12663
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664
(exit $ac_status); }; }; then
12665
ac_cv_lib_dl_dlopen=yes
12667
echo "$as_me: failed program was:" >&5
12668
sed 's/^/| /' conftest.$ac_ext >&5
12670
ac_cv_lib_dl_dlopen=no
12672
rm -f conftest.err conftest.$ac_objext \
12673
conftest$ac_exeext conftest.$ac_ext
12674
LIBS=$ac_check_lib_save_LIBS
12676
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12677
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12678
if test $ac_cv_lib_dl_dlopen = yes; then
12679
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12681
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12682
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12683
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12684
echo $ECHO_N "(cached) $ECHO_C" >&6
12686
ac_check_lib_save_LIBS=$LIBS
12687
LIBS="-lsvld $LIBS"
12688
cat >conftest.$ac_ext <<_ACEOF
12691
cat confdefs.h >>conftest.$ac_ext
12692
cat >>conftest.$ac_ext <<_ACEOF
12693
/* end confdefs.h. */
12695
/* Override any gcc2 internal prototype to avoid an error. */
12699
/* We use char because int might match the return type of a gcc2
12700
builtin and then its argument prototype would still apply. */
12710
rm -f conftest.$ac_objext conftest$ac_exeext
12711
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12712
(eval $ac_link) 2>conftest.er1
12714
grep -v '^ *+' conftest.er1 >conftest.err
12716
cat conftest.err >&5
12717
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718
(exit $ac_status); } &&
12719
{ ac_try='test -z "$ac_cxx_werror_flag"
12720
|| test ! -s conftest.err'
12721
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12722
(eval $ac_try) 2>&5
12724
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725
(exit $ac_status); }; } &&
12726
{ ac_try='test -s conftest$ac_exeext'
12727
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12728
(eval $ac_try) 2>&5
12730
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731
(exit $ac_status); }; }; then
12732
ac_cv_lib_svld_dlopen=yes
12734
echo "$as_me: failed program was:" >&5
12735
sed 's/^/| /' conftest.$ac_ext >&5
12737
ac_cv_lib_svld_dlopen=no
12739
rm -f conftest.err conftest.$ac_objext \
12740
conftest$ac_exeext conftest.$ac_ext
12741
LIBS=$ac_check_lib_save_LIBS
12743
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12744
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12745
if test $ac_cv_lib_svld_dlopen = yes; then
12746
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12748
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12749
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12750
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12751
echo $ECHO_N "(cached) $ECHO_C" >&6
12753
ac_check_lib_save_LIBS=$LIBS
12755
cat >conftest.$ac_ext <<_ACEOF
12758
cat confdefs.h >>conftest.$ac_ext
12759
cat >>conftest.$ac_ext <<_ACEOF
12760
/* end confdefs.h. */
12762
/* Override any gcc2 internal prototype to avoid an error. */
12766
/* We use char because int might match the return type of a gcc2
12767
builtin and then its argument prototype would still apply. */
12777
rm -f conftest.$ac_objext conftest$ac_exeext
12778
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12779
(eval $ac_link) 2>conftest.er1
12781
grep -v '^ *+' conftest.er1 >conftest.err
12783
cat conftest.err >&5
12784
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785
(exit $ac_status); } &&
12786
{ ac_try='test -z "$ac_cxx_werror_flag"
12787
|| test ! -s conftest.err'
12788
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12789
(eval $ac_try) 2>&5
12791
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792
(exit $ac_status); }; } &&
12793
{ ac_try='test -s conftest$ac_exeext'
12794
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12795
(eval $ac_try) 2>&5
12797
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798
(exit $ac_status); }; }; then
12799
ac_cv_lib_dld_dld_link=yes
12801
echo "$as_me: failed program was:" >&5
12802
sed 's/^/| /' conftest.$ac_ext >&5
12804
ac_cv_lib_dld_dld_link=no
12806
rm -f conftest.err conftest.$ac_objext \
12807
conftest$ac_exeext conftest.$ac_ext
12808
LIBS=$ac_check_lib_save_LIBS
12810
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12811
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12812
if test $ac_cv_lib_dld_dld_link = yes; then
12813
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12834
if test "x$lt_cv_dlopen" != xno; then
12840
case $lt_cv_dlopen in
12842
save_CPPFLAGS="$CPPFLAGS"
12843
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12845
save_LDFLAGS="$LDFLAGS"
12846
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12849
LIBS="$lt_cv_dlopen_libs $LIBS"
12851
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12852
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12853
if test "${lt_cv_dlopen_self+set}" = set; then
12854
echo $ECHO_N "(cached) $ECHO_C" >&6
12856
if test "$cross_compiling" = yes; then :
12857
lt_cv_dlopen_self=cross
12859
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12860
lt_status=$lt_dlunknown
12861
cat > conftest.$ac_ext <<EOF
12862
#line 12862 "configure"
12863
#include "confdefs.h"
12872
# define LT_DLGLOBAL RTLD_GLOBAL
12875
# define LT_DLGLOBAL DL_GLOBAL
12877
# define LT_DLGLOBAL 0
12881
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12882
find out it does not work in some platform. */
12883
#ifndef LT_DLLAZY_OR_NOW
12885
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12888
# define LT_DLLAZY_OR_NOW DL_LAZY
12891
# define LT_DLLAZY_OR_NOW RTLD_NOW
12894
# define LT_DLLAZY_OR_NOW DL_NOW
12896
# define LT_DLLAZY_OR_NOW 0
12904
extern "C" void exit (int);
12907
void fnord() { int i=42;}
12910
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12911
int status = $lt_dlunknown;
12915
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12916
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12917
/* dlclose (self); */
12923
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12924
(eval $ac_link) 2>&5
12926
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12928
(./conftest; exit; ) 2>/dev/null
12930
case x$lt_status in
12931
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12932
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12933
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12936
# compilation failed
12937
lt_cv_dlopen_self=no
12944
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12945
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12947
if test "x$lt_cv_dlopen_self" = xyes; then
12948
LDFLAGS="$LDFLAGS $link_static_flag"
12949
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12950
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12951
if test "${lt_cv_dlopen_self_static+set}" = set; then
12952
echo $ECHO_N "(cached) $ECHO_C" >&6
12954
if test "$cross_compiling" = yes; then :
12955
lt_cv_dlopen_self_static=cross
12957
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12958
lt_status=$lt_dlunknown
12959
cat > conftest.$ac_ext <<EOF
12960
#line 12960 "configure"
12961
#include "confdefs.h"
12970
# define LT_DLGLOBAL RTLD_GLOBAL
12973
# define LT_DLGLOBAL DL_GLOBAL
12975
# define LT_DLGLOBAL 0
12979
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12980
find out it does not work in some platform. */
12981
#ifndef LT_DLLAZY_OR_NOW
12983
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12986
# define LT_DLLAZY_OR_NOW DL_LAZY
12989
# define LT_DLLAZY_OR_NOW RTLD_NOW
12992
# define LT_DLLAZY_OR_NOW DL_NOW
12994
# define LT_DLLAZY_OR_NOW 0
13002
extern "C" void exit (int);
13005
void fnord() { int i=42;}
13008
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13009
int status = $lt_dlunknown;
13013
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13014
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13015
/* dlclose (self); */
13021
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13022
(eval $ac_link) 2>&5
13024
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13026
(./conftest; exit; ) 2>/dev/null
13028
case x$lt_status in
13029
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13030
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13031
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13034
# compilation failed
13035
lt_cv_dlopen_self_static=no
13042
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13043
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13046
CPPFLAGS="$save_CPPFLAGS"
13047
LDFLAGS="$save_LDFLAGS"
13052
case $lt_cv_dlopen_self in
13053
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13054
*) enable_dlopen_self=unknown ;;
13057
case $lt_cv_dlopen_self_static in
13058
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13059
*) enable_dlopen_self_static=unknown ;;
13064
# The else clause should only fire when bootstrapping the
13065
# libtool distribution, otherwise you forgot to ship ltmain.sh
13066
# with your package, and you will get complaints that there are
13067
# no rules to generate ltmain.sh.
13068
if test -f "$ltmain"; then
13069
# See if we are running on zsh, and set the options which allow our commands through
13070
# without removal of \ escapes.
13071
if test -n "${ZSH_VERSION+set}" ; then
13072
setopt NO_GLOB_SUBST
13074
# Now quote all the things that may contain metacharacters while being
13075
# careful not to overquote the AC_SUBSTed values. We take copies of the
13076
# variables and quote the copies for generation of the libtool script.
13077
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13079
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13080
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13081
deplibs_check_method reload_flag reload_cmds need_locks \
13082
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13083
lt_cv_sys_global_symbol_to_c_name_address \
13084
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13085
old_postinstall_cmds old_postuninstall_cmds \
13089
lt_prog_compiler_wl_CXX \
13090
lt_prog_compiler_pic_CXX \
13091
lt_prog_compiler_static_CXX \
13092
lt_prog_compiler_no_builtin_flag_CXX \
13093
export_dynamic_flag_spec_CXX \
13094
thread_safe_flag_spec_CXX \
13095
whole_archive_flag_spec_CXX \
13096
enable_shared_with_static_runtimes_CXX \
13097
old_archive_cmds_CXX \
13098
old_archive_from_new_cmds_CXX \
13099
predep_objects_CXX \
13100
postdep_objects_CXX \
13103
compiler_lib_search_path_CXX \
13105
archive_expsym_cmds_CXX \
13106
postinstall_cmds_CXX \
13107
postuninstall_cmds_CXX \
13108
old_archive_from_expsyms_cmds_CXX \
13109
allow_undefined_flag_CXX \
13110
no_undefined_flag_CXX \
13111
export_symbols_cmds_CXX \
13112
hardcode_libdir_flag_spec_CXX \
13113
hardcode_libdir_flag_spec_ld_CXX \
13114
hardcode_libdir_separator_CXX \
13115
hardcode_automatic_CXX \
13117
module_expsym_cmds_CXX \
13118
lt_cv_prog_compiler_c_o_CXX \
13119
exclude_expsyms_CXX \
13120
include_expsyms_CXX; do
13123
old_archive_cmds_CXX | \
13124
old_archive_from_new_cmds_CXX | \
13125
archive_cmds_CXX | \
13126
archive_expsym_cmds_CXX | \
13127
module_cmds_CXX | \
13128
module_expsym_cmds_CXX | \
13129
old_archive_from_expsyms_cmds_CXX | \
13130
export_symbols_cmds_CXX | \
13131
extract_expsyms_cmds | reload_cmds | finish_cmds | \
13132
postinstall_cmds | postuninstall_cmds | \
13133
old_postinstall_cmds | old_postuninstall_cmds | \
13134
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13135
# Double-quote double-evaled strings.
13136
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13139
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13145
*'\$0 --fallback-echo"')
13146
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13152
cat <<__EOF__ >> "$cfgfile"
13153
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13155
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13157
# Shell to use when invoking shell scripts.
13160
# Whether or not to build shared libraries.
13161
build_libtool_libs=$enable_shared
13163
# Whether or not to build static libraries.
13164
build_old_libs=$enable_static
13166
# Whether or not to add -lc for building shared libraries.
13167
build_libtool_need_lc=$archive_cmds_need_lc_CXX
13169
# Whether or not to disallow shared libs when runtime libs are static
13170
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13172
# Whether or not to optimize for fast installation.
13173
fast_install=$enable_fast_install
13176
host_alias=$host_alias
13179
# An echo program that does not interpret backslashes.
13184
AR_FLAGS=$lt_AR_FLAGS
13189
# A language-specific compiler.
13190
CC=$lt_compiler_CXX
13192
# Is the compiler the GNU C compiler?
13198
# The linker used to build libraries.
13201
# Whether we need hard or soft links.
13204
# A BSD-compatible nm program.
13207
# A symbol stripping program
13210
# Used to examine libraries when file_magic_cmd begins "file"
13211
MAGIC_CMD=$MAGIC_CMD
13213
# Used on cygwin: DLL creation program.
13216
# Used on cygwin: object dumper.
13219
# Used on cygwin: assembler.
13222
# The name of the directory that contains temporary libtool files.
13225
# How to create reloadable object files.
13226
reload_flag=$lt_reload_flag
13227
reload_cmds=$lt_reload_cmds
13229
# How to pass a linker flag through the compiler.
13230
wl=$lt_lt_prog_compiler_wl_CXX
13232
# Object file suffix (normally "o").
13233
objext="$ac_objext"
13235
# Old archive suffix (normally "a").
13238
# Shared library suffix (normally ".so").
13239
shrext_cmds='$shrext_cmds'
13241
# Executable file suffix (normally "").
13244
# Additional compiler flags for building library objects.
13245
pic_flag=$lt_lt_prog_compiler_pic_CXX
13248
# What is the maximum length of a command?
13249
max_cmd_len=$lt_cv_sys_max_cmd_len
13251
# Does compiler simultaneously support -c and -o options?
13252
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13254
# Must we lock files when doing compilation ?
13255
need_locks=$lt_need_locks
13257
# Do we need the lib prefix for modules?
13258
need_lib_prefix=$need_lib_prefix
13260
# Do we need a version for libraries?
13261
need_version=$need_version
13263
# Whether dlopen is supported.
13264
dlopen_support=$enable_dlopen
13266
# Whether dlopen of programs is supported.
13267
dlopen_self=$enable_dlopen_self
13269
# Whether dlopen of statically linked programs is supported.
13270
dlopen_self_static=$enable_dlopen_self_static
13272
# Compiler flag to prevent dynamic linking.
13273
link_static_flag=$lt_lt_prog_compiler_static_CXX
13275
# Compiler flag to turn off builtin functions.
13276
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13278
# Compiler flag to allow reflexive dlopens.
13279
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13281
# Compiler flag to generate shared objects directly from archives.
13282
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13284
# Compiler flag to generate thread-safe objects.
13285
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13287
# Library versioning type.
13288
version_type=$version_type
13290
# Format of library name prefix.
13291
libname_spec=$lt_libname_spec
13293
# List of archive names. First name is the real one, the rest are links.
13294
# The last name is the one that the linker finds with -lNAME.
13295
library_names_spec=$lt_library_names_spec
13297
# The coded name of the library, if different from the real name.
13298
soname_spec=$lt_soname_spec
13300
# Commands used to build and install an old-style archive.
13302
old_archive_cmds=$lt_old_archive_cmds_CXX
13303
old_postinstall_cmds=$lt_old_postinstall_cmds
13304
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13306
# Create an old-style archive from a shared archive.
13307
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13309
# Create a temporary old-style archive to link instead of a shared archive.
13310
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13312
# Commands used to build and install a shared archive.
13313
archive_cmds=$lt_archive_cmds_CXX
13314
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13315
postinstall_cmds=$lt_postinstall_cmds
13316
postuninstall_cmds=$lt_postuninstall_cmds
13318
# Commands used to build a loadable module (assumed same as above if empty)
13319
module_cmds=$lt_module_cmds_CXX
13320
module_expsym_cmds=$lt_module_expsym_cmds_CXX
13322
# Commands to strip libraries.
13323
old_striplib=$lt_old_striplib
13324
striplib=$lt_striplib
13326
# Dependencies to place before the objects being linked to create a
13328
predep_objects=$lt_predep_objects_CXX
13330
# Dependencies to place after the objects being linked to create a
13332
postdep_objects=$lt_postdep_objects_CXX
13334
# Dependencies to place before the objects being linked to create a
13336
predeps=$lt_predeps_CXX
13338
# Dependencies to place after the objects being linked to create a
13340
postdeps=$lt_postdeps_CXX
13342
# The library search path used internally by the compiler when linking
13343
# a shared library.
13344
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13346
# Method to check whether dependent libraries are shared objects.
13347
deplibs_check_method=$lt_deplibs_check_method
13349
# Command to use when deplibs_check_method == file_magic.
13350
file_magic_cmd=$lt_file_magic_cmd
13352
# Flag that allows shared libraries with undefined symbols to be built.
13353
allow_undefined_flag=$lt_allow_undefined_flag_CXX
13355
# Flag that forces no undefined symbols.
13356
no_undefined_flag=$lt_no_undefined_flag_CXX
13358
# Commands used to finish a libtool library installation in a directory.
13359
finish_cmds=$lt_finish_cmds
13361
# Same as above, but a single script fragment to be evaled but not shown.
13362
finish_eval=$lt_finish_eval
13364
# Take the output of nm and produce a listing of raw symbols and C names.
13365
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13367
# Transform the output of nm in a proper C declaration
13368
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13370
# Transform the output of nm in a C name address pair
13371
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13373
# This is the shared library runtime path variable.
13374
runpath_var=$runpath_var
13376
# This is the shared library path variable.
13377
shlibpath_var=$shlibpath_var
13379
# Is shlibpath searched before the hard-coded library search path?
13380
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13382
# How to hardcode a shared library path into an executable.
13383
hardcode_action=$hardcode_action_CXX
13385
# Whether we should hardcode library paths into libraries.
13386
hardcode_into_libs=$hardcode_into_libs
13388
# Flag to hardcode \$libdir into a binary during linking.
13389
# This must work even if \$libdir does not exist.
13390
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13392
# If ld is used when linking, flag to hardcode \$libdir into
13393
# a binary during linking. This must work even if \$libdir does
13395
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13397
# Whether we need a single -rpath flag with a separated argument.
13398
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13400
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13401
# resulting binary.
13402
hardcode_direct=$hardcode_direct_CXX
13404
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13405
# resulting binary.
13406
hardcode_minus_L=$hardcode_minus_L_CXX
13408
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13409
# the resulting binary.
13410
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13412
# Set to yes if building a shared library automatically hardcodes DIR into the library
13413
# and all subsequent libraries and executables linked against it.
13414
hardcode_automatic=$hardcode_automatic_CXX
13416
# Variables whose values should be saved in libtool wrapper scripts and
13417
# restored at relink time.
13418
variables_saved_for_relink="$variables_saved_for_relink"
13420
# Whether libtool must link a program against all its dependency libraries.
13421
link_all_deplibs=$link_all_deplibs_CXX
13423
# Compile-time system search path for libraries
13424
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13426
# Run-time system search path for libraries
13427
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13429
# Fix the shell variable \$srcfile for the compiler.
13430
fix_srcfile_path="$fix_srcfile_path_CXX"
13432
# Set to yes if exported symbols are required.
13433
always_export_symbols=$always_export_symbols_CXX
13435
# The commands to list exported symbols.
13436
export_symbols_cmds=$lt_export_symbols_cmds_CXX
13438
# The commands to extract the exported symbol list from a shared archive.
13439
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13441
# Symbols that should not be listed in the preloaded symbols.
13442
exclude_expsyms=$lt_exclude_expsyms_CXX
13444
# Symbols that must always be exported.
13445
include_expsyms=$lt_include_expsyms_CXX
13447
# ### END LIBTOOL TAG CONFIG: $tagname
13453
# If there is no Makefile yet, we rely on a make rule to execute
13454
# `config.status --recheck' to rerun these tests and create the
13455
# libtool script then.
13456
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13457
if test -f "$ltmain_in"; then
13458
test -f Makefile && make "$ltmain"
13464
ac_cpp='$CPP $CPPFLAGS'
13465
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13466
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13467
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13473
with_gnu_ldcxx=$with_gnu_ld
13474
with_gnu_ld=$lt_save_with_gnu_ld
13475
lt_cv_path_LDCXX=$lt_cv_path_LD
13476
lt_cv_path_LD=$lt_save_path_LD
13477
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13478
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13486
if test -n "$F77" && test "X$F77" != "Xno"; then
13489
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13490
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13491
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13494
archive_cmds_need_lc_F77=no
13495
allow_undefined_flag_F77=
13496
always_export_symbols_F77=no
13497
archive_expsym_cmds_F77=
13498
export_dynamic_flag_spec_F77=
13499
hardcode_direct_F77=no
13500
hardcode_libdir_flag_spec_F77=
13501
hardcode_libdir_flag_spec_ld_F77=
13502
hardcode_libdir_separator_F77=
13503
hardcode_minus_L_F77=no
13504
hardcode_automatic_F77=no
13506
module_expsym_cmds_F77=
13507
link_all_deplibs_F77=unknown
13508
old_archive_cmds_F77=$old_archive_cmds
13509
no_undefined_flag_F77=
13510
whole_archive_flag_spec_F77=
13511
enable_shared_with_static_runtimes_F77=no
13513
# Source file extension for f77 test sources.
13516
# Object file extension for compiled f77 test sources.
13520
# Code to be used in simple compile tests
13521
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13523
# Code to be used in simple link tests
13524
lt_simple_link_test_code=" program t\n end\n"
13526
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13528
# If no C compiler was specified, use CC.
13531
# Allow CC to be a program name with arguments.
13535
# Allow CC to be a program name with arguments.
13540
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13542
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13543
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13544
echo "$as_me:$LINENO: result: $can_build_shared" >&5
13545
echo "${ECHO_T}$can_build_shared" >&6
13547
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13548
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13549
test "$can_build_shared" = "no" && enable_shared=no
13551
# On AIX, shared libraries and static libraries use the same namespace, and
13552
# are all built from PIC.
13555
test "$enable_shared" = yes && enable_static=no
13556
if test -n "$RANLIB"; then
13557
archive_cmds="$archive_cmds~\$RANLIB \$lib"
13558
postinstall_cmds='$RANLIB $lib'
13562
test "$enable_shared" = yes && enable_static=no
13565
echo "$as_me:$LINENO: result: $enable_shared" >&5
13566
echo "${ECHO_T}$enable_shared" >&6
13568
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13569
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13570
# Make sure either enable_shared or enable_static is yes.
13571
test "$enable_shared" = yes || enable_static=yes
13572
echo "$as_me:$LINENO: result: $enable_static" >&5
13573
echo "${ECHO_T}$enable_static" >&6
13575
test "$ld_shlibs_F77" = no && can_build_shared=no
13580
lt_prog_compiler_wl_F77=
13581
lt_prog_compiler_pic_F77=
13582
lt_prog_compiler_static_F77=
13584
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13585
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13587
if test "$GCC" = yes; then
13588
lt_prog_compiler_wl_F77='-Wl,'
13589
lt_prog_compiler_static_F77='-static'
13593
# All AIX code is PIC.
13594
if test "$host_cpu" = ia64; then
13595
# AIX 5 now supports IA64 processor
13596
lt_prog_compiler_static_F77='-Bstatic'
13601
# FIXME: we need at least 68020 code to build shared libraries, but
13602
# adding the `-m68020' flag to GCC prevents building anything better,
13604
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13607
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13608
# PIC is the default for these OSes.
13611
mingw* | pw32* | os2*)
13612
# This hack is so that the source file can tell whether it is being
13613
# built for inclusion in a dll (and should export symbols for example).
13614
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13617
darwin* | rhapsody*)
13618
# PIC is the default on this platform
13619
# Common symbols not allowed in MH_DYLIB files
13620
lt_prog_compiler_pic_F77='-fno-common'
13624
# Just because we use GCC doesn't mean we suddenly get shared libraries
13625
# on systems that don't support them.
13626
lt_prog_compiler_can_build_shared_F77=no
13631
if test -d /usr/nec; then
13632
lt_prog_compiler_pic_F77=-Kconform_pic
13637
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13638
# not for PA HP-UX.
13639
case "$host_cpu" in
13644
lt_prog_compiler_pic_F77='-fPIC'
13650
lt_prog_compiler_pic_F77='-fPIC'
13654
# PORTME Check for flag to pass linker flags through the system compiler.
13657
lt_prog_compiler_wl_F77='-Wl,'
13658
if test "$host_cpu" = ia64; then
13659
# AIX 5 now supports IA64 processor
13660
lt_prog_compiler_static_F77='-Bstatic'
13662
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13666
mingw* | pw32* | os2*)
13667
# This hack is so that the source file can tell whether it is being
13668
# built for inclusion in a dll (and should export symbols for example).
13669
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13672
hpux9* | hpux10* | hpux11*)
13673
lt_prog_compiler_wl_F77='-Wl,'
13674
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13675
# not for PA HP-UX.
13676
case "$host_cpu" in
13681
lt_prog_compiler_pic_F77='+Z'
13684
# Is there a better lt_prog_compiler_static that works with the bundled CC?
13685
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13688
irix5* | irix6* | nonstopux*)
13689
lt_prog_compiler_wl_F77='-Wl,'
13690
# PIC (with -KPIC) is the default.
13691
lt_prog_compiler_static_F77='-non_shared'
13695
lt_prog_compiler_pic_F77='-KPIC'
13696
lt_prog_compiler_static_F77='-Bstatic'
13702
lt_prog_compiler_wl_F77='-Wl,'
13703
lt_prog_compiler_pic_F77='-KPIC'
13704
lt_prog_compiler_static_F77='-static'
13707
lt_prog_compiler_wl_F77='-Wl,'
13708
# All Alpha code is PIC.
13709
lt_prog_compiler_static_F77='-non_shared'
13714
osf3* | osf4* | osf5*)
13715
lt_prog_compiler_wl_F77='-Wl,'
13716
# All OSF/1 code is PIC.
13717
lt_prog_compiler_static_F77='-non_shared'
13721
lt_prog_compiler_pic_F77='-Kpic'
13722
lt_prog_compiler_static_F77='-dn'
13726
lt_prog_compiler_wl_F77='-Wl,'
13727
lt_prog_compiler_pic_F77='-KPIC'
13728
lt_prog_compiler_static_F77='-Bstatic'
13732
lt_prog_compiler_wl_F77='-Qoption ld '
13733
lt_prog_compiler_pic_F77='-PIC'
13734
lt_prog_compiler_static_F77='-Bstatic'
13737
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13738
lt_prog_compiler_wl_F77='-Wl,'
13739
lt_prog_compiler_pic_F77='-KPIC'
13740
lt_prog_compiler_static_F77='-Bstatic'
13744
if test -d /usr/nec ;then
13745
lt_prog_compiler_pic_F77='-Kconform_pic'
13746
lt_prog_compiler_static_F77='-Bstatic'
13751
lt_prog_compiler_pic_F77='-pic'
13752
lt_prog_compiler_static_F77='-Bstatic'
13756
lt_prog_compiler_can_build_shared_F77=no
13761
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13762
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13765
# Check to make sure the PIC flag actually works.
13767
if test -n "$lt_prog_compiler_pic_F77"; then
13769
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13770
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13771
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13772
echo $ECHO_N "(cached) $ECHO_C" >&6
13774
lt_prog_compiler_pic_works_F77=no
13775
ac_outfile=conftest.$ac_objext
13776
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13777
lt_compiler_flag="$lt_prog_compiler_pic_F77"
13778
# Insert the option either (1) after the last *FLAGS variable, or
13779
# (2) before a word containing "conftest.", or (3) at the end.
13780
# Note that $ac_compile itself does not contain backslashes and begins
13781
# with a dollar sign (not a hyphen), so the echo should work correctly.
13782
# The option is referenced via a variable to avoid confusing sed.
13783
lt_compile=`echo "$ac_compile" | $SED \
13784
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13785
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13786
-e 's:$: $lt_compiler_flag:'`
13787
(eval echo "\"\$as_me:13787: $lt_compile\"" >&5)
13788
(eval "$lt_compile" 2>conftest.err)
13790
cat conftest.err >&5
13791
echo "$as_me:13791: \$? = $ac_status" >&5
13792
if (exit $ac_status) && test -s "$ac_outfile"; then
13793
# The compiler can only warn and ignore the option if not recognized
13794
# So say no if there are warnings
13795
if test ! -s conftest.err; then
13796
lt_prog_compiler_pic_works_F77=yes
13802
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13803
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13805
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13806
case $lt_prog_compiler_pic_F77 in
13808
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13811
lt_prog_compiler_pic_F77=
13812
lt_prog_compiler_can_build_shared_F77=no
13817
# For platforms which do not support PIC, -DPIC is meaningless:
13819
lt_prog_compiler_pic_F77=
13822
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13826
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13827
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13828
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13829
echo $ECHO_N "(cached) $ECHO_C" >&6
13831
lt_cv_prog_compiler_c_o_F77=no
13832
$rm -r conftest 2>/dev/null
13836
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13838
lt_compiler_flag="-o out/conftest2.$ac_objext"
13839
# Insert the option either (1) after the last *FLAGS variable, or
13840
# (2) before a word containing "conftest.", or (3) at the end.
13841
# Note that $ac_compile itself does not contain backslashes and begins
13842
# with a dollar sign (not a hyphen), so the echo should work correctly.
13843
lt_compile=`echo "$ac_compile" | $SED \
13844
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13845
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13846
-e 's:$: $lt_compiler_flag:'`
13847
(eval echo "\"\$as_me:13847: $lt_compile\"" >&5)
13848
(eval "$lt_compile" 2>out/conftest.err)
13850
cat out/conftest.err >&5
13851
echo "$as_me:13851: \$? = $ac_status" >&5
13852
if (exit $ac_status) && test -s out/conftest2.$ac_objext
13854
# The compiler can only warn and ignore the option if not recognized
13855
# So say no if there are warnings
13856
if test ! -s out/conftest.err; then
13857
lt_cv_prog_compiler_c_o_F77=yes
13862
# SGI C++ compiler will create directory out/ii_files/ for
13863
# template instantiation
13864
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13865
$rm out/* && rmdir out
13871
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13872
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13875
hard_links="nottested"
13876
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13877
# do not overwrite the value of need_locks provided by the user
13878
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13879
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13882
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13884
ln conftest.a conftest.b 2>&5 || hard_links=no
13885
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13886
echo "$as_me:$LINENO: result: $hard_links" >&5
13887
echo "${ECHO_T}$hard_links" >&6
13888
if test "$hard_links" = no; then
13889
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13890
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13897
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13898
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13901
allow_undefined_flag_F77=
13902
enable_shared_with_static_runtimes_F77=no
13904
archive_expsym_cmds_F77=
13905
old_archive_From_new_cmds_F77=
13906
old_archive_from_expsyms_cmds_F77=
13907
export_dynamic_flag_spec_F77=
13908
whole_archive_flag_spec_F77=
13909
thread_safe_flag_spec_F77=
13910
hardcode_libdir_flag_spec_F77=
13911
hardcode_libdir_flag_spec_ld_F77=
13912
hardcode_libdir_separator_F77=
13913
hardcode_direct_F77=no
13914
hardcode_minus_L_F77=no
13915
hardcode_shlibpath_var_F77=unsupported
13916
link_all_deplibs_F77=unknown
13917
hardcode_automatic_F77=no
13919
module_expsym_cmds_F77=
13920
always_export_symbols_F77=no
13921
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13922
# include_expsyms should be a list of space-separated symbols to be *always*
13923
# included in the symbol list
13924
include_expsyms_F77=
13925
# exclude_expsyms can be an extended regexp of symbols to exclude
13926
# it will be wrapped by ` (' and `)$', so one must not match beginning or
13927
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13928
# as well as any symbol that contains `d'.
13929
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13930
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13931
# platforms (ab)use it in PIC code, but their linkers get confused if
13932
# the symbol is explicitly referenced. Since portable code cannot
13933
# rely on this symbol name, it's probably fine to never include it in
13934
# preloaded symbol tables.
13935
extract_expsyms_cmds=
13938
cygwin* | mingw* | pw32*)
13939
# FIXME: the MSVC++ port hasn't been tested in a loooong time
13940
# When not using gcc, we currently assume that we are using
13941
# Microsoft Visual C++.
13942
if test "$GCC" != yes; then
13952
if test "$with_gnu_ld" = yes; then
13953
# If archive_cmds runs LD, not CC, wlarc should be empty
13956
# See if GNU ld supports shared libraries.
13958
aix3* | aix4* | aix5*)
13959
# On AIX/PPC, the GNU linker is very broken
13960
if test "$host_cpu" != ia64; then
13964
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13965
*** to be unable to reliably create shared libraries on AIX.
13966
*** Therefore, libtool is disabling shared libraries support. If you
13967
*** really care for shared libraries, you may want to modify your PATH
13968
*** so that a non-GNU linker is found, and then restart.
13975
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)'
13976
hardcode_libdir_flag_spec_F77='-L$libdir'
13977
hardcode_minus_L_F77=yes
13979
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13980
# that the semantics of dynamic libraries on AmigaOS, at least up
13981
# to version 4, is to share data among multiple programs linked
13982
# with the same dynamic library. Since this doesn't match the
13983
# behavior of shared libraries on other platforms, we can't use
13989
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13990
allow_undefined_flag_F77=unsupported
13991
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13992
# support --undefined. This deserves some investigation. FIXME
13993
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13999
cygwin* | mingw* | pw32*)
14000
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14001
# as there is no search path for DLLs.
14002
hardcode_libdir_flag_spec_F77='-L$libdir'
14003
allow_undefined_flag_F77=unsupported
14004
always_export_symbols_F77=no
14005
enable_shared_with_static_runtimes_F77=yes
14006
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14008
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14009
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14010
# If the export-symbols file already is a .def file (1st line
14011
# is EXPORTS), use it as is; otherwise, prepend...
14012
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14013
cp $export_symbols $output_objdir/$soname.def;
14015
echo EXPORTS > $output_objdir/$soname.def;
14016
cat $export_symbols >> $output_objdir/$soname.def;
14018
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14025
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14026
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14029
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14030
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14035
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14039
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14040
*** create shared libraries on Solaris systems. Therefore, libtool
14041
*** is disabling shared libraries support. We urge you to upgrade GNU
14042
*** binutils to release 2.9.1 or newer. Another option is to modify
14043
*** your PATH or compiler configuration so that the native linker is
14044
*** used, and then restart.
14047
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14048
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14049
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14056
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14058
hardcode_direct_F77=yes
14059
hardcode_shlibpath_var_F77=no
14063
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14064
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14065
archive_cmds_F77="$tmp_archive_cmds"
14066
supports_anon_versioning=no
14067
case `$LD -v 2>/dev/null` in
14068
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14069
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14070
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14071
*\ 2.11.*) ;; # other 2.11 versions
14072
*) supports_anon_versioning=yes ;;
14074
if test $supports_anon_versioning = yes; then
14075
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14076
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14077
$echo "local: *; };" >> $output_objdir/$libname.ver~
14078
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14080
archive_expsym_cmds_F77="$tmp_archive_cmds"
14088
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14089
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14090
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14097
if test "$ld_shlibs_F77" = yes; then
14098
runpath_var=LD_RUN_PATH
14099
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14100
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14101
# ancient GNU ld didn't support --whole-archive et. al.
14102
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14103
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14105
whole_archive_flag_spec_F77=
14109
# PORTME fill in a description of your system's linker (not GNU ld)
14112
allow_undefined_flag_F77=unsupported
14113
always_export_symbols_F77=yes
14114
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'
14115
# Note: this linker hardcodes the directories in LIBPATH if there
14116
# are no directories specified by -L.
14117
hardcode_minus_L_F77=yes
14118
if test "$GCC" = yes && test -z "$link_static_flag"; then
14119
# Neither direct hardcoding nor static linking is supported with a
14121
hardcode_direct_F77=unsupported
14126
if test "$host_cpu" = ia64; then
14127
# On IA64, the linker does run time linking by default, so we don't
14128
# have to do anything special.
14129
aix_use_runtimelinking=no
14130
exp_sym_flag='-Bexport'
14133
# If we're using GNU nm, then we don't want the "-C" option.
14134
# -C means demangle to AIX nm, but means don't demangle with GNU nm
14135
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14136
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'
14138
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'
14140
aix_use_runtimelinking=no
14142
# Test if we are trying to use run time linking or normal
14143
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14144
# need to do runtime linking.
14145
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14146
for ld_flag in $LDFLAGS; do
14147
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14148
aix_use_runtimelinking=yes
14154
exp_sym_flag='-bexport'
14155
no_entry_flag='-bnoentry'
14158
# When large executables or shared objects are built, AIX ld can
14159
# have problems creating the table of contents. If linking a library
14160
# or program results in "error TOC overflow" add -mminimal-toc to
14161
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14162
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14164
archive_cmds_F77=''
14165
hardcode_direct_F77=yes
14166
hardcode_libdir_separator_F77=':'
14167
link_all_deplibs_F77=yes
14169
if test "$GCC" = yes; then
14170
case $host_os in aix4.012|aix4.012.*)
14171
# We only want to do this on AIX 4.2 and lower, the check
14172
# below for broken collect2 doesn't work under 4.3+
14173
collect2name=`${CC} -print-prog-name=collect2`
14174
if test -f "$collect2name" && \
14175
strings "$collect2name" | grep resolve_lib_name >/dev/null
14177
# We have reworked collect2
14178
hardcode_direct_F77=yes
14180
# We have old collect2
14181
hardcode_direct_F77=unsupported
14182
# It fails to find uninstalled libraries when the uninstalled
14183
# path is not listed in the libpath. Setting hardcode_minus_L
14184
# to unsupported forces relinking
14185
hardcode_minus_L_F77=yes
14186
hardcode_libdir_flag_spec_F77='-L$libdir'
14187
hardcode_libdir_separator_F77=
14190
shared_flag='-shared'
14193
if test "$host_cpu" = ia64; then
14194
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14195
# chokes on -Wl,-G. The following line is correct:
14198
if test "$aix_use_runtimelinking" = yes; then
14199
shared_flag='${wl}-G'
14201
shared_flag='${wl}-bM:SRE'
14206
# It seems that -bexpall does not export symbols beginning with
14207
# underscore (_), so it is better to generate a list of symbols to export.
14208
always_export_symbols_F77=yes
14209
if test "$aix_use_runtimelinking" = yes; then
14210
# Warning - without using the other runtime loading flags (-brtl),
14211
# -berok will link without error, but may produce a broken library.
14212
allow_undefined_flag_F77='-berok'
14213
# Determine the default libpath from the value encoded in an empty executable.
14214
cat >conftest.$ac_ext <<_ACEOF
14219
rm -f conftest.$ac_objext conftest$ac_exeext
14220
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14221
(eval $ac_link) 2>conftest.er1
14223
grep -v '^ *+' conftest.er1 >conftest.err
14225
cat conftest.err >&5
14226
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227
(exit $ac_status); } &&
14228
{ ac_try='test -z "$ac_f77_werror_flag"
14229
|| test ! -s conftest.err'
14230
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14231
(eval $ac_try) 2>&5
14233
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234
(exit $ac_status); }; } &&
14235
{ ac_try='test -s conftest$ac_exeext'
14236
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14237
(eval $ac_try) 2>&5
14239
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240
(exit $ac_status); }; }; then
14242
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14244
# Check for a 64-bit object if we didn't find anything.
14245
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; }
14248
echo "$as_me: failed program was:" >&5
14249
sed 's/^/| /' conftest.$ac_ext >&5
14252
rm -f conftest.err conftest.$ac_objext \
14253
conftest$ac_exeext conftest.$ac_ext
14254
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14256
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14257
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"
14259
if test "$host_cpu" = ia64; then
14260
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14261
allow_undefined_flag_F77="-z nodefs"
14262
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"
14264
# Determine the default libpath from the value encoded in an empty executable.
14265
cat >conftest.$ac_ext <<_ACEOF
14270
rm -f conftest.$ac_objext conftest$ac_exeext
14271
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14272
(eval $ac_link) 2>conftest.er1
14274
grep -v '^ *+' conftest.er1 >conftest.err
14276
cat conftest.err >&5
14277
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278
(exit $ac_status); } &&
14279
{ ac_try='test -z "$ac_f77_werror_flag"
14280
|| test ! -s conftest.err'
14281
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14282
(eval $ac_try) 2>&5
14284
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285
(exit $ac_status); }; } &&
14286
{ ac_try='test -s conftest$ac_exeext'
14287
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14288
(eval $ac_try) 2>&5
14290
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14291
(exit $ac_status); }; }; then
14293
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14295
# Check for a 64-bit object if we didn't find anything.
14296
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; }
14299
echo "$as_me: failed program was:" >&5
14300
sed 's/^/| /' conftest.$ac_ext >&5
14303
rm -f conftest.err conftest.$ac_objext \
14304
conftest$ac_exeext conftest.$ac_ext
14305
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14307
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14308
# Warning - without using the other run time loading flags,
14309
# -berok will link without error, but may produce a broken library.
14310
no_undefined_flag_F77=' ${wl}-bernotok'
14311
allow_undefined_flag_F77=' ${wl}-berok'
14312
# -bexpall does not export symbols beginning with underscore (_)
14313
always_export_symbols_F77=yes
14314
# Exported symbols can be pulled into shared objects from archives
14315
whole_archive_flag_spec_F77=' '
14316
archive_cmds_need_lc_F77=yes
14317
# This is similar to how AIX traditionally builds it's shared libraries.
14318
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'
14324
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)'
14325
hardcode_libdir_flag_spec_F77='-L$libdir'
14326
hardcode_minus_L_F77=yes
14327
# see comment about different semantics on the GNU ld section
14332
export_dynamic_flag_spec_F77=-rdynamic
14335
cygwin* | mingw* | pw32*)
14336
# When not using gcc, we currently assume that we are using
14337
# Microsoft Visual C++.
14338
# hardcode_libdir_flag_spec is actually meaningless, as there is
14339
# no search path for DLLs.
14340
hardcode_libdir_flag_spec_F77=' '
14341
allow_undefined_flag_F77=unsupported
14342
# Tell ltmain to make .lib files, not .a files.
14344
# Tell ltmain to make .dll files, not .so files.
14346
# FIXME: Setting linknames here is a bad hack.
14347
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14348
# The linker will automatically build a .lib file if we build a DLL.
14349
old_archive_From_new_cmds_F77='true'
14350
# FIXME: Should let the user specify the lib program.
14351
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14352
fix_srcfile_path='`cygpath -w "$srcfile"`'
14353
enable_shared_with_static_runtimes_F77=yes
14356
darwin* | rhapsody*)
14357
if test "$GXX" = yes ; then
14358
archive_cmds_need_lc_F77=no
14360
rhapsody* | darwin1.[012])
14361
allow_undefined_flag_F77='-undefined suppress'
14364
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14365
allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14367
case ${MACOSX_DEPLOYMENT_TARGET} in
14369
allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14372
allow_undefined_flag_F77='-undefined dynamic_lookup'
14378
lt_int_apple_cc_single_mod=no
14379
output_verbose_link_cmd='echo'
14380
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14381
lt_int_apple_cc_single_mod=yes
14383
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14384
archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14386
archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14388
module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14389
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14390
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14391
archive_expsym_cmds_F77='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}'
14393
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14395
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}'
14396
hardcode_direct_F77=no
14397
hardcode_automatic_F77=yes
14398
hardcode_shlibpath_var_F77=unsupported
14399
whole_archive_flag_spec_F77='-all_load $convenience'
14400
link_all_deplibs_F77=yes
14407
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14408
hardcode_libdir_flag_spec_F77='-L$libdir'
14409
hardcode_shlibpath_var_F77=no
14416
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14417
# support. Future versions do this automatically, but an explicit c++rt0.o
14418
# does not break anything, and helps significantly (at the cost of a little
14421
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14422
hardcode_libdir_flag_spec_F77='-R$libdir'
14423
hardcode_direct_F77=yes
14424
hardcode_shlibpath_var_F77=no
14427
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
14429
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14430
hardcode_direct_F77=yes
14431
hardcode_minus_L_F77=yes
14432
hardcode_shlibpath_var_F77=no
14435
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14436
freebsd* | kfreebsd*-gnu)
14437
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14438
hardcode_libdir_flag_spec_F77='-R$libdir'
14439
hardcode_direct_F77=yes
14440
hardcode_shlibpath_var_F77=no
14444
if test "$GCC" = yes; then
14445
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'
14447
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'
14449
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14450
hardcode_libdir_separator_F77=:
14451
hardcode_direct_F77=yes
14453
# hardcode_minus_L: Not really in the search PATH,
14454
# but as the default location of the library.
14455
hardcode_minus_L_F77=yes
14456
export_dynamic_flag_spec_F77='${wl}-E'
14460
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14461
case "$host_cpu" in
14463
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14466
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14470
case "$host_cpu" in
14472
archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14475
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14479
if test "$with_gnu_ld" = no; then
14480
case "$host_cpu" in
14482
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14483
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14484
hardcode_libdir_separator_F77=:
14485
hardcode_direct_F77=no
14486
hardcode_shlibpath_var_F77=no
14489
hardcode_libdir_flag_spec_F77='-L$libdir'
14490
hardcode_direct_F77=no
14491
hardcode_shlibpath_var_F77=no
14493
# hardcode_minus_L: Not really in the search PATH,
14494
# but as the default location of the library.
14495
hardcode_minus_L_F77=yes
14498
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14499
hardcode_libdir_separator_F77=:
14500
hardcode_direct_F77=yes
14501
export_dynamic_flag_spec_F77='${wl}-E'
14503
# hardcode_minus_L: Not really in the search PATH,
14504
# but as the default location of the library.
14505
hardcode_minus_L_F77=yes
14511
irix5* | irix6* | nonstopux*)
14512
if test "$GCC" = yes; then
14513
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'
14515
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'
14516
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14518
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14519
hardcode_libdir_separator_F77=:
14520
link_all_deplibs_F77=yes
14524
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14525
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14527
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14529
hardcode_libdir_flag_spec_F77='-R$libdir'
14530
hardcode_direct_F77=yes
14531
hardcode_shlibpath_var_F77=no
14535
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14536
hardcode_direct_F77=yes
14537
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14538
hardcode_libdir_separator_F77=:
14539
hardcode_shlibpath_var_F77=no
14543
hardcode_direct_F77=yes
14544
hardcode_shlibpath_var_F77=no
14545
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14546
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14547
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14548
export_dynamic_flag_spec_F77='${wl}-E'
14551
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14552
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14553
hardcode_libdir_flag_spec_F77='-R$libdir'
14556
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14557
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14564
hardcode_libdir_flag_spec_F77='-L$libdir'
14565
hardcode_minus_L_F77=yes
14566
allow_undefined_flag_F77=unsupported
14567
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'
14568
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14572
if test "$GCC" = yes; then
14573
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14574
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'
14576
allow_undefined_flag_F77=' -expect_unresolved \*'
14577
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'
14579
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14580
hardcode_libdir_separator_F77=:
14583
osf4* | osf5*) # as osf3* with the addition of -msym flag
14584
if test "$GCC" = yes; then
14585
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14586
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'
14587
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14589
allow_undefined_flag_F77=' -expect_unresolved \*'
14590
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'
14591
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~
14592
$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'
14594
# Both c and cxx compiler support -rpath directly
14595
hardcode_libdir_flag_spec_F77='-rpath $libdir'
14597
hardcode_libdir_separator_F77=:
14601
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14602
hardcode_shlibpath_var_F77=no
14603
export_dynamic_flag_spec_F77='${wl}-Bexport'
14604
runpath_var=LD_RUN_PATH
14605
hardcode_runpath_var=yes
14609
no_undefined_flag_F77=' -z text'
14610
if test "$GCC" = yes; then
14611
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14612
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14613
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14615
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14616
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14617
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14619
hardcode_libdir_flag_spec_F77='-R$libdir'
14620
hardcode_shlibpath_var_F77=no
14622
solaris2.[0-5] | solaris2.[0-5].*) ;;
14623
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
14624
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14626
link_all_deplibs_F77=yes
14630
if test "x$host_vendor" = xsequent; then
14631
# Use $CC to link under sequent, because it throws in some extra .o
14632
# files that make .init and .fini sections work.
14633
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14635
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14637
hardcode_libdir_flag_spec_F77='-L$libdir'
14638
hardcode_direct_F77=yes
14639
hardcode_minus_L_F77=yes
14640
hardcode_shlibpath_var_F77=no
14644
case $host_vendor in
14646
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14647
hardcode_direct_F77=yes # is this really true???
14650
## LD is ld it makes a PLAMLIB
14651
## CC just makes a GrossModule.
14652
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14653
reload_cmds_F77='$CC -r -o $output$reload_objs'
14654
hardcode_direct_F77=no
14657
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14658
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14661
runpath_var='LD_RUN_PATH'
14662
hardcode_shlibpath_var_F77=no
14666
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14667
hardcode_shlibpath_var_F77=no
14668
export_dynamic_flag_spec_F77='-Bexport'
14672
if test -d /usr/nec; then
14673
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14674
hardcode_shlibpath_var_F77=no
14675
runpath_var=LD_RUN_PATH
14676
hardcode_runpath_var=yes
14682
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14683
hardcode_direct_F77=yes
14684
hardcode_minus_L_F77=no
14685
hardcode_shlibpath_var_F77=no
14686
hardcode_runpath_var=yes
14687
runpath_var=LD_RUN_PATH
14690
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14691
no_undefined_flag_F77='${wl}-z ${wl}text'
14692
if test "$GCC" = yes; then
14693
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14695
archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14697
runpath_var='LD_RUN_PATH'
14698
hardcode_shlibpath_var_F77=no
14702
no_undefined_flag_F77=' -z text'
14703
# $CC -shared without GNU ld will not create a library from C++
14704
# object files and a static libstdc++, better avoid it by now
14705
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14706
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14707
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14708
hardcode_libdir_flag_spec_F77=
14709
hardcode_shlibpath_var_F77=no
14710
runpath_var='LD_RUN_PATH'
14714
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14715
hardcode_libdir_flag_spec_F77='-L$libdir'
14716
hardcode_shlibpath_var_F77=no
14725
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14726
echo "${ECHO_T}$ld_shlibs_F77" >&6
14727
test "$ld_shlibs_F77" = no && can_build_shared=no
14729
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14730
if test "$GCC" = yes; then
14731
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14735
# Do we need to explicitly link libc?
14737
case "x$archive_cmds_need_lc_F77" in
14739
# Assume -lc should be added
14740
archive_cmds_need_lc_F77=yes
14742
if test "$enable_shared" = yes && test "$GCC" = yes; then
14743
case $archive_cmds_F77 in
14745
# FIXME: we may have to deal with multi-command sequences.
14748
# Test whether the compiler implicitly links with -lc since on some
14749
# systems, -lgcc has to come before -lc. If gcc already passes -lc
14750
# to ld, don't add -lc before -lgcc.
14751
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14752
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14754
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14756
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14757
(eval $ac_compile) 2>&5
14759
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760
(exit $ac_status); } 2>conftest.err; then
14763
libobjs=conftest.$ac_objext
14765
wl=$lt_prog_compiler_wl_F77
14771
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14772
allow_undefined_flag_F77=
14773
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14774
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14776
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777
(exit $ac_status); }
14779
archive_cmds_need_lc_F77=no
14781
archive_cmds_need_lc_F77=yes
14783
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14785
cat conftest.err 1>&5
14788
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14789
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14796
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14797
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14798
library_names_spec=
14799
libname_spec='lib$name'
14803
postuninstall_cmds=
14807
shlibpath_overrides_runpath=unknown
14809
dynamic_linker="$host_os ld.so"
14810
sys_lib_dlsearch_path_spec="/lib /usr/lib"
14811
if test "$GCC" = yes; then
14812
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14813
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14814
# if the path contains ";" then we assume it to be the separator
14815
# otherwise default to the standard path separator (i.e. ":") - it is
14816
# assumed that no part of a normal pathname contains ";" but that should
14817
# okay in the real world where ";" in dirpaths is itself problematic.
14818
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14820
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14823
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14825
need_lib_prefix=unknown
14826
hardcode_into_libs=no
14828
# when you set need_version to no, make sure it does not cause -set_version
14829
# flags to be left without arguments
14830
need_version=unknown
14835
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14836
shlibpath_var=LIBPATH
14838
# AIX 3 has no versioning support, so we append a major version to the name.
14839
soname_spec='${libname}${release}${shared_ext}$major'
14846
hardcode_into_libs=yes
14847
if test "$host_cpu" = ia64; then
14848
# AIX 5 supports IA64
14849
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14850
shlibpath_var=LD_LIBRARY_PATH
14852
# With GCC up to 2.95.x, collect2 would create an import file
14853
# for dependence libraries. The import file would start with
14854
# the line `#! .'. This would cause the generated library to
14855
# depend on `.', always an invalid library. This was fixed in
14856
# development snapshots of GCC prior to 3.0.
14858
aix4 | aix4.[01] | aix4.[01].*)
14859
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14861
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14864
can_build_shared=no
14868
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14869
# soname into executable. Probably we can add versioning support to
14870
# collect2, so additional links can be useful in future.
14871
if test "$aix_use_runtimelinking" = yes; then
14872
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
14873
# instead of lib<name>.a to let people know that these are not
14874
# typical AIX shared libraries.
14875
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14877
# We preserve .a as extension for shared libraries through AIX4.2
14878
# and later when we are not doing run time linking.
14879
library_names_spec='${libname}${release}.a $libname.a'
14880
soname_spec='${libname}${release}${shared_ext}$major'
14882
shlibpath_var=LIBPATH
14887
library_names_spec='$libname.ixlibrary $libname.a'
14888
# Create ${libname}_ixlibrary.a entries in /sys/libs.
14889
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'
14893
library_names_spec='${libname}${shared_ext}'
14894
dynamic_linker="$host_os ld.so"
14895
shlibpath_var=LIBRARY_PATH
14901
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14902
soname_spec='${libname}${release}${shared_ext}$major'
14903
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14904
shlibpath_var=LD_LIBRARY_PATH
14905
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14906
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14907
# the default ld.so.conf also contains /usr/contrib/lib and
14908
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14909
# libtool to hard-code these into programs
14912
cygwin* | mingw* | pw32*)
14913
version_type=windows
14918
case $GCC,$host_os in
14919
yes,cygwin* | yes,mingw* | yes,pw32*)
14920
library_names_spec='$libname.dll.a'
14921
# DLL is installed to $(libdir)/../bin by postinstall_cmds
14922
postinstall_cmds='base_file=`basename \${file}`~
14923
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14924
dldir=$destdir/`dirname \$dlpath`~
14925
test -d \$dldir || mkdir -p \$dldir~
14926
$install_prog $dir/$dlname \$dldir/$dlname'
14927
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14928
dlpath=$dir/\$dldll~
14930
shlibpath_overrides_runpath=yes
14934
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
14935
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14936
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14939
# MinGW DLLs use traditional 'lib' prefix
14940
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14941
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14942
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14943
# It is most probably a Windows format PATH printed by
14944
# mingw gcc, but we are running on Cygwin. Gcc prints its search
14945
# path with ; separators, and with drive letters. We can handle the
14946
# drive letters (cygwin fileutils understands them), so leave them,
14947
# especially as we might pass files found there to a mingw objdump,
14948
# which wouldn't understand a cygwinified path. Ahh.
14949
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14951
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14955
# pw32 DLLs use 'pw' prefix rather than 'lib'
14956
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14962
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14965
dynamic_linker='Win32 ld.exe'
14966
# FIXME: first we should search . and the directory the executable is in
14970
darwin* | rhapsody*)
14971
dynamic_linker="$host_os dyld"
14972
version_type=darwin
14975
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14976
soname_spec='${libname}${release}${major}$shared_ext'
14977
shlibpath_overrides_runpath=yes
14978
shlibpath_var=DYLD_LIBRARY_PATH
14979
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14980
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14981
if test "$GCC" = yes; then
14982
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"`
14984
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14986
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14993
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14994
soname_spec='${libname}${release}${shared_ext}$major'
14995
shlibpath_var=LD_LIBRARY_PATH
15006
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15007
soname_spec='${libname}${release}${shared_ext}$major'
15008
shlibpath_var=LD_LIBRARY_PATH
15009
shlibpath_overrides_runpath=no
15010
hardcode_into_libs=yes
15011
dynamic_linker='GNU ld.so'
15015
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15016
version_type=freebsd-$objformat
15017
case $version_type in
15019
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15024
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15028
shlibpath_var=LD_LIBRARY_PATH
15031
shlibpath_overrides_runpath=yes
15033
freebsd3.01* | freebsdelf3.01*)
15034
shlibpath_overrides_runpath=yes
15035
hardcode_into_libs=yes
15038
shlibpath_overrides_runpath=no
15039
hardcode_into_libs=yes
15048
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15049
soname_spec='${libname}${release}${shared_ext}$major'
15050
shlibpath_var=LD_LIBRARY_PATH
15051
hardcode_into_libs=yes
15054
hpux9* | hpux10* | hpux11*)
15055
# Give a soname corresponding to the major version so that dld.sl refuses to
15056
# link against other versions.
15060
case "$host_cpu" in
15063
hardcode_into_libs=yes
15064
dynamic_linker="$host_os dld.so"
15065
shlibpath_var=LD_LIBRARY_PATH
15066
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15067
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15068
soname_spec='${libname}${release}${shared_ext}$major'
15069
if test "X$HPUX_IA64_MODE" = X32; then
15070
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15072
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15074
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15078
hardcode_into_libs=yes
15079
dynamic_linker="$host_os dld.sl"
15080
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15081
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15082
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15083
soname_spec='${libname}${release}${shared_ext}$major'
15084
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15085
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15089
dynamic_linker="$host_os dld.sl"
15090
shlibpath_var=SHLIB_PATH
15091
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15092
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15093
soname_spec='${libname}${release}${shared_ext}$major'
15096
# HP-UX runs *really* slowly unless shared libraries are mode 555.
15097
postinstall_cmds='chmod 555 $lib'
15100
irix5* | irix6* | nonstopux*)
15102
nonstopux*) version_type=nonstopux ;;
15104
if test "$lt_cv_prog_gnu_ld" = yes; then
15112
soname_spec='${libname}${release}${shared_ext}$major'
15113
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15115
irix5* | nonstopux*)
15116
libsuff= shlibsuff=
15119
case $LD in # libtool.m4 will add one of these switches to LD
15120
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15121
libsuff= shlibsuff= libmagic=32-bit;;
15122
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15123
libsuff=32 shlibsuff=N32 libmagic=N32;;
15124
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15125
libsuff=64 shlibsuff=64 libmagic=64-bit;;
15126
*) libsuff= shlibsuff= libmagic=never-match;;
15130
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15131
shlibpath_overrides_runpath=no
15132
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15133
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15134
hardcode_into_libs=yes
15137
# No shared lib support for Linux oldld, aout, or coff.
15138
linux*oldld* | linux*aout* | linux*coff*)
15142
# This must be Linux ELF.
15147
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15148
soname_spec='${libname}${release}${shared_ext}$major'
15149
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15150
shlibpath_var=LD_LIBRARY_PATH
15151
shlibpath_overrides_runpath=no
15152
# This implies no fast_install, which is unacceptable.
15153
# Some rework will be needed to allow for fast_install
15154
# before this can be enabled.
15155
hardcode_into_libs=yes
15157
# find out which ABI we are using
15159
case "$host_cpu" in
15160
x86_64*|s390x*|powerpc64*)
15161
echo '#line 15161 "configure"' > conftest.$ac_ext
15162
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15163
(eval $ac_compile) 2>&5
15165
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166
(exit $ac_status); }; then
15167
case `/usr/bin/file conftest.$ac_objext` in
15170
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15178
# Append ld.so.conf contents to the search path
15179
if test -f /etc/ld.so.conf; then
15180
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
15181
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15184
# We used to test for /lib/ld.so.1 and disable shared libraries on
15185
# powerpc, because MkLinux only supported shared libraries with the
15186
# GNU dynamic linker. Since this was broken with cross compilers,
15187
# most powerpc-linux boxes support dynamic linking these days and
15188
# people can always --disable-shared, the test was removed, and we
15189
# assume the GNU/Linux dynamic linker is in use.
15190
dynamic_linker='GNU/Linux ld.so'
15197
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15198
soname_spec='${libname}${release}${shared_ext}$major'
15199
shlibpath_var=LD_LIBRARY_PATH
15200
shlibpath_overrides_runpath=no
15201
hardcode_into_libs=yes
15202
dynamic_linker='GNU ld.so'
15209
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15210
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15211
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15212
dynamic_linker='NetBSD (a.out) ld.so'
15214
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15215
soname_spec='${libname}${release}${shared_ext}$major'
15216
dynamic_linker='NetBSD ld.elf_so'
15218
shlibpath_var=LD_LIBRARY_PATH
15219
shlibpath_overrides_runpath=yes
15220
hardcode_into_libs=yes
15225
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15226
shlibpath_var=LD_LIBRARY_PATH
15227
shlibpath_overrides_runpath=yes
15234
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15235
soname_spec='${libname}${release}${shared_ext}$major'
15236
shlibpath_var=LD_LIBRARY_PATH
15237
shlibpath_overrides_runpath=yes
15244
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15245
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15246
shlibpath_var=LD_LIBRARY_PATH
15247
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15249
openbsd2.[89] | openbsd2.[89].*)
15250
shlibpath_overrides_runpath=no
15253
shlibpath_overrides_runpath=yes
15257
shlibpath_overrides_runpath=yes
15262
libname_spec='$name'
15265
library_names_spec='$libname${shared_ext} $libname.a'
15266
dynamic_linker='OS/2 ld.exe'
15267
shlibpath_var=LIBPATH
15270
osf3* | osf4* | osf5*)
15274
soname_spec='${libname}${release}${shared_ext}$major'
15275
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15276
shlibpath_var=LD_LIBRARY_PATH
15277
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15278
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15283
soname_spec='${libname}${release}${shared_ext}$major'
15284
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15285
shlibpath_var=LD_LIBRARY_PATH
15292
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15293
soname_spec='${libname}${release}${shared_ext}$major'
15294
shlibpath_var=LD_LIBRARY_PATH
15295
shlibpath_overrides_runpath=yes
15296
hardcode_into_libs=yes
15297
# ldd complains unless libraries are executable
15298
postinstall_cmds='chmod +x $lib'
15303
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15304
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15305
shlibpath_var=LD_LIBRARY_PATH
15306
shlibpath_overrides_runpath=yes
15307
if test "$with_gnu_ld" = yes; then
15313
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15315
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15316
soname_spec='${libname}${release}${shared_ext}$major'
15317
shlibpath_var=LD_LIBRARY_PATH
15318
case $host_vendor in
15320
shlibpath_overrides_runpath=no
15322
export_dynamic_flag_spec='${wl}-Blargedynsym'
15323
runpath_var=LD_RUN_PATH
15331
shlibpath_overrides_runpath=no
15332
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15338
if test -d /usr/nec ;then
15340
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15341
soname_spec='$libname${shared_ext}.$major'
15342
shlibpath_var=LD_LIBRARY_PATH
15348
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15349
soname_spec='${libname}${release}${shared_ext}$major'
15350
shlibpath_var=LD_LIBRARY_PATH
15357
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15358
echo "${ECHO_T}$dynamic_linker" >&6
15359
test "$dynamic_linker" = no && can_build_shared=no
15361
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15362
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15363
hardcode_action_F77=
15364
if test -n "$hardcode_libdir_flag_spec_F77" || \
15365
test -n "$runpath_var F77" || \
15366
test "X$hardcode_automatic_F77"="Xyes" ; then
15368
# We can hardcode non-existant directories.
15369
if test "$hardcode_direct_F77" != no &&
15370
# If the only mechanism to avoid hardcoding is shlibpath_var, we
15371
# have to relink, otherwise we might link with an installed library
15372
# when we should be linking with a yet-to-be-installed one
15373
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15374
test "$hardcode_minus_L_F77" != no; then
15375
# Linking always hardcodes the temporary library directory.
15376
hardcode_action_F77=relink
15378
# We can link without hardcoding, and we can hardcode nonexisting dirs.
15379
hardcode_action_F77=immediate
15382
# We cannot hardcode anything, or else we can only hardcode existing
15384
hardcode_action_F77=unsupported
15386
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15387
echo "${ECHO_T}$hardcode_action_F77" >&6
15389
if test "$hardcode_action_F77" = relink; then
15390
# Fast installation is not supported
15391
enable_fast_install=no
15392
elif test "$shlibpath_overrides_runpath" = yes ||
15393
test "$enable_shared" = no; then
15394
# Fast installation is not necessary
15395
enable_fast_install=needless
15400
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15401
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15402
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15403
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15404
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15405
echo "$as_me:$LINENO: result: yes" >&5
15406
echo "${ECHO_T}yes" >&6
15408
# FIXME - insert some real tests, host_os isn't really good enough
15411
if test -n "$STRIP" ; then
15412
striplib="$STRIP -x"
15413
echo "$as_me:$LINENO: result: yes" >&5
15414
echo "${ECHO_T}yes" >&6
15416
echo "$as_me:$LINENO: result: no" >&5
15417
echo "${ECHO_T}no" >&6
15421
echo "$as_me:$LINENO: result: no" >&5
15422
echo "${ECHO_T}no" >&6
15429
# The else clause should only fire when bootstrapping the
15430
# libtool distribution, otherwise you forgot to ship ltmain.sh
15431
# with your package, and you will get complaints that there are
15432
# no rules to generate ltmain.sh.
15433
if test -f "$ltmain"; then
15434
# See if we are running on zsh, and set the options which allow our commands through
15435
# without removal of \ escapes.
15436
if test -n "${ZSH_VERSION+set}" ; then
15437
setopt NO_GLOB_SUBST
15439
# Now quote all the things that may contain metacharacters while being
15440
# careful not to overquote the AC_SUBSTed values. We take copies of the
15441
# variables and quote the copies for generation of the libtool script.
15442
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15444
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15445
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15446
deplibs_check_method reload_flag reload_cmds need_locks \
15447
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15448
lt_cv_sys_global_symbol_to_c_name_address \
15449
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15450
old_postinstall_cmds old_postuninstall_cmds \
15454
lt_prog_compiler_wl_F77 \
15455
lt_prog_compiler_pic_F77 \
15456
lt_prog_compiler_static_F77 \
15457
lt_prog_compiler_no_builtin_flag_F77 \
15458
export_dynamic_flag_spec_F77 \
15459
thread_safe_flag_spec_F77 \
15460
whole_archive_flag_spec_F77 \
15461
enable_shared_with_static_runtimes_F77 \
15462
old_archive_cmds_F77 \
15463
old_archive_from_new_cmds_F77 \
15464
predep_objects_F77 \
15465
postdep_objects_F77 \
15468
compiler_lib_search_path_F77 \
15470
archive_expsym_cmds_F77 \
15471
postinstall_cmds_F77 \
15472
postuninstall_cmds_F77 \
15473
old_archive_from_expsyms_cmds_F77 \
15474
allow_undefined_flag_F77 \
15475
no_undefined_flag_F77 \
15476
export_symbols_cmds_F77 \
15477
hardcode_libdir_flag_spec_F77 \
15478
hardcode_libdir_flag_spec_ld_F77 \
15479
hardcode_libdir_separator_F77 \
15480
hardcode_automatic_F77 \
15482
module_expsym_cmds_F77 \
15483
lt_cv_prog_compiler_c_o_F77 \
15484
exclude_expsyms_F77 \
15485
include_expsyms_F77; do
15488
old_archive_cmds_F77 | \
15489
old_archive_from_new_cmds_F77 | \
15490
archive_cmds_F77 | \
15491
archive_expsym_cmds_F77 | \
15492
module_cmds_F77 | \
15493
module_expsym_cmds_F77 | \
15494
old_archive_from_expsyms_cmds_F77 | \
15495
export_symbols_cmds_F77 | \
15496
extract_expsyms_cmds | reload_cmds | finish_cmds | \
15497
postinstall_cmds | postuninstall_cmds | \
15498
old_postinstall_cmds | old_postuninstall_cmds | \
15499
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15500
# Double-quote double-evaled strings.
15501
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15504
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15510
*'\$0 --fallback-echo"')
15511
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15517
cat <<__EOF__ >> "$cfgfile"
15518
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15520
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15522
# Shell to use when invoking shell scripts.
15525
# Whether or not to build shared libraries.
15526
build_libtool_libs=$enable_shared
15528
# Whether or not to build static libraries.
15529
build_old_libs=$enable_static
15531
# Whether or not to add -lc for building shared libraries.
15532
build_libtool_need_lc=$archive_cmds_need_lc_F77
15534
# Whether or not to disallow shared libs when runtime libs are static
15535
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15537
# Whether or not to optimize for fast installation.
15538
fast_install=$enable_fast_install
15541
host_alias=$host_alias
15544
# An echo program that does not interpret backslashes.
15549
AR_FLAGS=$lt_AR_FLAGS
15554
# A language-specific compiler.
15555
CC=$lt_compiler_F77
15557
# Is the compiler the GNU C compiler?
15563
# The linker used to build libraries.
15566
# Whether we need hard or soft links.
15569
# A BSD-compatible nm program.
15572
# A symbol stripping program
15575
# Used to examine libraries when file_magic_cmd begins "file"
15576
MAGIC_CMD=$MAGIC_CMD
15578
# Used on cygwin: DLL creation program.
15581
# Used on cygwin: object dumper.
15584
# Used on cygwin: assembler.
15587
# The name of the directory that contains temporary libtool files.
15590
# How to create reloadable object files.
15591
reload_flag=$lt_reload_flag
15592
reload_cmds=$lt_reload_cmds
15594
# How to pass a linker flag through the compiler.
15595
wl=$lt_lt_prog_compiler_wl_F77
15597
# Object file suffix (normally "o").
15598
objext="$ac_objext"
15600
# Old archive suffix (normally "a").
15603
# Shared library suffix (normally ".so").
15604
shrext_cmds='$shrext_cmds'
15606
# Executable file suffix (normally "").
15609
# Additional compiler flags for building library objects.
15610
pic_flag=$lt_lt_prog_compiler_pic_F77
15613
# What is the maximum length of a command?
15614
max_cmd_len=$lt_cv_sys_max_cmd_len
15616
# Does compiler simultaneously support -c and -o options?
15617
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15619
# Must we lock files when doing compilation ?
15620
need_locks=$lt_need_locks
15622
# Do we need the lib prefix for modules?
15623
need_lib_prefix=$need_lib_prefix
15625
# Do we need a version for libraries?
15626
need_version=$need_version
15628
# Whether dlopen is supported.
15629
dlopen_support=$enable_dlopen
15631
# Whether dlopen of programs is supported.
15632
dlopen_self=$enable_dlopen_self
15634
# Whether dlopen of statically linked programs is supported.
15635
dlopen_self_static=$enable_dlopen_self_static
15637
# Compiler flag to prevent dynamic linking.
15638
link_static_flag=$lt_lt_prog_compiler_static_F77
15640
# Compiler flag to turn off builtin functions.
15641
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15643
# Compiler flag to allow reflexive dlopens.
15644
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15646
# Compiler flag to generate shared objects directly from archives.
15647
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15649
# Compiler flag to generate thread-safe objects.
15650
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15652
# Library versioning type.
15653
version_type=$version_type
15655
# Format of library name prefix.
15656
libname_spec=$lt_libname_spec
15658
# List of archive names. First name is the real one, the rest are links.
15659
# The last name is the one that the linker finds with -lNAME.
15660
library_names_spec=$lt_library_names_spec
15662
# The coded name of the library, if different from the real name.
15663
soname_spec=$lt_soname_spec
15665
# Commands used to build and install an old-style archive.
15667
old_archive_cmds=$lt_old_archive_cmds_F77
15668
old_postinstall_cmds=$lt_old_postinstall_cmds
15669
old_postuninstall_cmds=$lt_old_postuninstall_cmds
15671
# Create an old-style archive from a shared archive.
15672
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15674
# Create a temporary old-style archive to link instead of a shared archive.
15675
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15677
# Commands used to build and install a shared archive.
15678
archive_cmds=$lt_archive_cmds_F77
15679
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15680
postinstall_cmds=$lt_postinstall_cmds
15681
postuninstall_cmds=$lt_postuninstall_cmds
15683
# Commands used to build a loadable module (assumed same as above if empty)
15684
module_cmds=$lt_module_cmds_F77
15685
module_expsym_cmds=$lt_module_expsym_cmds_F77
15687
# Commands to strip libraries.
15688
old_striplib=$lt_old_striplib
15689
striplib=$lt_striplib
15691
# Dependencies to place before the objects being linked to create a
15693
predep_objects=$lt_predep_objects_F77
15695
# Dependencies to place after the objects being linked to create a
15697
postdep_objects=$lt_postdep_objects_F77
15699
# Dependencies to place before the objects being linked to create a
15701
predeps=$lt_predeps_F77
15703
# Dependencies to place after the objects being linked to create a
15705
postdeps=$lt_postdeps_F77
15707
# The library search path used internally by the compiler when linking
15708
# a shared library.
15709
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15711
# Method to check whether dependent libraries are shared objects.
15712
deplibs_check_method=$lt_deplibs_check_method
15714
# Command to use when deplibs_check_method == file_magic.
15715
file_magic_cmd=$lt_file_magic_cmd
15717
# Flag that allows shared libraries with undefined symbols to be built.
15718
allow_undefined_flag=$lt_allow_undefined_flag_F77
15720
# Flag that forces no undefined symbols.
15721
no_undefined_flag=$lt_no_undefined_flag_F77
15723
# Commands used to finish a libtool library installation in a directory.
15724
finish_cmds=$lt_finish_cmds
15726
# Same as above, but a single script fragment to be evaled but not shown.
15727
finish_eval=$lt_finish_eval
15729
# Take the output of nm and produce a listing of raw symbols and C names.
15730
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15732
# Transform the output of nm in a proper C declaration
15733
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15735
# Transform the output of nm in a C name address pair
15736
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15738
# This is the shared library runtime path variable.
15739
runpath_var=$runpath_var
15741
# This is the shared library path variable.
15742
shlibpath_var=$shlibpath_var
15744
# Is shlibpath searched before the hard-coded library search path?
15745
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15747
# How to hardcode a shared library path into an executable.
15748
hardcode_action=$hardcode_action_F77
15750
# Whether we should hardcode library paths into libraries.
15751
hardcode_into_libs=$hardcode_into_libs
15753
# Flag to hardcode \$libdir into a binary during linking.
15754
# This must work even if \$libdir does not exist.
15755
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15757
# If ld is used when linking, flag to hardcode \$libdir into
15758
# a binary during linking. This must work even if \$libdir does
15760
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15762
# Whether we need a single -rpath flag with a separated argument.
15763
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15765
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15766
# resulting binary.
15767
hardcode_direct=$hardcode_direct_F77
15769
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15770
# resulting binary.
15771
hardcode_minus_L=$hardcode_minus_L_F77
15773
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15774
# the resulting binary.
15775
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15777
# Set to yes if building a shared library automatically hardcodes DIR into the library
15778
# and all subsequent libraries and executables linked against it.
15779
hardcode_automatic=$hardcode_automatic_F77
15781
# Variables whose values should be saved in libtool wrapper scripts and
15782
# restored at relink time.
15783
variables_saved_for_relink="$variables_saved_for_relink"
15785
# Whether libtool must link a program against all its dependency libraries.
15786
link_all_deplibs=$link_all_deplibs_F77
15788
# Compile-time system search path for libraries
15789
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15791
# Run-time system search path for libraries
15792
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15794
# Fix the shell variable \$srcfile for the compiler.
15795
fix_srcfile_path="$fix_srcfile_path_F77"
15797
# Set to yes if exported symbols are required.
15798
always_export_symbols=$always_export_symbols_F77
15800
# The commands to list exported symbols.
15801
export_symbols_cmds=$lt_export_symbols_cmds_F77
15803
# The commands to extract the exported symbol list from a shared archive.
15804
extract_expsyms_cmds=$lt_extract_expsyms_cmds
15806
# Symbols that should not be listed in the preloaded symbols.
15807
exclude_expsyms=$lt_exclude_expsyms_F77
15809
# Symbols that must always be exported.
15810
include_expsyms=$lt_include_expsyms_F77
15812
# ### END LIBTOOL TAG CONFIG: $tagname
15818
# If there is no Makefile yet, we rely on a make rule to execute
15819
# `config.status --recheck' to rerun these tests and create the
15820
# libtool script then.
15821
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15822
if test -f "$ltmain_in"; then
15823
test -f Makefile && make "$ltmain"
15829
ac_cpp='$CPP $CPPFLAGS'
15830
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15831
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15832
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15842
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15846
# Source file extension for Java test sources.
15849
# Object file extension for compiled Java test sources.
15853
# Code to be used in simple compile tests
15854
lt_simple_compile_test_code="class foo {}\n"
15856
# Code to be used in simple link tests
15857
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15859
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15861
# If no C compiler was specified, use CC.
15864
# Allow CC to be a program name with arguments.
15868
# Allow CC to be a program name with arguments.
15874
# GCJ did not exist at the time GCC didn't implicitly link libc in.
15875
archive_cmds_need_lc_GCJ=no
15878
lt_prog_compiler_no_builtin_flag_GCJ=
15880
if test "$GCC" = yes; then
15881
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15884
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15885
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15886
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15887
echo $ECHO_N "(cached) $ECHO_C" >&6
15889
lt_cv_prog_compiler_rtti_exceptions=no
15890
ac_outfile=conftest.$ac_objext
15891
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15892
lt_compiler_flag="-fno-rtti -fno-exceptions"
15893
# Insert the option either (1) after the last *FLAGS variable, or
15894
# (2) before a word containing "conftest.", or (3) at the end.
15895
# Note that $ac_compile itself does not contain backslashes and begins
15896
# with a dollar sign (not a hyphen), so the echo should work correctly.
15897
# The option is referenced via a variable to avoid confusing sed.
15898
lt_compile=`echo "$ac_compile" | $SED \
15899
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15900
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15901
-e 's:$: $lt_compiler_flag:'`
15902
(eval echo "\"\$as_me:15902: $lt_compile\"" >&5)
15903
(eval "$lt_compile" 2>conftest.err)
15905
cat conftest.err >&5
15906
echo "$as_me:15906: \$? = $ac_status" >&5
15907
if (exit $ac_status) && test -s "$ac_outfile"; then
15908
# The compiler can only warn and ignore the option if not recognized
15909
# So say no if there are warnings
15910
if test ! -s conftest.err; then
15911
lt_cv_prog_compiler_rtti_exceptions=yes
15917
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15918
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15920
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15921
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15928
lt_prog_compiler_wl_GCJ=
15929
lt_prog_compiler_pic_GCJ=
15930
lt_prog_compiler_static_GCJ=
15932
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15933
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15935
if test "$GCC" = yes; then
15936
lt_prog_compiler_wl_GCJ='-Wl,'
15937
lt_prog_compiler_static_GCJ='-static'
15941
# All AIX code is PIC.
15942
if test "$host_cpu" = ia64; then
15943
# AIX 5 now supports IA64 processor
15944
lt_prog_compiler_static_GCJ='-Bstatic'
15949
# FIXME: we need at least 68020 code to build shared libraries, but
15950
# adding the `-m68020' flag to GCC prevents building anything better,
15952
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15955
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15956
# PIC is the default for these OSes.
15959
mingw* | pw32* | os2*)
15960
# This hack is so that the source file can tell whether it is being
15961
# built for inclusion in a dll (and should export symbols for example).
15962
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15965
darwin* | rhapsody*)
15966
# PIC is the default on this platform
15967
# Common symbols not allowed in MH_DYLIB files
15968
lt_prog_compiler_pic_GCJ='-fno-common'
15972
# Just because we use GCC doesn't mean we suddenly get shared libraries
15973
# on systems that don't support them.
15974
lt_prog_compiler_can_build_shared_GCJ=no
15979
if test -d /usr/nec; then
15980
lt_prog_compiler_pic_GCJ=-Kconform_pic
15985
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15986
# not for PA HP-UX.
15987
case "$host_cpu" in
15992
lt_prog_compiler_pic_GCJ='-fPIC'
15998
lt_prog_compiler_pic_GCJ='-fPIC'
16002
# PORTME Check for flag to pass linker flags through the system compiler.
16005
lt_prog_compiler_wl_GCJ='-Wl,'
16006
if test "$host_cpu" = ia64; then
16007
# AIX 5 now supports IA64 processor
16008
lt_prog_compiler_static_GCJ='-Bstatic'
16010
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16014
mingw* | pw32* | os2*)
16015
# This hack is so that the source file can tell whether it is being
16016
# built for inclusion in a dll (and should export symbols for example).
16017
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16020
hpux9* | hpux10* | hpux11*)
16021
lt_prog_compiler_wl_GCJ='-Wl,'
16022
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16023
# not for PA HP-UX.
16024
case "$host_cpu" in
16029
lt_prog_compiler_pic_GCJ='+Z'
16032
# Is there a better lt_prog_compiler_static that works with the bundled CC?
16033
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16036
irix5* | irix6* | nonstopux*)
16037
lt_prog_compiler_wl_GCJ='-Wl,'
16038
# PIC (with -KPIC) is the default.
16039
lt_prog_compiler_static_GCJ='-non_shared'
16043
lt_prog_compiler_pic_GCJ='-KPIC'
16044
lt_prog_compiler_static_GCJ='-Bstatic'
16050
lt_prog_compiler_wl_GCJ='-Wl,'
16051
lt_prog_compiler_pic_GCJ='-KPIC'
16052
lt_prog_compiler_static_GCJ='-static'
16055
lt_prog_compiler_wl_GCJ='-Wl,'
16056
# All Alpha code is PIC.
16057
lt_prog_compiler_static_GCJ='-non_shared'
16062
osf3* | osf4* | osf5*)
16063
lt_prog_compiler_wl_GCJ='-Wl,'
16064
# All OSF/1 code is PIC.
16065
lt_prog_compiler_static_GCJ='-non_shared'
16069
lt_prog_compiler_pic_GCJ='-Kpic'
16070
lt_prog_compiler_static_GCJ='-dn'
16074
lt_prog_compiler_wl_GCJ='-Wl,'
16075
lt_prog_compiler_pic_GCJ='-KPIC'
16076
lt_prog_compiler_static_GCJ='-Bstatic'
16080
lt_prog_compiler_wl_GCJ='-Qoption ld '
16081
lt_prog_compiler_pic_GCJ='-PIC'
16082
lt_prog_compiler_static_GCJ='-Bstatic'
16085
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16086
lt_prog_compiler_wl_GCJ='-Wl,'
16087
lt_prog_compiler_pic_GCJ='-KPIC'
16088
lt_prog_compiler_static_GCJ='-Bstatic'
16092
if test -d /usr/nec ;then
16093
lt_prog_compiler_pic_GCJ='-Kconform_pic'
16094
lt_prog_compiler_static_GCJ='-Bstatic'
16099
lt_prog_compiler_pic_GCJ='-pic'
16100
lt_prog_compiler_static_GCJ='-Bstatic'
16104
lt_prog_compiler_can_build_shared_GCJ=no
16109
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16110
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16113
# Check to make sure the PIC flag actually works.
16115
if test -n "$lt_prog_compiler_pic_GCJ"; then
16117
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16118
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16119
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16120
echo $ECHO_N "(cached) $ECHO_C" >&6
16122
lt_prog_compiler_pic_works_GCJ=no
16123
ac_outfile=conftest.$ac_objext
16124
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16125
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16126
# Insert the option either (1) after the last *FLAGS variable, or
16127
# (2) before a word containing "conftest.", or (3) at the end.
16128
# Note that $ac_compile itself does not contain backslashes and begins
16129
# with a dollar sign (not a hyphen), so the echo should work correctly.
16130
# The option is referenced via a variable to avoid confusing sed.
16131
lt_compile=`echo "$ac_compile" | $SED \
16132
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16133
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16134
-e 's:$: $lt_compiler_flag:'`
16135
(eval echo "\"\$as_me:16135: $lt_compile\"" >&5)
16136
(eval "$lt_compile" 2>conftest.err)
16138
cat conftest.err >&5
16139
echo "$as_me:16139: \$? = $ac_status" >&5
16140
if (exit $ac_status) && test -s "$ac_outfile"; then
16141
# The compiler can only warn and ignore the option if not recognized
16142
# So say no if there are warnings
16143
if test ! -s conftest.err; then
16144
lt_prog_compiler_pic_works_GCJ=yes
16150
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16151
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16153
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16154
case $lt_prog_compiler_pic_GCJ in
16156
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16159
lt_prog_compiler_pic_GCJ=
16160
lt_prog_compiler_can_build_shared_GCJ=no
16165
# For platforms which do not support PIC, -DPIC is meaningless:
16167
lt_prog_compiler_pic_GCJ=
16170
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16174
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16175
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16176
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16177
echo $ECHO_N "(cached) $ECHO_C" >&6
16179
lt_cv_prog_compiler_c_o_GCJ=no
16180
$rm -r conftest 2>/dev/null
16184
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16186
lt_compiler_flag="-o out/conftest2.$ac_objext"
16187
# Insert the option either (1) after the last *FLAGS variable, or
16188
# (2) before a word containing "conftest.", or (3) at the end.
16189
# Note that $ac_compile itself does not contain backslashes and begins
16190
# with a dollar sign (not a hyphen), so the echo should work correctly.
16191
lt_compile=`echo "$ac_compile" | $SED \
16192
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16193
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16194
-e 's:$: $lt_compiler_flag:'`
16195
(eval echo "\"\$as_me:16195: $lt_compile\"" >&5)
16196
(eval "$lt_compile" 2>out/conftest.err)
16198
cat out/conftest.err >&5
16199
echo "$as_me:16199: \$? = $ac_status" >&5
16200
if (exit $ac_status) && test -s out/conftest2.$ac_objext
16202
# The compiler can only warn and ignore the option if not recognized
16203
# So say no if there are warnings
16204
if test ! -s out/conftest.err; then
16205
lt_cv_prog_compiler_c_o_GCJ=yes
16210
# SGI C++ compiler will create directory out/ii_files/ for
16211
# template instantiation
16212
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16213
$rm out/* && rmdir out
16219
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16220
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16223
hard_links="nottested"
16224
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16225
# do not overwrite the value of need_locks provided by the user
16226
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16227
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16230
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16232
ln conftest.a conftest.b 2>&5 || hard_links=no
16233
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16234
echo "$as_me:$LINENO: result: $hard_links" >&5
16235
echo "${ECHO_T}$hard_links" >&6
16236
if test "$hard_links" = no; then
16237
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16238
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16245
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16246
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16249
allow_undefined_flag_GCJ=
16250
enable_shared_with_static_runtimes_GCJ=no
16252
archive_expsym_cmds_GCJ=
16253
old_archive_From_new_cmds_GCJ=
16254
old_archive_from_expsyms_cmds_GCJ=
16255
export_dynamic_flag_spec_GCJ=
16256
whole_archive_flag_spec_GCJ=
16257
thread_safe_flag_spec_GCJ=
16258
hardcode_libdir_flag_spec_GCJ=
16259
hardcode_libdir_flag_spec_ld_GCJ=
16260
hardcode_libdir_separator_GCJ=
16261
hardcode_direct_GCJ=no
16262
hardcode_minus_L_GCJ=no
16263
hardcode_shlibpath_var_GCJ=unsupported
16264
link_all_deplibs_GCJ=unknown
16265
hardcode_automatic_GCJ=no
16267
module_expsym_cmds_GCJ=
16268
always_export_symbols_GCJ=no
16269
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16270
# include_expsyms should be a list of space-separated symbols to be *always*
16271
# included in the symbol list
16272
include_expsyms_GCJ=
16273
# exclude_expsyms can be an extended regexp of symbols to exclude
16274
# it will be wrapped by ` (' and `)$', so one must not match beginning or
16275
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16276
# as well as any symbol that contains `d'.
16277
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16278
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16279
# platforms (ab)use it in PIC code, but their linkers get confused if
16280
# the symbol is explicitly referenced. Since portable code cannot
16281
# rely on this symbol name, it's probably fine to never include it in
16282
# preloaded symbol tables.
16283
extract_expsyms_cmds=
16286
cygwin* | mingw* | pw32*)
16287
# FIXME: the MSVC++ port hasn't been tested in a loooong time
16288
# When not using gcc, we currently assume that we are using
16289
# Microsoft Visual C++.
16290
if test "$GCC" != yes; then
16300
if test "$with_gnu_ld" = yes; then
16301
# If archive_cmds runs LD, not CC, wlarc should be empty
16304
# See if GNU ld supports shared libraries.
16306
aix3* | aix4* | aix5*)
16307
# On AIX/PPC, the GNU linker is very broken
16308
if test "$host_cpu" != ia64; then
16312
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16313
*** to be unable to reliably create shared libraries on AIX.
16314
*** Therefore, libtool is disabling shared libraries support. If you
16315
*** really care for shared libraries, you may want to modify your PATH
16316
*** so that a non-GNU linker is found, and then restart.
16323
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)'
16324
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16325
hardcode_minus_L_GCJ=yes
16327
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16328
# that the semantics of dynamic libraries on AmigaOS, at least up
16329
# to version 4, is to share data among multiple programs linked
16330
# with the same dynamic library. Since this doesn't match the
16331
# behavior of shared libraries on other platforms, we can't use
16337
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16338
allow_undefined_flag_GCJ=unsupported
16339
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16340
# support --undefined. This deserves some investigation. FIXME
16341
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16347
cygwin* | mingw* | pw32*)
16348
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16349
# as there is no search path for DLLs.
16350
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16351
allow_undefined_flag_GCJ=unsupported
16352
always_export_symbols_GCJ=no
16353
enable_shared_with_static_runtimes_GCJ=yes
16354
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16356
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16357
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16358
# If the export-symbols file already is a .def file (1st line
16359
# is EXPORTS), use it as is; otherwise, prepend...
16360
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16361
cp $export_symbols $output_objdir/$soname.def;
16363
echo EXPORTS > $output_objdir/$soname.def;
16364
cat $export_symbols >> $output_objdir/$soname.def;
16366
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16373
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16374
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16377
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16378
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16383
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16387
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16388
*** create shared libraries on Solaris systems. Therefore, libtool
16389
*** is disabling shared libraries support. We urge you to upgrade GNU
16390
*** binutils to release 2.9.1 or newer. Another option is to modify
16391
*** your PATH or compiler configuration so that the native linker is
16392
*** used, and then restart.
16395
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16396
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16397
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16404
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16406
hardcode_direct_GCJ=yes
16407
hardcode_shlibpath_var_GCJ=no
16411
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16412
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16413
archive_cmds_GCJ="$tmp_archive_cmds"
16414
supports_anon_versioning=no
16415
case `$LD -v 2>/dev/null` in
16416
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16417
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16418
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16419
*\ 2.11.*) ;; # other 2.11 versions
16420
*) supports_anon_versioning=yes ;;
16422
if test $supports_anon_versioning = yes; then
16423
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16424
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16425
$echo "local: *; };" >> $output_objdir/$libname.ver~
16426
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16428
archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16436
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16437
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16438
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16445
if test "$ld_shlibs_GCJ" = yes; then
16446
runpath_var=LD_RUN_PATH
16447
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16448
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16449
# ancient GNU ld didn't support --whole-archive et. al.
16450
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16451
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16453
whole_archive_flag_spec_GCJ=
16457
# PORTME fill in a description of your system's linker (not GNU ld)
16460
allow_undefined_flag_GCJ=unsupported
16461
always_export_symbols_GCJ=yes
16462
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'
16463
# Note: this linker hardcodes the directories in LIBPATH if there
16464
# are no directories specified by -L.
16465
hardcode_minus_L_GCJ=yes
16466
if test "$GCC" = yes && test -z "$link_static_flag"; then
16467
# Neither direct hardcoding nor static linking is supported with a
16469
hardcode_direct_GCJ=unsupported
16474
if test "$host_cpu" = ia64; then
16475
# On IA64, the linker does run time linking by default, so we don't
16476
# have to do anything special.
16477
aix_use_runtimelinking=no
16478
exp_sym_flag='-Bexport'
16481
# If we're using GNU nm, then we don't want the "-C" option.
16482
# -C means demangle to AIX nm, but means don't demangle with GNU nm
16483
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16484
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'
16486
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'
16488
aix_use_runtimelinking=no
16490
# Test if we are trying to use run time linking or normal
16491
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16492
# need to do runtime linking.
16493
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16494
for ld_flag in $LDFLAGS; do
16495
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16496
aix_use_runtimelinking=yes
16502
exp_sym_flag='-bexport'
16503
no_entry_flag='-bnoentry'
16506
# When large executables or shared objects are built, AIX ld can
16507
# have problems creating the table of contents. If linking a library
16508
# or program results in "error TOC overflow" add -mminimal-toc to
16509
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16510
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16512
archive_cmds_GCJ=''
16513
hardcode_direct_GCJ=yes
16514
hardcode_libdir_separator_GCJ=':'
16515
link_all_deplibs_GCJ=yes
16517
if test "$GCC" = yes; then
16518
case $host_os in aix4.012|aix4.012.*)
16519
# We only want to do this on AIX 4.2 and lower, the check
16520
# below for broken collect2 doesn't work under 4.3+
16521
collect2name=`${CC} -print-prog-name=collect2`
16522
if test -f "$collect2name" && \
16523
strings "$collect2name" | grep resolve_lib_name >/dev/null
16525
# We have reworked collect2
16526
hardcode_direct_GCJ=yes
16528
# We have old collect2
16529
hardcode_direct_GCJ=unsupported
16530
# It fails to find uninstalled libraries when the uninstalled
16531
# path is not listed in the libpath. Setting hardcode_minus_L
16532
# to unsupported forces relinking
16533
hardcode_minus_L_GCJ=yes
16534
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16535
hardcode_libdir_separator_GCJ=
16538
shared_flag='-shared'
16541
if test "$host_cpu" = ia64; then
16542
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16543
# chokes on -Wl,-G. The following line is correct:
16546
if test "$aix_use_runtimelinking" = yes; then
16547
shared_flag='${wl}-G'
16549
shared_flag='${wl}-bM:SRE'
16554
# It seems that -bexpall does not export symbols beginning with
16555
# underscore (_), so it is better to generate a list of symbols to export.
16556
always_export_symbols_GCJ=yes
16557
if test "$aix_use_runtimelinking" = yes; then
16558
# Warning - without using the other runtime loading flags (-brtl),
16559
# -berok will link without error, but may produce a broken library.
16560
allow_undefined_flag_GCJ='-berok'
16561
# Determine the default libpath from the value encoded in an empty executable.
16562
cat >conftest.$ac_ext <<_ACEOF
16565
cat confdefs.h >>conftest.$ac_ext
16566
cat >>conftest.$ac_ext <<_ACEOF
16567
/* end confdefs.h. */
16577
rm -f conftest.$ac_objext conftest$ac_exeext
16578
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16579
(eval $ac_link) 2>conftest.er1
16581
grep -v '^ *+' conftest.er1 >conftest.err
16583
cat conftest.err >&5
16584
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585
(exit $ac_status); } &&
16586
{ ac_try='test -z "$ac_c_werror_flag"
16587
|| test ! -s conftest.err'
16588
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16589
(eval $ac_try) 2>&5
16591
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16592
(exit $ac_status); }; } &&
16593
{ ac_try='test -s conftest$ac_exeext'
16594
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16595
(eval $ac_try) 2>&5
16597
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598
(exit $ac_status); }; }; then
16600
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16602
# Check for a 64-bit object if we didn't find anything.
16603
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; }
16606
echo "$as_me: failed program was:" >&5
16607
sed 's/^/| /' conftest.$ac_ext >&5
16610
rm -f conftest.err conftest.$ac_objext \
16611
conftest$ac_exeext conftest.$ac_ext
16612
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16614
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16615
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"
16617
if test "$host_cpu" = ia64; then
16618
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16619
allow_undefined_flag_GCJ="-z nodefs"
16620
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"
16622
# Determine the default libpath from the value encoded in an empty executable.
16623
cat >conftest.$ac_ext <<_ACEOF
16626
cat confdefs.h >>conftest.$ac_ext
16627
cat >>conftest.$ac_ext <<_ACEOF
16628
/* end confdefs.h. */
16638
rm -f conftest.$ac_objext conftest$ac_exeext
16639
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16640
(eval $ac_link) 2>conftest.er1
16642
grep -v '^ *+' conftest.er1 >conftest.err
16644
cat conftest.err >&5
16645
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646
(exit $ac_status); } &&
16647
{ ac_try='test -z "$ac_c_werror_flag"
16648
|| test ! -s conftest.err'
16649
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16650
(eval $ac_try) 2>&5
16652
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16653
(exit $ac_status); }; } &&
16654
{ ac_try='test -s conftest$ac_exeext'
16655
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16656
(eval $ac_try) 2>&5
16658
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659
(exit $ac_status); }; }; then
16661
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16663
# Check for a 64-bit object if we didn't find anything.
16664
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; }
16667
echo "$as_me: failed program was:" >&5
16668
sed 's/^/| /' conftest.$ac_ext >&5
16671
rm -f conftest.err conftest.$ac_objext \
16672
conftest$ac_exeext conftest.$ac_ext
16673
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16675
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16676
# Warning - without using the other run time loading flags,
16677
# -berok will link without error, but may produce a broken library.
16678
no_undefined_flag_GCJ=' ${wl}-bernotok'
16679
allow_undefined_flag_GCJ=' ${wl}-berok'
16680
# -bexpall does not export symbols beginning with underscore (_)
16681
always_export_symbols_GCJ=yes
16682
# Exported symbols can be pulled into shared objects from archives
16683
whole_archive_flag_spec_GCJ=' '
16684
archive_cmds_need_lc_GCJ=yes
16685
# This is similar to how AIX traditionally builds it's shared libraries.
16686
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'
16692
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)'
16693
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16694
hardcode_minus_L_GCJ=yes
16695
# see comment about different semantics on the GNU ld section
16700
export_dynamic_flag_spec_GCJ=-rdynamic
16703
cygwin* | mingw* | pw32*)
16704
# When not using gcc, we currently assume that we are using
16705
# Microsoft Visual C++.
16706
# hardcode_libdir_flag_spec is actually meaningless, as there is
16707
# no search path for DLLs.
16708
hardcode_libdir_flag_spec_GCJ=' '
16709
allow_undefined_flag_GCJ=unsupported
16710
# Tell ltmain to make .lib files, not .a files.
16712
# Tell ltmain to make .dll files, not .so files.
16714
# FIXME: Setting linknames here is a bad hack.
16715
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16716
# The linker will automatically build a .lib file if we build a DLL.
16717
old_archive_From_new_cmds_GCJ='true'
16718
# FIXME: Should let the user specify the lib program.
16719
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16720
fix_srcfile_path='`cygpath -w "$srcfile"`'
16721
enable_shared_with_static_runtimes_GCJ=yes
16724
darwin* | rhapsody*)
16725
if test "$GXX" = yes ; then
16726
archive_cmds_need_lc_GCJ=no
16728
rhapsody* | darwin1.[012])
16729
allow_undefined_flag_GCJ='-undefined suppress'
16732
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16733
allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16735
case ${MACOSX_DEPLOYMENT_TARGET} in
16737
allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16740
allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16746
lt_int_apple_cc_single_mod=no
16747
output_verbose_link_cmd='echo'
16748
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16749
lt_int_apple_cc_single_mod=yes
16751
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16752
archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16754
archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16756
module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16757
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16758
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16759
archive_expsym_cmds_GCJ='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}'
16761
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16763
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}'
16764
hardcode_direct_GCJ=no
16765
hardcode_automatic_GCJ=yes
16766
hardcode_shlibpath_var_GCJ=unsupported
16767
whole_archive_flag_spec_GCJ='-all_load $convenience'
16768
link_all_deplibs_GCJ=yes
16775
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16776
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16777
hardcode_shlibpath_var_GCJ=no
16784
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16785
# support. Future versions do this automatically, but an explicit c++rt0.o
16786
# does not break anything, and helps significantly (at the cost of a little
16789
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16790
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16791
hardcode_direct_GCJ=yes
16792
hardcode_shlibpath_var_GCJ=no
16795
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
16797
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16798
hardcode_direct_GCJ=yes
16799
hardcode_minus_L_GCJ=yes
16800
hardcode_shlibpath_var_GCJ=no
16803
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16804
freebsd* | kfreebsd*-gnu)
16805
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16806
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16807
hardcode_direct_GCJ=yes
16808
hardcode_shlibpath_var_GCJ=no
16812
if test "$GCC" = yes; then
16813
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'
16815
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'
16817
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16818
hardcode_libdir_separator_GCJ=:
16819
hardcode_direct_GCJ=yes
16821
# hardcode_minus_L: Not really in the search PATH,
16822
# but as the default location of the library.
16823
hardcode_minus_L_GCJ=yes
16824
export_dynamic_flag_spec_GCJ='${wl}-E'
16828
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16829
case "$host_cpu" in
16831
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16834
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16838
case "$host_cpu" in
16840
archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16843
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16847
if test "$with_gnu_ld" = no; then
16848
case "$host_cpu" in
16850
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16851
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16852
hardcode_libdir_separator_GCJ=:
16853
hardcode_direct_GCJ=no
16854
hardcode_shlibpath_var_GCJ=no
16857
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16858
hardcode_direct_GCJ=no
16859
hardcode_shlibpath_var_GCJ=no
16861
# hardcode_minus_L: Not really in the search PATH,
16862
# but as the default location of the library.
16863
hardcode_minus_L_GCJ=yes
16866
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16867
hardcode_libdir_separator_GCJ=:
16868
hardcode_direct_GCJ=yes
16869
export_dynamic_flag_spec_GCJ='${wl}-E'
16871
# hardcode_minus_L: Not really in the search PATH,
16872
# but as the default location of the library.
16873
hardcode_minus_L_GCJ=yes
16879
irix5* | irix6* | nonstopux*)
16880
if test "$GCC" = yes; then
16881
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'
16883
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'
16884
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16886
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16887
hardcode_libdir_separator_GCJ=:
16888
link_all_deplibs_GCJ=yes
16892
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16893
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16895
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16897
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16898
hardcode_direct_GCJ=yes
16899
hardcode_shlibpath_var_GCJ=no
16903
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16904
hardcode_direct_GCJ=yes
16905
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16906
hardcode_libdir_separator_GCJ=:
16907
hardcode_shlibpath_var_GCJ=no
16911
hardcode_direct_GCJ=yes
16912
hardcode_shlibpath_var_GCJ=no
16913
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16914
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16915
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16916
export_dynamic_flag_spec_GCJ='${wl}-E'
16919
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16920
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16921
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16924
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16925
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16932
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16933
hardcode_minus_L_GCJ=yes
16934
allow_undefined_flag_GCJ=unsupported
16935
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'
16936
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16940
if test "$GCC" = yes; then
16941
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16942
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'
16944
allow_undefined_flag_GCJ=' -expect_unresolved \*'
16945
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'
16947
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16948
hardcode_libdir_separator_GCJ=:
16951
osf4* | osf5*) # as osf3* with the addition of -msym flag
16952
if test "$GCC" = yes; then
16953
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16954
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'
16955
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16957
allow_undefined_flag_GCJ=' -expect_unresolved \*'
16958
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'
16959
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~
16960
$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'
16962
# Both c and cxx compiler support -rpath directly
16963
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16965
hardcode_libdir_separator_GCJ=:
16969
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16970
hardcode_shlibpath_var_GCJ=no
16971
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16972
runpath_var=LD_RUN_PATH
16973
hardcode_runpath_var=yes
16977
no_undefined_flag_GCJ=' -z text'
16978
if test "$GCC" = yes; then
16979
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16980
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16981
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16983
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16984
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16985
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16987
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16988
hardcode_shlibpath_var_GCJ=no
16990
solaris2.[0-5] | solaris2.[0-5].*) ;;
16991
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
16992
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16994
link_all_deplibs_GCJ=yes
16998
if test "x$host_vendor" = xsequent; then
16999
# Use $CC to link under sequent, because it throws in some extra .o
17000
# files that make .init and .fini sections work.
17001
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17003
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17005
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17006
hardcode_direct_GCJ=yes
17007
hardcode_minus_L_GCJ=yes
17008
hardcode_shlibpath_var_GCJ=no
17012
case $host_vendor in
17014
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17015
hardcode_direct_GCJ=yes # is this really true???
17018
## LD is ld it makes a PLAMLIB
17019
## CC just makes a GrossModule.
17020
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17021
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17022
hardcode_direct_GCJ=no
17025
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17026
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17029
runpath_var='LD_RUN_PATH'
17030
hardcode_shlibpath_var_GCJ=no
17034
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17035
hardcode_shlibpath_var_GCJ=no
17036
export_dynamic_flag_spec_GCJ='-Bexport'
17040
if test -d /usr/nec; then
17041
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17042
hardcode_shlibpath_var_GCJ=no
17043
runpath_var=LD_RUN_PATH
17044
hardcode_runpath_var=yes
17050
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17051
hardcode_direct_GCJ=yes
17052
hardcode_minus_L_GCJ=no
17053
hardcode_shlibpath_var_GCJ=no
17054
hardcode_runpath_var=yes
17055
runpath_var=LD_RUN_PATH
17058
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17059
no_undefined_flag_GCJ='${wl}-z ${wl}text'
17060
if test "$GCC" = yes; then
17061
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17063
archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17065
runpath_var='LD_RUN_PATH'
17066
hardcode_shlibpath_var_GCJ=no
17070
no_undefined_flag_GCJ=' -z text'
17071
# $CC -shared without GNU ld will not create a library from C++
17072
# object files and a static libstdc++, better avoid it by now
17073
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17074
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17075
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17076
hardcode_libdir_flag_spec_GCJ=
17077
hardcode_shlibpath_var_GCJ=no
17078
runpath_var='LD_RUN_PATH'
17082
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17083
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17084
hardcode_shlibpath_var_GCJ=no
17093
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17094
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17095
test "$ld_shlibs_GCJ" = no && can_build_shared=no
17097
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17098
if test "$GCC" = yes; then
17099
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17103
# Do we need to explicitly link libc?
17105
case "x$archive_cmds_need_lc_GCJ" in
17107
# Assume -lc should be added
17108
archive_cmds_need_lc_GCJ=yes
17110
if test "$enable_shared" = yes && test "$GCC" = yes; then
17111
case $archive_cmds_GCJ in
17113
# FIXME: we may have to deal with multi-command sequences.
17116
# Test whether the compiler implicitly links with -lc since on some
17117
# systems, -lgcc has to come before -lc. If gcc already passes -lc
17118
# to ld, don't add -lc before -lgcc.
17119
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17120
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17122
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17124
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17125
(eval $ac_compile) 2>&5
17127
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128
(exit $ac_status); } 2>conftest.err; then
17131
libobjs=conftest.$ac_objext
17133
wl=$lt_prog_compiler_wl_GCJ
17139
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17140
allow_undefined_flag_GCJ=
17141
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17142
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17144
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145
(exit $ac_status); }
17147
archive_cmds_need_lc_GCJ=no
17149
archive_cmds_need_lc_GCJ=yes
17151
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17153
cat conftest.err 1>&5
17156
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17157
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17164
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17165
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17166
library_names_spec=
17167
libname_spec='lib$name'
17171
postuninstall_cmds=
17175
shlibpath_overrides_runpath=unknown
17177
dynamic_linker="$host_os ld.so"
17178
sys_lib_dlsearch_path_spec="/lib /usr/lib"
17179
if test "$GCC" = yes; then
17180
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17181
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17182
# if the path contains ";" then we assume it to be the separator
17183
# otherwise default to the standard path separator (i.e. ":") - it is
17184
# assumed that no part of a normal pathname contains ";" but that should
17185
# okay in the real world where ";" in dirpaths is itself problematic.
17186
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17188
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17191
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17193
need_lib_prefix=unknown
17194
hardcode_into_libs=no
17196
# when you set need_version to no, make sure it does not cause -set_version
17197
# flags to be left without arguments
17198
need_version=unknown
17203
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17204
shlibpath_var=LIBPATH
17206
# AIX 3 has no versioning support, so we append a major version to the name.
17207
soname_spec='${libname}${release}${shared_ext}$major'
17214
hardcode_into_libs=yes
17215
if test "$host_cpu" = ia64; then
17216
# AIX 5 supports IA64
17217
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17218
shlibpath_var=LD_LIBRARY_PATH
17220
# With GCC up to 2.95.x, collect2 would create an import file
17221
# for dependence libraries. The import file would start with
17222
# the line `#! .'. This would cause the generated library to
17223
# depend on `.', always an invalid library. This was fixed in
17224
# development snapshots of GCC prior to 3.0.
17226
aix4 | aix4.[01] | aix4.[01].*)
17227
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17229
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17232
can_build_shared=no
17236
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17237
# soname into executable. Probably we can add versioning support to
17238
# collect2, so additional links can be useful in future.
17239
if test "$aix_use_runtimelinking" = yes; then
17240
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
17241
# instead of lib<name>.a to let people know that these are not
17242
# typical AIX shared libraries.
17243
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17245
# We preserve .a as extension for shared libraries through AIX4.2
17246
# and later when we are not doing run time linking.
17247
library_names_spec='${libname}${release}.a $libname.a'
17248
soname_spec='${libname}${release}${shared_ext}$major'
17250
shlibpath_var=LIBPATH
17255
library_names_spec='$libname.ixlibrary $libname.a'
17256
# Create ${libname}_ixlibrary.a entries in /sys/libs.
17257
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'
17261
library_names_spec='${libname}${shared_ext}'
17262
dynamic_linker="$host_os ld.so"
17263
shlibpath_var=LIBRARY_PATH
17269
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17270
soname_spec='${libname}${release}${shared_ext}$major'
17271
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17272
shlibpath_var=LD_LIBRARY_PATH
17273
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17274
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17275
# the default ld.so.conf also contains /usr/contrib/lib and
17276
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17277
# libtool to hard-code these into programs
17280
cygwin* | mingw* | pw32*)
17281
version_type=windows
17286
case $GCC,$host_os in
17287
yes,cygwin* | yes,mingw* | yes,pw32*)
17288
library_names_spec='$libname.dll.a'
17289
# DLL is installed to $(libdir)/../bin by postinstall_cmds
17290
postinstall_cmds='base_file=`basename \${file}`~
17291
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17292
dldir=$destdir/`dirname \$dlpath`~
17293
test -d \$dldir || mkdir -p \$dldir~
17294
$install_prog $dir/$dlname \$dldir/$dlname'
17295
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17296
dlpath=$dir/\$dldll~
17298
shlibpath_overrides_runpath=yes
17302
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
17303
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17304
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17307
# MinGW DLLs use traditional 'lib' prefix
17308
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17309
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17310
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17311
# It is most probably a Windows format PATH printed by
17312
# mingw gcc, but we are running on Cygwin. Gcc prints its search
17313
# path with ; separators, and with drive letters. We can handle the
17314
# drive letters (cygwin fileutils understands them), so leave them,
17315
# especially as we might pass files found there to a mingw objdump,
17316
# which wouldn't understand a cygwinified path. Ahh.
17317
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17319
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17323
# pw32 DLLs use 'pw' prefix rather than 'lib'
17324
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17330
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17333
dynamic_linker='Win32 ld.exe'
17334
# FIXME: first we should search . and the directory the executable is in
17338
darwin* | rhapsody*)
17339
dynamic_linker="$host_os dyld"
17340
version_type=darwin
17343
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17344
soname_spec='${libname}${release}${major}$shared_ext'
17345
shlibpath_overrides_runpath=yes
17346
shlibpath_var=DYLD_LIBRARY_PATH
17347
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17348
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17349
if test "$GCC" = yes; then
17350
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"`
17352
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17354
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17361
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17362
soname_spec='${libname}${release}${shared_ext}$major'
17363
shlibpath_var=LD_LIBRARY_PATH
17374
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17375
soname_spec='${libname}${release}${shared_ext}$major'
17376
shlibpath_var=LD_LIBRARY_PATH
17377
shlibpath_overrides_runpath=no
17378
hardcode_into_libs=yes
17379
dynamic_linker='GNU ld.so'
17383
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17384
version_type=freebsd-$objformat
17385
case $version_type in
17387
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17392
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17396
shlibpath_var=LD_LIBRARY_PATH
17399
shlibpath_overrides_runpath=yes
17401
freebsd3.01* | freebsdelf3.01*)
17402
shlibpath_overrides_runpath=yes
17403
hardcode_into_libs=yes
17406
shlibpath_overrides_runpath=no
17407
hardcode_into_libs=yes
17416
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17417
soname_spec='${libname}${release}${shared_ext}$major'
17418
shlibpath_var=LD_LIBRARY_PATH
17419
hardcode_into_libs=yes
17422
hpux9* | hpux10* | hpux11*)
17423
# Give a soname corresponding to the major version so that dld.sl refuses to
17424
# link against other versions.
17428
case "$host_cpu" in
17431
hardcode_into_libs=yes
17432
dynamic_linker="$host_os dld.so"
17433
shlibpath_var=LD_LIBRARY_PATH
17434
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17435
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17436
soname_spec='${libname}${release}${shared_ext}$major'
17437
if test "X$HPUX_IA64_MODE" = X32; then
17438
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17440
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17442
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17446
hardcode_into_libs=yes
17447
dynamic_linker="$host_os dld.sl"
17448
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17449
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17450
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17451
soname_spec='${libname}${release}${shared_ext}$major'
17452
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17453
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17457
dynamic_linker="$host_os dld.sl"
17458
shlibpath_var=SHLIB_PATH
17459
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17460
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17461
soname_spec='${libname}${release}${shared_ext}$major'
17464
# HP-UX runs *really* slowly unless shared libraries are mode 555.
17465
postinstall_cmds='chmod 555 $lib'
17468
irix5* | irix6* | nonstopux*)
17470
nonstopux*) version_type=nonstopux ;;
17472
if test "$lt_cv_prog_gnu_ld" = yes; then
17480
soname_spec='${libname}${release}${shared_ext}$major'
17481
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17483
irix5* | nonstopux*)
17484
libsuff= shlibsuff=
17487
case $LD in # libtool.m4 will add one of these switches to LD
17488
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17489
libsuff= shlibsuff= libmagic=32-bit;;
17490
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17491
libsuff=32 shlibsuff=N32 libmagic=N32;;
17492
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17493
libsuff=64 shlibsuff=64 libmagic=64-bit;;
17494
*) libsuff= shlibsuff= libmagic=never-match;;
17498
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17499
shlibpath_overrides_runpath=no
17500
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17501
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17502
hardcode_into_libs=yes
17505
# No shared lib support for Linux oldld, aout, or coff.
17506
linux*oldld* | linux*aout* | linux*coff*)
17510
# This must be Linux ELF.
17515
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17516
soname_spec='${libname}${release}${shared_ext}$major'
17517
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17518
shlibpath_var=LD_LIBRARY_PATH
17519
shlibpath_overrides_runpath=no
17520
# This implies no fast_install, which is unacceptable.
17521
# Some rework will be needed to allow for fast_install
17522
# before this can be enabled.
17523
hardcode_into_libs=yes
17525
# find out which ABI we are using
17527
case "$host_cpu" in
17528
x86_64*|s390x*|powerpc64*)
17529
echo '#line 17529 "configure"' > conftest.$ac_ext
17530
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17531
(eval $ac_compile) 2>&5
17533
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534
(exit $ac_status); }; then
17535
case `/usr/bin/file conftest.$ac_objext` in
17538
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17546
# Append ld.so.conf contents to the search path
17547
if test -f /etc/ld.so.conf; then
17548
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17549
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17552
# We used to test for /lib/ld.so.1 and disable shared libraries on
17553
# powerpc, because MkLinux only supported shared libraries with the
17554
# GNU dynamic linker. Since this was broken with cross compilers,
17555
# most powerpc-linux boxes support dynamic linking these days and
17556
# people can always --disable-shared, the test was removed, and we
17557
# assume the GNU/Linux dynamic linker is in use.
17558
dynamic_linker='GNU/Linux ld.so'
17565
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17566
soname_spec='${libname}${release}${shared_ext}$major'
17567
shlibpath_var=LD_LIBRARY_PATH
17568
shlibpath_overrides_runpath=no
17569
hardcode_into_libs=yes
17570
dynamic_linker='GNU ld.so'
17577
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17578
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17579
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17580
dynamic_linker='NetBSD (a.out) ld.so'
17582
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17583
soname_spec='${libname}${release}${shared_ext}$major'
17584
dynamic_linker='NetBSD ld.elf_so'
17586
shlibpath_var=LD_LIBRARY_PATH
17587
shlibpath_overrides_runpath=yes
17588
hardcode_into_libs=yes
17593
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17594
shlibpath_var=LD_LIBRARY_PATH
17595
shlibpath_overrides_runpath=yes
17602
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17603
soname_spec='${libname}${release}${shared_ext}$major'
17604
shlibpath_var=LD_LIBRARY_PATH
17605
shlibpath_overrides_runpath=yes
17612
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17613
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17614
shlibpath_var=LD_LIBRARY_PATH
17615
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17617
openbsd2.[89] | openbsd2.[89].*)
17618
shlibpath_overrides_runpath=no
17621
shlibpath_overrides_runpath=yes
17625
shlibpath_overrides_runpath=yes
17630
libname_spec='$name'
17633
library_names_spec='$libname${shared_ext} $libname.a'
17634
dynamic_linker='OS/2 ld.exe'
17635
shlibpath_var=LIBPATH
17638
osf3* | osf4* | osf5*)
17642
soname_spec='${libname}${release}${shared_ext}$major'
17643
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17644
shlibpath_var=LD_LIBRARY_PATH
17645
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17646
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17651
soname_spec='${libname}${release}${shared_ext}$major'
17652
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17653
shlibpath_var=LD_LIBRARY_PATH
17660
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17661
soname_spec='${libname}${release}${shared_ext}$major'
17662
shlibpath_var=LD_LIBRARY_PATH
17663
shlibpath_overrides_runpath=yes
17664
hardcode_into_libs=yes
17665
# ldd complains unless libraries are executable
17666
postinstall_cmds='chmod +x $lib'
17671
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17672
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17673
shlibpath_var=LD_LIBRARY_PATH
17674
shlibpath_overrides_runpath=yes
17675
if test "$with_gnu_ld" = yes; then
17681
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17683
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17684
soname_spec='${libname}${release}${shared_ext}$major'
17685
shlibpath_var=LD_LIBRARY_PATH
17686
case $host_vendor in
17688
shlibpath_overrides_runpath=no
17690
export_dynamic_flag_spec='${wl}-Blargedynsym'
17691
runpath_var=LD_RUN_PATH
17699
shlibpath_overrides_runpath=no
17700
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17706
if test -d /usr/nec ;then
17708
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17709
soname_spec='$libname${shared_ext}.$major'
17710
shlibpath_var=LD_LIBRARY_PATH
17716
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17717
soname_spec='${libname}${release}${shared_ext}$major'
17718
shlibpath_var=LD_LIBRARY_PATH
17725
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17726
echo "${ECHO_T}$dynamic_linker" >&6
17727
test "$dynamic_linker" = no && can_build_shared=no
17729
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17730
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17731
hardcode_action_GCJ=
17732
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17733
test -n "$runpath_var GCJ" || \
17734
test "X$hardcode_automatic_GCJ"="Xyes" ; then
17736
# We can hardcode non-existant directories.
17737
if test "$hardcode_direct_GCJ" != no &&
17738
# If the only mechanism to avoid hardcoding is shlibpath_var, we
17739
# have to relink, otherwise we might link with an installed library
17740
# when we should be linking with a yet-to-be-installed one
17741
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17742
test "$hardcode_minus_L_GCJ" != no; then
17743
# Linking always hardcodes the temporary library directory.
17744
hardcode_action_GCJ=relink
17746
# We can link without hardcoding, and we can hardcode nonexisting dirs.
17747
hardcode_action_GCJ=immediate
17750
# We cannot hardcode anything, or else we can only hardcode existing
17752
hardcode_action_GCJ=unsupported
17754
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17755
echo "${ECHO_T}$hardcode_action_GCJ" >&6
17757
if test "$hardcode_action_GCJ" = relink; then
17758
# Fast installation is not supported
17759
enable_fast_install=no
17760
elif test "$shlibpath_overrides_runpath" = yes ||
17761
test "$enable_shared" = no; then
17762
# Fast installation is not necessary
17763
enable_fast_install=needless
17768
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17769
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17770
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17771
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17772
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17773
echo "$as_me:$LINENO: result: yes" >&5
17774
echo "${ECHO_T}yes" >&6
17776
# FIXME - insert some real tests, host_os isn't really good enough
17779
if test -n "$STRIP" ; then
17780
striplib="$STRIP -x"
17781
echo "$as_me:$LINENO: result: yes" >&5
17782
echo "${ECHO_T}yes" >&6
17784
echo "$as_me:$LINENO: result: no" >&5
17785
echo "${ECHO_T}no" >&6
17789
echo "$as_me:$LINENO: result: no" >&5
17790
echo "${ECHO_T}no" >&6
17795
if test "x$enable_dlopen" != xyes; then
17796
enable_dlopen=unknown
17797
enable_dlopen_self=unknown
17798
enable_dlopen_self_static=unknown
17805
lt_cv_dlopen="load_add_on"
17807
lt_cv_dlopen_self=yes
17811
lt_cv_dlopen="LoadLibrary"
17816
lt_cv_dlopen="dlopen"
17821
# if libdl is installed we need to link against it
17822
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17823
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17824
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17825
echo $ECHO_N "(cached) $ECHO_C" >&6
17827
ac_check_lib_save_LIBS=$LIBS
17829
cat >conftest.$ac_ext <<_ACEOF
17832
cat confdefs.h >>conftest.$ac_ext
17833
cat >>conftest.$ac_ext <<_ACEOF
17834
/* end confdefs.h. */
17836
/* Override any gcc2 internal prototype to avoid an error. */
17840
/* We use char because int might match the return type of a gcc2
17841
builtin and then its argument prototype would still apply. */
17851
rm -f conftest.$ac_objext conftest$ac_exeext
17852
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17853
(eval $ac_link) 2>conftest.er1
17855
grep -v '^ *+' conftest.er1 >conftest.err
17857
cat conftest.err >&5
17858
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859
(exit $ac_status); } &&
17860
{ ac_try='test -z "$ac_c_werror_flag"
17861
|| test ! -s conftest.err'
17862
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17863
(eval $ac_try) 2>&5
17865
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866
(exit $ac_status); }; } &&
17867
{ ac_try='test -s conftest$ac_exeext'
17868
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17869
(eval $ac_try) 2>&5
17871
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17872
(exit $ac_status); }; }; then
17873
ac_cv_lib_dl_dlopen=yes
17875
echo "$as_me: failed program was:" >&5
17876
sed 's/^/| /' conftest.$ac_ext >&5
17878
ac_cv_lib_dl_dlopen=no
17880
rm -f conftest.err conftest.$ac_objext \
17881
conftest$ac_exeext conftest.$ac_ext
17882
LIBS=$ac_check_lib_save_LIBS
17884
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17885
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17886
if test $ac_cv_lib_dl_dlopen = yes; then
17887
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17890
lt_cv_dlopen="dyld"
17892
lt_cv_dlopen_self=yes
17899
echo "$as_me:$LINENO: checking for shl_load" >&5
17900
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17901
if test "${ac_cv_func_shl_load+set}" = set; then
17902
echo $ECHO_N "(cached) $ECHO_C" >&6
17904
cat >conftest.$ac_ext <<_ACEOF
17907
cat confdefs.h >>conftest.$ac_ext
17908
cat >>conftest.$ac_ext <<_ACEOF
17909
/* end confdefs.h. */
17910
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17911
For example, HP-UX 11i <limits.h> declares gettimeofday. */
17912
#define shl_load innocuous_shl_load
17914
/* System header to define __stub macros and hopefully few prototypes,
17915
which can conflict with char shl_load (); below.
17916
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17917
<limits.h> exists even on freestanding compilers. */
17920
# include <limits.h>
17922
# include <assert.h>
17927
/* Override any gcc2 internal prototype to avoid an error. */
17932
/* We use char because int might match the return type of a gcc2
17933
builtin and then its argument prototype would still apply. */
17935
/* The GNU C library defines this for functions which it implements
17936
to always fail with ENOSYS. Some functions are actually named
17937
something starting with __ and the normal name is an alias. */
17938
#if defined (__stub_shl_load) || defined (__stub___shl_load)
17941
char (*f) () = shl_load;
17950
return f != shl_load;
17955
rm -f conftest.$ac_objext conftest$ac_exeext
17956
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17957
(eval $ac_link) 2>conftest.er1
17959
grep -v '^ *+' conftest.er1 >conftest.err
17961
cat conftest.err >&5
17962
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17963
(exit $ac_status); } &&
17964
{ ac_try='test -z "$ac_c_werror_flag"
17965
|| test ! -s conftest.err'
17966
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17967
(eval $ac_try) 2>&5
17969
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17970
(exit $ac_status); }; } &&
17971
{ ac_try='test -s conftest$ac_exeext'
17972
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17973
(eval $ac_try) 2>&5
17975
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17976
(exit $ac_status); }; }; then
17977
ac_cv_func_shl_load=yes
17979
echo "$as_me: failed program was:" >&5
17980
sed 's/^/| /' conftest.$ac_ext >&5
17982
ac_cv_func_shl_load=no
17984
rm -f conftest.err conftest.$ac_objext \
17985
conftest$ac_exeext conftest.$ac_ext
17987
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17988
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17989
if test $ac_cv_func_shl_load = yes; then
17990
lt_cv_dlopen="shl_load"
17992
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17993
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17994
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17995
echo $ECHO_N "(cached) $ECHO_C" >&6
17997
ac_check_lib_save_LIBS=$LIBS
17999
cat >conftest.$ac_ext <<_ACEOF
18002
cat confdefs.h >>conftest.$ac_ext
18003
cat >>conftest.$ac_ext <<_ACEOF
18004
/* end confdefs.h. */
18006
/* Override any gcc2 internal prototype to avoid an error. */
18010
/* We use char because int might match the return type of a gcc2
18011
builtin and then its argument prototype would still apply. */
18021
rm -f conftest.$ac_objext conftest$ac_exeext
18022
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18023
(eval $ac_link) 2>conftest.er1
18025
grep -v '^ *+' conftest.er1 >conftest.err
18027
cat conftest.err >&5
18028
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029
(exit $ac_status); } &&
18030
{ ac_try='test -z "$ac_c_werror_flag"
18031
|| test ! -s conftest.err'
18032
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18033
(eval $ac_try) 2>&5
18035
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18036
(exit $ac_status); }; } &&
18037
{ ac_try='test -s conftest$ac_exeext'
18038
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18039
(eval $ac_try) 2>&5
18041
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042
(exit $ac_status); }; }; then
18043
ac_cv_lib_dld_shl_load=yes
18045
echo "$as_me: failed program was:" >&5
18046
sed 's/^/| /' conftest.$ac_ext >&5
18048
ac_cv_lib_dld_shl_load=no
18050
rm -f conftest.err conftest.$ac_objext \
18051
conftest$ac_exeext conftest.$ac_ext
18052
LIBS=$ac_check_lib_save_LIBS
18054
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18055
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18056
if test $ac_cv_lib_dld_shl_load = yes; then
18057
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18059
echo "$as_me:$LINENO: checking for dlopen" >&5
18060
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18061
if test "${ac_cv_func_dlopen+set}" = set; then
18062
echo $ECHO_N "(cached) $ECHO_C" >&6
18064
cat >conftest.$ac_ext <<_ACEOF
18067
cat confdefs.h >>conftest.$ac_ext
18068
cat >>conftest.$ac_ext <<_ACEOF
18069
/* end confdefs.h. */
18070
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18071
For example, HP-UX 11i <limits.h> declares gettimeofday. */
18072
#define dlopen innocuous_dlopen
18074
/* System header to define __stub macros and hopefully few prototypes,
18075
which can conflict with char dlopen (); below.
18076
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18077
<limits.h> exists even on freestanding compilers. */
18080
# include <limits.h>
18082
# include <assert.h>
18087
/* Override any gcc2 internal prototype to avoid an error. */
18092
/* We use char because int might match the return type of a gcc2
18093
builtin and then its argument prototype would still apply. */
18095
/* The GNU C library defines this for functions which it implements
18096
to always fail with ENOSYS. Some functions are actually named
18097
something starting with __ and the normal name is an alias. */
18098
#if defined (__stub_dlopen) || defined (__stub___dlopen)
18101
char (*f) () = dlopen;
18110
return f != dlopen;
18115
rm -f conftest.$ac_objext conftest$ac_exeext
18116
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18117
(eval $ac_link) 2>conftest.er1
18119
grep -v '^ *+' conftest.er1 >conftest.err
18121
cat conftest.err >&5
18122
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18123
(exit $ac_status); } &&
18124
{ ac_try='test -z "$ac_c_werror_flag"
18125
|| test ! -s conftest.err'
18126
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18127
(eval $ac_try) 2>&5
18129
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130
(exit $ac_status); }; } &&
18131
{ ac_try='test -s conftest$ac_exeext'
18132
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18133
(eval $ac_try) 2>&5
18135
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136
(exit $ac_status); }; }; then
18137
ac_cv_func_dlopen=yes
18139
echo "$as_me: failed program was:" >&5
18140
sed 's/^/| /' conftest.$ac_ext >&5
18142
ac_cv_func_dlopen=no
18144
rm -f conftest.err conftest.$ac_objext \
18145
conftest$ac_exeext conftest.$ac_ext
18147
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18148
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18149
if test $ac_cv_func_dlopen = yes; then
18150
lt_cv_dlopen="dlopen"
18152
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18153
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18154
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18155
echo $ECHO_N "(cached) $ECHO_C" >&6
18157
ac_check_lib_save_LIBS=$LIBS
18159
cat >conftest.$ac_ext <<_ACEOF
18162
cat confdefs.h >>conftest.$ac_ext
18163
cat >>conftest.$ac_ext <<_ACEOF
18164
/* end confdefs.h. */
18166
/* Override any gcc2 internal prototype to avoid an error. */
18170
/* We use char because int might match the return type of a gcc2
18171
builtin and then its argument prototype would still apply. */
18181
rm -f conftest.$ac_objext conftest$ac_exeext
18182
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18183
(eval $ac_link) 2>conftest.er1
18185
grep -v '^ *+' conftest.er1 >conftest.err
18187
cat conftest.err >&5
18188
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189
(exit $ac_status); } &&
18190
{ ac_try='test -z "$ac_c_werror_flag"
18191
|| test ! -s conftest.err'
18192
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18193
(eval $ac_try) 2>&5
18195
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18196
(exit $ac_status); }; } &&
18197
{ ac_try='test -s conftest$ac_exeext'
18198
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18199
(eval $ac_try) 2>&5
18201
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202
(exit $ac_status); }; }; then
18203
ac_cv_lib_dl_dlopen=yes
18205
echo "$as_me: failed program was:" >&5
18206
sed 's/^/| /' conftest.$ac_ext >&5
18208
ac_cv_lib_dl_dlopen=no
18210
rm -f conftest.err conftest.$ac_objext \
18211
conftest$ac_exeext conftest.$ac_ext
18212
LIBS=$ac_check_lib_save_LIBS
18214
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18215
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18216
if test $ac_cv_lib_dl_dlopen = yes; then
18217
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18219
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18220
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18221
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18222
echo $ECHO_N "(cached) $ECHO_C" >&6
18224
ac_check_lib_save_LIBS=$LIBS
18225
LIBS="-lsvld $LIBS"
18226
cat >conftest.$ac_ext <<_ACEOF
18229
cat confdefs.h >>conftest.$ac_ext
18230
cat >>conftest.$ac_ext <<_ACEOF
18231
/* end confdefs.h. */
18233
/* Override any gcc2 internal prototype to avoid an error. */
18237
/* We use char because int might match the return type of a gcc2
18238
builtin and then its argument prototype would still apply. */
18248
rm -f conftest.$ac_objext conftest$ac_exeext
18249
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18250
(eval $ac_link) 2>conftest.er1
18252
grep -v '^ *+' conftest.er1 >conftest.err
18254
cat conftest.err >&5
18255
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18256
(exit $ac_status); } &&
18257
{ ac_try='test -z "$ac_c_werror_flag"
18258
|| test ! -s conftest.err'
18259
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18260
(eval $ac_try) 2>&5
18262
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18263
(exit $ac_status); }; } &&
18264
{ ac_try='test -s conftest$ac_exeext'
18265
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18266
(eval $ac_try) 2>&5
18268
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18269
(exit $ac_status); }; }; then
18270
ac_cv_lib_svld_dlopen=yes
18272
echo "$as_me: failed program was:" >&5
18273
sed 's/^/| /' conftest.$ac_ext >&5
18275
ac_cv_lib_svld_dlopen=no
18277
rm -f conftest.err conftest.$ac_objext \
18278
conftest$ac_exeext conftest.$ac_ext
18279
LIBS=$ac_check_lib_save_LIBS
18281
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18282
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18283
if test $ac_cv_lib_svld_dlopen = yes; then
18284
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18286
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18287
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18288
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18289
echo $ECHO_N "(cached) $ECHO_C" >&6
18291
ac_check_lib_save_LIBS=$LIBS
18293
cat >conftest.$ac_ext <<_ACEOF
18296
cat confdefs.h >>conftest.$ac_ext
18297
cat >>conftest.$ac_ext <<_ACEOF
18298
/* end confdefs.h. */
18300
/* Override any gcc2 internal prototype to avoid an error. */
18304
/* We use char because int might match the return type of a gcc2
18305
builtin and then its argument prototype would still apply. */
18315
rm -f conftest.$ac_objext conftest$ac_exeext
18316
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18317
(eval $ac_link) 2>conftest.er1
18319
grep -v '^ *+' conftest.er1 >conftest.err
18321
cat conftest.err >&5
18322
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18323
(exit $ac_status); } &&
18324
{ ac_try='test -z "$ac_c_werror_flag"
18325
|| test ! -s conftest.err'
18326
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18327
(eval $ac_try) 2>&5
18329
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18330
(exit $ac_status); }; } &&
18331
{ ac_try='test -s conftest$ac_exeext'
18332
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18333
(eval $ac_try) 2>&5
18335
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336
(exit $ac_status); }; }; then
18337
ac_cv_lib_dld_dld_link=yes
18339
echo "$as_me: failed program was:" >&5
18340
sed 's/^/| /' conftest.$ac_ext >&5
18342
ac_cv_lib_dld_dld_link=no
18344
rm -f conftest.err conftest.$ac_objext \
18345
conftest$ac_exeext conftest.$ac_ext
18346
LIBS=$ac_check_lib_save_LIBS
18348
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18349
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18350
if test $ac_cv_lib_dld_dld_link = yes; then
18351
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18372
if test "x$lt_cv_dlopen" != xno; then
18378
case $lt_cv_dlopen in
18380
save_CPPFLAGS="$CPPFLAGS"
18381
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18383
save_LDFLAGS="$LDFLAGS"
18384
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18387
LIBS="$lt_cv_dlopen_libs $LIBS"
18389
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18390
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18391
if test "${lt_cv_dlopen_self+set}" = set; then
18392
echo $ECHO_N "(cached) $ECHO_C" >&6
18394
if test "$cross_compiling" = yes; then :
18395
lt_cv_dlopen_self=cross
18397
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18398
lt_status=$lt_dlunknown
18399
cat > conftest.$ac_ext <<EOF
18400
#line 18400 "configure"
18401
#include "confdefs.h"
18410
# define LT_DLGLOBAL RTLD_GLOBAL
18413
# define LT_DLGLOBAL DL_GLOBAL
18415
# define LT_DLGLOBAL 0
18419
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18420
find out it does not work in some platform. */
18421
#ifndef LT_DLLAZY_OR_NOW
18423
# define LT_DLLAZY_OR_NOW RTLD_LAZY
18426
# define LT_DLLAZY_OR_NOW DL_LAZY
18429
# define LT_DLLAZY_OR_NOW RTLD_NOW
18432
# define LT_DLLAZY_OR_NOW DL_NOW
18434
# define LT_DLLAZY_OR_NOW 0
18442
extern "C" void exit (int);
18445
void fnord() { int i=42;}
18448
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18449
int status = $lt_dlunknown;
18453
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18454
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18455
/* dlclose (self); */
18461
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18462
(eval $ac_link) 2>&5
18464
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18465
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18466
(./conftest; exit; ) 2>/dev/null
18468
case x$lt_status in
18469
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18470
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18471
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18474
# compilation failed
18475
lt_cv_dlopen_self=no
18482
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18483
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18485
if test "x$lt_cv_dlopen_self" = xyes; then
18486
LDFLAGS="$LDFLAGS $link_static_flag"
18487
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18488
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18489
if test "${lt_cv_dlopen_self_static+set}" = set; then
18490
echo $ECHO_N "(cached) $ECHO_C" >&6
18492
if test "$cross_compiling" = yes; then :
18493
lt_cv_dlopen_self_static=cross
18495
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18496
lt_status=$lt_dlunknown
18497
cat > conftest.$ac_ext <<EOF
18498
#line 18498 "configure"
18499
#include "confdefs.h"
18508
# define LT_DLGLOBAL RTLD_GLOBAL
18511
# define LT_DLGLOBAL DL_GLOBAL
18513
# define LT_DLGLOBAL 0
18517
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18518
find out it does not work in some platform. */
18519
#ifndef LT_DLLAZY_OR_NOW
18521
# define LT_DLLAZY_OR_NOW RTLD_LAZY
18524
# define LT_DLLAZY_OR_NOW DL_LAZY
18527
# define LT_DLLAZY_OR_NOW RTLD_NOW
18530
# define LT_DLLAZY_OR_NOW DL_NOW
18532
# define LT_DLLAZY_OR_NOW 0
18540
extern "C" void exit (int);
18543
void fnord() { int i=42;}
18546
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18547
int status = $lt_dlunknown;
18551
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18552
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18553
/* dlclose (self); */
18559
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18560
(eval $ac_link) 2>&5
18562
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18563
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18564
(./conftest; exit; ) 2>/dev/null
18566
case x$lt_status in
18567
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18568
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18569
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18572
# compilation failed
18573
lt_cv_dlopen_self_static=no
18580
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18581
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18584
CPPFLAGS="$save_CPPFLAGS"
18585
LDFLAGS="$save_LDFLAGS"
18590
case $lt_cv_dlopen_self in
18591
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18592
*) enable_dlopen_self=unknown ;;
18595
case $lt_cv_dlopen_self_static in
18596
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18597
*) enable_dlopen_self_static=unknown ;;
18602
# The else clause should only fire when bootstrapping the
18603
# libtool distribution, otherwise you forgot to ship ltmain.sh
18604
# with your package, and you will get complaints that there are
18605
# no rules to generate ltmain.sh.
18606
if test -f "$ltmain"; then
18607
# See if we are running on zsh, and set the options which allow our commands through
18608
# without removal of \ escapes.
18609
if test -n "${ZSH_VERSION+set}" ; then
18610
setopt NO_GLOB_SUBST
18612
# Now quote all the things that may contain metacharacters while being
18613
# careful not to overquote the AC_SUBSTed values. We take copies of the
18614
# variables and quote the copies for generation of the libtool script.
18615
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18617
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18618
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18619
deplibs_check_method reload_flag reload_cmds need_locks \
18620
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18621
lt_cv_sys_global_symbol_to_c_name_address \
18622
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18623
old_postinstall_cmds old_postuninstall_cmds \
18627
lt_prog_compiler_wl_GCJ \
18628
lt_prog_compiler_pic_GCJ \
18629
lt_prog_compiler_static_GCJ \
18630
lt_prog_compiler_no_builtin_flag_GCJ \
18631
export_dynamic_flag_spec_GCJ \
18632
thread_safe_flag_spec_GCJ \
18633
whole_archive_flag_spec_GCJ \
18634
enable_shared_with_static_runtimes_GCJ \
18635
old_archive_cmds_GCJ \
18636
old_archive_from_new_cmds_GCJ \
18637
predep_objects_GCJ \
18638
postdep_objects_GCJ \
18641
compiler_lib_search_path_GCJ \
18643
archive_expsym_cmds_GCJ \
18644
postinstall_cmds_GCJ \
18645
postuninstall_cmds_GCJ \
18646
old_archive_from_expsyms_cmds_GCJ \
18647
allow_undefined_flag_GCJ \
18648
no_undefined_flag_GCJ \
18649
export_symbols_cmds_GCJ \
18650
hardcode_libdir_flag_spec_GCJ \
18651
hardcode_libdir_flag_spec_ld_GCJ \
18652
hardcode_libdir_separator_GCJ \
18653
hardcode_automatic_GCJ \
18655
module_expsym_cmds_GCJ \
18656
lt_cv_prog_compiler_c_o_GCJ \
18657
exclude_expsyms_GCJ \
18658
include_expsyms_GCJ; do
18661
old_archive_cmds_GCJ | \
18662
old_archive_from_new_cmds_GCJ | \
18663
archive_cmds_GCJ | \
18664
archive_expsym_cmds_GCJ | \
18665
module_cmds_GCJ | \
18666
module_expsym_cmds_GCJ | \
18667
old_archive_from_expsyms_cmds_GCJ | \
18668
export_symbols_cmds_GCJ | \
18669
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18670
postinstall_cmds | postuninstall_cmds | \
18671
old_postinstall_cmds | old_postuninstall_cmds | \
18672
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18673
# Double-quote double-evaled strings.
18674
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18677
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18683
*'\$0 --fallback-echo"')
18684
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18690
cat <<__EOF__ >> "$cfgfile"
18691
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18693
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18695
# Shell to use when invoking shell scripts.
18698
# Whether or not to build shared libraries.
18699
build_libtool_libs=$enable_shared
18701
# Whether or not to build static libraries.
18702
build_old_libs=$enable_static
18704
# Whether or not to add -lc for building shared libraries.
18705
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18707
# Whether or not to disallow shared libs when runtime libs are static
18708
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18710
# Whether or not to optimize for fast installation.
18711
fast_install=$enable_fast_install
18714
host_alias=$host_alias
18717
# An echo program that does not interpret backslashes.
18722
AR_FLAGS=$lt_AR_FLAGS
18727
# A language-specific compiler.
18728
CC=$lt_compiler_GCJ
18730
# Is the compiler the GNU C compiler?
18736
# The linker used to build libraries.
18739
# Whether we need hard or soft links.
18742
# A BSD-compatible nm program.
18745
# A symbol stripping program
18748
# Used to examine libraries when file_magic_cmd begins "file"
18749
MAGIC_CMD=$MAGIC_CMD
18751
# Used on cygwin: DLL creation program.
18754
# Used on cygwin: object dumper.
18757
# Used on cygwin: assembler.
18760
# The name of the directory that contains temporary libtool files.
18763
# How to create reloadable object files.
18764
reload_flag=$lt_reload_flag
18765
reload_cmds=$lt_reload_cmds
18767
# How to pass a linker flag through the compiler.
18768
wl=$lt_lt_prog_compiler_wl_GCJ
18770
# Object file suffix (normally "o").
18771
objext="$ac_objext"
18773
# Old archive suffix (normally "a").
18776
# Shared library suffix (normally ".so").
18777
shrext_cmds='$shrext_cmds'
18779
# Executable file suffix (normally "").
18782
# Additional compiler flags for building library objects.
18783
pic_flag=$lt_lt_prog_compiler_pic_GCJ
18786
# What is the maximum length of a command?
18787
max_cmd_len=$lt_cv_sys_max_cmd_len
18789
# Does compiler simultaneously support -c and -o options?
18790
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18792
# Must we lock files when doing compilation ?
18793
need_locks=$lt_need_locks
18795
# Do we need the lib prefix for modules?
18796
need_lib_prefix=$need_lib_prefix
18798
# Do we need a version for libraries?
18799
need_version=$need_version
18801
# Whether dlopen is supported.
18802
dlopen_support=$enable_dlopen
18804
# Whether dlopen of programs is supported.
18805
dlopen_self=$enable_dlopen_self
18807
# Whether dlopen of statically linked programs is supported.
18808
dlopen_self_static=$enable_dlopen_self_static
18810
# Compiler flag to prevent dynamic linking.
18811
link_static_flag=$lt_lt_prog_compiler_static_GCJ
18813
# Compiler flag to turn off builtin functions.
18814
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18816
# Compiler flag to allow reflexive dlopens.
18817
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18819
# Compiler flag to generate shared objects directly from archives.
18820
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18822
# Compiler flag to generate thread-safe objects.
18823
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18825
# Library versioning type.
18826
version_type=$version_type
18828
# Format of library name prefix.
18829
libname_spec=$lt_libname_spec
18831
# List of archive names. First name is the real one, the rest are links.
18832
# The last name is the one that the linker finds with -lNAME.
18833
library_names_spec=$lt_library_names_spec
18835
# The coded name of the library, if different from the real name.
18836
soname_spec=$lt_soname_spec
18838
# Commands used to build and install an old-style archive.
18840
old_archive_cmds=$lt_old_archive_cmds_GCJ
18841
old_postinstall_cmds=$lt_old_postinstall_cmds
18842
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18844
# Create an old-style archive from a shared archive.
18845
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18847
# Create a temporary old-style archive to link instead of a shared archive.
18848
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18850
# Commands used to build and install a shared archive.
18851
archive_cmds=$lt_archive_cmds_GCJ
18852
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18853
postinstall_cmds=$lt_postinstall_cmds
18854
postuninstall_cmds=$lt_postuninstall_cmds
18856
# Commands used to build a loadable module (assumed same as above if empty)
18857
module_cmds=$lt_module_cmds_GCJ
18858
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18860
# Commands to strip libraries.
18861
old_striplib=$lt_old_striplib
18862
striplib=$lt_striplib
18864
# Dependencies to place before the objects being linked to create a
18866
predep_objects=$lt_predep_objects_GCJ
18868
# Dependencies to place after the objects being linked to create a
18870
postdep_objects=$lt_postdep_objects_GCJ
18872
# Dependencies to place before the objects being linked to create a
18874
predeps=$lt_predeps_GCJ
18876
# Dependencies to place after the objects being linked to create a
18878
postdeps=$lt_postdeps_GCJ
18880
# The library search path used internally by the compiler when linking
18881
# a shared library.
18882
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18884
# Method to check whether dependent libraries are shared objects.
18885
deplibs_check_method=$lt_deplibs_check_method
18887
# Command to use when deplibs_check_method == file_magic.
18888
file_magic_cmd=$lt_file_magic_cmd
18890
# Flag that allows shared libraries with undefined symbols to be built.
18891
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18893
# Flag that forces no undefined symbols.
18894
no_undefined_flag=$lt_no_undefined_flag_GCJ
18896
# Commands used to finish a libtool library installation in a directory.
18897
finish_cmds=$lt_finish_cmds
18899
# Same as above, but a single script fragment to be evaled but not shown.
18900
finish_eval=$lt_finish_eval
18902
# Take the output of nm and produce a listing of raw symbols and C names.
18903
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18905
# Transform the output of nm in a proper C declaration
18906
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18908
# Transform the output of nm in a C name address pair
18909
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18911
# This is the shared library runtime path variable.
18912
runpath_var=$runpath_var
18914
# This is the shared library path variable.
18915
shlibpath_var=$shlibpath_var
18917
# Is shlibpath searched before the hard-coded library search path?
18918
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18920
# How to hardcode a shared library path into an executable.
18921
hardcode_action=$hardcode_action_GCJ
18923
# Whether we should hardcode library paths into libraries.
18924
hardcode_into_libs=$hardcode_into_libs
18926
# Flag to hardcode \$libdir into a binary during linking.
18927
# This must work even if \$libdir does not exist.
18928
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18930
# If ld is used when linking, flag to hardcode \$libdir into
18931
# a binary during linking. This must work even if \$libdir does
18933
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18935
# Whether we need a single -rpath flag with a separated argument.
18936
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18938
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18939
# resulting binary.
18940
hardcode_direct=$hardcode_direct_GCJ
18942
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18943
# resulting binary.
18944
hardcode_minus_L=$hardcode_minus_L_GCJ
18946
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18947
# the resulting binary.
18948
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18950
# Set to yes if building a shared library automatically hardcodes DIR into the library
18951
# and all subsequent libraries and executables linked against it.
18952
hardcode_automatic=$hardcode_automatic_GCJ
18954
# Variables whose values should be saved in libtool wrapper scripts and
18955
# restored at relink time.
18956
variables_saved_for_relink="$variables_saved_for_relink"
18958
# Whether libtool must link a program against all its dependency libraries.
18959
link_all_deplibs=$link_all_deplibs_GCJ
18961
# Compile-time system search path for libraries
18962
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18964
# Run-time system search path for libraries
18965
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18967
# Fix the shell variable \$srcfile for the compiler.
18968
fix_srcfile_path="$fix_srcfile_path_GCJ"
18970
# Set to yes if exported symbols are required.
18971
always_export_symbols=$always_export_symbols_GCJ
18973
# The commands to list exported symbols.
18974
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18976
# The commands to extract the exported symbol list from a shared archive.
18977
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18979
# Symbols that should not be listed in the preloaded symbols.
18980
exclude_expsyms=$lt_exclude_expsyms_GCJ
18982
# Symbols that must always be exported.
18983
include_expsyms=$lt_include_expsyms_GCJ
18985
# ### END LIBTOOL TAG CONFIG: $tagname
18991
# If there is no Makefile yet, we rely on a make rule to execute
18992
# `config.status --recheck' to rerun these tests and create the
18993
# libtool script then.
18994
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18995
if test -f "$ltmain_in"; then
18996
test -f Makefile && make "$ltmain"
19002
ac_cpp='$CPP $CPPFLAGS'
19003
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19004
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19005
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19018
# Source file extension for RC test sources.
19021
# Object file extension for compiled RC test sources.
19025
# Code to be used in simple compile tests
19026
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19028
# Code to be used in simple link tests
19029
lt_simple_link_test_code="$lt_simple_compile_test_code"
19031
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19033
# If no C compiler was specified, use CC.
19036
# Allow CC to be a program name with arguments.
19040
# Allow CC to be a program name with arguments.
19045
lt_cv_prog_compiler_c_o_RC=yes
19047
# The else clause should only fire when bootstrapping the
19048
# libtool distribution, otherwise you forgot to ship ltmain.sh
19049
# with your package, and you will get complaints that there are
19050
# no rules to generate ltmain.sh.
19051
if test -f "$ltmain"; then
19052
# See if we are running on zsh, and set the options which allow our commands through
19053
# without removal of \ escapes.
19054
if test -n "${ZSH_VERSION+set}" ; then
19055
setopt NO_GLOB_SUBST
19057
# Now quote all the things that may contain metacharacters while being
19058
# careful not to overquote the AC_SUBSTed values. We take copies of the
19059
# variables and quote the copies for generation of the libtool script.
19060
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19062
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19063
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19064
deplibs_check_method reload_flag reload_cmds need_locks \
19065
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19066
lt_cv_sys_global_symbol_to_c_name_address \
19067
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19068
old_postinstall_cmds old_postuninstall_cmds \
19072
lt_prog_compiler_wl_RC \
19073
lt_prog_compiler_pic_RC \
19074
lt_prog_compiler_static_RC \
19075
lt_prog_compiler_no_builtin_flag_RC \
19076
export_dynamic_flag_spec_RC \
19077
thread_safe_flag_spec_RC \
19078
whole_archive_flag_spec_RC \
19079
enable_shared_with_static_runtimes_RC \
19080
old_archive_cmds_RC \
19081
old_archive_from_new_cmds_RC \
19082
predep_objects_RC \
19083
postdep_objects_RC \
19086
compiler_lib_search_path_RC \
19088
archive_expsym_cmds_RC \
19089
postinstall_cmds_RC \
19090
postuninstall_cmds_RC \
19091
old_archive_from_expsyms_cmds_RC \
19092
allow_undefined_flag_RC \
19093
no_undefined_flag_RC \
19094
export_symbols_cmds_RC \
19095
hardcode_libdir_flag_spec_RC \
19096
hardcode_libdir_flag_spec_ld_RC \
19097
hardcode_libdir_separator_RC \
19098
hardcode_automatic_RC \
19100
module_expsym_cmds_RC \
19101
lt_cv_prog_compiler_c_o_RC \
19102
exclude_expsyms_RC \
19103
include_expsyms_RC; do
19106
old_archive_cmds_RC | \
19107
old_archive_from_new_cmds_RC | \
19108
archive_cmds_RC | \
19109
archive_expsym_cmds_RC | \
19111
module_expsym_cmds_RC | \
19112
old_archive_from_expsyms_cmds_RC | \
19113
export_symbols_cmds_RC | \
19114
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19115
postinstall_cmds | postuninstall_cmds | \
19116
old_postinstall_cmds | old_postuninstall_cmds | \
19117
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19118
# Double-quote double-evaled strings.
19119
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19122
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19128
*'\$0 --fallback-echo"')
19129
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19135
cat <<__EOF__ >> "$cfgfile"
19136
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19138
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19140
# Shell to use when invoking shell scripts.
19143
# Whether or not to build shared libraries.
19144
build_libtool_libs=$enable_shared
19146
# Whether or not to build static libraries.
19147
build_old_libs=$enable_static
19149
# Whether or not to add -lc for building shared libraries.
19150
build_libtool_need_lc=$archive_cmds_need_lc_RC
19152
# Whether or not to disallow shared libs when runtime libs are static
19153
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19155
# Whether or not to optimize for fast installation.
19156
fast_install=$enable_fast_install
19159
host_alias=$host_alias
19162
# An echo program that does not interpret backslashes.
19167
AR_FLAGS=$lt_AR_FLAGS
19172
# A language-specific compiler.
19175
# Is the compiler the GNU C compiler?
19181
# The linker used to build libraries.
19184
# Whether we need hard or soft links.
19187
# A BSD-compatible nm program.
19190
# A symbol stripping program
19193
# Used to examine libraries when file_magic_cmd begins "file"
19194
MAGIC_CMD=$MAGIC_CMD
19196
# Used on cygwin: DLL creation program.
19199
# Used on cygwin: object dumper.
19202
# Used on cygwin: assembler.
19205
# The name of the directory that contains temporary libtool files.
19208
# How to create reloadable object files.
19209
reload_flag=$lt_reload_flag
19210
reload_cmds=$lt_reload_cmds
19212
# How to pass a linker flag through the compiler.
19213
wl=$lt_lt_prog_compiler_wl_RC
19215
# Object file suffix (normally "o").
19216
objext="$ac_objext"
19218
# Old archive suffix (normally "a").
19221
# Shared library suffix (normally ".so").
19222
shrext_cmds='$shrext_cmds'
19224
# Executable file suffix (normally "").
19227
# Additional compiler flags for building library objects.
19228
pic_flag=$lt_lt_prog_compiler_pic_RC
19231
# What is the maximum length of a command?
19232
max_cmd_len=$lt_cv_sys_max_cmd_len
19234
# Does compiler simultaneously support -c and -o options?
19235
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19237
# Must we lock files when doing compilation ?
19238
need_locks=$lt_need_locks
19240
# Do we need the lib prefix for modules?
19241
need_lib_prefix=$need_lib_prefix
19243
# Do we need a version for libraries?
19244
need_version=$need_version
19246
# Whether dlopen is supported.
19247
dlopen_support=$enable_dlopen
19249
# Whether dlopen of programs is supported.
19250
dlopen_self=$enable_dlopen_self
19252
# Whether dlopen of statically linked programs is supported.
19253
dlopen_self_static=$enable_dlopen_self_static
19255
# Compiler flag to prevent dynamic linking.
19256
link_static_flag=$lt_lt_prog_compiler_static_RC
19258
# Compiler flag to turn off builtin functions.
19259
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19261
# Compiler flag to allow reflexive dlopens.
19262
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19264
# Compiler flag to generate shared objects directly from archives.
19265
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19267
# Compiler flag to generate thread-safe objects.
19268
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19270
# Library versioning type.
19271
version_type=$version_type
19273
# Format of library name prefix.
19274
libname_spec=$lt_libname_spec
19276
# List of archive names. First name is the real one, the rest are links.
19277
# The last name is the one that the linker finds with -lNAME.
19278
library_names_spec=$lt_library_names_spec
19280
# The coded name of the library, if different from the real name.
19281
soname_spec=$lt_soname_spec
19283
# Commands used to build and install an old-style archive.
19285
old_archive_cmds=$lt_old_archive_cmds_RC
19286
old_postinstall_cmds=$lt_old_postinstall_cmds
19287
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19289
# Create an old-style archive from a shared archive.
19290
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19292
# Create a temporary old-style archive to link instead of a shared archive.
19293
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19295
# Commands used to build and install a shared archive.
19296
archive_cmds=$lt_archive_cmds_RC
19297
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19298
postinstall_cmds=$lt_postinstall_cmds
19299
postuninstall_cmds=$lt_postuninstall_cmds
19301
# Commands used to build a loadable module (assumed same as above if empty)
19302
module_cmds=$lt_module_cmds_RC
19303
module_expsym_cmds=$lt_module_expsym_cmds_RC
19305
# Commands to strip libraries.
19306
old_striplib=$lt_old_striplib
19307
striplib=$lt_striplib
19309
# Dependencies to place before the objects being linked to create a
19311
predep_objects=$lt_predep_objects_RC
19313
# Dependencies to place after the objects being linked to create a
19315
postdep_objects=$lt_postdep_objects_RC
19317
# Dependencies to place before the objects being linked to create a
19319
predeps=$lt_predeps_RC
19321
# Dependencies to place after the objects being linked to create a
19323
postdeps=$lt_postdeps_RC
19325
# The library search path used internally by the compiler when linking
19326
# a shared library.
19327
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19329
# Method to check whether dependent libraries are shared objects.
19330
deplibs_check_method=$lt_deplibs_check_method
19332
# Command to use when deplibs_check_method == file_magic.
19333
file_magic_cmd=$lt_file_magic_cmd
19335
# Flag that allows shared libraries with undefined symbols to be built.
19336
allow_undefined_flag=$lt_allow_undefined_flag_RC
19338
# Flag that forces no undefined symbols.
19339
no_undefined_flag=$lt_no_undefined_flag_RC
19341
# Commands used to finish a libtool library installation in a directory.
19342
finish_cmds=$lt_finish_cmds
19344
# Same as above, but a single script fragment to be evaled but not shown.
19345
finish_eval=$lt_finish_eval
19347
# Take the output of nm and produce a listing of raw symbols and C names.
19348
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19350
# Transform the output of nm in a proper C declaration
19351
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19353
# Transform the output of nm in a C name address pair
19354
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19356
# This is the shared library runtime path variable.
19357
runpath_var=$runpath_var
19359
# This is the shared library path variable.
19360
shlibpath_var=$shlibpath_var
19362
# Is shlibpath searched before the hard-coded library search path?
19363
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19365
# How to hardcode a shared library path into an executable.
19366
hardcode_action=$hardcode_action_RC
19368
# Whether we should hardcode library paths into libraries.
19369
hardcode_into_libs=$hardcode_into_libs
19371
# Flag to hardcode \$libdir into a binary during linking.
19372
# This must work even if \$libdir does not exist.
19373
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19375
# If ld is used when linking, flag to hardcode \$libdir into
19376
# a binary during linking. This must work even if \$libdir does
19378
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19380
# Whether we need a single -rpath flag with a separated argument.
19381
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19383
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19384
# resulting binary.
19385
hardcode_direct=$hardcode_direct_RC
19387
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19388
# resulting binary.
19389
hardcode_minus_L=$hardcode_minus_L_RC
19391
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19392
# the resulting binary.
19393
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19395
# Set to yes if building a shared library automatically hardcodes DIR into the library
19396
# and all subsequent libraries and executables linked against it.
19397
hardcode_automatic=$hardcode_automatic_RC
19399
# Variables whose values should be saved in libtool wrapper scripts and
19400
# restored at relink time.
19401
variables_saved_for_relink="$variables_saved_for_relink"
19403
# Whether libtool must link a program against all its dependency libraries.
19404
link_all_deplibs=$link_all_deplibs_RC
19406
# Compile-time system search path for libraries
19407
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19409
# Run-time system search path for libraries
19410
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19412
# Fix the shell variable \$srcfile for the compiler.
19413
fix_srcfile_path="$fix_srcfile_path_RC"
19415
# Set to yes if exported symbols are required.
19416
always_export_symbols=$always_export_symbols_RC
19418
# The commands to list exported symbols.
19419
export_symbols_cmds=$lt_export_symbols_cmds_RC
19421
# The commands to extract the exported symbol list from a shared archive.
19422
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19424
# Symbols that should not be listed in the preloaded symbols.
19425
exclude_expsyms=$lt_exclude_expsyms_RC
19427
# Symbols that must always be exported.
19428
include_expsyms=$lt_include_expsyms_RC
19430
# ### END LIBTOOL TAG CONFIG: $tagname
19436
# If there is no Makefile yet, we rely on a make rule to execute
19437
# `config.status --recheck' to rerun these tests and create the
19438
# libtool script then.
19439
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19440
if test -f "$ltmain_in"; then
19441
test -f Makefile && make "$ltmain"
19447
ac_cpp='$CPP $CPPFLAGS'
19448
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19449
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19450
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19457
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19458
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19459
{ (exit 1); exit 1; }; }
19463
# Append the new tag name to the list of available tags.
19464
if test -n "$tagname" ; then
19465
available_tags="$available_tags $tagname"
19471
# Now substitute the updated list of available tags.
19472
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19473
mv "${ofile}T" "$ofile"
19477
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19478
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19479
{ (exit 1); exit 1; }; }