10394
# Report which library types will actually be built
10395
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10396
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10397
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10398
echo "${ECHO_T}$can_build_shared" >&6; }
10400
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10401
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10402
test "$can_build_shared" = "no" && enable_shared=no
10404
# On AIX, shared libraries and static libraries use the same namespace, and
10405
# are all built from PIC.
10408
test "$enable_shared" = yes && enable_static=no
10409
if test -n "$RANLIB"; then
10410
archive_cmds="$archive_cmds~\$RANLIB \$lib"
10411
postinstall_cmds='$RANLIB $lib'
10416
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10417
test "$enable_shared" = yes && enable_static=no
10421
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10422
echo "${ECHO_T}$enable_shared" >&6; }
10424
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10425
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10426
# Make sure either enable_shared or enable_static is yes.
10427
test "$enable_shared" = yes || enable_static=yes
10428
{ echo "$as_me:$LINENO: result: $enable_static" >&5
10429
echo "${ECHO_T}$enable_static" >&6; }
10431
# The else clause should only fire when bootstrapping the
10432
# libtool distribution, otherwise you forgot to ship ltmain.sh
10433
# with your package, and you will get complaints that there are
10434
# no rules to generate ltmain.sh.
10435
if test -f "$ltmain"; then
10436
# See if we are running on zsh, and set the options which allow our commands through
10437
# without removal of \ escapes.
10438
if test -n "${ZSH_VERSION+set}" ; then
10439
setopt NO_GLOB_SUBST
10441
# Now quote all the things that may contain metacharacters while being
10442
# careful not to overquote the AC_SUBSTed values. We take copies of the
10443
# variables and quote the copies for generation of the libtool script.
10444
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10446
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10447
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10448
deplibs_check_method reload_flag reload_cmds need_locks \
10449
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10450
lt_cv_sys_global_symbol_to_c_name_address \
10451
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10452
old_postinstall_cmds old_postuninstall_cmds \
10456
lt_prog_compiler_wl \
10457
lt_prog_compiler_pic \
10458
lt_prog_compiler_static \
10459
lt_prog_compiler_no_builtin_flag \
10460
export_dynamic_flag_spec \
10461
thread_safe_flag_spec \
10462
whole_archive_flag_spec \
10463
enable_shared_with_static_runtimes \
10465
old_archive_from_new_cmds \
10470
compiler_lib_search_path \
10471
compiler_lib_search_dirs \
10473
archive_expsym_cmds \
10475
postuninstall_cmds \
10476
old_archive_from_expsyms_cmds \
10477
allow_undefined_flag \
10478
no_undefined_flag \
10479
export_symbols_cmds \
10480
hardcode_libdir_flag_spec \
10481
hardcode_libdir_flag_spec_ld \
10482
hardcode_libdir_separator \
10483
hardcode_automatic \
10485
module_expsym_cmds \
10486
lt_cv_prog_compiler_c_o \
10489
include_expsyms; do
10492
old_archive_cmds | \
10493
old_archive_from_new_cmds | \
10495
archive_expsym_cmds | \
10497
module_expsym_cmds | \
10498
old_archive_from_expsyms_cmds | \
10499
export_symbols_cmds | \
10500
extract_expsyms_cmds | reload_cmds | finish_cmds | \
10501
postinstall_cmds | postuninstall_cmds | \
10502
old_postinstall_cmds | old_postuninstall_cmds | \
10503
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10504
# Double-quote double-evaled strings.
10505
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10508
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10514
*'\$0 --fallback-echo"')
10515
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10519
cfgfile="${ofile}T"
10520
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10522
{ echo "$as_me:$LINENO: creating $ofile" >&5
10523
echo "$as_me: creating $ofile" >&6;}
10525
cat <<__EOF__ >> "$cfgfile"
10528
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10529
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10530
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10532
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10533
# Free Software Foundation, Inc.
10535
# This file is part of GNU Libtool:
10536
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10538
# This program is free software; you can redistribute it and/or modify
10539
# it under the terms of the GNU General Public License as published by
10540
# the Free Software Foundation; either version 2 of the License, or
10541
# (at your option) any later version.
10543
# This program is distributed in the hope that it will be useful, but
10544
# WITHOUT ANY WARRANTY; without even the implied warranty of
10545
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10546
# General Public License for more details.
10548
# You should have received a copy of the GNU General Public License
10549
# along with this program; if not, write to the Free Software
10550
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10552
# As a special exception to the GNU General Public License, if you
10553
# distribute this file as part of a program that contains a
10554
# configuration script generated by Autoconf, you may include it under
10555
# the same distribution terms that you use for the rest of that program.
10557
# A sed program that does not truncate output.
10560
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10561
Xsed="$SED -e 1s/^X//"
10563
# The HP-UX ksh and POSIX shell print the target directory to stdout
10564
# if CDPATH is set.
10565
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10567
# The names of the tagged configurations supported by this script.
10570
# ### BEGIN LIBTOOL CONFIG
10572
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10574
# Shell to use when invoking shell scripts.
10577
# Whether or not to build shared libraries.
10578
build_libtool_libs=$enable_shared
10580
# Whether or not to build static libraries.
10581
build_old_libs=$enable_static
10583
# Whether or not to add -lc for building shared libraries.
10584
build_libtool_need_lc=$archive_cmds_need_lc
10586
# Whether or not to disallow shared libs when runtime libs are static
10587
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10589
# Whether or not to optimize for fast installation.
10590
fast_install=$enable_fast_install
10593
host_alias=$host_alias
10597
# The build system.
10598
build_alias=$build_alias
10602
# An echo program that does not interpret backslashes.
10607
AR_FLAGS=$lt_AR_FLAGS
10612
# LTCC compiler flags.
10613
LTCFLAGS=$lt_LTCFLAGS
10615
# A language-specific compiler.
10618
# Is the compiler the GNU C compiler?
10624
# The linker used to build libraries.
10627
# Whether we need hard or soft links.
10630
# A BSD-compatible nm program.
10633
# A symbol stripping program
10636
# Used to examine libraries when file_magic_cmd begins "file"
10637
MAGIC_CMD=$MAGIC_CMD
10639
# Used on cygwin: DLL creation program.
10642
# Used on cygwin: object dumper.
10645
# Used on cygwin: assembler.
10648
# The name of the directory that contains temporary libtool files.
10651
# How to create reloadable object files.
10652
reload_flag=$lt_reload_flag
10653
reload_cmds=$lt_reload_cmds
10655
# How to pass a linker flag through the compiler.
10656
wl=$lt_lt_prog_compiler_wl
10658
# Object file suffix (normally "o").
10659
objext="$ac_objext"
10661
# Old archive suffix (normally "a").
10664
# Shared library suffix (normally ".so").
10665
shrext_cmds='$shrext_cmds'
10667
# Executable file suffix (normally "").
10670
# Additional compiler flags for building library objects.
10671
pic_flag=$lt_lt_prog_compiler_pic
10674
# What is the maximum length of a command?
10675
max_cmd_len=$lt_cv_sys_max_cmd_len
10677
# Does compiler simultaneously support -c and -o options?
10678
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10680
# Must we lock files when doing compilation?
10681
need_locks=$lt_need_locks
10683
# Do we need the lib prefix for modules?
10684
need_lib_prefix=$need_lib_prefix
10686
# Do we need a version for libraries?
10687
need_version=$need_version
10689
# Whether dlopen is supported.
10690
dlopen_support=$enable_dlopen
10692
# Whether dlopen of programs is supported.
10693
dlopen_self=$enable_dlopen_self
10695
# Whether dlopen of statically linked programs is supported.
10696
dlopen_self_static=$enable_dlopen_self_static
10698
# Compiler flag to prevent dynamic linking.
10699
link_static_flag=$lt_lt_prog_compiler_static
10701
# Compiler flag to turn off builtin functions.
10702
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10704
# Compiler flag to allow reflexive dlopens.
10705
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10707
# Compiler flag to generate shared objects directly from archives.
10708
whole_archive_flag_spec=$lt_whole_archive_flag_spec
10710
# Compiler flag to generate thread-safe objects.
10711
thread_safe_flag_spec=$lt_thread_safe_flag_spec
10713
# Library versioning type.
10714
version_type=$version_type
10716
# Format of library name prefix.
10717
libname_spec=$lt_libname_spec
10719
# List of archive names. First name is the real one, the rest are links.
10720
# The last name is the one that the linker finds with -lNAME.
10721
library_names_spec=$lt_library_names_spec
10723
# The coded name of the library, if different from the real name.
10724
soname_spec=$lt_soname_spec
10726
# Commands used to build and install an old-style archive.
10728
old_archive_cmds=$lt_old_archive_cmds
10729
old_postinstall_cmds=$lt_old_postinstall_cmds
10730
old_postuninstall_cmds=$lt_old_postuninstall_cmds
10732
# Create an old-style archive from a shared archive.
10733
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10735
# Create a temporary old-style archive to link instead of a shared archive.
10736
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10738
# Commands used to build and install a shared archive.
10739
archive_cmds=$lt_archive_cmds
10740
archive_expsym_cmds=$lt_archive_expsym_cmds
10741
postinstall_cmds=$lt_postinstall_cmds
10742
postuninstall_cmds=$lt_postuninstall_cmds
10744
# Commands used to build a loadable module (assumed same as above if empty)
10745
module_cmds=$lt_module_cmds
10746
module_expsym_cmds=$lt_module_expsym_cmds
10748
# Commands to strip libraries.
10749
old_striplib=$lt_old_striplib
10750
striplib=$lt_striplib
10752
# Dependencies to place before the objects being linked to create a
10754
predep_objects=$lt_predep_objects
10756
# Dependencies to place after the objects being linked to create a
10758
postdep_objects=$lt_postdep_objects
10760
# Dependencies to place before the objects being linked to create a
10762
predeps=$lt_predeps
10764
# Dependencies to place after the objects being linked to create a
10766
postdeps=$lt_postdeps
10768
# The directories searched by this compiler when creating a shared
10770
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10772
# The library search path used internally by the compiler when linking
10773
# a shared library.
10774
compiler_lib_search_path=$lt_compiler_lib_search_path
10776
# Method to check whether dependent libraries are shared objects.
10777
deplibs_check_method=$lt_deplibs_check_method
10779
# Command to use when deplibs_check_method == file_magic.
10780
file_magic_cmd=$lt_file_magic_cmd
10782
# Flag that allows shared libraries with undefined symbols to be built.
10783
allow_undefined_flag=$lt_allow_undefined_flag
10785
# Flag that forces no undefined symbols.
10786
no_undefined_flag=$lt_no_undefined_flag
10788
# Commands used to finish a libtool library installation in a directory.
10789
finish_cmds=$lt_finish_cmds
10791
# Same as above, but a single script fragment to be evaled but not shown.
10792
finish_eval=$lt_finish_eval
10794
# Take the output of nm and produce a listing of raw symbols and C names.
10795
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10797
# Transform the output of nm in a proper C declaration
10798
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10800
# Transform the output of nm in a C name address pair
10801
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10803
# This is the shared library runtime path variable.
10804
runpath_var=$runpath_var
10806
# This is the shared library path variable.
10807
shlibpath_var=$shlibpath_var
10809
# Is shlibpath searched before the hard-coded library search path?
10810
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10812
# How to hardcode a shared library path into an executable.
10813
hardcode_action=$hardcode_action
10815
# Whether we should hardcode library paths into libraries.
10816
hardcode_into_libs=$hardcode_into_libs
10818
# Flag to hardcode \$libdir into a binary during linking.
10819
# This must work even if \$libdir does not exist.
10820
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10822
# If ld is used when linking, flag to hardcode \$libdir into
10823
# a binary during linking. This must work even if \$libdir does
10825
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10827
# Whether we need a single -rpath flag with a separated argument.
10828
hardcode_libdir_separator=$lt_hardcode_libdir_separator
10830
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10831
# resulting binary.
10832
hardcode_direct=$hardcode_direct
10834
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10835
# resulting binary.
10836
hardcode_minus_L=$hardcode_minus_L
10838
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10839
# the resulting binary.
10840
hardcode_shlibpath_var=$hardcode_shlibpath_var
10842
# Set to yes if building a shared library automatically hardcodes DIR into the library
10843
# and all subsequent libraries and executables linked against it.
10844
hardcode_automatic=$hardcode_automatic
10846
# Variables whose values should be saved in libtool wrapper scripts and
10847
# restored at relink time.
10848
variables_saved_for_relink="$variables_saved_for_relink"
10850
# Whether libtool must link a program against all its dependency libraries.
10851
link_all_deplibs=$link_all_deplibs
10853
# Compile-time system search path for libraries
10854
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10856
# Run-time system search path for libraries
10857
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10859
# Fix the shell variable \$srcfile for the compiler.
10860
fix_srcfile_path=$lt_fix_srcfile_path
10862
# Set to yes if exported symbols are required.
10863
always_export_symbols=$always_export_symbols
10865
# The commands to list exported symbols.
10866
export_symbols_cmds=$lt_export_symbols_cmds
10868
# The commands to extract the exported symbol list from a shared archive.
10869
extract_expsyms_cmds=$lt_extract_expsyms_cmds
10871
# Symbols that should not be listed in the preloaded symbols.
10872
exclude_expsyms=$lt_exclude_expsyms
10874
# Symbols that must always be exported.
10875
include_expsyms=$lt_include_expsyms
10877
# ### END LIBTOOL CONFIG
10884
cat <<\EOF >> "$cfgfile"
10886
# AIX sometimes has problems with the GCC collect2 program. For some
10887
# reason, if we set the COLLECT_NAMES environment variable, the problems
10888
# vanish in a puff of smoke.
10889
if test "X${COLLECT_NAMES+set}" != Xset; then
10891
export COLLECT_NAMES
10897
# We use sed instead of cat because bash on DJGPP gets confused if
10898
# if finds mixed CR/LF and LF-only lines. Since sed operates in
10899
# text mode, it properly converts lines to CR/LF. This bash problem
10900
# is reportedly fixed, but why not run on old versions too?
10901
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10903
mv -f "$cfgfile" "$ofile" || \
10904
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10908
# If there is no Makefile yet, we rely on a make rule to execute
10909
# `config.status --recheck' to rerun these tests and create the
10910
# libtool script then.
10911
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10912
if test -f "$ltmain_in"; then
10913
test -f Makefile && make "$ltmain"
10919
ac_cpp='$CPP $CPPFLAGS'
10920
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10921
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10922
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10927
# Check whether --with-tags was given.
10928
if test "${with_tags+set}" = set; then
10929
withval=$with_tags; tagnames="$withval"
10933
if test -f "$ltmain" && test -n "$tagnames"; then
10934
if test ! -f "${ofile}"; then
10935
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10936
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10939
if test -z "$LTCC"; then
10940
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10941
if test -z "$LTCC"; then
10942
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10943
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10945
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10946
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10949
if test -z "$LTCFLAGS"; then
10950
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10953
# Extract list of available tagged configurations in $ofile.
10954
# Note that this assumes the entire list is on one line.
10955
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10957
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10958
for tagname in $tagnames; do
10960
# Check whether tagname contains only valid characters
10961
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10963
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10964
echo "$as_me: error: invalid tag name: $tagname" >&2;}
10965
{ (exit 1); exit 1; }; }
10969
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10971
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10972
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10973
{ (exit 1); exit 1; }; }
10976
# Update the list of available tags.
10977
if test -n "$tagname"; then
10978
echo appending configuration tag \"$tagname\" to $ofile
10982
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10983
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10984
(test "X$CXX" != "Xg++"))) ; then
10986
ac_cpp='$CXXCPP $CPPFLAGS'
10987
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10988
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10989
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10994
archive_cmds_need_lc_CXX=no
10995
allow_undefined_flag_CXX=
10996
always_export_symbols_CXX=no
10997
archive_expsym_cmds_CXX=
10998
export_dynamic_flag_spec_CXX=
10999
hardcode_direct_CXX=no
11000
hardcode_libdir_flag_spec_CXX=
11001
hardcode_libdir_flag_spec_ld_CXX=
11002
hardcode_libdir_separator_CXX=
11003
hardcode_minus_L_CXX=no
11004
hardcode_shlibpath_var_CXX=unsupported
11005
hardcode_automatic_CXX=no
11007
module_expsym_cmds_CXX=
11008
link_all_deplibs_CXX=unknown
11009
old_archive_cmds_CXX=$old_archive_cmds
11010
no_undefined_flag_CXX=
11011
whole_archive_flag_spec_CXX=
11012
enable_shared_with_static_runtimes_CXX=no
11014
# Dependencies to place before and after the object being linked:
11015
predep_objects_CXX=
11016
postdep_objects_CXX=
11019
compiler_lib_search_path_CXX=
11020
compiler_lib_search_dirs_CXX=
11022
# Source file extension for C++ test sources.
11025
# Object file extension for compiled C++ test sources.
11029
# Code to be used in simple compile tests
11030
lt_simple_compile_test_code="int some_variable = 0;"
11032
# Code to be used in simple link tests
11033
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11035
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11037
# If no C compiler was specified, use CC.
11040
# If no C compiler flags were specified, use CFLAGS.
11041
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11043
# Allow CC to be a program name with arguments.
11047
# save warnings/boilerplate of simple test code
11048
ac_outfile=conftest.$ac_objext
11049
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11050
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11051
_lt_compiler_boilerplate=`cat conftest.err`
11054
ac_outfile=conftest.$ac_objext
11055
echo "$lt_simple_link_test_code" >conftest.$ac_ext
11056
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11057
_lt_linker_boilerplate=`cat conftest.err`
11061
# Allow CC to be a program name with arguments.
11066
lt_save_with_gnu_ld=$with_gnu_ld
11067
lt_save_path_LD=$lt_cv_path_LD
11068
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11069
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11071
$as_unset lt_cv_prog_gnu_ld
11073
if test -n "${lt_cv_path_LDCXX+set}"; then
11074
lt_cv_path_LD=$lt_cv_path_LDCXX
11076
$as_unset lt_cv_path_LD
11078
test -z "${LDCXX+set}" || LD=$LDCXX
11082
for cc_temp in $compiler""; do
11084
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11085
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11090
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11093
# We don't want -fno-exception wen compiling C++ code, so set the
11094
# no_builtin_flag separately
11095
if test "$GXX" = yes; then
11096
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11098
lt_prog_compiler_no_builtin_flag_CXX=
11101
if test "$GXX" = yes; then
11102
# Set up default GNU C++ configuration
11105
# Check whether --with-gnu-ld was given.
11106
if test "${with_gnu_ld+set}" = set; then
11107
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11113
if test "$GCC" = yes; then
11114
# Check if gcc -print-prog-name=ld gives a path.
11115
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11116
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11119
# gcc leaves a trailing carriage return which upsets mingw
11120
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11122
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11125
# Accept absolute paths.
11127
re_direlt='/[^/][^/]*/\.\./'
11128
# Canonicalize the pathname of ld
11129
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11130
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11131
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11133
test -z "$LD" && LD="$ac_prog"
11136
# If it fails, then pretend we aren't using GCC.
11140
# If it is relative, then search for the first ld in PATH.
11141
with_gnu_ld=unknown
11144
elif test "$with_gnu_ld" = yes; then
11145
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
11146
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11148
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11149
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11151
if test "${lt_cv_path_LD+set}" = set; then
11152
echo $ECHO_N "(cached) $ECHO_C" >&6
11154
if test -z "$LD"; then
11155
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11156
for ac_dir in $PATH; do
11158
test -z "$ac_dir" && ac_dir=.
11159
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11160
lt_cv_path_LD="$ac_dir/$ac_prog"
11161
# Check to see if the program is GNU ld. I'd rather use --version,
11162
# but apparently some variants of GNU ld only accept -v.
11163
# Break only if it was the GNU/non-GNU ld that we prefer.
11164
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11165
*GNU* | *'with BFD'*)
11166
test "$with_gnu_ld" != no && break
11169
test "$with_gnu_ld" != yes && break
11176
lt_cv_path_LD="$LD" # Let the user override the test with a path.
11180
LD="$lt_cv_path_LD"
11181
if test -n "$LD"; then
11182
{ echo "$as_me:$LINENO: result: $LD" >&5
11183
echo "${ECHO_T}$LD" >&6; }
11185
{ echo "$as_me:$LINENO: result: no" >&5
11186
echo "${ECHO_T}no" >&6; }
11188
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11189
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11190
{ (exit 1); exit 1; }; }
11191
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11192
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11193
if test "${lt_cv_prog_gnu_ld+set}" = set; then
11194
echo $ECHO_N "(cached) $ECHO_C" >&6
11196
# I'd rather use --version here, but apparently some GNU lds only accept -v.
11197
case `$LD -v 2>&1 </dev/null` in
11198
*GNU* | *'with BFD'*)
11199
lt_cv_prog_gnu_ld=yes
11202
lt_cv_prog_gnu_ld=no
11206
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11207
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11208
with_gnu_ld=$lt_cv_prog_gnu_ld
11212
# Check if GNU C++ uses GNU ld as the underlying linker, since the
11213
# archiving commands below assume that GNU ld is being used.
11214
if test "$with_gnu_ld" = yes; then
11215
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11216
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'
11218
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11219
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11221
# If archive_cmds runs LD, not CC, wlarc should be empty
11222
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11223
# investigate it a little bit more. (MM)
11226
# ancient GNU ld didn't support --whole-archive et. al.
11227
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11228
grep 'no-whole-archive' > /dev/null; then
11229
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11231
whole_archive_flag_spec_CXX=
11237
# A generic and very simple default shared library creation
11238
# command for GNU C++ for the case where it uses the native
11239
# linker, instead of GNU ld. If possible, this setting should
11240
# overridden to take advantage of the native linker features on
11241
# the platform it is being used on.
11242
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11245
# Commands to make compiler produce verbose output that lists
11246
# what "hidden" libraries, object files and flags are used when
11247
# linking a shared library.
11248
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11256
# PORTME: fill in a description of your system's C++ link characteristics
11257
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11258
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11262
# FIXME: insert proper C++ library support
11266
if test "$host_cpu" = ia64; then
11267
# On IA64, the linker does run time linking by default, so we don't
11268
# have to do anything special.
11269
aix_use_runtimelinking=no
11270
exp_sym_flag='-Bexport'
11273
aix_use_runtimelinking=no
11275
# Test if we are trying to use run time linking or normal
11276
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11277
# need to do runtime linking.
11278
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11279
for ld_flag in $LDFLAGS; do
11282
aix_use_runtimelinking=yes
11290
exp_sym_flag='-bexport'
11291
no_entry_flag='-bnoentry'
11294
# When large executables or shared objects are built, AIX ld can
11295
# have problems creating the table of contents. If linking a library
11296
# or program results in "error TOC overflow" add -mminimal-toc to
11297
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11298
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11300
archive_cmds_CXX=''
11301
hardcode_direct_CXX=yes
11302
hardcode_libdir_separator_CXX=':'
11303
link_all_deplibs_CXX=yes
11305
if test "$GXX" = yes; then
11306
case $host_os in aix4.[012]|aix4.[012].*)
11307
# We only want to do this on AIX 4.2 and lower, the check
11308
# below for broken collect2 doesn't work under 4.3+
11309
collect2name=`${CC} -print-prog-name=collect2`
11310
if test -f "$collect2name" && \
11311
strings "$collect2name" | grep resolve_lib_name >/dev/null
11313
# We have reworked collect2
11316
# We have old collect2
11317
hardcode_direct_CXX=unsupported
11318
# It fails to find uninstalled libraries when the uninstalled
11319
# path is not listed in the libpath. Setting hardcode_minus_L
11320
# to unsupported forces relinking
11321
hardcode_minus_L_CXX=yes
11322
hardcode_libdir_flag_spec_CXX='-L$libdir'
11323
hardcode_libdir_separator_CXX=
11327
shared_flag='-shared'
11328
if test "$aix_use_runtimelinking" = yes; then
11329
shared_flag="$shared_flag "'${wl}-G'
11333
if test "$host_cpu" = ia64; then
11334
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11335
# chokes on -Wl,-G. The following line is correct:
11338
if test "$aix_use_runtimelinking" = yes; then
11339
shared_flag='${wl}-G'
11341
shared_flag='${wl}-bM:SRE'
11346
# It seems that -bexpall does not export symbols beginning with
11347
# underscore (_), so it is better to generate a list of symbols to export.
11348
always_export_symbols_CXX=yes
11349
if test "$aix_use_runtimelinking" = yes; then
11350
# Warning - without using the other runtime loading flags (-brtl),
11351
# -berok will link without error, but may produce a broken library.
11352
allow_undefined_flag_CXX='-berok'
11353
# Determine the default libpath from the value encoded in an empty executable.
11354
cat >conftest.$ac_ext <<_ACEOF
11357
cat confdefs.h >>conftest.$ac_ext
11358
cat >>conftest.$ac_ext <<_ACEOF
11359
/* end confdefs.h. */
11369
rm -f conftest.$ac_objext conftest$ac_exeext
11370
if { (ac_try="$ac_link"
11371
case "(($ac_try" in
11372
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11373
*) ac_try_echo=$ac_try;;
11375
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11376
(eval "$ac_link") 2>conftest.er1
11378
grep -v '^ *+' conftest.er1 >conftest.err
11380
cat conftest.err >&5
11381
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382
(exit $ac_status); } && {
11383
test -z "$ac_cxx_werror_flag" ||
11384
test ! -s conftest.err
11385
} && test -s conftest$ac_exeext &&
11386
$as_test_x conftest$ac_exeext; then
11388
lt_aix_libpath_sed='
11389
/Import File Strings/,/^$/ {
11395
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11396
# Check for a 64-bit object if we didn't find anything.
11397
if test -z "$aix_libpath"; then
11398
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11401
echo "$as_me: failed program was:" >&5
11402
sed 's/^/| /' conftest.$ac_ext >&5
11407
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11408
conftest$ac_exeext conftest.$ac_ext
11409
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11411
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11413
archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11415
if test "$host_cpu" = ia64; then
11416
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11417
allow_undefined_flag_CXX="-z nodefs"
11418
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11420
# Determine the default libpath from the value encoded in an empty executable.
11421
cat >conftest.$ac_ext <<_ACEOF
11424
cat confdefs.h >>conftest.$ac_ext
11425
cat >>conftest.$ac_ext <<_ACEOF
11426
/* end confdefs.h. */
11436
rm -f conftest.$ac_objext conftest$ac_exeext
11437
if { (ac_try="$ac_link"
11438
case "(($ac_try" in
11439
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11440
*) ac_try_echo=$ac_try;;
11442
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11443
(eval "$ac_link") 2>conftest.er1
11445
grep -v '^ *+' conftest.er1 >conftest.err
11447
cat conftest.err >&5
11448
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449
(exit $ac_status); } && {
11450
test -z "$ac_cxx_werror_flag" ||
11451
test ! -s conftest.err
11452
} && test -s conftest$ac_exeext &&
11453
$as_test_x conftest$ac_exeext; then
11455
lt_aix_libpath_sed='
11456
/Import File Strings/,/^$/ {
11462
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11463
# Check for a 64-bit object if we didn't find anything.
11464
if test -z "$aix_libpath"; then
11465
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11468
echo "$as_me: failed program was:" >&5
11469
sed 's/^/| /' conftest.$ac_ext >&5
11474
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11475
conftest$ac_exeext conftest.$ac_ext
11476
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11478
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11479
# Warning - without using the other run time loading flags,
11480
# -berok will link without error, but may produce a broken library.
11481
no_undefined_flag_CXX=' ${wl}-bernotok'
11482
allow_undefined_flag_CXX=' ${wl}-berok'
11483
# Exported symbols can be pulled into shared objects from archives
11484
whole_archive_flag_spec_CXX='$convenience'
11485
archive_cmds_need_lc_CXX=yes
11486
# This is similar to how AIX traditionally builds its shared libraries.
11487
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11493
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11494
allow_undefined_flag_CXX=unsupported
11495
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11496
# support --undefined. This deserves some investigation. FIXME
11497
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11504
case $cc_basename in
11506
# FIXME: insert proper C++ library support
11512
cygwin* | mingw* | pw32*)
11513
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11514
# as there is no search path for DLLs.
11515
hardcode_libdir_flag_spec_CXX='-L$libdir'
11516
allow_undefined_flag_CXX=unsupported
11517
always_export_symbols_CXX=no
11518
enable_shared_with_static_runtimes_CXX=yes
11520
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11521
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11522
# If the export-symbols file already is a .def file (1st line
11523
# is EXPORTS), use it as is; otherwise, prepend...
11524
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11525
cp $export_symbols $output_objdir/$soname.def;
11527
echo EXPORTS > $output_objdir/$soname.def;
11528
cat $export_symbols >> $output_objdir/$soname.def;
11530
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11535
darwin* | rhapsody*)
11536
archive_cmds_need_lc_CXX=no
11537
hardcode_direct_CXX=no
11538
hardcode_automatic_CXX=yes
11539
hardcode_shlibpath_var_CXX=unsupported
11540
whole_archive_flag_spec_CXX=''
11541
link_all_deplibs_CXX=yes
11542
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11543
if test "$GXX" = yes ; then
11544
output_verbose_link_cmd='echo'
11545
archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11546
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11547
archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11548
module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11549
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11550
archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
11551
archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
11554
case $cc_basename in
11556
output_verbose_link_cmd='echo'
11557
archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11558
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11559
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11560
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11561
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}'
11571
case $cc_basename in
11573
# FIXME: insert proper C++ library support
11577
# Green Hills C++ Compiler
11578
# FIXME: insert proper C++ library support
11582
# FIXME: insert proper C++ library support
11588
# C++ shared libraries reported to be fairly broken before switch to ELF
11592
archive_cmds_need_lc_CXX=no
11594
freebsd* | dragonfly*)
11595
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11602
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11603
hardcode_libdir_separator_CXX=:
11604
export_dynamic_flag_spec_CXX='${wl}-E'
11605
hardcode_direct_CXX=yes
11606
hardcode_minus_L_CXX=yes # Not in the search PATH,
11607
# but as the default
11608
# location of the library.
11610
case $cc_basename in
11612
# FIXME: insert proper C++ library support
11616
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'
11617
# Commands to make compiler produce verbose output that lists
11618
# what "hidden" libraries, object files and flags are used when
11619
# linking a shared library.
11621
# There doesn't appear to be a way to prevent this compiler from
11622
# explicitly linking system object files so we need to strip them
11623
# from the output so that they don't get included in the library
11625
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'
11628
if test "$GXX" = yes; then
11629
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'
11631
# FIXME: insert proper C++ library support
11638
if test $with_gnu_ld = no; then
11639
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11640
hardcode_libdir_separator_CXX=:
11645
export_dynamic_flag_spec_CXX='${wl}-E'
11651
hardcode_direct_CXX=no
11652
hardcode_shlibpath_var_CXX=no
11655
hardcode_direct_CXX=yes
11656
hardcode_minus_L_CXX=yes # Not in the search PATH,
11657
# but as the default
11658
# location of the library.
11662
case $cc_basename in
11664
# FIXME: insert proper C++ library support
11670
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11673
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11676
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11679
# Commands to make compiler produce verbose output that lists
11680
# what "hidden" libraries, object files and flags are used when
11681
# linking a shared library.
11683
# There doesn't appear to be a way to prevent this compiler from
11684
# explicitly linking system object files so we need to strip them
11685
# from the output so that they don't get included in the library
11687
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'
11690
if test "$GXX" = yes; then
11691
if test $with_gnu_ld = no; then
11694
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11697
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11700
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'
11705
# FIXME: insert proper C++ library support
11712
hardcode_direct_CXX=no
11713
hardcode_shlibpath_var_CXX=no
11714
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11715
export_dynamic_flag_spec_CXX='${wl}-E'
11716
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11717
# Instead, shared libraries are loaded at an image base (0x10000000 by
11718
# default) and relocated if they conflict, which is a slow very memory
11719
# consuming and fragmenting process. To avoid this, we pick a random,
11720
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11721
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
11722
archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11723
archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11726
case $cc_basename in
11729
archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11731
# Archives containing C++ object files must be created using
11732
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
11733
# necessary to make sure instantiated templates are included
11735
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11738
if test "$GXX" = yes; then
11739
if test "$with_gnu_ld" = no; then
11740
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11742
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'
11745
link_all_deplibs_CXX=yes
11748
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11749
hardcode_libdir_separator_CXX=:
11751
linux* | k*bsd*-gnu)
11752
case $cc_basename in
11754
# Kuck and Associates, Inc. (KAI) C++ Compiler
11756
# KCC will only create a shared library if the output file
11757
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11758
# to its proper name (with version) after linking.
11759
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'
11760
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'
11761
# Commands to make compiler produce verbose output that lists
11762
# what "hidden" libraries, object files and flags are used when
11763
# linking a shared library.
11765
# There doesn't appear to be a way to prevent this compiler from
11766
# explicitly linking system object files so we need to strip them
11767
# from the output so that they don't get included in the library
11769
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'
11771
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11772
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11774
# Archives containing C++ object files must be created using
11775
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11776
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11781
# version 8.0 and above of icpc choke on multiply defined symbols
11782
# if we add $predep_objects and $postdep_objects, however 7.1 and
11783
# earlier do not add the objects themselves.
11784
case `$CC -V 2>&1` in
11786
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11787
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'
11789
*) # Version 8.0 or newer
11792
ia64*) tmp_idyn=' -i_dynamic';;
11794
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11795
archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11798
archive_cmds_need_lc_CXX=no
11799
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11800
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11801
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11804
# Portland Group C++ compiler
11805
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11806
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11808
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11809
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11810
whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11814
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11815
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'
11817
runpath_var=LD_RUN_PATH
11818
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11819
hardcode_libdir_separator_CXX=:
11821
# Commands to make compiler produce verbose output that lists
11822
# what "hidden" libraries, object files and flags are used when
11823
# linking a shared library.
11825
# There doesn't appear to be a way to prevent this compiler from
11826
# explicitly linking system object files so we need to strip them
11827
# from the output so that they don't get included in the library
11829
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'
11832
case `$CC -V 2>&1 | sed 5q` in
11835
no_undefined_flag_CXX=' -zdefs'
11836
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11837
archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11838
hardcode_libdir_flag_spec_CXX='-R$libdir'
11839
whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11841
# Not sure whether something based on
11842
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11844
output_verbose_link_cmd='echo'
11846
# Archives containing C++ object files must be created using
11847
# "CC -xar", where "CC" is the Sun C++ compiler. This is
11848
# necessary to make sure instantiated templates are included
11850
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11857
# FIXME: insert proper C++ library support
11861
# FIXME: insert proper C++ library support
11865
case $cc_basename in
11867
# FIXME: insert proper C++ library support
11871
# FIXME: insert proper C++ library support
11876
netbsd* | netbsdelf*-gnu)
11877
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11878
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11880
hardcode_libdir_flag_spec_CXX='-R$libdir'
11881
hardcode_direct_CXX=yes
11882
hardcode_shlibpath_var_CXX=no
11884
# Workaround some broken pre-1.5 toolchains
11885
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11888
# C++ shared libraries are fairly broken
11892
if test -f /usr/libexec/ld.so; then
11893
hardcode_direct_CXX=yes
11894
hardcode_shlibpath_var_CXX=no
11895
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11896
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11897
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11898
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11899
export_dynamic_flag_spec_CXX='${wl}-E'
11900
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11902
output_verbose_link_cmd='echo'
11908
case $cc_basename in
11910
# Kuck and Associates, Inc. (KAI) C++ Compiler
11912
# KCC will only create a shared library if the output file
11913
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11914
# to its proper name (with version) after linking.
11915
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'
11917
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11918
hardcode_libdir_separator_CXX=:
11920
# Archives containing C++ object files must be created using
11921
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11922
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11926
# Rational C++ 2.4.1
11927
# FIXME: insert proper C++ library support
11931
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11932
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11934
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11935
hardcode_libdir_separator_CXX=:
11937
# Commands to make compiler produce verbose output that lists
11938
# what "hidden" libraries, object files and flags are used when
11939
# linking a shared library.
11941
# There doesn't appear to be a way to prevent this compiler from
11942
# explicitly linking system object files so we need to strip them
11943
# from the output so that they don't get included in the library
11945
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'
11948
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11949
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11950
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11952
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11953
hardcode_libdir_separator_CXX=:
11955
# Commands to make compiler produce verbose output that lists
11956
# what "hidden" libraries, object files and flags are used when
11957
# linking a shared library.
11958
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11961
# FIXME: insert proper C++ library support
11968
case $cc_basename in
11970
# Kuck and Associates, Inc. (KAI) C++ Compiler
11972
# KCC will only create a shared library if the output file
11973
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11974
# to its proper name (with version) after linking.
11975
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'
11977
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11978
hardcode_libdir_separator_CXX=:
11980
# Archives containing C++ object files must be created using
11981
# the KAI C++ compiler.
11982
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11985
# Rational C++ 2.4.1
11986
# FIXME: insert proper C++ library support
11990
allow_undefined_flag_CXX=' -expect_unresolved \*'
11991
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11992
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11993
echo "-hidden">> $lib.exp~
11994
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11997
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11998
hardcode_libdir_separator_CXX=:
12000
# Commands to make compiler produce verbose output that lists
12001
# what "hidden" libraries, object files and flags are used when
12002
# linking a shared library.
12004
# There doesn't appear to be a way to prevent this compiler from
12005
# explicitly linking system object files so we need to strip them
12006
# from the output so that they don't get included in the library
12008
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'
12011
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12012
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12013
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12015
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12016
hardcode_libdir_separator_CXX=:
12018
# Commands to make compiler produce verbose output that lists
12019
# what "hidden" libraries, object files and flags are used when
12020
# linking a shared library.
12021
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12024
# FIXME: insert proper C++ library support
12031
# FIXME: insert proper C++ library support
12035
case $cc_basename in
12038
# FIXME: insert proper C++ library support
12043
# FIXME: insert proper C++ library support
12047
# FIXME: insert proper C++ library support
12053
case $cc_basename in
12055
# Sun C++ 4.2, 5.x and Centerline C++
12056
archive_cmds_need_lc_CXX=yes
12057
no_undefined_flag_CXX=' -zdefs'
12058
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12059
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12060
$CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12062
hardcode_libdir_flag_spec_CXX='-R$libdir'
12063
hardcode_shlibpath_var_CXX=no
12065
solaris2.[0-5] | solaris2.[0-5].*) ;;
12067
# The compiler driver will combine and reorder linker options,
12068
# but understands `-z linker_flag'.
12069
# Supported since Solaris 2.6 (maybe 2.5.1?)
12070
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12073
link_all_deplibs_CXX=yes
12075
output_verbose_link_cmd='echo'
12077
# Archives containing C++ object files must be created using
12078
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12079
# necessary to make sure instantiated templates are included
12081
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12084
# Green Hills C++ Compiler
12085
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12087
# The C++ compiler must be used to create the archive.
12088
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12091
# GNU C++ compiler with Solaris linker
12092
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12093
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12094
if $CC --version | grep -v '^2\.7' > /dev/null; then
12095
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12096
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12097
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12099
# Commands to make compiler produce verbose output that lists
12100
# what "hidden" libraries, object files and flags are used when
12101
# linking a shared library.
12102
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12104
# g++ 2.7 appears to require `-G' NOT `-shared' on this
12106
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12107
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12108
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12110
# Commands to make compiler produce verbose output that lists
12111
# what "hidden" libraries, object files and flags are used when
12112
# linking a shared library.
12113
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12116
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12118
solaris2.[0-5] | solaris2.[0-5].*) ;;
12120
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12127
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12128
no_undefined_flag_CXX='${wl}-z,text'
12129
archive_cmds_need_lc_CXX=no
12130
hardcode_shlibpath_var_CXX=no
12131
runpath_var='LD_RUN_PATH'
12133
case $cc_basename in
12135
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12136
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12139
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12140
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12144
sysv5* | sco3.2v5* | sco5v6*)
12145
# Note: We can NOT use -z defs as we might desire, because we do not
12146
# link with -lc, and that would cause any symbols used from libc to
12147
# always be unresolved, which means just about no library would
12148
# ever link correctly. If we're not using GNU ld we use -z text
12149
# though, which does catch some bad symbols but isn't as heavy-handed
12151
# For security reasons, it is highly recommended that you always
12152
# use absolute paths for naming shared libraries, and exclude the
12153
# DT_RUNPATH tag from executables and libraries. But doing so
12154
# requires that you compile everything twice, which is a pain.
12155
# So that behaviour is only enabled if SCOABSPATH is set to a
12156
# non-empty value in the environment. Most likely only useful for
12157
# creating official distributions of packages.
12158
# This is a hack until libtool officially supports absolute path
12159
# names for shared libraries.
12160
no_undefined_flag_CXX='${wl}-z,text'
12161
allow_undefined_flag_CXX='${wl}-z,nodefs'
12162
archive_cmds_need_lc_CXX=no
12163
hardcode_shlibpath_var_CXX=no
12164
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12165
hardcode_libdir_separator_CXX=':'
12166
link_all_deplibs_CXX=yes
12167
export_dynamic_flag_spec_CXX='${wl}-Bexport'
12168
runpath_var='LD_RUN_PATH'
12170
case $cc_basename in
12172
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12173
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12176
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12177
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12182
case $cc_basename in
12184
# NonStop-UX NCC 3.20
12185
# FIXME: insert proper C++ library support
12189
# FIXME: insert proper C++ library support
12195
# FIXME: insert proper C++ library support
12199
# FIXME: insert proper C++ library support
12203
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12204
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12205
test "$ld_shlibs_CXX" = no && can_build_shared=no
12210
cat > conftest.$ac_ext <<EOF
12214
Foo (void) { a = 0; }
12220
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12221
(eval $ac_compile) 2>&5
12223
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224
(exit $ac_status); }; then
12225
# Parse the compiler output and extract the necessary
12226
# objects, libraries and library flags.
12228
# Sentinel used to keep track of whether or not we are before
12229
# the conftest object file.
12230
pre_test_object_deps_done=no
12232
# The `*' in the case matches for architectures that use `case' in
12233
# $output_verbose_cmd can trigger glob expansion during the loop
12234
# eval without this substitution.
12235
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12237
for p in `eval $output_verbose_link_cmd`; do
12241
# Some compilers place space between "-{L,R}" and the path.
12242
# Remove the space.
12243
if test $p = "-L" \
12244
|| test $p = "-R"; then
12251
if test "$pre_test_object_deps_done" = no; then
12254
# Internal compiler library paths should come after those
12255
# provided the user. The postdeps already come after the
12256
# user supplied libs so there is no need to process them.
12257
if test -z "$compiler_lib_search_path_CXX"; then
12258
compiler_lib_search_path_CXX="${prev}${p}"
12260
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12263
# The "-l" case would never come before the object being
12264
# linked, so don't bother handling this case.
12267
if test -z "$postdeps_CXX"; then
12268
postdeps_CXX="${prev}${p}"
12270
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12276
# This assumes that the test object file only shows up
12277
# once in the compiler output.
12278
if test "$p" = "conftest.$objext"; then
12279
pre_test_object_deps_done=yes
12283
if test "$pre_test_object_deps_done" = no; then
12284
if test -z "$predep_objects_CXX"; then
12285
predep_objects_CXX="$p"
12287
predep_objects_CXX="$predep_objects_CXX $p"
12290
if test -z "$postdep_objects_CXX"; then
12291
postdep_objects_CXX="$p"
12293
postdep_objects_CXX="$postdep_objects_CXX $p"
12298
*) ;; # Ignore the rest.
12306
echo "libtool.m4: error: problem compiling CXX test program"
12309
$rm -f confest.$objext
12311
compiler_lib_search_dirs_CXX=
12312
if test -n "$compiler_lib_search_path_CXX"; then
12313
compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12316
# PORTME: override above test on systems where it is broken
12319
# Interix 3.5 installs completely hosed .la files for C++, so rather than
12320
# hack all around it, let's just trust "g++" to DTRT.
12321
predep_objects_CXX=
12322
postdep_objects_CXX=
12327
case `$CC -V 2>&1 | sed 5q` in
12331
# The more standards-conforming stlport4 library is
12332
# incompatible with the Cstd library. Avoid specifying
12333
# it if it's in CXXFLAGS. Ignore libCrun as
12334
# -library=stlport4 depends on it.
12335
case " $CXX $CXXFLAGS " in
12336
*" -library=stlport4 "*)
12337
solaris_use_stlport4=yes
12340
if test "$solaris_use_stlport4" != yes; then
12341
postdeps_CXX='-library=Cstd -library=Crun'
12348
case $cc_basename in
12350
# The more standards-conforming stlport4 library is
12351
# incompatible with the Cstd library. Avoid specifying
12352
# it if it's in CXXFLAGS. Ignore libCrun as
12353
# -library=stlport4 depends on it.
12354
case " $CXX $CXXFLAGS " in
12355
*" -library=stlport4 "*)
12356
solaris_use_stlport4=yes
12360
# Adding this requires a known-good setup of shared libraries for
12361
# Sun compiler versions before 5.6, else PIC objects from an old
12362
# archive will be linked into the output, leading to subtle bugs.
12363
if test "$solaris_use_stlport4" != yes; then
12364
postdeps_CXX='-library=Cstd -library=Crun'
12371
case " $postdeps_CXX " in
12372
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12375
lt_prog_compiler_wl_CXX=
12376
lt_prog_compiler_pic_CXX=
12377
lt_prog_compiler_static_CXX=
12379
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12380
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12382
# C++ specific cases for pic, static, wl, etc.
12383
if test "$GXX" = yes; then
12384
lt_prog_compiler_wl_CXX='-Wl,'
12385
lt_prog_compiler_static_CXX='-static'
12389
# All AIX code is PIC.
12390
if test "$host_cpu" = ia64; then
12391
# AIX 5 now supports IA64 processor
12392
lt_prog_compiler_static_CXX='-Bstatic'
12396
# FIXME: we need at least 68020 code to build shared libraries, but
12397
# adding the `-m68020' flag to GCC prevents building anything better,
12399
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12401
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12402
# PIC is the default for these OSes.
12404
mingw* | cygwin* | os2* | pw32*)
12405
# This hack is so that the source file can tell whether it is being
12406
# built for inclusion in a dll (and should export symbols for example).
12407
# Although the cygwin gcc ignores -fPIC, still need this for old-style
12408
# (--disable-auto-import) libraries
12409
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12411
darwin* | rhapsody*)
12412
# PIC is the default on this platform
12413
# Common symbols not allowed in MH_DYLIB files
12414
lt_prog_compiler_pic_CXX='-fno-common'
12417
# DJGPP does not support shared libraries at all
12418
lt_prog_compiler_pic_CXX=
12421
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
12422
# Instead, we relocate shared libraries at runtime.
12425
if test -d /usr/nec; then
12426
lt_prog_compiler_pic_CXX=-Kconform_pic
12430
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12431
# not for PA HP-UX.
12436
lt_prog_compiler_pic_CXX='-fPIC'
12441
lt_prog_compiler_pic_CXX='-fPIC'
12447
# All AIX code is PIC.
12448
if test "$host_cpu" = ia64; then
12449
# AIX 5 now supports IA64 processor
12450
lt_prog_compiler_static_CXX='-Bstatic'
12452
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12456
case $cc_basename in
12458
# Green Hills C++ Compiler
12459
# _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"
12464
# PIC is the default on this platform
12465
# Common symbols not allowed in MH_DYLIB files
12466
case $cc_basename in
12468
lt_prog_compiler_pic_CXX='-qnocommon'
12469
lt_prog_compiler_wl_CXX='-Wl,'
12474
case $cc_basename in
12476
lt_prog_compiler_pic_CXX='-KPIC'
12479
# Green Hills C++ Compiler
12480
lt_prog_compiler_pic_CXX='-pic'
12486
freebsd* | dragonfly*)
12487
# FreeBSD uses GNU C++
12489
hpux9* | hpux10* | hpux11*)
12490
case $cc_basename in
12492
lt_prog_compiler_wl_CXX='-Wl,'
12493
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12494
if test "$host_cpu" != ia64; then
12495
lt_prog_compiler_pic_CXX='+Z'
12499
lt_prog_compiler_wl_CXX='-Wl,'
12500
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12506
lt_prog_compiler_pic_CXX='+Z'
12515
# This is c89, which is MS Visual C++ (no shared libs)
12516
# Anyone wants to do a port?
12518
irix5* | irix6* | nonstopux*)
12519
case $cc_basename in
12521
lt_prog_compiler_wl_CXX='-Wl,'
12522
lt_prog_compiler_static_CXX='-non_shared'
12523
# CC pic flag -KPIC is the default.
12529
linux* | k*bsd*-gnu)
12530
case $cc_basename in
12533
lt_prog_compiler_wl_CXX='--backend -Wl,'
12534
lt_prog_compiler_pic_CXX='-fPIC'
12538
lt_prog_compiler_wl_CXX='-Wl,'
12539
lt_prog_compiler_pic_CXX='-KPIC'
12540
lt_prog_compiler_static_CXX='-static'
12543
# Portland Group C++ compiler.
12544
lt_prog_compiler_wl_CXX='-Wl,'
12545
lt_prog_compiler_pic_CXX='-fpic'
12546
lt_prog_compiler_static_CXX='-Bstatic'
12550
# Make sure the PIC flag is empty. It appears that all Alpha
12551
# Linux and Compaq Tru64 Unix objects are PIC.
12552
lt_prog_compiler_pic_CXX=
12553
lt_prog_compiler_static_CXX='-non_shared'
12556
case `$CC -V 2>&1 | sed 5q` in
12559
lt_prog_compiler_pic_CXX='-KPIC'
12560
lt_prog_compiler_static_CXX='-Bstatic'
12561
lt_prog_compiler_wl_CXX='-Qoption ld '
12572
case $cc_basename in
12574
lt_prog_compiler_pic_CXX='-W c,exportall'
12580
netbsd* | netbsdelf*-gnu)
12582
osf3* | osf4* | osf5*)
12583
case $cc_basename in
12585
lt_prog_compiler_wl_CXX='--backend -Wl,'
12588
# Rational C++ 2.4.1
12589
lt_prog_compiler_pic_CXX='-pic'
12592
# Digital/Compaq C++
12593
lt_prog_compiler_wl_CXX='-Wl,'
12594
# Make sure the PIC flag is empty. It appears that all Alpha
12595
# Linux and Compaq Tru64 Unix objects are PIC.
12596
lt_prog_compiler_pic_CXX=
12597
lt_prog_compiler_static_CXX='-non_shared'
12606
case $cc_basename in
12608
# Sun C++ 4.2, 5.x and Centerline C++
12609
lt_prog_compiler_pic_CXX='-KPIC'
12610
lt_prog_compiler_static_CXX='-Bstatic'
12611
lt_prog_compiler_wl_CXX='-Qoption ld '
12614
# Green Hills C++ Compiler
12615
lt_prog_compiler_pic_CXX='-PIC'
12622
case $cc_basename in
12625
lt_prog_compiler_pic_CXX='-pic'
12626
lt_prog_compiler_static_CXX='-Bstatic'
12630
lt_prog_compiler_pic_CXX='-pic'
12637
case $cc_basename in
12639
# NonStop-UX NCC 3.20
12640
lt_prog_compiler_pic_CXX='-KPIC'
12646
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12647
case $cc_basename in
12649
lt_prog_compiler_wl_CXX='-Wl,'
12650
lt_prog_compiler_pic_CXX='-KPIC'
12651
lt_prog_compiler_static_CXX='-Bstatic'
12658
lt_prog_compiler_can_build_shared_CXX=no
12663
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12664
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12667
# Check to make sure the PIC flag actually works.
12669
if test -n "$lt_prog_compiler_pic_CXX"; then
12671
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12672
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12673
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12674
echo $ECHO_N "(cached) $ECHO_C" >&6
12676
lt_cv_prog_compiler_pic_works_CXX=no
12677
ac_outfile=conftest.$ac_objext
12678
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12679
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12680
# Insert the option either (1) after the last *FLAGS variable, or
12681
# (2) before a word containing "conftest.", or (3) at the end.
12682
# Note that $ac_compile itself does not contain backslashes and begins
12683
# with a dollar sign (not a hyphen), so the echo should work correctly.
12684
# The option is referenced via a variable to avoid confusing sed.
12685
lt_compile=`echo "$ac_compile" | $SED \
12686
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12687
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12688
-e 's:$: $lt_compiler_flag:'`
12689
(eval echo "\"\$as_me:12689: $lt_compile\"" >&5)
12690
(eval "$lt_compile" 2>conftest.err)
12692
cat conftest.err >&5
12693
echo "$as_me:12693: \$? = $ac_status" >&5
12694
if (exit $ac_status) && test -s "$ac_outfile"; then
12695
# The compiler can only warn and ignore the option if not recognized
12696
# So say no if there are warnings other than the usual output.
12697
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12698
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12699
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12700
lt_cv_prog_compiler_pic_works_CXX=yes
12706
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12707
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12709
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12710
case $lt_prog_compiler_pic_CXX in
12712
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12715
lt_prog_compiler_pic_CXX=
12716
lt_prog_compiler_can_build_shared_CXX=no
12721
# For platforms which do not support PIC, -DPIC is meaningless:
12723
lt_prog_compiler_pic_CXX=
12726
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12731
# Check to make sure the static flag actually works.
12733
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12734
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12735
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12736
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12737
echo $ECHO_N "(cached) $ECHO_C" >&6
12739
lt_cv_prog_compiler_static_works_CXX=no
12740
save_LDFLAGS="$LDFLAGS"
12741
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12742
echo "$lt_simple_link_test_code" > conftest.$ac_ext
12743
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12744
# The linker can only warn and ignore the option if not recognized
12745
# So say no if there are warnings
12746
if test -s conftest.err; then
12747
# Append any errors to the config.log.
12748
cat conftest.err 1>&5
12749
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12750
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12751
if diff conftest.exp conftest.er2 >/dev/null; then
12752
lt_cv_prog_compiler_static_works_CXX=yes
12755
lt_cv_prog_compiler_static_works_CXX=yes
12759
LDFLAGS="$save_LDFLAGS"
12762
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12763
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12765
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12768
lt_prog_compiler_static_CXX=
12772
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12773
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12774
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12775
echo $ECHO_N "(cached) $ECHO_C" >&6
12777
lt_cv_prog_compiler_c_o_CXX=no
12778
$rm -r conftest 2>/dev/null
12782
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12784
lt_compiler_flag="-o out/conftest2.$ac_objext"
12785
# Insert the option either (1) after the last *FLAGS variable, or
12786
# (2) before a word containing "conftest.", or (3) at the end.
12787
# Note that $ac_compile itself does not contain backslashes and begins
12788
# with a dollar sign (not a hyphen), so the echo should work correctly.
12789
lt_compile=`echo "$ac_compile" | $SED \
12790
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12791
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12792
-e 's:$: $lt_compiler_flag:'`
12793
(eval echo "\"\$as_me:12793: $lt_compile\"" >&5)
12794
(eval "$lt_compile" 2>out/conftest.err)
12796
cat out/conftest.err >&5
12797
echo "$as_me:12797: \$? = $ac_status" >&5
12798
if (exit $ac_status) && test -s out/conftest2.$ac_objext
12800
# The compiler can only warn and ignore the option if not recognized
12801
# So say no if there are warnings
12802
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12803
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12804
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12805
lt_cv_prog_compiler_c_o_CXX=yes
12810
# SGI C++ compiler will create directory out/ii_files/ for
12811
# template instantiation
12812
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12813
$rm out/* && rmdir out
12819
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12820
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12823
hard_links="nottested"
12824
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12825
# do not overwrite the value of need_locks provided by the user
12826
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12827
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12830
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12832
ln conftest.a conftest.b 2>&5 || hard_links=no
12833
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12834
{ echo "$as_me:$LINENO: result: $hard_links" >&5
12835
echo "${ECHO_T}$hard_links" >&6; }
12836
if test "$hard_links" = no; then
12837
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12838
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12845
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12846
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12848
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12851
# If we're using GNU nm, then we don't want the "-C" option.
12852
# -C means demangle to AIX nm, but means don't demangle with GNU nm
12853
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12854
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'
12856
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'
12860
export_symbols_cmds_CXX="$ltdll_cmds"
12863
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12865
linux* | k*bsd*-gnu)
12866
link_all_deplibs_CXX=no
12869
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12872
exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12874
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12875
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12876
test "$ld_shlibs_CXX" = no && can_build_shared=no
12879
# Do we need to explicitly link libc?
12881
case "x$archive_cmds_need_lc_CXX" in
12883
# Assume -lc should be added
12884
archive_cmds_need_lc_CXX=yes
12886
if test "$enable_shared" = yes && test "$GCC" = yes; then
12887
case $archive_cmds_CXX in
12889
# FIXME: we may have to deal with multi-command sequences.
12892
# Test whether the compiler implicitly links with -lc since on some
12893
# systems, -lgcc has to come before -lc. If gcc already passes -lc
12894
# to ld, don't add -lc before -lgcc.
12895
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12896
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12898
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12900
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12901
(eval $ac_compile) 2>&5
12903
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904
(exit $ac_status); } 2>conftest.err; then
12907
libobjs=conftest.$ac_objext
12909
wl=$lt_prog_compiler_wl_CXX
12910
pic_flag=$lt_prog_compiler_pic_CXX
12916
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12917
allow_undefined_flag_CXX=
12918
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12919
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12921
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922
(exit $ac_status); }
12924
archive_cmds_need_lc_CXX=no
12926
archive_cmds_need_lc_CXX=yes
12928
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12930
cat conftest.err 1>&5
12933
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12934
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12941
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12942
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12943
library_names_spec=
12944
libname_spec='lib$name'
12948
postuninstall_cmds=
12952
shlibpath_overrides_runpath=unknown
12954
dynamic_linker="$host_os ld.so"
12955
sys_lib_dlsearch_path_spec="/lib /usr/lib"
12957
need_lib_prefix=unknown
12958
hardcode_into_libs=no
12960
# when you set need_version to no, make sure it does not cause -set_version
12961
# flags to be left without arguments
12962
need_version=unknown
12967
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12968
shlibpath_var=LIBPATH
12970
# AIX 3 has no versioning support, so we append a major version to the name.
12971
soname_spec='${libname}${release}${shared_ext}$major'
12978
hardcode_into_libs=yes
12979
if test "$host_cpu" = ia64; then
12980
# AIX 5 supports IA64
12981
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12982
shlibpath_var=LD_LIBRARY_PATH
12984
# With GCC up to 2.95.x, collect2 would create an import file
12985
# for dependence libraries. The import file would start with
12986
# the line `#! .'. This would cause the generated library to
12987
# depend on `.', always an invalid library. This was fixed in
12988
# development snapshots of GCC prior to 3.0.
12990
aix4 | aix4.[01] | aix4.[01].*)
12991
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12993
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12996
can_build_shared=no
13000
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13001
# soname into executable. Probably we can add versioning support to
13002
# collect2, so additional links can be useful in future.
13003
if test "$aix_use_runtimelinking" = yes; then
13004
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
13005
# instead of lib<name>.a to let people know that these are not
13006
# typical AIX shared libraries.
13007
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13009
# We preserve .a as extension for shared libraries through AIX4.2
13010
# and later when we are not doing run time linking.
13011
library_names_spec='${libname}${release}.a $libname.a'
13012
soname_spec='${libname}${release}${shared_ext}$major'
13014
shlibpath_var=LIBPATH
13019
library_names_spec='$libname.ixlibrary $libname.a'
13020
# Create ${libname}_ixlibrary.a entries in /sys/libs.
13021
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'
13025
library_names_spec='${libname}${shared_ext}'
13026
dynamic_linker="$host_os ld.so"
13027
shlibpath_var=LIBRARY_PATH
13033
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13034
soname_spec='${libname}${release}${shared_ext}$major'
13035
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13036
shlibpath_var=LD_LIBRARY_PATH
13037
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13038
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13039
# the default ld.so.conf also contains /usr/contrib/lib and
13040
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13041
# libtool to hard-code these into programs
13044
cygwin* | mingw* | pw32*)
13045
version_type=windows
13050
case $GCC,$host_os in
13051
yes,cygwin* | yes,mingw* | yes,pw32*)
13052
library_names_spec='$libname.dll.a'
13053
# DLL is installed to $(libdir)/../bin by postinstall_cmds
13054
postinstall_cmds='base_file=`basename \${file}`~
13055
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13056
dldir=$destdir/`dirname \$dlpath`~
13057
test -d \$dldir || mkdir -p \$dldir~
13058
$install_prog $dir/$dlname \$dldir/$dlname~
13059
chmod a+x \$dldir/$dlname'
13060
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13061
dlpath=$dir/\$dldll~
13063
shlibpath_overrides_runpath=yes
13067
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
13068
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13069
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13072
# MinGW DLLs use traditional 'lib' prefix
13073
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13074
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13075
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13076
# It is most probably a Windows format PATH printed by
13077
# mingw gcc, but we are running on Cygwin. Gcc prints its search
13078
# path with ; separators, and with drive letters. We can handle the
13079
# drive letters (cygwin fileutils understands them), so leave them,
13080
# especially as we might pass files found there to a mingw objdump,
13081
# which wouldn't understand a cygwinified path. Ahh.
13082
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13084
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13088
# pw32 DLLs use 'pw' prefix rather than 'lib'
13089
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13095
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13098
dynamic_linker='Win32 ld.exe'
13099
# FIXME: first we should search . and the directory the executable is in
13103
darwin* | rhapsody*)
13104
dynamic_linker="$host_os dyld"
13105
version_type=darwin
13108
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13109
soname_spec='${libname}${release}${major}$shared_ext'
13110
shlibpath_overrides_runpath=yes
13111
shlibpath_var=DYLD_LIBRARY_PATH
13112
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13114
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13121
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13122
soname_spec='${libname}${release}${shared_ext}$major'
13123
shlibpath_var=LD_LIBRARY_PATH
13130
freebsd* | dragonfly*)
13131
# DragonFly does not have aout. When/if they implement a new
13132
# versioning mechanism, adjust this.
13133
if test -x /usr/bin/objformat; then
13134
objformat=`/usr/bin/objformat`
13137
freebsd[123]*) objformat=aout ;;
13138
*) objformat=elf ;;
13141
version_type=freebsd-$objformat
13142
case $version_type in
13144
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13149
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13153
shlibpath_var=LD_LIBRARY_PATH
13156
shlibpath_overrides_runpath=yes
13158
freebsd3.[01]* | freebsdelf3.[01]*)
13159
shlibpath_overrides_runpath=yes
13160
hardcode_into_libs=yes
13162
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13163
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13164
shlibpath_overrides_runpath=no
13165
hardcode_into_libs=yes
13167
*) # from 4.6 on, and DragonFly
13168
shlibpath_overrides_runpath=yes
13169
hardcode_into_libs=yes
13178
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13179
soname_spec='${libname}${release}${shared_ext}$major'
13180
shlibpath_var=LD_LIBRARY_PATH
13181
hardcode_into_libs=yes
13184
hpux9* | hpux10* | hpux11*)
13185
# Give a soname corresponding to the major version so that dld.sl refuses to
13186
# link against other versions.
13193
hardcode_into_libs=yes
13194
dynamic_linker="$host_os dld.so"
13195
shlibpath_var=LD_LIBRARY_PATH
13196
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13197
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13198
soname_spec='${libname}${release}${shared_ext}$major'
13199
if test "X$HPUX_IA64_MODE" = X32; then
13200
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13202
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13204
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13208
hardcode_into_libs=yes
13209
dynamic_linker="$host_os dld.sl"
13210
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13211
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13212
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13213
soname_spec='${libname}${release}${shared_ext}$major'
13214
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13215
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13219
dynamic_linker="$host_os dld.sl"
13220
shlibpath_var=SHLIB_PATH
13221
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13222
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13223
soname_spec='${libname}${release}${shared_ext}$major'
13226
# HP-UX runs *really* slowly unless shared libraries are mode 555.
13227
postinstall_cmds='chmod 555 $lib'
13234
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13235
soname_spec='${libname}${release}${shared_ext}$major'
13236
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13237
shlibpath_var=LD_LIBRARY_PATH
13238
shlibpath_overrides_runpath=no
13239
hardcode_into_libs=yes
13242
irix5* | irix6* | nonstopux*)
13244
nonstopux*) version_type=nonstopux ;;
13246
if test "$lt_cv_prog_gnu_ld" = yes; then
13254
soname_spec='${libname}${release}${shared_ext}$major'
13255
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13257
irix5* | nonstopux*)
13258
libsuff= shlibsuff=
13261
case $LD in # libtool.m4 will add one of these switches to LD
13262
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13263
libsuff= shlibsuff= libmagic=32-bit;;
13264
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13265
libsuff=32 shlibsuff=N32 libmagic=N32;;
13266
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13267
libsuff=64 shlibsuff=64 libmagic=64-bit;;
13268
*) libsuff= shlibsuff= libmagic=never-match;;
13272
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13273
shlibpath_overrides_runpath=no
13274
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13275
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13276
hardcode_into_libs=yes
13279
# No shared lib support for Linux oldld, aout, or coff.
13280
linux*oldld* | linux*aout* | linux*coff*)
13284
# This must be Linux ELF.
13285
linux* | k*bsd*-gnu)
13289
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13290
soname_spec='${libname}${release}${shared_ext}$major'
13291
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13292
shlibpath_var=LD_LIBRARY_PATH
13293
shlibpath_overrides_runpath=no
13294
# This implies no fast_install, which is unacceptable.
13295
# Some rework will be needed to allow for fast_install
13296
# before this can be enabled.
13297
hardcode_into_libs=yes
13299
# Append ld.so.conf contents to the search path
13300
if test -f /etc/ld.so.conf; then
13301
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13302
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13305
# We used to test for /lib/ld.so.1 and disable shared libraries on
13306
# powerpc, because MkLinux only supported shared libraries with the
13307
# GNU dynamic linker. Since this was broken with cross compilers,
13308
# most powerpc-linux boxes support dynamic linking these days and
13309
# people can always --disable-shared, the test was removed, and we
13310
# assume the GNU/Linux dynamic linker is in use.
13311
dynamic_linker='GNU/Linux ld.so'
13318
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13319
soname_spec='${libname}${release}${shared_ext}$major'
13320
shlibpath_var=LD_LIBRARY_PATH
13321
shlibpath_overrides_runpath=no
13322
hardcode_into_libs=yes
13323
dynamic_linker='NetBSD ld.elf_so'
13330
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13331
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13332
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13333
dynamic_linker='NetBSD (a.out) ld.so'
13335
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13336
soname_spec='${libname}${release}${shared_ext}$major'
13337
dynamic_linker='NetBSD ld.elf_so'
13339
shlibpath_var=LD_LIBRARY_PATH
13340
shlibpath_overrides_runpath=yes
13341
hardcode_into_libs=yes
13346
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13347
shlibpath_var=LD_LIBRARY_PATH
13348
shlibpath_overrides_runpath=yes
13355
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13356
soname_spec='${libname}${release}${shared_ext}$major'
13357
shlibpath_var=LD_LIBRARY_PATH
13358
shlibpath_overrides_runpath=yes
13363
sys_lib_dlsearch_path_spec="/usr/lib"
13365
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13367
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13368
*) need_version=no ;;
13370
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13371
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13372
shlibpath_var=LD_LIBRARY_PATH
13373
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13375
openbsd2.[89] | openbsd2.[89].*)
13376
shlibpath_overrides_runpath=no
13379
shlibpath_overrides_runpath=yes
13383
shlibpath_overrides_runpath=yes
13388
libname_spec='$name'
13391
library_names_spec='$libname${shared_ext} $libname.a'
13392
dynamic_linker='OS/2 ld.exe'
13393
shlibpath_var=LIBPATH
13396
osf3* | osf4* | osf5*)
13400
soname_spec='${libname}${release}${shared_ext}$major'
13401
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13402
shlibpath_var=LD_LIBRARY_PATH
13403
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13404
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13415
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13416
soname_spec='${libname}${release}${shared_ext}$major'
13417
shlibpath_var=LD_LIBRARY_PATH
13418
shlibpath_overrides_runpath=yes
13419
hardcode_into_libs=yes
13420
# ldd complains unless libraries are executable
13421
postinstall_cmds='chmod +x $lib'
13426
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13427
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13428
shlibpath_var=LD_LIBRARY_PATH
13429
shlibpath_overrides_runpath=yes
13430
if test "$with_gnu_ld" = yes; then
13438
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13439
soname_spec='${libname}${release}${shared_ext}$major'
13440
shlibpath_var=LD_LIBRARY_PATH
13441
case $host_vendor in
13443
shlibpath_overrides_runpath=no
13445
export_dynamic_flag_spec='${wl}-Blargedynsym'
13446
runpath_var=LD_RUN_PATH
13454
shlibpath_overrides_runpath=no
13455
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13461
if test -d /usr/nec ;then
13463
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13464
soname_spec='$libname${shared_ext}.$major'
13465
shlibpath_var=LD_LIBRARY_PATH
13469
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13470
version_type=freebsd-elf
13473
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13474
soname_spec='${libname}${release}${shared_ext}$major'
13475
shlibpath_var=LD_LIBRARY_PATH
13476
hardcode_into_libs=yes
13477
if test "$with_gnu_ld" = yes; then
13478
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13479
shlibpath_overrides_runpath=no
13481
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13482
shlibpath_overrides_runpath=yes
13485
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13489
sys_lib_dlsearch_path_spec='/usr/lib'
13494
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13495
soname_spec='${libname}${release}${shared_ext}$major'
13496
shlibpath_var=LD_LIBRARY_PATH
13503
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13504
echo "${ECHO_T}$dynamic_linker" >&6; }
13505
test "$dynamic_linker" = no && can_build_shared=no
13507
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13508
echo $ECHO_N "(cached) $ECHO_C" >&6
13510
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13513
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13514
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13515
echo $ECHO_N "(cached) $ECHO_C" >&6
13517
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13520
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13522
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13523
if test "$GCC" = yes; then
13524
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13527
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13528
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13529
hardcode_action_CXX=
13530
if test -n "$hardcode_libdir_flag_spec_CXX" || \
13531
test -n "$runpath_var_CXX" || \
13532
test "X$hardcode_automatic_CXX" = "Xyes" ; then
13534
# We can hardcode non-existant directories.
13535
if test "$hardcode_direct_CXX" != no &&
13536
# If the only mechanism to avoid hardcoding is shlibpath_var, we
13537
# have to relink, otherwise we might link with an installed library
13538
# when we should be linking with a yet-to-be-installed one
13539
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13540
test "$hardcode_minus_L_CXX" != no; then
13541
# Linking always hardcodes the temporary library directory.
13542
hardcode_action_CXX=relink
13544
# We can link without hardcoding, and we can hardcode nonexisting dirs.
13545
hardcode_action_CXX=immediate
13548
# We cannot hardcode anything, or else we can only hardcode existing
13550
hardcode_action_CXX=unsupported
13552
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13553
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13555
if test "$hardcode_action_CXX" = relink; then
13556
# Fast installation is not supported
13557
enable_fast_install=no
13558
elif test "$shlibpath_overrides_runpath" = yes ||
13559
test "$enable_shared" = no; then
13560
# Fast installation is not necessary
13561
enable_fast_install=needless
13565
# The else clause should only fire when bootstrapping the
13566
# libtool distribution, otherwise you forgot to ship ltmain.sh
13567
# with your package, and you will get complaints that there are
13568
# no rules to generate ltmain.sh.
13569
if test -f "$ltmain"; then
13570
# See if we are running on zsh, and set the options which allow our commands through
13571
# without removal of \ escapes.
13572
if test -n "${ZSH_VERSION+set}" ; then
13573
setopt NO_GLOB_SUBST
13575
# Now quote all the things that may contain metacharacters while being
13576
# careful not to overquote the AC_SUBSTed values. We take copies of the
13577
# variables and quote the copies for generation of the libtool script.
13578
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13580
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13581
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13582
deplibs_check_method reload_flag reload_cmds need_locks \
13583
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13584
lt_cv_sys_global_symbol_to_c_name_address \
13585
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13586
old_postinstall_cmds old_postuninstall_cmds \
13590
lt_prog_compiler_wl_CXX \
13591
lt_prog_compiler_pic_CXX \
13592
lt_prog_compiler_static_CXX \
13593
lt_prog_compiler_no_builtin_flag_CXX \
13594
export_dynamic_flag_spec_CXX \
13595
thread_safe_flag_spec_CXX \
13596
whole_archive_flag_spec_CXX \
13597
enable_shared_with_static_runtimes_CXX \
13598
old_archive_cmds_CXX \
13599
old_archive_from_new_cmds_CXX \
13600
predep_objects_CXX \
13601
postdep_objects_CXX \
13604
compiler_lib_search_path_CXX \
13605
compiler_lib_search_dirs_CXX \
13607
archive_expsym_cmds_CXX \
13608
postinstall_cmds_CXX \
13609
postuninstall_cmds_CXX \
13610
old_archive_from_expsyms_cmds_CXX \
13611
allow_undefined_flag_CXX \
13612
no_undefined_flag_CXX \
13613
export_symbols_cmds_CXX \
13614
hardcode_libdir_flag_spec_CXX \
13615
hardcode_libdir_flag_spec_ld_CXX \
13616
hardcode_libdir_separator_CXX \
13617
hardcode_automatic_CXX \
13619
module_expsym_cmds_CXX \
13620
lt_cv_prog_compiler_c_o_CXX \
13621
fix_srcfile_path_CXX \
13622
exclude_expsyms_CXX \
13623
include_expsyms_CXX; do
13626
old_archive_cmds_CXX | \
13627
old_archive_from_new_cmds_CXX | \
13628
archive_cmds_CXX | \
13629
archive_expsym_cmds_CXX | \
13630
module_cmds_CXX | \
13631
module_expsym_cmds_CXX | \
13632
old_archive_from_expsyms_cmds_CXX | \
13633
export_symbols_cmds_CXX | \
13634
extract_expsyms_cmds | reload_cmds | finish_cmds | \
13635
postinstall_cmds | postuninstall_cmds | \
13636
old_postinstall_cmds | old_postuninstall_cmds | \
13637
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13638
# Double-quote double-evaled strings.
13639
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13642
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13648
*'\$0 --fallback-echo"')
13649
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13655
cat <<__EOF__ >> "$cfgfile"
13656
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13658
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13660
# Shell to use when invoking shell scripts.
13663
# Whether or not to build shared libraries.
13664
build_libtool_libs=$enable_shared
13666
# Whether or not to build static libraries.
13667
build_old_libs=$enable_static
13669
# Whether or not to add -lc for building shared libraries.
13670
build_libtool_need_lc=$archive_cmds_need_lc_CXX
13672
# Whether or not to disallow shared libs when runtime libs are static
13673
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13675
# Whether or not to optimize for fast installation.
13676
fast_install=$enable_fast_install
13679
host_alias=$host_alias
13683
# The build system.
13684
build_alias=$build_alias
13688
# An echo program that does not interpret backslashes.
13693
AR_FLAGS=$lt_AR_FLAGS
13698
# LTCC compiler flags.
13699
LTCFLAGS=$lt_LTCFLAGS
13701
# A language-specific compiler.
13702
CC=$lt_compiler_CXX
13704
# Is the compiler the GNU C compiler?
13710
# The linker used to build libraries.
13713
# Whether we need hard or soft links.
13716
# A BSD-compatible nm program.
13719
# A symbol stripping program
13722
# Used to examine libraries when file_magic_cmd begins "file"
13723
MAGIC_CMD=$MAGIC_CMD
13725
# Used on cygwin: DLL creation program.
13728
# Used on cygwin: object dumper.
13731
# Used on cygwin: assembler.
13734
# The name of the directory that contains temporary libtool files.
13737
# How to create reloadable object files.
13738
reload_flag=$lt_reload_flag
13739
reload_cmds=$lt_reload_cmds
13741
# How to pass a linker flag through the compiler.
13742
wl=$lt_lt_prog_compiler_wl_CXX
13744
# Object file suffix (normally "o").
13745
objext="$ac_objext"
13747
# Old archive suffix (normally "a").
13750
# Shared library suffix (normally ".so").
13751
shrext_cmds='$shrext_cmds'
13753
# Executable file suffix (normally "").
13756
# Additional compiler flags for building library objects.
13757
pic_flag=$lt_lt_prog_compiler_pic_CXX
13760
# What is the maximum length of a command?
13761
max_cmd_len=$lt_cv_sys_max_cmd_len
13763
# Does compiler simultaneously support -c and -o options?
13764
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13766
# Must we lock files when doing compilation?
13767
need_locks=$lt_need_locks
13769
# Do we need the lib prefix for modules?
13770
need_lib_prefix=$need_lib_prefix
13772
# Do we need a version for libraries?
13773
need_version=$need_version
13775
# Whether dlopen is supported.
13776
dlopen_support=$enable_dlopen
13778
# Whether dlopen of programs is supported.
13779
dlopen_self=$enable_dlopen_self
13781
# Whether dlopen of statically linked programs is supported.
13782
dlopen_self_static=$enable_dlopen_self_static
13784
# Compiler flag to prevent dynamic linking.
13785
link_static_flag=$lt_lt_prog_compiler_static_CXX
13787
# Compiler flag to turn off builtin functions.
13788
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13790
# Compiler flag to allow reflexive dlopens.
13791
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13793
# Compiler flag to generate shared objects directly from archives.
13794
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13796
# Compiler flag to generate thread-safe objects.
13797
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13799
# Library versioning type.
13800
version_type=$version_type
13802
# Format of library name prefix.
13803
libname_spec=$lt_libname_spec
13805
# List of archive names. First name is the real one, the rest are links.
13806
# The last name is the one that the linker finds with -lNAME.
13807
library_names_spec=$lt_library_names_spec
13809
# The coded name of the library, if different from the real name.
13810
soname_spec=$lt_soname_spec
13812
# Commands used to build and install an old-style archive.
13814
old_archive_cmds=$lt_old_archive_cmds_CXX
13815
old_postinstall_cmds=$lt_old_postinstall_cmds
13816
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13818
# Create an old-style archive from a shared archive.
13819
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13821
# Create a temporary old-style archive to link instead of a shared archive.
13822
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13824
# Commands used to build and install a shared archive.
13825
archive_cmds=$lt_archive_cmds_CXX
13826
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13827
postinstall_cmds=$lt_postinstall_cmds
13828
postuninstall_cmds=$lt_postuninstall_cmds
13830
# Commands used to build a loadable module (assumed same as above if empty)
13831
module_cmds=$lt_module_cmds_CXX
13832
module_expsym_cmds=$lt_module_expsym_cmds_CXX
13834
# Commands to strip libraries.
13835
old_striplib=$lt_old_striplib
13836
striplib=$lt_striplib
13838
# Dependencies to place before the objects being linked to create a
13840
predep_objects=$lt_predep_objects_CXX
13842
# Dependencies to place after the objects being linked to create a
13844
postdep_objects=$lt_postdep_objects_CXX
13846
# Dependencies to place before the objects being linked to create a
13848
predeps=$lt_predeps_CXX
13850
# Dependencies to place after the objects being linked to create a
13852
postdeps=$lt_postdeps_CXX
13854
# The directories searched by this compiler when creating a shared
13856
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13858
# The library search path used internally by the compiler when linking
13859
# a shared library.
13860
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13862
# Method to check whether dependent libraries are shared objects.
13863
deplibs_check_method=$lt_deplibs_check_method
13865
# Command to use when deplibs_check_method == file_magic.
13866
file_magic_cmd=$lt_file_magic_cmd
13868
# Flag that allows shared libraries with undefined symbols to be built.
13869
allow_undefined_flag=$lt_allow_undefined_flag_CXX
13871
# Flag that forces no undefined symbols.
13872
no_undefined_flag=$lt_no_undefined_flag_CXX
13874
# Commands used to finish a libtool library installation in a directory.
13875
finish_cmds=$lt_finish_cmds
13877
# Same as above, but a single script fragment to be evaled but not shown.
13878
finish_eval=$lt_finish_eval
13880
# Take the output of nm and produce a listing of raw symbols and C names.
13881
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13883
# Transform the output of nm in a proper C declaration
13884
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13886
# Transform the output of nm in a C name address pair
13887
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13889
# This is the shared library runtime path variable.
13890
runpath_var=$runpath_var
13892
# This is the shared library path variable.
13893
shlibpath_var=$shlibpath_var
13895
# Is shlibpath searched before the hard-coded library search path?
13896
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13898
# How to hardcode a shared library path into an executable.
13899
hardcode_action=$hardcode_action_CXX
13901
# Whether we should hardcode library paths into libraries.
13902
hardcode_into_libs=$hardcode_into_libs
13904
# Flag to hardcode \$libdir into a binary during linking.
13905
# This must work even if \$libdir does not exist.
13906
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13908
# If ld is used when linking, flag to hardcode \$libdir into
13909
# a binary during linking. This must work even if \$libdir does
13911
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13913
# Whether we need a single -rpath flag with a separated argument.
13914
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13916
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13917
# resulting binary.
13918
hardcode_direct=$hardcode_direct_CXX
13920
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13921
# resulting binary.
13922
hardcode_minus_L=$hardcode_minus_L_CXX
13924
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13925
# the resulting binary.
13926
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13928
# Set to yes if building a shared library automatically hardcodes DIR into the library
13929
# and all subsequent libraries and executables linked against it.
13930
hardcode_automatic=$hardcode_automatic_CXX
13932
# Variables whose values should be saved in libtool wrapper scripts and
13933
# restored at relink time.
13934
variables_saved_for_relink="$variables_saved_for_relink"
13936
# Whether libtool must link a program against all its dependency libraries.
13937
link_all_deplibs=$link_all_deplibs_CXX
13939
# Compile-time system search path for libraries
13940
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13942
# Run-time system search path for libraries
13943
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13945
# Fix the shell variable \$srcfile for the compiler.
13946
fix_srcfile_path=$lt_fix_srcfile_path
13948
# Set to yes if exported symbols are required.
13949
always_export_symbols=$always_export_symbols_CXX
13951
# The commands to list exported symbols.
13952
export_symbols_cmds=$lt_export_symbols_cmds_CXX
13954
# The commands to extract the exported symbol list from a shared archive.
13955
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13957
# Symbols that should not be listed in the preloaded symbols.
13958
exclude_expsyms=$lt_exclude_expsyms_CXX
13960
# Symbols that must always be exported.
13961
include_expsyms=$lt_include_expsyms_CXX
13963
# ### END LIBTOOL TAG CONFIG: $tagname
13969
# If there is no Makefile yet, we rely on a make rule to execute
13970
# `config.status --recheck' to rerun these tests and create the
13971
# libtool script then.
13972
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13973
if test -f "$ltmain_in"; then
13974
test -f Makefile && make "$ltmain"
13980
ac_cpp='$CPP $CPPFLAGS'
13981
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13982
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13983
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13989
with_gnu_ldcxx=$with_gnu_ld
13990
with_gnu_ld=$lt_save_with_gnu_ld
13991
lt_cv_path_LDCXX=$lt_cv_path_LD
13992
lt_cv_path_LD=$lt_save_path_LD
13993
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13994
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14002
if test -n "$F77" && test "X$F77" != "Xno"; then
14005
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14006
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14007
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14010
archive_cmds_need_lc_F77=no
14011
allow_undefined_flag_F77=
14012
always_export_symbols_F77=no
14013
archive_expsym_cmds_F77=
14014
export_dynamic_flag_spec_F77=
14015
hardcode_direct_F77=no
14016
hardcode_libdir_flag_spec_F77=
14017
hardcode_libdir_flag_spec_ld_F77=
14018
hardcode_libdir_separator_F77=
14019
hardcode_minus_L_F77=no
14020
hardcode_automatic_F77=no
14022
module_expsym_cmds_F77=
14023
link_all_deplibs_F77=unknown
14024
old_archive_cmds_F77=$old_archive_cmds
14025
no_undefined_flag_F77=
14026
whole_archive_flag_spec_F77=
14027
enable_shared_with_static_runtimes_F77=no
14029
# Source file extension for f77 test sources.
14032
# Object file extension for compiled f77 test sources.
14036
# Code to be used in simple compile tests
14037
lt_simple_compile_test_code="\
14043
# Code to be used in simple link tests
14044
lt_simple_link_test_code="\
14049
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14051
# If no C compiler was specified, use CC.
14054
# If no C compiler flags were specified, use CFLAGS.
14055
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14057
# Allow CC to be a program name with arguments.
14061
# save warnings/boilerplate of simple test code
14062
ac_outfile=conftest.$ac_objext
14063
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14064
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14065
_lt_compiler_boilerplate=`cat conftest.err`
14068
ac_outfile=conftest.$ac_objext
14069
echo "$lt_simple_link_test_code" >conftest.$ac_ext
14070
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14071
_lt_linker_boilerplate=`cat conftest.err`
14075
# Allow CC to be a program name with arguments.
14080
for cc_temp in $compiler""; do
14082
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14083
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14088
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14091
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14092
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14093
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14094
echo "${ECHO_T}$can_build_shared" >&6; }
14096
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14097
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14098
test "$can_build_shared" = "no" && enable_shared=no
14100
# On AIX, shared libraries and static libraries use the same namespace, and
14101
# are all built from PIC.
14104
test "$enable_shared" = yes && enable_static=no
14105
if test -n "$RANLIB"; then
14106
archive_cmds="$archive_cmds~\$RANLIB \$lib"
14107
postinstall_cmds='$RANLIB $lib'
14111
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14112
test "$enable_shared" = yes && enable_static=no
14116
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14117
echo "${ECHO_T}$enable_shared" >&6; }
14119
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14120
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14121
# Make sure either enable_shared or enable_static is yes.
14122
test "$enable_shared" = yes || enable_static=yes
14123
{ echo "$as_me:$LINENO: result: $enable_static" >&5
14124
echo "${ECHO_T}$enable_static" >&6; }
14129
lt_prog_compiler_wl_F77=
14130
lt_prog_compiler_pic_F77=
14131
lt_prog_compiler_static_F77=
14133
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14134
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14136
if test "$GCC" = yes; then
14137
lt_prog_compiler_wl_F77='-Wl,'
14138
lt_prog_compiler_static_F77='-static'
14142
# All AIX code is PIC.
14143
if test "$host_cpu" = ia64; then
14144
# AIX 5 now supports IA64 processor
14145
lt_prog_compiler_static_F77='-Bstatic'
14150
# FIXME: we need at least 68020 code to build shared libraries, but
14151
# adding the `-m68020' flag to GCC prevents building anything better,
14153
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14156
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14157
# PIC is the default for these OSes.
14160
mingw* | cygwin* | pw32* | os2*)
14161
# This hack is so that the source file can tell whether it is being
14162
# built for inclusion in a dll (and should export symbols for example).
14163
# Although the cygwin gcc ignores -fPIC, still need this for old-style
14164
# (--disable-auto-import) libraries
14165
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14168
darwin* | rhapsody*)
14169
# PIC is the default on this platform
14170
# Common symbols not allowed in MH_DYLIB files
14171
lt_prog_compiler_pic_F77='-fno-common'
14175
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
14176
# Instead, we relocate shared libraries at runtime.
14180
# Just because we use GCC doesn't mean we suddenly get shared libraries
14181
# on systems that don't support them.
14182
lt_prog_compiler_can_build_shared_F77=no
14187
if test -d /usr/nec; then
14188
lt_prog_compiler_pic_F77=-Kconform_pic
14193
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14194
# not for PA HP-UX.
14200
lt_prog_compiler_pic_F77='-fPIC'
14206
lt_prog_compiler_pic_F77='-fPIC'
14210
# PORTME Check for flag to pass linker flags through the system compiler.
14213
lt_prog_compiler_wl_F77='-Wl,'
14214
if test "$host_cpu" = ia64; then
14215
# AIX 5 now supports IA64 processor
14216
lt_prog_compiler_static_F77='-Bstatic'
14218
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14222
# PIC is the default on this platform
14223
# Common symbols not allowed in MH_DYLIB files
14224
case $cc_basename in
14226
lt_prog_compiler_pic_F77='-qnocommon'
14227
lt_prog_compiler_wl_F77='-Wl,'
14232
mingw* | cygwin* | pw32* | os2*)
14233
# This hack is so that the source file can tell whether it is being
14234
# built for inclusion in a dll (and should export symbols for example).
14235
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14238
hpux9* | hpux10* | hpux11*)
14239
lt_prog_compiler_wl_F77='-Wl,'
14240
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14241
# not for PA HP-UX.
14247
lt_prog_compiler_pic_F77='+Z'
14250
# Is there a better lt_prog_compiler_static that works with the bundled CC?
14251
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14254
irix5* | irix6* | nonstopux*)
14255
lt_prog_compiler_wl_F77='-Wl,'
14256
# PIC (with -KPIC) is the default.
14257
lt_prog_compiler_static_F77='-non_shared'
14261
lt_prog_compiler_pic_F77='-KPIC'
14262
lt_prog_compiler_static_F77='-Bstatic'
14265
linux* | k*bsd*-gnu)
14266
case $cc_basename in
14268
lt_prog_compiler_wl_F77='-Wl,'
14269
lt_prog_compiler_pic_F77='-KPIC'
14270
lt_prog_compiler_static_F77='-static'
14272
pgcc* | pgf77* | pgf90* | pgf95*)
14273
# Portland Group compilers (*not* the Pentium gcc compiler,
14274
# which looks to be a dead project)
14275
lt_prog_compiler_wl_F77='-Wl,'
14276
lt_prog_compiler_pic_F77='-fpic'
14277
lt_prog_compiler_static_F77='-Bstatic'
14280
lt_prog_compiler_wl_F77='-Wl,'
14281
# All Alpha code is PIC.
14282
lt_prog_compiler_static_F77='-non_shared'
14285
case `$CC -V 2>&1 | sed 5q` in
14288
lt_prog_compiler_pic_F77='-KPIC'
14289
lt_prog_compiler_static_F77='-Bstatic'
14290
lt_prog_compiler_wl_F77='-Wl,'
14293
# Sun Fortran 8.3 passes all unrecognized flags to the linker
14294
lt_prog_compiler_pic_F77='-KPIC'
14295
lt_prog_compiler_static_F77='-Bstatic'
14296
lt_prog_compiler_wl_F77=''
14303
osf3* | osf4* | osf5*)
14304
lt_prog_compiler_wl_F77='-Wl,'
14305
# All OSF/1 code is PIC.
14306
lt_prog_compiler_static_F77='-non_shared'
14310
lt_prog_compiler_static_F77='-non_shared'
14314
lt_prog_compiler_pic_F77='-KPIC'
14315
lt_prog_compiler_static_F77='-Bstatic'
14316
case $cc_basename in
14317
f77* | f90* | f95*)
14318
lt_prog_compiler_wl_F77='-Qoption ld ';;
14320
lt_prog_compiler_wl_F77='-Wl,';;
14325
lt_prog_compiler_wl_F77='-Qoption ld '
14326
lt_prog_compiler_pic_F77='-PIC'
14327
lt_prog_compiler_static_F77='-Bstatic'
14330
sysv4 | sysv4.2uw2* | sysv4.3*)
14331
lt_prog_compiler_wl_F77='-Wl,'
14332
lt_prog_compiler_pic_F77='-KPIC'
14333
lt_prog_compiler_static_F77='-Bstatic'
14337
if test -d /usr/nec ;then
14338
lt_prog_compiler_pic_F77='-Kconform_pic'
14339
lt_prog_compiler_static_F77='-Bstatic'
14343
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14344
lt_prog_compiler_wl_F77='-Wl,'
14345
lt_prog_compiler_pic_F77='-KPIC'
14346
lt_prog_compiler_static_F77='-Bstatic'
14350
lt_prog_compiler_wl_F77='-Wl,'
14351
lt_prog_compiler_can_build_shared_F77=no
14355
lt_prog_compiler_pic_F77='-pic'
14356
lt_prog_compiler_static_F77='-Bstatic'
14360
lt_prog_compiler_can_build_shared_F77=no
14365
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14366
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14369
# Check to make sure the PIC flag actually works.
14371
if test -n "$lt_prog_compiler_pic_F77"; then
14373
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14374
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14375
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14376
echo $ECHO_N "(cached) $ECHO_C" >&6
14378
lt_cv_prog_compiler_pic_works_F77=no
14379
ac_outfile=conftest.$ac_objext
14380
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14381
lt_compiler_flag="$lt_prog_compiler_pic_F77"
14382
# Insert the option either (1) after the last *FLAGS variable, or
14383
# (2) before a word containing "conftest.", or (3) at the end.
14384
# Note that $ac_compile itself does not contain backslashes and begins
14385
# with a dollar sign (not a hyphen), so the echo should work correctly.
14386
# The option is referenced via a variable to avoid confusing sed.
14387
lt_compile=`echo "$ac_compile" | $SED \
14388
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14389
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14390
-e 's:$: $lt_compiler_flag:'`
14391
(eval echo "\"\$as_me:14391: $lt_compile\"" >&5)
14392
(eval "$lt_compile" 2>conftest.err)
14394
cat conftest.err >&5
14395
echo "$as_me:14395: \$? = $ac_status" >&5
14396
if (exit $ac_status) && test -s "$ac_outfile"; then
14397
# The compiler can only warn and ignore the option if not recognized
14398
# So say no if there are warnings other than the usual output.
14399
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14400
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14401
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14402
lt_cv_prog_compiler_pic_works_F77=yes
14408
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14409
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14411
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14412
case $lt_prog_compiler_pic_F77 in
14414
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14417
lt_prog_compiler_pic_F77=
14418
lt_prog_compiler_can_build_shared_F77=no
14423
# For platforms which do not support PIC, -DPIC is meaningless:
14425
lt_prog_compiler_pic_F77=
14428
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14433
# Check to make sure the static flag actually works.
14435
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14436
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14437
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14438
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14439
echo $ECHO_N "(cached) $ECHO_C" >&6
14441
lt_cv_prog_compiler_static_works_F77=no
14442
save_LDFLAGS="$LDFLAGS"
14443
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14444
echo "$lt_simple_link_test_code" > conftest.$ac_ext
14445
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14446
# The linker can only warn and ignore the option if not recognized
14447
# So say no if there are warnings
14448
if test -s conftest.err; then
14449
# Append any errors to the config.log.
14450
cat conftest.err 1>&5
14451
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14452
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14453
if diff conftest.exp conftest.er2 >/dev/null; then
14454
lt_cv_prog_compiler_static_works_F77=yes
14457
lt_cv_prog_compiler_static_works_F77=yes
14461
LDFLAGS="$save_LDFLAGS"
14464
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14465
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14467
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14470
lt_prog_compiler_static_F77=
14474
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14475
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14476
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14477
echo $ECHO_N "(cached) $ECHO_C" >&6
14479
lt_cv_prog_compiler_c_o_F77=no
14480
$rm -r conftest 2>/dev/null
14484
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14486
lt_compiler_flag="-o out/conftest2.$ac_objext"
14487
# Insert the option either (1) after the last *FLAGS variable, or
14488
# (2) before a word containing "conftest.", or (3) at the end.
14489
# Note that $ac_compile itself does not contain backslashes and begins
14490
# with a dollar sign (not a hyphen), so the echo should work correctly.
14491
lt_compile=`echo "$ac_compile" | $SED \
14492
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14493
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14494
-e 's:$: $lt_compiler_flag:'`
14495
(eval echo "\"\$as_me:14495: $lt_compile\"" >&5)
14496
(eval "$lt_compile" 2>out/conftest.err)
14498
cat out/conftest.err >&5
14499
echo "$as_me:14499: \$? = $ac_status" >&5
14500
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14502
# The compiler can only warn and ignore the option if not recognized
14503
# So say no if there are warnings
14504
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14505
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14506
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14507
lt_cv_prog_compiler_c_o_F77=yes
14512
# SGI C++ compiler will create directory out/ii_files/ for
14513
# template instantiation
14514
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14515
$rm out/* && rmdir out
14521
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14522
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14525
hard_links="nottested"
14526
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14527
# do not overwrite the value of need_locks provided by the user
14528
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14529
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14532
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14534
ln conftest.a conftest.b 2>&5 || hard_links=no
14535
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14536
{ echo "$as_me:$LINENO: result: $hard_links" >&5
14537
echo "${ECHO_T}$hard_links" >&6; }
14538
if test "$hard_links" = no; then
14539
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14540
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14547
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14548
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14551
allow_undefined_flag_F77=
14552
enable_shared_with_static_runtimes_F77=no
14554
archive_expsym_cmds_F77=
14555
old_archive_From_new_cmds_F77=
14556
old_archive_from_expsyms_cmds_F77=
14557
export_dynamic_flag_spec_F77=
14558
whole_archive_flag_spec_F77=
14559
thread_safe_flag_spec_F77=
14560
hardcode_libdir_flag_spec_F77=
14561
hardcode_libdir_flag_spec_ld_F77=
14562
hardcode_libdir_separator_F77=
14563
hardcode_direct_F77=no
14564
hardcode_minus_L_F77=no
14565
hardcode_shlibpath_var_F77=unsupported
14566
link_all_deplibs_F77=unknown
14567
hardcode_automatic_F77=no
14569
module_expsym_cmds_F77=
14570
always_export_symbols_F77=no
14571
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14572
# include_expsyms should be a list of space-separated symbols to be *always*
14573
# included in the symbol list
14574
include_expsyms_F77=
14575
# exclude_expsyms can be an extended regexp of symbols to exclude
14576
# it will be wrapped by ` (' and `)$', so one must not match beginning or
14577
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14578
# as well as any symbol that contains `d'.
14579
exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14580
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14581
# platforms (ab)use it in PIC code, but their linkers get confused if
14582
# the symbol is explicitly referenced. Since portable code cannot
14583
# rely on this symbol name, it's probably fine to never include it in
14584
# preloaded symbol tables.
14585
# Exclude shared library initialization/finalization symbols.
14586
extract_expsyms_cmds=
14587
# Just being paranoid about ensuring that cc_basename is set.
14588
for cc_temp in $compiler""; do
14590
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14591
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14596
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14599
cygwin* | mingw* | pw32*)
14600
# FIXME: the MSVC++ port hasn't been tested in a loooong time
14601
# When not using gcc, we currently assume that we are using
14602
# Microsoft Visual C++.
14603
if test "$GCC" != yes; then
14608
# we just hope/assume this is gcc and not c89 (= MSVC++)
14617
if test "$with_gnu_ld" = yes; then
14618
# If archive_cmds runs LD, not CC, wlarc should be empty
14621
# Set some defaults for GNU ld with shared library support. These
14622
# are reset later if shared libraries are not supported. Putting them
14623
# here allows them to be overridden if necessary.
14624
runpath_var=LD_RUN_PATH
14625
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14626
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14627
# ancient GNU ld didn't support --whole-archive et. al.
14628
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14629
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14631
whole_archive_flag_spec_F77=
14633
supports_anon_versioning=no
14634
case `$LD -v 2>/dev/null` in
14635
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14636
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14637
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14638
*\ 2.11.*) ;; # other 2.11 versions
14639
*) supports_anon_versioning=yes ;;
14642
# See if GNU ld supports shared libraries.
14645
# On AIX/PPC, the GNU linker is very broken
14646
if test "$host_cpu" != ia64; then
14650
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14651
*** to be unable to reliably create shared libraries on AIX.
14652
*** Therefore, libtool is disabling shared libraries support. If you
14653
*** really care for shared libraries, you may want to modify your PATH
14654
*** so that a non-GNU linker is found, and then restart.
14661
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)'
14662
hardcode_libdir_flag_spec_F77='-L$libdir'
14663
hardcode_minus_L_F77=yes
14665
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14666
# that the semantics of dynamic libraries on AmigaOS, at least up
14667
# to version 4, is to share data among multiple programs linked
14668
# with the same dynamic library. Since this doesn't match the
14669
# behavior of shared libraries on other platforms, we can't use
14675
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14676
allow_undefined_flag_F77=unsupported
14677
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14678
# support --undefined. This deserves some investigation. FIXME
14679
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14685
cygwin* | mingw* | pw32*)
14686
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14687
# as there is no search path for DLLs.
14688
hardcode_libdir_flag_spec_F77='-L$libdir'
14689
allow_undefined_flag_F77=unsupported
14690
always_export_symbols_F77=no
14691
enable_shared_with_static_runtimes_F77=yes
14692
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14694
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14695
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14696
# If the export-symbols file already is a .def file (1st line
14697
# is EXPORTS), use it as is; otherwise, prepend...
14698
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14699
cp $export_symbols $output_objdir/$soname.def;
14701
echo EXPORTS > $output_objdir/$soname.def;
14702
cat $export_symbols >> $output_objdir/$soname.def;
14704
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14711
hardcode_direct_F77=no
14712
hardcode_shlibpath_var_F77=no
14713
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14714
export_dynamic_flag_spec_F77='${wl}-E'
14715
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14716
# Instead, shared libraries are loaded at an image base (0x10000000 by
14717
# default) and relocated if they conflict, which is a slow very memory
14718
# consuming and fragmenting process. To avoid this, we pick a random,
14719
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14720
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
14721
archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14722
archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14725
gnu* | linux* | k*bsd*-gnu)
14726
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14728
case $cc_basename,$host_cpu in
14729
pgcc*) # Portland Group C compiler
14730
whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14731
tmp_addflag=' $pic_flag'
14733
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14734
whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14735
tmp_addflag=' $pic_flag -Mnomain' ;;
14736
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14737
tmp_addflag=' -i_dynamic' ;;
14738
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14739
tmp_addflag=' -i_dynamic -nofor_main' ;;
14740
ifc* | ifort*) # Intel Fortran compiler
14741
tmp_addflag=' -nofor_main' ;;
14743
case `$CC -V 2>&1 | sed 5q` in
14744
*Sun\ C*) # Sun C 5.9
14745
whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14746
tmp_sharedflag='-G' ;;
14747
*Sun\ F*) # Sun Fortran 8.3
14748
tmp_sharedflag='-G' ;;
14750
tmp_sharedflag='-shared' ;;
14752
archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14754
if test $supports_anon_versioning = yes; then
14755
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14756
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14757
$echo "local: *; };" >> $output_objdir/$libname.ver~
14758
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14760
link_all_deplibs_F77=no
14766
netbsd* | netbsdelf*-gnu)
14767
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14768
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14771
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14772
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14777
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14781
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14782
*** create shared libraries on Solaris systems. Therefore, libtool
14783
*** is disabling shared libraries support. We urge you to upgrade GNU
14784
*** binutils to release 2.9.1 or newer. Another option is to modify
14785
*** your PATH or compiler configuration so that the native linker is
14786
*** used, and then restart.
14789
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14790
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14791
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14797
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14798
case `$LD -v 2>&1` in
14799
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14803
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14804
*** reliably create shared libraries on SCO systems. Therefore, libtool
14805
*** is disabling shared libraries support. We urge you to upgrade GNU
14806
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14807
*** your PATH or compiler configuration so that the native linker is
14808
*** used, and then restart.
14813
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14814
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14815
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14816
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14825
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14827
hardcode_direct_F77=yes
14828
hardcode_shlibpath_var_F77=no
14832
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14833
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14834
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14841
if test "$ld_shlibs_F77" = no; then
14843
hardcode_libdir_flag_spec_F77=
14844
export_dynamic_flag_spec_F77=
14845
whole_archive_flag_spec_F77=
14848
# PORTME fill in a description of your system's linker (not GNU ld)
14851
allow_undefined_flag_F77=unsupported
14852
always_export_symbols_F77=yes
14853
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'
14854
# Note: this linker hardcodes the directories in LIBPATH if there
14855
# are no directories specified by -L.
14856
hardcode_minus_L_F77=yes
14857
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14858
# Neither direct hardcoding nor static linking is supported with a
14860
hardcode_direct_F77=unsupported
14865
if test "$host_cpu" = ia64; then
14866
# On IA64, the linker does run time linking by default, so we don't
14867
# have to do anything special.
14868
aix_use_runtimelinking=no
14869
exp_sym_flag='-Bexport'
14872
# If we're using GNU nm, then we don't want the "-C" option.
14873
# -C means demangle to AIX nm, but means don't demangle with GNU nm
14874
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14875
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'
14877
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'
14879
aix_use_runtimelinking=no
14881
# Test if we are trying to use run time linking or normal
14882
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14883
# need to do runtime linking.
14884
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14885
for ld_flag in $LDFLAGS; do
14886
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14887
aix_use_runtimelinking=yes
14894
exp_sym_flag='-bexport'
14895
no_entry_flag='-bnoentry'
14898
# When large executables or shared objects are built, AIX ld can
14899
# have problems creating the table of contents. If linking a library
14900
# or program results in "error TOC overflow" add -mminimal-toc to
14901
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14902
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14904
archive_cmds_F77=''
14905
hardcode_direct_F77=yes
14906
hardcode_libdir_separator_F77=':'
14907
link_all_deplibs_F77=yes
14909
if test "$GCC" = yes; then
14910
case $host_os in aix4.[012]|aix4.[012].*)
14911
# We only want to do this on AIX 4.2 and lower, the check
14912
# below for broken collect2 doesn't work under 4.3+
14913
collect2name=`${CC} -print-prog-name=collect2`
14914
if test -f "$collect2name" && \
14915
strings "$collect2name" | grep resolve_lib_name >/dev/null
14917
# We have reworked collect2
14920
# We have old collect2
14921
hardcode_direct_F77=unsupported
14922
# It fails to find uninstalled libraries when the uninstalled
14923
# path is not listed in the libpath. Setting hardcode_minus_L
14924
# to unsupported forces relinking
14925
hardcode_minus_L_F77=yes
14926
hardcode_libdir_flag_spec_F77='-L$libdir'
14927
hardcode_libdir_separator_F77=
14931
shared_flag='-shared'
14932
if test "$aix_use_runtimelinking" = yes; then
14933
shared_flag="$shared_flag "'${wl}-G'
14937
if test "$host_cpu" = ia64; then
14938
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14939
# chokes on -Wl,-G. The following line is correct:
14942
if test "$aix_use_runtimelinking" = yes; then
14943
shared_flag='${wl}-G'
14945
shared_flag='${wl}-bM:SRE'
14950
# It seems that -bexpall does not export symbols beginning with
14951
# underscore (_), so it is better to generate a list of symbols to export.
14952
always_export_symbols_F77=yes
14953
if test "$aix_use_runtimelinking" = yes; then
14954
# Warning - without using the other runtime loading flags (-brtl),
14955
# -berok will link without error, but may produce a broken library.
14956
allow_undefined_flag_F77='-berok'
14957
# Determine the default libpath from the value encoded in an empty executable.
14958
cat >conftest.$ac_ext <<_ACEOF
14963
rm -f conftest.$ac_objext conftest$ac_exeext
14964
if { (ac_try="$ac_link"
14965
case "(($ac_try" in
14966
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14967
*) ac_try_echo=$ac_try;;
14969
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14970
(eval "$ac_link") 2>conftest.er1
14972
grep -v '^ *+' conftest.er1 >conftest.err
14974
cat conftest.err >&5
14975
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14976
(exit $ac_status); } && {
14977
test -z "$ac_f77_werror_flag" ||
14978
test ! -s conftest.err
14979
} && test -s conftest$ac_exeext &&
14980
$as_test_x conftest$ac_exeext; then
14982
lt_aix_libpath_sed='
14983
/Import File Strings/,/^$/ {
14989
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14990
# Check for a 64-bit object if we didn't find anything.
14991
if test -z "$aix_libpath"; then
14992
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14995
echo "$as_me: failed program was:" >&5
14996
sed 's/^/| /' conftest.$ac_ext >&5
15001
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15002
conftest$ac_exeext conftest.$ac_ext
15003
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15005
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15006
archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15008
if test "$host_cpu" = ia64; then
15009
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15010
allow_undefined_flag_F77="-z nodefs"
15011
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
15013
# Determine the default libpath from the value encoded in an empty executable.
15014
cat >conftest.$ac_ext <<_ACEOF
15019
rm -f conftest.$ac_objext conftest$ac_exeext
15020
if { (ac_try="$ac_link"
15021
case "(($ac_try" in
15022
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15023
*) ac_try_echo=$ac_try;;
15025
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15026
(eval "$ac_link") 2>conftest.er1
15028
grep -v '^ *+' conftest.er1 >conftest.err
15030
cat conftest.err >&5
15031
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032
(exit $ac_status); } && {
15033
test -z "$ac_f77_werror_flag" ||
15034
test ! -s conftest.err
15035
} && test -s conftest$ac_exeext &&
15036
$as_test_x conftest$ac_exeext; then
15038
lt_aix_libpath_sed='
15039
/Import File Strings/,/^$/ {
15045
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15046
# Check for a 64-bit object if we didn't find anything.
15047
if test -z "$aix_libpath"; then
15048
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15051
echo "$as_me: failed program was:" >&5
15052
sed 's/^/| /' conftest.$ac_ext >&5
15057
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15058
conftest$ac_exeext conftest.$ac_ext
15059
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15061
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15062
# Warning - without using the other run time loading flags,
15063
# -berok will link without error, but may produce a broken library.
15064
no_undefined_flag_F77=' ${wl}-bernotok'
15065
allow_undefined_flag_F77=' ${wl}-berok'
15066
# Exported symbols can be pulled into shared objects from archives
15067
whole_archive_flag_spec_F77='$convenience'
15068
archive_cmds_need_lc_F77=yes
15069
# This is similar to how AIX traditionally builds its shared libraries.
15070
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15076
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)'
15077
hardcode_libdir_flag_spec_F77='-L$libdir'
15078
hardcode_minus_L_F77=yes
15079
# see comment about different semantics on the GNU ld section
15084
export_dynamic_flag_spec_F77=-rdynamic
15087
cygwin* | mingw* | pw32*)
15088
# When not using gcc, we currently assume that we are using
15089
# Microsoft Visual C++.
15090
# hardcode_libdir_flag_spec is actually meaningless, as there is
15091
# no search path for DLLs.
15092
hardcode_libdir_flag_spec_F77=' '
15093
allow_undefined_flag_F77=unsupported
15094
# Tell ltmain to make .lib files, not .a files.
15096
# Tell ltmain to make .dll files, not .so files.
15098
# FIXME: Setting linknames here is a bad hack.
15099
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15100
# The linker will automatically build a .lib file if we build a DLL.
15101
old_archive_From_new_cmds_F77='true'
15102
# FIXME: Should let the user specify the lib program.
15103
old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15104
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15105
enable_shared_with_static_runtimes_F77=yes
15108
darwin* | rhapsody*)
15110
rhapsody* | darwin1.[012])
15111
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15114
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15115
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15117
case ${MACOSX_DEPLOYMENT_TARGET} in
15119
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15122
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15128
archive_cmds_need_lc_F77=no
15129
hardcode_direct_F77=no
15130
hardcode_automatic_F77=yes
15131
hardcode_shlibpath_var_F77=unsupported
15132
whole_archive_flag_spec_F77=''
15133
link_all_deplibs_F77=yes
15134
if test "$GCC" = yes ; then
15135
output_verbose_link_cmd='echo'
15136
archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15137
module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15138
archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15139
module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15141
case $cc_basename in
15143
output_verbose_link_cmd='echo'
15144
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15145
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15146
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15147
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15148
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}'
15158
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15159
hardcode_libdir_flag_spec_F77='-L$libdir'
15160
hardcode_shlibpath_var_F77=no
15167
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15168
# support. Future versions do this automatically, but an explicit c++rt0.o
15169
# does not break anything, and helps significantly (at the cost of a little
15172
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15173
hardcode_libdir_flag_spec_F77='-R$libdir'
15174
hardcode_direct_F77=yes
15175
hardcode_shlibpath_var_F77=no
15178
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
15180
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15181
hardcode_direct_F77=yes
15182
hardcode_minus_L_F77=yes
15183
hardcode_shlibpath_var_F77=no
15186
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15187
freebsd* | dragonfly*)
15188
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15189
hardcode_libdir_flag_spec_F77='-R$libdir'
15190
hardcode_direct_F77=yes
15191
hardcode_shlibpath_var_F77=no
15195
if test "$GCC" = yes; then
15196
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'
15198
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'
15200
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15201
hardcode_libdir_separator_F77=:
15202
hardcode_direct_F77=yes
15204
# hardcode_minus_L: Not really in the search PATH,
15205
# but as the default location of the library.
15206
hardcode_minus_L_F77=yes
15207
export_dynamic_flag_spec_F77='${wl}-E'
15211
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15212
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15214
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15216
if test "$with_gnu_ld" = no; then
15217
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15218
hardcode_libdir_separator_F77=:
15220
hardcode_direct_F77=yes
15221
export_dynamic_flag_spec_F77='${wl}-E'
15223
# hardcode_minus_L: Not really in the search PATH,
15224
# but as the default location of the library.
15225
hardcode_minus_L_F77=yes
15230
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15233
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15236
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15239
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15245
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15248
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15251
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15255
if test "$with_gnu_ld" = no; then
15256
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15257
hardcode_libdir_separator_F77=:
15261
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15262
hardcode_direct_F77=no
15263
hardcode_shlibpath_var_F77=no
15266
hardcode_direct_F77=yes
15267
export_dynamic_flag_spec_F77='${wl}-E'
15269
# hardcode_minus_L: Not really in the search PATH,
15270
# but as the default location of the library.
15271
hardcode_minus_L_F77=yes
15277
irix5* | irix6* | nonstopux*)
15278
if test "$GCC" = yes; then
15279
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'
15281
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'
15282
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15284
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15285
hardcode_libdir_separator_F77=:
15286
link_all_deplibs_F77=yes
15289
netbsd* | netbsdelf*-gnu)
15290
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15291
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15293
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15295
hardcode_libdir_flag_spec_F77='-R$libdir'
15296
hardcode_direct_F77=yes
15297
hardcode_shlibpath_var_F77=no
15301
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15302
hardcode_direct_F77=yes
15303
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15304
hardcode_libdir_separator_F77=:
15305
hardcode_shlibpath_var_F77=no
15309
if test -f /usr/libexec/ld.so; then
15310
hardcode_direct_F77=yes
15311
hardcode_shlibpath_var_F77=no
15312
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15313
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15314
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15315
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15316
export_dynamic_flag_spec_F77='${wl}-E'
15319
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15320
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15321
hardcode_libdir_flag_spec_F77='-R$libdir'
15324
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15325
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15335
hardcode_libdir_flag_spec_F77='-L$libdir'
15336
hardcode_minus_L_F77=yes
15337
allow_undefined_flag_F77=unsupported
15338
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'
15339
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15343
if test "$GCC" = yes; then
15344
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15345
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'
15347
allow_undefined_flag_F77=' -expect_unresolved \*'
15348
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'
15350
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15351
hardcode_libdir_separator_F77=:
15354
osf4* | osf5*) # as osf3* with the addition of -msym flag
15355
if test "$GCC" = yes; then
15356
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15357
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'
15358
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15360
allow_undefined_flag_F77=' -expect_unresolved \*'
15361
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'
15362
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~
15363
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15365
# Both c and cxx compiler support -rpath directly
15366
hardcode_libdir_flag_spec_F77='-rpath $libdir'
15368
hardcode_libdir_separator_F77=:
15372
no_undefined_flag_F77=' -z text'
15373
if test "$GCC" = yes; then
15375
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15376
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15377
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15380
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15381
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15382
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15384
hardcode_libdir_flag_spec_F77='-R$libdir'
15385
hardcode_shlibpath_var_F77=no
15387
solaris2.[0-5] | solaris2.[0-5].*) ;;
15389
# The compiler driver will combine and reorder linker options,
15390
# but understands `-z linker_flag'. GCC discards it without `$wl',
15391
# but is careful enough not to reorder.
15392
# Supported since Solaris 2.6 (maybe 2.5.1?)
15393
if test "$GCC" = yes; then
15394
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15396
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15400
link_all_deplibs_F77=yes
15404
if test "x$host_vendor" = xsequent; then
15405
# Use $CC to link under sequent, because it throws in some extra .o
15406
# files that make .init and .fini sections work.
15407
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15409
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15411
hardcode_libdir_flag_spec_F77='-L$libdir'
15412
hardcode_direct_F77=yes
15413
hardcode_minus_L_F77=yes
15414
hardcode_shlibpath_var_F77=no
15418
case $host_vendor in
15420
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15421
hardcode_direct_F77=yes # is this really true???
15424
## LD is ld it makes a PLAMLIB
15425
## CC just makes a GrossModule.
15426
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15427
reload_cmds_F77='$CC -r -o $output$reload_objs'
15428
hardcode_direct_F77=no
15431
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15432
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15435
runpath_var='LD_RUN_PATH'
15436
hardcode_shlibpath_var_F77=no
15440
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15441
hardcode_shlibpath_var_F77=no
15442
export_dynamic_flag_spec_F77='-Bexport'
15446
if test -d /usr/nec; then
15447
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15448
hardcode_shlibpath_var_F77=no
15449
runpath_var=LD_RUN_PATH
15450
hardcode_runpath_var=yes
15455
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15456
no_undefined_flag_F77='${wl}-z,text'
15457
archive_cmds_need_lc_F77=no
15458
hardcode_shlibpath_var_F77=no
15459
runpath_var='LD_RUN_PATH'
15461
if test "$GCC" = yes; then
15462
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15463
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15465
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15466
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15470
sysv5* | sco3.2v5* | sco5v6*)
15471
# Note: We can NOT use -z defs as we might desire, because we do not
15472
# link with -lc, and that would cause any symbols used from libc to
15473
# always be unresolved, which means just about no library would
15474
# ever link correctly. If we're not using GNU ld we use -z text
15475
# though, which does catch some bad symbols but isn't as heavy-handed
15477
no_undefined_flag_F77='${wl}-z,text'
15478
allow_undefined_flag_F77='${wl}-z,nodefs'
15479
archive_cmds_need_lc_F77=no
15480
hardcode_shlibpath_var_F77=no
15481
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15482
hardcode_libdir_separator_F77=':'
15483
link_all_deplibs_F77=yes
15484
export_dynamic_flag_spec_F77='${wl}-Bexport'
15485
runpath_var='LD_RUN_PATH'
15487
if test "$GCC" = yes; then
15488
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15489
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15491
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15492
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15497
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15498
hardcode_libdir_flag_spec_F77='-L$libdir'
15499
hardcode_shlibpath_var_F77=no
15508
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15509
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15510
test "$ld_shlibs_F77" = no && can_build_shared=no
15513
# Do we need to explicitly link libc?
15515
case "x$archive_cmds_need_lc_F77" in
15517
# Assume -lc should be added
15518
archive_cmds_need_lc_F77=yes
15520
if test "$enable_shared" = yes && test "$GCC" = yes; then
15521
case $archive_cmds_F77 in
15523
# FIXME: we may have to deal with multi-command sequences.
15526
# Test whether the compiler implicitly links with -lc since on some
15527
# systems, -lgcc has to come before -lc. If gcc already passes -lc
15528
# to ld, don't add -lc before -lgcc.
15529
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15530
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15532
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15534
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15535
(eval $ac_compile) 2>&5
15537
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538
(exit $ac_status); } 2>conftest.err; then
15541
libobjs=conftest.$ac_objext
15543
wl=$lt_prog_compiler_wl_F77
15544
pic_flag=$lt_prog_compiler_pic_F77
15550
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15551
allow_undefined_flag_F77=
15552
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15553
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15555
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556
(exit $ac_status); }
15558
archive_cmds_need_lc_F77=no
15560
archive_cmds_need_lc_F77=yes
15562
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15564
cat conftest.err 1>&5
15567
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15568
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15575
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15576
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15577
library_names_spec=
15578
libname_spec='lib$name'
15582
postuninstall_cmds=
15586
shlibpath_overrides_runpath=unknown
15588
dynamic_linker="$host_os ld.so"
15589
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15591
need_lib_prefix=unknown
15592
hardcode_into_libs=no
15594
# when you set need_version to no, make sure it does not cause -set_version
15595
# flags to be left without arguments
15596
need_version=unknown
15601
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15602
shlibpath_var=LIBPATH
15604
# AIX 3 has no versioning support, so we append a major version to the name.
15605
soname_spec='${libname}${release}${shared_ext}$major'
15612
hardcode_into_libs=yes
15613
if test "$host_cpu" = ia64; then
15614
# AIX 5 supports IA64
15615
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15616
shlibpath_var=LD_LIBRARY_PATH
15618
# With GCC up to 2.95.x, collect2 would create an import file
15619
# for dependence libraries. The import file would start with
15620
# the line `#! .'. This would cause the generated library to
15621
# depend on `.', always an invalid library. This was fixed in
15622
# development snapshots of GCC prior to 3.0.
15624
aix4 | aix4.[01] | aix4.[01].*)
15625
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15627
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15630
can_build_shared=no
15634
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15635
# soname into executable. Probably we can add versioning support to
15636
# collect2, so additional links can be useful in future.
15637
if test "$aix_use_runtimelinking" = yes; then
15638
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
15639
# instead of lib<name>.a to let people know that these are not
15640
# typical AIX shared libraries.
15641
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15643
# We preserve .a as extension for shared libraries through AIX4.2
15644
# and later when we are not doing run time linking.
15645
library_names_spec='${libname}${release}.a $libname.a'
15646
soname_spec='${libname}${release}${shared_ext}$major'
15648
shlibpath_var=LIBPATH
15653
library_names_spec='$libname.ixlibrary $libname.a'
15654
# Create ${libname}_ixlibrary.a entries in /sys/libs.
15655
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'
15659
library_names_spec='${libname}${shared_ext}'
15660
dynamic_linker="$host_os ld.so"
15661
shlibpath_var=LIBRARY_PATH
15667
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15668
soname_spec='${libname}${release}${shared_ext}$major'
15669
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15670
shlibpath_var=LD_LIBRARY_PATH
15671
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15672
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15673
# the default ld.so.conf also contains /usr/contrib/lib and
15674
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15675
# libtool to hard-code these into programs
15678
cygwin* | mingw* | pw32*)
15679
version_type=windows
15684
case $GCC,$host_os in
15685
yes,cygwin* | yes,mingw* | yes,pw32*)
15686
library_names_spec='$libname.dll.a'
15687
# DLL is installed to $(libdir)/../bin by postinstall_cmds
15688
postinstall_cmds='base_file=`basename \${file}`~
15689
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15690
dldir=$destdir/`dirname \$dlpath`~
15691
test -d \$dldir || mkdir -p \$dldir~
15692
$install_prog $dir/$dlname \$dldir/$dlname~
15693
chmod a+x \$dldir/$dlname'
15694
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15695
dlpath=$dir/\$dldll~
15697
shlibpath_overrides_runpath=yes
15701
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
15702
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15703
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15706
# MinGW DLLs use traditional 'lib' prefix
15707
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15708
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15709
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15710
# It is most probably a Windows format PATH printed by
15711
# mingw gcc, but we are running on Cygwin. Gcc prints its search
15712
# path with ; separators, and with drive letters. We can handle the
15713
# drive letters (cygwin fileutils understands them), so leave them,
15714
# especially as we might pass files found there to a mingw objdump,
15715
# which wouldn't understand a cygwinified path. Ahh.
15716
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15718
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15722
# pw32 DLLs use 'pw' prefix rather than 'lib'
15723
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15729
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15732
dynamic_linker='Win32 ld.exe'
15733
# FIXME: first we should search . and the directory the executable is in
15737
darwin* | rhapsody*)
15738
dynamic_linker="$host_os dyld"
15739
version_type=darwin
15742
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15743
soname_spec='${libname}${release}${major}$shared_ext'
15744
shlibpath_overrides_runpath=yes
15745
shlibpath_var=DYLD_LIBRARY_PATH
15746
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15748
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15755
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15756
soname_spec='${libname}${release}${shared_ext}$major'
15757
shlibpath_var=LD_LIBRARY_PATH
15764
freebsd* | dragonfly*)
15765
# DragonFly does not have aout. When/if they implement a new
15766
# versioning mechanism, adjust this.
15767
if test -x /usr/bin/objformat; then
15768
objformat=`/usr/bin/objformat`
15771
freebsd[123]*) objformat=aout ;;
15772
*) objformat=elf ;;
15775
version_type=freebsd-$objformat
15776
case $version_type in
15778
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15783
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15787
shlibpath_var=LD_LIBRARY_PATH
15790
shlibpath_overrides_runpath=yes
15792
freebsd3.[01]* | freebsdelf3.[01]*)
15793
shlibpath_overrides_runpath=yes
15794
hardcode_into_libs=yes
15796
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15797
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15798
shlibpath_overrides_runpath=no
15799
hardcode_into_libs=yes
15801
*) # from 4.6 on, and DragonFly
15802
shlibpath_overrides_runpath=yes
15803
hardcode_into_libs=yes
15812
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15813
soname_spec='${libname}${release}${shared_ext}$major'
15814
shlibpath_var=LD_LIBRARY_PATH
15815
hardcode_into_libs=yes
15818
hpux9* | hpux10* | hpux11*)
15819
# Give a soname corresponding to the major version so that dld.sl refuses to
15820
# link against other versions.
15827
hardcode_into_libs=yes
15828
dynamic_linker="$host_os dld.so"
15829
shlibpath_var=LD_LIBRARY_PATH
15830
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15831
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15832
soname_spec='${libname}${release}${shared_ext}$major'
15833
if test "X$HPUX_IA64_MODE" = X32; then
15834
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15836
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15838
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15842
hardcode_into_libs=yes
15843
dynamic_linker="$host_os dld.sl"
15844
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15845
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15846
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15847
soname_spec='${libname}${release}${shared_ext}$major'
15848
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15849
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15853
dynamic_linker="$host_os dld.sl"
15854
shlibpath_var=SHLIB_PATH
15855
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15856
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15857
soname_spec='${libname}${release}${shared_ext}$major'
15860
# HP-UX runs *really* slowly unless shared libraries are mode 555.
15861
postinstall_cmds='chmod 555 $lib'
15868
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15869
soname_spec='${libname}${release}${shared_ext}$major'
15870
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15871
shlibpath_var=LD_LIBRARY_PATH
15872
shlibpath_overrides_runpath=no
15873
hardcode_into_libs=yes
15876
irix5* | irix6* | nonstopux*)
15878
nonstopux*) version_type=nonstopux ;;
15880
if test "$lt_cv_prog_gnu_ld" = yes; then
15888
soname_spec='${libname}${release}${shared_ext}$major'
15889
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15891
irix5* | nonstopux*)
15892
libsuff= shlibsuff=
15895
case $LD in # libtool.m4 will add one of these switches to LD
15896
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15897
libsuff= shlibsuff= libmagic=32-bit;;
15898
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15899
libsuff=32 shlibsuff=N32 libmagic=N32;;
15900
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15901
libsuff=64 shlibsuff=64 libmagic=64-bit;;
15902
*) libsuff= shlibsuff= libmagic=never-match;;
15906
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15907
shlibpath_overrides_runpath=no
15908
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15909
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15910
hardcode_into_libs=yes
15913
# No shared lib support for Linux oldld, aout, or coff.
15914
linux*oldld* | linux*aout* | linux*coff*)
15918
# This must be Linux ELF.
15919
linux* | k*bsd*-gnu)
15923
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15924
soname_spec='${libname}${release}${shared_ext}$major'
15925
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15926
shlibpath_var=LD_LIBRARY_PATH
15927
shlibpath_overrides_runpath=no
15928
# This implies no fast_install, which is unacceptable.
15929
# Some rework will be needed to allow for fast_install
15930
# before this can be enabled.
15931
hardcode_into_libs=yes
15933
# Append ld.so.conf contents to the search path
15934
if test -f /etc/ld.so.conf; then
15935
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15936
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15939
# We used to test for /lib/ld.so.1 and disable shared libraries on
15940
# powerpc, because MkLinux only supported shared libraries with the
15941
# GNU dynamic linker. Since this was broken with cross compilers,
15942
# most powerpc-linux boxes support dynamic linking these days and
15943
# people can always --disable-shared, the test was removed, and we
15944
# assume the GNU/Linux dynamic linker is in use.
15945
dynamic_linker='GNU/Linux ld.so'
15952
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15953
soname_spec='${libname}${release}${shared_ext}$major'
15954
shlibpath_var=LD_LIBRARY_PATH
15955
shlibpath_overrides_runpath=no
15956
hardcode_into_libs=yes
15957
dynamic_linker='NetBSD ld.elf_so'
15964
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15965
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15966
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15967
dynamic_linker='NetBSD (a.out) ld.so'
15969
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15970
soname_spec='${libname}${release}${shared_ext}$major'
15971
dynamic_linker='NetBSD ld.elf_so'
15973
shlibpath_var=LD_LIBRARY_PATH
15974
shlibpath_overrides_runpath=yes
15975
hardcode_into_libs=yes
15980
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15981
shlibpath_var=LD_LIBRARY_PATH
15982
shlibpath_overrides_runpath=yes
15989
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15990
soname_spec='${libname}${release}${shared_ext}$major'
15991
shlibpath_var=LD_LIBRARY_PATH
15992
shlibpath_overrides_runpath=yes
15997
sys_lib_dlsearch_path_spec="/usr/lib"
15999
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16001
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16002
*) need_version=no ;;
16004
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16005
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16006
shlibpath_var=LD_LIBRARY_PATH
16007
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16009
openbsd2.[89] | openbsd2.[89].*)
16010
shlibpath_overrides_runpath=no
16013
shlibpath_overrides_runpath=yes
16017
shlibpath_overrides_runpath=yes
16022
libname_spec='$name'
16025
library_names_spec='$libname${shared_ext} $libname.a'
16026
dynamic_linker='OS/2 ld.exe'
16027
shlibpath_var=LIBPATH
16030
osf3* | osf4* | osf5*)
16034
soname_spec='${libname}${release}${shared_ext}$major'
16035
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16036
shlibpath_var=LD_LIBRARY_PATH
16037
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16038
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16049
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16050
soname_spec='${libname}${release}${shared_ext}$major'
16051
shlibpath_var=LD_LIBRARY_PATH
16052
shlibpath_overrides_runpath=yes
16053
hardcode_into_libs=yes
16054
# ldd complains unless libraries are executable
16055
postinstall_cmds='chmod +x $lib'
16060
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16061
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16062
shlibpath_var=LD_LIBRARY_PATH
16063
shlibpath_overrides_runpath=yes
16064
if test "$with_gnu_ld" = yes; then
16072
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16073
soname_spec='${libname}${release}${shared_ext}$major'
16074
shlibpath_var=LD_LIBRARY_PATH
16075
case $host_vendor in
16077
shlibpath_overrides_runpath=no
16079
export_dynamic_flag_spec='${wl}-Blargedynsym'
16080
runpath_var=LD_RUN_PATH
16088
shlibpath_overrides_runpath=no
16089
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16095
if test -d /usr/nec ;then
16097
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16098
soname_spec='$libname${shared_ext}.$major'
16099
shlibpath_var=LD_LIBRARY_PATH
16103
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16104
version_type=freebsd-elf
16107
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16108
soname_spec='${libname}${release}${shared_ext}$major'
16109
shlibpath_var=LD_LIBRARY_PATH
16110
hardcode_into_libs=yes
16111
if test "$with_gnu_ld" = yes; then
16112
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16113
shlibpath_overrides_runpath=no
16115
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16116
shlibpath_overrides_runpath=yes
16119
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16123
sys_lib_dlsearch_path_spec='/usr/lib'
16128
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16129
soname_spec='${libname}${release}${shared_ext}$major'
16130
shlibpath_var=LD_LIBRARY_PATH
16137
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16138
echo "${ECHO_T}$dynamic_linker" >&6; }
16139
test "$dynamic_linker" = no && can_build_shared=no
16141
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16142
echo $ECHO_N "(cached) $ECHO_C" >&6
16144
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16147
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16148
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16149
echo $ECHO_N "(cached) $ECHO_C" >&6
16151
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16154
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16156
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16157
if test "$GCC" = yes; then
16158
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16161
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16162
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16163
hardcode_action_F77=
16164
if test -n "$hardcode_libdir_flag_spec_F77" || \
16165
test -n "$runpath_var_F77" || \
16166
test "X$hardcode_automatic_F77" = "Xyes" ; then
16168
# We can hardcode non-existant directories.
16169
if test "$hardcode_direct_F77" != no &&
16170
# If the only mechanism to avoid hardcoding is shlibpath_var, we
16171
# have to relink, otherwise we might link with an installed library
16172
# when we should be linking with a yet-to-be-installed one
16173
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16174
test "$hardcode_minus_L_F77" != no; then
16175
# Linking always hardcodes the temporary library directory.
16176
hardcode_action_F77=relink
16178
# We can link without hardcoding, and we can hardcode nonexisting dirs.
16179
hardcode_action_F77=immediate
16182
# We cannot hardcode anything, or else we can only hardcode existing
16184
hardcode_action_F77=unsupported
16186
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16187
echo "${ECHO_T}$hardcode_action_F77" >&6; }
16189
if test "$hardcode_action_F77" = relink; then
16190
# Fast installation is not supported
16191
enable_fast_install=no
16192
elif test "$shlibpath_overrides_runpath" = yes ||
16193
test "$enable_shared" = no; then
16194
# Fast installation is not necessary
16195
enable_fast_install=needless
16199
# The else clause should only fire when bootstrapping the
16200
# libtool distribution, otherwise you forgot to ship ltmain.sh
16201
# with your package, and you will get complaints that there are
16202
# no rules to generate ltmain.sh.
16203
if test -f "$ltmain"; then
16204
# See if we are running on zsh, and set the options which allow our commands through
16205
# without removal of \ escapes.
16206
if test -n "${ZSH_VERSION+set}" ; then
16207
setopt NO_GLOB_SUBST
16209
# Now quote all the things that may contain metacharacters while being
16210
# careful not to overquote the AC_SUBSTed values. We take copies of the
16211
# variables and quote the copies for generation of the libtool script.
16212
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16214
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16215
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16216
deplibs_check_method reload_flag reload_cmds need_locks \
16217
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16218
lt_cv_sys_global_symbol_to_c_name_address \
16219
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16220
old_postinstall_cmds old_postuninstall_cmds \
16224
lt_prog_compiler_wl_F77 \
16225
lt_prog_compiler_pic_F77 \
16226
lt_prog_compiler_static_F77 \
16227
lt_prog_compiler_no_builtin_flag_F77 \
16228
export_dynamic_flag_spec_F77 \
16229
thread_safe_flag_spec_F77 \
16230
whole_archive_flag_spec_F77 \
16231
enable_shared_with_static_runtimes_F77 \
16232
old_archive_cmds_F77 \
16233
old_archive_from_new_cmds_F77 \
16234
predep_objects_F77 \
16235
postdep_objects_F77 \
16238
compiler_lib_search_path_F77 \
16239
compiler_lib_search_dirs_F77 \
16241
archive_expsym_cmds_F77 \
16242
postinstall_cmds_F77 \
16243
postuninstall_cmds_F77 \
16244
old_archive_from_expsyms_cmds_F77 \
16245
allow_undefined_flag_F77 \
16246
no_undefined_flag_F77 \
16247
export_symbols_cmds_F77 \
16248
hardcode_libdir_flag_spec_F77 \
16249
hardcode_libdir_flag_spec_ld_F77 \
16250
hardcode_libdir_separator_F77 \
16251
hardcode_automatic_F77 \
16253
module_expsym_cmds_F77 \
16254
lt_cv_prog_compiler_c_o_F77 \
16255
fix_srcfile_path_F77 \
16256
exclude_expsyms_F77 \
16257
include_expsyms_F77; do
16260
old_archive_cmds_F77 | \
16261
old_archive_from_new_cmds_F77 | \
16262
archive_cmds_F77 | \
16263
archive_expsym_cmds_F77 | \
16264
module_cmds_F77 | \
16265
module_expsym_cmds_F77 | \
16266
old_archive_from_expsyms_cmds_F77 | \
16267
export_symbols_cmds_F77 | \
16268
extract_expsyms_cmds | reload_cmds | finish_cmds | \
16269
postinstall_cmds | postuninstall_cmds | \
16270
old_postinstall_cmds | old_postuninstall_cmds | \
16271
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16272
# Double-quote double-evaled strings.
16273
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16276
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16282
*'\$0 --fallback-echo"')
16283
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16289
cat <<__EOF__ >> "$cfgfile"
16290
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16292
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16294
# Shell to use when invoking shell scripts.
16297
# Whether or not to build shared libraries.
16298
build_libtool_libs=$enable_shared
16300
# Whether or not to build static libraries.
16301
build_old_libs=$enable_static
16303
# Whether or not to add -lc for building shared libraries.
16304
build_libtool_need_lc=$archive_cmds_need_lc_F77
16306
# Whether or not to disallow shared libs when runtime libs are static
16307
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16309
# Whether or not to optimize for fast installation.
16310
fast_install=$enable_fast_install
16313
host_alias=$host_alias
16317
# The build system.
16318
build_alias=$build_alias
16322
# An echo program that does not interpret backslashes.
16327
AR_FLAGS=$lt_AR_FLAGS
16332
# LTCC compiler flags.
16333
LTCFLAGS=$lt_LTCFLAGS
16335
# A language-specific compiler.
16336
CC=$lt_compiler_F77
16338
# Is the compiler the GNU C compiler?
16344
# The linker used to build libraries.
16347
# Whether we need hard or soft links.
16350
# A BSD-compatible nm program.
16353
# A symbol stripping program
16356
# Used to examine libraries when file_magic_cmd begins "file"
16357
MAGIC_CMD=$MAGIC_CMD
16359
# Used on cygwin: DLL creation program.
16362
# Used on cygwin: object dumper.
16365
# Used on cygwin: assembler.
16368
# The name of the directory that contains temporary libtool files.
16371
# How to create reloadable object files.
16372
reload_flag=$lt_reload_flag
16373
reload_cmds=$lt_reload_cmds
16375
# How to pass a linker flag through the compiler.
16376
wl=$lt_lt_prog_compiler_wl_F77
16378
# Object file suffix (normally "o").
16379
objext="$ac_objext"
16381
# Old archive suffix (normally "a").
16384
# Shared library suffix (normally ".so").
16385
shrext_cmds='$shrext_cmds'
16387
# Executable file suffix (normally "").
16390
# Additional compiler flags for building library objects.
16391
pic_flag=$lt_lt_prog_compiler_pic_F77
16394
# What is the maximum length of a command?
16395
max_cmd_len=$lt_cv_sys_max_cmd_len
16397
# Does compiler simultaneously support -c and -o options?
16398
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16400
# Must we lock files when doing compilation?
16401
need_locks=$lt_need_locks
16403
# Do we need the lib prefix for modules?
16404
need_lib_prefix=$need_lib_prefix
16406
# Do we need a version for libraries?
16407
need_version=$need_version
16409
# Whether dlopen is supported.
16410
dlopen_support=$enable_dlopen
16412
# Whether dlopen of programs is supported.
16413
dlopen_self=$enable_dlopen_self
16415
# Whether dlopen of statically linked programs is supported.
16416
dlopen_self_static=$enable_dlopen_self_static
16418
# Compiler flag to prevent dynamic linking.
16419
link_static_flag=$lt_lt_prog_compiler_static_F77
16421
# Compiler flag to turn off builtin functions.
16422
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16424
# Compiler flag to allow reflexive dlopens.
16425
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16427
# Compiler flag to generate shared objects directly from archives.
16428
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16430
# Compiler flag to generate thread-safe objects.
16431
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16433
# Library versioning type.
16434
version_type=$version_type
16436
# Format of library name prefix.
16437
libname_spec=$lt_libname_spec
16439
# List of archive names. First name is the real one, the rest are links.
16440
# The last name is the one that the linker finds with -lNAME.
16441
library_names_spec=$lt_library_names_spec
16443
# The coded name of the library, if different from the real name.
16444
soname_spec=$lt_soname_spec
16446
# Commands used to build and install an old-style archive.
16448
old_archive_cmds=$lt_old_archive_cmds_F77
16449
old_postinstall_cmds=$lt_old_postinstall_cmds
16450
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16452
# Create an old-style archive from a shared archive.
16453
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16455
# Create a temporary old-style archive to link instead of a shared archive.
16456
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16458
# Commands used to build and install a shared archive.
16459
archive_cmds=$lt_archive_cmds_F77
16460
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16461
postinstall_cmds=$lt_postinstall_cmds
16462
postuninstall_cmds=$lt_postuninstall_cmds
16464
# Commands used to build a loadable module (assumed same as above if empty)
16465
module_cmds=$lt_module_cmds_F77
16466
module_expsym_cmds=$lt_module_expsym_cmds_F77
16468
# Commands to strip libraries.
16469
old_striplib=$lt_old_striplib
16470
striplib=$lt_striplib
16472
# Dependencies to place before the objects being linked to create a
16474
predep_objects=$lt_predep_objects_F77
16476
# Dependencies to place after the objects being linked to create a
16478
postdep_objects=$lt_postdep_objects_F77
16480
# Dependencies to place before the objects being linked to create a
16482
predeps=$lt_predeps_F77
16484
# Dependencies to place after the objects being linked to create a
16486
postdeps=$lt_postdeps_F77
16488
# The directories searched by this compiler when creating a shared
16490
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16492
# The library search path used internally by the compiler when linking
16493
# a shared library.
16494
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16496
# Method to check whether dependent libraries are shared objects.
16497
deplibs_check_method=$lt_deplibs_check_method
16499
# Command to use when deplibs_check_method == file_magic.
16500
file_magic_cmd=$lt_file_magic_cmd
16502
# Flag that allows shared libraries with undefined symbols to be built.
16503
allow_undefined_flag=$lt_allow_undefined_flag_F77
16505
# Flag that forces no undefined symbols.
16506
no_undefined_flag=$lt_no_undefined_flag_F77
16508
# Commands used to finish a libtool library installation in a directory.
16509
finish_cmds=$lt_finish_cmds
16511
# Same as above, but a single script fragment to be evaled but not shown.
16512
finish_eval=$lt_finish_eval
16514
# Take the output of nm and produce a listing of raw symbols and C names.
16515
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16517
# Transform the output of nm in a proper C declaration
16518
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16520
# Transform the output of nm in a C name address pair
16521
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16523
# This is the shared library runtime path variable.
16524
runpath_var=$runpath_var
16526
# This is the shared library path variable.
16527
shlibpath_var=$shlibpath_var
16529
# Is shlibpath searched before the hard-coded library search path?
16530
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16532
# How to hardcode a shared library path into an executable.
16533
hardcode_action=$hardcode_action_F77
16535
# Whether we should hardcode library paths into libraries.
16536
hardcode_into_libs=$hardcode_into_libs
16538
# Flag to hardcode \$libdir into a binary during linking.
16539
# This must work even if \$libdir does not exist.
16540
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16542
# If ld is used when linking, flag to hardcode \$libdir into
16543
# a binary during linking. This must work even if \$libdir does
16545
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16547
# Whether we need a single -rpath flag with a separated argument.
16548
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16550
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16551
# resulting binary.
16552
hardcode_direct=$hardcode_direct_F77
16554
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16555
# resulting binary.
16556
hardcode_minus_L=$hardcode_minus_L_F77
16558
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16559
# the resulting binary.
16560
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16562
# Set to yes if building a shared library automatically hardcodes DIR into the library
16563
# and all subsequent libraries and executables linked against it.
16564
hardcode_automatic=$hardcode_automatic_F77
16566
# Variables whose values should be saved in libtool wrapper scripts and
16567
# restored at relink time.
16568
variables_saved_for_relink="$variables_saved_for_relink"
16570
# Whether libtool must link a program against all its dependency libraries.
16571
link_all_deplibs=$link_all_deplibs_F77
16573
# Compile-time system search path for libraries
16574
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16576
# Run-time system search path for libraries
16577
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16579
# Fix the shell variable \$srcfile for the compiler.
16580
fix_srcfile_path=$lt_fix_srcfile_path
16582
# Set to yes if exported symbols are required.
16583
always_export_symbols=$always_export_symbols_F77
16585
# The commands to list exported symbols.
16586
export_symbols_cmds=$lt_export_symbols_cmds_F77
16588
# The commands to extract the exported symbol list from a shared archive.
16589
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16591
# Symbols that should not be listed in the preloaded symbols.
16592
exclude_expsyms=$lt_exclude_expsyms_F77
16594
# Symbols that must always be exported.
16595
include_expsyms=$lt_include_expsyms_F77
16597
# ### END LIBTOOL TAG CONFIG: $tagname
16603
# If there is no Makefile yet, we rely on a make rule to execute
16604
# `config.status --recheck' to rerun these tests and create the
16605
# libtool script then.
16606
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16607
if test -f "$ltmain_in"; then
16608
test -f Makefile && make "$ltmain"
16614
ac_cpp='$CPP $CPPFLAGS'
16615
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16616
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16617
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16627
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16630
# Source file extension for Java test sources.
16633
# Object file extension for compiled Java test sources.
16637
# Code to be used in simple compile tests
16638
lt_simple_compile_test_code="class foo {}"
16640
# Code to be used in simple link tests
16641
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16643
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16645
# If no C compiler was specified, use CC.
16648
# If no C compiler flags were specified, use CFLAGS.
16649
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16651
# Allow CC to be a program name with arguments.
16655
# save warnings/boilerplate of simple test code
16656
ac_outfile=conftest.$ac_objext
16657
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16658
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16659
_lt_compiler_boilerplate=`cat conftest.err`
16662
ac_outfile=conftest.$ac_objext
16663
echo "$lt_simple_link_test_code" >conftest.$ac_ext
16664
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16665
_lt_linker_boilerplate=`cat conftest.err`
16669
# Allow CC to be a program name with arguments.
16674
for cc_temp in $compiler""; do
16676
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16677
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16682
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16685
# GCJ did not exist at the time GCC didn't implicitly link libc in.
16686
archive_cmds_need_lc_GCJ=no
16688
old_archive_cmds_GCJ=$old_archive_cmds
16691
lt_prog_compiler_no_builtin_flag_GCJ=
16693
if test "$GCC" = yes; then
16694
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16697
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16698
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16699
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16700
echo $ECHO_N "(cached) $ECHO_C" >&6
16702
lt_cv_prog_compiler_rtti_exceptions=no
16703
ac_outfile=conftest.$ac_objext
16704
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16705
lt_compiler_flag="-fno-rtti -fno-exceptions"
16706
# Insert the option either (1) after the last *FLAGS variable, or
16707
# (2) before a word containing "conftest.", or (3) at the end.
16708
# Note that $ac_compile itself does not contain backslashes and begins
16709
# with a dollar sign (not a hyphen), so the echo should work correctly.
16710
# The option is referenced via a variable to avoid confusing sed.
16711
lt_compile=`echo "$ac_compile" | $SED \
16712
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16713
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16714
-e 's:$: $lt_compiler_flag:'`
16715
(eval echo "\"\$as_me:16715: $lt_compile\"" >&5)
16716
(eval "$lt_compile" 2>conftest.err)
16718
cat conftest.err >&5
16719
echo "$as_me:16719: \$? = $ac_status" >&5
16720
if (exit $ac_status) && test -s "$ac_outfile"; then
16721
# The compiler can only warn and ignore the option if not recognized
16722
# So say no if there are warnings other than the usual output.
16723
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16724
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16725
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16726
lt_cv_prog_compiler_rtti_exceptions=yes
16732
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16733
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16735
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16736
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16743
lt_prog_compiler_wl_GCJ=
16744
lt_prog_compiler_pic_GCJ=
16745
lt_prog_compiler_static_GCJ=
16747
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16748
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16750
if test "$GCC" = yes; then
16751
lt_prog_compiler_wl_GCJ='-Wl,'
16752
lt_prog_compiler_static_GCJ='-static'
16756
# All AIX code is PIC.
16757
if test "$host_cpu" = ia64; then
16758
# AIX 5 now supports IA64 processor
16759
lt_prog_compiler_static_GCJ='-Bstatic'
16764
# FIXME: we need at least 68020 code to build shared libraries, but
16765
# adding the `-m68020' flag to GCC prevents building anything better,
16767
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16770
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16771
# PIC is the default for these OSes.
16774
mingw* | cygwin* | pw32* | os2*)
16775
# This hack is so that the source file can tell whether it is being
16776
# built for inclusion in a dll (and should export symbols for example).
16777
# Although the cygwin gcc ignores -fPIC, still need this for old-style
16778
# (--disable-auto-import) libraries
16782
darwin* | rhapsody*)
16783
# PIC is the default on this platform
16784
# Common symbols not allowed in MH_DYLIB files
16785
lt_prog_compiler_pic_GCJ='-fno-common'
16789
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
16790
# Instead, we relocate shared libraries at runtime.
16794
# Just because we use GCC doesn't mean we suddenly get shared libraries
16795
# on systems that don't support them.
16796
lt_prog_compiler_can_build_shared_GCJ=no
16801
if test -d /usr/nec; then
16802
lt_prog_compiler_pic_GCJ=-Kconform_pic
16807
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16808
# not for PA HP-UX.
16814
lt_prog_compiler_pic_GCJ='-fPIC'
16820
lt_prog_compiler_pic_GCJ='-fPIC'
16824
# PORTME Check for flag to pass linker flags through the system compiler.
16827
lt_prog_compiler_wl_GCJ='-Wl,'
16828
if test "$host_cpu" = ia64; then
16829
# AIX 5 now supports IA64 processor
16830
lt_prog_compiler_static_GCJ='-Bstatic'
16832
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16836
# PIC is the default on this platform
16837
# Common symbols not allowed in MH_DYLIB files
16838
case $cc_basename in
16840
lt_prog_compiler_pic_GCJ='-qnocommon'
16841
lt_prog_compiler_wl_GCJ='-Wl,'
16846
mingw* | cygwin* | pw32* | os2*)
16847
# This hack is so that the source file can tell whether it is being
16848
# built for inclusion in a dll (and should export symbols for example).
16852
hpux9* | hpux10* | hpux11*)
16853
lt_prog_compiler_wl_GCJ='-Wl,'
16854
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16855
# not for PA HP-UX.
16861
lt_prog_compiler_pic_GCJ='+Z'
16864
# Is there a better lt_prog_compiler_static that works with the bundled CC?
16865
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16868
irix5* | irix6* | nonstopux*)
16869
lt_prog_compiler_wl_GCJ='-Wl,'
16870
# PIC (with -KPIC) is the default.
16871
lt_prog_compiler_static_GCJ='-non_shared'
16875
lt_prog_compiler_pic_GCJ='-KPIC'
16876
lt_prog_compiler_static_GCJ='-Bstatic'
16879
linux* | k*bsd*-gnu)
16880
case $cc_basename in
16882
lt_prog_compiler_wl_GCJ='-Wl,'
16883
lt_prog_compiler_pic_GCJ='-KPIC'
16884
lt_prog_compiler_static_GCJ='-static'
16886
pgcc* | pgf77* | pgf90* | pgf95*)
16887
# Portland Group compilers (*not* the Pentium gcc compiler,
16888
# which looks to be a dead project)
16889
lt_prog_compiler_wl_GCJ='-Wl,'
16890
lt_prog_compiler_pic_GCJ='-fpic'
16891
lt_prog_compiler_static_GCJ='-Bstatic'
16894
lt_prog_compiler_wl_GCJ='-Wl,'
16895
# All Alpha code is PIC.
16896
lt_prog_compiler_static_GCJ='-non_shared'
16899
case `$CC -V 2>&1 | sed 5q` in
16902
lt_prog_compiler_pic_GCJ='-KPIC'
16903
lt_prog_compiler_static_GCJ='-Bstatic'
16904
lt_prog_compiler_wl_GCJ='-Wl,'
16907
# Sun Fortran 8.3 passes all unrecognized flags to the linker
16908
lt_prog_compiler_pic_GCJ='-KPIC'
16909
lt_prog_compiler_static_GCJ='-Bstatic'
16910
lt_prog_compiler_wl_GCJ=''
16917
osf3* | osf4* | osf5*)
16918
lt_prog_compiler_wl_GCJ='-Wl,'
16919
# All OSF/1 code is PIC.
16920
lt_prog_compiler_static_GCJ='-non_shared'
16924
lt_prog_compiler_static_GCJ='-non_shared'
16928
lt_prog_compiler_pic_GCJ='-KPIC'
16929
lt_prog_compiler_static_GCJ='-Bstatic'
16930
case $cc_basename in
16931
f77* | f90* | f95*)
16932
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16934
lt_prog_compiler_wl_GCJ='-Wl,';;
16939
lt_prog_compiler_wl_GCJ='-Qoption ld '
16940
lt_prog_compiler_pic_GCJ='-PIC'
16941
lt_prog_compiler_static_GCJ='-Bstatic'
16944
sysv4 | sysv4.2uw2* | sysv4.3*)
16945
lt_prog_compiler_wl_GCJ='-Wl,'
16946
lt_prog_compiler_pic_GCJ='-KPIC'
16947
lt_prog_compiler_static_GCJ='-Bstatic'
16951
if test -d /usr/nec ;then
16952
lt_prog_compiler_pic_GCJ='-Kconform_pic'
16953
lt_prog_compiler_static_GCJ='-Bstatic'
16957
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16958
lt_prog_compiler_wl_GCJ='-Wl,'
16959
lt_prog_compiler_pic_GCJ='-KPIC'
16960
lt_prog_compiler_static_GCJ='-Bstatic'
16964
lt_prog_compiler_wl_GCJ='-Wl,'
16965
lt_prog_compiler_can_build_shared_GCJ=no
16969
lt_prog_compiler_pic_GCJ='-pic'
16970
lt_prog_compiler_static_GCJ='-Bstatic'
16974
lt_prog_compiler_can_build_shared_GCJ=no
16979
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16980
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16983
# Check to make sure the PIC flag actually works.
16985
if test -n "$lt_prog_compiler_pic_GCJ"; then
16987
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16988
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16989
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
16990
echo $ECHO_N "(cached) $ECHO_C" >&6
16992
lt_cv_prog_compiler_pic_works_GCJ=no
16993
ac_outfile=conftest.$ac_objext
16994
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16995
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16996
# Insert the option either (1) after the last *FLAGS variable, or
16997
# (2) before a word containing "conftest.", or (3) at the end.
16998
# Note that $ac_compile itself does not contain backslashes and begins
16999
# with a dollar sign (not a hyphen), so the echo should work correctly.
17000
# The option is referenced via a variable to avoid confusing sed.
17001
lt_compile=`echo "$ac_compile" | $SED \
17002
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17003
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17004
-e 's:$: $lt_compiler_flag:'`
17005
(eval echo "\"\$as_me:17005: $lt_compile\"" >&5)
17006
(eval "$lt_compile" 2>conftest.err)
17008
cat conftest.err >&5
17009
echo "$as_me:17009: \$? = $ac_status" >&5
17010
if (exit $ac_status) && test -s "$ac_outfile"; then
17011
# The compiler can only warn and ignore the option if not recognized
17012
# So say no if there are warnings other than the usual output.
17013
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17014
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17015
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17016
lt_cv_prog_compiler_pic_works_GCJ=yes
17022
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17023
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17025
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17026
case $lt_prog_compiler_pic_GCJ in
17028
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17031
lt_prog_compiler_pic_GCJ=
17032
lt_prog_compiler_can_build_shared_GCJ=no
17037
# For platforms which do not support PIC, -DPIC is meaningless:
17039
lt_prog_compiler_pic_GCJ=
17042
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17047
# Check to make sure the static flag actually works.
17049
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17050
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17051
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17052
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17053
echo $ECHO_N "(cached) $ECHO_C" >&6
17055
lt_cv_prog_compiler_static_works_GCJ=no
17056
save_LDFLAGS="$LDFLAGS"
17057
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17058
echo "$lt_simple_link_test_code" > conftest.$ac_ext
17059
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17060
# The linker can only warn and ignore the option if not recognized
17061
# So say no if there are warnings
17062
if test -s conftest.err; then
17063
# Append any errors to the config.log.
17064
cat conftest.err 1>&5
17065
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17066
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17067
if diff conftest.exp conftest.er2 >/dev/null; then
17068
lt_cv_prog_compiler_static_works_GCJ=yes
17071
lt_cv_prog_compiler_static_works_GCJ=yes
17075
LDFLAGS="$save_LDFLAGS"
17078
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17079
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17081
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17084
lt_prog_compiler_static_GCJ=
17088
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17089
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17090
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17091
echo $ECHO_N "(cached) $ECHO_C" >&6
17093
lt_cv_prog_compiler_c_o_GCJ=no
17094
$rm -r conftest 2>/dev/null
17098
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17100
lt_compiler_flag="-o out/conftest2.$ac_objext"
17101
# Insert the option either (1) after the last *FLAGS variable, or
17102
# (2) before a word containing "conftest.", or (3) at the end.
17103
# Note that $ac_compile itself does not contain backslashes and begins
17104
# with a dollar sign (not a hyphen), so the echo should work correctly.
17105
lt_compile=`echo "$ac_compile" | $SED \
17106
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17107
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17108
-e 's:$: $lt_compiler_flag:'`
17109
(eval echo "\"\$as_me:17109: $lt_compile\"" >&5)
17110
(eval "$lt_compile" 2>out/conftest.err)
17112
cat out/conftest.err >&5
17113
echo "$as_me:17113: \$? = $ac_status" >&5
17114
if (exit $ac_status) && test -s out/conftest2.$ac_objext
17116
# The compiler can only warn and ignore the option if not recognized
17117
# So say no if there are warnings
17118
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17119
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17120
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17121
lt_cv_prog_compiler_c_o_GCJ=yes
17126
# SGI C++ compiler will create directory out/ii_files/ for
17127
# template instantiation
17128
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17129
$rm out/* && rmdir out
17135
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17136
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17139
hard_links="nottested"
17140
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17141
# do not overwrite the value of need_locks provided by the user
17142
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17143
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17146
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17148
ln conftest.a conftest.b 2>&5 || hard_links=no
17149
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17150
{ echo "$as_me:$LINENO: result: $hard_links" >&5
17151
echo "${ECHO_T}$hard_links" >&6; }
17152
if test "$hard_links" = no; then
17153
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17154
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17161
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17162
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17165
allow_undefined_flag_GCJ=
17166
enable_shared_with_static_runtimes_GCJ=no
17168
archive_expsym_cmds_GCJ=
17169
old_archive_From_new_cmds_GCJ=
17170
old_archive_from_expsyms_cmds_GCJ=
17171
export_dynamic_flag_spec_GCJ=
17172
whole_archive_flag_spec_GCJ=
17173
thread_safe_flag_spec_GCJ=
17174
hardcode_libdir_flag_spec_GCJ=
17175
hardcode_libdir_flag_spec_ld_GCJ=
17176
hardcode_libdir_separator_GCJ=
17177
hardcode_direct_GCJ=no
17178
hardcode_minus_L_GCJ=no
17179
hardcode_shlibpath_var_GCJ=unsupported
17180
link_all_deplibs_GCJ=unknown
17181
hardcode_automatic_GCJ=no
17183
module_expsym_cmds_GCJ=
17184
always_export_symbols_GCJ=no
17185
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17186
# include_expsyms should be a list of space-separated symbols to be *always*
17187
# included in the symbol list
17188
include_expsyms_GCJ=
17189
# exclude_expsyms can be an extended regexp of symbols to exclude
17190
# it will be wrapped by ` (' and `)$', so one must not match beginning or
17191
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17192
# as well as any symbol that contains `d'.
17193
exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17194
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17195
# platforms (ab)use it in PIC code, but their linkers get confused if
17196
# the symbol is explicitly referenced. Since portable code cannot
17197
# rely on this symbol name, it's probably fine to never include it in
17198
# preloaded symbol tables.
17199
# Exclude shared library initialization/finalization symbols.
17200
extract_expsyms_cmds=
17201
# Just being paranoid about ensuring that cc_basename is set.
17202
for cc_temp in $compiler""; do
17204
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17205
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17210
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17213
cygwin* | mingw* | pw32*)
17214
# FIXME: the MSVC++ port hasn't been tested in a loooong time
17215
# When not using gcc, we currently assume that we are using
17216
# Microsoft Visual C++.
17217
if test "$GCC" != yes; then
17222
# we just hope/assume this is gcc and not c89 (= MSVC++)
17231
if test "$with_gnu_ld" = yes; then
17232
# If archive_cmds runs LD, not CC, wlarc should be empty
17235
# Set some defaults for GNU ld with shared library support. These
17236
# are reset later if shared libraries are not supported. Putting them
17237
# here allows them to be overridden if necessary.
17238
runpath_var=LD_RUN_PATH
17239
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17240
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17241
# ancient GNU ld didn't support --whole-archive et. al.
17242
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17243
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17245
whole_archive_flag_spec_GCJ=
17247
supports_anon_versioning=no
17248
case `$LD -v 2>/dev/null` in
17249
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17250
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17251
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17252
*\ 2.11.*) ;; # other 2.11 versions
17253
*) supports_anon_versioning=yes ;;
17256
# See if GNU ld supports shared libraries.
17259
# On AIX/PPC, the GNU linker is very broken
17260
if test "$host_cpu" != ia64; then
17264
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17265
*** to be unable to reliably create shared libraries on AIX.
17266
*** Therefore, libtool is disabling shared libraries support. If you
17267
*** really care for shared libraries, you may want to modify your PATH
17268
*** so that a non-GNU linker is found, and then restart.
17275
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)'
17276
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17277
hardcode_minus_L_GCJ=yes
17279
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17280
# that the semantics of dynamic libraries on AmigaOS, at least up
17281
# to version 4, is to share data among multiple programs linked
17282
# with the same dynamic library. Since this doesn't match the
17283
# behavior of shared libraries on other platforms, we can't use
17289
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17290
allow_undefined_flag_GCJ=unsupported
17291
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17292
# support --undefined. This deserves some investigation. FIXME
17293
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17299
cygwin* | mingw* | pw32*)
17300
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17301
# as there is no search path for DLLs.
17302
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17303
allow_undefined_flag_GCJ=unsupported
17304
always_export_symbols_GCJ=no
17305
enable_shared_with_static_runtimes_GCJ=yes
17306
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17308
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17309
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17310
# If the export-symbols file already is a .def file (1st line
17311
# is EXPORTS), use it as is; otherwise, prepend...
17312
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17313
cp $export_symbols $output_objdir/$soname.def;
17315
echo EXPORTS > $output_objdir/$soname.def;
17316
cat $export_symbols >> $output_objdir/$soname.def;
17318
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17325
hardcode_direct_GCJ=no
17326
hardcode_shlibpath_var_GCJ=no
17327
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17328
export_dynamic_flag_spec_GCJ='${wl}-E'
17329
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17330
# Instead, shared libraries are loaded at an image base (0x10000000 by
17331
# default) and relocated if they conflict, which is a slow very memory
17332
# consuming and fragmenting process. To avoid this, we pick a random,
17333
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17334
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
17335
archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17336
archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17339
gnu* | linux* | k*bsd*-gnu)
17340
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17342
case $cc_basename,$host_cpu in
17343
pgcc*) # Portland Group C compiler
17344
whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17345
tmp_addflag=' $pic_flag'
17347
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17348
whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17349
tmp_addflag=' $pic_flag -Mnomain' ;;
17350
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17351
tmp_addflag=' -i_dynamic' ;;
17352
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17353
tmp_addflag=' -i_dynamic -nofor_main' ;;
17354
ifc* | ifort*) # Intel Fortran compiler
17355
tmp_addflag=' -nofor_main' ;;
17357
case `$CC -V 2>&1 | sed 5q` in
17358
*Sun\ C*) # Sun C 5.9
17359
whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17360
tmp_sharedflag='-G' ;;
17361
*Sun\ F*) # Sun Fortran 8.3
17362
tmp_sharedflag='-G' ;;
17364
tmp_sharedflag='-shared' ;;
17366
archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17368
if test $supports_anon_versioning = yes; then
17369
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17370
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17371
$echo "local: *; };" >> $output_objdir/$libname.ver~
17372
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17374
link_all_deplibs_GCJ=no
17380
netbsd* | netbsdelf*-gnu)
17381
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17382
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17385
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17386
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17391
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17395
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17396
*** create shared libraries on Solaris systems. Therefore, libtool
17397
*** is disabling shared libraries support. We urge you to upgrade GNU
17398
*** binutils to release 2.9.1 or newer. Another option is to modify
17399
*** your PATH or compiler configuration so that the native linker is
17400
*** used, and then restart.
17403
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17404
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17405
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17411
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17412
case `$LD -v 2>&1` in
17413
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17417
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17418
*** reliably create shared libraries on SCO systems. Therefore, libtool
17419
*** is disabling shared libraries support. We urge you to upgrade GNU
17420
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17421
*** your PATH or compiler configuration so that the native linker is
17422
*** used, and then restart.
17427
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17428
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17429
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17430
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17439
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17441
hardcode_direct_GCJ=yes
17442
hardcode_shlibpath_var_GCJ=no
17446
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17447
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17448
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17455
if test "$ld_shlibs_GCJ" = no; then
17457
hardcode_libdir_flag_spec_GCJ=
17458
export_dynamic_flag_spec_GCJ=
17459
whole_archive_flag_spec_GCJ=
17462
# PORTME fill in a description of your system's linker (not GNU ld)
17465
allow_undefined_flag_GCJ=unsupported
17466
always_export_symbols_GCJ=yes
17467
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'
17468
# Note: this linker hardcodes the directories in LIBPATH if there
17469
# are no directories specified by -L.
17470
hardcode_minus_L_GCJ=yes
17471
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17472
# Neither direct hardcoding nor static linking is supported with a
17474
hardcode_direct_GCJ=unsupported
17479
if test "$host_cpu" = ia64; then
17480
# On IA64, the linker does run time linking by default, so we don't
17481
# have to do anything special.
17482
aix_use_runtimelinking=no
17483
exp_sym_flag='-Bexport'
17486
# If we're using GNU nm, then we don't want the "-C" option.
17487
# -C means demangle to AIX nm, but means don't demangle with GNU nm
17488
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17489
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'
17491
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'
17493
aix_use_runtimelinking=no
17495
# Test if we are trying to use run time linking or normal
17496
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17497
# need to do runtime linking.
17498
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17499
for ld_flag in $LDFLAGS; do
17500
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17501
aix_use_runtimelinking=yes
17508
exp_sym_flag='-bexport'
17509
no_entry_flag='-bnoentry'
17512
# When large executables or shared objects are built, AIX ld can
17513
# have problems creating the table of contents. If linking a library
17514
# or program results in "error TOC overflow" add -mminimal-toc to
17515
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17516
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17518
archive_cmds_GCJ=''
17519
hardcode_direct_GCJ=yes
17520
hardcode_libdir_separator_GCJ=':'
17521
link_all_deplibs_GCJ=yes
17523
if test "$GCC" = yes; then
17524
case $host_os in aix4.[012]|aix4.[012].*)
17525
# We only want to do this on AIX 4.2 and lower, the check
17526
# below for broken collect2 doesn't work under 4.3+
17527
collect2name=`${CC} -print-prog-name=collect2`
17528
if test -f "$collect2name" && \
17529
strings "$collect2name" | grep resolve_lib_name >/dev/null
17531
# We have reworked collect2
17534
# We have old collect2
17535
hardcode_direct_GCJ=unsupported
17536
# It fails to find uninstalled libraries when the uninstalled
17537
# path is not listed in the libpath. Setting hardcode_minus_L
17538
# to unsupported forces relinking
17539
hardcode_minus_L_GCJ=yes
17540
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17541
hardcode_libdir_separator_GCJ=
17545
shared_flag='-shared'
17546
if test "$aix_use_runtimelinking" = yes; then
17547
shared_flag="$shared_flag "'${wl}-G'
17551
if test "$host_cpu" = ia64; then
17552
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17553
# chokes on -Wl,-G. The following line is correct:
17556
if test "$aix_use_runtimelinking" = yes; then
17557
shared_flag='${wl}-G'
17559
shared_flag='${wl}-bM:SRE'
17564
# It seems that -bexpall does not export symbols beginning with
17565
# underscore (_), so it is better to generate a list of symbols to export.
17566
always_export_symbols_GCJ=yes
17567
if test "$aix_use_runtimelinking" = yes; then
17568
# Warning - without using the other runtime loading flags (-brtl),
17569
# -berok will link without error, but may produce a broken library.
17570
allow_undefined_flag_GCJ='-berok'
17571
# Determine the default libpath from the value encoded in an empty executable.
17572
cat >conftest.$ac_ext <<_ACEOF
17575
cat confdefs.h >>conftest.$ac_ext
17576
cat >>conftest.$ac_ext <<_ACEOF
17577
/* end confdefs.h. */
17587
rm -f conftest.$ac_objext conftest$ac_exeext
17588
if { (ac_try="$ac_link"
17589
case "(($ac_try" in
17590
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17591
*) ac_try_echo=$ac_try;;
17593
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17594
(eval "$ac_link") 2>conftest.er1
17596
grep -v '^ *+' conftest.er1 >conftest.err
17598
cat conftest.err >&5
17599
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600
(exit $ac_status); } && {
17601
test -z "$ac_c_werror_flag" ||
17602
test ! -s conftest.err
17603
} && test -s conftest$ac_exeext &&
17604
$as_test_x conftest$ac_exeext; then
17606
lt_aix_libpath_sed='
17607
/Import File Strings/,/^$/ {
17613
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17614
# Check for a 64-bit object if we didn't find anything.
17615
if test -z "$aix_libpath"; then
17616
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17619
echo "$as_me: failed program was:" >&5
17620
sed 's/^/| /' conftest.$ac_ext >&5
17625
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17626
conftest$ac_exeext conftest.$ac_ext
17627
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17629
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17630
archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17632
if test "$host_cpu" = ia64; then
17633
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17634
allow_undefined_flag_GCJ="-z nodefs"
17635
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17637
# Determine the default libpath from the value encoded in an empty executable.
17638
cat >conftest.$ac_ext <<_ACEOF
17641
cat confdefs.h >>conftest.$ac_ext
17642
cat >>conftest.$ac_ext <<_ACEOF
17643
/* end confdefs.h. */
17653
rm -f conftest.$ac_objext conftest$ac_exeext
17654
if { (ac_try="$ac_link"
17655
case "(($ac_try" in
17656
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17657
*) ac_try_echo=$ac_try;;
17659
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17660
(eval "$ac_link") 2>conftest.er1
17662
grep -v '^ *+' conftest.er1 >conftest.err
17664
cat conftest.err >&5
17665
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17666
(exit $ac_status); } && {
17667
test -z "$ac_c_werror_flag" ||
17668
test ! -s conftest.err
17669
} && test -s conftest$ac_exeext &&
17670
$as_test_x conftest$ac_exeext; then
17672
lt_aix_libpath_sed='
17673
/Import File Strings/,/^$/ {
17679
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17680
# Check for a 64-bit object if we didn't find anything.
17681
if test -z "$aix_libpath"; then
17682
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17685
echo "$as_me: failed program was:" >&5
17686
sed 's/^/| /' conftest.$ac_ext >&5
17691
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17692
conftest$ac_exeext conftest.$ac_ext
17693
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17695
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17696
# Warning - without using the other run time loading flags,
17697
# -berok will link without error, but may produce a broken library.
17698
no_undefined_flag_GCJ=' ${wl}-bernotok'
17699
allow_undefined_flag_GCJ=' ${wl}-berok'
17700
# Exported symbols can be pulled into shared objects from archives
17701
whole_archive_flag_spec_GCJ='$convenience'
17702
archive_cmds_need_lc_GCJ=yes
17703
# This is similar to how AIX traditionally builds its shared libraries.
17704
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17710
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)'
17711
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17712
hardcode_minus_L_GCJ=yes
17713
# see comment about different semantics on the GNU ld section
17718
export_dynamic_flag_spec_GCJ=-rdynamic
17721
cygwin* | mingw* | pw32*)
17722
# When not using gcc, we currently assume that we are using
17723
# Microsoft Visual C++.
17724
# hardcode_libdir_flag_spec is actually meaningless, as there is
17725
# no search path for DLLs.
17726
hardcode_libdir_flag_spec_GCJ=' '
17727
allow_undefined_flag_GCJ=unsupported
17728
# Tell ltmain to make .lib files, not .a files.
17730
# Tell ltmain to make .dll files, not .so files.
17732
# FIXME: Setting linknames here is a bad hack.
17733
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17734
# The linker will automatically build a .lib file if we build a DLL.
17735
old_archive_From_new_cmds_GCJ='true'
17736
# FIXME: Should let the user specify the lib program.
17737
old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17738
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17739
enable_shared_with_static_runtimes_GCJ=yes
17742
darwin* | rhapsody*)
17744
rhapsody* | darwin1.[012])
17745
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17748
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17749
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17751
case ${MACOSX_DEPLOYMENT_TARGET} in
17753
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17756
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17762
archive_cmds_need_lc_GCJ=no
17763
hardcode_direct_GCJ=no
17764
hardcode_automatic_GCJ=yes
17765
hardcode_shlibpath_var_GCJ=unsupported
17766
whole_archive_flag_spec_GCJ=''
17767
link_all_deplibs_GCJ=yes
17768
if test "$GCC" = yes ; then
17769
output_verbose_link_cmd='echo'
17770
archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17771
module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17772
archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17773
module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17775
case $cc_basename in
17777
output_verbose_link_cmd='echo'
17778
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17779
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17780
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17781
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17782
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}'
17792
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17793
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17794
hardcode_shlibpath_var_GCJ=no
17801
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17802
# support. Future versions do this automatically, but an explicit c++rt0.o
17803
# does not break anything, and helps significantly (at the cost of a little
17806
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17807
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17808
hardcode_direct_GCJ=yes
17809
hardcode_shlibpath_var_GCJ=no
17812
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
17814
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17815
hardcode_direct_GCJ=yes
17816
hardcode_minus_L_GCJ=yes
17817
hardcode_shlibpath_var_GCJ=no
17820
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17821
freebsd* | dragonfly*)
17822
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17823
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17824
hardcode_direct_GCJ=yes
17825
hardcode_shlibpath_var_GCJ=no
17829
if test "$GCC" = yes; then
17830
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'
17832
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'
17834
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17835
hardcode_libdir_separator_GCJ=:
17836
hardcode_direct_GCJ=yes
17838
# hardcode_minus_L: Not really in the search PATH,
17839
# but as the default location of the library.
17840
hardcode_minus_L_GCJ=yes
17841
export_dynamic_flag_spec_GCJ='${wl}-E'
17845
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17846
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17848
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17850
if test "$with_gnu_ld" = no; then
17851
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17852
hardcode_libdir_separator_GCJ=:
17854
hardcode_direct_GCJ=yes
17855
export_dynamic_flag_spec_GCJ='${wl}-E'
17857
# hardcode_minus_L: Not really in the search PATH,
17858
# but as the default location of the library.
17859
hardcode_minus_L_GCJ=yes
17864
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17867
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17870
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17873
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17879
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17882
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17885
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17889
if test "$with_gnu_ld" = no; then
17890
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17891
hardcode_libdir_separator_GCJ=:
17895
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17896
hardcode_direct_GCJ=no
17897
hardcode_shlibpath_var_GCJ=no
17900
hardcode_direct_GCJ=yes
17901
export_dynamic_flag_spec_GCJ='${wl}-E'
17903
# hardcode_minus_L: Not really in the search PATH,
17904
# but as the default location of the library.
17905
hardcode_minus_L_GCJ=yes
17911
irix5* | irix6* | nonstopux*)
17912
if test "$GCC" = yes; then
17913
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'
17915
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'
17916
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17918
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17919
hardcode_libdir_separator_GCJ=:
17920
link_all_deplibs_GCJ=yes
17923
netbsd* | netbsdelf*-gnu)
17924
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17925
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17927
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17929
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17930
hardcode_direct_GCJ=yes
17931
hardcode_shlibpath_var_GCJ=no
17935
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17936
hardcode_direct_GCJ=yes
17937
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17938
hardcode_libdir_separator_GCJ=:
17939
hardcode_shlibpath_var_GCJ=no
17943
if test -f /usr/libexec/ld.so; then
17944
hardcode_direct_GCJ=yes
17945
hardcode_shlibpath_var_GCJ=no
17946
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17947
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17948
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17949
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17950
export_dynamic_flag_spec_GCJ='${wl}-E'
17953
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17954
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17955
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17958
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17959
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17969
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17970
hardcode_minus_L_GCJ=yes
17971
allow_undefined_flag_GCJ=unsupported
17972
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'
17973
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17977
if test "$GCC" = yes; then
17978
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17979
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'
17981
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17982
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'
17984
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17985
hardcode_libdir_separator_GCJ=:
17988
osf4* | osf5*) # as osf3* with the addition of -msym flag
17989
if test "$GCC" = yes; then
17990
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17991
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'
17992
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17994
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17995
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'
17996
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~
17997
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17999
# Both c and cxx compiler support -rpath directly
18000
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18002
hardcode_libdir_separator_GCJ=:
18006
no_undefined_flag_GCJ=' -z text'
18007
if test "$GCC" = yes; then
18009
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18010
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18011
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18014
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18015
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18016
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18018
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18019
hardcode_shlibpath_var_GCJ=no
18021
solaris2.[0-5] | solaris2.[0-5].*) ;;
18023
# The compiler driver will combine and reorder linker options,
18024
# but understands `-z linker_flag'. GCC discards it without `$wl',
18025
# but is careful enough not to reorder.
18026
# Supported since Solaris 2.6 (maybe 2.5.1?)
18027
if test "$GCC" = yes; then
18028
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18030
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18034
link_all_deplibs_GCJ=yes
18038
if test "x$host_vendor" = xsequent; then
18039
# Use $CC to link under sequent, because it throws in some extra .o
18040
# files that make .init and .fini sections work.
18041
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18043
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18045
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18046
hardcode_direct_GCJ=yes
18047
hardcode_minus_L_GCJ=yes
18048
hardcode_shlibpath_var_GCJ=no
18052
case $host_vendor in
18054
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18055
hardcode_direct_GCJ=yes # is this really true???
18058
## LD is ld it makes a PLAMLIB
18059
## CC just makes a GrossModule.
18060
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18061
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18062
hardcode_direct_GCJ=no
18065
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18066
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18069
runpath_var='LD_RUN_PATH'
18070
hardcode_shlibpath_var_GCJ=no
18074
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18075
hardcode_shlibpath_var_GCJ=no
18076
export_dynamic_flag_spec_GCJ='-Bexport'
18080
if test -d /usr/nec; then
18081
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18082
hardcode_shlibpath_var_GCJ=no
18083
runpath_var=LD_RUN_PATH
18084
hardcode_runpath_var=yes
18089
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18090
no_undefined_flag_GCJ='${wl}-z,text'
18091
archive_cmds_need_lc_GCJ=no
18092
hardcode_shlibpath_var_GCJ=no
18093
runpath_var='LD_RUN_PATH'
18095
if test "$GCC" = yes; then
18096
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18097
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18099
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18100
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18104
sysv5* | sco3.2v5* | sco5v6*)
18105
# Note: We can NOT use -z defs as we might desire, because we do not
18106
# link with -lc, and that would cause any symbols used from libc to
18107
# always be unresolved, which means just about no library would
18108
# ever link correctly. If we're not using GNU ld we use -z text
18109
# though, which does catch some bad symbols but isn't as heavy-handed
18111
no_undefined_flag_GCJ='${wl}-z,text'
18112
allow_undefined_flag_GCJ='${wl}-z,nodefs'
18113
archive_cmds_need_lc_GCJ=no
18114
hardcode_shlibpath_var_GCJ=no
18115
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18116
hardcode_libdir_separator_GCJ=':'
18117
link_all_deplibs_GCJ=yes
18118
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18119
runpath_var='LD_RUN_PATH'
18121
if test "$GCC" = yes; then
18122
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18123
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18125
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18126
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18131
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18132
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18133
hardcode_shlibpath_var_GCJ=no
18142
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18143
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18144
test "$ld_shlibs_GCJ" = no && can_build_shared=no
18147
# Do we need to explicitly link libc?
18149
case "x$archive_cmds_need_lc_GCJ" in
18151
# Assume -lc should be added
18152
archive_cmds_need_lc_GCJ=yes
18154
if test "$enable_shared" = yes && test "$GCC" = yes; then
18155
case $archive_cmds_GCJ in
18157
# FIXME: we may have to deal with multi-command sequences.
18160
# Test whether the compiler implicitly links with -lc since on some
18161
# systems, -lgcc has to come before -lc. If gcc already passes -lc
18162
# to ld, don't add -lc before -lgcc.
18163
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18164
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18166
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18168
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18169
(eval $ac_compile) 2>&5
18171
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18172
(exit $ac_status); } 2>conftest.err; then
18175
libobjs=conftest.$ac_objext
18177
wl=$lt_prog_compiler_wl_GCJ
18178
pic_flag=$lt_prog_compiler_pic_GCJ
18184
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18185
allow_undefined_flag_GCJ=
18186
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18187
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18189
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190
(exit $ac_status); }
18192
archive_cmds_need_lc_GCJ=no
18194
archive_cmds_need_lc_GCJ=yes
18196
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18198
cat conftest.err 1>&5
18201
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18202
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18209
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18210
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18211
library_names_spec=
18212
libname_spec='lib$name'
18216
postuninstall_cmds=
18220
shlibpath_overrides_runpath=unknown
18222
dynamic_linker="$host_os ld.so"
18223
sys_lib_dlsearch_path_spec="/lib /usr/lib"
18225
need_lib_prefix=unknown
18226
hardcode_into_libs=no
18228
# when you set need_version to no, make sure it does not cause -set_version
18229
# flags to be left without arguments
18230
need_version=unknown
18235
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18236
shlibpath_var=LIBPATH
18238
# AIX 3 has no versioning support, so we append a major version to the name.
18239
soname_spec='${libname}${release}${shared_ext}$major'
18246
hardcode_into_libs=yes
18247
if test "$host_cpu" = ia64; then
18248
# AIX 5 supports IA64
18249
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18250
shlibpath_var=LD_LIBRARY_PATH
18252
# With GCC up to 2.95.x, collect2 would create an import file
18253
# for dependence libraries. The import file would start with
18254
# the line `#! .'. This would cause the generated library to
18255
# depend on `.', always an invalid library. This was fixed in
18256
# development snapshots of GCC prior to 3.0.
18258
aix4 | aix4.[01] | aix4.[01].*)
18259
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18261
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18264
can_build_shared=no
18268
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18269
# soname into executable. Probably we can add versioning support to
18270
# collect2, so additional links can be useful in future.
18271
if test "$aix_use_runtimelinking" = yes; then
18272
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
18273
# instead of lib<name>.a to let people know that these are not
18274
# typical AIX shared libraries.
18275
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18277
# We preserve .a as extension for shared libraries through AIX4.2
18278
# and later when we are not doing run time linking.
18279
library_names_spec='${libname}${release}.a $libname.a'
18280
soname_spec='${libname}${release}${shared_ext}$major'
18282
shlibpath_var=LIBPATH
18287
library_names_spec='$libname.ixlibrary $libname.a'
18288
# Create ${libname}_ixlibrary.a entries in /sys/libs.
18289
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'
18293
library_names_spec='${libname}${shared_ext}'
18294
dynamic_linker="$host_os ld.so"
18295
shlibpath_var=LIBRARY_PATH
18301
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18302
soname_spec='${libname}${release}${shared_ext}$major'
18303
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18304
shlibpath_var=LD_LIBRARY_PATH
18305
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18306
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18307
# the default ld.so.conf also contains /usr/contrib/lib and
18308
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18309
# libtool to hard-code these into programs
18312
cygwin* | mingw* | pw32*)
18313
version_type=windows
18318
case $GCC,$host_os in
18319
yes,cygwin* | yes,mingw* | yes,pw32*)
18320
library_names_spec='$libname.dll.a'
18321
# DLL is installed to $(libdir)/../bin by postinstall_cmds
18322
postinstall_cmds='base_file=`basename \${file}`~
18323
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18324
dldir=$destdir/`dirname \$dlpath`~
18325
test -d \$dldir || mkdir -p \$dldir~
18326
$install_prog $dir/$dlname \$dldir/$dlname~
18327
chmod a+x \$dldir/$dlname'
18328
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18329
dlpath=$dir/\$dldll~
18331
shlibpath_overrides_runpath=yes
18335
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
18336
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18337
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18340
# MinGW DLLs use traditional 'lib' prefix
18341
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18342
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18343
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18344
# It is most probably a Windows format PATH printed by
18345
# mingw gcc, but we are running on Cygwin. Gcc prints its search
18346
# path with ; separators, and with drive letters. We can handle the
18347
# drive letters (cygwin fileutils understands them), so leave them,
18348
# especially as we might pass files found there to a mingw objdump,
18349
# which wouldn't understand a cygwinified path. Ahh.
18350
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18352
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18356
# pw32 DLLs use 'pw' prefix rather than 'lib'
18357
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18363
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18366
dynamic_linker='Win32 ld.exe'
18367
# FIXME: first we should search . and the directory the executable is in
18371
darwin* | rhapsody*)
18372
dynamic_linker="$host_os dyld"
18373
version_type=darwin
18376
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18377
soname_spec='${libname}${release}${major}$shared_ext'
18378
shlibpath_overrides_runpath=yes
18379
shlibpath_var=DYLD_LIBRARY_PATH
18380
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18382
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18389
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18390
soname_spec='${libname}${release}${shared_ext}$major'
18391
shlibpath_var=LD_LIBRARY_PATH
18398
freebsd* | dragonfly*)
18399
# DragonFly does not have aout. When/if they implement a new
18400
# versioning mechanism, adjust this.
18401
if test -x /usr/bin/objformat; then
18402
objformat=`/usr/bin/objformat`
18405
freebsd[123]*) objformat=aout ;;
18406
*) objformat=elf ;;
18409
version_type=freebsd-$objformat
18410
case $version_type in
18412
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18417
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18421
shlibpath_var=LD_LIBRARY_PATH
18424
shlibpath_overrides_runpath=yes
18426
freebsd3.[01]* | freebsdelf3.[01]*)
18427
shlibpath_overrides_runpath=yes
18428
hardcode_into_libs=yes
18430
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18431
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18432
shlibpath_overrides_runpath=no
18433
hardcode_into_libs=yes
18435
*) # from 4.6 on, and DragonFly
18436
shlibpath_overrides_runpath=yes
18437
hardcode_into_libs=yes
18446
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18447
soname_spec='${libname}${release}${shared_ext}$major'
18448
shlibpath_var=LD_LIBRARY_PATH
18449
hardcode_into_libs=yes
18452
hpux9* | hpux10* | hpux11*)
18453
# Give a soname corresponding to the major version so that dld.sl refuses to
18454
# link against other versions.
18461
hardcode_into_libs=yes
18462
dynamic_linker="$host_os dld.so"
18463
shlibpath_var=LD_LIBRARY_PATH
18464
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18465
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18466
soname_spec='${libname}${release}${shared_ext}$major'
18467
if test "X$HPUX_IA64_MODE" = X32; then
18468
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18470
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18472
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18476
hardcode_into_libs=yes
18477
dynamic_linker="$host_os dld.sl"
18478
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18479
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18480
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18481
soname_spec='${libname}${release}${shared_ext}$major'
18482
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18483
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18487
dynamic_linker="$host_os dld.sl"
18488
shlibpath_var=SHLIB_PATH
18489
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18490
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18491
soname_spec='${libname}${release}${shared_ext}$major'
18494
# HP-UX runs *really* slowly unless shared libraries are mode 555.
18495
postinstall_cmds='chmod 555 $lib'
18502
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18503
soname_spec='${libname}${release}${shared_ext}$major'
18504
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18505
shlibpath_var=LD_LIBRARY_PATH
18506
shlibpath_overrides_runpath=no
18507
hardcode_into_libs=yes
18510
irix5* | irix6* | nonstopux*)
18512
nonstopux*) version_type=nonstopux ;;
18514
if test "$lt_cv_prog_gnu_ld" = yes; then
18522
soname_spec='${libname}${release}${shared_ext}$major'
18523
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18525
irix5* | nonstopux*)
18526
libsuff= shlibsuff=
18529
case $LD in # libtool.m4 will add one of these switches to LD
18530
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18531
libsuff= shlibsuff= libmagic=32-bit;;
18532
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18533
libsuff=32 shlibsuff=N32 libmagic=N32;;
18534
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18535
libsuff=64 shlibsuff=64 libmagic=64-bit;;
18536
*) libsuff= shlibsuff= libmagic=never-match;;
18540
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18541
shlibpath_overrides_runpath=no
18542
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18543
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18544
hardcode_into_libs=yes
18547
# No shared lib support for Linux oldld, aout, or coff.
18548
linux*oldld* | linux*aout* | linux*coff*)
18552
# This must be Linux ELF.
18553
linux* | k*bsd*-gnu)
18557
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18558
soname_spec='${libname}${release}${shared_ext}$major'
18559
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18560
shlibpath_var=LD_LIBRARY_PATH
18561
shlibpath_overrides_runpath=no
18562
# This implies no fast_install, which is unacceptable.
18563
# Some rework will be needed to allow for fast_install
18564
# before this can be enabled.
18565
hardcode_into_libs=yes
18567
# Append ld.so.conf contents to the search path
18568
if test -f /etc/ld.so.conf; then
18569
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18570
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18573
# We used to test for /lib/ld.so.1 and disable shared libraries on
18574
# powerpc, because MkLinux only supported shared libraries with the
18575
# GNU dynamic linker. Since this was broken with cross compilers,
18576
# most powerpc-linux boxes support dynamic linking these days and
18577
# people can always --disable-shared, the test was removed, and we
18578
# assume the GNU/Linux dynamic linker is in use.
18579
dynamic_linker='GNU/Linux ld.so'
18586
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18587
soname_spec='${libname}${release}${shared_ext}$major'
18588
shlibpath_var=LD_LIBRARY_PATH
18589
shlibpath_overrides_runpath=no
18590
hardcode_into_libs=yes
18591
dynamic_linker='NetBSD ld.elf_so'
18598
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18599
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18600
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18601
dynamic_linker='NetBSD (a.out) ld.so'
18603
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18604
soname_spec='${libname}${release}${shared_ext}$major'
18605
dynamic_linker='NetBSD ld.elf_so'
18607
shlibpath_var=LD_LIBRARY_PATH
18608
shlibpath_overrides_runpath=yes
18609
hardcode_into_libs=yes
18614
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18615
shlibpath_var=LD_LIBRARY_PATH
18616
shlibpath_overrides_runpath=yes
18623
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18624
soname_spec='${libname}${release}${shared_ext}$major'
18625
shlibpath_var=LD_LIBRARY_PATH
18626
shlibpath_overrides_runpath=yes
18631
sys_lib_dlsearch_path_spec="/usr/lib"
18633
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18635
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18636
*) need_version=no ;;
18638
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18639
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18640
shlibpath_var=LD_LIBRARY_PATH
18641
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18643
openbsd2.[89] | openbsd2.[89].*)
18644
shlibpath_overrides_runpath=no
18647
shlibpath_overrides_runpath=yes
18651
shlibpath_overrides_runpath=yes
18656
libname_spec='$name'
18659
library_names_spec='$libname${shared_ext} $libname.a'
18660
dynamic_linker='OS/2 ld.exe'
18661
shlibpath_var=LIBPATH
18664
osf3* | osf4* | osf5*)
18668
soname_spec='${libname}${release}${shared_ext}$major'
18669
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18670
shlibpath_var=LD_LIBRARY_PATH
18671
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18672
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18683
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18684
soname_spec='${libname}${release}${shared_ext}$major'
18685
shlibpath_var=LD_LIBRARY_PATH
18686
shlibpath_overrides_runpath=yes
18687
hardcode_into_libs=yes
18688
# ldd complains unless libraries are executable
18689
postinstall_cmds='chmod +x $lib'
18694
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18695
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18696
shlibpath_var=LD_LIBRARY_PATH
18697
shlibpath_overrides_runpath=yes
18698
if test "$with_gnu_ld" = yes; then
18706
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18707
soname_spec='${libname}${release}${shared_ext}$major'
18708
shlibpath_var=LD_LIBRARY_PATH
18709
case $host_vendor in
18711
shlibpath_overrides_runpath=no
18713
export_dynamic_flag_spec='${wl}-Blargedynsym'
18714
runpath_var=LD_RUN_PATH
18722
shlibpath_overrides_runpath=no
18723
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18729
if test -d /usr/nec ;then
18731
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18732
soname_spec='$libname${shared_ext}.$major'
18733
shlibpath_var=LD_LIBRARY_PATH
18737
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18738
version_type=freebsd-elf
18741
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18742
soname_spec='${libname}${release}${shared_ext}$major'
18743
shlibpath_var=LD_LIBRARY_PATH
18744
hardcode_into_libs=yes
18745
if test "$with_gnu_ld" = yes; then
18746
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18747
shlibpath_overrides_runpath=no
18749
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18750
shlibpath_overrides_runpath=yes
18753
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18757
sys_lib_dlsearch_path_spec='/usr/lib'
18762
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18763
soname_spec='${libname}${release}${shared_ext}$major'
18764
shlibpath_var=LD_LIBRARY_PATH
18771
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18772
echo "${ECHO_T}$dynamic_linker" >&6; }
18773
test "$dynamic_linker" = no && can_build_shared=no
18775
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18776
echo $ECHO_N "(cached) $ECHO_C" >&6
18778
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18781
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18782
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18783
echo $ECHO_N "(cached) $ECHO_C" >&6
18785
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18788
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18790
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18791
if test "$GCC" = yes; then
18792
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18795
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18796
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18797
hardcode_action_GCJ=
18798
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18799
test -n "$runpath_var_GCJ" || \
18800
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18802
# We can hardcode non-existant directories.
18803
if test "$hardcode_direct_GCJ" != no &&
18804
# If the only mechanism to avoid hardcoding is shlibpath_var, we
18805
# have to relink, otherwise we might link with an installed library
18806
# when we should be linking with a yet-to-be-installed one
18807
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18808
test "$hardcode_minus_L_GCJ" != no; then
18809
# Linking always hardcodes the temporary library directory.
18810
hardcode_action_GCJ=relink
18812
# We can link without hardcoding, and we can hardcode nonexisting dirs.
18813
hardcode_action_GCJ=immediate
18816
# We cannot hardcode anything, or else we can only hardcode existing
18818
hardcode_action_GCJ=unsupported
18820
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18821
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18823
if test "$hardcode_action_GCJ" = relink; then
18824
# Fast installation is not supported
18825
enable_fast_install=no
18826
elif test "$shlibpath_overrides_runpath" = yes ||
18827
test "$enable_shared" = no; then
18828
# Fast installation is not necessary
18829
enable_fast_install=needless
18833
# The else clause should only fire when bootstrapping the
18834
# libtool distribution, otherwise you forgot to ship ltmain.sh
18835
# with your package, and you will get complaints that there are
18836
# no rules to generate ltmain.sh.
18837
if test -f "$ltmain"; then
18838
# See if we are running on zsh, and set the options which allow our commands through
18839
# without removal of \ escapes.
18840
if test -n "${ZSH_VERSION+set}" ; then
18841
setopt NO_GLOB_SUBST
18843
# Now quote all the things that may contain metacharacters while being
18844
# careful not to overquote the AC_SUBSTed values. We take copies of the
18845
# variables and quote the copies for generation of the libtool script.
18846
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18848
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18849
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18850
deplibs_check_method reload_flag reload_cmds need_locks \
18851
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18852
lt_cv_sys_global_symbol_to_c_name_address \
18853
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18854
old_postinstall_cmds old_postuninstall_cmds \
18858
lt_prog_compiler_wl_GCJ \
18859
lt_prog_compiler_pic_GCJ \
18860
lt_prog_compiler_static_GCJ \
18861
lt_prog_compiler_no_builtin_flag_GCJ \
18862
export_dynamic_flag_spec_GCJ \
18863
thread_safe_flag_spec_GCJ \
18864
whole_archive_flag_spec_GCJ \
18865
enable_shared_with_static_runtimes_GCJ \
18866
old_archive_cmds_GCJ \
18867
old_archive_from_new_cmds_GCJ \
18868
predep_objects_GCJ \
18869
postdep_objects_GCJ \
18872
compiler_lib_search_path_GCJ \
18873
compiler_lib_search_dirs_GCJ \
18875
archive_expsym_cmds_GCJ \
18876
postinstall_cmds_GCJ \
18877
postuninstall_cmds_GCJ \
18878
old_archive_from_expsyms_cmds_GCJ \
18879
allow_undefined_flag_GCJ \
18880
no_undefined_flag_GCJ \
18881
export_symbols_cmds_GCJ \
18882
hardcode_libdir_flag_spec_GCJ \
18883
hardcode_libdir_flag_spec_ld_GCJ \
18884
hardcode_libdir_separator_GCJ \
18885
hardcode_automatic_GCJ \
18887
module_expsym_cmds_GCJ \
18888
lt_cv_prog_compiler_c_o_GCJ \
18889
fix_srcfile_path_GCJ \
18890
exclude_expsyms_GCJ \
18891
include_expsyms_GCJ; do
18894
old_archive_cmds_GCJ | \
18895
old_archive_from_new_cmds_GCJ | \
18896
archive_cmds_GCJ | \
18897
archive_expsym_cmds_GCJ | \
18898
module_cmds_GCJ | \
18899
module_expsym_cmds_GCJ | \
18900
old_archive_from_expsyms_cmds_GCJ | \
18901
export_symbols_cmds_GCJ | \
18902
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18903
postinstall_cmds | postuninstall_cmds | \
18904
old_postinstall_cmds | old_postuninstall_cmds | \
18905
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18906
# Double-quote double-evaled strings.
18907
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18910
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18916
*'\$0 --fallback-echo"')
18917
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18923
cat <<__EOF__ >> "$cfgfile"
18924
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18926
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18928
# Shell to use when invoking shell scripts.
18931
# Whether or not to build shared libraries.
18932
build_libtool_libs=$enable_shared
18934
# Whether or not to build static libraries.
18935
build_old_libs=$enable_static
18937
# Whether or not to add -lc for building shared libraries.
18938
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18940
# Whether or not to disallow shared libs when runtime libs are static
18941
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18943
# Whether or not to optimize for fast installation.
18944
fast_install=$enable_fast_install
18947
host_alias=$host_alias
18951
# The build system.
18952
build_alias=$build_alias
18956
# An echo program that does not interpret backslashes.
18961
AR_FLAGS=$lt_AR_FLAGS
18966
# LTCC compiler flags.
18967
LTCFLAGS=$lt_LTCFLAGS
18969
# A language-specific compiler.
18970
CC=$lt_compiler_GCJ
18972
# Is the compiler the GNU C compiler?
18978
# The linker used to build libraries.
18981
# Whether we need hard or soft links.
18984
# A BSD-compatible nm program.
18987
# A symbol stripping program
18990
# Used to examine libraries when file_magic_cmd begins "file"
18991
MAGIC_CMD=$MAGIC_CMD
18993
# Used on cygwin: DLL creation program.
18996
# Used on cygwin: object dumper.
18999
# Used on cygwin: assembler.
19002
# The name of the directory that contains temporary libtool files.
19005
# How to create reloadable object files.
19006
reload_flag=$lt_reload_flag
19007
reload_cmds=$lt_reload_cmds
19009
# How to pass a linker flag through the compiler.
19010
wl=$lt_lt_prog_compiler_wl_GCJ
19012
# Object file suffix (normally "o").
19013
objext="$ac_objext"
19015
# Old archive suffix (normally "a").
19018
# Shared library suffix (normally ".so").
19019
shrext_cmds='$shrext_cmds'
19021
# Executable file suffix (normally "").
19024
# Additional compiler flags for building library objects.
19025
pic_flag=$lt_lt_prog_compiler_pic_GCJ
19028
# What is the maximum length of a command?
19029
max_cmd_len=$lt_cv_sys_max_cmd_len
19031
# Does compiler simultaneously support -c and -o options?
19032
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19034
# Must we lock files when doing compilation?
19035
need_locks=$lt_need_locks
19037
# Do we need the lib prefix for modules?
19038
need_lib_prefix=$need_lib_prefix
19040
# Do we need a version for libraries?
19041
need_version=$need_version
19043
# Whether dlopen is supported.
19044
dlopen_support=$enable_dlopen
19046
# Whether dlopen of programs is supported.
19047
dlopen_self=$enable_dlopen_self
19049
# Whether dlopen of statically linked programs is supported.
19050
dlopen_self_static=$enable_dlopen_self_static
19052
# Compiler flag to prevent dynamic linking.
19053
link_static_flag=$lt_lt_prog_compiler_static_GCJ
19055
# Compiler flag to turn off builtin functions.
19056
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19058
# Compiler flag to allow reflexive dlopens.
19059
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19061
# Compiler flag to generate shared objects directly from archives.
19062
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19064
# Compiler flag to generate thread-safe objects.
19065
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19067
# Library versioning type.
19068
version_type=$version_type
19070
# Format of library name prefix.
19071
libname_spec=$lt_libname_spec
19073
# List of archive names. First name is the real one, the rest are links.
19074
# The last name is the one that the linker finds with -lNAME.
19075
library_names_spec=$lt_library_names_spec
19077
# The coded name of the library, if different from the real name.
19078
soname_spec=$lt_soname_spec
19080
# Commands used to build and install an old-style archive.
19082
old_archive_cmds=$lt_old_archive_cmds_GCJ
19083
old_postinstall_cmds=$lt_old_postinstall_cmds
19084
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19086
# Create an old-style archive from a shared archive.
19087
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19089
# Create a temporary old-style archive to link instead of a shared archive.
19090
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19092
# Commands used to build and install a shared archive.
19093
archive_cmds=$lt_archive_cmds_GCJ
19094
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19095
postinstall_cmds=$lt_postinstall_cmds
19096
postuninstall_cmds=$lt_postuninstall_cmds
19098
# Commands used to build a loadable module (assumed same as above if empty)
19099
module_cmds=$lt_module_cmds_GCJ
19100
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19102
# Commands to strip libraries.
19103
old_striplib=$lt_old_striplib
19104
striplib=$lt_striplib
19106
# Dependencies to place before the objects being linked to create a
19108
predep_objects=$lt_predep_objects_GCJ
19110
# Dependencies to place after the objects being linked to create a
19112
postdep_objects=$lt_postdep_objects_GCJ
19114
# Dependencies to place before the objects being linked to create a
19116
predeps=$lt_predeps_GCJ
19118
# Dependencies to place after the objects being linked to create a
19120
postdeps=$lt_postdeps_GCJ
19122
# The directories searched by this compiler when creating a shared
19124
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19126
# The library search path used internally by the compiler when linking
19127
# a shared library.
19128
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19130
# Method to check whether dependent libraries are shared objects.
19131
deplibs_check_method=$lt_deplibs_check_method
19133
# Command to use when deplibs_check_method == file_magic.
19134
file_magic_cmd=$lt_file_magic_cmd
19136
# Flag that allows shared libraries with undefined symbols to be built.
19137
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19139
# Flag that forces no undefined symbols.
19140
no_undefined_flag=$lt_no_undefined_flag_GCJ
19142
# Commands used to finish a libtool library installation in a directory.
19143
finish_cmds=$lt_finish_cmds
19145
# Same as above, but a single script fragment to be evaled but not shown.
19146
finish_eval=$lt_finish_eval
19148
# Take the output of nm and produce a listing of raw symbols and C names.
19149
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19151
# Transform the output of nm in a proper C declaration
19152
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19154
# Transform the output of nm in a C name address pair
19155
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19157
# This is the shared library runtime path variable.
19158
runpath_var=$runpath_var
19160
# This is the shared library path variable.
19161
shlibpath_var=$shlibpath_var
19163
# Is shlibpath searched before the hard-coded library search path?
19164
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19166
# How to hardcode a shared library path into an executable.
19167
hardcode_action=$hardcode_action_GCJ
19169
# Whether we should hardcode library paths into libraries.
19170
hardcode_into_libs=$hardcode_into_libs
19172
# Flag to hardcode \$libdir into a binary during linking.
19173
# This must work even if \$libdir does not exist.
19174
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19176
# If ld is used when linking, flag to hardcode \$libdir into
19177
# a binary during linking. This must work even if \$libdir does
19179
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19181
# Whether we need a single -rpath flag with a separated argument.
19182
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19184
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19185
# resulting binary.
19186
hardcode_direct=$hardcode_direct_GCJ
19188
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19189
# resulting binary.
19190
hardcode_minus_L=$hardcode_minus_L_GCJ
19192
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19193
# the resulting binary.
19194
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19196
# Set to yes if building a shared library automatically hardcodes DIR into the library
19197
# and all subsequent libraries and executables linked against it.
19198
hardcode_automatic=$hardcode_automatic_GCJ
19200
# Variables whose values should be saved in libtool wrapper scripts and
19201
# restored at relink time.
19202
variables_saved_for_relink="$variables_saved_for_relink"
19204
# Whether libtool must link a program against all its dependency libraries.
19205
link_all_deplibs=$link_all_deplibs_GCJ
19207
# Compile-time system search path for libraries
19208
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19210
# Run-time system search path for libraries
19211
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19213
# Fix the shell variable \$srcfile for the compiler.
19214
fix_srcfile_path=$lt_fix_srcfile_path
19216
# Set to yes if exported symbols are required.
19217
always_export_symbols=$always_export_symbols_GCJ
19219
# The commands to list exported symbols.
19220
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19222
# The commands to extract the exported symbol list from a shared archive.
19223
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19225
# Symbols that should not be listed in the preloaded symbols.
19226
exclude_expsyms=$lt_exclude_expsyms_GCJ
19228
# Symbols that must always be exported.
19229
include_expsyms=$lt_include_expsyms_GCJ
19231
# ### END LIBTOOL TAG CONFIG: $tagname
19237
# If there is no Makefile yet, we rely on a make rule to execute
19238
# `config.status --recheck' to rerun these tests and create the
19239
# libtool script then.
19240
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19241
if test -f "$ltmain_in"; then
19242
test -f Makefile && make "$ltmain"
19248
ac_cpp='$CPP $CPPFLAGS'
19249
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19250
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19251
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19263
# Source file extension for RC test sources.
19266
# Object file extension for compiled RC test sources.
19270
# Code to be used in simple compile tests
19271
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19273
# Code to be used in simple link tests
19274
lt_simple_link_test_code="$lt_simple_compile_test_code"
19276
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19278
# If no C compiler was specified, use CC.
19281
# If no C compiler flags were specified, use CFLAGS.
19282
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19284
# Allow CC to be a program name with arguments.
19288
# save warnings/boilerplate of simple test code
19289
ac_outfile=conftest.$ac_objext
19290
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19291
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19292
_lt_compiler_boilerplate=`cat conftest.err`
19295
ac_outfile=conftest.$ac_objext
19296
echo "$lt_simple_link_test_code" >conftest.$ac_ext
19297
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19298
_lt_linker_boilerplate=`cat conftest.err`
19302
# Allow CC to be a program name with arguments.
19307
for cc_temp in $compiler""; do
19309
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19310
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19315
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19317
lt_cv_prog_compiler_c_o_RC=yes
19319
# The else clause should only fire when bootstrapping the
19320
# libtool distribution, otherwise you forgot to ship ltmain.sh
19321
# with your package, and you will get complaints that there are
19322
# no rules to generate ltmain.sh.
19323
if test -f "$ltmain"; then
19324
# See if we are running on zsh, and set the options which allow our commands through
19325
# without removal of \ escapes.
19326
if test -n "${ZSH_VERSION+set}" ; then
19327
setopt NO_GLOB_SUBST
19329
# Now quote all the things that may contain metacharacters while being
19330
# careful not to overquote the AC_SUBSTed values. We take copies of the
19331
# variables and quote the copies for generation of the libtool script.
19332
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19334
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19335
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19336
deplibs_check_method reload_flag reload_cmds need_locks \
19337
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19338
lt_cv_sys_global_symbol_to_c_name_address \
19339
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19340
old_postinstall_cmds old_postuninstall_cmds \
19344
lt_prog_compiler_wl_RC \
19345
lt_prog_compiler_pic_RC \
19346
lt_prog_compiler_static_RC \
19347
lt_prog_compiler_no_builtin_flag_RC \
19348
export_dynamic_flag_spec_RC \
19349
thread_safe_flag_spec_RC \
19350
whole_archive_flag_spec_RC \
19351
enable_shared_with_static_runtimes_RC \
19352
old_archive_cmds_RC \
19353
old_archive_from_new_cmds_RC \
19354
predep_objects_RC \
19355
postdep_objects_RC \
19358
compiler_lib_search_path_RC \
19359
compiler_lib_search_dirs_RC \
19361
archive_expsym_cmds_RC \
19362
postinstall_cmds_RC \
19363
postuninstall_cmds_RC \
19364
old_archive_from_expsyms_cmds_RC \
19365
allow_undefined_flag_RC \
19366
no_undefined_flag_RC \
19367
export_symbols_cmds_RC \
19368
hardcode_libdir_flag_spec_RC \
19369
hardcode_libdir_flag_spec_ld_RC \
19370
hardcode_libdir_separator_RC \
19371
hardcode_automatic_RC \
19373
module_expsym_cmds_RC \
19374
lt_cv_prog_compiler_c_o_RC \
19375
fix_srcfile_path_RC \
19376
exclude_expsyms_RC \
19377
include_expsyms_RC; do
19380
old_archive_cmds_RC | \
19381
old_archive_from_new_cmds_RC | \
19382
archive_cmds_RC | \
19383
archive_expsym_cmds_RC | \
19385
module_expsym_cmds_RC | \
19386
old_archive_from_expsyms_cmds_RC | \
19387
export_symbols_cmds_RC | \
19388
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19389
postinstall_cmds | postuninstall_cmds | \
19390
old_postinstall_cmds | old_postuninstall_cmds | \
19391
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19392
# Double-quote double-evaled strings.
19393
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19396
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19402
*'\$0 --fallback-echo"')
19403
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19409
cat <<__EOF__ >> "$cfgfile"
19410
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19412
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19414
# Shell to use when invoking shell scripts.
19417
# Whether or not to build shared libraries.
19418
build_libtool_libs=$enable_shared
19420
# Whether or not to build static libraries.
19421
build_old_libs=$enable_static
19423
# Whether or not to add -lc for building shared libraries.
19424
build_libtool_need_lc=$archive_cmds_need_lc_RC
19426
# Whether or not to disallow shared libs when runtime libs are static
19427
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19429
# Whether or not to optimize for fast installation.
19430
fast_install=$enable_fast_install
19433
host_alias=$host_alias
19437
# The build system.
19438
build_alias=$build_alias
19442
# An echo program that does not interpret backslashes.
19447
AR_FLAGS=$lt_AR_FLAGS
19452
# LTCC compiler flags.
19453
LTCFLAGS=$lt_LTCFLAGS
19455
# A language-specific compiler.
19458
# Is the compiler the GNU C compiler?
19464
# The linker used to build libraries.
19467
# Whether we need hard or soft links.
19470
# A BSD-compatible nm program.
19473
# A symbol stripping program
19476
# Used to examine libraries when file_magic_cmd begins "file"
19477
MAGIC_CMD=$MAGIC_CMD
19479
# Used on cygwin: DLL creation program.
19482
# Used on cygwin: object dumper.
19485
# Used on cygwin: assembler.
19488
# The name of the directory that contains temporary libtool files.
19491
# How to create reloadable object files.
19492
reload_flag=$lt_reload_flag
19493
reload_cmds=$lt_reload_cmds
19495
# How to pass a linker flag through the compiler.
19496
wl=$lt_lt_prog_compiler_wl_RC
19498
# Object file suffix (normally "o").
19499
objext="$ac_objext"
19501
# Old archive suffix (normally "a").
19504
# Shared library suffix (normally ".so").
19505
shrext_cmds='$shrext_cmds'
19507
# Executable file suffix (normally "").
19510
# Additional compiler flags for building library objects.
19511
pic_flag=$lt_lt_prog_compiler_pic_RC
19514
# What is the maximum length of a command?
19515
max_cmd_len=$lt_cv_sys_max_cmd_len
19517
# Does compiler simultaneously support -c and -o options?
19518
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19520
# Must we lock files when doing compilation?
19521
need_locks=$lt_need_locks
19523
# Do we need the lib prefix for modules?
19524
need_lib_prefix=$need_lib_prefix
19526
# Do we need a version for libraries?
19527
need_version=$need_version
19529
# Whether dlopen is supported.
19530
dlopen_support=$enable_dlopen
19532
# Whether dlopen of programs is supported.
19533
dlopen_self=$enable_dlopen_self
19535
# Whether dlopen of statically linked programs is supported.
19536
dlopen_self_static=$enable_dlopen_self_static
19538
# Compiler flag to prevent dynamic linking.
19539
link_static_flag=$lt_lt_prog_compiler_static_RC
19541
# Compiler flag to turn off builtin functions.
19542
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19544
# Compiler flag to allow reflexive dlopens.
19545
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19547
# Compiler flag to generate shared objects directly from archives.
19548
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19550
# Compiler flag to generate thread-safe objects.
19551
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19553
# Library versioning type.
19554
version_type=$version_type
19556
# Format of library name prefix.
19557
libname_spec=$lt_libname_spec
19559
# List of archive names. First name is the real one, the rest are links.
19560
# The last name is the one that the linker finds with -lNAME.
19561
library_names_spec=$lt_library_names_spec
19563
# The coded name of the library, if different from the real name.
19564
soname_spec=$lt_soname_spec
19566
# Commands used to build and install an old-style archive.
19568
old_archive_cmds=$lt_old_archive_cmds_RC
19569
old_postinstall_cmds=$lt_old_postinstall_cmds
19570
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19572
# Create an old-style archive from a shared archive.
19573
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19575
# Create a temporary old-style archive to link instead of a shared archive.
19576
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19578
# Commands used to build and install a shared archive.
19579
archive_cmds=$lt_archive_cmds_RC
19580
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19581
postinstall_cmds=$lt_postinstall_cmds
19582
postuninstall_cmds=$lt_postuninstall_cmds
19584
# Commands used to build a loadable module (assumed same as above if empty)
19585
module_cmds=$lt_module_cmds_RC
19586
module_expsym_cmds=$lt_module_expsym_cmds_RC
19588
# Commands to strip libraries.
19589
old_striplib=$lt_old_striplib
19590
striplib=$lt_striplib
19592
# Dependencies to place before the objects being linked to create a
19594
predep_objects=$lt_predep_objects_RC
19596
# Dependencies to place after the objects being linked to create a
19598
postdep_objects=$lt_postdep_objects_RC
19600
# Dependencies to place before the objects being linked to create a
19602
predeps=$lt_predeps_RC
19604
# Dependencies to place after the objects being linked to create a
19606
postdeps=$lt_postdeps_RC
19608
# The directories searched by this compiler when creating a shared
19610
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19612
# The library search path used internally by the compiler when linking
19613
# a shared library.
19614
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19616
# Method to check whether dependent libraries are shared objects.
19617
deplibs_check_method=$lt_deplibs_check_method
19619
# Command to use when deplibs_check_method == file_magic.
19620
file_magic_cmd=$lt_file_magic_cmd
19622
# Flag that allows shared libraries with undefined symbols to be built.
19623
allow_undefined_flag=$lt_allow_undefined_flag_RC
19625
# Flag that forces no undefined symbols.
19626
no_undefined_flag=$lt_no_undefined_flag_RC
19628
# Commands used to finish a libtool library installation in a directory.
19629
finish_cmds=$lt_finish_cmds
19631
# Same as above, but a single script fragment to be evaled but not shown.
19632
finish_eval=$lt_finish_eval
19634
# Take the output of nm and produce a listing of raw symbols and C names.
19635
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19637
# Transform the output of nm in a proper C declaration
19638
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19640
# Transform the output of nm in a C name address pair
19641
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19643
# This is the shared library runtime path variable.
19644
runpath_var=$runpath_var
19646
# This is the shared library path variable.
19647
shlibpath_var=$shlibpath_var
19649
# Is shlibpath searched before the hard-coded library search path?
19650
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19652
# How to hardcode a shared library path into an executable.
19653
hardcode_action=$hardcode_action_RC
19655
# Whether we should hardcode library paths into libraries.
19656
hardcode_into_libs=$hardcode_into_libs
19658
# Flag to hardcode \$libdir into a binary during linking.
19659
# This must work even if \$libdir does not exist.
19660
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19662
# If ld is used when linking, flag to hardcode \$libdir into
19663
# a binary during linking. This must work even if \$libdir does
19665
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19667
# Whether we need a single -rpath flag with a separated argument.
19668
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19670
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19671
# resulting binary.
19672
hardcode_direct=$hardcode_direct_RC
19674
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19675
# resulting binary.
19676
hardcode_minus_L=$hardcode_minus_L_RC
19678
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19679
# the resulting binary.
19680
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19682
# Set to yes if building a shared library automatically hardcodes DIR into the library
19683
# and all subsequent libraries and executables linked against it.
19684
hardcode_automatic=$hardcode_automatic_RC
19686
# Variables whose values should be saved in libtool wrapper scripts and
19687
# restored at relink time.
19688
variables_saved_for_relink="$variables_saved_for_relink"
19690
# Whether libtool must link a program against all its dependency libraries.
19691
link_all_deplibs=$link_all_deplibs_RC
19693
# Compile-time system search path for libraries
19694
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19696
# Run-time system search path for libraries
19697
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19699
# Fix the shell variable \$srcfile for the compiler.
19700
fix_srcfile_path=$lt_fix_srcfile_path
19702
# Set to yes if exported symbols are required.
19703
always_export_symbols=$always_export_symbols_RC
19705
# The commands to list exported symbols.
19706
export_symbols_cmds=$lt_export_symbols_cmds_RC
19708
# The commands to extract the exported symbol list from a shared archive.
19709
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19711
# Symbols that should not be listed in the preloaded symbols.
19712
exclude_expsyms=$lt_exclude_expsyms_RC
19714
# Symbols that must always be exported.
19715
include_expsyms=$lt_include_expsyms_RC
19717
# ### END LIBTOOL TAG CONFIG: $tagname
19723
# If there is no Makefile yet, we rely on a make rule to execute
19724
# `config.status --recheck' to rerun these tests and create the
19725
# libtool script then.
19726
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19727
if test -f "$ltmain_in"; then
19728
test -f Makefile && make "$ltmain"
19734
ac_cpp='$CPP $CPPFLAGS'
19735
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19736
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19737
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19744
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19745
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19746
{ (exit 1); exit 1; }; }
19750
# Append the new tag name to the list of available tags.
19751
if test -n "$tagname" ; then
19752
available_tags="$available_tags $tagname"
19758
# Now substitute the updated list of available tags.
19759
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19760
mv "${ofile}T" "$ofile"
19764
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19765
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19766
{ (exit 1); exit 1; }; }
19772
# This can be used to rebuild libtool when needed
19773
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19775
# Always use our own libtool.
19776
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19778
# Prevent multiple expansion
19799
# Find a good install program. We prefer a C program (faster),
19800
# so one script is as good as another. But avoid the broken or
19801
# incompatible versions:
19802
# SysV /etc/install, /usr/sbin/install
19803
# SunOS /usr/etc/install
19804
# IRIX /sbin/install
19806
# AmigaOS /C/install, which installs bootblocks on floppy discs
19807
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19808
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
19809
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19810
# OS/2's system install, which has a completely different semantic
19811
# ./install, which can be erroneously created by make from ./install.sh.
19812
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
19813
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
19814
if test -z "$INSTALL"; then
19815
if test "${ac_cv_path_install+set}" = set; then
19816
echo $ECHO_N "(cached) $ECHO_C" >&6
19818
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19819
for as_dir in $PATH
19822
test -z "$as_dir" && as_dir=.
19823
# Account for people who put trailing slashes in PATH elements.
19825
./ | .// | /cC/* | \
19826
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19827
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
19830
# OSF1 and SCO ODT 3.0 have their own names for install.
19831
# Don't use installbsd from OSF since it installs stuff as root
19833
for ac_prog in ginstall scoinst install; do
19834
for ac_exec_ext in '' $ac_executable_extensions; do
19835
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
19836
if test $ac_prog = install &&
19837
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19838
# AIX install. It has an incompatible calling convention.
19840
elif test $ac_prog = install &&
19841
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19842
# program-specific install script used by HP pwplus--don't use.
19845
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
19858
if test "${ac_cv_path_install+set}" = set; then
19859
INSTALL=$ac_cv_path_install
19861
# As a last resort, use the slow shell script. Don't cache a
19862
# value for INSTALL within a source directory, because that will
19863
# break other packages using the cache if that directory is
19864
# removed, or if the value is a relative name.
19865
INSTALL=$ac_install_sh
19868
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
19869
echo "${ECHO_T}$INSTALL" >&6; }
19871
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19872
# It thinks the first close brace ends the variable substitution.
19873
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
19875
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
19877
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
19879
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
19880
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
10271
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10272
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10273
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10274
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10275
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10276
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10277
$as_echo "yes" >&6; }
10279
# FIXME - insert some real tests, host_os isn't really good enough
10282
if test -n "$STRIP" ; then
10283
striplib="$STRIP -x"
10284
old_striplib="$STRIP -S"
10285
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10286
$as_echo "yes" >&6; }
10288
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10289
$as_echo "no" >&6; }
10293
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10294
$as_echo "no" >&6; }
10310
# Report which library types will actually be built
10311
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10312
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10313
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10314
$as_echo "$can_build_shared" >&6; }
10316
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10317
$as_echo_n "checking whether to build shared libraries... " >&6; }
10318
test "$can_build_shared" = "no" && enable_shared=no
10320
# On AIX, shared libraries and static libraries use the same namespace, and
10321
# are all built from PIC.
10324
test "$enable_shared" = yes && enable_static=no
10325
if test -n "$RANLIB"; then
10326
archive_cmds="$archive_cmds~\$RANLIB \$lib"
10327
postinstall_cmds='$RANLIB $lib'
10332
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10333
test "$enable_shared" = yes && enable_static=no
10337
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10338
$as_echo "$enable_shared" >&6; }
10340
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10341
$as_echo_n "checking whether to build static libraries... " >&6; }
10342
# Make sure either enable_shared or enable_static is yes.
10343
test "$enable_shared" = yes || enable_static=yes
10344
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10345
$as_echo "$enable_static" >&6; }
10352
ac_cpp='$CPP $CPPFLAGS'
10353
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10354
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10355
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10371
ac_config_commands="$ac_config_commands libtool"
10376
# Only expand once:
10380
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
10381
$as_echo_n "checking whether ln -s works... " >&6; }
19881
10382
LN_S=$as_ln_s
19882
10383
if test "$LN_S" = "ln -s"; then
19883
{ echo "$as_me:$LINENO: result: yes" >&5
19884
echo "${ECHO_T}yes" >&6; }
10384
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10385
$as_echo "yes" >&6; }
19886
{ echo "$as_me:$LINENO: result: no, using $LN_S" >&5
19887
echo "${ECHO_T}no, using $LN_S" >&6; }
10387
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
10388
$as_echo "no, using $LN_S" >&6; }