14536
# Report which library types will actually be built
14537
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14538
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14539
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14540
$as_echo "$can_build_shared" >&6; }
14542
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14543
$as_echo_n "checking whether to build shared libraries... " >&6; }
14544
test "$can_build_shared" = "no" && enable_shared=no
14546
# On AIX, shared libraries and static libraries use the same namespace, and
14547
# are all built from PIC.
14550
test "$enable_shared" = yes && enable_static=no
14551
if test -n "$RANLIB"; then
14552
archive_cmds="$archive_cmds~\$RANLIB \$lib"
14553
postinstall_cmds='$RANLIB $lib'
14558
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14559
test "$enable_shared" = yes && enable_static=no
14563
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14564
$as_echo "$enable_shared" >&6; }
14566
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14567
$as_echo_n "checking whether to build static libraries... " >&6; }
14568
# Make sure either enable_shared or enable_static is yes.
14569
test "$enable_shared" = yes || enable_static=yes
14570
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14571
$as_echo "$enable_static" >&6; }
14573
# The else clause should only fire when bootstrapping the
14574
# libtool distribution, otherwise you forgot to ship ltmain.sh
14575
# with your package, and you will get complaints that there are
14576
# no rules to generate ltmain.sh.
14577
if test -f "$ltmain"; then
14578
# See if we are running on zsh, and set the options which allow our commands through
14579
# without removal of \ escapes.
14580
if test -n "${ZSH_VERSION+set}" ; then
14581
setopt NO_GLOB_SUBST
14583
# Now quote all the things that may contain metacharacters while being
14584
# careful not to overquote the AC_SUBSTed values. We take copies of the
14585
# variables and quote the copies for generation of the libtool script.
14586
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14588
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14589
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14590
deplibs_check_method reload_flag reload_cmds need_locks \
14591
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14592
lt_cv_sys_global_symbol_to_c_name_address \
14593
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14594
old_postinstall_cmds old_postuninstall_cmds \
14598
lt_prog_compiler_wl \
14599
lt_prog_compiler_pic \
14600
lt_prog_compiler_static \
14601
lt_prog_compiler_no_builtin_flag \
14602
export_dynamic_flag_spec \
14603
thread_safe_flag_spec \
14604
whole_archive_flag_spec \
14605
enable_shared_with_static_runtimes \
14607
old_archive_from_new_cmds \
14612
compiler_lib_search_path \
14613
compiler_lib_search_dirs \
14615
archive_expsym_cmds \
14617
postuninstall_cmds \
14618
old_archive_from_expsyms_cmds \
14619
allow_undefined_flag \
14620
no_undefined_flag \
14621
export_symbols_cmds \
14622
hardcode_libdir_flag_spec \
14623
hardcode_libdir_flag_spec_ld \
14624
hardcode_libdir_separator \
14625
hardcode_automatic \
14627
module_expsym_cmds \
14628
lt_cv_prog_compiler_c_o \
14631
include_expsyms; do
14634
old_archive_cmds | \
14635
old_archive_from_new_cmds | \
14637
archive_expsym_cmds | \
14639
module_expsym_cmds | \
14640
old_archive_from_expsyms_cmds | \
14641
export_symbols_cmds | \
14642
extract_expsyms_cmds | reload_cmds | finish_cmds | \
14643
postinstall_cmds | postuninstall_cmds | \
14644
old_postinstall_cmds | old_postuninstall_cmds | \
14645
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14646
# Double-quote double-evaled strings.
14647
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14650
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14656
*'\$0 --fallback-echo"')
14657
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14661
cfgfile="${ofile}T"
14662
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14664
{ $as_echo "$as_me:$LINENO: creating $ofile" >&5
14665
$as_echo "$as_me: creating $ofile" >&6;}
14667
cat <<__EOF__ >> "$cfgfile"
14670
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14671
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14672
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14674
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
14675
# Free Software Foundation, Inc.
14677
# This file is part of GNU Libtool:
14678
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14680
# This program is free software; you can redistribute it and/or modify
14681
# it under the terms of the GNU General Public License as published by
14682
# the Free Software Foundation; either version 2 of the License, or
14683
# (at your option) any later version.
14685
# This program is distributed in the hope that it will be useful, but
14686
# WITHOUT ANY WARRANTY; without even the implied warranty of
14687
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14688
# General Public License for more details.
14690
# You should have received a copy of the GNU General Public License
14691
# along with this program; if not, write to the Free Software
14692
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14694
# As a special exception to the GNU General Public License, if you
14695
# distribute this file as part of a program that contains a
14696
# configuration script generated by Autoconf, you may include it under
14697
# the same distribution terms that you use for the rest of that program.
14699
# A sed program that does not truncate output.
14702
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14703
Xsed="$SED -e 1s/^X//"
14705
# The HP-UX ksh and POSIX shell print the target directory to stdout
14706
# if CDPATH is set.
14707
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14709
# The names of the tagged configurations supported by this script.
14712
# ### BEGIN LIBTOOL CONFIG
14714
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14716
# Shell to use when invoking shell scripts.
14719
# Whether or not to build shared libraries.
14720
build_libtool_libs=$enable_shared
14722
# Whether or not to build static libraries.
14723
build_old_libs=$enable_static
14725
# Whether or not to add -lc for building shared libraries.
14726
build_libtool_need_lc=$archive_cmds_need_lc
14728
# Whether or not to disallow shared libs when runtime libs are static
14729
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14731
# Whether or not to optimize for fast installation.
14732
fast_install=$enable_fast_install
14735
host_alias=$host_alias
14739
# The build system.
14740
build_alias=$build_alias
14744
# An echo program that does not interpret backslashes.
14749
AR_FLAGS=$lt_AR_FLAGS
14754
# LTCC compiler flags.
14755
LTCFLAGS=$lt_LTCFLAGS
14757
# A language-specific compiler.
14760
# Is the compiler the GNU C compiler?
14766
# The linker used to build libraries.
14769
# Whether we need hard or soft links.
14772
# A BSD-compatible nm program.
14775
# A symbol stripping program
14778
# Used to examine libraries when file_magic_cmd begins "file"
14779
MAGIC_CMD=$MAGIC_CMD
14781
# Used on cygwin: DLL creation program.
14784
# Used on cygwin: object dumper.
14787
# Used on cygwin: assembler.
14790
# The name of the directory that contains temporary libtool files.
14793
# How to create reloadable object files.
14794
reload_flag=$lt_reload_flag
14795
reload_cmds=$lt_reload_cmds
14797
# How to pass a linker flag through the compiler.
14798
wl=$lt_lt_prog_compiler_wl
14800
# Object file suffix (normally "o").
14801
objext="$ac_objext"
14803
# Old archive suffix (normally "a").
14806
# Shared library suffix (normally ".so").
14807
shrext_cmds='$shrext_cmds'
14809
# Executable file suffix (normally "").
14812
# Additional compiler flags for building library objects.
14813
pic_flag=$lt_lt_prog_compiler_pic
14816
# What is the maximum length of a command?
14817
max_cmd_len=$lt_cv_sys_max_cmd_len
14819
# Does compiler simultaneously support -c and -o options?
14820
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14822
# Must we lock files when doing compilation?
14823
need_locks=$lt_need_locks
14825
# Do we need the lib prefix for modules?
14826
need_lib_prefix=$need_lib_prefix
14828
# Do we need a version for libraries?
14829
need_version=$need_version
14831
# Whether dlopen is supported.
14832
dlopen_support=$enable_dlopen
14834
# Whether dlopen of programs is supported.
14835
dlopen_self=$enable_dlopen_self
14837
# Whether dlopen of statically linked programs is supported.
14838
dlopen_self_static=$enable_dlopen_self_static
14840
# Compiler flag to prevent dynamic linking.
14841
link_static_flag=$lt_lt_prog_compiler_static
14843
# Compiler flag to turn off builtin functions.
14844
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14846
# Compiler flag to allow reflexive dlopens.
14847
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14849
# Compiler flag to generate shared objects directly from archives.
14850
whole_archive_flag_spec=$lt_whole_archive_flag_spec
14852
# Compiler flag to generate thread-safe objects.
14853
thread_safe_flag_spec=$lt_thread_safe_flag_spec
14855
# Library versioning type.
14856
version_type=$version_type
14858
# Format of library name prefix.
14859
libname_spec=$lt_libname_spec
14861
# List of archive names. First name is the real one, the rest are links.
14862
# The last name is the one that the linker finds with -lNAME.
14863
library_names_spec=$lt_library_names_spec
14865
# The coded name of the library, if different from the real name.
14866
soname_spec=$lt_soname_spec
14868
# Commands used to build and install an old-style archive.
14870
old_archive_cmds=$lt_old_archive_cmds
14871
old_postinstall_cmds=$lt_old_postinstall_cmds
14872
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14874
# Create an old-style archive from a shared archive.
14875
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14877
# Create a temporary old-style archive to link instead of a shared archive.
14878
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14880
# Commands used to build and install a shared archive.
14881
archive_cmds=$lt_archive_cmds
14882
archive_expsym_cmds=$lt_archive_expsym_cmds
14883
postinstall_cmds=$lt_postinstall_cmds
14884
postuninstall_cmds=$lt_postuninstall_cmds
14886
# Commands used to build a loadable module (assumed same as above if empty)
14887
module_cmds=$lt_module_cmds
14888
module_expsym_cmds=$lt_module_expsym_cmds
14890
# Commands to strip libraries.
14891
old_striplib=$lt_old_striplib
14892
striplib=$lt_striplib
14894
# Dependencies to place before the objects being linked to create a
14896
predep_objects=$lt_predep_objects
14898
# Dependencies to place after the objects being linked to create a
14900
postdep_objects=$lt_postdep_objects
14902
# Dependencies to place before the objects being linked to create a
14904
predeps=$lt_predeps
14906
# Dependencies to place after the objects being linked to create a
14908
postdeps=$lt_postdeps
14910
# The directories searched by this compiler when creating a shared
14912
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
14914
# The library search path used internally by the compiler when linking
14915
# a shared library.
14916
compiler_lib_search_path=$lt_compiler_lib_search_path
14918
# Method to check whether dependent libraries are shared objects.
14919
deplibs_check_method=$lt_deplibs_check_method
14921
# Command to use when deplibs_check_method == file_magic.
14922
file_magic_cmd=$lt_file_magic_cmd
14924
# Flag that allows shared libraries with undefined symbols to be built.
14925
allow_undefined_flag=$lt_allow_undefined_flag
14927
# Flag that forces no undefined symbols.
14928
no_undefined_flag=$lt_no_undefined_flag
14930
# Commands used to finish a libtool library installation in a directory.
14931
finish_cmds=$lt_finish_cmds
14933
# Same as above, but a single script fragment to be evaled but not shown.
14934
finish_eval=$lt_finish_eval
14936
# Take the output of nm and produce a listing of raw symbols and C names.
14937
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14939
# Transform the output of nm in a proper C declaration
14940
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14942
# Transform the output of nm in a C name address pair
14943
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14945
# This is the shared library runtime path variable.
14946
runpath_var=$runpath_var
14948
# This is the shared library path variable.
14949
shlibpath_var=$shlibpath_var
14951
# Is shlibpath searched before the hard-coded library search path?
14952
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14954
# How to hardcode a shared library path into an executable.
14955
hardcode_action=$hardcode_action
14957
# Whether we should hardcode library paths into libraries.
14958
hardcode_into_libs=$hardcode_into_libs
14960
# Flag to hardcode \$libdir into a binary during linking.
14961
# This must work even if \$libdir does not exist.
14962
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14964
# If ld is used when linking, flag to hardcode \$libdir into
14965
# a binary during linking. This must work even if \$libdir does
14967
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14969
# Whether we need a single -rpath flag with a separated argument.
14970
hardcode_libdir_separator=$lt_hardcode_libdir_separator
14972
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14973
# resulting binary.
14974
hardcode_direct=$hardcode_direct
14976
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14977
# resulting binary.
14978
hardcode_minus_L=$hardcode_minus_L
14980
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14981
# the resulting binary.
14982
hardcode_shlibpath_var=$hardcode_shlibpath_var
14984
# Set to yes if building a shared library automatically hardcodes DIR into the library
14985
# and all subsequent libraries and executables linked against it.
14986
hardcode_automatic=$hardcode_automatic
14988
# Variables whose values should be saved in libtool wrapper scripts and
14989
# restored at relink time.
14990
variables_saved_for_relink="$variables_saved_for_relink"
14992
# Whether libtool must link a program against all its dependency libraries.
14993
link_all_deplibs=$link_all_deplibs
14995
# Compile-time system search path for libraries
14996
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14998
# Run-time system search path for libraries
14999
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15001
# Fix the shell variable \$srcfile for the compiler.
15002
fix_srcfile_path=$lt_fix_srcfile_path
15004
# Set to yes if exported symbols are required.
15005
always_export_symbols=$always_export_symbols
15007
# The commands to list exported symbols.
15008
export_symbols_cmds=$lt_export_symbols_cmds
15010
# The commands to extract the exported symbol list from a shared archive.
15011
extract_expsyms_cmds=$lt_extract_expsyms_cmds
15013
# Symbols that should not be listed in the preloaded symbols.
15014
exclude_expsyms=$lt_exclude_expsyms
15016
# Symbols that must always be exported.
15017
include_expsyms=$lt_include_expsyms
15019
# ### END LIBTOOL CONFIG
15026
cat <<\EOF >> "$cfgfile"
15028
# AIX sometimes has problems with the GCC collect2 program. For some
15029
# reason, if we set the COLLECT_NAMES environment variable, the problems
15030
# vanish in a puff of smoke.
15031
if test "X${COLLECT_NAMES+set}" != Xset; then
15033
export COLLECT_NAMES
15039
# We use sed instead of cat because bash on DJGPP gets confused if
15040
# if finds mixed CR/LF and LF-only lines. Since sed operates in
15041
# text mode, it properly converts lines to CR/LF. This bash problem
15042
# is reportedly fixed, but why not run on old versions too?
15043
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
15045
mv -f "$cfgfile" "$ofile" || \
15046
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15050
# If there is no Makefile yet, we rely on a make rule to execute
15051
# `config.status --recheck' to rerun these tests and create the
15052
# libtool script then.
15053
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15054
if test -f "$ltmain_in"; then
15055
test -f Makefile && make "$ltmain"
15061
ac_cpp='$CPP $CPPFLAGS'
15062
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15063
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15064
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15069
# Check whether --with-tags was given.
15070
if test "${with_tags+set}" = set; then
15071
withval=$with_tags; tagnames="$withval"
15075
if test -f "$ltmain" && test -n "$tagnames"; then
15076
if test ! -f "${ofile}"; then
15077
{ $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
15078
$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15081
if test -z "$LTCC"; then
15082
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15083
if test -z "$LTCC"; then
15084
{ $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15085
$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15087
{ $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15088
$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15091
if test -z "$LTCFLAGS"; then
15092
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
15095
# Extract list of available tagged configurations in $ofile.
15096
# Note that this assumes the entire list is on one line.
15097
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15099
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15100
for tagname in $tagnames; do
15102
# Check whether tagname contains only valid characters
15103
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15105
*) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15106
$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
15107
{ (exit 1); exit 1; }; }
15111
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15113
{ { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15114
$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15115
{ (exit 1); exit 1; }; }
15118
# Update the list of available tags.
15119
if test -n "$tagname"; then
15120
echo appending configuration tag \"$tagname\" to $ofile
15124
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15125
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15126
(test "X$CXX" != "Xg++"))) ; then
15128
ac_cpp='$CXXCPP $CPPFLAGS'
15129
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15130
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15131
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15136
archive_cmds_need_lc_CXX=no
15137
allow_undefined_flag_CXX=
15138
always_export_symbols_CXX=no
15139
archive_expsym_cmds_CXX=
15140
export_dynamic_flag_spec_CXX=
15141
hardcode_direct_CXX=no
15142
hardcode_libdir_flag_spec_CXX=
15143
hardcode_libdir_flag_spec_ld_CXX=
15144
hardcode_libdir_separator_CXX=
15145
hardcode_minus_L_CXX=no
15146
hardcode_shlibpath_var_CXX=unsupported
15147
hardcode_automatic_CXX=no
15149
module_expsym_cmds_CXX=
15150
link_all_deplibs_CXX=unknown
15151
old_archive_cmds_CXX=$old_archive_cmds
15152
no_undefined_flag_CXX=
15153
whole_archive_flag_spec_CXX=
15154
enable_shared_with_static_runtimes_CXX=no
15156
# Dependencies to place before and after the object being linked:
15157
predep_objects_CXX=
15158
postdep_objects_CXX=
15161
compiler_lib_search_path_CXX=
15162
compiler_lib_search_dirs_CXX=
15164
# Source file extension for C++ test sources.
15167
# Object file extension for compiled C++ test sources.
15171
# Code to be used in simple compile tests
15172
lt_simple_compile_test_code="int some_variable = 0;"
15174
# Code to be used in simple link tests
15175
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15177
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15179
# If no C compiler was specified, use CC.
15182
# If no C compiler flags were specified, use CFLAGS.
15183
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15185
# Allow CC to be a program name with arguments.
15189
# save warnings/boilerplate of simple test code
15190
ac_outfile=conftest.$ac_objext
15191
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15192
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15193
_lt_compiler_boilerplate=`cat conftest.err`
15196
ac_outfile=conftest.$ac_objext
15197
echo "$lt_simple_link_test_code" >conftest.$ac_ext
15198
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15199
_lt_linker_boilerplate=`cat conftest.err`
15203
# Allow CC to be a program name with arguments.
15208
lt_save_with_gnu_ld=$with_gnu_ld
15209
lt_save_path_LD=$lt_cv_path_LD
15210
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15211
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15213
$as_unset lt_cv_prog_gnu_ld
15215
if test -n "${lt_cv_path_LDCXX+set}"; then
15216
lt_cv_path_LD=$lt_cv_path_LDCXX
15218
$as_unset lt_cv_path_LD
15220
test -z "${LDCXX+set}" || LD=$LDCXX
15224
for cc_temp in $compiler""; do
15226
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15227
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15232
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15235
# We don't want -fno-exception wen compiling C++ code, so set the
15236
# no_builtin_flag separately
15237
if test "$GXX" = yes; then
15238
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15240
lt_prog_compiler_no_builtin_flag_CXX=
15243
if test "$GXX" = yes; then
15244
# Set up default GNU C++ configuration
15247
# Check whether --with-gnu-ld was given.
15248
if test "${with_gnu_ld+set}" = set; then
15249
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15255
if test "$GCC" = yes; then
15256
# Check if gcc -print-prog-name=ld gives a path.
15257
{ $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15258
$as_echo_n "checking for ld used by $CC... " >&6; }
15261
# gcc leaves a trailing carriage return which upsets mingw
15262
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15264
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15267
# Accept absolute paths.
15269
re_direlt='/[^/][^/]*/\.\./'
15270
# Canonicalize the pathname of ld
15271
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15272
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15273
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15275
test -z "$LD" && LD="$ac_prog"
15278
# If it fails, then pretend we aren't using GCC.
15282
# If it is relative, then search for the first ld in PATH.
15283
with_gnu_ld=unknown
15286
elif test "$with_gnu_ld" = yes; then
15287
{ $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
15288
$as_echo_n "checking for GNU ld... " >&6; }
15290
{ $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15291
$as_echo_n "checking for non-GNU ld... " >&6; }
15293
if test "${lt_cv_path_LD+set}" = set; then
15294
$as_echo_n "(cached) " >&6
15296
if test -z "$LD"; then
15297
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15298
for ac_dir in $PATH; do
15300
test -z "$ac_dir" && ac_dir=.
15301
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15302
lt_cv_path_LD="$ac_dir/$ac_prog"
15303
# Check to see if the program is GNU ld. I'd rather use --version,
15304
# but apparently some variants of GNU ld only accept -v.
15305
# Break only if it was the GNU/non-GNU ld that we prefer.
15306
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15307
*GNU* | *'with BFD'*)
15308
test "$with_gnu_ld" != no && break
15311
test "$with_gnu_ld" != yes && break
15318
lt_cv_path_LD="$LD" # Let the user override the test with a path.
15322
LD="$lt_cv_path_LD"
15323
if test -n "$LD"; then
15324
{ $as_echo "$as_me:$LINENO: result: $LD" >&5
15325
$as_echo "$LD" >&6; }
15327
{ $as_echo "$as_me:$LINENO: result: no" >&5
15328
$as_echo "no" >&6; }
15330
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15331
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15332
{ (exit 1); exit 1; }; }
15333
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15334
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15335
if test "${lt_cv_prog_gnu_ld+set}" = set; then
15336
$as_echo_n "(cached) " >&6
15338
# I'd rather use --version here, but apparently some GNU lds only accept -v.
15339
case `$LD -v 2>&1 </dev/null` in
15340
*GNU* | *'with BFD'*)
15341
lt_cv_prog_gnu_ld=yes
15344
lt_cv_prog_gnu_ld=no
15348
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15349
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
15350
with_gnu_ld=$lt_cv_prog_gnu_ld
15354
# Check if GNU C++ uses GNU ld as the underlying linker, since the
15355
# archiving commands below assume that GNU ld is being used.
15356
if test "$with_gnu_ld" = yes; then
15357
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15358
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'
15360
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15361
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15363
# If archive_cmds runs LD, not CC, wlarc should be empty
15364
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15365
# investigate it a little bit more. (MM)
15368
# ancient GNU ld didn't support --whole-archive et. al.
15369
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15370
grep 'no-whole-archive' > /dev/null; then
15371
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15373
whole_archive_flag_spec_CXX=
15379
# A generic and very simple default shared library creation
15380
# command for GNU C++ for the case where it uses the native
15381
# linker, instead of GNU ld. If possible, this setting should
15382
# overridden to take advantage of the native linker features on
15383
# the platform it is being used on.
15384
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15387
# Commands to make compiler produce verbose output that lists
15388
# what "hidden" libraries, object files and flags are used when
15389
# linking a shared library.
15390
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15398
# PORTME: fill in a description of your system's C++ link characteristics
15399
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15400
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15404
# FIXME: insert proper C++ library support
15408
if test "$host_cpu" = ia64; then
15409
# On IA64, the linker does run time linking by default, so we don't
15410
# have to do anything special.
15411
aix_use_runtimelinking=no
15412
exp_sym_flag='-Bexport'
15415
aix_use_runtimelinking=no
15417
# Test if we are trying to use run time linking or normal
15418
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15419
# need to do runtime linking.
15420
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15421
for ld_flag in $LDFLAGS; do
15424
aix_use_runtimelinking=yes
15432
exp_sym_flag='-bexport'
15433
no_entry_flag='-bnoentry'
15436
# When large executables or shared objects are built, AIX ld can
15437
# have problems creating the table of contents. If linking a library
15438
# or program results in "error TOC overflow" add -mminimal-toc to
15439
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15440
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15442
archive_cmds_CXX=''
15443
hardcode_direct_CXX=yes
15444
hardcode_libdir_separator_CXX=':'
15445
link_all_deplibs_CXX=yes
15447
if test "$GXX" = yes; then
15448
case $host_os in aix4.[012]|aix4.[012].*)
15449
# We only want to do this on AIX 4.2 and lower, the check
15450
# below for broken collect2 doesn't work under 4.3+
15451
collect2name=`${CC} -print-prog-name=collect2`
15452
if test -f "$collect2name" && \
15453
strings "$collect2name" | grep resolve_lib_name >/dev/null
15455
# We have reworked collect2
15458
# We have old collect2
15459
hardcode_direct_CXX=unsupported
15460
# It fails to find uninstalled libraries when the uninstalled
15461
# path is not listed in the libpath. Setting hardcode_minus_L
15462
# to unsupported forces relinking
15463
hardcode_minus_L_CXX=yes
15464
hardcode_libdir_flag_spec_CXX='-L$libdir'
15465
hardcode_libdir_separator_CXX=
15469
shared_flag='-shared'
15470
if test "$aix_use_runtimelinking" = yes; then
15471
shared_flag="$shared_flag "'${wl}-G'
15475
if test "$host_cpu" = ia64; then
15476
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15477
# chokes on -Wl,-G. The following line is correct:
15480
if test "$aix_use_runtimelinking" = yes; then
15481
shared_flag='${wl}-G'
15483
shared_flag='${wl}-bM:SRE'
15488
# It seems that -bexpall does not export symbols beginning with
15489
# underscore (_), so it is better to generate a list of symbols to export.
15490
always_export_symbols_CXX=yes
15491
if test "$aix_use_runtimelinking" = yes; then
15492
# Warning - without using the other runtime loading flags (-brtl),
15493
# -berok will link without error, but may produce a broken library.
15494
allow_undefined_flag_CXX='-berok'
15495
# Determine the default libpath from the value encoded in an empty executable.
15496
cat >conftest.$ac_ext <<_ACEOF
15499
cat confdefs.h >>conftest.$ac_ext
15500
cat >>conftest.$ac_ext <<_ACEOF
15501
/* end confdefs.h. */
15511
rm -f conftest.$ac_objext conftest$ac_exeext
15512
if { (ac_try="$ac_link"
15513
case "(($ac_try" in
15514
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15515
*) ac_try_echo=$ac_try;;
15517
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15518
$as_echo "$ac_try_echo") >&5
15519
(eval "$ac_link") 2>conftest.er1
15521
grep -v '^ *+' conftest.er1 >conftest.err
15523
cat conftest.err >&5
15524
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525
(exit $ac_status); } && {
15526
test -z "$ac_cxx_werror_flag" ||
15527
test ! -s conftest.err
15528
} && test -s conftest$ac_exeext && {
15529
test "$cross_compiling" = yes ||
15530
$as_test_x conftest$ac_exeext
15533
lt_aix_libpath_sed='
15534
/Import File Strings/,/^$/ {
15540
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15541
# Check for a 64-bit object if we didn't find anything.
15542
if test -z "$aix_libpath"; then
15543
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15546
$as_echo "$as_me: failed program was:" >&5
15547
sed 's/^/| /' conftest.$ac_ext >&5
15552
rm -rf conftest.dSYM
15553
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15554
conftest$ac_exeext conftest.$ac_ext
15555
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15557
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15559
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"
15561
if test "$host_cpu" = ia64; then
15562
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15563
allow_undefined_flag_CXX="-z nodefs"
15564
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"
15566
# Determine the default libpath from the value encoded in an empty executable.
15567
cat >conftest.$ac_ext <<_ACEOF
15570
cat confdefs.h >>conftest.$ac_ext
15571
cat >>conftest.$ac_ext <<_ACEOF
15572
/* end confdefs.h. */
15582
rm -f conftest.$ac_objext conftest$ac_exeext
15583
if { (ac_try="$ac_link"
15584
case "(($ac_try" in
15585
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15586
*) ac_try_echo=$ac_try;;
15588
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15589
$as_echo "$ac_try_echo") >&5
15590
(eval "$ac_link") 2>conftest.er1
15592
grep -v '^ *+' conftest.er1 >conftest.err
15594
cat conftest.err >&5
15595
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596
(exit $ac_status); } && {
15597
test -z "$ac_cxx_werror_flag" ||
15598
test ! -s conftest.err
15599
} && test -s conftest$ac_exeext && {
15600
test "$cross_compiling" = yes ||
15601
$as_test_x conftest$ac_exeext
15604
lt_aix_libpath_sed='
15605
/Import File Strings/,/^$/ {
15611
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15612
# Check for a 64-bit object if we didn't find anything.
15613
if test -z "$aix_libpath"; then
15614
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15617
$as_echo "$as_me: failed program was:" >&5
15618
sed 's/^/| /' conftest.$ac_ext >&5
15623
rm -rf conftest.dSYM
15624
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15625
conftest$ac_exeext conftest.$ac_ext
15626
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15628
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15629
# Warning - without using the other run time loading flags,
15630
# -berok will link without error, but may produce a broken library.
15631
no_undefined_flag_CXX=' ${wl}-bernotok'
15632
allow_undefined_flag_CXX=' ${wl}-berok'
15633
# Exported symbols can be pulled into shared objects from archives
15634
whole_archive_flag_spec_CXX='$convenience'
15635
archive_cmds_need_lc_CXX=yes
15636
# This is similar to how AIX traditionally builds its shared libraries.
15637
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'
15643
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15644
allow_undefined_flag_CXX=unsupported
15645
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15646
# support --undefined. This deserves some investigation. FIXME
15647
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15654
case $cc_basename in
15656
# FIXME: insert proper C++ library support
15662
cygwin* | mingw* | pw32*)
15663
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15664
# as there is no search path for DLLs.
15665
hardcode_libdir_flag_spec_CXX='-L$libdir'
15666
allow_undefined_flag_CXX=unsupported
15667
always_export_symbols_CXX=no
15668
enable_shared_with_static_runtimes_CXX=yes
15670
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15671
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'
15672
# If the export-symbols file already is a .def file (1st line
15673
# is EXPORTS), use it as is; otherwise, prepend...
15674
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15675
cp $export_symbols $output_objdir/$soname.def;
15677
echo EXPORTS > $output_objdir/$soname.def;
15678
cat $export_symbols >> $output_objdir/$soname.def;
15680
$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'
15685
darwin* | rhapsody*)
15686
archive_cmds_need_lc_CXX=no
15687
hardcode_direct_CXX=no
15688
hardcode_automatic_CXX=yes
15689
hardcode_shlibpath_var_CXX=unsupported
15690
whole_archive_flag_spec_CXX=''
15691
link_all_deplibs_CXX=yes
15692
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
15693
if test "$GXX" = yes ; then
15694
output_verbose_link_cmd='echo'
15695
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}"
15696
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15697
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}"
15698
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}"
15699
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
15700
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}"
15701
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}"
15704
case $cc_basename in
15706
output_verbose_link_cmd='echo'
15707
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'
15708
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15709
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15710
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}'
15711
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}'
15721
case $cc_basename in
15723
# FIXME: insert proper C++ library support
15727
# Green Hills C++ Compiler
15728
# FIXME: insert proper C++ library support
15732
# FIXME: insert proper C++ library support
15738
# C++ shared libraries reported to be fairly broken before switch to ELF
15742
archive_cmds_need_lc_CXX=no
15744
freebsd* | dragonfly*)
15745
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15752
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15753
hardcode_libdir_separator_CXX=:
15754
export_dynamic_flag_spec_CXX='${wl}-E'
15755
hardcode_direct_CXX=yes
15756
hardcode_minus_L_CXX=yes # Not in the search PATH,
15757
# but as the default
15758
# location of the library.
15760
case $cc_basename in
15762
# FIXME: insert proper C++ library support
15766
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'
15767
# Commands to make compiler produce verbose output that lists
15768
# what "hidden" libraries, object files and flags are used when
15769
# linking a shared library.
15771
# There doesn't appear to be a way to prevent this compiler from
15772
# explicitly linking system object files so we need to strip them
15773
# from the output so that they don't get included in the library
15775
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'
15778
if test "$GXX" = yes; then
15779
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'
15781
# FIXME: insert proper C++ library support
15788
if test $with_gnu_ld = no; then
15789
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15790
hardcode_libdir_separator_CXX=:
15795
export_dynamic_flag_spec_CXX='${wl}-E'
15801
hardcode_direct_CXX=no
15802
hardcode_shlibpath_var_CXX=no
15805
hardcode_direct_CXX=yes
15806
hardcode_minus_L_CXX=yes # Not in the search PATH,
15807
# but as the default
15808
# location of the library.
15812
case $cc_basename in
15814
# FIXME: insert proper C++ library support
15820
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15823
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15826
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15829
# Commands to make compiler produce verbose output that lists
15830
# what "hidden" libraries, object files and flags are used when
15831
# linking a shared library.
15833
# There doesn't appear to be a way to prevent this compiler from
15834
# explicitly linking system object files so we need to strip them
15835
# from the output so that they don't get included in the library
15837
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'
15840
if test "$GXX" = yes; then
15841
if test $with_gnu_ld = no; then
15844
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15847
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15850
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'
15855
# FIXME: insert proper C++ library support
15862
hardcode_direct_CXX=no
15863
hardcode_shlibpath_var_CXX=no
15864
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15865
export_dynamic_flag_spec_CXX='${wl}-E'
15866
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15867
# Instead, shared libraries are loaded at an image base (0x10000000 by
15868
# default) and relocated if they conflict, which is a slow very memory
15869
# consuming and fragmenting process. To avoid this, we pick a random,
15870
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15871
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
15872
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'
15873
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'
15876
case $cc_basename in
15879
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'
15881
# Archives containing C++ object files must be created using
15882
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
15883
# necessary to make sure instantiated templates are included
15885
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15888
if test "$GXX" = yes; then
15889
if test "$with_gnu_ld" = no; then
15890
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'
15892
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'
15895
link_all_deplibs_CXX=yes
15898
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15899
hardcode_libdir_separator_CXX=:
15901
linux* | k*bsd*-gnu)
15902
case $cc_basename in
15904
# Kuck and Associates, Inc. (KAI) C++ Compiler
15906
# KCC will only create a shared library if the output file
15907
# ends with ".so" (or ".sl" for HP-UX), so rename the library
15908
# to its proper name (with version) after linking.
15909
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'
15910
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'
15911
# Commands to make compiler produce verbose output that lists
15912
# what "hidden" libraries, object files and flags are used when
15913
# linking a shared library.
15915
# There doesn't appear to be a way to prevent this compiler from
15916
# explicitly linking system object files so we need to strip them
15917
# from the output so that they don't get included in the library
15919
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'
15921
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15922
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15924
# Archives containing C++ object files must be created using
15925
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
15926
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15931
# version 8.0 and above of icpc choke on multiply defined symbols
15932
# if we add $predep_objects and $postdep_objects, however 7.1 and
15933
# earlier do not add the objects themselves.
15934
case `$CC -V 2>&1` in
15936
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15937
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'
15939
*) # Version 8.0 or newer
15942
ia64*) tmp_idyn=' -i_dynamic';;
15944
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15945
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'
15948
archive_cmds_need_lc_CXX=no
15949
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15950
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15951
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15954
# Portland Group C++ compiler
15955
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15956
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'
15958
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15959
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15960
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'
15964
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15965
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'
15967
runpath_var=LD_RUN_PATH
15968
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15969
hardcode_libdir_separator_CXX=:
15971
# Commands to make compiler produce verbose output that lists
15972
# what "hidden" libraries, object files and flags are used when
15973
# linking a shared library.
15975
# There doesn't appear to be a way to prevent this compiler from
15976
# explicitly linking system object files so we need to strip them
15977
# from the output so that they don't get included in the library
15979
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'
15982
case `$CC -V 2>&1 | sed 5q` in
15985
no_undefined_flag_CXX=' -zdefs'
15986
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15987
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'
15988
hardcode_libdir_flag_spec_CXX='-R$libdir'
15989
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'
15991
# Not sure whether something based on
15992
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15994
output_verbose_link_cmd='echo'
15996
# Archives containing C++ object files must be created using
15997
# "CC -xar", where "CC" is the Sun C++ compiler. This is
15998
# necessary to make sure instantiated templates are included
16000
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16007
# FIXME: insert proper C++ library support
16011
# FIXME: insert proper C++ library support
16015
case $cc_basename in
16017
# FIXME: insert proper C++ library support
16021
# FIXME: insert proper C++ library support
16027
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16028
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16030
hardcode_libdir_flag_spec_CXX='-R$libdir'
16031
hardcode_direct_CXX=yes
16032
hardcode_shlibpath_var_CXX=no
16034
# Workaround some broken pre-1.5 toolchains
16035
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16038
# C++ shared libraries are fairly broken
16042
if test -f /usr/libexec/ld.so; then
16043
hardcode_direct_CXX=yes
16044
hardcode_shlibpath_var_CXX=no
16045
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16046
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16047
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16048
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16049
export_dynamic_flag_spec_CXX='${wl}-E'
16050
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16052
output_verbose_link_cmd='echo'
16058
case $cc_basename in
16060
# Kuck and Associates, Inc. (KAI) C++ Compiler
16062
# KCC will only create a shared library if the output file
16063
# ends with ".so" (or ".sl" for HP-UX), so rename the library
16064
# to its proper name (with version) after linking.
16065
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'
16067
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16068
hardcode_libdir_separator_CXX=:
16070
# Archives containing C++ object files must be created using
16071
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
16072
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16076
# Rational C++ 2.4.1
16077
# FIXME: insert proper C++ library support
16081
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16082
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'
16084
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16085
hardcode_libdir_separator_CXX=:
16087
# Commands to make compiler produce verbose output that lists
16088
# what "hidden" libraries, object files and flags are used when
16089
# linking a shared library.
16091
# There doesn't appear to be a way to prevent this compiler from
16092
# explicitly linking system object files so we need to strip them
16093
# from the output so that they don't get included in the library
16095
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'
16098
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16099
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16100
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'
16102
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16103
hardcode_libdir_separator_CXX=:
16105
# Commands to make compiler produce verbose output that lists
16106
# what "hidden" libraries, object files and flags are used when
16107
# linking a shared library.
16108
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16111
# FIXME: insert proper C++ library support
16118
case $cc_basename in
16120
# Kuck and Associates, Inc. (KAI) C++ Compiler
16122
# KCC will only create a shared library if the output file
16123
# ends with ".so" (or ".sl" for HP-UX), so rename the library
16124
# to its proper name (with version) after linking.
16125
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'
16127
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16128
hardcode_libdir_separator_CXX=:
16130
# Archives containing C++ object files must be created using
16131
# the KAI C++ compiler.
16132
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16135
# Rational C++ 2.4.1
16136
# FIXME: insert proper C++ library support
16140
allow_undefined_flag_CXX=' -expect_unresolved \*'
16141
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'
16142
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16143
echo "-hidden">> $lib.exp~
16144
$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~
16147
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16148
hardcode_libdir_separator_CXX=:
16150
# Commands to make compiler produce verbose output that lists
16151
# what "hidden" libraries, object files and flags are used when
16152
# linking a shared library.
16154
# There doesn't appear to be a way to prevent this compiler from
16155
# explicitly linking system object files so we need to strip them
16156
# from the output so that they don't get included in the library
16158
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'
16161
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16162
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16163
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'
16165
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16166
hardcode_libdir_separator_CXX=:
16168
# Commands to make compiler produce verbose output that lists
16169
# what "hidden" libraries, object files and flags are used when
16170
# linking a shared library.
16171
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16174
# FIXME: insert proper C++ library support
16181
# FIXME: insert proper C++ library support
16185
case $cc_basename in
16188
# FIXME: insert proper C++ library support
16193
# FIXME: insert proper C++ library support
16197
# FIXME: insert proper C++ library support
16203
case $cc_basename in
16205
# Sun C++ 4.2, 5.x and Centerline C++
16206
archive_cmds_need_lc_CXX=yes
16207
no_undefined_flag_CXX=' -zdefs'
16208
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16209
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16210
$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'
16212
hardcode_libdir_flag_spec_CXX='-R$libdir'
16213
hardcode_shlibpath_var_CXX=no
16215
solaris2.[0-5] | solaris2.[0-5].*) ;;
16217
# The compiler driver will combine and reorder linker options,
16218
# but understands `-z linker_flag'.
16219
# Supported since Solaris 2.6 (maybe 2.5.1?)
16220
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16223
link_all_deplibs_CXX=yes
16225
output_verbose_link_cmd='echo'
16227
# Archives containing C++ object files must be created using
16228
# "CC -xar", where "CC" is the Sun C++ compiler. This is
16229
# necessary to make sure instantiated templates are included
16231
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16234
# Green Hills C++ Compiler
16235
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16237
# The C++ compiler must be used to create the archive.
16238
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16241
# GNU C++ compiler with Solaris linker
16242
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16243
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16244
if $CC --version | grep -v '^2\.7' > /dev/null; then
16245
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16246
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16247
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16249
# Commands to make compiler produce verbose output that lists
16250
# what "hidden" libraries, object files and flags are used when
16251
# linking a shared library.
16252
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16254
# g++ 2.7 appears to require `-G' NOT `-shared' on this
16256
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16257
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16258
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16260
# Commands to make compiler produce verbose output that lists
16261
# what "hidden" libraries, object files and flags are used when
16262
# linking a shared library.
16263
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16266
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16268
solaris2.[0-5] | solaris2.[0-5].*) ;;
16270
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16277
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16278
no_undefined_flag_CXX='${wl}-z,text'
16279
archive_cmds_need_lc_CXX=no
16280
hardcode_shlibpath_var_CXX=no
16281
runpath_var='LD_RUN_PATH'
16283
case $cc_basename in
16285
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16286
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16289
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16290
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16294
sysv5* | sco3.2v5* | sco5v6*)
16295
# Note: We can NOT use -z defs as we might desire, because we do not
16296
# link with -lc, and that would cause any symbols used from libc to
16297
# always be unresolved, which means just about no library would
16298
# ever link correctly. If we're not using GNU ld we use -z text
16299
# though, which does catch some bad symbols but isn't as heavy-handed
16301
# For security reasons, it is highly recommended that you always
16302
# use absolute paths for naming shared libraries, and exclude the
16303
# DT_RUNPATH tag from executables and libraries. But doing so
16304
# requires that you compile everything twice, which is a pain.
16305
# So that behaviour is only enabled if SCOABSPATH is set to a
16306
# non-empty value in the environment. Most likely only useful for
16307
# creating official distributions of packages.
16308
# This is a hack until libtool officially supports absolute path
16309
# names for shared libraries.
16310
no_undefined_flag_CXX='${wl}-z,text'
16311
allow_undefined_flag_CXX='${wl}-z,nodefs'
16312
archive_cmds_need_lc_CXX=no
16313
hardcode_shlibpath_var_CXX=no
16314
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16315
hardcode_libdir_separator_CXX=':'
16316
link_all_deplibs_CXX=yes
16317
export_dynamic_flag_spec_CXX='${wl}-Bexport'
16318
runpath_var='LD_RUN_PATH'
16320
case $cc_basename in
16322
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16323
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16326
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16327
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16332
case $cc_basename in
16334
# NonStop-UX NCC 3.20
16335
# FIXME: insert proper C++ library support
16339
# FIXME: insert proper C++ library support
16345
# FIXME: insert proper C++ library support
16349
# FIXME: insert proper C++ library support
16353
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16354
$as_echo "$ld_shlibs_CXX" >&6; }
16355
test "$ld_shlibs_CXX" = no && can_build_shared=no
16360
cat > conftest.$ac_ext <<EOF
16364
Foo (void) { a = 0; }
16370
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16371
(eval $ac_compile) 2>&5
16373
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16374
(exit $ac_status); }; then
16375
# Parse the compiler output and extract the necessary
16376
# objects, libraries and library flags.
16378
# Sentinel used to keep track of whether or not we are before
16379
# the conftest object file.
16380
pre_test_object_deps_done=no
16382
# The `*' in the case matches for architectures that use `case' in
16383
# $output_verbose_cmd can trigger glob expansion during the loop
16384
# eval without this substitution.
16385
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
16387
for p in `eval $output_verbose_link_cmd`; do
16391
# Some compilers place space between "-{L,R}" and the path.
16392
# Remove the space.
16393
if test $p = "-L" \
16394
|| test $p = "-R"; then
16401
if test "$pre_test_object_deps_done" = no; then
16404
# Internal compiler library paths should come after those
16405
# provided the user. The postdeps already come after the
16406
# user supplied libs so there is no need to process them.
16407
if test -z "$compiler_lib_search_path_CXX"; then
16408
compiler_lib_search_path_CXX="${prev}${p}"
16410
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16413
# The "-l" case would never come before the object being
16414
# linked, so don't bother handling this case.
16417
if test -z "$postdeps_CXX"; then
16418
postdeps_CXX="${prev}${p}"
16420
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16426
# This assumes that the test object file only shows up
16427
# once in the compiler output.
16428
if test "$p" = "conftest.$objext"; then
16429
pre_test_object_deps_done=yes
16433
if test "$pre_test_object_deps_done" = no; then
16434
if test -z "$predep_objects_CXX"; then
16435
predep_objects_CXX="$p"
16437
predep_objects_CXX="$predep_objects_CXX $p"
16440
if test -z "$postdep_objects_CXX"; then
16441
postdep_objects_CXX="$p"
16443
postdep_objects_CXX="$postdep_objects_CXX $p"
16448
*) ;; # Ignore the rest.
16456
echo "libtool.m4: error: problem compiling CXX test program"
16459
$rm -f confest.$objext
16461
compiler_lib_search_dirs_CXX=
16462
if test -n "$compiler_lib_search_path_CXX"; then
16463
compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
16466
# PORTME: override above test on systems where it is broken
16469
# Interix 3.5 installs completely hosed .la files for C++, so rather than
16470
# hack all around it, let's just trust "g++" to DTRT.
16471
predep_objects_CXX=
16472
postdep_objects_CXX=
16477
case `$CC -V 2>&1 | sed 5q` in
16481
# The more standards-conforming stlport4 library is
16482
# incompatible with the Cstd library. Avoid specifying
16483
# it if it's in CXXFLAGS. Ignore libCrun as
16484
# -library=stlport4 depends on it.
16485
case " $CXX $CXXFLAGS " in
16486
*" -library=stlport4 "*)
16487
solaris_use_stlport4=yes
16490
if test "$solaris_use_stlport4" != yes; then
16491
postdeps_CXX='-library=Cstd -library=Crun'
16498
case $cc_basename in
16500
# The more standards-conforming stlport4 library is
16501
# incompatible with the Cstd library. Avoid specifying
16502
# it if it's in CXXFLAGS. Ignore libCrun as
16503
# -library=stlport4 depends on it.
16504
case " $CXX $CXXFLAGS " in
16505
*" -library=stlport4 "*)
16506
solaris_use_stlport4=yes
16510
# Adding this requires a known-good setup of shared libraries for
16511
# Sun compiler versions before 5.6, else PIC objects from an old
16512
# archive will be linked into the output, leading to subtle bugs.
16513
if test "$solaris_use_stlport4" != yes; then
16514
postdeps_CXX='-library=Cstd -library=Crun'
16521
case " $postdeps_CXX " in
16522
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16525
lt_prog_compiler_wl_CXX=
16526
lt_prog_compiler_pic_CXX=
16527
lt_prog_compiler_static_CXX=
16529
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16530
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16532
# C++ specific cases for pic, static, wl, etc.
16533
if test "$GXX" = yes; then
16534
lt_prog_compiler_wl_CXX='-Wl,'
16535
lt_prog_compiler_static_CXX='-static'
16539
# All AIX code is PIC.
16540
if test "$host_cpu" = ia64; then
16541
# AIX 5 now supports IA64 processor
16542
lt_prog_compiler_static_CXX='-Bstatic'
16546
# FIXME: we need at least 68020 code to build shared libraries, but
16547
# adding the `-m68020' flag to GCC prevents building anything better,
16549
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16551
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16552
# PIC is the default for these OSes.
16554
mingw* | cygwin* | os2* | pw32*)
16555
# This hack is so that the source file can tell whether it is being
16556
# built for inclusion in a dll (and should export symbols for example).
16557
# Although the cygwin gcc ignores -fPIC, still need this for old-style
16558
# (--disable-auto-import) libraries
16559
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16561
darwin* | rhapsody*)
16562
# PIC is the default on this platform
16563
# Common symbols not allowed in MH_DYLIB files
16564
lt_prog_compiler_pic_CXX='-fno-common'
16567
# DJGPP does not support shared libraries at all
16568
lt_prog_compiler_pic_CXX=
16571
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
16572
# Instead, we relocate shared libraries at runtime.
16575
if test -d /usr/nec; then
16576
lt_prog_compiler_pic_CXX=-Kconform_pic
16580
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16581
# not for PA HP-UX.
16586
lt_prog_compiler_pic_CXX='-fPIC'
16591
lt_prog_compiler_pic_CXX='-fPIC'
16597
# All AIX code is PIC.
16598
if test "$host_cpu" = ia64; then
16599
# AIX 5 now supports IA64 processor
16600
lt_prog_compiler_static_CXX='-Bstatic'
16602
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16606
case $cc_basename in
16608
# Green Hills C++ Compiler
16609
# _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"
16614
# PIC is the default on this platform
16615
# Common symbols not allowed in MH_DYLIB files
16616
case $cc_basename in
16618
lt_prog_compiler_pic_CXX='-qnocommon'
16619
lt_prog_compiler_wl_CXX='-Wl,'
16624
case $cc_basename in
16626
lt_prog_compiler_pic_CXX='-KPIC'
16629
# Green Hills C++ Compiler
16630
lt_prog_compiler_pic_CXX='-pic'
16636
freebsd* | dragonfly*)
16637
# FreeBSD uses GNU C++
16639
hpux9* | hpux10* | hpux11*)
16640
case $cc_basename in
16642
lt_prog_compiler_wl_CXX='-Wl,'
16643
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16644
if test "$host_cpu" != ia64; then
16645
lt_prog_compiler_pic_CXX='+Z'
16649
lt_prog_compiler_wl_CXX='-Wl,'
16650
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16656
lt_prog_compiler_pic_CXX='+Z'
16665
# This is c89, which is MS Visual C++ (no shared libs)
16666
# Anyone wants to do a port?
16668
irix5* | irix6* | nonstopux*)
16669
case $cc_basename in
16671
lt_prog_compiler_wl_CXX='-Wl,'
16672
lt_prog_compiler_static_CXX='-non_shared'
16673
# CC pic flag -KPIC is the default.
16679
linux* | k*bsd*-gnu)
16680
case $cc_basename in
16683
lt_prog_compiler_wl_CXX='--backend -Wl,'
16684
lt_prog_compiler_pic_CXX='-fPIC'
16688
lt_prog_compiler_wl_CXX='-Wl,'
16689
lt_prog_compiler_pic_CXX='-KPIC'
16690
lt_prog_compiler_static_CXX='-static'
16693
# Portland Group C++ compiler.
16694
lt_prog_compiler_wl_CXX='-Wl,'
16695
lt_prog_compiler_pic_CXX='-fpic'
16696
lt_prog_compiler_static_CXX='-Bstatic'
16700
# Make sure the PIC flag is empty. It appears that all Alpha
16701
# Linux and Compaq Tru64 Unix objects are PIC.
16702
lt_prog_compiler_pic_CXX=
16703
lt_prog_compiler_static_CXX='-non_shared'
16706
case `$CC -V 2>&1 | sed 5q` in
16709
lt_prog_compiler_pic_CXX='-KPIC'
16710
lt_prog_compiler_static_CXX='-Bstatic'
16711
lt_prog_compiler_wl_CXX='-Qoption ld '
16722
case $cc_basename in
16724
lt_prog_compiler_pic_CXX='-W c,exportall'
16732
osf3* | osf4* | osf5*)
16733
case $cc_basename in
16735
lt_prog_compiler_wl_CXX='--backend -Wl,'
16738
# Rational C++ 2.4.1
16739
lt_prog_compiler_pic_CXX='-pic'
16742
# Digital/Compaq C++
16743
lt_prog_compiler_wl_CXX='-Wl,'
16744
# Make sure the PIC flag is empty. It appears that all Alpha
16745
# Linux and Compaq Tru64 Unix objects are PIC.
16746
lt_prog_compiler_pic_CXX=
16747
lt_prog_compiler_static_CXX='-non_shared'
16756
case $cc_basename in
16758
# Sun C++ 4.2, 5.x and Centerline C++
16759
lt_prog_compiler_pic_CXX='-KPIC'
16760
lt_prog_compiler_static_CXX='-Bstatic'
16761
lt_prog_compiler_wl_CXX='-Qoption ld '
16764
# Green Hills C++ Compiler
16765
lt_prog_compiler_pic_CXX='-PIC'
16772
case $cc_basename in
16775
lt_prog_compiler_pic_CXX='-pic'
16776
lt_prog_compiler_static_CXX='-Bstatic'
16780
lt_prog_compiler_pic_CXX='-pic'
16787
case $cc_basename in
16789
# NonStop-UX NCC 3.20
16790
lt_prog_compiler_pic_CXX='-KPIC'
16796
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16797
case $cc_basename in
16799
lt_prog_compiler_wl_CXX='-Wl,'
16800
lt_prog_compiler_pic_CXX='-KPIC'
16801
lt_prog_compiler_static_CXX='-Bstatic'
16808
lt_prog_compiler_can_build_shared_CXX=no
16813
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16814
$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
16817
# Check to make sure the PIC flag actually works.
16819
if test -n "$lt_prog_compiler_pic_CXX"; then
16821
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16822
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16823
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
16824
$as_echo_n "(cached) " >&6
16826
lt_cv_prog_compiler_pic_works_CXX=no
16827
ac_outfile=conftest.$ac_objext
16828
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16829
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16830
# Insert the option either (1) after the last *FLAGS variable, or
16831
# (2) before a word containing "conftest.", or (3) at the end.
16832
# Note that $ac_compile itself does not contain backslashes and begins
16833
# with a dollar sign (not a hyphen), so the echo should work correctly.
16834
# The option is referenced via a variable to avoid confusing sed.
16835
lt_compile=`echo "$ac_compile" | $SED \
16836
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16837
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16838
-e 's:$: $lt_compiler_flag:'`
16839
(eval echo "\"\$as_me:16839: $lt_compile\"" >&5)
16840
(eval "$lt_compile" 2>conftest.err)
16842
cat conftest.err >&5
16843
echo "$as_me:16843: \$? = $ac_status" >&5
16844
if (exit $ac_status) && test -s "$ac_outfile"; then
16845
# The compiler can only warn and ignore the option if not recognized
16846
# So say no if there are warnings other than the usual output.
16847
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16848
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16849
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16850
lt_cv_prog_compiler_pic_works_CXX=yes
16856
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16857
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16859
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
16860
case $lt_prog_compiler_pic_CXX in
16862
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16865
lt_prog_compiler_pic_CXX=
16866
lt_prog_compiler_can_build_shared_CXX=no
16871
# For platforms which do not support PIC, -DPIC is meaningless:
16873
lt_prog_compiler_pic_CXX=
16876
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16881
# Check to make sure the static flag actually works.
16883
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16884
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16885
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16886
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
16887
$as_echo_n "(cached) " >&6
16889
lt_cv_prog_compiler_static_works_CXX=no
16890
save_LDFLAGS="$LDFLAGS"
16891
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16892
echo "$lt_simple_link_test_code" > conftest.$ac_ext
16893
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16894
# The linker can only warn and ignore the option if not recognized
16895
# So say no if there are warnings
16896
if test -s conftest.err; then
16897
# Append any errors to the config.log.
16898
cat conftest.err 1>&5
16899
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16900
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16901
if diff conftest.exp conftest.er2 >/dev/null; then
16902
lt_cv_prog_compiler_static_works_CXX=yes
16905
lt_cv_prog_compiler_static_works_CXX=yes
16909
LDFLAGS="$save_LDFLAGS"
16912
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16913
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16915
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
16918
lt_prog_compiler_static_CXX=
16922
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16923
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16924
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16925
$as_echo_n "(cached) " >&6
16927
lt_cv_prog_compiler_c_o_CXX=no
16928
$rm -r conftest 2>/dev/null
16932
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16934
lt_compiler_flag="-o out/conftest2.$ac_objext"
16935
# Insert the option either (1) after the last *FLAGS variable, or
16936
# (2) before a word containing "conftest.", or (3) at the end.
16937
# Note that $ac_compile itself does not contain backslashes and begins
16938
# with a dollar sign (not a hyphen), so the echo should work correctly.
16939
lt_compile=`echo "$ac_compile" | $SED \
16940
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16941
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16942
-e 's:$: $lt_compiler_flag:'`
16943
(eval echo "\"\$as_me:16943: $lt_compile\"" >&5)
16944
(eval "$lt_compile" 2>out/conftest.err)
16946
cat out/conftest.err >&5
16947
echo "$as_me:16947: \$? = $ac_status" >&5
16948
if (exit $ac_status) && test -s out/conftest2.$ac_objext
16950
# The compiler can only warn and ignore the option if not recognized
16951
# So say no if there are warnings
16952
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16953
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16954
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16955
lt_cv_prog_compiler_c_o_CXX=yes
16960
# SGI C++ compiler will create directory out/ii_files/ for
16961
# template instantiation
16962
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16963
$rm out/* && rmdir out
16969
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16970
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16973
hard_links="nottested"
16974
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16975
# do not overwrite the value of need_locks provided by the user
16976
{ $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16977
$as_echo_n "checking if we can lock with hard links... " >&6; }
16980
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16982
ln conftest.a conftest.b 2>&5 || hard_links=no
16983
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16984
{ $as_echo "$as_me:$LINENO: result: $hard_links" >&5
16985
$as_echo "$hard_links" >&6; }
16986
if test "$hard_links" = no; then
16987
{ $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16988
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16995
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16996
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16998
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17001
# If we're using GNU nm, then we don't want the "-C" option.
17002
# -C means demangle to AIX nm, but means don't demangle with GNU nm
17003
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17004
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'
17006
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'
17010
export_symbols_cmds_CXX="$ltdll_cmds"
17013
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'
17016
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17019
exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17021
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
17022
$as_echo "$ld_shlibs_CXX" >&6; }
17023
test "$ld_shlibs_CXX" = no && can_build_shared=no
17026
# Do we need to explicitly link libc?
17028
case "x$archive_cmds_need_lc_CXX" in
17030
# Assume -lc should be added
17031
archive_cmds_need_lc_CXX=yes
17033
if test "$enable_shared" = yes && test "$GCC" = yes; then
17034
case $archive_cmds_CXX in
17036
# FIXME: we may have to deal with multi-command sequences.
17039
# Test whether the compiler implicitly links with -lc since on some
17040
# systems, -lgcc has to come before -lc. If gcc already passes -lc
17041
# to ld, don't add -lc before -lgcc.
17042
{ $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17043
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17045
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17047
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17048
(eval $ac_compile) 2>&5
17050
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17051
(exit $ac_status); } 2>conftest.err; then
17054
libobjs=conftest.$ac_objext
17056
wl=$lt_prog_compiler_wl_CXX
17057
pic_flag=$lt_prog_compiler_pic_CXX
17063
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17064
allow_undefined_flag_CXX=
17065
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17066
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17068
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069
(exit $ac_status); }
17071
archive_cmds_need_lc_CXX=no
17073
archive_cmds_need_lc_CXX=yes
17075
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17077
cat conftest.err 1>&5
17080
{ $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
17081
$as_echo "$archive_cmds_need_lc_CXX" >&6; }
17088
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17089
$as_echo_n "checking dynamic linker characteristics... " >&6; }
17090
library_names_spec=
17091
libname_spec='lib$name'
17095
postuninstall_cmds=
17099
shlibpath_overrides_runpath=unknown
17101
dynamic_linker="$host_os ld.so"
17102
sys_lib_dlsearch_path_spec="/lib /usr/lib"
17104
need_lib_prefix=unknown
17105
hardcode_into_libs=no
17107
# when you set need_version to no, make sure it does not cause -set_version
17108
# flags to be left without arguments
17109
need_version=unknown
17114
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17115
shlibpath_var=LIBPATH
17117
# AIX 3 has no versioning support, so we append a major version to the name.
17118
soname_spec='${libname}${release}${shared_ext}$major'
17125
hardcode_into_libs=yes
17126
if test "$host_cpu" = ia64; then
17127
# AIX 5 supports IA64
17128
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17129
shlibpath_var=LD_LIBRARY_PATH
17131
# With GCC up to 2.95.x, collect2 would create an import file
17132
# for dependence libraries. The import file would start with
17133
# the line `#! .'. This would cause the generated library to
17134
# depend on `.', always an invalid library. This was fixed in
17135
# development snapshots of GCC prior to 3.0.
17137
aix4 | aix4.[01] | aix4.[01].*)
17138
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17140
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17143
can_build_shared=no
17147
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17148
# soname into executable. Probably we can add versioning support to
17149
# collect2, so additional links can be useful in future.
17150
if test "$aix_use_runtimelinking" = yes; then
17151
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
17152
# instead of lib<name>.a to let people know that these are not
17153
# typical AIX shared libraries.
17154
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17156
# We preserve .a as extension for shared libraries through AIX4.2
17157
# and later when we are not doing run time linking.
17158
library_names_spec='${libname}${release}.a $libname.a'
17159
soname_spec='${libname}${release}${shared_ext}$major'
17161
shlibpath_var=LIBPATH
17166
library_names_spec='$libname.ixlibrary $libname.a'
17167
# Create ${libname}_ixlibrary.a entries in /sys/libs.
17168
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'
17172
library_names_spec='${libname}${shared_ext}'
17173
dynamic_linker="$host_os ld.so"
17174
shlibpath_var=LIBRARY_PATH
17180
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17181
soname_spec='${libname}${release}${shared_ext}$major'
17182
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17183
shlibpath_var=LD_LIBRARY_PATH
17184
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17185
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17186
# the default ld.so.conf also contains /usr/contrib/lib and
17187
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17188
# libtool to hard-code these into programs
17191
cygwin* | mingw* | pw32*)
17192
version_type=windows
17197
case $GCC,$host_os in
17198
yes,cygwin* | yes,mingw* | yes,pw32*)
17199
library_names_spec='$libname.dll.a'
17200
# DLL is installed to $(libdir)/../bin by postinstall_cmds
17201
postinstall_cmds='base_file=`basename \${file}`~
17202
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17203
dldir=$destdir/`dirname \$dlpath`~
17204
test -d \$dldir || mkdir -p \$dldir~
17205
$install_prog $dir/$dlname \$dldir/$dlname~
17206
chmod a+x \$dldir/$dlname'
17207
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17208
dlpath=$dir/\$dldll~
17210
shlibpath_overrides_runpath=yes
17214
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
17215
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17216
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17219
# MinGW DLLs use traditional 'lib' prefix
17220
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17221
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17222
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17223
# It is most probably a Windows format PATH printed by
17224
# mingw gcc, but we are running on Cygwin. Gcc prints its search
17225
# path with ; separators, and with drive letters. We can handle the
17226
# drive letters (cygwin fileutils understands them), so leave them,
17227
# especially as we might pass files found there to a mingw objdump,
17228
# which wouldn't understand a cygwinified path. Ahh.
17229
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17231
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17235
# pw32 DLLs use 'pw' prefix rather than 'lib'
17236
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17242
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17245
dynamic_linker='Win32 ld.exe'
17246
# FIXME: first we should search . and the directory the executable is in
17250
darwin* | rhapsody*)
17251
dynamic_linker="$host_os dyld"
17252
version_type=darwin
17255
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17256
soname_spec='${libname}${release}${major}$shared_ext'
17257
shlibpath_overrides_runpath=yes
17258
shlibpath_var=DYLD_LIBRARY_PATH
17259
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17261
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17268
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17269
soname_spec='${libname}${release}${shared_ext}$major'
17270
shlibpath_var=LD_LIBRARY_PATH
17277
freebsd* | dragonfly*)
17278
# DragonFly does not have aout. When/if they implement a new
17279
# versioning mechanism, adjust this.
17280
if test -x /usr/bin/objformat; then
17281
objformat=`/usr/bin/objformat`
17284
freebsd[123]*) objformat=aout ;;
17285
*) objformat=elf ;;
17288
version_type=freebsd-$objformat
17289
case $version_type in
17291
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17296
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17300
shlibpath_var=LD_LIBRARY_PATH
17303
shlibpath_overrides_runpath=yes
17305
freebsd3.[01]* | freebsdelf3.[01]*)
17306
shlibpath_overrides_runpath=yes
17307
hardcode_into_libs=yes
17309
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17310
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17311
shlibpath_overrides_runpath=no
17312
hardcode_into_libs=yes
17314
*) # from 4.6 on, and DragonFly
17315
shlibpath_overrides_runpath=yes
17316
hardcode_into_libs=yes
17325
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17326
soname_spec='${libname}${release}${shared_ext}$major'
17327
shlibpath_var=LD_LIBRARY_PATH
17328
hardcode_into_libs=yes
17331
hpux9* | hpux10* | hpux11*)
17332
# Give a soname corresponding to the major version so that dld.sl refuses to
17333
# link against other versions.
17340
hardcode_into_libs=yes
17341
dynamic_linker="$host_os dld.so"
17342
shlibpath_var=LD_LIBRARY_PATH
17343
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17344
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17345
soname_spec='${libname}${release}${shared_ext}$major'
17346
if test "X$HPUX_IA64_MODE" = X32; then
17347
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17349
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17351
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17355
hardcode_into_libs=yes
17356
dynamic_linker="$host_os dld.sl"
17357
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17358
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17359
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17360
soname_spec='${libname}${release}${shared_ext}$major'
17361
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17362
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17366
dynamic_linker="$host_os dld.sl"
17367
shlibpath_var=SHLIB_PATH
17368
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17369
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17370
soname_spec='${libname}${release}${shared_ext}$major'
17373
# HP-UX runs *really* slowly unless shared libraries are mode 555.
17374
postinstall_cmds='chmod 555 $lib'
17381
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17382
soname_spec='${libname}${release}${shared_ext}$major'
17383
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17384
shlibpath_var=LD_LIBRARY_PATH
17385
shlibpath_overrides_runpath=no
17386
hardcode_into_libs=yes
17389
irix5* | irix6* | nonstopux*)
17391
nonstopux*) version_type=nonstopux ;;
17393
if test "$lt_cv_prog_gnu_ld" = yes; then
17401
soname_spec='${libname}${release}${shared_ext}$major'
17402
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17404
irix5* | nonstopux*)
17405
libsuff= shlibsuff=
17408
case $LD in # libtool.m4 will add one of these switches to LD
17409
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17410
libsuff= shlibsuff= libmagic=32-bit;;
17411
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17412
libsuff=32 shlibsuff=N32 libmagic=N32;;
17413
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17414
libsuff=64 shlibsuff=64 libmagic=64-bit;;
17415
*) libsuff= shlibsuff= libmagic=never-match;;
17419
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17420
shlibpath_overrides_runpath=no
17421
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17422
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17423
hardcode_into_libs=yes
17426
# No shared lib support for Linux oldld, aout, or coff.
17427
linux*oldld* | linux*aout* | linux*coff*)
17431
# This must be Linux ELF.
17432
linux* | k*bsd*-gnu)
17436
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17437
soname_spec='${libname}${release}${shared_ext}$major'
17438
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17439
shlibpath_var=LD_LIBRARY_PATH
17440
shlibpath_overrides_runpath=no
17441
# This implies no fast_install, which is unacceptable.
17442
# Some rework will be needed to allow for fast_install
17443
# before this can be enabled.
17444
hardcode_into_libs=yes
17445
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17446
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17448
# Append ld.so.conf contents to the search path
17449
if test -f /etc/ld.so.conf; then
17450
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' ' '`
17451
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
17454
# We used to test for /lib/ld.so.1 and disable shared libraries on
17455
# powerpc, because MkLinux only supported shared libraries with the
17456
# GNU dynamic linker. Since this was broken with cross compilers,
17457
# most powerpc-linux boxes support dynamic linking these days and
17458
# people can always --disable-shared, the test was removed, and we
17459
# assume the GNU/Linux dynamic linker is in use.
17460
dynamic_linker='GNU/Linux ld.so'
17467
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17468
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17469
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17470
dynamic_linker='NetBSD (a.out) ld.so'
17472
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17473
soname_spec='${libname}${release}${shared_ext}$major'
17474
dynamic_linker='NetBSD ld.elf_so'
17476
shlibpath_var=LD_LIBRARY_PATH
17477
shlibpath_overrides_runpath=yes
17478
hardcode_into_libs=yes
17483
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17484
shlibpath_var=LD_LIBRARY_PATH
17485
shlibpath_overrides_runpath=yes
17492
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17493
soname_spec='${libname}${release}${shared_ext}$major'
17494
shlibpath_var=LD_LIBRARY_PATH
17495
shlibpath_overrides_runpath=yes
17500
sys_lib_dlsearch_path_spec="/usr/lib"
17502
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17504
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17505
*) need_version=no ;;
17507
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17508
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17509
shlibpath_var=LD_LIBRARY_PATH
17510
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17512
openbsd2.[89] | openbsd2.[89].*)
17513
shlibpath_overrides_runpath=no
17516
shlibpath_overrides_runpath=yes
17520
shlibpath_overrides_runpath=yes
17525
libname_spec='$name'
17528
library_names_spec='$libname${shared_ext} $libname.a'
17529
dynamic_linker='OS/2 ld.exe'
17530
shlibpath_var=LIBPATH
17533
osf3* | osf4* | osf5*)
17537
soname_spec='${libname}${release}${shared_ext}$major'
17538
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17539
shlibpath_var=LD_LIBRARY_PATH
17540
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17541
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17552
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17553
soname_spec='${libname}${release}${shared_ext}$major'
17554
shlibpath_var=LD_LIBRARY_PATH
17555
shlibpath_overrides_runpath=yes
17556
hardcode_into_libs=yes
17557
# ldd complains unless libraries are executable
17558
postinstall_cmds='chmod +x $lib'
17563
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17564
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17565
shlibpath_var=LD_LIBRARY_PATH
17566
shlibpath_overrides_runpath=yes
17567
if test "$with_gnu_ld" = yes; then
17575
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17576
soname_spec='${libname}${release}${shared_ext}$major'
17577
shlibpath_var=LD_LIBRARY_PATH
17578
case $host_vendor in
17580
shlibpath_overrides_runpath=no
17582
export_dynamic_flag_spec='${wl}-Blargedynsym'
17583
runpath_var=LD_RUN_PATH
17591
shlibpath_overrides_runpath=no
17592
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17598
if test -d /usr/nec ;then
17600
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17601
soname_spec='$libname${shared_ext}.$major'
17602
shlibpath_var=LD_LIBRARY_PATH
17606
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17607
version_type=freebsd-elf
17610
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17611
soname_spec='${libname}${release}${shared_ext}$major'
17612
shlibpath_var=LD_LIBRARY_PATH
17613
hardcode_into_libs=yes
17614
if test "$with_gnu_ld" = yes; then
17615
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17616
shlibpath_overrides_runpath=no
17618
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17619
shlibpath_overrides_runpath=yes
17622
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17626
sys_lib_dlsearch_path_spec='/usr/lib'
17631
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17632
soname_spec='${libname}${release}${shared_ext}$major'
17633
shlibpath_var=LD_LIBRARY_PATH
17640
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17641
$as_echo "$dynamic_linker" >&6; }
17642
test "$dynamic_linker" = no && can_build_shared=no
17644
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17645
$as_echo_n "(cached) " >&6
17647
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
17650
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17651
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17652
$as_echo_n "(cached) " >&6
17654
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
17657
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17659
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17660
if test "$GCC" = yes; then
17661
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17664
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17665
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17666
hardcode_action_CXX=
17667
if test -n "$hardcode_libdir_flag_spec_CXX" || \
17668
test -n "$runpath_var_CXX" || \
17669
test "X$hardcode_automatic_CXX" = "Xyes" ; then
17671
# We can hardcode non-existant directories.
17672
if test "$hardcode_direct_CXX" != no &&
17673
# If the only mechanism to avoid hardcoding is shlibpath_var, we
17674
# have to relink, otherwise we might link with an installed library
17675
# when we should be linking with a yet-to-be-installed one
17676
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17677
test "$hardcode_minus_L_CXX" != no; then
17678
# Linking always hardcodes the temporary library directory.
17679
hardcode_action_CXX=relink
17681
# We can link without hardcoding, and we can hardcode nonexisting dirs.
17682
hardcode_action_CXX=immediate
17685
# We cannot hardcode anything, or else we can only hardcode existing
17687
hardcode_action_CXX=unsupported
17689
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17690
$as_echo "$hardcode_action_CXX" >&6; }
17692
if test "$hardcode_action_CXX" = relink; then
17693
# Fast installation is not supported
17694
enable_fast_install=no
17695
elif test "$shlibpath_overrides_runpath" = yes ||
17696
test "$enable_shared" = no; then
17697
# Fast installation is not necessary
17698
enable_fast_install=needless
17702
# The else clause should only fire when bootstrapping the
17703
# libtool distribution, otherwise you forgot to ship ltmain.sh
17704
# with your package, and you will get complaints that there are
17705
# no rules to generate ltmain.sh.
17706
if test -f "$ltmain"; then
17707
# See if we are running on zsh, and set the options which allow our commands through
17708
# without removal of \ escapes.
17709
if test -n "${ZSH_VERSION+set}" ; then
17710
setopt NO_GLOB_SUBST
17712
# Now quote all the things that may contain metacharacters while being
17713
# careful not to overquote the AC_SUBSTed values. We take copies of the
17714
# variables and quote the copies for generation of the libtool script.
17715
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17717
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17718
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17719
deplibs_check_method reload_flag reload_cmds need_locks \
17720
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17721
lt_cv_sys_global_symbol_to_c_name_address \
17722
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17723
old_postinstall_cmds old_postuninstall_cmds \
17727
lt_prog_compiler_wl_CXX \
17728
lt_prog_compiler_pic_CXX \
17729
lt_prog_compiler_static_CXX \
17730
lt_prog_compiler_no_builtin_flag_CXX \
17731
export_dynamic_flag_spec_CXX \
17732
thread_safe_flag_spec_CXX \
17733
whole_archive_flag_spec_CXX \
17734
enable_shared_with_static_runtimes_CXX \
17735
old_archive_cmds_CXX \
17736
old_archive_from_new_cmds_CXX \
17737
predep_objects_CXX \
17738
postdep_objects_CXX \
17741
compiler_lib_search_path_CXX \
17742
compiler_lib_search_dirs_CXX \
17744
archive_expsym_cmds_CXX \
17745
postinstall_cmds_CXX \
17746
postuninstall_cmds_CXX \
17747
old_archive_from_expsyms_cmds_CXX \
17748
allow_undefined_flag_CXX \
17749
no_undefined_flag_CXX \
17750
export_symbols_cmds_CXX \
17751
hardcode_libdir_flag_spec_CXX \
17752
hardcode_libdir_flag_spec_ld_CXX \
17753
hardcode_libdir_separator_CXX \
17754
hardcode_automatic_CXX \
17756
module_expsym_cmds_CXX \
17757
lt_cv_prog_compiler_c_o_CXX \
17758
fix_srcfile_path_CXX \
17759
exclude_expsyms_CXX \
17760
include_expsyms_CXX; do
17763
old_archive_cmds_CXX | \
17764
old_archive_from_new_cmds_CXX | \
17765
archive_cmds_CXX | \
17766
archive_expsym_cmds_CXX | \
17767
module_cmds_CXX | \
17768
module_expsym_cmds_CXX | \
17769
old_archive_from_expsyms_cmds_CXX | \
17770
export_symbols_cmds_CXX | \
17771
extract_expsyms_cmds | reload_cmds | finish_cmds | \
17772
postinstall_cmds | postuninstall_cmds | \
17773
old_postinstall_cmds | old_postuninstall_cmds | \
17774
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17775
# Double-quote double-evaled strings.
17776
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17779
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17785
*'\$0 --fallback-echo"')
17786
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17792
cat <<__EOF__ >> "$cfgfile"
17793
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17795
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17797
# Shell to use when invoking shell scripts.
17800
# Whether or not to build shared libraries.
17801
build_libtool_libs=$enable_shared
17803
# Whether or not to build static libraries.
17804
build_old_libs=$enable_static
17806
# Whether or not to add -lc for building shared libraries.
17807
build_libtool_need_lc=$archive_cmds_need_lc_CXX
17809
# Whether or not to disallow shared libs when runtime libs are static
17810
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17812
# Whether or not to optimize for fast installation.
17813
fast_install=$enable_fast_install
17816
host_alias=$host_alias
17820
# The build system.
17821
build_alias=$build_alias
17825
# An echo program that does not interpret backslashes.
17830
AR_FLAGS=$lt_AR_FLAGS
17835
# LTCC compiler flags.
17836
LTCFLAGS=$lt_LTCFLAGS
17838
# A language-specific compiler.
17839
CC=$lt_compiler_CXX
17841
# Is the compiler the GNU C compiler?
17847
# The linker used to build libraries.
17850
# Whether we need hard or soft links.
17853
# A BSD-compatible nm program.
17856
# A symbol stripping program
17859
# Used to examine libraries when file_magic_cmd begins "file"
17860
MAGIC_CMD=$MAGIC_CMD
17862
# Used on cygwin: DLL creation program.
17865
# Used on cygwin: object dumper.
17868
# Used on cygwin: assembler.
17871
# The name of the directory that contains temporary libtool files.
17874
# How to create reloadable object files.
17875
reload_flag=$lt_reload_flag
17876
reload_cmds=$lt_reload_cmds
17878
# How to pass a linker flag through the compiler.
17879
wl=$lt_lt_prog_compiler_wl_CXX
17881
# Object file suffix (normally "o").
17882
objext="$ac_objext"
17884
# Old archive suffix (normally "a").
17887
# Shared library suffix (normally ".so").
17888
shrext_cmds='$shrext_cmds'
17890
# Executable file suffix (normally "").
17893
# Additional compiler flags for building library objects.
17894
pic_flag=$lt_lt_prog_compiler_pic_CXX
17897
# What is the maximum length of a command?
17898
max_cmd_len=$lt_cv_sys_max_cmd_len
17900
# Does compiler simultaneously support -c and -o options?
17901
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17903
# Must we lock files when doing compilation?
17904
need_locks=$lt_need_locks
17906
# Do we need the lib prefix for modules?
17907
need_lib_prefix=$need_lib_prefix
17909
# Do we need a version for libraries?
17910
need_version=$need_version
17912
# Whether dlopen is supported.
17913
dlopen_support=$enable_dlopen
17915
# Whether dlopen of programs is supported.
17916
dlopen_self=$enable_dlopen_self
17918
# Whether dlopen of statically linked programs is supported.
17919
dlopen_self_static=$enable_dlopen_self_static
17921
# Compiler flag to prevent dynamic linking.
17922
link_static_flag=$lt_lt_prog_compiler_static_CXX
17924
# Compiler flag to turn off builtin functions.
17925
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17927
# Compiler flag to allow reflexive dlopens.
17928
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17930
# Compiler flag to generate shared objects directly from archives.
17931
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17933
# Compiler flag to generate thread-safe objects.
17934
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
17936
# Library versioning type.
17937
version_type=$version_type
17939
# Format of library name prefix.
17940
libname_spec=$lt_libname_spec
17942
# List of archive names. First name is the real one, the rest are links.
17943
# The last name is the one that the linker finds with -lNAME.
17944
library_names_spec=$lt_library_names_spec
17946
# The coded name of the library, if different from the real name.
17947
soname_spec=$lt_soname_spec
17949
# Commands used to build and install an old-style archive.
17951
old_archive_cmds=$lt_old_archive_cmds_CXX
17952
old_postinstall_cmds=$lt_old_postinstall_cmds
17953
old_postuninstall_cmds=$lt_old_postuninstall_cmds
17955
# Create an old-style archive from a shared archive.
17956
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17958
# Create a temporary old-style archive to link instead of a shared archive.
17959
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17961
# Commands used to build and install a shared archive.
17962
archive_cmds=$lt_archive_cmds_CXX
17963
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17964
postinstall_cmds=$lt_postinstall_cmds
17965
postuninstall_cmds=$lt_postuninstall_cmds
17967
# Commands used to build a loadable module (assumed same as above if empty)
17968
module_cmds=$lt_module_cmds_CXX
17969
module_expsym_cmds=$lt_module_expsym_cmds_CXX
17971
# Commands to strip libraries.
17972
old_striplib=$lt_old_striplib
17973
striplib=$lt_striplib
17975
# Dependencies to place before the objects being linked to create a
17977
predep_objects=$lt_predep_objects_CXX
17979
# Dependencies to place after the objects being linked to create a
17981
postdep_objects=$lt_postdep_objects_CXX
17983
# Dependencies to place before the objects being linked to create a
17985
predeps=$lt_predeps_CXX
17987
# Dependencies to place after the objects being linked to create a
17989
postdeps=$lt_postdeps_CXX
17991
# The directories searched by this compiler when creating a shared
17993
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17995
# The library search path used internally by the compiler when linking
17996
# a shared library.
17997
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17999
# Method to check whether dependent libraries are shared objects.
18000
deplibs_check_method=$lt_deplibs_check_method
18002
# Command to use when deplibs_check_method == file_magic.
18003
file_magic_cmd=$lt_file_magic_cmd
18005
# Flag that allows shared libraries with undefined symbols to be built.
18006
allow_undefined_flag=$lt_allow_undefined_flag_CXX
18008
# Flag that forces no undefined symbols.
18009
no_undefined_flag=$lt_no_undefined_flag_CXX
18011
# Commands used to finish a libtool library installation in a directory.
18012
finish_cmds=$lt_finish_cmds
18014
# Same as above, but a single script fragment to be evaled but not shown.
18015
finish_eval=$lt_finish_eval
18017
# Take the output of nm and produce a listing of raw symbols and C names.
18018
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18020
# Transform the output of nm in a proper C declaration
18021
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18023
# Transform the output of nm in a C name address pair
18024
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18026
# This is the shared library runtime path variable.
18027
runpath_var=$runpath_var
18029
# This is the shared library path variable.
18030
shlibpath_var=$shlibpath_var
18032
# Is shlibpath searched before the hard-coded library search path?
18033
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18035
# How to hardcode a shared library path into an executable.
18036
hardcode_action=$hardcode_action_CXX
18038
# Whether we should hardcode library paths into libraries.
18039
hardcode_into_libs=$hardcode_into_libs
18041
# Flag to hardcode \$libdir into a binary during linking.
18042
# This must work even if \$libdir does not exist.
18043
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18045
# If ld is used when linking, flag to hardcode \$libdir into
18046
# a binary during linking. This must work even if \$libdir does
18048
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18050
# Whether we need a single -rpath flag with a separated argument.
18051
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18053
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18054
# resulting binary.
18055
hardcode_direct=$hardcode_direct_CXX
18057
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18058
# resulting binary.
18059
hardcode_minus_L=$hardcode_minus_L_CXX
18061
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18062
# the resulting binary.
18063
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18065
# Set to yes if building a shared library automatically hardcodes DIR into the library
18066
# and all subsequent libraries and executables linked against it.
18067
hardcode_automatic=$hardcode_automatic_CXX
18069
# Variables whose values should be saved in libtool wrapper scripts and
18070
# restored at relink time.
18071
variables_saved_for_relink="$variables_saved_for_relink"
18073
# Whether libtool must link a program against all its dependency libraries.
18074
link_all_deplibs=$link_all_deplibs_CXX
18076
# Compile-time system search path for libraries
18077
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18079
# Run-time system search path for libraries
18080
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18082
# Fix the shell variable \$srcfile for the compiler.
18083
fix_srcfile_path=$lt_fix_srcfile_path
18085
# Set to yes if exported symbols are required.
18086
always_export_symbols=$always_export_symbols_CXX
18088
# The commands to list exported symbols.
18089
export_symbols_cmds=$lt_export_symbols_cmds_CXX
18091
# The commands to extract the exported symbol list from a shared archive.
18092
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18094
# Symbols that should not be listed in the preloaded symbols.
18095
exclude_expsyms=$lt_exclude_expsyms_CXX
18097
# Symbols that must always be exported.
18098
include_expsyms=$lt_include_expsyms_CXX
18100
# ### END LIBTOOL TAG CONFIG: $tagname
18106
# If there is no Makefile yet, we rely on a make rule to execute
18107
# `config.status --recheck' to rerun these tests and create the
18108
# libtool script then.
18109
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18110
if test -f "$ltmain_in"; then
18111
test -f Makefile && make "$ltmain"
18117
ac_cpp='$CPP $CPPFLAGS'
18118
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18119
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18120
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18126
with_gnu_ldcxx=$with_gnu_ld
18127
with_gnu_ld=$lt_save_with_gnu_ld
18128
lt_cv_path_LDCXX=$lt_cv_path_LD
18129
lt_cv_path_LD=$lt_save_path_LD
18130
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18131
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18139
if test -n "$F77" && test "X$F77" != "Xno"; then
18142
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18143
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18144
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18147
archive_cmds_need_lc_F77=no
18148
allow_undefined_flag_F77=
18149
always_export_symbols_F77=no
18150
archive_expsym_cmds_F77=
18151
export_dynamic_flag_spec_F77=
18152
hardcode_direct_F77=no
18153
hardcode_libdir_flag_spec_F77=
18154
hardcode_libdir_flag_spec_ld_F77=
18155
hardcode_libdir_separator_F77=
18156
hardcode_minus_L_F77=no
18157
hardcode_automatic_F77=no
18159
module_expsym_cmds_F77=
18160
link_all_deplibs_F77=unknown
18161
old_archive_cmds_F77=$old_archive_cmds
18162
no_undefined_flag_F77=
18163
whole_archive_flag_spec_F77=
18164
enable_shared_with_static_runtimes_F77=no
18166
# Source file extension for f77 test sources.
18169
# Object file extension for compiled f77 test sources.
18173
# Code to be used in simple compile tests
18174
lt_simple_compile_test_code="\
18180
# Code to be used in simple link tests
18181
lt_simple_link_test_code="\
18186
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18188
# If no C compiler was specified, use CC.
18191
# If no C compiler flags were specified, use CFLAGS.
18192
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18194
# Allow CC to be a program name with arguments.
18198
# save warnings/boilerplate of simple test code
18199
ac_outfile=conftest.$ac_objext
18200
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18201
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18202
_lt_compiler_boilerplate=`cat conftest.err`
18205
ac_outfile=conftest.$ac_objext
18206
echo "$lt_simple_link_test_code" >conftest.$ac_ext
18207
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18208
_lt_linker_boilerplate=`cat conftest.err`
18212
# Allow CC to be a program name with arguments.
18217
for cc_temp in $compiler""; do
18219
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18220
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18225
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18228
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18229
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
18230
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
18231
$as_echo "$can_build_shared" >&6; }
18233
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18234
$as_echo_n "checking whether to build shared libraries... " >&6; }
18235
test "$can_build_shared" = "no" && enable_shared=no
18237
# On AIX, shared libraries and static libraries use the same namespace, and
18238
# are all built from PIC.
18241
test "$enable_shared" = yes && enable_static=no
18242
if test -n "$RANLIB"; then
18243
archive_cmds="$archive_cmds~\$RANLIB \$lib"
18244
postinstall_cmds='$RANLIB $lib'
18248
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18249
test "$enable_shared" = yes && enable_static=no
18253
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
18254
$as_echo "$enable_shared" >&6; }
18256
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18257
$as_echo_n "checking whether to build static libraries... " >&6; }
18258
# Make sure either enable_shared or enable_static is yes.
18259
test "$enable_shared" = yes || enable_static=yes
18260
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
18261
$as_echo "$enable_static" >&6; }
18266
lt_prog_compiler_wl_F77=
18267
lt_prog_compiler_pic_F77=
18268
lt_prog_compiler_static_F77=
18270
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18271
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18273
if test "$GCC" = yes; then
18274
lt_prog_compiler_wl_F77='-Wl,'
18275
lt_prog_compiler_static_F77='-static'
18279
# All AIX code is PIC.
18280
if test "$host_cpu" = ia64; then
18281
# AIX 5 now supports IA64 processor
18282
lt_prog_compiler_static_F77='-Bstatic'
18287
# FIXME: we need at least 68020 code to build shared libraries, but
18288
# adding the `-m68020' flag to GCC prevents building anything better,
18290
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18293
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18294
# PIC is the default for these OSes.
18297
mingw* | cygwin* | pw32* | os2*)
18298
# This hack is so that the source file can tell whether it is being
18299
# built for inclusion in a dll (and should export symbols for example).
18300
# Although the cygwin gcc ignores -fPIC, still need this for old-style
18301
# (--disable-auto-import) libraries
18302
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18305
darwin* | rhapsody*)
18306
# PIC is the default on this platform
18307
# Common symbols not allowed in MH_DYLIB files
18308
lt_prog_compiler_pic_F77='-fno-common'
18312
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
18313
# Instead, we relocate shared libraries at runtime.
18317
# Just because we use GCC doesn't mean we suddenly get shared libraries
18318
# on systems that don't support them.
18319
lt_prog_compiler_can_build_shared_F77=no
18324
if test -d /usr/nec; then
18325
lt_prog_compiler_pic_F77=-Kconform_pic
18330
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18331
# not for PA HP-UX.
18337
lt_prog_compiler_pic_F77='-fPIC'
18343
lt_prog_compiler_pic_F77='-fPIC'
18347
# PORTME Check for flag to pass linker flags through the system compiler.
18350
lt_prog_compiler_wl_F77='-Wl,'
18351
if test "$host_cpu" = ia64; then
18352
# AIX 5 now supports IA64 processor
18353
lt_prog_compiler_static_F77='-Bstatic'
18355
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18359
# PIC is the default on this platform
18360
# Common symbols not allowed in MH_DYLIB files
18361
case $cc_basename in
18363
lt_prog_compiler_pic_F77='-qnocommon'
18364
lt_prog_compiler_wl_F77='-Wl,'
18369
mingw* | cygwin* | pw32* | os2*)
18370
# This hack is so that the source file can tell whether it is being
18371
# built for inclusion in a dll (and should export symbols for example).
18372
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18375
hpux9* | hpux10* | hpux11*)
18376
lt_prog_compiler_wl_F77='-Wl,'
18377
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18378
# not for PA HP-UX.
18384
lt_prog_compiler_pic_F77='+Z'
18387
# Is there a better lt_prog_compiler_static that works with the bundled CC?
18388
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18391
irix5* | irix6* | nonstopux*)
18392
lt_prog_compiler_wl_F77='-Wl,'
18393
# PIC (with -KPIC) is the default.
18394
lt_prog_compiler_static_F77='-non_shared'
18398
lt_prog_compiler_pic_F77='-KPIC'
18399
lt_prog_compiler_static_F77='-Bstatic'
18402
linux* | k*bsd*-gnu)
18403
case $cc_basename in
18405
lt_prog_compiler_wl_F77='-Wl,'
18406
lt_prog_compiler_pic_F77='-KPIC'
18407
lt_prog_compiler_static_F77='-static'
18409
pgcc* | pgf77* | pgf90* | pgf95*)
18410
# Portland Group compilers (*not* the Pentium gcc compiler,
18411
# which looks to be a dead project)
18412
lt_prog_compiler_wl_F77='-Wl,'
18413
lt_prog_compiler_pic_F77='-fpic'
18414
lt_prog_compiler_static_F77='-Bstatic'
18417
lt_prog_compiler_wl_F77='-Wl,'
18418
# All Alpha code is PIC.
18419
lt_prog_compiler_static_F77='-non_shared'
18422
case `$CC -V 2>&1 | sed 5q` in
18425
lt_prog_compiler_pic_F77='-KPIC'
18426
lt_prog_compiler_static_F77='-Bstatic'
18427
lt_prog_compiler_wl_F77='-Wl,'
18430
# Sun Fortran 8.3 passes all unrecognized flags to the linker
18431
lt_prog_compiler_pic_F77='-KPIC'
18432
lt_prog_compiler_static_F77='-Bstatic'
18433
lt_prog_compiler_wl_F77=''
18440
osf3* | osf4* | osf5*)
18441
lt_prog_compiler_wl_F77='-Wl,'
18442
# All OSF/1 code is PIC.
18443
lt_prog_compiler_static_F77='-non_shared'
18447
lt_prog_compiler_static_F77='-non_shared'
18451
lt_prog_compiler_pic_F77='-KPIC'
18452
lt_prog_compiler_static_F77='-Bstatic'
18453
case $cc_basename in
18454
f77* | f90* | f95*)
18455
lt_prog_compiler_wl_F77='-Qoption ld ';;
18457
lt_prog_compiler_wl_F77='-Wl,';;
18462
lt_prog_compiler_wl_F77='-Qoption ld '
18463
lt_prog_compiler_pic_F77='-PIC'
18464
lt_prog_compiler_static_F77='-Bstatic'
18467
sysv4 | sysv4.2uw2* | sysv4.3*)
18468
lt_prog_compiler_wl_F77='-Wl,'
18469
lt_prog_compiler_pic_F77='-KPIC'
18470
lt_prog_compiler_static_F77='-Bstatic'
18474
if test -d /usr/nec ;then
18475
lt_prog_compiler_pic_F77='-Kconform_pic'
18476
lt_prog_compiler_static_F77='-Bstatic'
18480
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18481
lt_prog_compiler_wl_F77='-Wl,'
18482
lt_prog_compiler_pic_F77='-KPIC'
18483
lt_prog_compiler_static_F77='-Bstatic'
18487
lt_prog_compiler_wl_F77='-Wl,'
18488
lt_prog_compiler_can_build_shared_F77=no
18492
lt_prog_compiler_pic_F77='-pic'
18493
lt_prog_compiler_static_F77='-Bstatic'
18497
lt_prog_compiler_can_build_shared_F77=no
18502
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18503
$as_echo "$lt_prog_compiler_pic_F77" >&6; }
18506
# Check to make sure the PIC flag actually works.
18508
if test -n "$lt_prog_compiler_pic_F77"; then
18510
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
18511
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
18512
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
18513
$as_echo_n "(cached) " >&6
18515
lt_cv_prog_compiler_pic_works_F77=no
18516
ac_outfile=conftest.$ac_objext
18517
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18518
lt_compiler_flag="$lt_prog_compiler_pic_F77"
18519
# Insert the option either (1) after the last *FLAGS variable, or
18520
# (2) before a word containing "conftest.", or (3) at the end.
18521
# Note that $ac_compile itself does not contain backslashes and begins
18522
# with a dollar sign (not a hyphen), so the echo should work correctly.
18523
# The option is referenced via a variable to avoid confusing sed.
18524
lt_compile=`echo "$ac_compile" | $SED \
18525
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18526
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18527
-e 's:$: $lt_compiler_flag:'`
18528
(eval echo "\"\$as_me:18528: $lt_compile\"" >&5)
18529
(eval "$lt_compile" 2>conftest.err)
18531
cat conftest.err >&5
18532
echo "$as_me:18532: \$? = $ac_status" >&5
18533
if (exit $ac_status) && test -s "$ac_outfile"; then
18534
# The compiler can only warn and ignore the option if not recognized
18535
# So say no if there are warnings other than the usual output.
18536
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18537
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18538
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18539
lt_cv_prog_compiler_pic_works_F77=yes
18545
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
18546
$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
18548
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
18549
case $lt_prog_compiler_pic_F77 in
18551
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18554
lt_prog_compiler_pic_F77=
18555
lt_prog_compiler_can_build_shared_F77=no
18560
# For platforms which do not support PIC, -DPIC is meaningless:
18562
lt_prog_compiler_pic_F77=
18565
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18570
# Check to make sure the static flag actually works.
18572
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
18573
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18574
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18575
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
18576
$as_echo_n "(cached) " >&6
18578
lt_cv_prog_compiler_static_works_F77=no
18579
save_LDFLAGS="$LDFLAGS"
18580
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18581
echo "$lt_simple_link_test_code" > conftest.$ac_ext
18582
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18583
# The linker can only warn and ignore the option if not recognized
18584
# So say no if there are warnings
18585
if test -s conftest.err; then
18586
# Append any errors to the config.log.
18587
cat conftest.err 1>&5
18588
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18589
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18590
if diff conftest.exp conftest.er2 >/dev/null; then
18591
lt_cv_prog_compiler_static_works_F77=yes
18594
lt_cv_prog_compiler_static_works_F77=yes
18598
LDFLAGS="$save_LDFLAGS"
18601
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
18602
$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
18604
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
18607
lt_prog_compiler_static_F77=
18611
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18612
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18613
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18614
$as_echo_n "(cached) " >&6
18616
lt_cv_prog_compiler_c_o_F77=no
18617
$rm -r conftest 2>/dev/null
18621
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18623
lt_compiler_flag="-o out/conftest2.$ac_objext"
18624
# Insert the option either (1) after the last *FLAGS variable, or
18625
# (2) before a word containing "conftest.", or (3) at the end.
18626
# Note that $ac_compile itself does not contain backslashes and begins
18627
# with a dollar sign (not a hyphen), so the echo should work correctly.
18628
lt_compile=`echo "$ac_compile" | $SED \
18629
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18630
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18631
-e 's:$: $lt_compiler_flag:'`
18632
(eval echo "\"\$as_me:18632: $lt_compile\"" >&5)
18633
(eval "$lt_compile" 2>out/conftest.err)
18635
cat out/conftest.err >&5
18636
echo "$as_me:18636: \$? = $ac_status" >&5
18637
if (exit $ac_status) && test -s out/conftest2.$ac_objext
18639
# The compiler can only warn and ignore the option if not recognized
18640
# So say no if there are warnings
18641
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18642
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18643
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18644
lt_cv_prog_compiler_c_o_F77=yes
18649
# SGI C++ compiler will create directory out/ii_files/ for
18650
# template instantiation
18651
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18652
$rm out/* && rmdir out
18658
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
18659
$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
18662
hard_links="nottested"
18663
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
18664
# do not overwrite the value of need_locks provided by the user
18665
{ $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18666
$as_echo_n "checking if we can lock with hard links... " >&6; }
18669
ln conftest.a conftest.b 2>/dev/null && hard_links=no
18671
ln conftest.a conftest.b 2>&5 || hard_links=no
18672
ln conftest.a conftest.b 2>/dev/null && hard_links=no
18673
{ $as_echo "$as_me:$LINENO: result: $hard_links" >&5
18674
$as_echo "$hard_links" >&6; }
18675
if test "$hard_links" = no; then
18676
{ $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18677
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18684
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18685
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18688
allow_undefined_flag_F77=
18689
enable_shared_with_static_runtimes_F77=no
18691
archive_expsym_cmds_F77=
18692
old_archive_From_new_cmds_F77=
18693
old_archive_from_expsyms_cmds_F77=
18694
export_dynamic_flag_spec_F77=
18695
whole_archive_flag_spec_F77=
18696
thread_safe_flag_spec_F77=
18697
hardcode_libdir_flag_spec_F77=
18698
hardcode_libdir_flag_spec_ld_F77=
18699
hardcode_libdir_separator_F77=
18700
hardcode_direct_F77=no
18701
hardcode_minus_L_F77=no
18702
hardcode_shlibpath_var_F77=unsupported
18703
link_all_deplibs_F77=unknown
18704
hardcode_automatic_F77=no
18706
module_expsym_cmds_F77=
18707
always_export_symbols_F77=no
18708
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18709
# include_expsyms should be a list of space-separated symbols to be *always*
18710
# included in the symbol list
18711
include_expsyms_F77=
18712
# exclude_expsyms can be an extended regexp of symbols to exclude
18713
# it will be wrapped by ` (' and `)$', so one must not match beginning or
18714
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18715
# as well as any symbol that contains `d'.
18716
exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18717
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18718
# platforms (ab)use it in PIC code, but their linkers get confused if
18719
# the symbol is explicitly referenced. Since portable code cannot
18720
# rely on this symbol name, it's probably fine to never include it in
18721
# preloaded symbol tables.
18722
# Exclude shared library initialization/finalization symbols.
18723
extract_expsyms_cmds=
18724
# Just being paranoid about ensuring that cc_basename is set.
18725
for cc_temp in $compiler""; do
18727
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18728
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18733
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18736
cygwin* | mingw* | pw32*)
18737
# FIXME: the MSVC++ port hasn't been tested in a loooong time
18738
# When not using gcc, we currently assume that we are using
18739
# Microsoft Visual C++.
18740
if test "$GCC" != yes; then
18745
# we just hope/assume this is gcc and not c89 (= MSVC++)
18754
if test "$with_gnu_ld" = yes; then
18755
# If archive_cmds runs LD, not CC, wlarc should be empty
18758
# Set some defaults for GNU ld with shared library support. These
18759
# are reset later if shared libraries are not supported. Putting them
18760
# here allows them to be overridden if necessary.
18761
runpath_var=LD_RUN_PATH
18762
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
18763
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
18764
# ancient GNU ld didn't support --whole-archive et. al.
18765
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18766
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18768
whole_archive_flag_spec_F77=
18770
supports_anon_versioning=no
18771
case `$LD -v 2>/dev/null` in
18772
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18773
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18774
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18775
*\ 2.11.*) ;; # other 2.11 versions
18776
*) supports_anon_versioning=yes ;;
18779
# See if GNU ld supports shared libraries.
18782
# On AIX/PPC, the GNU linker is very broken
18783
if test "$host_cpu" != ia64; then
18787
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
18788
*** to be unable to reliably create shared libraries on AIX.
18789
*** Therefore, libtool is disabling shared libraries support. If you
18790
*** really care for shared libraries, you may want to modify your PATH
18791
*** so that a non-GNU linker is found, and then restart.
18798
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)'
18799
hardcode_libdir_flag_spec_F77='-L$libdir'
18800
hardcode_minus_L_F77=yes
18802
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18803
# that the semantics of dynamic libraries on AmigaOS, at least up
18804
# to version 4, is to share data among multiple programs linked
18805
# with the same dynamic library. Since this doesn't match the
18806
# behavior of shared libraries on other platforms, we can't use
18812
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18813
allow_undefined_flag_F77=unsupported
18814
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18815
# support --undefined. This deserves some investigation. FIXME
18816
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18822
cygwin* | mingw* | pw32*)
18823
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
18824
# as there is no search path for DLLs.
18825
hardcode_libdir_flag_spec_F77='-L$libdir'
18826
allow_undefined_flag_F77=unsupported
18827
always_export_symbols_F77=no
18828
enable_shared_with_static_runtimes_F77=yes
18829
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18831
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18832
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18833
# If the export-symbols file already is a .def file (1st line
18834
# is EXPORTS), use it as is; otherwise, prepend...
18835
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18836
cp $export_symbols $output_objdir/$soname.def;
18838
echo EXPORTS > $output_objdir/$soname.def;
18839
cat $export_symbols >> $output_objdir/$soname.def;
18841
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18848
hardcode_direct_F77=no
18849
hardcode_shlibpath_var_F77=no
18850
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
18851
export_dynamic_flag_spec_F77='${wl}-E'
18852
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18853
# Instead, shared libraries are loaded at an image base (0x10000000 by
18854
# default) and relocated if they conflict, which is a slow very memory
18855
# consuming and fragmenting process. To avoid this, we pick a random,
18856
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18857
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
18858
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'
18859
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'
18862
gnu* | linux* | k*bsd*-gnu)
18863
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18865
case $cc_basename,$host_cpu in
18866
pgcc*) # Portland Group C compiler
18867
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'
18868
tmp_addflag=' $pic_flag'
18870
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18871
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'
18872
tmp_addflag=' $pic_flag -Mnomain' ;;
18873
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18874
tmp_addflag=' -i_dynamic' ;;
18875
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18876
tmp_addflag=' -i_dynamic -nofor_main' ;;
18877
ifc* | ifort*) # Intel Fortran compiler
18878
tmp_addflag=' -nofor_main' ;;
18880
case `$CC -V 2>&1 | sed 5q` in
18881
*Sun\ C*) # Sun C 5.9
18882
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'
18883
tmp_sharedflag='-G' ;;
18884
*Sun\ F*) # Sun Fortran 8.3
18885
tmp_sharedflag='-G' ;;
18887
tmp_sharedflag='-shared' ;;
18889
archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18891
if test $supports_anon_versioning = yes; then
18892
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
18893
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18894
$echo "local: *; };" >> $output_objdir/$libname.ver~
18895
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18903
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18904
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18907
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18908
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18913
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18917
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
18918
*** create shared libraries on Solaris systems. Therefore, libtool
18919
*** is disabling shared libraries support. We urge you to upgrade GNU
18920
*** binutils to release 2.9.1 or newer. Another option is to modify
18921
*** your PATH or compiler configuration so that the native linker is
18922
*** used, and then restart.
18925
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18926
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18927
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18933
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18934
case `$LD -v 2>&1` in
18935
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18939
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18940
*** reliably create shared libraries on SCO systems. Therefore, libtool
18941
*** is disabling shared libraries support. We urge you to upgrade GNU
18942
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18943
*** your PATH or compiler configuration so that the native linker is
18944
*** used, and then restart.
18949
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18950
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18951
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18952
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18961
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18963
hardcode_direct_F77=yes
18964
hardcode_shlibpath_var_F77=no
18968
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18969
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18970
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18977
if test "$ld_shlibs_F77" = no; then
18979
hardcode_libdir_flag_spec_F77=
18980
export_dynamic_flag_spec_F77=
18981
whole_archive_flag_spec_F77=
18984
# PORTME fill in a description of your system's linker (not GNU ld)
18987
allow_undefined_flag_F77=unsupported
18988
always_export_symbols_F77=yes
18989
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'
18990
# Note: this linker hardcodes the directories in LIBPATH if there
18991
# are no directories specified by -L.
18992
hardcode_minus_L_F77=yes
18993
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18994
# Neither direct hardcoding nor static linking is supported with a
18996
hardcode_direct_F77=unsupported
19001
if test "$host_cpu" = ia64; then
19002
# On IA64, the linker does run time linking by default, so we don't
19003
# have to do anything special.
19004
aix_use_runtimelinking=no
19005
exp_sym_flag='-Bexport'
19008
# If we're using GNU nm, then we don't want the "-C" option.
19009
# -C means demangle to AIX nm, but means don't demangle with GNU nm
19010
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19011
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'
19013
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'
19015
aix_use_runtimelinking=no
19017
# Test if we are trying to use run time linking or normal
19018
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
19019
# need to do runtime linking.
19020
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19021
for ld_flag in $LDFLAGS; do
19022
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19023
aix_use_runtimelinking=yes
19030
exp_sym_flag='-bexport'
19031
no_entry_flag='-bnoentry'
19034
# When large executables or shared objects are built, AIX ld can
19035
# have problems creating the table of contents. If linking a library
19036
# or program results in "error TOC overflow" add -mminimal-toc to
19037
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19038
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19040
archive_cmds_F77=''
19041
hardcode_direct_F77=yes
19042
hardcode_libdir_separator_F77=':'
19043
link_all_deplibs_F77=yes
19045
if test "$GCC" = yes; then
19046
case $host_os in aix4.[012]|aix4.[012].*)
19047
# We only want to do this on AIX 4.2 and lower, the check
19048
# below for broken collect2 doesn't work under 4.3+
19049
collect2name=`${CC} -print-prog-name=collect2`
19050
if test -f "$collect2name" && \
19051
strings "$collect2name" | grep resolve_lib_name >/dev/null
19053
# We have reworked collect2
19056
# We have old collect2
19057
hardcode_direct_F77=unsupported
19058
# It fails to find uninstalled libraries when the uninstalled
19059
# path is not listed in the libpath. Setting hardcode_minus_L
19060
# to unsupported forces relinking
19061
hardcode_minus_L_F77=yes
19062
hardcode_libdir_flag_spec_F77='-L$libdir'
19063
hardcode_libdir_separator_F77=
19067
shared_flag='-shared'
19068
if test "$aix_use_runtimelinking" = yes; then
19069
shared_flag="$shared_flag "'${wl}-G'
19073
if test "$host_cpu" = ia64; then
19074
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19075
# chokes on -Wl,-G. The following line is correct:
19078
if test "$aix_use_runtimelinking" = yes; then
19079
shared_flag='${wl}-G'
19081
shared_flag='${wl}-bM:SRE'
19086
# It seems that -bexpall does not export symbols beginning with
19087
# underscore (_), so it is better to generate a list of symbols to export.
19088
always_export_symbols_F77=yes
19089
if test "$aix_use_runtimelinking" = yes; then
19090
# Warning - without using the other runtime loading flags (-brtl),
19091
# -berok will link without error, but may produce a broken library.
19092
allow_undefined_flag_F77='-berok'
19093
# Determine the default libpath from the value encoded in an empty executable.
19094
cat >conftest.$ac_ext <<_ACEOF
19099
rm -f conftest.$ac_objext conftest$ac_exeext
19100
if { (ac_try="$ac_link"
19101
case "(($ac_try" in
19102
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19103
*) ac_try_echo=$ac_try;;
19105
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19106
$as_echo "$ac_try_echo") >&5
19107
(eval "$ac_link") 2>conftest.er1
19109
grep -v '^ *+' conftest.er1 >conftest.err
19111
cat conftest.err >&5
19112
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19113
(exit $ac_status); } && {
19114
test -z "$ac_f77_werror_flag" ||
19115
test ! -s conftest.err
19116
} && test -s conftest$ac_exeext && {
19117
test "$cross_compiling" = yes ||
19118
$as_test_x conftest$ac_exeext
19121
lt_aix_libpath_sed='
19122
/Import File Strings/,/^$/ {
19128
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19129
# Check for a 64-bit object if we didn't find anything.
19130
if test -z "$aix_libpath"; then
19131
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19134
$as_echo "$as_me: failed program was:" >&5
19135
sed 's/^/| /' conftest.$ac_ext >&5
19140
rm -rf conftest.dSYM
19141
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19142
conftest$ac_exeext conftest.$ac_ext
19143
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19145
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19146
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"
19148
if test "$host_cpu" = ia64; then
19149
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19150
allow_undefined_flag_F77="-z nodefs"
19151
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"
19153
# Determine the default libpath from the value encoded in an empty executable.
19154
cat >conftest.$ac_ext <<_ACEOF
19159
rm -f conftest.$ac_objext conftest$ac_exeext
19160
if { (ac_try="$ac_link"
19161
case "(($ac_try" in
19162
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19163
*) ac_try_echo=$ac_try;;
19165
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19166
$as_echo "$ac_try_echo") >&5
19167
(eval "$ac_link") 2>conftest.er1
19169
grep -v '^ *+' conftest.er1 >conftest.err
19171
cat conftest.err >&5
19172
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19173
(exit $ac_status); } && {
19174
test -z "$ac_f77_werror_flag" ||
19175
test ! -s conftest.err
19176
} && test -s conftest$ac_exeext && {
19177
test "$cross_compiling" = yes ||
19178
$as_test_x conftest$ac_exeext
19181
lt_aix_libpath_sed='
19182
/Import File Strings/,/^$/ {
19188
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19189
# Check for a 64-bit object if we didn't find anything.
19190
if test -z "$aix_libpath"; then
19191
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19194
$as_echo "$as_me: failed program was:" >&5
19195
sed 's/^/| /' conftest.$ac_ext >&5
19200
rm -rf conftest.dSYM
19201
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19202
conftest$ac_exeext conftest.$ac_ext
19203
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19205
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19206
# Warning - without using the other run time loading flags,
19207
# -berok will link without error, but may produce a broken library.
19208
no_undefined_flag_F77=' ${wl}-bernotok'
19209
allow_undefined_flag_F77=' ${wl}-berok'
19210
# Exported symbols can be pulled into shared objects from archives
19211
whole_archive_flag_spec_F77='$convenience'
19212
archive_cmds_need_lc_F77=yes
19213
# This is similar to how AIX traditionally builds its shared libraries.
19214
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'
19220
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)'
19221
hardcode_libdir_flag_spec_F77='-L$libdir'
19222
hardcode_minus_L_F77=yes
19223
# see comment about different semantics on the GNU ld section
19228
export_dynamic_flag_spec_F77=-rdynamic
19231
cygwin* | mingw* | pw32*)
19232
# When not using gcc, we currently assume that we are using
19233
# Microsoft Visual C++.
19234
# hardcode_libdir_flag_spec is actually meaningless, as there is
19235
# no search path for DLLs.
19236
hardcode_libdir_flag_spec_F77=' '
19237
allow_undefined_flag_F77=unsupported
19238
# Tell ltmain to make .lib files, not .a files.
19240
# Tell ltmain to make .dll files, not .so files.
19242
# FIXME: Setting linknames here is a bad hack.
19243
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19244
# The linker will automatically build a .lib file if we build a DLL.
19245
old_archive_From_new_cmds_F77='true'
19246
# FIXME: Should let the user specify the lib program.
19247
old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
19248
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
19249
enable_shared_with_static_runtimes_F77=yes
19252
darwin* | rhapsody*)
19253
allow_undefined_flag_F77="$_lt_dar_allow_undefined"
19254
archive_cmds_need_lc_F77=no
19255
hardcode_direct_F77=no
19256
hardcode_automatic_F77=yes
19257
hardcode_shlibpath_var_F77=unsupported
19258
whole_archive_flag_spec_F77=''
19259
link_all_deplibs_F77=yes
19260
if test "$GCC" = yes ; then
19261
output_verbose_link_cmd='echo'
19262
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}"
19263
module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19264
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}"
19265
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}"
19267
case $cc_basename in
19269
output_verbose_link_cmd='echo'
19270
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
19271
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19272
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19273
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}'
19274
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}'
19284
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19285
hardcode_libdir_flag_spec_F77='-L$libdir'
19286
hardcode_shlibpath_var_F77=no
19293
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19294
# support. Future versions do this automatically, but an explicit c++rt0.o
19295
# does not break anything, and helps significantly (at the cost of a little
19298
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19299
hardcode_libdir_flag_spec_F77='-R$libdir'
19300
hardcode_direct_F77=yes
19301
hardcode_shlibpath_var_F77=no
19304
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
19306
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19307
hardcode_direct_F77=yes
19308
hardcode_minus_L_F77=yes
19309
hardcode_shlibpath_var_F77=no
19312
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19313
freebsd* | dragonfly*)
19314
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19315
hardcode_libdir_flag_spec_F77='-R$libdir'
19316
hardcode_direct_F77=yes
19317
hardcode_shlibpath_var_F77=no
19321
if test "$GCC" = yes; then
19322
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'
19324
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'
19326
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19327
hardcode_libdir_separator_F77=:
19328
hardcode_direct_F77=yes
19330
# hardcode_minus_L: Not really in the search PATH,
19331
# but as the default location of the library.
19332
hardcode_minus_L_F77=yes
19333
export_dynamic_flag_spec_F77='${wl}-E'
19337
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19338
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19340
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19342
if test "$with_gnu_ld" = no; then
19343
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19344
hardcode_libdir_separator_F77=:
19346
hardcode_direct_F77=yes
19347
export_dynamic_flag_spec_F77='${wl}-E'
19349
# hardcode_minus_L: Not really in the search PATH,
19350
# but as the default location of the library.
19351
hardcode_minus_L_F77=yes
19356
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19359
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19362
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19365
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19371
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19374
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19377
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19381
if test "$with_gnu_ld" = no; then
19382
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19383
hardcode_libdir_separator_F77=:
19387
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19388
hardcode_direct_F77=no
19389
hardcode_shlibpath_var_F77=no
19392
hardcode_direct_F77=yes
19393
export_dynamic_flag_spec_F77='${wl}-E'
19395
# hardcode_minus_L: Not really in the search PATH,
19396
# but as the default location of the library.
19397
hardcode_minus_L_F77=yes
19403
irix5* | irix6* | nonstopux*)
19404
if test "$GCC" = yes; then
19405
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'
19407
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'
19408
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19410
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19411
hardcode_libdir_separator_F77=:
19412
link_all_deplibs_F77=yes
19416
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19417
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19419
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19421
hardcode_libdir_flag_spec_F77='-R$libdir'
19422
hardcode_direct_F77=yes
19423
hardcode_shlibpath_var_F77=no
19427
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19428
hardcode_direct_F77=yes
19429
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19430
hardcode_libdir_separator_F77=:
19431
hardcode_shlibpath_var_F77=no
19435
if test -f /usr/libexec/ld.so; then
19436
hardcode_direct_F77=yes
19437
hardcode_shlibpath_var_F77=no
19438
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19439
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19440
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19441
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19442
export_dynamic_flag_spec_F77='${wl}-E'
19445
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19446
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19447
hardcode_libdir_flag_spec_F77='-R$libdir'
19450
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19451
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19461
hardcode_libdir_flag_spec_F77='-L$libdir'
19462
hardcode_minus_L_F77=yes
19463
allow_undefined_flag_F77=unsupported
19464
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'
19465
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19469
if test "$GCC" = yes; then
19470
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19471
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'
19473
allow_undefined_flag_F77=' -expect_unresolved \*'
19474
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'
19476
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19477
hardcode_libdir_separator_F77=:
19480
osf4* | osf5*) # as osf3* with the addition of -msym flag
19481
if test "$GCC" = yes; then
19482
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19483
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'
19484
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19486
allow_undefined_flag_F77=' -expect_unresolved \*'
19487
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'
19488
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~
19489
$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'
19491
# Both c and cxx compiler support -rpath directly
19492
hardcode_libdir_flag_spec_F77='-rpath $libdir'
19494
hardcode_libdir_separator_F77=:
19498
no_undefined_flag_F77=' -z text'
19499
if test "$GCC" = yes; then
19501
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19502
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19503
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19506
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19507
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19508
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19510
hardcode_libdir_flag_spec_F77='-R$libdir'
19511
hardcode_shlibpath_var_F77=no
19513
solaris2.[0-5] | solaris2.[0-5].*) ;;
19515
# The compiler driver will combine and reorder linker options,
19516
# but understands `-z linker_flag'. GCC discards it without `$wl',
19517
# but is careful enough not to reorder.
19518
# Supported since Solaris 2.6 (maybe 2.5.1?)
19519
if test "$GCC" = yes; then
19520
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19522
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
19526
link_all_deplibs_F77=yes
19530
if test "x$host_vendor" = xsequent; then
19531
# Use $CC to link under sequent, because it throws in some extra .o
19532
# files that make .init and .fini sections work.
19533
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19535
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19537
hardcode_libdir_flag_spec_F77='-L$libdir'
19538
hardcode_direct_F77=yes
19539
hardcode_minus_L_F77=yes
19540
hardcode_shlibpath_var_F77=no
19544
case $host_vendor in
19546
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19547
hardcode_direct_F77=yes # is this really true???
19550
## LD is ld it makes a PLAMLIB
19551
## CC just makes a GrossModule.
19552
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19553
reload_cmds_F77='$CC -r -o $output$reload_objs'
19554
hardcode_direct_F77=no
19557
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19558
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19561
runpath_var='LD_RUN_PATH'
19562
hardcode_shlibpath_var_F77=no
19566
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19567
hardcode_shlibpath_var_F77=no
19568
export_dynamic_flag_spec_F77='-Bexport'
19572
if test -d /usr/nec; then
19573
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19574
hardcode_shlibpath_var_F77=no
19575
runpath_var=LD_RUN_PATH
19576
hardcode_runpath_var=yes
19581
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19582
no_undefined_flag_F77='${wl}-z,text'
19583
archive_cmds_need_lc_F77=no
19584
hardcode_shlibpath_var_F77=no
19585
runpath_var='LD_RUN_PATH'
19587
if test "$GCC" = yes; then
19588
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19589
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19591
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19592
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19596
sysv5* | sco3.2v5* | sco5v6*)
19597
# Note: We can NOT use -z defs as we might desire, because we do not
19598
# link with -lc, and that would cause any symbols used from libc to
19599
# always be unresolved, which means just about no library would
19600
# ever link correctly. If we're not using GNU ld we use -z text
19601
# though, which does catch some bad symbols but isn't as heavy-handed
19603
no_undefined_flag_F77='${wl}-z,text'
19604
allow_undefined_flag_F77='${wl}-z,nodefs'
19605
archive_cmds_need_lc_F77=no
19606
hardcode_shlibpath_var_F77=no
19607
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19608
hardcode_libdir_separator_F77=':'
19609
link_all_deplibs_F77=yes
19610
export_dynamic_flag_spec_F77='${wl}-Bexport'
19611
runpath_var='LD_RUN_PATH'
19613
if test "$GCC" = yes; then
19614
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19615
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19617
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19618
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19623
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19624
hardcode_libdir_flag_spec_F77='-L$libdir'
19625
hardcode_shlibpath_var_F77=no
19634
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19635
$as_echo "$ld_shlibs_F77" >&6; }
19636
test "$ld_shlibs_F77" = no && can_build_shared=no
19639
# Do we need to explicitly link libc?
19641
case "x$archive_cmds_need_lc_F77" in
19643
# Assume -lc should be added
19644
archive_cmds_need_lc_F77=yes
19646
if test "$enable_shared" = yes && test "$GCC" = yes; then
19647
case $archive_cmds_F77 in
19649
# FIXME: we may have to deal with multi-command sequences.
19652
# Test whether the compiler implicitly links with -lc since on some
19653
# systems, -lgcc has to come before -lc. If gcc already passes -lc
19654
# to ld, don't add -lc before -lgcc.
19655
{ $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19656
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
19658
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19660
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19661
(eval $ac_compile) 2>&5
19663
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664
(exit $ac_status); } 2>conftest.err; then
19667
libobjs=conftest.$ac_objext
19669
wl=$lt_prog_compiler_wl_F77
19670
pic_flag=$lt_prog_compiler_pic_F77
19676
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19677
allow_undefined_flag_F77=
19678
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19679
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19681
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682
(exit $ac_status); }
19684
archive_cmds_need_lc_F77=no
19686
archive_cmds_need_lc_F77=yes
19688
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19690
cat conftest.err 1>&5
19693
{ $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19694
$as_echo "$archive_cmds_need_lc_F77" >&6; }
19701
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19702
$as_echo_n "checking dynamic linker characteristics... " >&6; }
19703
library_names_spec=
19704
libname_spec='lib$name'
19708
postuninstall_cmds=
19712
shlibpath_overrides_runpath=unknown
19714
dynamic_linker="$host_os ld.so"
19715
sys_lib_dlsearch_path_spec="/lib /usr/lib"
19717
need_lib_prefix=unknown
19718
hardcode_into_libs=no
19720
# when you set need_version to no, make sure it does not cause -set_version
19721
# flags to be left without arguments
19722
need_version=unknown
19727
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19728
shlibpath_var=LIBPATH
19730
# AIX 3 has no versioning support, so we append a major version to the name.
19731
soname_spec='${libname}${release}${shared_ext}$major'
19738
hardcode_into_libs=yes
19739
if test "$host_cpu" = ia64; then
19740
# AIX 5 supports IA64
19741
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19742
shlibpath_var=LD_LIBRARY_PATH
19744
# With GCC up to 2.95.x, collect2 would create an import file
19745
# for dependence libraries. The import file would start with
19746
# the line `#! .'. This would cause the generated library to
19747
# depend on `.', always an invalid library. This was fixed in
19748
# development snapshots of GCC prior to 3.0.
19750
aix4 | aix4.[01] | aix4.[01].*)
19751
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19753
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19756
can_build_shared=no
19760
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19761
# soname into executable. Probably we can add versioning support to
19762
# collect2, so additional links can be useful in future.
19763
if test "$aix_use_runtimelinking" = yes; then
19764
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
19765
# instead of lib<name>.a to let people know that these are not
19766
# typical AIX shared libraries.
19767
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19769
# We preserve .a as extension for shared libraries through AIX4.2
19770
# and later when we are not doing run time linking.
19771
library_names_spec='${libname}${release}.a $libname.a'
19772
soname_spec='${libname}${release}${shared_ext}$major'
19774
shlibpath_var=LIBPATH
19779
library_names_spec='$libname.ixlibrary $libname.a'
19780
# Create ${libname}_ixlibrary.a entries in /sys/libs.
19781
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'
19785
library_names_spec='${libname}${shared_ext}'
19786
dynamic_linker="$host_os ld.so"
19787
shlibpath_var=LIBRARY_PATH
19793
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19794
soname_spec='${libname}${release}${shared_ext}$major'
19795
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19796
shlibpath_var=LD_LIBRARY_PATH
19797
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19798
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19799
# the default ld.so.conf also contains /usr/contrib/lib and
19800
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19801
# libtool to hard-code these into programs
19804
cygwin* | mingw* | pw32*)
19805
version_type=windows
19810
case $GCC,$host_os in
19811
yes,cygwin* | yes,mingw* | yes,pw32*)
19812
library_names_spec='$libname.dll.a'
19813
# DLL is installed to $(libdir)/../bin by postinstall_cmds
19814
postinstall_cmds='base_file=`basename \${file}`~
19815
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19816
dldir=$destdir/`dirname \$dlpath`~
19817
test -d \$dldir || mkdir -p \$dldir~
19818
$install_prog $dir/$dlname \$dldir/$dlname~
19819
chmod a+x \$dldir/$dlname'
19820
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19821
dlpath=$dir/\$dldll~
19823
shlibpath_overrides_runpath=yes
19827
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
19828
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19829
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19832
# MinGW DLLs use traditional 'lib' prefix
19833
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19834
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19835
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19836
# It is most probably a Windows format PATH printed by
19837
# mingw gcc, but we are running on Cygwin. Gcc prints its search
19838
# path with ; separators, and with drive letters. We can handle the
19839
# drive letters (cygwin fileutils understands them), so leave them,
19840
# especially as we might pass files found there to a mingw objdump,
19841
# which wouldn't understand a cygwinified path. Ahh.
19842
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19844
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19848
# pw32 DLLs use 'pw' prefix rather than 'lib'
19849
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19855
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19858
dynamic_linker='Win32 ld.exe'
19859
# FIXME: first we should search . and the directory the executable is in
19863
darwin* | rhapsody*)
19864
dynamic_linker="$host_os dyld"
19865
version_type=darwin
19868
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19869
soname_spec='${libname}${release}${major}$shared_ext'
19870
shlibpath_overrides_runpath=yes
19871
shlibpath_var=DYLD_LIBRARY_PATH
19872
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19874
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19881
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19882
soname_spec='${libname}${release}${shared_ext}$major'
19883
shlibpath_var=LD_LIBRARY_PATH
19890
freebsd* | dragonfly*)
19891
# DragonFly does not have aout. When/if they implement a new
19892
# versioning mechanism, adjust this.
19893
if test -x /usr/bin/objformat; then
19894
objformat=`/usr/bin/objformat`
19897
freebsd[123]*) objformat=aout ;;
19898
*) objformat=elf ;;
19901
version_type=freebsd-$objformat
19902
case $version_type in
19904
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19909
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19913
shlibpath_var=LD_LIBRARY_PATH
19916
shlibpath_overrides_runpath=yes
19918
freebsd3.[01]* | freebsdelf3.[01]*)
19919
shlibpath_overrides_runpath=yes
19920
hardcode_into_libs=yes
19922
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19923
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19924
shlibpath_overrides_runpath=no
19925
hardcode_into_libs=yes
19927
*) # from 4.6 on, and DragonFly
19928
shlibpath_overrides_runpath=yes
19929
hardcode_into_libs=yes
19938
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19939
soname_spec='${libname}${release}${shared_ext}$major'
19940
shlibpath_var=LD_LIBRARY_PATH
19941
hardcode_into_libs=yes
19944
hpux9* | hpux10* | hpux11*)
19945
# Give a soname corresponding to the major version so that dld.sl refuses to
19946
# link against other versions.
19953
hardcode_into_libs=yes
19954
dynamic_linker="$host_os dld.so"
19955
shlibpath_var=LD_LIBRARY_PATH
19956
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19957
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19958
soname_spec='${libname}${release}${shared_ext}$major'
19959
if test "X$HPUX_IA64_MODE" = X32; then
19960
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19962
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19964
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19968
hardcode_into_libs=yes
19969
dynamic_linker="$host_os dld.sl"
19970
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19971
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19972
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19973
soname_spec='${libname}${release}${shared_ext}$major'
19974
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19975
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19979
dynamic_linker="$host_os dld.sl"
19980
shlibpath_var=SHLIB_PATH
19981
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19982
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19983
soname_spec='${libname}${release}${shared_ext}$major'
19986
# HP-UX runs *really* slowly unless shared libraries are mode 555.
19987
postinstall_cmds='chmod 555 $lib'
19994
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19995
soname_spec='${libname}${release}${shared_ext}$major'
19996
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19997
shlibpath_var=LD_LIBRARY_PATH
19998
shlibpath_overrides_runpath=no
19999
hardcode_into_libs=yes
20002
irix5* | irix6* | nonstopux*)
20004
nonstopux*) version_type=nonstopux ;;
20006
if test "$lt_cv_prog_gnu_ld" = yes; then
20014
soname_spec='${libname}${release}${shared_ext}$major'
20015
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20017
irix5* | nonstopux*)
20018
libsuff= shlibsuff=
20021
case $LD in # libtool.m4 will add one of these switches to LD
20022
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20023
libsuff= shlibsuff= libmagic=32-bit;;
20024
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20025
libsuff=32 shlibsuff=N32 libmagic=N32;;
20026
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20027
libsuff=64 shlibsuff=64 libmagic=64-bit;;
20028
*) libsuff= shlibsuff= libmagic=never-match;;
20032
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20033
shlibpath_overrides_runpath=no
20034
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20035
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20036
hardcode_into_libs=yes
20039
# No shared lib support for Linux oldld, aout, or coff.
20040
linux*oldld* | linux*aout* | linux*coff*)
20044
# This must be Linux ELF.
20045
linux* | k*bsd*-gnu)
20049
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20050
soname_spec='${libname}${release}${shared_ext}$major'
20051
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20052
shlibpath_var=LD_LIBRARY_PATH
20053
shlibpath_overrides_runpath=no
20054
# This implies no fast_install, which is unacceptable.
20055
# Some rework will be needed to allow for fast_install
20056
# before this can be enabled.
20057
hardcode_into_libs=yes
20058
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20059
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20061
# Append ld.so.conf contents to the search path
20062
if test -f /etc/ld.so.conf; then
20063
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' ' '`
20064
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
20067
# We used to test for /lib/ld.so.1 and disable shared libraries on
20068
# powerpc, because MkLinux only supported shared libraries with the
20069
# GNU dynamic linker. Since this was broken with cross compilers,
20070
# most powerpc-linux boxes support dynamic linking these days and
20071
# people can always --disable-shared, the test was removed, and we
20072
# assume the GNU/Linux dynamic linker is in use.
20073
dynamic_linker='GNU/Linux ld.so'
20080
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20081
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20082
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20083
dynamic_linker='NetBSD (a.out) ld.so'
20085
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20086
soname_spec='${libname}${release}${shared_ext}$major'
20087
dynamic_linker='NetBSD ld.elf_so'
20089
shlibpath_var=LD_LIBRARY_PATH
20090
shlibpath_overrides_runpath=yes
20091
hardcode_into_libs=yes
20096
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20097
shlibpath_var=LD_LIBRARY_PATH
20098
shlibpath_overrides_runpath=yes
20105
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20106
soname_spec='${libname}${release}${shared_ext}$major'
20107
shlibpath_var=LD_LIBRARY_PATH
20108
shlibpath_overrides_runpath=yes
20113
sys_lib_dlsearch_path_spec="/usr/lib"
20115
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20117
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20118
*) need_version=no ;;
20120
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20121
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20122
shlibpath_var=LD_LIBRARY_PATH
20123
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20125
openbsd2.[89] | openbsd2.[89].*)
20126
shlibpath_overrides_runpath=no
20129
shlibpath_overrides_runpath=yes
20133
shlibpath_overrides_runpath=yes
20138
libname_spec='$name'
20141
library_names_spec='$libname${shared_ext} $libname.a'
20142
dynamic_linker='OS/2 ld.exe'
20143
shlibpath_var=LIBPATH
20146
osf3* | osf4* | osf5*)
20150
soname_spec='${libname}${release}${shared_ext}$major'
20151
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20152
shlibpath_var=LD_LIBRARY_PATH
20153
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20154
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20165
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20166
soname_spec='${libname}${release}${shared_ext}$major'
20167
shlibpath_var=LD_LIBRARY_PATH
20168
shlibpath_overrides_runpath=yes
20169
hardcode_into_libs=yes
20170
# ldd complains unless libraries are executable
20171
postinstall_cmds='chmod +x $lib'
20176
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20177
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20178
shlibpath_var=LD_LIBRARY_PATH
20179
shlibpath_overrides_runpath=yes
20180
if test "$with_gnu_ld" = yes; then
20188
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20189
soname_spec='${libname}${release}${shared_ext}$major'
20190
shlibpath_var=LD_LIBRARY_PATH
20191
case $host_vendor in
20193
shlibpath_overrides_runpath=no
20195
export_dynamic_flag_spec='${wl}-Blargedynsym'
20196
runpath_var=LD_RUN_PATH
20204
shlibpath_overrides_runpath=no
20205
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20211
if test -d /usr/nec ;then
20213
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20214
soname_spec='$libname${shared_ext}.$major'
20215
shlibpath_var=LD_LIBRARY_PATH
20219
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20220
version_type=freebsd-elf
20223
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20224
soname_spec='${libname}${release}${shared_ext}$major'
20225
shlibpath_var=LD_LIBRARY_PATH
20226
hardcode_into_libs=yes
20227
if test "$with_gnu_ld" = yes; then
20228
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20229
shlibpath_overrides_runpath=no
20231
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20232
shlibpath_overrides_runpath=yes
20235
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20239
sys_lib_dlsearch_path_spec='/usr/lib'
20244
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20245
soname_spec='${libname}${release}${shared_ext}$major'
20246
shlibpath_var=LD_LIBRARY_PATH
20253
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20254
$as_echo "$dynamic_linker" >&6; }
20255
test "$dynamic_linker" = no && can_build_shared=no
20257
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20258
$as_echo_n "(cached) " >&6
20260
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
20263
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20264
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20265
$as_echo_n "(cached) " >&6
20267
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
20270
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20272
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20273
if test "$GCC" = yes; then
20274
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20277
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20278
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20279
hardcode_action_F77=
20280
if test -n "$hardcode_libdir_flag_spec_F77" || \
20281
test -n "$runpath_var_F77" || \
20282
test "X$hardcode_automatic_F77" = "Xyes" ; then
20284
# We can hardcode non-existant directories.
20285
if test "$hardcode_direct_F77" != no &&
20286
# If the only mechanism to avoid hardcoding is shlibpath_var, we
20287
# have to relink, otherwise we might link with an installed library
20288
# when we should be linking with a yet-to-be-installed one
20289
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20290
test "$hardcode_minus_L_F77" != no; then
20291
# Linking always hardcodes the temporary library directory.
20292
hardcode_action_F77=relink
20294
# We can link without hardcoding, and we can hardcode nonexisting dirs.
20295
hardcode_action_F77=immediate
20298
# We cannot hardcode anything, or else we can only hardcode existing
20300
hardcode_action_F77=unsupported
20302
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20303
$as_echo "$hardcode_action_F77" >&6; }
20305
if test "$hardcode_action_F77" = relink; then
20306
# Fast installation is not supported
20307
enable_fast_install=no
20308
elif test "$shlibpath_overrides_runpath" = yes ||
20309
test "$enable_shared" = no; then
20310
# Fast installation is not necessary
20311
enable_fast_install=needless
20315
# The else clause should only fire when bootstrapping the
20316
# libtool distribution, otherwise you forgot to ship ltmain.sh
20317
# with your package, and you will get complaints that there are
20318
# no rules to generate ltmain.sh.
20319
if test -f "$ltmain"; then
20320
# See if we are running on zsh, and set the options which allow our commands through
20321
# without removal of \ escapes.
20322
if test -n "${ZSH_VERSION+set}" ; then
20323
setopt NO_GLOB_SUBST
20325
# Now quote all the things that may contain metacharacters while being
20326
# careful not to overquote the AC_SUBSTed values. We take copies of the
20327
# variables and quote the copies for generation of the libtool script.
20328
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20330
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20331
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20332
deplibs_check_method reload_flag reload_cmds need_locks \
20333
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20334
lt_cv_sys_global_symbol_to_c_name_address \
20335
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20336
old_postinstall_cmds old_postuninstall_cmds \
20340
lt_prog_compiler_wl_F77 \
20341
lt_prog_compiler_pic_F77 \
20342
lt_prog_compiler_static_F77 \
20343
lt_prog_compiler_no_builtin_flag_F77 \
20344
export_dynamic_flag_spec_F77 \
20345
thread_safe_flag_spec_F77 \
20346
whole_archive_flag_spec_F77 \
20347
enable_shared_with_static_runtimes_F77 \
20348
old_archive_cmds_F77 \
20349
old_archive_from_new_cmds_F77 \
20350
predep_objects_F77 \
20351
postdep_objects_F77 \
20354
compiler_lib_search_path_F77 \
20355
compiler_lib_search_dirs_F77 \
20357
archive_expsym_cmds_F77 \
20358
postinstall_cmds_F77 \
20359
postuninstall_cmds_F77 \
20360
old_archive_from_expsyms_cmds_F77 \
20361
allow_undefined_flag_F77 \
20362
no_undefined_flag_F77 \
20363
export_symbols_cmds_F77 \
20364
hardcode_libdir_flag_spec_F77 \
20365
hardcode_libdir_flag_spec_ld_F77 \
20366
hardcode_libdir_separator_F77 \
20367
hardcode_automatic_F77 \
20369
module_expsym_cmds_F77 \
20370
lt_cv_prog_compiler_c_o_F77 \
20371
fix_srcfile_path_F77 \
20372
exclude_expsyms_F77 \
20373
include_expsyms_F77; do
20376
old_archive_cmds_F77 | \
20377
old_archive_from_new_cmds_F77 | \
20378
archive_cmds_F77 | \
20379
archive_expsym_cmds_F77 | \
20380
module_cmds_F77 | \
20381
module_expsym_cmds_F77 | \
20382
old_archive_from_expsyms_cmds_F77 | \
20383
export_symbols_cmds_F77 | \
20384
extract_expsyms_cmds | reload_cmds | finish_cmds | \
20385
postinstall_cmds | postuninstall_cmds | \
20386
old_postinstall_cmds | old_postuninstall_cmds | \
20387
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20388
# Double-quote double-evaled strings.
20389
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20392
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20398
*'\$0 --fallback-echo"')
20399
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20405
cat <<__EOF__ >> "$cfgfile"
20406
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20408
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20410
# Shell to use when invoking shell scripts.
20413
# Whether or not to build shared libraries.
20414
build_libtool_libs=$enable_shared
20416
# Whether or not to build static libraries.
20417
build_old_libs=$enable_static
20419
# Whether or not to add -lc for building shared libraries.
20420
build_libtool_need_lc=$archive_cmds_need_lc_F77
20422
# Whether or not to disallow shared libs when runtime libs are static
20423
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20425
# Whether or not to optimize for fast installation.
20426
fast_install=$enable_fast_install
20429
host_alias=$host_alias
20433
# The build system.
20434
build_alias=$build_alias
20438
# An echo program that does not interpret backslashes.
20443
AR_FLAGS=$lt_AR_FLAGS
20448
# LTCC compiler flags.
20449
LTCFLAGS=$lt_LTCFLAGS
20451
# A language-specific compiler.
20452
CC=$lt_compiler_F77
20454
# Is the compiler the GNU C compiler?
20460
# The linker used to build libraries.
20463
# Whether we need hard or soft links.
20466
# A BSD-compatible nm program.
20469
# A symbol stripping program
20472
# Used to examine libraries when file_magic_cmd begins "file"
20473
MAGIC_CMD=$MAGIC_CMD
20475
# Used on cygwin: DLL creation program.
20478
# Used on cygwin: object dumper.
20481
# Used on cygwin: assembler.
20484
# The name of the directory that contains temporary libtool files.
20487
# How to create reloadable object files.
20488
reload_flag=$lt_reload_flag
20489
reload_cmds=$lt_reload_cmds
20491
# How to pass a linker flag through the compiler.
20492
wl=$lt_lt_prog_compiler_wl_F77
20494
# Object file suffix (normally "o").
20495
objext="$ac_objext"
20497
# Old archive suffix (normally "a").
20500
# Shared library suffix (normally ".so").
20501
shrext_cmds='$shrext_cmds'
20503
# Executable file suffix (normally "").
20506
# Additional compiler flags for building library objects.
20507
pic_flag=$lt_lt_prog_compiler_pic_F77
20510
# What is the maximum length of a command?
20511
max_cmd_len=$lt_cv_sys_max_cmd_len
20513
# Does compiler simultaneously support -c and -o options?
20514
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20516
# Must we lock files when doing compilation?
20517
need_locks=$lt_need_locks
20519
# Do we need the lib prefix for modules?
20520
need_lib_prefix=$need_lib_prefix
20522
# Do we need a version for libraries?
20523
need_version=$need_version
20525
# Whether dlopen is supported.
20526
dlopen_support=$enable_dlopen
20528
# Whether dlopen of programs is supported.
20529
dlopen_self=$enable_dlopen_self
20531
# Whether dlopen of statically linked programs is supported.
20532
dlopen_self_static=$enable_dlopen_self_static
20534
# Compiler flag to prevent dynamic linking.
20535
link_static_flag=$lt_lt_prog_compiler_static_F77
20537
# Compiler flag to turn off builtin functions.
20538
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20540
# Compiler flag to allow reflexive dlopens.
20541
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20543
# Compiler flag to generate shared objects directly from archives.
20544
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20546
# Compiler flag to generate thread-safe objects.
20547
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20549
# Library versioning type.
20550
version_type=$version_type
20552
# Format of library name prefix.
20553
libname_spec=$lt_libname_spec
20555
# List of archive names. First name is the real one, the rest are links.
20556
# The last name is the one that the linker finds with -lNAME.
20557
library_names_spec=$lt_library_names_spec
20559
# The coded name of the library, if different from the real name.
20560
soname_spec=$lt_soname_spec
20562
# Commands used to build and install an old-style archive.
20564
old_archive_cmds=$lt_old_archive_cmds_F77
20565
old_postinstall_cmds=$lt_old_postinstall_cmds
20566
old_postuninstall_cmds=$lt_old_postuninstall_cmds
20568
# Create an old-style archive from a shared archive.
20569
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20571
# Create a temporary old-style archive to link instead of a shared archive.
20572
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20574
# Commands used to build and install a shared archive.
20575
archive_cmds=$lt_archive_cmds_F77
20576
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20577
postinstall_cmds=$lt_postinstall_cmds
20578
postuninstall_cmds=$lt_postuninstall_cmds
20580
# Commands used to build a loadable module (assumed same as above if empty)
20581
module_cmds=$lt_module_cmds_F77
20582
module_expsym_cmds=$lt_module_expsym_cmds_F77
20584
# Commands to strip libraries.
20585
old_striplib=$lt_old_striplib
20586
striplib=$lt_striplib
20588
# Dependencies to place before the objects being linked to create a
20590
predep_objects=$lt_predep_objects_F77
20592
# Dependencies to place after the objects being linked to create a
20594
postdep_objects=$lt_postdep_objects_F77
20596
# Dependencies to place before the objects being linked to create a
20598
predeps=$lt_predeps_F77
20600
# Dependencies to place after the objects being linked to create a
20602
postdeps=$lt_postdeps_F77
20604
# The directories searched by this compiler when creating a shared
20606
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
20608
# The library search path used internally by the compiler when linking
20609
# a shared library.
20610
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20612
# Method to check whether dependent libraries are shared objects.
20613
deplibs_check_method=$lt_deplibs_check_method
20615
# Command to use when deplibs_check_method == file_magic.
20616
file_magic_cmd=$lt_file_magic_cmd
20618
# Flag that allows shared libraries with undefined symbols to be built.
20619
allow_undefined_flag=$lt_allow_undefined_flag_F77
20621
# Flag that forces no undefined symbols.
20622
no_undefined_flag=$lt_no_undefined_flag_F77
20624
# Commands used to finish a libtool library installation in a directory.
20625
finish_cmds=$lt_finish_cmds
20627
# Same as above, but a single script fragment to be evaled but not shown.
20628
finish_eval=$lt_finish_eval
20630
# Take the output of nm and produce a listing of raw symbols and C names.
20631
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20633
# Transform the output of nm in a proper C declaration
20634
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20636
# Transform the output of nm in a C name address pair
20637
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20639
# This is the shared library runtime path variable.
20640
runpath_var=$runpath_var
20642
# This is the shared library path variable.
20643
shlibpath_var=$shlibpath_var
20645
# Is shlibpath searched before the hard-coded library search path?
20646
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20648
# How to hardcode a shared library path into an executable.
20649
hardcode_action=$hardcode_action_F77
20651
# Whether we should hardcode library paths into libraries.
20652
hardcode_into_libs=$hardcode_into_libs
20654
# Flag to hardcode \$libdir into a binary during linking.
20655
# This must work even if \$libdir does not exist.
20656
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20658
# If ld is used when linking, flag to hardcode \$libdir into
20659
# a binary during linking. This must work even if \$libdir does
20661
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20663
# Whether we need a single -rpath flag with a separated argument.
20664
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20666
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20667
# resulting binary.
20668
hardcode_direct=$hardcode_direct_F77
20670
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20671
# resulting binary.
20672
hardcode_minus_L=$hardcode_minus_L_F77
20674
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20675
# the resulting binary.
20676
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20678
# Set to yes if building a shared library automatically hardcodes DIR into the library
20679
# and all subsequent libraries and executables linked against it.
20680
hardcode_automatic=$hardcode_automatic_F77
20682
# Variables whose values should be saved in libtool wrapper scripts and
20683
# restored at relink time.
20684
variables_saved_for_relink="$variables_saved_for_relink"
20686
# Whether libtool must link a program against all its dependency libraries.
20687
link_all_deplibs=$link_all_deplibs_F77
20689
# Compile-time system search path for libraries
20690
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20692
# Run-time system search path for libraries
20693
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20695
# Fix the shell variable \$srcfile for the compiler.
20696
fix_srcfile_path=$lt_fix_srcfile_path
20698
# Set to yes if exported symbols are required.
20699
always_export_symbols=$always_export_symbols_F77
20701
# The commands to list exported symbols.
20702
export_symbols_cmds=$lt_export_symbols_cmds_F77
20704
# The commands to extract the exported symbol list from a shared archive.
20705
extract_expsyms_cmds=$lt_extract_expsyms_cmds
20707
# Symbols that should not be listed in the preloaded symbols.
20708
exclude_expsyms=$lt_exclude_expsyms_F77
20710
# Symbols that must always be exported.
20711
include_expsyms=$lt_include_expsyms_F77
20713
# ### END LIBTOOL TAG CONFIG: $tagname
20719
# If there is no Makefile yet, we rely on a make rule to execute
20720
# `config.status --recheck' to rerun these tests and create the
20721
# libtool script then.
20722
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20723
if test -f "$ltmain_in"; then
20724
test -f Makefile && make "$ltmain"
20730
ac_cpp='$CPP $CPPFLAGS'
20731
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20732
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20733
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20743
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
20746
# Source file extension for Java test sources.
20749
# Object file extension for compiled Java test sources.
20753
# Code to be used in simple compile tests
20754
lt_simple_compile_test_code="class foo {}"
20756
# Code to be used in simple link tests
20757
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
20759
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20761
# If no C compiler was specified, use CC.
20764
# If no C compiler flags were specified, use CFLAGS.
20765
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20767
# Allow CC to be a program name with arguments.
20771
# save warnings/boilerplate of simple test code
20772
ac_outfile=conftest.$ac_objext
20773
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20774
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20775
_lt_compiler_boilerplate=`cat conftest.err`
20778
ac_outfile=conftest.$ac_objext
20779
echo "$lt_simple_link_test_code" >conftest.$ac_ext
20780
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20781
_lt_linker_boilerplate=`cat conftest.err`
20785
# Allow CC to be a program name with arguments.
20790
for cc_temp in $compiler""; do
20792
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20793
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20798
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20801
# GCJ did not exist at the time GCC didn't implicitly link libc in.
20802
archive_cmds_need_lc_GCJ=no
20804
old_archive_cmds_GCJ=$old_archive_cmds
20807
lt_prog_compiler_no_builtin_flag_GCJ=
20809
if test "$GCC" = yes; then
20810
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
20813
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
20814
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
20815
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20816
$as_echo_n "(cached) " >&6
20818
lt_cv_prog_compiler_rtti_exceptions=no
20819
ac_outfile=conftest.$ac_objext
20820
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20821
lt_compiler_flag="-fno-rtti -fno-exceptions"
20822
# Insert the option either (1) after the last *FLAGS variable, or
20823
# (2) before a word containing "conftest.", or (3) at the end.
20824
# Note that $ac_compile itself does not contain backslashes and begins
20825
# with a dollar sign (not a hyphen), so the echo should work correctly.
20826
# The option is referenced via a variable to avoid confusing sed.
20827
lt_compile=`echo "$ac_compile" | $SED \
20828
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20829
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20830
-e 's:$: $lt_compiler_flag:'`
20831
(eval echo "\"\$as_me:20831: $lt_compile\"" >&5)
20832
(eval "$lt_compile" 2>conftest.err)
20834
cat conftest.err >&5
20835
echo "$as_me:20835: \$? = $ac_status" >&5
20836
if (exit $ac_status) && test -s "$ac_outfile"; then
20837
# The compiler can only warn and ignore the option if not recognized
20838
# So say no if there are warnings other than the usual output.
20839
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20840
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20841
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20842
lt_cv_prog_compiler_rtti_exceptions=yes
20848
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
20849
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
20851
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
20852
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
20859
lt_prog_compiler_wl_GCJ=
20860
lt_prog_compiler_pic_GCJ=
20861
lt_prog_compiler_static_GCJ=
20863
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20864
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20866
if test "$GCC" = yes; then
20867
lt_prog_compiler_wl_GCJ='-Wl,'
20868
lt_prog_compiler_static_GCJ='-static'
20872
# All AIX code is PIC.
20873
if test "$host_cpu" = ia64; then
20874
# AIX 5 now supports IA64 processor
20875
lt_prog_compiler_static_GCJ='-Bstatic'
20880
# FIXME: we need at least 68020 code to build shared libraries, but
20881
# adding the `-m68020' flag to GCC prevents building anything better,
20883
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
20886
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20887
# PIC is the default for these OSes.
20890
mingw* | cygwin* | pw32* | os2*)
20891
# This hack is so that the source file can tell whether it is being
20892
# built for inclusion in a dll (and should export symbols for example).
20893
# Although the cygwin gcc ignores -fPIC, still need this for old-style
20894
# (--disable-auto-import) libraries
20898
darwin* | rhapsody*)
20899
# PIC is the default on this platform
20900
# Common symbols not allowed in MH_DYLIB files
20901
lt_prog_compiler_pic_GCJ='-fno-common'
20905
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
20906
# Instead, we relocate shared libraries at runtime.
20910
# Just because we use GCC doesn't mean we suddenly get shared libraries
20911
# on systems that don't support them.
20912
lt_prog_compiler_can_build_shared_GCJ=no
20917
if test -d /usr/nec; then
20918
lt_prog_compiler_pic_GCJ=-Kconform_pic
20923
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20924
# not for PA HP-UX.
20930
lt_prog_compiler_pic_GCJ='-fPIC'
20936
lt_prog_compiler_pic_GCJ='-fPIC'
20940
# PORTME Check for flag to pass linker flags through the system compiler.
20943
lt_prog_compiler_wl_GCJ='-Wl,'
20944
if test "$host_cpu" = ia64; then
20945
# AIX 5 now supports IA64 processor
20946
lt_prog_compiler_static_GCJ='-Bstatic'
20948
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
20952
# PIC is the default on this platform
20953
# Common symbols not allowed in MH_DYLIB files
20954
case $cc_basename in
20956
lt_prog_compiler_pic_GCJ='-qnocommon'
20957
lt_prog_compiler_wl_GCJ='-Wl,'
20962
mingw* | cygwin* | pw32* | os2*)
20963
# This hack is so that the source file can tell whether it is being
20964
# built for inclusion in a dll (and should export symbols for example).
20968
hpux9* | hpux10* | hpux11*)
20969
lt_prog_compiler_wl_GCJ='-Wl,'
20970
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20971
# not for PA HP-UX.
20977
lt_prog_compiler_pic_GCJ='+Z'
20980
# Is there a better lt_prog_compiler_static that works with the bundled CC?
20981
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
20984
irix5* | irix6* | nonstopux*)
20985
lt_prog_compiler_wl_GCJ='-Wl,'
20986
# PIC (with -KPIC) is the default.
20987
lt_prog_compiler_static_GCJ='-non_shared'
20991
lt_prog_compiler_pic_GCJ='-KPIC'
20992
lt_prog_compiler_static_GCJ='-Bstatic'
20995
linux* | k*bsd*-gnu)
20996
case $cc_basename in
20998
lt_prog_compiler_wl_GCJ='-Wl,'
20999
lt_prog_compiler_pic_GCJ='-KPIC'
21000
lt_prog_compiler_static_GCJ='-static'
21002
pgcc* | pgf77* | pgf90* | pgf95*)
21003
# Portland Group compilers (*not* the Pentium gcc compiler,
21004
# which looks to be a dead project)
21005
lt_prog_compiler_wl_GCJ='-Wl,'
21006
lt_prog_compiler_pic_GCJ='-fpic'
21007
lt_prog_compiler_static_GCJ='-Bstatic'
21010
lt_prog_compiler_wl_GCJ='-Wl,'
21011
# All Alpha code is PIC.
21012
lt_prog_compiler_static_GCJ='-non_shared'
21015
case `$CC -V 2>&1 | sed 5q` in
21018
lt_prog_compiler_pic_GCJ='-KPIC'
21019
lt_prog_compiler_static_GCJ='-Bstatic'
21020
lt_prog_compiler_wl_GCJ='-Wl,'
21023
# Sun Fortran 8.3 passes all unrecognized flags to the linker
21024
lt_prog_compiler_pic_GCJ='-KPIC'
21025
lt_prog_compiler_static_GCJ='-Bstatic'
21026
lt_prog_compiler_wl_GCJ=''
21033
osf3* | osf4* | osf5*)
21034
lt_prog_compiler_wl_GCJ='-Wl,'
21035
# All OSF/1 code is PIC.
21036
lt_prog_compiler_static_GCJ='-non_shared'
21040
lt_prog_compiler_static_GCJ='-non_shared'
21044
lt_prog_compiler_pic_GCJ='-KPIC'
21045
lt_prog_compiler_static_GCJ='-Bstatic'
21046
case $cc_basename in
21047
f77* | f90* | f95*)
21048
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
21050
lt_prog_compiler_wl_GCJ='-Wl,';;
21055
lt_prog_compiler_wl_GCJ='-Qoption ld '
21056
lt_prog_compiler_pic_GCJ='-PIC'
21057
lt_prog_compiler_static_GCJ='-Bstatic'
21060
sysv4 | sysv4.2uw2* | sysv4.3*)
21061
lt_prog_compiler_wl_GCJ='-Wl,'
21062
lt_prog_compiler_pic_GCJ='-KPIC'
21063
lt_prog_compiler_static_GCJ='-Bstatic'
21067
if test -d /usr/nec ;then
21068
lt_prog_compiler_pic_GCJ='-Kconform_pic'
21069
lt_prog_compiler_static_GCJ='-Bstatic'
21073
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21074
lt_prog_compiler_wl_GCJ='-Wl,'
21075
lt_prog_compiler_pic_GCJ='-KPIC'
21076
lt_prog_compiler_static_GCJ='-Bstatic'
21080
lt_prog_compiler_wl_GCJ='-Wl,'
21081
lt_prog_compiler_can_build_shared_GCJ=no
21085
lt_prog_compiler_pic_GCJ='-pic'
21086
lt_prog_compiler_static_GCJ='-Bstatic'
21090
lt_prog_compiler_can_build_shared_GCJ=no
21095
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21096
$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
21099
# Check to make sure the PIC flag actually works.
21101
if test -n "$lt_prog_compiler_pic_GCJ"; then
21103
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21104
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
21105
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
21106
$as_echo_n "(cached) " >&6
21108
lt_cv_prog_compiler_pic_works_GCJ=no
21109
ac_outfile=conftest.$ac_objext
21110
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21111
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21112
# Insert the option either (1) after the last *FLAGS variable, or
21113
# (2) before a word containing "conftest.", or (3) at the end.
21114
# Note that $ac_compile itself does not contain backslashes and begins
21115
# with a dollar sign (not a hyphen), so the echo should work correctly.
21116
# The option is referenced via a variable to avoid confusing sed.
21117
lt_compile=`echo "$ac_compile" | $SED \
21118
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21119
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21120
-e 's:$: $lt_compiler_flag:'`
21121
(eval echo "\"\$as_me:21121: $lt_compile\"" >&5)
21122
(eval "$lt_compile" 2>conftest.err)
21124
cat conftest.err >&5
21125
echo "$as_me:21125: \$? = $ac_status" >&5
21126
if (exit $ac_status) && test -s "$ac_outfile"; then
21127
# The compiler can only warn and ignore the option if not recognized
21128
# So say no if there are warnings other than the usual output.
21129
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21130
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21131
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21132
lt_cv_prog_compiler_pic_works_GCJ=yes
21138
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
21139
$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
21141
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
21142
case $lt_prog_compiler_pic_GCJ in
21144
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21147
lt_prog_compiler_pic_GCJ=
21148
lt_prog_compiler_can_build_shared_GCJ=no
21153
# For platforms which do not support PIC, -DPIC is meaningless:
21155
lt_prog_compiler_pic_GCJ=
21158
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21163
# Check to make sure the static flag actually works.
21165
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
21166
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21167
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
21168
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
21169
$as_echo_n "(cached) " >&6
21171
lt_cv_prog_compiler_static_works_GCJ=no
21172
save_LDFLAGS="$LDFLAGS"
21173
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21174
echo "$lt_simple_link_test_code" > conftest.$ac_ext
21175
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21176
# The linker can only warn and ignore the option if not recognized
21177
# So say no if there are warnings
21178
if test -s conftest.err; then
21179
# Append any errors to the config.log.
21180
cat conftest.err 1>&5
21181
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21182
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21183
if diff conftest.exp conftest.er2 >/dev/null; then
21184
lt_cv_prog_compiler_static_works_GCJ=yes
21187
lt_cv_prog_compiler_static_works_GCJ=yes
21191
LDFLAGS="$save_LDFLAGS"
21194
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
21195
$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
21197
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
21200
lt_prog_compiler_static_GCJ=
21204
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21205
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21206
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21207
$as_echo_n "(cached) " >&6
21209
lt_cv_prog_compiler_c_o_GCJ=no
21210
$rm -r conftest 2>/dev/null
21214
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21216
lt_compiler_flag="-o out/conftest2.$ac_objext"
21217
# Insert the option either (1) after the last *FLAGS variable, or
21218
# (2) before a word containing "conftest.", or (3) at the end.
21219
# Note that $ac_compile itself does not contain backslashes and begins
21220
# with a dollar sign (not a hyphen), so the echo should work correctly.
21221
lt_compile=`echo "$ac_compile" | $SED \
21222
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21223
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21224
-e 's:$: $lt_compiler_flag:'`
21225
(eval echo "\"\$as_me:21225: $lt_compile\"" >&5)
21226
(eval "$lt_compile" 2>out/conftest.err)
21228
cat out/conftest.err >&5
21229
echo "$as_me:21229: \$? = $ac_status" >&5
21230
if (exit $ac_status) && test -s out/conftest2.$ac_objext
21232
# The compiler can only warn and ignore the option if not recognized
21233
# So say no if there are warnings
21234
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21235
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21236
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21237
lt_cv_prog_compiler_c_o_GCJ=yes
21242
# SGI C++ compiler will create directory out/ii_files/ for
21243
# template instantiation
21244
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21245
$rm out/* && rmdir out
21251
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21252
$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
21255
hard_links="nottested"
21256
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21257
# do not overwrite the value of need_locks provided by the user
21258
{ $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21259
$as_echo_n "checking if we can lock with hard links... " >&6; }
21262
ln conftest.a conftest.b 2>/dev/null && hard_links=no
21264
ln conftest.a conftest.b 2>&5 || hard_links=no
21265
ln conftest.a conftest.b 2>/dev/null && hard_links=no
21266
{ $as_echo "$as_me:$LINENO: result: $hard_links" >&5
21267
$as_echo "$hard_links" >&6; }
21268
if test "$hard_links" = no; then
21269
{ $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21270
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21277
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21278
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
21281
allow_undefined_flag_GCJ=
21282
enable_shared_with_static_runtimes_GCJ=no
21284
archive_expsym_cmds_GCJ=
21285
old_archive_From_new_cmds_GCJ=
21286
old_archive_from_expsyms_cmds_GCJ=
21287
export_dynamic_flag_spec_GCJ=
21288
whole_archive_flag_spec_GCJ=
21289
thread_safe_flag_spec_GCJ=
21290
hardcode_libdir_flag_spec_GCJ=
21291
hardcode_libdir_flag_spec_ld_GCJ=
21292
hardcode_libdir_separator_GCJ=
21293
hardcode_direct_GCJ=no
21294
hardcode_minus_L_GCJ=no
21295
hardcode_shlibpath_var_GCJ=unsupported
21296
link_all_deplibs_GCJ=unknown
21297
hardcode_automatic_GCJ=no
21299
module_expsym_cmds_GCJ=
21300
always_export_symbols_GCJ=no
21301
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21302
# include_expsyms should be a list of space-separated symbols to be *always*
21303
# included in the symbol list
21304
include_expsyms_GCJ=
21305
# exclude_expsyms can be an extended regexp of symbols to exclude
21306
# it will be wrapped by ` (' and `)$', so one must not match beginning or
21307
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21308
# as well as any symbol that contains `d'.
21309
exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
21310
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21311
# platforms (ab)use it in PIC code, but their linkers get confused if
21312
# the symbol is explicitly referenced. Since portable code cannot
21313
# rely on this symbol name, it's probably fine to never include it in
21314
# preloaded symbol tables.
21315
# Exclude shared library initialization/finalization symbols.
21316
extract_expsyms_cmds=
21317
# Just being paranoid about ensuring that cc_basename is set.
21318
for cc_temp in $compiler""; do
21320
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21321
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21326
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21329
cygwin* | mingw* | pw32*)
21330
# FIXME: the MSVC++ port hasn't been tested in a loooong time
21331
# When not using gcc, we currently assume that we are using
21332
# Microsoft Visual C++.
21333
if test "$GCC" != yes; then
21338
# we just hope/assume this is gcc and not c89 (= MSVC++)
21347
if test "$with_gnu_ld" = yes; then
21348
# If archive_cmds runs LD, not CC, wlarc should be empty
21351
# Set some defaults for GNU ld with shared library support. These
21352
# are reset later if shared libraries are not supported. Putting them
21353
# here allows them to be overridden if necessary.
21354
runpath_var=LD_RUN_PATH
21355
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21356
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21357
# ancient GNU ld didn't support --whole-archive et. al.
21358
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21359
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21361
whole_archive_flag_spec_GCJ=
21363
supports_anon_versioning=no
21364
case `$LD -v 2>/dev/null` in
21365
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21366
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21367
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21368
*\ 2.11.*) ;; # other 2.11 versions
21369
*) supports_anon_versioning=yes ;;
21372
# See if GNU ld supports shared libraries.
21375
# On AIX/PPC, the GNU linker is very broken
21376
if test "$host_cpu" != ia64; then
21380
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21381
*** to be unable to reliably create shared libraries on AIX.
21382
*** Therefore, libtool is disabling shared libraries support. If you
21383
*** really care for shared libraries, you may want to modify your PATH
21384
*** so that a non-GNU linker is found, and then restart.
21391
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)'
21392
hardcode_libdir_flag_spec_GCJ='-L$libdir'
21393
hardcode_minus_L_GCJ=yes
21395
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21396
# that the semantics of dynamic libraries on AmigaOS, at least up
21397
# to version 4, is to share data among multiple programs linked
21398
# with the same dynamic library. Since this doesn't match the
21399
# behavior of shared libraries on other platforms, we can't use
21405
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21406
allow_undefined_flag_GCJ=unsupported
21407
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21408
# support --undefined. This deserves some investigation. FIXME
21409
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21415
cygwin* | mingw* | pw32*)
21416
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21417
# as there is no search path for DLLs.
21418
hardcode_libdir_flag_spec_GCJ='-L$libdir'
21419
allow_undefined_flag_GCJ=unsupported
21420
always_export_symbols_GCJ=no
21421
enable_shared_with_static_runtimes_GCJ=yes
21422
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
21424
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21425
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21426
# If the export-symbols file already is a .def file (1st line
21427
# is EXPORTS), use it as is; otherwise, prepend...
21428
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21429
cp $export_symbols $output_objdir/$soname.def;
21431
echo EXPORTS > $output_objdir/$soname.def;
21432
cat $export_symbols >> $output_objdir/$soname.def;
21434
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21441
hardcode_direct_GCJ=no
21442
hardcode_shlibpath_var_GCJ=no
21443
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
21444
export_dynamic_flag_spec_GCJ='${wl}-E'
21445
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21446
# Instead, shared libraries are loaded at an image base (0x10000000 by
21447
# default) and relocated if they conflict, which is a slow very memory
21448
# consuming and fragmenting process. To avoid this, we pick a random,
21449
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21450
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
21451
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'
21452
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'
21455
gnu* | linux* | k*bsd*-gnu)
21456
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21458
case $cc_basename,$host_cpu in
21459
pgcc*) # Portland Group C compiler
21460
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'
21461
tmp_addflag=' $pic_flag'
21463
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21464
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'
21465
tmp_addflag=' $pic_flag -Mnomain' ;;
21466
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21467
tmp_addflag=' -i_dynamic' ;;
21468
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21469
tmp_addflag=' -i_dynamic -nofor_main' ;;
21470
ifc* | ifort*) # Intel Fortran compiler
21471
tmp_addflag=' -nofor_main' ;;
21473
case `$CC -V 2>&1 | sed 5q` in
21474
*Sun\ C*) # Sun C 5.9
21475
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'
21476
tmp_sharedflag='-G' ;;
21477
*Sun\ F*) # Sun Fortran 8.3
21478
tmp_sharedflag='-G' ;;
21480
tmp_sharedflag='-shared' ;;
21482
archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21484
if test $supports_anon_versioning = yes; then
21485
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21486
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21487
$echo "local: *; };" >> $output_objdir/$libname.ver~
21488
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21496
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21497
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21500
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21501
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21506
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21510
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21511
*** create shared libraries on Solaris systems. Therefore, libtool
21512
*** is disabling shared libraries support. We urge you to upgrade GNU
21513
*** binutils to release 2.9.1 or newer. Another option is to modify
21514
*** your PATH or compiler configuration so that the native linker is
21515
*** used, and then restart.
21518
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21519
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21520
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21526
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21527
case `$LD -v 2>&1` in
21528
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21532
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21533
*** reliably create shared libraries on SCO systems. Therefore, libtool
21534
*** is disabling shared libraries support. We urge you to upgrade GNU
21535
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21536
*** your PATH or compiler configuration so that the native linker is
21537
*** used, and then restart.
21542
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21543
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21544
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21545
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21554
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21556
hardcode_direct_GCJ=yes
21557
hardcode_shlibpath_var_GCJ=no
21561
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21562
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21563
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21570
if test "$ld_shlibs_GCJ" = no; then
21572
hardcode_libdir_flag_spec_GCJ=
21573
export_dynamic_flag_spec_GCJ=
21574
whole_archive_flag_spec_GCJ=
21577
# PORTME fill in a description of your system's linker (not GNU ld)
21580
allow_undefined_flag_GCJ=unsupported
21581
always_export_symbols_GCJ=yes
21582
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'
21583
# Note: this linker hardcodes the directories in LIBPATH if there
21584
# are no directories specified by -L.
21585
hardcode_minus_L_GCJ=yes
21586
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21587
# Neither direct hardcoding nor static linking is supported with a
21589
hardcode_direct_GCJ=unsupported
21594
if test "$host_cpu" = ia64; then
21595
# On IA64, the linker does run time linking by default, so we don't
21596
# have to do anything special.
21597
aix_use_runtimelinking=no
21598
exp_sym_flag='-Bexport'
21601
# If we're using GNU nm, then we don't want the "-C" option.
21602
# -C means demangle to AIX nm, but means don't demangle with GNU nm
21603
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21604
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'
21606
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'
21608
aix_use_runtimelinking=no
21610
# Test if we are trying to use run time linking or normal
21611
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
21612
# need to do runtime linking.
21613
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
21614
for ld_flag in $LDFLAGS; do
21615
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21616
aix_use_runtimelinking=yes
21623
exp_sym_flag='-bexport'
21624
no_entry_flag='-bnoentry'
21627
# When large executables or shared objects are built, AIX ld can
21628
# have problems creating the table of contents. If linking a library
21629
# or program results in "error TOC overflow" add -mminimal-toc to
21630
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21631
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21633
archive_cmds_GCJ=''
21634
hardcode_direct_GCJ=yes
21635
hardcode_libdir_separator_GCJ=':'
21636
link_all_deplibs_GCJ=yes
21638
if test "$GCC" = yes; then
21639
case $host_os in aix4.[012]|aix4.[012].*)
21640
# We only want to do this on AIX 4.2 and lower, the check
21641
# below for broken collect2 doesn't work under 4.3+
21642
collect2name=`${CC} -print-prog-name=collect2`
21643
if test -f "$collect2name" && \
21644
strings "$collect2name" | grep resolve_lib_name >/dev/null
21646
# We have reworked collect2
21649
# We have old collect2
21650
hardcode_direct_GCJ=unsupported
21651
# It fails to find uninstalled libraries when the uninstalled
21652
# path is not listed in the libpath. Setting hardcode_minus_L
21653
# to unsupported forces relinking
21654
hardcode_minus_L_GCJ=yes
21655
hardcode_libdir_flag_spec_GCJ='-L$libdir'
21656
hardcode_libdir_separator_GCJ=
21660
shared_flag='-shared'
21661
if test "$aix_use_runtimelinking" = yes; then
21662
shared_flag="$shared_flag "'${wl}-G'
21666
if test "$host_cpu" = ia64; then
21667
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21668
# chokes on -Wl,-G. The following line is correct:
21671
if test "$aix_use_runtimelinking" = yes; then
21672
shared_flag='${wl}-G'
21674
shared_flag='${wl}-bM:SRE'
21679
# It seems that -bexpall does not export symbols beginning with
21680
# underscore (_), so it is better to generate a list of symbols to export.
21681
always_export_symbols_GCJ=yes
21682
if test "$aix_use_runtimelinking" = yes; then
21683
# Warning - without using the other runtime loading flags (-brtl),
21684
# -berok will link without error, but may produce a broken library.
21685
allow_undefined_flag_GCJ='-berok'
21686
# Determine the default libpath from the value encoded in an empty executable.
21687
cat >conftest.$ac_ext <<_ACEOF
21690
cat confdefs.h >>conftest.$ac_ext
21691
cat >>conftest.$ac_ext <<_ACEOF
21692
/* end confdefs.h. */
21702
rm -f conftest.$ac_objext conftest$ac_exeext
21703
if { (ac_try="$ac_link"
21704
case "(($ac_try" in
21705
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21706
*) ac_try_echo=$ac_try;;
21708
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21709
$as_echo "$ac_try_echo") >&5
21710
(eval "$ac_link") 2>conftest.er1
21712
grep -v '^ *+' conftest.er1 >conftest.err
21714
cat conftest.err >&5
21715
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21716
(exit $ac_status); } && {
21717
test -z "$ac_c_werror_flag" ||
21718
test ! -s conftest.err
21719
} && test -s conftest$ac_exeext && {
21720
test "$cross_compiling" = yes ||
21721
$as_test_x conftest$ac_exeext
21724
lt_aix_libpath_sed='
21725
/Import File Strings/,/^$/ {
21731
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
21732
# Check for a 64-bit object if we didn't find anything.
21733
if test -z "$aix_libpath"; then
21734
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
21737
$as_echo "$as_me: failed program was:" >&5
21738
sed 's/^/| /' conftest.$ac_ext >&5
21743
rm -rf conftest.dSYM
21744
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21745
conftest$ac_exeext conftest.$ac_ext
21746
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21748
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21749
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"
21751
if test "$host_cpu" = ia64; then
21752
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21753
allow_undefined_flag_GCJ="-z nodefs"
21754
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"
21756
# Determine the default libpath from the value encoded in an empty executable.
21757
cat >conftest.$ac_ext <<_ACEOF
21760
cat confdefs.h >>conftest.$ac_ext
21761
cat >>conftest.$ac_ext <<_ACEOF
21762
/* end confdefs.h. */
21772
rm -f conftest.$ac_objext conftest$ac_exeext
21773
if { (ac_try="$ac_link"
21774
case "(($ac_try" in
21775
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21776
*) ac_try_echo=$ac_try;;
21778
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21779
$as_echo "$ac_try_echo") >&5
21780
(eval "$ac_link") 2>conftest.er1
21782
grep -v '^ *+' conftest.er1 >conftest.err
21784
cat conftest.err >&5
21785
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21786
(exit $ac_status); } && {
21787
test -z "$ac_c_werror_flag" ||
21788
test ! -s conftest.err
21789
} && test -s conftest$ac_exeext && {
21790
test "$cross_compiling" = yes ||
21791
$as_test_x conftest$ac_exeext
21794
lt_aix_libpath_sed='
21795
/Import File Strings/,/^$/ {
21801
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
21802
# Check for a 64-bit object if we didn't find anything.
21803
if test -z "$aix_libpath"; then
21804
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
21807
$as_echo "$as_me: failed program was:" >&5
21808
sed 's/^/| /' conftest.$ac_ext >&5
21813
rm -rf conftest.dSYM
21814
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21815
conftest$ac_exeext conftest.$ac_ext
21816
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21818
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21819
# Warning - without using the other run time loading flags,
21820
# -berok will link without error, but may produce a broken library.
21821
no_undefined_flag_GCJ=' ${wl}-bernotok'
21822
allow_undefined_flag_GCJ=' ${wl}-berok'
21823
# Exported symbols can be pulled into shared objects from archives
21824
whole_archive_flag_spec_GCJ='$convenience'
21825
archive_cmds_need_lc_GCJ=yes
21826
# This is similar to how AIX traditionally builds its shared libraries.
21827
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'
21833
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)'
21834
hardcode_libdir_flag_spec_GCJ='-L$libdir'
21835
hardcode_minus_L_GCJ=yes
21836
# see comment about different semantics on the GNU ld section
21841
export_dynamic_flag_spec_GCJ=-rdynamic
21844
cygwin* | mingw* | pw32*)
21845
# When not using gcc, we currently assume that we are using
21846
# Microsoft Visual C++.
21847
# hardcode_libdir_flag_spec is actually meaningless, as there is
21848
# no search path for DLLs.
21849
hardcode_libdir_flag_spec_GCJ=' '
21850
allow_undefined_flag_GCJ=unsupported
21851
# Tell ltmain to make .lib files, not .a files.
21853
# Tell ltmain to make .dll files, not .so files.
21855
# FIXME: Setting linknames here is a bad hack.
21856
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21857
# The linker will automatically build a .lib file if we build a DLL.
21858
old_archive_From_new_cmds_GCJ='true'
21859
# FIXME: Should let the user specify the lib program.
21860
old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
21861
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
21862
enable_shared_with_static_runtimes_GCJ=yes
21865
darwin* | rhapsody*)
21866
allow_undefined_flag_GCJ="$_lt_dar_allow_undefined"
21867
archive_cmds_need_lc_GCJ=no
21868
hardcode_direct_GCJ=no
21869
hardcode_automatic_GCJ=yes
21870
hardcode_shlibpath_var_GCJ=unsupported
21871
whole_archive_flag_spec_GCJ=''
21872
link_all_deplibs_GCJ=yes
21873
if test "$GCC" = yes ; then
21874
output_verbose_link_cmd='echo'
21875
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}"
21876
module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
21877
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}"
21878
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}"
21880
case $cc_basename in
21882
output_verbose_link_cmd='echo'
21883
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
21884
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21885
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21886
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}'
21887
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}'
21897
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21898
hardcode_libdir_flag_spec_GCJ='-L$libdir'
21899
hardcode_shlibpath_var_GCJ=no
21906
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21907
# support. Future versions do this automatically, but an explicit c++rt0.o
21908
# does not break anything, and helps significantly (at the cost of a little
21911
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21912
hardcode_libdir_flag_spec_GCJ='-R$libdir'
21913
hardcode_direct_GCJ=yes
21914
hardcode_shlibpath_var_GCJ=no
21917
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
21919
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21920
hardcode_direct_GCJ=yes
21921
hardcode_minus_L_GCJ=yes
21922
hardcode_shlibpath_var_GCJ=no
21925
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21926
freebsd* | dragonfly*)
21927
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21928
hardcode_libdir_flag_spec_GCJ='-R$libdir'
21929
hardcode_direct_GCJ=yes
21930
hardcode_shlibpath_var_GCJ=no
21934
if test "$GCC" = yes; then
21935
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'
21937
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'
21939
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21940
hardcode_libdir_separator_GCJ=:
21941
hardcode_direct_GCJ=yes
21943
# hardcode_minus_L: Not really in the search PATH,
21944
# but as the default location of the library.
21945
hardcode_minus_L_GCJ=yes
21946
export_dynamic_flag_spec_GCJ='${wl}-E'
21950
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21951
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21953
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21955
if test "$with_gnu_ld" = no; then
21956
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21957
hardcode_libdir_separator_GCJ=:
21959
hardcode_direct_GCJ=yes
21960
export_dynamic_flag_spec_GCJ='${wl}-E'
21962
# hardcode_minus_L: Not really in the search PATH,
21963
# but as the default location of the library.
21964
hardcode_minus_L_GCJ=yes
21969
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21972
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21975
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21978
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21984
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21987
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21990
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21994
if test "$with_gnu_ld" = no; then
21995
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21996
hardcode_libdir_separator_GCJ=:
22000
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
22001
hardcode_direct_GCJ=no
22002
hardcode_shlibpath_var_GCJ=no
22005
hardcode_direct_GCJ=yes
22006
export_dynamic_flag_spec_GCJ='${wl}-E'
22008
# hardcode_minus_L: Not really in the search PATH,
22009
# but as the default location of the library.
22010
hardcode_minus_L_GCJ=yes
22016
irix5* | irix6* | nonstopux*)
22017
if test "$GCC" = yes; then
22018
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'
22020
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'
22021
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22023
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22024
hardcode_libdir_separator_GCJ=:
22025
link_all_deplibs_GCJ=yes
22029
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22030
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22032
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22034
hardcode_libdir_flag_spec_GCJ='-R$libdir'
22035
hardcode_direct_GCJ=yes
22036
hardcode_shlibpath_var_GCJ=no
22040
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22041
hardcode_direct_GCJ=yes
22042
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22043
hardcode_libdir_separator_GCJ=:
22044
hardcode_shlibpath_var_GCJ=no
22048
if test -f /usr/libexec/ld.so; then
22049
hardcode_direct_GCJ=yes
22050
hardcode_shlibpath_var_GCJ=no
22051
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22052
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22053
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22054
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22055
export_dynamic_flag_spec_GCJ='${wl}-E'
22058
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22059
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22060
hardcode_libdir_flag_spec_GCJ='-R$libdir'
22063
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22064
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22074
hardcode_libdir_flag_spec_GCJ='-L$libdir'
22075
hardcode_minus_L_GCJ=yes
22076
allow_undefined_flag_GCJ=unsupported
22077
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'
22078
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22082
if test "$GCC" = yes; then
22083
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22084
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'
22086
allow_undefined_flag_GCJ=' -expect_unresolved \*'
22087
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'
22089
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22090
hardcode_libdir_separator_GCJ=:
22093
osf4* | osf5*) # as osf3* with the addition of -msym flag
22094
if test "$GCC" = yes; then
22095
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22096
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'
22097
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22099
allow_undefined_flag_GCJ=' -expect_unresolved \*'
22100
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'
22101
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~
22102
$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'
22104
# Both c and cxx compiler support -rpath directly
22105
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22107
hardcode_libdir_separator_GCJ=:
22111
no_undefined_flag_GCJ=' -z text'
22112
if test "$GCC" = yes; then
22114
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22115
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22116
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22119
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22120
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22121
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22123
hardcode_libdir_flag_spec_GCJ='-R$libdir'
22124
hardcode_shlibpath_var_GCJ=no
22126
solaris2.[0-5] | solaris2.[0-5].*) ;;
22128
# The compiler driver will combine and reorder linker options,
22129
# but understands `-z linker_flag'. GCC discards it without `$wl',
22130
# but is careful enough not to reorder.
22131
# Supported since Solaris 2.6 (maybe 2.5.1?)
22132
if test "$GCC" = yes; then
22133
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
22135
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
22139
link_all_deplibs_GCJ=yes
22143
if test "x$host_vendor" = xsequent; then
22144
# Use $CC to link under sequent, because it throws in some extra .o
22145
# files that make .init and .fini sections work.
22146
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22148
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22150
hardcode_libdir_flag_spec_GCJ='-L$libdir'
22151
hardcode_direct_GCJ=yes
22152
hardcode_minus_L_GCJ=yes
22153
hardcode_shlibpath_var_GCJ=no
22157
case $host_vendor in
22159
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22160
hardcode_direct_GCJ=yes # is this really true???
22163
## LD is ld it makes a PLAMLIB
22164
## CC just makes a GrossModule.
22165
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22166
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22167
hardcode_direct_GCJ=no
22170
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22171
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22174
runpath_var='LD_RUN_PATH'
22175
hardcode_shlibpath_var_GCJ=no
22179
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22180
hardcode_shlibpath_var_GCJ=no
22181
export_dynamic_flag_spec_GCJ='-Bexport'
22185
if test -d /usr/nec; then
22186
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22187
hardcode_shlibpath_var_GCJ=no
22188
runpath_var=LD_RUN_PATH
22189
hardcode_runpath_var=yes
22194
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
22195
no_undefined_flag_GCJ='${wl}-z,text'
22196
archive_cmds_need_lc_GCJ=no
22197
hardcode_shlibpath_var_GCJ=no
22198
runpath_var='LD_RUN_PATH'
22200
if test "$GCC" = yes; then
22201
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22202
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22204
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22205
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22209
sysv5* | sco3.2v5* | sco5v6*)
22210
# Note: We can NOT use -z defs as we might desire, because we do not
22211
# link with -lc, and that would cause any symbols used from libc to
22212
# always be unresolved, which means just about no library would
22213
# ever link correctly. If we're not using GNU ld we use -z text
22214
# though, which does catch some bad symbols but isn't as heavy-handed
22216
no_undefined_flag_GCJ='${wl}-z,text'
22217
allow_undefined_flag_GCJ='${wl}-z,nodefs'
22218
archive_cmds_need_lc_GCJ=no
22219
hardcode_shlibpath_var_GCJ=no
22220
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22221
hardcode_libdir_separator_GCJ=':'
22222
link_all_deplibs_GCJ=yes
22223
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22224
runpath_var='LD_RUN_PATH'
22226
if test "$GCC" = yes; then
22227
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22228
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22230
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22231
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22236
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22237
hardcode_libdir_flag_spec_GCJ='-L$libdir'
22238
hardcode_shlibpath_var_GCJ=no
22247
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22248
$as_echo "$ld_shlibs_GCJ" >&6; }
22249
test "$ld_shlibs_GCJ" = no && can_build_shared=no
22252
# Do we need to explicitly link libc?
22254
case "x$archive_cmds_need_lc_GCJ" in
22256
# Assume -lc should be added
22257
archive_cmds_need_lc_GCJ=yes
22259
if test "$enable_shared" = yes && test "$GCC" = yes; then
22260
case $archive_cmds_GCJ in
22262
# FIXME: we may have to deal with multi-command sequences.
22265
# Test whether the compiler implicitly links with -lc since on some
22266
# systems, -lgcc has to come before -lc. If gcc already passes -lc
22267
# to ld, don't add -lc before -lgcc.
22268
{ $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22269
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22271
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22273
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22274
(eval $ac_compile) 2>&5
22276
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22277
(exit $ac_status); } 2>conftest.err; then
22280
libobjs=conftest.$ac_objext
22282
wl=$lt_prog_compiler_wl_GCJ
22283
pic_flag=$lt_prog_compiler_pic_GCJ
22289
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22290
allow_undefined_flag_GCJ=
22291
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22292
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22294
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22295
(exit $ac_status); }
22297
archive_cmds_need_lc_GCJ=no
22299
archive_cmds_need_lc_GCJ=yes
22301
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22303
cat conftest.err 1>&5
22306
{ $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22307
$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
22314
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22315
$as_echo_n "checking dynamic linker characteristics... " >&6; }
22316
library_names_spec=
22317
libname_spec='lib$name'
22321
postuninstall_cmds=
22325
shlibpath_overrides_runpath=unknown
22327
dynamic_linker="$host_os ld.so"
22328
sys_lib_dlsearch_path_spec="/lib /usr/lib"
22330
need_lib_prefix=unknown
22331
hardcode_into_libs=no
22333
# when you set need_version to no, make sure it does not cause -set_version
22334
# flags to be left without arguments
22335
need_version=unknown
22340
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22341
shlibpath_var=LIBPATH
22343
# AIX 3 has no versioning support, so we append a major version to the name.
22344
soname_spec='${libname}${release}${shared_ext}$major'
22351
hardcode_into_libs=yes
22352
if test "$host_cpu" = ia64; then
22353
# AIX 5 supports IA64
22354
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22355
shlibpath_var=LD_LIBRARY_PATH
22357
# With GCC up to 2.95.x, collect2 would create an import file
22358
# for dependence libraries. The import file would start with
22359
# the line `#! .'. This would cause the generated library to
22360
# depend on `.', always an invalid library. This was fixed in
22361
# development snapshots of GCC prior to 3.0.
22363
aix4 | aix4.[01] | aix4.[01].*)
22364
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22366
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22369
can_build_shared=no
22373
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22374
# soname into executable. Probably we can add versioning support to
22375
# collect2, so additional links can be useful in future.
22376
if test "$aix_use_runtimelinking" = yes; then
22377
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
22378
# instead of lib<name>.a to let people know that these are not
22379
# typical AIX shared libraries.
22380
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22382
# We preserve .a as extension for shared libraries through AIX4.2
22383
# and later when we are not doing run time linking.
22384
library_names_spec='${libname}${release}.a $libname.a'
22385
soname_spec='${libname}${release}${shared_ext}$major'
22387
shlibpath_var=LIBPATH
22392
library_names_spec='$libname.ixlibrary $libname.a'
22393
# Create ${libname}_ixlibrary.a entries in /sys/libs.
22394
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'
22398
library_names_spec='${libname}${shared_ext}'
22399
dynamic_linker="$host_os ld.so"
22400
shlibpath_var=LIBRARY_PATH
22406
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22407
soname_spec='${libname}${release}${shared_ext}$major'
22408
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22409
shlibpath_var=LD_LIBRARY_PATH
22410
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22411
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22412
# the default ld.so.conf also contains /usr/contrib/lib and
22413
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22414
# libtool to hard-code these into programs
22417
cygwin* | mingw* | pw32*)
22418
version_type=windows
22423
case $GCC,$host_os in
22424
yes,cygwin* | yes,mingw* | yes,pw32*)
22425
library_names_spec='$libname.dll.a'
22426
# DLL is installed to $(libdir)/../bin by postinstall_cmds
22427
postinstall_cmds='base_file=`basename \${file}`~
22428
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22429
dldir=$destdir/`dirname \$dlpath`~
22430
test -d \$dldir || mkdir -p \$dldir~
22431
$install_prog $dir/$dlname \$dldir/$dlname~
22432
chmod a+x \$dldir/$dlname'
22433
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22434
dlpath=$dir/\$dldll~
22436
shlibpath_overrides_runpath=yes
22440
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
22441
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22442
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22445
# MinGW DLLs use traditional 'lib' prefix
22446
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22447
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22448
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22449
# It is most probably a Windows format PATH printed by
22450
# mingw gcc, but we are running on Cygwin. Gcc prints its search
22451
# path with ; separators, and with drive letters. We can handle the
22452
# drive letters (cygwin fileutils understands them), so leave them,
22453
# especially as we might pass files found there to a mingw objdump,
22454
# which wouldn't understand a cygwinified path. Ahh.
22455
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22457
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22461
# pw32 DLLs use 'pw' prefix rather than 'lib'
22462
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22468
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22471
dynamic_linker='Win32 ld.exe'
22472
# FIXME: first we should search . and the directory the executable is in
22476
darwin* | rhapsody*)
22477
dynamic_linker="$host_os dyld"
22478
version_type=darwin
22481
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22482
soname_spec='${libname}${release}${major}$shared_ext'
22483
shlibpath_overrides_runpath=yes
22484
shlibpath_var=DYLD_LIBRARY_PATH
22485
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22487
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22494
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22495
soname_spec='${libname}${release}${shared_ext}$major'
22496
shlibpath_var=LD_LIBRARY_PATH
22503
freebsd* | dragonfly*)
22504
# DragonFly does not have aout. When/if they implement a new
22505
# versioning mechanism, adjust this.
22506
if test -x /usr/bin/objformat; then
22507
objformat=`/usr/bin/objformat`
22510
freebsd[123]*) objformat=aout ;;
22511
*) objformat=elf ;;
22514
version_type=freebsd-$objformat
22515
case $version_type in
22517
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22522
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22526
shlibpath_var=LD_LIBRARY_PATH
22529
shlibpath_overrides_runpath=yes
22531
freebsd3.[01]* | freebsdelf3.[01]*)
22532
shlibpath_overrides_runpath=yes
22533
hardcode_into_libs=yes
22535
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22536
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22537
shlibpath_overrides_runpath=no
22538
hardcode_into_libs=yes
22540
*) # from 4.6 on, and DragonFly
22541
shlibpath_overrides_runpath=yes
22542
hardcode_into_libs=yes
22551
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22552
soname_spec='${libname}${release}${shared_ext}$major'
22553
shlibpath_var=LD_LIBRARY_PATH
22554
hardcode_into_libs=yes
22557
hpux9* | hpux10* | hpux11*)
22558
# Give a soname corresponding to the major version so that dld.sl refuses to
22559
# link against other versions.
22566
hardcode_into_libs=yes
22567
dynamic_linker="$host_os dld.so"
22568
shlibpath_var=LD_LIBRARY_PATH
22569
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22570
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22571
soname_spec='${libname}${release}${shared_ext}$major'
22572
if test "X$HPUX_IA64_MODE" = X32; then
22573
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22575
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22577
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22581
hardcode_into_libs=yes
22582
dynamic_linker="$host_os dld.sl"
22583
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22584
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22585
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22586
soname_spec='${libname}${release}${shared_ext}$major'
22587
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22588
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22592
dynamic_linker="$host_os dld.sl"
22593
shlibpath_var=SHLIB_PATH
22594
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22595
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22596
soname_spec='${libname}${release}${shared_ext}$major'
22599
# HP-UX runs *really* slowly unless shared libraries are mode 555.
22600
postinstall_cmds='chmod 555 $lib'
22607
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22608
soname_spec='${libname}${release}${shared_ext}$major'
22609
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22610
shlibpath_var=LD_LIBRARY_PATH
22611
shlibpath_overrides_runpath=no
22612
hardcode_into_libs=yes
22615
irix5* | irix6* | nonstopux*)
22617
nonstopux*) version_type=nonstopux ;;
22619
if test "$lt_cv_prog_gnu_ld" = yes; then
22627
soname_spec='${libname}${release}${shared_ext}$major'
22628
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22630
irix5* | nonstopux*)
22631
libsuff= shlibsuff=
22634
case $LD in # libtool.m4 will add one of these switches to LD
22635
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22636
libsuff= shlibsuff= libmagic=32-bit;;
22637
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22638
libsuff=32 shlibsuff=N32 libmagic=N32;;
22639
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22640
libsuff=64 shlibsuff=64 libmagic=64-bit;;
22641
*) libsuff= shlibsuff= libmagic=never-match;;
22645
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22646
shlibpath_overrides_runpath=no
22647
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22648
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22649
hardcode_into_libs=yes
22652
# No shared lib support for Linux oldld, aout, or coff.
22653
linux*oldld* | linux*aout* | linux*coff*)
22657
# This must be Linux ELF.
22658
linux* | k*bsd*-gnu)
22662
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22663
soname_spec='${libname}${release}${shared_ext}$major'
22664
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22665
shlibpath_var=LD_LIBRARY_PATH
22666
shlibpath_overrides_runpath=no
22667
# This implies no fast_install, which is unacceptable.
22668
# Some rework will be needed to allow for fast_install
22669
# before this can be enabled.
22670
hardcode_into_libs=yes
22671
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22672
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22674
# Append ld.so.conf contents to the search path
22675
if test -f /etc/ld.so.conf; then
22676
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' ' '`
22677
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
22680
# We used to test for /lib/ld.so.1 and disable shared libraries on
22681
# powerpc, because MkLinux only supported shared libraries with the
22682
# GNU dynamic linker. Since this was broken with cross compilers,
22683
# most powerpc-linux boxes support dynamic linking these days and
22684
# people can always --disable-shared, the test was removed, and we
22685
# assume the GNU/Linux dynamic linker is in use.
22686
dynamic_linker='GNU/Linux ld.so'
22693
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22694
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22695
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22696
dynamic_linker='NetBSD (a.out) ld.so'
22698
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22699
soname_spec='${libname}${release}${shared_ext}$major'
22700
dynamic_linker='NetBSD ld.elf_so'
22702
shlibpath_var=LD_LIBRARY_PATH
22703
shlibpath_overrides_runpath=yes
22704
hardcode_into_libs=yes
22709
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22710
shlibpath_var=LD_LIBRARY_PATH
22711
shlibpath_overrides_runpath=yes
22718
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22719
soname_spec='${libname}${release}${shared_ext}$major'
22720
shlibpath_var=LD_LIBRARY_PATH
22721
shlibpath_overrides_runpath=yes
22726
sys_lib_dlsearch_path_spec="/usr/lib"
22728
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22730
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22731
*) need_version=no ;;
22733
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22734
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22735
shlibpath_var=LD_LIBRARY_PATH
22736
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22738
openbsd2.[89] | openbsd2.[89].*)
22739
shlibpath_overrides_runpath=no
22742
shlibpath_overrides_runpath=yes
22746
shlibpath_overrides_runpath=yes
22751
libname_spec='$name'
22754
library_names_spec='$libname${shared_ext} $libname.a'
22755
dynamic_linker='OS/2 ld.exe'
22756
shlibpath_var=LIBPATH
22759
osf3* | osf4* | osf5*)
22763
soname_spec='${libname}${release}${shared_ext}$major'
22764
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22765
shlibpath_var=LD_LIBRARY_PATH
22766
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22767
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22778
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22779
soname_spec='${libname}${release}${shared_ext}$major'
22780
shlibpath_var=LD_LIBRARY_PATH
22781
shlibpath_overrides_runpath=yes
22782
hardcode_into_libs=yes
22783
# ldd complains unless libraries are executable
22784
postinstall_cmds='chmod +x $lib'
22789
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22790
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22791
shlibpath_var=LD_LIBRARY_PATH
22792
shlibpath_overrides_runpath=yes
22793
if test "$with_gnu_ld" = yes; then
22801
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22802
soname_spec='${libname}${release}${shared_ext}$major'
22803
shlibpath_var=LD_LIBRARY_PATH
22804
case $host_vendor in
22806
shlibpath_overrides_runpath=no
22808
export_dynamic_flag_spec='${wl}-Blargedynsym'
22809
runpath_var=LD_RUN_PATH
22817
shlibpath_overrides_runpath=no
22818
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22824
if test -d /usr/nec ;then
22826
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22827
soname_spec='$libname${shared_ext}.$major'
22828
shlibpath_var=LD_LIBRARY_PATH
22832
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22833
version_type=freebsd-elf
22836
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22837
soname_spec='${libname}${release}${shared_ext}$major'
22838
shlibpath_var=LD_LIBRARY_PATH
22839
hardcode_into_libs=yes
22840
if test "$with_gnu_ld" = yes; then
22841
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22842
shlibpath_overrides_runpath=no
22844
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22845
shlibpath_overrides_runpath=yes
22848
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22852
sys_lib_dlsearch_path_spec='/usr/lib'
22857
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22858
soname_spec='${libname}${release}${shared_ext}$major'
22859
shlibpath_var=LD_LIBRARY_PATH
22866
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22867
$as_echo "$dynamic_linker" >&6; }
22868
test "$dynamic_linker" = no && can_build_shared=no
22870
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
22871
$as_echo_n "(cached) " >&6
22873
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
22876
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
22877
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
22878
$as_echo_n "(cached) " >&6
22880
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
22883
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
22885
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22886
if test "$GCC" = yes; then
22887
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22890
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22891
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
22892
hardcode_action_GCJ=
22893
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22894
test -n "$runpath_var_GCJ" || \
22895
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22897
# We can hardcode non-existant directories.
22898
if test "$hardcode_direct_GCJ" != no &&
22899
# If the only mechanism to avoid hardcoding is shlibpath_var, we
22900
# have to relink, otherwise we might link with an installed library
22901
# when we should be linking with a yet-to-be-installed one
22902
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22903
test "$hardcode_minus_L_GCJ" != no; then
22904
# Linking always hardcodes the temporary library directory.
22905
hardcode_action_GCJ=relink
22907
# We can link without hardcoding, and we can hardcode nonexisting dirs.
22908
hardcode_action_GCJ=immediate
22911
# We cannot hardcode anything, or else we can only hardcode existing
22913
hardcode_action_GCJ=unsupported
22915
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22916
$as_echo "$hardcode_action_GCJ" >&6; }
22918
if test "$hardcode_action_GCJ" = relink; then
22919
# Fast installation is not supported
22920
enable_fast_install=no
22921
elif test "$shlibpath_overrides_runpath" = yes ||
22922
test "$enable_shared" = no; then
22923
# Fast installation is not necessary
22924
enable_fast_install=needless
22928
# The else clause should only fire when bootstrapping the
22929
# libtool distribution, otherwise you forgot to ship ltmain.sh
22930
# with your package, and you will get complaints that there are
22931
# no rules to generate ltmain.sh.
22932
if test -f "$ltmain"; then
22933
# See if we are running on zsh, and set the options which allow our commands through
22934
# without removal of \ escapes.
22935
if test -n "${ZSH_VERSION+set}" ; then
22936
setopt NO_GLOB_SUBST
22938
# Now quote all the things that may contain metacharacters while being
22939
# careful not to overquote the AC_SUBSTed values. We take copies of the
22940
# variables and quote the copies for generation of the libtool script.
22941
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
22943
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22944
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22945
deplibs_check_method reload_flag reload_cmds need_locks \
22946
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22947
lt_cv_sys_global_symbol_to_c_name_address \
22948
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22949
old_postinstall_cmds old_postuninstall_cmds \
22953
lt_prog_compiler_wl_GCJ \
22954
lt_prog_compiler_pic_GCJ \
22955
lt_prog_compiler_static_GCJ \
22956
lt_prog_compiler_no_builtin_flag_GCJ \
22957
export_dynamic_flag_spec_GCJ \
22958
thread_safe_flag_spec_GCJ \
22959
whole_archive_flag_spec_GCJ \
22960
enable_shared_with_static_runtimes_GCJ \
22961
old_archive_cmds_GCJ \
22962
old_archive_from_new_cmds_GCJ \
22963
predep_objects_GCJ \
22964
postdep_objects_GCJ \
22967
compiler_lib_search_path_GCJ \
22968
compiler_lib_search_dirs_GCJ \
22970
archive_expsym_cmds_GCJ \
22971
postinstall_cmds_GCJ \
22972
postuninstall_cmds_GCJ \
22973
old_archive_from_expsyms_cmds_GCJ \
22974
allow_undefined_flag_GCJ \
22975
no_undefined_flag_GCJ \
22976
export_symbols_cmds_GCJ \
22977
hardcode_libdir_flag_spec_GCJ \
22978
hardcode_libdir_flag_spec_ld_GCJ \
22979
hardcode_libdir_separator_GCJ \
22980
hardcode_automatic_GCJ \
22982
module_expsym_cmds_GCJ \
22983
lt_cv_prog_compiler_c_o_GCJ \
22984
fix_srcfile_path_GCJ \
22985
exclude_expsyms_GCJ \
22986
include_expsyms_GCJ; do
22989
old_archive_cmds_GCJ | \
22990
old_archive_from_new_cmds_GCJ | \
22991
archive_cmds_GCJ | \
22992
archive_expsym_cmds_GCJ | \
22993
module_cmds_GCJ | \
22994
module_expsym_cmds_GCJ | \
22995
old_archive_from_expsyms_cmds_GCJ | \
22996
export_symbols_cmds_GCJ | \
22997
extract_expsyms_cmds | reload_cmds | finish_cmds | \
22998
postinstall_cmds | postuninstall_cmds | \
22999
old_postinstall_cmds | old_postuninstall_cmds | \
23000
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23001
# Double-quote double-evaled strings.
23002
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23005
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23011
*'\$0 --fallback-echo"')
23012
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23018
cat <<__EOF__ >> "$cfgfile"
23019
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23021
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23023
# Shell to use when invoking shell scripts.
23026
# Whether or not to build shared libraries.
23027
build_libtool_libs=$enable_shared
23029
# Whether or not to build static libraries.
23030
build_old_libs=$enable_static
23032
# Whether or not to add -lc for building shared libraries.
23033
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23035
# Whether or not to disallow shared libs when runtime libs are static
23036
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23038
# Whether or not to optimize for fast installation.
23039
fast_install=$enable_fast_install
23042
host_alias=$host_alias
23046
# The build system.
23047
build_alias=$build_alias
23051
# An echo program that does not interpret backslashes.
23056
AR_FLAGS=$lt_AR_FLAGS
23061
# LTCC compiler flags.
23062
LTCFLAGS=$lt_LTCFLAGS
23064
# A language-specific compiler.
23065
CC=$lt_compiler_GCJ
23067
# Is the compiler the GNU C compiler?
23073
# The linker used to build libraries.
23076
# Whether we need hard or soft links.
23079
# A BSD-compatible nm program.
23082
# A symbol stripping program
23085
# Used to examine libraries when file_magic_cmd begins "file"
23086
MAGIC_CMD=$MAGIC_CMD
23088
# Used on cygwin: DLL creation program.
23091
# Used on cygwin: object dumper.
23094
# Used on cygwin: assembler.
23097
# The name of the directory that contains temporary libtool files.
23100
# How to create reloadable object files.
23101
reload_flag=$lt_reload_flag
23102
reload_cmds=$lt_reload_cmds
23104
# How to pass a linker flag through the compiler.
23105
wl=$lt_lt_prog_compiler_wl_GCJ
23107
# Object file suffix (normally "o").
23108
objext="$ac_objext"
23110
# Old archive suffix (normally "a").
23113
# Shared library suffix (normally ".so").
23114
shrext_cmds='$shrext_cmds'
23116
# Executable file suffix (normally "").
23119
# Additional compiler flags for building library objects.
23120
pic_flag=$lt_lt_prog_compiler_pic_GCJ
23123
# What is the maximum length of a command?
23124
max_cmd_len=$lt_cv_sys_max_cmd_len
23126
# Does compiler simultaneously support -c and -o options?
23127
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23129
# Must we lock files when doing compilation?
23130
need_locks=$lt_need_locks
23132
# Do we need the lib prefix for modules?
23133
need_lib_prefix=$need_lib_prefix
23135
# Do we need a version for libraries?
23136
need_version=$need_version
23138
# Whether dlopen is supported.
23139
dlopen_support=$enable_dlopen
23141
# Whether dlopen of programs is supported.
23142
dlopen_self=$enable_dlopen_self
23144
# Whether dlopen of statically linked programs is supported.
23145
dlopen_self_static=$enable_dlopen_self_static
23147
# Compiler flag to prevent dynamic linking.
23148
link_static_flag=$lt_lt_prog_compiler_static_GCJ
23150
# Compiler flag to turn off builtin functions.
23151
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23153
# Compiler flag to allow reflexive dlopens.
23154
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23156
# Compiler flag to generate shared objects directly from archives.
23157
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23159
# Compiler flag to generate thread-safe objects.
23160
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23162
# Library versioning type.
23163
version_type=$version_type
23165
# Format of library name prefix.
23166
libname_spec=$lt_libname_spec
23168
# List of archive names. First name is the real one, the rest are links.
23169
# The last name is the one that the linker finds with -lNAME.
23170
library_names_spec=$lt_library_names_spec
23172
# The coded name of the library, if different from the real name.
23173
soname_spec=$lt_soname_spec
23175
# Commands used to build and install an old-style archive.
23177
old_archive_cmds=$lt_old_archive_cmds_GCJ
23178
old_postinstall_cmds=$lt_old_postinstall_cmds
23179
old_postuninstall_cmds=$lt_old_postuninstall_cmds
23181
# Create an old-style archive from a shared archive.
23182
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23184
# Create a temporary old-style archive to link instead of a shared archive.
23185
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23187
# Commands used to build and install a shared archive.
23188
archive_cmds=$lt_archive_cmds_GCJ
23189
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23190
postinstall_cmds=$lt_postinstall_cmds
23191
postuninstall_cmds=$lt_postuninstall_cmds
23193
# Commands used to build a loadable module (assumed same as above if empty)
23194
module_cmds=$lt_module_cmds_GCJ
23195
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23197
# Commands to strip libraries.
23198
old_striplib=$lt_old_striplib
23199
striplib=$lt_striplib
23201
# Dependencies to place before the objects being linked to create a
23203
predep_objects=$lt_predep_objects_GCJ
23205
# Dependencies to place after the objects being linked to create a
23207
postdep_objects=$lt_postdep_objects_GCJ
23209
# Dependencies to place before the objects being linked to create a
23211
predeps=$lt_predeps_GCJ
23213
# Dependencies to place after the objects being linked to create a
23215
postdeps=$lt_postdeps_GCJ
23217
# The directories searched by this compiler when creating a shared
23219
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
23221
# The library search path used internally by the compiler when linking
23222
# a shared library.
23223
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
23225
# Method to check whether dependent libraries are shared objects.
23226
deplibs_check_method=$lt_deplibs_check_method
23228
# Command to use when deplibs_check_method == file_magic.
23229
file_magic_cmd=$lt_file_magic_cmd
23231
# Flag that allows shared libraries with undefined symbols to be built.
23232
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
23234
# Flag that forces no undefined symbols.
23235
no_undefined_flag=$lt_no_undefined_flag_GCJ
23237
# Commands used to finish a libtool library installation in a directory.
23238
finish_cmds=$lt_finish_cmds
23240
# Same as above, but a single script fragment to be evaled but not shown.
23241
finish_eval=$lt_finish_eval
23243
# Take the output of nm and produce a listing of raw symbols and C names.
23244
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23246
# Transform the output of nm in a proper C declaration
23247
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23249
# Transform the output of nm in a C name address pair
23250
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23252
# This is the shared library runtime path variable.
23253
runpath_var=$runpath_var
23255
# This is the shared library path variable.
23256
shlibpath_var=$shlibpath_var
23258
# Is shlibpath searched before the hard-coded library search path?
23259
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23261
# How to hardcode a shared library path into an executable.
23262
hardcode_action=$hardcode_action_GCJ
23264
# Whether we should hardcode library paths into libraries.
23265
hardcode_into_libs=$hardcode_into_libs
23267
# Flag to hardcode \$libdir into a binary during linking.
23268
# This must work even if \$libdir does not exist.
23269
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
23271
# If ld is used when linking, flag to hardcode \$libdir into
23272
# a binary during linking. This must work even if \$libdir does
23274
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
23276
# Whether we need a single -rpath flag with a separated argument.
23277
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
23279
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23280
# resulting binary.
23281
hardcode_direct=$hardcode_direct_GCJ
23283
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23284
# resulting binary.
23285
hardcode_minus_L=$hardcode_minus_L_GCJ
23287
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23288
# the resulting binary.
23289
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
23291
# Set to yes if building a shared library automatically hardcodes DIR into the library
23292
# and all subsequent libraries and executables linked against it.
23293
hardcode_automatic=$hardcode_automatic_GCJ
23295
# Variables whose values should be saved in libtool wrapper scripts and
23296
# restored at relink time.
23297
variables_saved_for_relink="$variables_saved_for_relink"
23299
# Whether libtool must link a program against all its dependency libraries.
23300
link_all_deplibs=$link_all_deplibs_GCJ
23302
# Compile-time system search path for libraries
23303
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23305
# Run-time system search path for libraries
23306
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23308
# Fix the shell variable \$srcfile for the compiler.
23309
fix_srcfile_path=$lt_fix_srcfile_path
23311
# Set to yes if exported symbols are required.
23312
always_export_symbols=$always_export_symbols_GCJ
23314
# The commands to list exported symbols.
23315
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
23317
# The commands to extract the exported symbol list from a shared archive.
23318
extract_expsyms_cmds=$lt_extract_expsyms_cmds
23320
# Symbols that should not be listed in the preloaded symbols.
23321
exclude_expsyms=$lt_exclude_expsyms_GCJ
23323
# Symbols that must always be exported.
23324
include_expsyms=$lt_include_expsyms_GCJ
23326
# ### END LIBTOOL TAG CONFIG: $tagname
23332
# If there is no Makefile yet, we rely on a make rule to execute
23333
# `config.status --recheck' to rerun these tests and create the
23334
# libtool script then.
23335
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23336
if test -f "$ltmain_in"; then
23337
test -f Makefile && make "$ltmain"
23343
ac_cpp='$CPP $CPPFLAGS'
23344
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23345
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23346
ac_compiler_gnu=$ac_cv_c_compiler_gnu
23358
# Source file extension for RC test sources.
23361
# Object file extension for compiled RC test sources.
23365
# Code to be used in simple compile tests
23366
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
23368
# Code to be used in simple link tests
23369
lt_simple_link_test_code="$lt_simple_compile_test_code"
23371
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23373
# If no C compiler was specified, use CC.
23376
# If no C compiler flags were specified, use CFLAGS.
23377
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23379
# Allow CC to be a program name with arguments.
23383
# save warnings/boilerplate of simple test code
23384
ac_outfile=conftest.$ac_objext
23385
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
23386
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23387
_lt_compiler_boilerplate=`cat conftest.err`
23390
ac_outfile=conftest.$ac_objext
23391
echo "$lt_simple_link_test_code" >conftest.$ac_ext
23392
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23393
_lt_linker_boilerplate=`cat conftest.err`
23397
# Allow CC to be a program name with arguments.
23402
for cc_temp in $compiler""; do
23404
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23405
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23410
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23412
lt_cv_prog_compiler_c_o_RC=yes
23414
# The else clause should only fire when bootstrapping the
23415
# libtool distribution, otherwise you forgot to ship ltmain.sh
23416
# with your package, and you will get complaints that there are
23417
# no rules to generate ltmain.sh.
23418
if test -f "$ltmain"; then
23419
# See if we are running on zsh, and set the options which allow our commands through
23420
# without removal of \ escapes.
23421
if test -n "${ZSH_VERSION+set}" ; then
23422
setopt NO_GLOB_SUBST
23424
# Now quote all the things that may contain metacharacters while being
23425
# careful not to overquote the AC_SUBSTed values. We take copies of the
23426
# variables and quote the copies for generation of the libtool script.
23427
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23429
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23430
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23431
deplibs_check_method reload_flag reload_cmds need_locks \
23432
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23433
lt_cv_sys_global_symbol_to_c_name_address \
23434
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23435
old_postinstall_cmds old_postuninstall_cmds \
23439
lt_prog_compiler_wl_RC \
23440
lt_prog_compiler_pic_RC \
23441
lt_prog_compiler_static_RC \
23442
lt_prog_compiler_no_builtin_flag_RC \
23443
export_dynamic_flag_spec_RC \
23444
thread_safe_flag_spec_RC \
23445
whole_archive_flag_spec_RC \
23446
enable_shared_with_static_runtimes_RC \
23447
old_archive_cmds_RC \
23448
old_archive_from_new_cmds_RC \
23449
predep_objects_RC \
23450
postdep_objects_RC \
23453
compiler_lib_search_path_RC \
23454
compiler_lib_search_dirs_RC \
23456
archive_expsym_cmds_RC \
23457
postinstall_cmds_RC \
23458
postuninstall_cmds_RC \
23459
old_archive_from_expsyms_cmds_RC \
23460
allow_undefined_flag_RC \
23461
no_undefined_flag_RC \
23462
export_symbols_cmds_RC \
23463
hardcode_libdir_flag_spec_RC \
23464
hardcode_libdir_flag_spec_ld_RC \
23465
hardcode_libdir_separator_RC \
23466
hardcode_automatic_RC \
23468
module_expsym_cmds_RC \
23469
lt_cv_prog_compiler_c_o_RC \
23470
fix_srcfile_path_RC \
23471
exclude_expsyms_RC \
23472
include_expsyms_RC; do
23475
old_archive_cmds_RC | \
23476
old_archive_from_new_cmds_RC | \
23477
archive_cmds_RC | \
23478
archive_expsym_cmds_RC | \
23480
module_expsym_cmds_RC | \
23481
old_archive_from_expsyms_cmds_RC | \
23482
export_symbols_cmds_RC | \
23483
extract_expsyms_cmds | reload_cmds | finish_cmds | \
23484
postinstall_cmds | postuninstall_cmds | \
23485
old_postinstall_cmds | old_postuninstall_cmds | \
23486
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23487
# Double-quote double-evaled strings.
23488
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23491
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23497
*'\$0 --fallback-echo"')
23498
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23504
cat <<__EOF__ >> "$cfgfile"
23505
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23507
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23509
# Shell to use when invoking shell scripts.
23512
# Whether or not to build shared libraries.
23513
build_libtool_libs=$enable_shared
23515
# Whether or not to build static libraries.
23516
build_old_libs=$enable_static
23518
# Whether or not to add -lc for building shared libraries.
23519
build_libtool_need_lc=$archive_cmds_need_lc_RC
23521
# Whether or not to disallow shared libs when runtime libs are static
23522
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
23524
# Whether or not to optimize for fast installation.
23525
fast_install=$enable_fast_install
23528
host_alias=$host_alias
23532
# The build system.
23533
build_alias=$build_alias
23537
# An echo program that does not interpret backslashes.
23542
AR_FLAGS=$lt_AR_FLAGS
23547
# LTCC compiler flags.
23548
LTCFLAGS=$lt_LTCFLAGS
23550
# A language-specific compiler.
23553
# Is the compiler the GNU C compiler?
23559
# The linker used to build libraries.
23562
# Whether we need hard or soft links.
23565
# A BSD-compatible nm program.
23568
# A symbol stripping program
23571
# Used to examine libraries when file_magic_cmd begins "file"
23572
MAGIC_CMD=$MAGIC_CMD
23574
# Used on cygwin: DLL creation program.
23577
# Used on cygwin: object dumper.
23580
# Used on cygwin: assembler.
23583
# The name of the directory that contains temporary libtool files.
23586
# How to create reloadable object files.
23587
reload_flag=$lt_reload_flag
23588
reload_cmds=$lt_reload_cmds
23590
# How to pass a linker flag through the compiler.
23591
wl=$lt_lt_prog_compiler_wl_RC
23593
# Object file suffix (normally "o").
23594
objext="$ac_objext"
23596
# Old archive suffix (normally "a").
23599
# Shared library suffix (normally ".so").
23600
shrext_cmds='$shrext_cmds'
23602
# Executable file suffix (normally "").
23605
# Additional compiler flags for building library objects.
23606
pic_flag=$lt_lt_prog_compiler_pic_RC
23609
# What is the maximum length of a command?
23610
max_cmd_len=$lt_cv_sys_max_cmd_len
23612
# Does compiler simultaneously support -c and -o options?
23613
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
23615
# Must we lock files when doing compilation?
23616
need_locks=$lt_need_locks
23618
# Do we need the lib prefix for modules?
23619
need_lib_prefix=$need_lib_prefix
23621
# Do we need a version for libraries?
23622
need_version=$need_version
23624
# Whether dlopen is supported.
23625
dlopen_support=$enable_dlopen
23627
# Whether dlopen of programs is supported.
23628
dlopen_self=$enable_dlopen_self
23630
# Whether dlopen of statically linked programs is supported.
23631
dlopen_self_static=$enable_dlopen_self_static
23633
# Compiler flag to prevent dynamic linking.
23634
link_static_flag=$lt_lt_prog_compiler_static_RC
23636
# Compiler flag to turn off builtin functions.
23637
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
23639
# Compiler flag to allow reflexive dlopens.
23640
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
23642
# Compiler flag to generate shared objects directly from archives.
23643
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
23645
# Compiler flag to generate thread-safe objects.
23646
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
23648
# Library versioning type.
23649
version_type=$version_type
23651
# Format of library name prefix.
23652
libname_spec=$lt_libname_spec
23654
# List of archive names. First name is the real one, the rest are links.
23655
# The last name is the one that the linker finds with -lNAME.
23656
library_names_spec=$lt_library_names_spec
23658
# The coded name of the library, if different from the real name.
23659
soname_spec=$lt_soname_spec
23661
# Commands used to build and install an old-style archive.
23663
old_archive_cmds=$lt_old_archive_cmds_RC
23664
old_postinstall_cmds=$lt_old_postinstall_cmds
23665
old_postuninstall_cmds=$lt_old_postuninstall_cmds
23667
# Create an old-style archive from a shared archive.
23668
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
23670
# Create a temporary old-style archive to link instead of a shared archive.
23671
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
23673
# Commands used to build and install a shared archive.
23674
archive_cmds=$lt_archive_cmds_RC
23675
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
23676
postinstall_cmds=$lt_postinstall_cmds
23677
postuninstall_cmds=$lt_postuninstall_cmds
23679
# Commands used to build a loadable module (assumed same as above if empty)
23680
module_cmds=$lt_module_cmds_RC
23681
module_expsym_cmds=$lt_module_expsym_cmds_RC
23683
# Commands to strip libraries.
23684
old_striplib=$lt_old_striplib
23685
striplib=$lt_striplib
23687
# Dependencies to place before the objects being linked to create a
23689
predep_objects=$lt_predep_objects_RC
23691
# Dependencies to place after the objects being linked to create a
23693
postdep_objects=$lt_postdep_objects_RC
23695
# Dependencies to place before the objects being linked to create a
23697
predeps=$lt_predeps_RC
23699
# Dependencies to place after the objects being linked to create a
23701
postdeps=$lt_postdeps_RC
23703
# The directories searched by this compiler when creating a shared
23705
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
23707
# The library search path used internally by the compiler when linking
23708
# a shared library.
23709
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
23711
# Method to check whether dependent libraries are shared objects.
23712
deplibs_check_method=$lt_deplibs_check_method
23714
# Command to use when deplibs_check_method == file_magic.
23715
file_magic_cmd=$lt_file_magic_cmd
23717
# Flag that allows shared libraries with undefined symbols to be built.
23718
allow_undefined_flag=$lt_allow_undefined_flag_RC
23720
# Flag that forces no undefined symbols.
23721
no_undefined_flag=$lt_no_undefined_flag_RC
23723
# Commands used to finish a libtool library installation in a directory.
23724
finish_cmds=$lt_finish_cmds
23726
# Same as above, but a single script fragment to be evaled but not shown.
23727
finish_eval=$lt_finish_eval
23729
# Take the output of nm and produce a listing of raw symbols and C names.
23730
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23732
# Transform the output of nm in a proper C declaration
23733
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23735
# Transform the output of nm in a C name address pair
23736
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23738
# This is the shared library runtime path variable.
23739
runpath_var=$runpath_var
23741
# This is the shared library path variable.
23742
shlibpath_var=$shlibpath_var
23744
# Is shlibpath searched before the hard-coded library search path?
23745
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23747
# How to hardcode a shared library path into an executable.
23748
hardcode_action=$hardcode_action_RC
23750
# Whether we should hardcode library paths into libraries.
23751
hardcode_into_libs=$hardcode_into_libs
23753
# Flag to hardcode \$libdir into a binary during linking.
23754
# This must work even if \$libdir does not exist.
23755
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
23757
# If ld is used when linking, flag to hardcode \$libdir into
23758
# a binary during linking. This must work even if \$libdir does
23760
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
23762
# Whether we need a single -rpath flag with a separated argument.
23763
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
23765
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23766
# resulting binary.
23767
hardcode_direct=$hardcode_direct_RC
23769
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23770
# resulting binary.
23771
hardcode_minus_L=$hardcode_minus_L_RC
23773
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23774
# the resulting binary.
23775
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
23777
# Set to yes if building a shared library automatically hardcodes DIR into the library
23778
# and all subsequent libraries and executables linked against it.
23779
hardcode_automatic=$hardcode_automatic_RC
23781
# Variables whose values should be saved in libtool wrapper scripts and
23782
# restored at relink time.
23783
variables_saved_for_relink="$variables_saved_for_relink"
23785
# Whether libtool must link a program against all its dependency libraries.
23786
link_all_deplibs=$link_all_deplibs_RC
23788
# Compile-time system search path for libraries
23789
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23791
# Run-time system search path for libraries
23792
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23794
# Fix the shell variable \$srcfile for the compiler.
23795
fix_srcfile_path=$lt_fix_srcfile_path
23797
# Set to yes if exported symbols are required.
23798
always_export_symbols=$always_export_symbols_RC
23800
# The commands to list exported symbols.
23801
export_symbols_cmds=$lt_export_symbols_cmds_RC
23803
# The commands to extract the exported symbol list from a shared archive.
23804
extract_expsyms_cmds=$lt_extract_expsyms_cmds
23806
# Symbols that should not be listed in the preloaded symbols.
23807
exclude_expsyms=$lt_exclude_expsyms_RC
23809
# Symbols that must always be exported.
23810
include_expsyms=$lt_include_expsyms_RC
23812
# ### END LIBTOOL TAG CONFIG: $tagname
23818
# If there is no Makefile yet, we rely on a make rule to execute
23819
# `config.status --recheck' to rerun these tests and create the
23820
# libtool script then.
23821
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23822
if test -f "$ltmain_in"; then
23823
test -f Makefile && make "$ltmain"
23829
ac_cpp='$CPP $CPPFLAGS'
23830
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23831
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23832
ac_compiler_gnu=$ac_cv_c_compiler_gnu
23839
{ { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
23840
$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
23841
{ (exit 1); exit 1; }; }
23845
# Append the new tag name to the list of available tags.
23846
if test -n "$tagname" ; then
23847
available_tags="$available_tags $tagname"
23853
# Now substitute the updated list of available tags.
23854
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
23855
mv "${ofile}T" "$ofile"
23859
{ { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
23860
$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
23861
{ (exit 1); exit 1; }; }
23867
# This can be used to rebuild libtool when needed
23868
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
23870
# Always use our own libtool.
23871
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
23873
# Prevent multiple expansion
14954
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14955
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
14956
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14957
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14958
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14959
{ $as_echo "$as_me:$LINENO: result: yes" >&5
14960
$as_echo "yes" >&6; }
14962
# FIXME - insert some real tests, host_os isn't really good enough
14965
if test -n "$STRIP" ; then
14966
striplib="$STRIP -x"
14967
old_striplib="$STRIP -S"
14968
{ $as_echo "$as_me:$LINENO: result: yes" >&5
14969
$as_echo "yes" >&6; }
14971
{ $as_echo "$as_me:$LINENO: result: no" >&5
14972
$as_echo "no" >&6; }
14976
{ $as_echo "$as_me:$LINENO: result: no" >&5
14977
$as_echo "no" >&6; }
14993
# Report which library types will actually be built
14994
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14995
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14996
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14997
$as_echo "$can_build_shared" >&6; }
14999
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15000
$as_echo_n "checking whether to build shared libraries... " >&6; }
15001
test "$can_build_shared" = "no" && enable_shared=no
15003
# On AIX, shared libraries and static libraries use the same namespace, and
15004
# are all built from PIC.
15007
test "$enable_shared" = yes && enable_static=no
15008
if test -n "$RANLIB"; then
15009
archive_cmds="$archive_cmds~\$RANLIB \$lib"
15010
postinstall_cmds='$RANLIB $lib'
15015
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15016
test "$enable_shared" = yes && enable_static=no
15020
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
15021
$as_echo "$enable_shared" >&6; }
15023
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15024
$as_echo_n "checking whether to build static libraries... " >&6; }
15025
# Make sure either enable_shared or enable_static is yes.
15026
test "$enable_shared" = yes || enable_static=yes
15027
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
15028
$as_echo "$enable_static" >&6; }
15035
ac_cpp='$CPP $CPPFLAGS'
15036
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15037
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15038
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15054
ac_config_commands="$ac_config_commands libtool"
15059
# Only expand once: