17694
# Report which library types will actually be built
17695
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17696
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17697
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
17698
$as_echo "$can_build_shared" >&6; }
17700
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17701
$as_echo_n "checking whether to build shared libraries... " >&6; }
17702
test "$can_build_shared" = "no" && enable_shared=no
17704
# On AIX, shared libraries and static libraries use the same namespace, and
17705
# are all built from PIC.
17708
test "$enable_shared" = yes && enable_static=no
17709
if test -n "$RANLIB"; then
17710
archive_cmds="$archive_cmds~\$RANLIB \$lib"
17711
postinstall_cmds='$RANLIB $lib'
17716
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17717
test "$enable_shared" = yes && enable_static=no
17721
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
17722
$as_echo "$enable_shared" >&6; }
17724
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17725
$as_echo_n "checking whether to build static libraries... " >&6; }
17726
# Make sure either enable_shared or enable_static is yes.
17727
test "$enable_shared" = yes || enable_static=yes
17728
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
17729
$as_echo "$enable_static" >&6; }
17731
# The else clause should only fire when bootstrapping the
17732
# libtool distribution, otherwise you forgot to ship ltmain.sh
17733
# with your package, and you will get complaints that there are
17734
# no rules to generate ltmain.sh.
17735
if test -f "$ltmain"; then
17736
# See if we are running on zsh, and set the options which allow our commands through
17737
# without removal of \ escapes.
17738
if test -n "${ZSH_VERSION+set}" ; then
17739
setopt NO_GLOB_SUBST
17741
# Now quote all the things that may contain metacharacters while being
17742
# careful not to overquote the AC_SUBSTed values. We take copies of the
17743
# variables and quote the copies for generation of the libtool script.
17744
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17746
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17747
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17748
deplibs_check_method reload_flag reload_cmds need_locks \
17749
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17750
lt_cv_sys_global_symbol_to_c_name_address \
17751
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17752
old_postinstall_cmds old_postuninstall_cmds \
17756
lt_prog_compiler_wl \
17757
lt_prog_compiler_pic \
17758
lt_prog_compiler_static \
17759
lt_prog_compiler_no_builtin_flag \
17760
export_dynamic_flag_spec \
17761
thread_safe_flag_spec \
17762
whole_archive_flag_spec \
17763
enable_shared_with_static_runtimes \
17765
old_archive_from_new_cmds \
17770
compiler_lib_search_path \
17771
compiler_lib_search_dirs \
17773
archive_expsym_cmds \
17775
postuninstall_cmds \
17776
old_archive_from_expsyms_cmds \
17777
allow_undefined_flag \
17778
no_undefined_flag \
17779
export_symbols_cmds \
17780
hardcode_libdir_flag_spec \
17781
hardcode_libdir_flag_spec_ld \
17782
hardcode_libdir_separator \
17783
hardcode_automatic \
17785
module_expsym_cmds \
17786
lt_cv_prog_compiler_c_o \
17789
include_expsyms; do
17792
old_archive_cmds | \
17793
old_archive_from_new_cmds | \
17795
archive_expsym_cmds | \
17797
module_expsym_cmds | \
17798
old_archive_from_expsyms_cmds | \
17799
export_symbols_cmds | \
17800
extract_expsyms_cmds | reload_cmds | finish_cmds | \
17801
postinstall_cmds | postuninstall_cmds | \
17802
old_postinstall_cmds | old_postuninstall_cmds | \
17803
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17804
# Double-quote double-evaled strings.
17805
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17808
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17814
*'\$0 --fallback-echo"')
17815
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17819
cfgfile="${ofile}T"
17820
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17822
{ $as_echo "$as_me:$LINENO: creating $ofile" >&5
17823
$as_echo "$as_me: creating $ofile" >&6;}
17825
cat <<__EOF__ >> "$cfgfile"
17828
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17829
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17830
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17832
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
17833
# Free Software Foundation, Inc.
17835
# This file is part of GNU Libtool:
17836
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17838
# This program is free software; you can redistribute it and/or modify
17839
# it under the terms of the GNU General Public License as published by
17840
# the Free Software Foundation; either version 2 of the License, or
17841
# (at your option) any later version.
17843
# This program is distributed in the hope that it will be useful, but
17844
# WITHOUT ANY WARRANTY; without even the implied warranty of
17845
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17846
# General Public License for more details.
17848
# You should have received a copy of the GNU General Public License
17849
# along with this program; if not, write to the Free Software
17850
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17852
# As a special exception to the GNU General Public License, if you
17853
# distribute this file as part of a program that contains a
17854
# configuration script generated by Autoconf, you may include it under
17855
# the same distribution terms that you use for the rest of that program.
17857
# A sed program that does not truncate output.
17860
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17861
Xsed="$SED -e 1s/^X//"
17863
# The HP-UX ksh and POSIX shell print the target directory to stdout
17864
# if CDPATH is set.
17865
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17867
# The names of the tagged configurations supported by this script.
17870
# ### BEGIN LIBTOOL CONFIG
17872
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17874
# Shell to use when invoking shell scripts.
17877
# Whether or not to build shared libraries.
17878
build_libtool_libs=$enable_shared
17880
# Whether or not to build static libraries.
17881
build_old_libs=$enable_static
17883
# Whether or not to add -lc for building shared libraries.
17884
build_libtool_need_lc=$archive_cmds_need_lc
17886
# Whether or not to disallow shared libs when runtime libs are static
17887
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17889
# Whether or not to optimize for fast installation.
17890
fast_install=$enable_fast_install
17893
host_alias=$host_alias
17897
# The build system.
17898
build_alias=$build_alias
17902
# An echo program that does not interpret backslashes.
17907
AR_FLAGS=$lt_AR_FLAGS
17912
# LTCC compiler flags.
17913
LTCFLAGS=$lt_LTCFLAGS
17915
# A language-specific compiler.
17918
# Is the compiler the GNU C compiler?
17924
# The linker used to build libraries.
17927
# Whether we need hard or soft links.
17930
# A BSD-compatible nm program.
17933
# A symbol stripping program
17936
# Used to examine libraries when file_magic_cmd begins "file"
17937
MAGIC_CMD=$MAGIC_CMD
17939
# Used on cygwin: DLL creation program.
17942
# Used on cygwin: object dumper.
17945
# Used on cygwin: assembler.
17948
# The name of the directory that contains temporary libtool files.
17951
# How to create reloadable object files.
17952
reload_flag=$lt_reload_flag
17953
reload_cmds=$lt_reload_cmds
17955
# How to pass a linker flag through the compiler.
17956
wl=$lt_lt_prog_compiler_wl
17958
# Object file suffix (normally "o").
17959
objext="$ac_objext"
17961
# Old archive suffix (normally "a").
17964
# Shared library suffix (normally ".so").
17965
shrext_cmds='$shrext_cmds'
17967
# Executable file suffix (normally "").
17970
# Additional compiler flags for building library objects.
17971
pic_flag=$lt_lt_prog_compiler_pic
17974
# What is the maximum length of a command?
17975
max_cmd_len=$lt_cv_sys_max_cmd_len
17977
# Does compiler simultaneously support -c and -o options?
17978
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17980
# Must we lock files when doing compilation?
17981
need_locks=$lt_need_locks
17983
# Do we need the lib prefix for modules?
17984
need_lib_prefix=$need_lib_prefix
17986
# Do we need a version for libraries?
17987
need_version=$need_version
17989
# Whether dlopen is supported.
17990
dlopen_support=$enable_dlopen
17992
# Whether dlopen of programs is supported.
17993
dlopen_self=$enable_dlopen_self
17995
# Whether dlopen of statically linked programs is supported.
17996
dlopen_self_static=$enable_dlopen_self_static
17998
# Compiler flag to prevent dynamic linking.
17999
link_static_flag=$lt_lt_prog_compiler_static
18001
# Compiler flag to turn off builtin functions.
18002
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18004
# Compiler flag to allow reflexive dlopens.
18005
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18007
# Compiler flag to generate shared objects directly from archives.
18008
whole_archive_flag_spec=$lt_whole_archive_flag_spec
18010
# Compiler flag to generate thread-safe objects.
18011
thread_safe_flag_spec=$lt_thread_safe_flag_spec
18013
# Library versioning type.
18014
version_type=$version_type
18016
# Format of library name prefix.
18017
libname_spec=$lt_libname_spec
18019
# List of archive names. First name is the real one, the rest are links.
18020
# The last name is the one that the linker finds with -lNAME.
18021
library_names_spec=$lt_library_names_spec
18023
# The coded name of the library, if different from the real name.
18024
soname_spec=$lt_soname_spec
18026
# Commands used to build and install an old-style archive.
18028
old_archive_cmds=$lt_old_archive_cmds
18029
old_postinstall_cmds=$lt_old_postinstall_cmds
18030
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18032
# Create an old-style archive from a shared archive.
18033
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18035
# Create a temporary old-style archive to link instead of a shared archive.
18036
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18038
# Commands used to build and install a shared archive.
18039
archive_cmds=$lt_archive_cmds
18040
archive_expsym_cmds=$lt_archive_expsym_cmds
18041
postinstall_cmds=$lt_postinstall_cmds
18042
postuninstall_cmds=$lt_postuninstall_cmds
18044
# Commands used to build a loadable module (assumed same as above if empty)
18045
module_cmds=$lt_module_cmds
18046
module_expsym_cmds=$lt_module_expsym_cmds
18048
# Commands to strip libraries.
18049
old_striplib=$lt_old_striplib
18050
striplib=$lt_striplib
18052
# Dependencies to place before the objects being linked to create a
18054
predep_objects=$lt_predep_objects
18056
# Dependencies to place after the objects being linked to create a
18058
postdep_objects=$lt_postdep_objects
18060
# Dependencies to place before the objects being linked to create a
18062
predeps=$lt_predeps
18064
# Dependencies to place after the objects being linked to create a
18066
postdeps=$lt_postdeps
18068
# The directories searched by this compiler when creating a shared
18070
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18072
# The library search path used internally by the compiler when linking
18073
# a shared library.
18074
compiler_lib_search_path=$lt_compiler_lib_search_path
18076
# Method to check whether dependent libraries are shared objects.
18077
deplibs_check_method=$lt_deplibs_check_method
18079
# Command to use when deplibs_check_method == file_magic.
18080
file_magic_cmd=$lt_file_magic_cmd
18082
# Flag that allows shared libraries with undefined symbols to be built.
18083
allow_undefined_flag=$lt_allow_undefined_flag
18085
# Flag that forces no undefined symbols.
18086
no_undefined_flag=$lt_no_undefined_flag
18088
# Commands used to finish a libtool library installation in a directory.
18089
finish_cmds=$lt_finish_cmds
18091
# Same as above, but a single script fragment to be evaled but not shown.
18092
finish_eval=$lt_finish_eval
18094
# Take the output of nm and produce a listing of raw symbols and C names.
18095
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18097
# Transform the output of nm in a proper C declaration
18098
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18100
# Transform the output of nm in a C name address pair
18101
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18103
# This is the shared library runtime path variable.
18104
runpath_var=$runpath_var
18106
# This is the shared library path variable.
18107
shlibpath_var=$shlibpath_var
18109
# Is shlibpath searched before the hard-coded library search path?
18110
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18112
# How to hardcode a shared library path into an executable.
18113
hardcode_action=$hardcode_action
18115
# Whether we should hardcode library paths into libraries.
18116
hardcode_into_libs=$hardcode_into_libs
18118
# Flag to hardcode \$libdir into a binary during linking.
18119
# This must work even if \$libdir does not exist.
18120
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18122
# If ld is used when linking, flag to hardcode \$libdir into
18123
# a binary during linking. This must work even if \$libdir does
18125
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18127
# Whether we need a single -rpath flag with a separated argument.
18128
hardcode_libdir_separator=$lt_hardcode_libdir_separator
18130
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18131
# resulting binary.
18132
hardcode_direct=$hardcode_direct
18134
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18135
# resulting binary.
18136
hardcode_minus_L=$hardcode_minus_L
18138
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18139
# the resulting binary.
18140
hardcode_shlibpath_var=$hardcode_shlibpath_var
18142
# Set to yes if building a shared library automatically hardcodes DIR into the library
18143
# and all subsequent libraries and executables linked against it.
18144
hardcode_automatic=$hardcode_automatic
18146
# Variables whose values should be saved in libtool wrapper scripts and
18147
# restored at relink time.
18148
variables_saved_for_relink="$variables_saved_for_relink"
18150
# Whether libtool must link a program against all its dependency libraries.
18151
link_all_deplibs=$link_all_deplibs
18153
# Compile-time system search path for libraries
18154
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18156
# Run-time system search path for libraries
18157
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18159
# Fix the shell variable \$srcfile for the compiler.
18160
fix_srcfile_path=$lt_fix_srcfile_path
18162
# Set to yes if exported symbols are required.
18163
always_export_symbols=$always_export_symbols
18165
# The commands to list exported symbols.
18166
export_symbols_cmds=$lt_export_symbols_cmds
18168
# The commands to extract the exported symbol list from a shared archive.
18169
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18171
# Symbols that should not be listed in the preloaded symbols.
18172
exclude_expsyms=$lt_exclude_expsyms
18174
# Symbols that must always be exported.
18175
include_expsyms=$lt_include_expsyms
18177
# ### END LIBTOOL CONFIG
18184
cat <<\EOF >> "$cfgfile"
18186
# AIX sometimes has problems with the GCC collect2 program. For some
18187
# reason, if we set the COLLECT_NAMES environment variable, the problems
18188
# vanish in a puff of smoke.
18189
if test "X${COLLECT_NAMES+set}" != Xset; then
18191
export COLLECT_NAMES
18197
# We use sed instead of cat because bash on DJGPP gets confused if
18198
# if finds mixed CR/LF and LF-only lines. Since sed operates in
18199
# text mode, it properly converts lines to CR/LF. This bash problem
18200
# is reportedly fixed, but why not run on old versions too?
18201
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18203
mv -f "$cfgfile" "$ofile" || \
18204
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18208
# If there is no Makefile yet, we rely on a make rule to execute
18209
# `config.status --recheck' to rerun these tests and create the
18210
# libtool script then.
18211
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18212
if test -f "$ltmain_in"; then
18213
test -f Makefile && make "$ltmain"
18219
ac_cpp='$CPP $CPPFLAGS'
18220
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18221
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18222
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18227
# Check whether --with-tags was given.
18228
if test "${with_tags+set}" = set; then
18229
withval=$with_tags; tagnames="$withval"
18233
if test -f "$ltmain" && test -n "$tagnames"; then
18234
if test ! -f "${ofile}"; then
18235
{ $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18236
$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18239
if test -z "$LTCC"; then
18240
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18241
if test -z "$LTCC"; then
18242
{ $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18243
$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18245
{ $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18246
$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18249
if test -z "$LTCFLAGS"; then
18250
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18253
# Extract list of available tagged configurations in $ofile.
18254
# Note that this assumes the entire list is on one line.
18255
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18257
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18258
for tagname in $tagnames; do
18260
# Check whether tagname contains only valid characters
18261
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18263
*) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18264
$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
18265
{ (exit 1); exit 1; }; }
18269
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18271
{ { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18272
$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18273
{ (exit 1); exit 1; }; }
18276
# Update the list of available tags.
18277
if test -n "$tagname"; then
18278
echo appending configuration tag \"$tagname\" to $ofile
18282
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18283
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18284
(test "X$CXX" != "Xg++"))) ; then
18286
ac_cpp='$CXXCPP $CPPFLAGS'
18287
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18288
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18289
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18294
archive_cmds_need_lc_CXX=no
18295
allow_undefined_flag_CXX=
18296
always_export_symbols_CXX=no
18297
archive_expsym_cmds_CXX=
18298
export_dynamic_flag_spec_CXX=
18299
hardcode_direct_CXX=no
18300
hardcode_libdir_flag_spec_CXX=
18301
hardcode_libdir_flag_spec_ld_CXX=
18302
hardcode_libdir_separator_CXX=
18303
hardcode_minus_L_CXX=no
18304
hardcode_shlibpath_var_CXX=unsupported
18305
hardcode_automatic_CXX=no
18307
module_expsym_cmds_CXX=
18308
link_all_deplibs_CXX=unknown
18309
old_archive_cmds_CXX=$old_archive_cmds
18310
no_undefined_flag_CXX=
18311
whole_archive_flag_spec_CXX=
18312
enable_shared_with_static_runtimes_CXX=no
18314
# Dependencies to place before and after the object being linked:
18315
predep_objects_CXX=
18316
postdep_objects_CXX=
18319
compiler_lib_search_path_CXX=
18320
compiler_lib_search_dirs_CXX=
18322
# Source file extension for C++ test sources.
18325
# Object file extension for compiled C++ test sources.
18329
# Code to be used in simple compile tests
18330
lt_simple_compile_test_code="int some_variable = 0;"
18332
# Code to be used in simple link tests
18333
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18335
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18337
# If no C compiler was specified, use CC.
18340
# If no C compiler flags were specified, use CFLAGS.
18341
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18343
# Allow CC to be a program name with arguments.
18347
# save warnings/boilerplate of simple test code
18348
ac_outfile=conftest.$ac_objext
18349
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18350
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18351
_lt_compiler_boilerplate=`cat conftest.err`
18354
ac_outfile=conftest.$ac_objext
18355
echo "$lt_simple_link_test_code" >conftest.$ac_ext
18356
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18357
_lt_linker_boilerplate=`cat conftest.err`
18361
# Allow CC to be a program name with arguments.
18366
lt_save_with_gnu_ld=$with_gnu_ld
18367
lt_save_path_LD=$lt_cv_path_LD
18368
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18369
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18371
$as_unset lt_cv_prog_gnu_ld
18373
if test -n "${lt_cv_path_LDCXX+set}"; then
18374
lt_cv_path_LD=$lt_cv_path_LDCXX
18376
$as_unset lt_cv_path_LD
18378
test -z "${LDCXX+set}" || LD=$LDCXX
18382
for cc_temp in $compiler""; do
18384
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18385
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18390
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18393
# We don't want -fno-exception wen compiling C++ code, so set the
18394
# no_builtin_flag separately
18395
if test "$GXX" = yes; then
18396
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18398
lt_prog_compiler_no_builtin_flag_CXX=
18401
if test "$GXX" = yes; then
18402
# Set up default GNU C++ configuration
18405
# Check whether --with-gnu-ld was given.
18406
if test "${with_gnu_ld+set}" = set; then
18407
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18413
if test "$GCC" = yes; then
18414
# Check if gcc -print-prog-name=ld gives a path.
18415
{ $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18416
$as_echo_n "checking for ld used by $CC... " >&6; }
18419
# gcc leaves a trailing carriage return which upsets mingw
18420
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18422
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18425
# Accept absolute paths.
18427
re_direlt='/[^/][^/]*/\.\./'
18428
# Canonicalize the pathname of ld
18429
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18430
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18431
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18433
test -z "$LD" && LD="$ac_prog"
18436
# If it fails, then pretend we aren't using GCC.
18440
# If it is relative, then search for the first ld in PATH.
18441
with_gnu_ld=unknown
18444
elif test "$with_gnu_ld" = yes; then
18445
{ $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
18446
$as_echo_n "checking for GNU ld... " >&6; }
18448
{ $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18449
$as_echo_n "checking for non-GNU ld... " >&6; }
18451
if test "${lt_cv_path_LD+set}" = set; then
18452
$as_echo_n "(cached) " >&6
18454
if test -z "$LD"; then
18455
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18456
for ac_dir in $PATH; do
18458
test -z "$ac_dir" && ac_dir=.
18459
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18460
lt_cv_path_LD="$ac_dir/$ac_prog"
18461
# Check to see if the program is GNU ld. I'd rather use --version,
18462
# but apparently some variants of GNU ld only accept -v.
18463
# Break only if it was the GNU/non-GNU ld that we prefer.
18464
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18465
*GNU* | *'with BFD'*)
18466
test "$with_gnu_ld" != no && break
18469
test "$with_gnu_ld" != yes && break
18476
lt_cv_path_LD="$LD" # Let the user override the test with a path.
18480
LD="$lt_cv_path_LD"
18481
if test -n "$LD"; then
18482
{ $as_echo "$as_me:$LINENO: result: $LD" >&5
18483
$as_echo "$LD" >&6; }
18485
{ $as_echo "$as_me:$LINENO: result: no" >&5
18486
$as_echo "no" >&6; }
18488
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18489
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18490
{ (exit 1); exit 1; }; }
18491
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18492
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18493
if test "${lt_cv_prog_gnu_ld+set}" = set; then
18494
$as_echo_n "(cached) " >&6
18496
# I'd rather use --version here, but apparently some GNU lds only accept -v.
18497
case `$LD -v 2>&1 </dev/null` in
18498
*GNU* | *'with BFD'*)
18499
lt_cv_prog_gnu_ld=yes
18502
lt_cv_prog_gnu_ld=no
18506
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18507
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
18508
with_gnu_ld=$lt_cv_prog_gnu_ld
18512
# Check if GNU C++ uses GNU ld as the underlying linker, since the
18513
# archiving commands below assume that GNU ld is being used.
18514
if test "$with_gnu_ld" = yes; then
18515
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18516
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'
18518
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18519
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18521
# If archive_cmds runs LD, not CC, wlarc should be empty
18522
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18523
# investigate it a little bit more. (MM)
18526
# ancient GNU ld didn't support --whole-archive et. al.
18527
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18528
grep 'no-whole-archive' > /dev/null; then
18529
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18531
whole_archive_flag_spec_CXX=
18537
# A generic and very simple default shared library creation
18538
# command for GNU C++ for the case where it uses the native
18539
# linker, instead of GNU ld. If possible, this setting should
18540
# overridden to take advantage of the native linker features on
18541
# the platform it is being used on.
18542
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18545
# Commands to make compiler produce verbose output that lists
18546
# what "hidden" libraries, object files and flags are used when
18547
# linking a shared library.
18548
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18556
# PORTME: fill in a description of your system's C++ link characteristics
18557
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18558
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18562
# FIXME: insert proper C++ library support
18566
if test "$host_cpu" = ia64; then
18567
# On IA64, the linker does run time linking by default, so we don't
18568
# have to do anything special.
18569
aix_use_runtimelinking=no
18570
exp_sym_flag='-Bexport'
18573
aix_use_runtimelinking=no
18575
# Test if we are trying to use run time linking or normal
18576
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
18577
# need to do runtime linking.
18578
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18579
for ld_flag in $LDFLAGS; do
18582
aix_use_runtimelinking=yes
18590
exp_sym_flag='-bexport'
18591
no_entry_flag='-bnoentry'
18594
# When large executables or shared objects are built, AIX ld can
18595
# have problems creating the table of contents. If linking a library
18596
# or program results in "error TOC overflow" add -mminimal-toc to
18597
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18598
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18600
archive_cmds_CXX=''
18601
hardcode_direct_CXX=yes
18602
hardcode_libdir_separator_CXX=':'
18603
link_all_deplibs_CXX=yes
18605
if test "$GXX" = yes; then
18606
case $host_os in aix4.[012]|aix4.[012].*)
18607
# We only want to do this on AIX 4.2 and lower, the check
18608
# below for broken collect2 doesn't work under 4.3+
18609
collect2name=`${CC} -print-prog-name=collect2`
18610
if test -f "$collect2name" && \
18611
strings "$collect2name" | grep resolve_lib_name >/dev/null
18613
# We have reworked collect2
18616
# We have old collect2
18617
hardcode_direct_CXX=unsupported
18618
# It fails to find uninstalled libraries when the uninstalled
18619
# path is not listed in the libpath. Setting hardcode_minus_L
18620
# to unsupported forces relinking
18621
hardcode_minus_L_CXX=yes
18622
hardcode_libdir_flag_spec_CXX='-L$libdir'
18623
hardcode_libdir_separator_CXX=
18627
shared_flag='-shared'
18628
if test "$aix_use_runtimelinking" = yes; then
18629
shared_flag="$shared_flag "'${wl}-G'
18633
if test "$host_cpu" = ia64; then
18634
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18635
# chokes on -Wl,-G. The following line is correct:
18638
if test "$aix_use_runtimelinking" = yes; then
18639
shared_flag='${wl}-G'
18641
shared_flag='${wl}-bM:SRE'
18646
# It seems that -bexpall does not export symbols beginning with
18647
# underscore (_), so it is better to generate a list of symbols to export.
18648
always_export_symbols_CXX=yes
18649
if test "$aix_use_runtimelinking" = yes; then
18650
# Warning - without using the other runtime loading flags (-brtl),
18651
# -berok will link without error, but may produce a broken library.
18652
allow_undefined_flag_CXX='-berok'
18653
# Determine the default libpath from the value encoded in an empty executable.
18654
cat >conftest.$ac_ext <<_ACEOF
18657
cat confdefs.h >>conftest.$ac_ext
18658
cat >>conftest.$ac_ext <<_ACEOF
18659
/* end confdefs.h. */
18669
rm -f conftest.$ac_objext conftest$ac_exeext
18670
if { (ac_try="$ac_link"
18671
case "(($ac_try" in
18672
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18673
*) ac_try_echo=$ac_try;;
18675
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18676
$as_echo "$ac_try_echo") >&5
18677
(eval "$ac_link") 2>conftest.er1
18679
grep -v '^ *+' conftest.er1 >conftest.err
18681
cat conftest.err >&5
18682
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18683
(exit $ac_status); } && {
18684
test -z "$ac_cxx_werror_flag" ||
18685
test ! -s conftest.err
18686
} && test -s conftest$ac_exeext && {
18687
test "$cross_compiling" = yes ||
18688
$as_test_x conftest$ac_exeext
18691
lt_aix_libpath_sed='
18692
/Import File Strings/,/^$/ {
18698
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18699
# Check for a 64-bit object if we didn't find anything.
18700
if test -z "$aix_libpath"; then
18701
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18704
$as_echo "$as_me: failed program was:" >&5
18705
sed 's/^/| /' conftest.$ac_ext >&5
18710
rm -rf conftest.dSYM
18711
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18712
conftest$ac_exeext conftest.$ac_ext
18713
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18715
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18717
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"
18719
if test "$host_cpu" = ia64; then
18720
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18721
allow_undefined_flag_CXX="-z nodefs"
18722
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"
18724
# Determine the default libpath from the value encoded in an empty executable.
18725
cat >conftest.$ac_ext <<_ACEOF
18728
cat confdefs.h >>conftest.$ac_ext
18729
cat >>conftest.$ac_ext <<_ACEOF
18730
/* end confdefs.h. */
18740
rm -f conftest.$ac_objext conftest$ac_exeext
18741
if { (ac_try="$ac_link"
18742
case "(($ac_try" in
18743
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18744
*) ac_try_echo=$ac_try;;
18746
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18747
$as_echo "$ac_try_echo") >&5
18748
(eval "$ac_link") 2>conftest.er1
18750
grep -v '^ *+' conftest.er1 >conftest.err
18752
cat conftest.err >&5
18753
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18754
(exit $ac_status); } && {
18755
test -z "$ac_cxx_werror_flag" ||
18756
test ! -s conftest.err
18757
} && test -s conftest$ac_exeext && {
18758
test "$cross_compiling" = yes ||
18759
$as_test_x conftest$ac_exeext
18762
lt_aix_libpath_sed='
18763
/Import File Strings/,/^$/ {
18769
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18770
# Check for a 64-bit object if we didn't find anything.
18771
if test -z "$aix_libpath"; then
18772
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18775
$as_echo "$as_me: failed program was:" >&5
18776
sed 's/^/| /' conftest.$ac_ext >&5
18781
rm -rf conftest.dSYM
18782
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18783
conftest$ac_exeext conftest.$ac_ext
18784
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18786
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18787
# Warning - without using the other run time loading flags,
18788
# -berok will link without error, but may produce a broken library.
18789
no_undefined_flag_CXX=' ${wl}-bernotok'
18790
allow_undefined_flag_CXX=' ${wl}-berok'
18791
# Exported symbols can be pulled into shared objects from archives
18792
whole_archive_flag_spec_CXX='$convenience'
18793
archive_cmds_need_lc_CXX=yes
18794
# This is similar to how AIX traditionally builds its shared libraries.
18795
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'
18801
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18802
allow_undefined_flag_CXX=unsupported
18803
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18804
# support --undefined. This deserves some investigation. FIXME
18805
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18812
case $cc_basename in
18814
# FIXME: insert proper C++ library support
18820
cygwin* | mingw* | pw32*)
18821
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18822
# as there is no search path for DLLs.
18823
hardcode_libdir_flag_spec_CXX='-L$libdir'
18824
allow_undefined_flag_CXX=unsupported
18825
always_export_symbols_CXX=no
18826
enable_shared_with_static_runtimes_CXX=yes
18828
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18829
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'
18830
# If the export-symbols file already is a .def file (1st line
18831
# is EXPORTS), use it as is; otherwise, prepend...
18832
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18833
cp $export_symbols $output_objdir/$soname.def;
18835
echo EXPORTS > $output_objdir/$soname.def;
18836
cat $export_symbols >> $output_objdir/$soname.def;
18838
$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'
18843
darwin* | rhapsody*)
18844
archive_cmds_need_lc_CXX=no
18845
hardcode_direct_CXX=no
18846
hardcode_automatic_CXX=yes
18847
hardcode_shlibpath_var_CXX=unsupported
18848
whole_archive_flag_spec_CXX=''
18849
link_all_deplibs_CXX=yes
18850
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18851
if test "$GXX" = yes ; then
18852
output_verbose_link_cmd='echo'
18853
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}"
18854
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18855
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}"
18856
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}"
18857
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18858
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}"
18859
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}"
18862
case $cc_basename in
18864
output_verbose_link_cmd='echo'
18865
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'
18866
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18867
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18868
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}'
18869
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}'
18879
case $cc_basename in
18881
# FIXME: insert proper C++ library support
18885
# Green Hills C++ Compiler
18886
# FIXME: insert proper C++ library support
18890
# FIXME: insert proper C++ library support
18896
# C++ shared libraries reported to be fairly broken before switch to ELF
18900
archive_cmds_need_lc_CXX=no
18902
freebsd* | dragonfly*)
18903
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18910
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18911
hardcode_libdir_separator_CXX=:
18912
export_dynamic_flag_spec_CXX='${wl}-E'
18913
hardcode_direct_CXX=yes
18914
hardcode_minus_L_CXX=yes # Not in the search PATH,
18915
# but as the default
18916
# location of the library.
18918
case $cc_basename in
18920
# FIXME: insert proper C++ library support
18924
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'
18925
# Commands to make compiler produce verbose output that lists
18926
# what "hidden" libraries, object files and flags are used when
18927
# linking a shared library.
18929
# There doesn't appear to be a way to prevent this compiler from
18930
# explicitly linking system object files so we need to strip them
18931
# from the output so that they don't get included in the library
18933
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'
18936
if test "$GXX" = yes; then
18937
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'
18939
# FIXME: insert proper C++ library support
18946
if test $with_gnu_ld = no; then
18947
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18948
hardcode_libdir_separator_CXX=:
18953
export_dynamic_flag_spec_CXX='${wl}-E'
18959
hardcode_direct_CXX=no
18960
hardcode_shlibpath_var_CXX=no
18963
hardcode_direct_CXX=yes
18964
hardcode_minus_L_CXX=yes # Not in the search PATH,
18965
# but as the default
18966
# location of the library.
18970
case $cc_basename in
18972
# FIXME: insert proper C++ library support
18978
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18981
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18984
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18987
# Commands to make compiler produce verbose output that lists
18988
# what "hidden" libraries, object files and flags are used when
18989
# linking a shared library.
18991
# There doesn't appear to be a way to prevent this compiler from
18992
# explicitly linking system object files so we need to strip them
18993
# from the output so that they don't get included in the library
18995
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'
18998
if test "$GXX" = yes; then
18999
if test $with_gnu_ld = no; then
19002
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19005
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19008
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'
19013
# FIXME: insert proper C++ library support
19020
hardcode_direct_CXX=no
19021
hardcode_shlibpath_var_CXX=no
19022
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19023
export_dynamic_flag_spec_CXX='${wl}-E'
19024
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19025
# Instead, shared libraries are loaded at an image base (0x10000000 by
19026
# default) and relocated if they conflict, which is a slow very memory
19027
# consuming and fragmenting process. To avoid this, we pick a random,
19028
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19029
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
19030
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'
19031
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'
19034
case $cc_basename in
19037
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'
19039
# Archives containing C++ object files must be created using
19040
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
19041
# necessary to make sure instantiated templates are included
19043
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19046
if test "$GXX" = yes; then
19047
if test "$with_gnu_ld" = no; then
19048
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'
19050
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'
19053
link_all_deplibs_CXX=yes
19056
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19057
hardcode_libdir_separator_CXX=:
19059
linux* | k*bsd*-gnu)
19060
case $cc_basename in
19062
# Kuck and Associates, Inc. (KAI) C++ Compiler
19064
# KCC will only create a shared library if the output file
19065
# ends with ".so" (or ".sl" for HP-UX), so rename the library
19066
# to its proper name (with version) after linking.
19067
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'
19068
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'
19069
# Commands to make compiler produce verbose output that lists
19070
# what "hidden" libraries, object files and flags are used when
19071
# linking a shared library.
19073
# There doesn't appear to be a way to prevent this compiler from
19074
# explicitly linking system object files so we need to strip them
19075
# from the output so that they don't get included in the library
19077
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'
19079
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19080
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19082
# Archives containing C++ object files must be created using
19083
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
19084
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19089
# version 8.0 and above of icpc choke on multiply defined symbols
19090
# if we add $predep_objects and $postdep_objects, however 7.1 and
19091
# earlier do not add the objects themselves.
19092
case `$CC -V 2>&1` in
19094
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19095
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'
19097
*) # Version 8.0 or newer
19100
ia64*) tmp_idyn=' -i_dynamic';;
19102
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19103
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'
19106
archive_cmds_need_lc_CXX=no
19107
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19108
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19109
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19112
# Portland Group C++ compiler
19113
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19114
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'
19116
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19117
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19118
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'
19122
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19123
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'
19125
runpath_var=LD_RUN_PATH
19126
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19127
hardcode_libdir_separator_CXX=:
19129
# Commands to make compiler produce verbose output that lists
19130
# what "hidden" libraries, object files and flags are used when
19131
# linking a shared library.
19133
# There doesn't appear to be a way to prevent this compiler from
19134
# explicitly linking system object files so we need to strip them
19135
# from the output so that they don't get included in the library
19137
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'
19140
case `$CC -V 2>&1 | sed 5q` in
19143
no_undefined_flag_CXX=' -zdefs'
19144
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19145
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'
19146
hardcode_libdir_flag_spec_CXX='-R$libdir'
19147
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'
19149
# Not sure whether something based on
19150
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19152
output_verbose_link_cmd='echo'
19154
# Archives containing C++ object files must be created using
19155
# "CC -xar", where "CC" is the Sun C++ compiler. This is
19156
# necessary to make sure instantiated templates are included
19158
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19165
# FIXME: insert proper C++ library support
19169
# FIXME: insert proper C++ library support
19173
case $cc_basename in
19175
# FIXME: insert proper C++ library support
19179
# FIXME: insert proper C++ library support
19184
netbsd* | netbsdelf*-gnu)
19185
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19186
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19188
hardcode_libdir_flag_spec_CXX='-R$libdir'
19189
hardcode_direct_CXX=yes
19190
hardcode_shlibpath_var_CXX=no
19192
# Workaround some broken pre-1.5 toolchains
19193
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19196
# C++ shared libraries are fairly broken
19200
if test -f /usr/libexec/ld.so; then
19201
hardcode_direct_CXX=yes
19202
hardcode_shlibpath_var_CXX=no
19203
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19204
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19205
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19206
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19207
export_dynamic_flag_spec_CXX='${wl}-E'
19208
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19210
output_verbose_link_cmd='echo'
19216
case $cc_basename in
19218
# Kuck and Associates, Inc. (KAI) C++ Compiler
19220
# KCC will only create a shared library if the output file
19221
# ends with ".so" (or ".sl" for HP-UX), so rename the library
19222
# to its proper name (with version) after linking.
19223
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'
19225
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19226
hardcode_libdir_separator_CXX=:
19228
# Archives containing C++ object files must be created using
19229
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
19230
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19234
# Rational C++ 2.4.1
19235
# FIXME: insert proper C++ library support
19239
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19240
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'
19242
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19243
hardcode_libdir_separator_CXX=:
19245
# Commands to make compiler produce verbose output that lists
19246
# what "hidden" libraries, object files and flags are used when
19247
# linking a shared library.
19249
# There doesn't appear to be a way to prevent this compiler from
19250
# explicitly linking system object files so we need to strip them
19251
# from the output so that they don't get included in the library
19253
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'
19256
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19257
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19258
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'
19260
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19261
hardcode_libdir_separator_CXX=:
19263
# Commands to make compiler produce verbose output that lists
19264
# what "hidden" libraries, object files and flags are used when
19265
# linking a shared library.
19266
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19269
# FIXME: insert proper C++ library support
19276
case $cc_basename in
19278
# Kuck and Associates, Inc. (KAI) C++ Compiler
19280
# KCC will only create a shared library if the output file
19281
# ends with ".so" (or ".sl" for HP-UX), so rename the library
19282
# to its proper name (with version) after linking.
19283
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'
19285
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19286
hardcode_libdir_separator_CXX=:
19288
# Archives containing C++ object files must be created using
19289
# the KAI C++ compiler.
19290
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19293
# Rational C++ 2.4.1
19294
# FIXME: insert proper C++ library support
19298
allow_undefined_flag_CXX=' -expect_unresolved \*'
19299
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'
19300
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19301
echo "-hidden">> $lib.exp~
19302
$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~
19305
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19306
hardcode_libdir_separator_CXX=:
19308
# Commands to make compiler produce verbose output that lists
19309
# what "hidden" libraries, object files and flags are used when
19310
# linking a shared library.
19312
# There doesn't appear to be a way to prevent this compiler from
19313
# explicitly linking system object files so we need to strip them
19314
# from the output so that they don't get included in the library
19316
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'
19319
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19320
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19321
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'
19323
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19324
hardcode_libdir_separator_CXX=:
19326
# Commands to make compiler produce verbose output that lists
19327
# what "hidden" libraries, object files and flags are used when
19328
# linking a shared library.
19329
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19332
# FIXME: insert proper C++ library support
19339
# FIXME: insert proper C++ library support
19343
case $cc_basename in
19346
# FIXME: insert proper C++ library support
19351
# FIXME: insert proper C++ library support
19355
# FIXME: insert proper C++ library support
19361
case $cc_basename in
19363
# Sun C++ 4.2, 5.x and Centerline C++
19364
archive_cmds_need_lc_CXX=yes
19365
no_undefined_flag_CXX=' -zdefs'
19366
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19367
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19368
$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'
19370
hardcode_libdir_flag_spec_CXX='-R$libdir'
19371
hardcode_shlibpath_var_CXX=no
19373
solaris2.[0-5] | solaris2.[0-5].*) ;;
19375
# The compiler driver will combine and reorder linker options,
19376
# but understands `-z linker_flag'.
19377
# Supported since Solaris 2.6 (maybe 2.5.1?)
19378
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19381
link_all_deplibs_CXX=yes
19383
output_verbose_link_cmd='echo'
19385
# Archives containing C++ object files must be created using
19386
# "CC -xar", where "CC" is the Sun C++ compiler. This is
19387
# necessary to make sure instantiated templates are included
19389
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19392
# Green Hills C++ Compiler
19393
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19395
# The C++ compiler must be used to create the archive.
19396
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19399
# GNU C++ compiler with Solaris linker
19400
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19401
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19402
if $CC --version | grep -v '^2\.7' > /dev/null; then
19403
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19404
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19405
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19407
# Commands to make compiler produce verbose output that lists
19408
# what "hidden" libraries, object files and flags are used when
19409
# linking a shared library.
19410
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19412
# g++ 2.7 appears to require `-G' NOT `-shared' on this
19414
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19415
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19416
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19418
# Commands to make compiler produce verbose output that lists
19419
# what "hidden" libraries, object files and flags are used when
19420
# linking a shared library.
19421
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19424
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19426
solaris2.[0-5] | solaris2.[0-5].*) ;;
19428
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19435
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19436
no_undefined_flag_CXX='${wl}-z,text'
19437
archive_cmds_need_lc_CXX=no
19438
hardcode_shlibpath_var_CXX=no
19439
runpath_var='LD_RUN_PATH'
19441
case $cc_basename in
19443
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19444
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19447
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19448
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19452
sysv5* | sco3.2v5* | sco5v6*)
19453
# Note: We can NOT use -z defs as we might desire, because we do not
19454
# link with -lc, and that would cause any symbols used from libc to
19455
# always be unresolved, which means just about no library would
19456
# ever link correctly. If we're not using GNU ld we use -z text
19457
# though, which does catch some bad symbols but isn't as heavy-handed
19459
# For security reasons, it is highly recommended that you always
19460
# use absolute paths for naming shared libraries, and exclude the
19461
# DT_RUNPATH tag from executables and libraries. But doing so
19462
# requires that you compile everything twice, which is a pain.
19463
# So that behaviour is only enabled if SCOABSPATH is set to a
19464
# non-empty value in the environment. Most likely only useful for
19465
# creating official distributions of packages.
19466
# This is a hack until libtool officially supports absolute path
19467
# names for shared libraries.
19468
no_undefined_flag_CXX='${wl}-z,text'
19469
allow_undefined_flag_CXX='${wl}-z,nodefs'
19470
archive_cmds_need_lc_CXX=no
19471
hardcode_shlibpath_var_CXX=no
19472
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19473
hardcode_libdir_separator_CXX=':'
19474
link_all_deplibs_CXX=yes
19475
export_dynamic_flag_spec_CXX='${wl}-Bexport'
19476
runpath_var='LD_RUN_PATH'
19478
case $cc_basename in
19480
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19481
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19484
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19485
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19490
case $cc_basename in
19492
# NonStop-UX NCC 3.20
19493
# FIXME: insert proper C++ library support
19497
# FIXME: insert proper C++ library support
19503
# FIXME: insert proper C++ library support
19507
# FIXME: insert proper C++ library support
19511
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19512
$as_echo "$ld_shlibs_CXX" >&6; }
19513
test "$ld_shlibs_CXX" = no && can_build_shared=no
19518
cat > conftest.$ac_ext <<EOF
19522
Foo (void) { a = 0; }
19528
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19529
(eval $ac_compile) 2>&5
19531
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19532
(exit $ac_status); }; then
19533
# Parse the compiler output and extract the necessary
19534
# objects, libraries and library flags.
19536
# Sentinel used to keep track of whether or not we are before
19537
# the conftest object file.
19538
pre_test_object_deps_done=no
19540
# The `*' in the case matches for architectures that use `case' in
19541
# $output_verbose_cmd can trigger glob expansion during the loop
19542
# eval without this substitution.
19543
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19545
for p in `eval $output_verbose_link_cmd`; do
19549
# Some compilers place space between "-{L,R}" and the path.
19550
# Remove the space.
19551
if test $p = "-L" \
19552
|| test $p = "-R"; then
19559
if test "$pre_test_object_deps_done" = no; then
19562
# Internal compiler library paths should come after those
19563
# provided the user. The postdeps already come after the
19564
# user supplied libs so there is no need to process them.
19565
if test -z "$compiler_lib_search_path_CXX"; then
19566
compiler_lib_search_path_CXX="${prev}${p}"
19568
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19571
# The "-l" case would never come before the object being
19572
# linked, so don't bother handling this case.
19575
if test -z "$postdeps_CXX"; then
19576
postdeps_CXX="${prev}${p}"
19578
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19584
# This assumes that the test object file only shows up
19585
# once in the compiler output.
19586
if test "$p" = "conftest.$objext"; then
19587
pre_test_object_deps_done=yes
19591
if test "$pre_test_object_deps_done" = no; then
19592
if test -z "$predep_objects_CXX"; then
19593
predep_objects_CXX="$p"
19595
predep_objects_CXX="$predep_objects_CXX $p"
19598
if test -z "$postdep_objects_CXX"; then
19599
postdep_objects_CXX="$p"
19601
postdep_objects_CXX="$postdep_objects_CXX $p"
19606
*) ;; # Ignore the rest.
19614
echo "libtool.m4: error: problem compiling CXX test program"
19617
$rm -f confest.$objext
19619
compiler_lib_search_dirs_CXX=
19620
if test -n "$compiler_lib_search_path_CXX"; then
19621
compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19624
# PORTME: override above test on systems where it is broken
19627
# Interix 3.5 installs completely hosed .la files for C++, so rather than
19628
# hack all around it, let's just trust "g++" to DTRT.
19629
predep_objects_CXX=
19630
postdep_objects_CXX=
19635
case `$CC -V 2>&1 | sed 5q` in
19639
# The more standards-conforming stlport4 library is
19640
# incompatible with the Cstd library. Avoid specifying
19641
# it if it's in CXXFLAGS. Ignore libCrun as
19642
# -library=stlport4 depends on it.
19643
case " $CXX $CXXFLAGS " in
19644
*" -library=stlport4 "*)
19645
solaris_use_stlport4=yes
19648
if test "$solaris_use_stlport4" != yes; then
19649
postdeps_CXX='-library=Cstd -library=Crun'
19656
case $cc_basename in
19658
# The more standards-conforming stlport4 library is
19659
# incompatible with the Cstd library. Avoid specifying
19660
# it if it's in CXXFLAGS. Ignore libCrun as
19661
# -library=stlport4 depends on it.
19662
case " $CXX $CXXFLAGS " in
19663
*" -library=stlport4 "*)
19664
solaris_use_stlport4=yes
19668
# Adding this requires a known-good setup of shared libraries for
19669
# Sun compiler versions before 5.6, else PIC objects from an old
19670
# archive will be linked into the output, leading to subtle bugs.
19671
if test "$solaris_use_stlport4" != yes; then
19672
postdeps_CXX='-library=Cstd -library=Crun'
19679
case " $postdeps_CXX " in
19680
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19683
lt_prog_compiler_wl_CXX=
19684
lt_prog_compiler_pic_CXX=
19685
lt_prog_compiler_static_CXX=
19687
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19688
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19690
# C++ specific cases for pic, static, wl, etc.
19691
if test "$GXX" = yes; then
19692
lt_prog_compiler_wl_CXX='-Wl,'
19693
lt_prog_compiler_static_CXX='-static'
19697
# All AIX code is PIC.
19698
if test "$host_cpu" = ia64; then
19699
# AIX 5 now supports IA64 processor
19700
lt_prog_compiler_static_CXX='-Bstatic'
19704
# FIXME: we need at least 68020 code to build shared libraries, but
19705
# adding the `-m68020' flag to GCC prevents building anything better,
19707
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19709
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19710
# PIC is the default for these OSes.
19712
mingw* | cygwin* | os2* | pw32*)
19713
# This hack is so that the source file can tell whether it is being
19714
# built for inclusion in a dll (and should export symbols for example).
19715
# Although the cygwin gcc ignores -fPIC, still need this for old-style
19716
# (--disable-auto-import) libraries
19717
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19719
darwin* | rhapsody*)
19720
# PIC is the default on this platform
19721
# Common symbols not allowed in MH_DYLIB files
19722
lt_prog_compiler_pic_CXX='-fno-common'
19725
# DJGPP does not support shared libraries at all
19726
lt_prog_compiler_pic_CXX=
19729
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
19730
# Instead, we relocate shared libraries at runtime.
19733
if test -d /usr/nec; then
19734
lt_prog_compiler_pic_CXX=-Kconform_pic
19738
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19739
# not for PA HP-UX.
19744
lt_prog_compiler_pic_CXX='-fPIC'
19749
lt_prog_compiler_pic_CXX='-fPIC'
19755
# All AIX code is PIC.
19756
if test "$host_cpu" = ia64; then
19757
# AIX 5 now supports IA64 processor
19758
lt_prog_compiler_static_CXX='-Bstatic'
19760
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19764
case $cc_basename in
19766
# Green Hills C++ Compiler
19767
# _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"
19772
# PIC is the default on this platform
19773
# Common symbols not allowed in MH_DYLIB files
19774
case $cc_basename in
19776
lt_prog_compiler_pic_CXX='-qnocommon'
19777
lt_prog_compiler_wl_CXX='-Wl,'
19782
case $cc_basename in
19784
lt_prog_compiler_pic_CXX='-KPIC'
19787
# Green Hills C++ Compiler
19788
lt_prog_compiler_pic_CXX='-pic'
19794
freebsd* | dragonfly*)
19795
# FreeBSD uses GNU C++
19797
hpux9* | hpux10* | hpux11*)
19798
case $cc_basename in
19800
lt_prog_compiler_wl_CXX='-Wl,'
19801
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19802
if test "$host_cpu" != ia64; then
19803
lt_prog_compiler_pic_CXX='+Z'
19807
lt_prog_compiler_wl_CXX='-Wl,'
19808
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19814
lt_prog_compiler_pic_CXX='+Z'
19823
# This is c89, which is MS Visual C++ (no shared libs)
19824
# Anyone wants to do a port?
19826
irix5* | irix6* | nonstopux*)
19827
case $cc_basename in
19829
lt_prog_compiler_wl_CXX='-Wl,'
19830
lt_prog_compiler_static_CXX='-non_shared'
19831
# CC pic flag -KPIC is the default.
19837
linux* | k*bsd*-gnu)
19838
case $cc_basename in
19841
lt_prog_compiler_wl_CXX='--backend -Wl,'
19842
lt_prog_compiler_pic_CXX='-fPIC'
19846
lt_prog_compiler_wl_CXX='-Wl,'
19847
lt_prog_compiler_pic_CXX='-KPIC'
19848
lt_prog_compiler_static_CXX='-static'
19851
# Portland Group C++ compiler.
19852
lt_prog_compiler_wl_CXX='-Wl,'
19853
lt_prog_compiler_pic_CXX='-fpic'
19854
lt_prog_compiler_static_CXX='-Bstatic'
19858
# Make sure the PIC flag is empty. It appears that all Alpha
19859
# Linux and Compaq Tru64 Unix objects are PIC.
19860
lt_prog_compiler_pic_CXX=
19861
lt_prog_compiler_static_CXX='-non_shared'
19864
case `$CC -V 2>&1 | sed 5q` in
19867
lt_prog_compiler_pic_CXX='-KPIC'
19868
lt_prog_compiler_static_CXX='-Bstatic'
19869
lt_prog_compiler_wl_CXX='-Qoption ld '
19880
case $cc_basename in
19882
lt_prog_compiler_pic_CXX='-W c,exportall'
19888
netbsd* | netbsdelf*-gnu)
19890
osf3* | osf4* | osf5*)
19891
case $cc_basename in
19893
lt_prog_compiler_wl_CXX='--backend -Wl,'
19896
# Rational C++ 2.4.1
19897
lt_prog_compiler_pic_CXX='-pic'
19900
# Digital/Compaq C++
19901
lt_prog_compiler_wl_CXX='-Wl,'
19902
# Make sure the PIC flag is empty. It appears that all Alpha
19903
# Linux and Compaq Tru64 Unix objects are PIC.
19904
lt_prog_compiler_pic_CXX=
19905
lt_prog_compiler_static_CXX='-non_shared'
19914
case $cc_basename in
19916
# Sun C++ 4.2, 5.x and Centerline C++
19917
lt_prog_compiler_pic_CXX='-KPIC'
19918
lt_prog_compiler_static_CXX='-Bstatic'
19919
lt_prog_compiler_wl_CXX='-Qoption ld '
19922
# Green Hills C++ Compiler
19923
lt_prog_compiler_pic_CXX='-PIC'
19930
case $cc_basename in
19933
lt_prog_compiler_pic_CXX='-pic'
19934
lt_prog_compiler_static_CXX='-Bstatic'
19938
lt_prog_compiler_pic_CXX='-pic'
19945
case $cc_basename in
19947
# NonStop-UX NCC 3.20
19948
lt_prog_compiler_pic_CXX='-KPIC'
19954
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19955
case $cc_basename in
19957
lt_prog_compiler_wl_CXX='-Wl,'
19958
lt_prog_compiler_pic_CXX='-KPIC'
19959
lt_prog_compiler_static_CXX='-Bstatic'
19966
lt_prog_compiler_can_build_shared_CXX=no
19971
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19972
$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
19975
# Check to make sure the PIC flag actually works.
19977
if test -n "$lt_prog_compiler_pic_CXX"; then
19979
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19980
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19981
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
19982
$as_echo_n "(cached) " >&6
19984
lt_cv_prog_compiler_pic_works_CXX=no
19985
ac_outfile=conftest.$ac_objext
19986
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19987
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19988
# Insert the option either (1) after the last *FLAGS variable, or
19989
# (2) before a word containing "conftest.", or (3) at the end.
19990
# Note that $ac_compile itself does not contain backslashes and begins
19991
# with a dollar sign (not a hyphen), so the echo should work correctly.
19992
# The option is referenced via a variable to avoid confusing sed.
19993
lt_compile=`echo "$ac_compile" | $SED \
19994
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19995
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19996
-e 's:$: $lt_compiler_flag:'`
19997
(eval echo "\"\$as_me:19997: $lt_compile\"" >&5)
19998
(eval "$lt_compile" 2>conftest.err)
20000
cat conftest.err >&5
20001
echo "$as_me:20001: \$? = $ac_status" >&5
20002
if (exit $ac_status) && test -s "$ac_outfile"; then
20003
# The compiler can only warn and ignore the option if not recognized
20004
# So say no if there are warnings other than the usual output.
20005
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20006
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20007
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20008
lt_cv_prog_compiler_pic_works_CXX=yes
20014
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20015
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20017
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20018
case $lt_prog_compiler_pic_CXX in
20020
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20023
lt_prog_compiler_pic_CXX=
20024
lt_prog_compiler_can_build_shared_CXX=no
20029
# For platforms which do not support PIC, -DPIC is meaningless:
20031
lt_prog_compiler_pic_CXX=
20034
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20039
# Check to make sure the static flag actually works.
20041
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20042
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20043
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20044
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
20045
$as_echo_n "(cached) " >&6
20047
lt_cv_prog_compiler_static_works_CXX=no
20048
save_LDFLAGS="$LDFLAGS"
20049
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20050
echo "$lt_simple_link_test_code" > conftest.$ac_ext
20051
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20052
# The linker can only warn and ignore the option if not recognized
20053
# So say no if there are warnings
20054
if test -s conftest.err; then
20055
# Append any errors to the config.log.
20056
cat conftest.err 1>&5
20057
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20058
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20059
if diff conftest.exp conftest.er2 >/dev/null; then
20060
lt_cv_prog_compiler_static_works_CXX=yes
20063
lt_cv_prog_compiler_static_works_CXX=yes
20067
LDFLAGS="$save_LDFLAGS"
20070
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20071
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20073
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20076
lt_prog_compiler_static_CXX=
20080
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20081
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20082
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20083
$as_echo_n "(cached) " >&6
20085
lt_cv_prog_compiler_c_o_CXX=no
20086
$rm -r conftest 2>/dev/null
20090
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20092
lt_compiler_flag="-o out/conftest2.$ac_objext"
20093
# Insert the option either (1) after the last *FLAGS variable, or
20094
# (2) before a word containing "conftest.", or (3) at the end.
20095
# Note that $ac_compile itself does not contain backslashes and begins
20096
# with a dollar sign (not a hyphen), so the echo should work correctly.
20097
lt_compile=`echo "$ac_compile" | $SED \
20098
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20099
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20100
-e 's:$: $lt_compiler_flag:'`
20101
(eval echo "\"\$as_me:20101: $lt_compile\"" >&5)
20102
(eval "$lt_compile" 2>out/conftest.err)
20104
cat out/conftest.err >&5
20105
echo "$as_me:20105: \$? = $ac_status" >&5
20106
if (exit $ac_status) && test -s out/conftest2.$ac_objext
20108
# The compiler can only warn and ignore the option if not recognized
20109
# So say no if there are warnings
20110
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20111
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20112
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20113
lt_cv_prog_compiler_c_o_CXX=yes
20118
# SGI C++ compiler will create directory out/ii_files/ for
20119
# template instantiation
20120
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20121
$rm out/* && rmdir out
20127
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20128
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20131
hard_links="nottested"
20132
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20133
# do not overwrite the value of need_locks provided by the user
20134
{ $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20135
$as_echo_n "checking if we can lock with hard links... " >&6; }
20138
ln conftest.a conftest.b 2>/dev/null && hard_links=no
20140
ln conftest.a conftest.b 2>&5 || hard_links=no
20141
ln conftest.a conftest.b 2>/dev/null && hard_links=no
20142
{ $as_echo "$as_me:$LINENO: result: $hard_links" >&5
20143
$as_echo "$hard_links" >&6; }
20144
if test "$hard_links" = no; then
20145
{ $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20146
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20153
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20154
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20156
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20159
# If we're using GNU nm, then we don't want the "-C" option.
20160
# -C means demangle to AIX nm, but means don't demangle with GNU nm
20161
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20162
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'
20164
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'
20168
export_symbols_cmds_CXX="$ltdll_cmds"
20171
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'
20173
linux* | k*bsd*-gnu)
20174
link_all_deplibs_CXX=no
20177
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20180
exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20182
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20183
$as_echo "$ld_shlibs_CXX" >&6; }
20184
test "$ld_shlibs_CXX" = no && can_build_shared=no
20187
# Do we need to explicitly link libc?
20189
case "x$archive_cmds_need_lc_CXX" in
20191
# Assume -lc should be added
20192
archive_cmds_need_lc_CXX=yes
20194
if test "$enable_shared" = yes && test "$GCC" = yes; then
20195
case $archive_cmds_CXX in
20197
# FIXME: we may have to deal with multi-command sequences.
20200
# Test whether the compiler implicitly links with -lc since on some
20201
# systems, -lgcc has to come before -lc. If gcc already passes -lc
20202
# to ld, don't add -lc before -lgcc.
20203
{ $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20204
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20206
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20208
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20209
(eval $ac_compile) 2>&5
20211
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212
(exit $ac_status); } 2>conftest.err; then
20215
libobjs=conftest.$ac_objext
20217
wl=$lt_prog_compiler_wl_CXX
20218
pic_flag=$lt_prog_compiler_pic_CXX
20224
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20225
allow_undefined_flag_CXX=
20226
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20227
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20229
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230
(exit $ac_status); }
20232
archive_cmds_need_lc_CXX=no
20234
archive_cmds_need_lc_CXX=yes
20236
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20238
cat conftest.err 1>&5
20241
{ $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20242
$as_echo "$archive_cmds_need_lc_CXX" >&6; }
20249
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20250
$as_echo_n "checking dynamic linker characteristics... " >&6; }
20251
library_names_spec=
20252
libname_spec='lib$name'
20256
postuninstall_cmds=
20260
shlibpath_overrides_runpath=unknown
20262
dynamic_linker="$host_os ld.so"
20263
sys_lib_dlsearch_path_spec="/lib /usr/lib"
20265
need_lib_prefix=unknown
20266
hardcode_into_libs=no
20268
# when you set need_version to no, make sure it does not cause -set_version
20269
# flags to be left without arguments
20270
need_version=unknown
20275
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20276
shlibpath_var=LIBPATH
20278
# AIX 3 has no versioning support, so we append a major version to the name.
20279
soname_spec='${libname}${release}${shared_ext}$major'
20286
hardcode_into_libs=yes
20287
if test "$host_cpu" = ia64; then
20288
# AIX 5 supports IA64
20289
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20290
shlibpath_var=LD_LIBRARY_PATH
20292
# With GCC up to 2.95.x, collect2 would create an import file
20293
# for dependence libraries. The import file would start with
20294
# the line `#! .'. This would cause the generated library to
20295
# depend on `.', always an invalid library. This was fixed in
20296
# development snapshots of GCC prior to 3.0.
20298
aix4 | aix4.[01] | aix4.[01].*)
20299
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20301
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20304
can_build_shared=no
20308
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20309
# soname into executable. Probably we can add versioning support to
20310
# collect2, so additional links can be useful in future.
20311
if test "$aix_use_runtimelinking" = yes; then
20312
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
20313
# instead of lib<name>.a to let people know that these are not
20314
# typical AIX shared libraries.
20315
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20317
# We preserve .a as extension for shared libraries through AIX4.2
20318
# and later when we are not doing run time linking.
20319
library_names_spec='${libname}${release}.a $libname.a'
20320
soname_spec='${libname}${release}${shared_ext}$major'
20322
shlibpath_var=LIBPATH
20327
library_names_spec='$libname.ixlibrary $libname.a'
20328
# Create ${libname}_ixlibrary.a entries in /sys/libs.
20329
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'
20333
library_names_spec='${libname}${shared_ext}'
20334
dynamic_linker="$host_os ld.so"
20335
shlibpath_var=LIBRARY_PATH
20341
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20342
soname_spec='${libname}${release}${shared_ext}$major'
20343
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20344
shlibpath_var=LD_LIBRARY_PATH
20345
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20346
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20347
# the default ld.so.conf also contains /usr/contrib/lib and
20348
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20349
# libtool to hard-code these into programs
20352
cygwin* | mingw* | pw32*)
20353
version_type=windows
20358
case $GCC,$host_os in
20359
yes,cygwin* | yes,mingw* | yes,pw32*)
20360
library_names_spec='$libname.dll.a'
20361
# DLL is installed to $(libdir)/../bin by postinstall_cmds
20362
postinstall_cmds='base_file=`basename \${file}`~
20363
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20364
dldir=$destdir/`dirname \$dlpath`~
20365
test -d \$dldir || mkdir -p \$dldir~
20366
$install_prog $dir/$dlname \$dldir/$dlname~
20367
chmod a+x \$dldir/$dlname'
20368
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20369
dlpath=$dir/\$dldll~
20371
shlibpath_overrides_runpath=yes
20375
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
20376
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20377
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20380
# MinGW DLLs use traditional 'lib' prefix
20381
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20382
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20383
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20384
# It is most probably a Windows format PATH printed by
20385
# mingw gcc, but we are running on Cygwin. Gcc prints its search
20386
# path with ; separators, and with drive letters. We can handle the
20387
# drive letters (cygwin fileutils understands them), so leave them,
20388
# especially as we might pass files found there to a mingw objdump,
20389
# which wouldn't understand a cygwinified path. Ahh.
20390
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20392
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20396
# pw32 DLLs use 'pw' prefix rather than 'lib'
20397
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20403
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20406
dynamic_linker='Win32 ld.exe'
20407
# FIXME: first we should search . and the directory the executable is in
20411
darwin* | rhapsody*)
20412
dynamic_linker="$host_os dyld"
20413
version_type=darwin
20416
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20417
soname_spec='${libname}${release}${major}$shared_ext'
20418
shlibpath_overrides_runpath=yes
20419
shlibpath_var=DYLD_LIBRARY_PATH
20420
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20422
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20429
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20430
soname_spec='${libname}${release}${shared_ext}$major'
20431
shlibpath_var=LD_LIBRARY_PATH
20438
freebsd* | dragonfly*)
20439
# DragonFly does not have aout. When/if they implement a new
20440
# versioning mechanism, adjust this.
20441
if test -x /usr/bin/objformat; then
20442
objformat=`/usr/bin/objformat`
20445
freebsd[123]*) objformat=aout ;;
20446
*) objformat=elf ;;
20449
version_type=freebsd-$objformat
20450
case $version_type in
20452
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20457
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20461
shlibpath_var=LD_LIBRARY_PATH
20464
shlibpath_overrides_runpath=yes
20466
freebsd3.[01]* | freebsdelf3.[01]*)
20467
shlibpath_overrides_runpath=yes
20468
hardcode_into_libs=yes
20470
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20471
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20472
shlibpath_overrides_runpath=no
20473
hardcode_into_libs=yes
20475
*) # from 4.6 on, and DragonFly
20476
shlibpath_overrides_runpath=yes
20477
hardcode_into_libs=yes
20486
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20487
soname_spec='${libname}${release}${shared_ext}$major'
20488
shlibpath_var=LD_LIBRARY_PATH
20489
hardcode_into_libs=yes
20492
hpux9* | hpux10* | hpux11*)
20493
# Give a soname corresponding to the major version so that dld.sl refuses to
20494
# link against other versions.
20501
hardcode_into_libs=yes
20502
dynamic_linker="$host_os dld.so"
20503
shlibpath_var=LD_LIBRARY_PATH
20504
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20505
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20506
soname_spec='${libname}${release}${shared_ext}$major'
20507
if test "X$HPUX_IA64_MODE" = X32; then
20508
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20510
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20512
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20516
hardcode_into_libs=yes
20517
dynamic_linker="$host_os dld.sl"
20518
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20519
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20520
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20521
soname_spec='${libname}${release}${shared_ext}$major'
20522
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20523
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20527
dynamic_linker="$host_os dld.sl"
20528
shlibpath_var=SHLIB_PATH
20529
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20530
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20531
soname_spec='${libname}${release}${shared_ext}$major'
20534
# HP-UX runs *really* slowly unless shared libraries are mode 555.
20535
postinstall_cmds='chmod 555 $lib'
20542
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20543
soname_spec='${libname}${release}${shared_ext}$major'
20544
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20545
shlibpath_var=LD_LIBRARY_PATH
20546
shlibpath_overrides_runpath=no
20547
hardcode_into_libs=yes
20550
irix5* | irix6* | nonstopux*)
20552
nonstopux*) version_type=nonstopux ;;
20554
if test "$lt_cv_prog_gnu_ld" = yes; then
20562
soname_spec='${libname}${release}${shared_ext}$major'
20563
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20565
irix5* | nonstopux*)
20566
libsuff= shlibsuff=
20569
case $LD in # libtool.m4 will add one of these switches to LD
20570
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20571
libsuff= shlibsuff= libmagic=32-bit;;
20572
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20573
libsuff=32 shlibsuff=N32 libmagic=N32;;
20574
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20575
libsuff=64 shlibsuff=64 libmagic=64-bit;;
20576
*) libsuff= shlibsuff= libmagic=never-match;;
20580
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20581
shlibpath_overrides_runpath=no
20582
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20583
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20584
hardcode_into_libs=yes
20587
# No shared lib support for Linux oldld, aout, or coff.
20588
linux*oldld* | linux*aout* | linux*coff*)
20592
# This must be Linux ELF.
20593
linux* | k*bsd*-gnu)
20597
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20598
soname_spec='${libname}${release}${shared_ext}$major'
20599
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20600
shlibpath_var=LD_LIBRARY_PATH
20601
shlibpath_overrides_runpath=no
20602
# This implies no fast_install, which is unacceptable.
20603
# Some rework will be needed to allow for fast_install
20604
# before this can be enabled.
20605
hardcode_into_libs=yes
20607
# Append ld.so.conf contents to the search path
20608
if test -f /etc/ld.so.conf; then
20609
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' ' '`
20610
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20613
# We used to test for /lib/ld.so.1 and disable shared libraries on
20614
# powerpc, because MkLinux only supported shared libraries with the
20615
# GNU dynamic linker. Since this was broken with cross compilers,
20616
# most powerpc-linux boxes support dynamic linking these days and
20617
# people can always --disable-shared, the test was removed, and we
20618
# assume the GNU/Linux dynamic linker is in use.
20619
dynamic_linker='GNU/Linux ld.so'
20626
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20627
soname_spec='${libname}${release}${shared_ext}$major'
20628
shlibpath_var=LD_LIBRARY_PATH
20629
shlibpath_overrides_runpath=no
20630
hardcode_into_libs=yes
20631
dynamic_linker='NetBSD ld.elf_so'
20638
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20639
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20640
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20641
dynamic_linker='NetBSD (a.out) ld.so'
20643
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20644
soname_spec='${libname}${release}${shared_ext}$major'
20645
dynamic_linker='NetBSD ld.elf_so'
20647
shlibpath_var=LD_LIBRARY_PATH
20648
shlibpath_overrides_runpath=yes
20649
hardcode_into_libs=yes
20654
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20655
shlibpath_var=LD_LIBRARY_PATH
20656
shlibpath_overrides_runpath=yes
20663
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20664
soname_spec='${libname}${release}${shared_ext}$major'
20665
shlibpath_var=LD_LIBRARY_PATH
20666
shlibpath_overrides_runpath=yes
20671
sys_lib_dlsearch_path_spec="/usr/lib"
20673
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20675
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20676
*) need_version=no ;;
20678
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20679
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20680
shlibpath_var=LD_LIBRARY_PATH
20681
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20683
openbsd2.[89] | openbsd2.[89].*)
20684
shlibpath_overrides_runpath=no
20687
shlibpath_overrides_runpath=yes
20691
shlibpath_overrides_runpath=yes
20696
libname_spec='$name'
20699
library_names_spec='$libname${shared_ext} $libname.a'
20700
dynamic_linker='OS/2 ld.exe'
20701
shlibpath_var=LIBPATH
20704
osf3* | osf4* | osf5*)
20708
soname_spec='${libname}${release}${shared_ext}$major'
20709
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20710
shlibpath_var=LD_LIBRARY_PATH
20711
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20712
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20723
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20724
soname_spec='${libname}${release}${shared_ext}$major'
20725
shlibpath_var=LD_LIBRARY_PATH
20726
shlibpath_overrides_runpath=yes
20727
hardcode_into_libs=yes
20728
# ldd complains unless libraries are executable
20729
postinstall_cmds='chmod +x $lib'
20734
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20735
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20736
shlibpath_var=LD_LIBRARY_PATH
20737
shlibpath_overrides_runpath=yes
20738
if test "$with_gnu_ld" = yes; then
20746
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20747
soname_spec='${libname}${release}${shared_ext}$major'
20748
shlibpath_var=LD_LIBRARY_PATH
20749
case $host_vendor in
20751
shlibpath_overrides_runpath=no
20753
export_dynamic_flag_spec='${wl}-Blargedynsym'
20754
runpath_var=LD_RUN_PATH
20762
shlibpath_overrides_runpath=no
20763
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20769
if test -d /usr/nec ;then
20771
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20772
soname_spec='$libname${shared_ext}.$major'
20773
shlibpath_var=LD_LIBRARY_PATH
20777
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20778
version_type=freebsd-elf
20781
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20782
soname_spec='${libname}${release}${shared_ext}$major'
20783
shlibpath_var=LD_LIBRARY_PATH
20784
hardcode_into_libs=yes
20785
if test "$with_gnu_ld" = yes; then
20786
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20787
shlibpath_overrides_runpath=no
20789
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20790
shlibpath_overrides_runpath=yes
20793
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20797
sys_lib_dlsearch_path_spec='/usr/lib'
20802
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20803
soname_spec='${libname}${release}${shared_ext}$major'
20804
shlibpath_var=LD_LIBRARY_PATH
20811
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20812
$as_echo "$dynamic_linker" >&6; }
20813
test "$dynamic_linker" = no && can_build_shared=no
20815
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20816
$as_echo_n "(cached) " >&6
20818
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
20821
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20822
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20823
$as_echo_n "(cached) " >&6
20825
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
20828
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20830
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20831
if test "$GCC" = yes; then
20832
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20835
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20836
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20837
hardcode_action_CXX=
20838
if test -n "$hardcode_libdir_flag_spec_CXX" || \
20839
test -n "$runpath_var_CXX" || \
20840
test "X$hardcode_automatic_CXX" = "Xyes" ; then
20842
# We can hardcode non-existant directories.
20843
if test "$hardcode_direct_CXX" != no &&
20844
# If the only mechanism to avoid hardcoding is shlibpath_var, we
20845
# have to relink, otherwise we might link with an installed library
20846
# when we should be linking with a yet-to-be-installed one
20847
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20848
test "$hardcode_minus_L_CXX" != no; then
20849
# Linking always hardcodes the temporary library directory.
20850
hardcode_action_CXX=relink
20852
# We can link without hardcoding, and we can hardcode nonexisting dirs.
20853
hardcode_action_CXX=immediate
20856
# We cannot hardcode anything, or else we can only hardcode existing
20858
hardcode_action_CXX=unsupported
20860
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20861
$as_echo "$hardcode_action_CXX" >&6; }
20863
if test "$hardcode_action_CXX" = relink; then
20864
# Fast installation is not supported
20865
enable_fast_install=no
20866
elif test "$shlibpath_overrides_runpath" = yes ||
20867
test "$enable_shared" = no; then
20868
# Fast installation is not necessary
20869
enable_fast_install=needless
20873
# The else clause should only fire when bootstrapping the
20874
# libtool distribution, otherwise you forgot to ship ltmain.sh
20875
# with your package, and you will get complaints that there are
20876
# no rules to generate ltmain.sh.
20877
if test -f "$ltmain"; then
20878
# See if we are running on zsh, and set the options which allow our commands through
20879
# without removal of \ escapes.
20880
if test -n "${ZSH_VERSION+set}" ; then
20881
setopt NO_GLOB_SUBST
20883
# Now quote all the things that may contain metacharacters while being
20884
# careful not to overquote the AC_SUBSTed values. We take copies of the
20885
# variables and quote the copies for generation of the libtool script.
20886
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20888
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20889
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20890
deplibs_check_method reload_flag reload_cmds need_locks \
20891
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20892
lt_cv_sys_global_symbol_to_c_name_address \
20893
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20894
old_postinstall_cmds old_postuninstall_cmds \
20898
lt_prog_compiler_wl_CXX \
20899
lt_prog_compiler_pic_CXX \
20900
lt_prog_compiler_static_CXX \
20901
lt_prog_compiler_no_builtin_flag_CXX \
20902
export_dynamic_flag_spec_CXX \
20903
thread_safe_flag_spec_CXX \
20904
whole_archive_flag_spec_CXX \
20905
enable_shared_with_static_runtimes_CXX \
20906
old_archive_cmds_CXX \
20907
old_archive_from_new_cmds_CXX \
20908
predep_objects_CXX \
20909
postdep_objects_CXX \
20912
compiler_lib_search_path_CXX \
20913
compiler_lib_search_dirs_CXX \
20915
archive_expsym_cmds_CXX \
20916
postinstall_cmds_CXX \
20917
postuninstall_cmds_CXX \
20918
old_archive_from_expsyms_cmds_CXX \
20919
allow_undefined_flag_CXX \
20920
no_undefined_flag_CXX \
20921
export_symbols_cmds_CXX \
20922
hardcode_libdir_flag_spec_CXX \
20923
hardcode_libdir_flag_spec_ld_CXX \
20924
hardcode_libdir_separator_CXX \
20925
hardcode_automatic_CXX \
20927
module_expsym_cmds_CXX \
20928
lt_cv_prog_compiler_c_o_CXX \
20929
fix_srcfile_path_CXX \
20930
exclude_expsyms_CXX \
20931
include_expsyms_CXX; do
20934
old_archive_cmds_CXX | \
20935
old_archive_from_new_cmds_CXX | \
20936
archive_cmds_CXX | \
20937
archive_expsym_cmds_CXX | \
20938
module_cmds_CXX | \
20939
module_expsym_cmds_CXX | \
20940
old_archive_from_expsyms_cmds_CXX | \
20941
export_symbols_cmds_CXX | \
20942
extract_expsyms_cmds | reload_cmds | finish_cmds | \
20943
postinstall_cmds | postuninstall_cmds | \
20944
old_postinstall_cmds | old_postuninstall_cmds | \
20945
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20946
# Double-quote double-evaled strings.
20947
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20950
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20956
*'\$0 --fallback-echo"')
20957
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20963
cat <<__EOF__ >> "$cfgfile"
20964
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20966
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20968
# Shell to use when invoking shell scripts.
20971
# Whether or not to build shared libraries.
20972
build_libtool_libs=$enable_shared
20974
# Whether or not to build static libraries.
20975
build_old_libs=$enable_static
20977
# Whether or not to add -lc for building shared libraries.
20978
build_libtool_need_lc=$archive_cmds_need_lc_CXX
20980
# Whether or not to disallow shared libs when runtime libs are static
20981
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20983
# Whether or not to optimize for fast installation.
20984
fast_install=$enable_fast_install
20987
host_alias=$host_alias
20991
# The build system.
20992
build_alias=$build_alias
20996
# An echo program that does not interpret backslashes.
21001
AR_FLAGS=$lt_AR_FLAGS
21006
# LTCC compiler flags.
21007
LTCFLAGS=$lt_LTCFLAGS
21009
# A language-specific compiler.
21010
CC=$lt_compiler_CXX
21012
# Is the compiler the GNU C compiler?
21018
# The linker used to build libraries.
21021
# Whether we need hard or soft links.
21024
# A BSD-compatible nm program.
21027
# A symbol stripping program
21030
# Used to examine libraries when file_magic_cmd begins "file"
21031
MAGIC_CMD=$MAGIC_CMD
21033
# Used on cygwin: DLL creation program.
21036
# Used on cygwin: object dumper.
21039
# Used on cygwin: assembler.
21042
# The name of the directory that contains temporary libtool files.
21045
# How to create reloadable object files.
21046
reload_flag=$lt_reload_flag
21047
reload_cmds=$lt_reload_cmds
21049
# How to pass a linker flag through the compiler.
21050
wl=$lt_lt_prog_compiler_wl_CXX
21052
# Object file suffix (normally "o").
21053
objext="$ac_objext"
21055
# Old archive suffix (normally "a").
21058
# Shared library suffix (normally ".so").
21059
shrext_cmds='$shrext_cmds'
21061
# Executable file suffix (normally "").
21064
# Additional compiler flags for building library objects.
21065
pic_flag=$lt_lt_prog_compiler_pic_CXX
21068
# What is the maximum length of a command?
21069
max_cmd_len=$lt_cv_sys_max_cmd_len
21071
# Does compiler simultaneously support -c and -o options?
21072
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21074
# Must we lock files when doing compilation?
21075
need_locks=$lt_need_locks
21077
# Do we need the lib prefix for modules?
21078
need_lib_prefix=$need_lib_prefix
21080
# Do we need a version for libraries?
21081
need_version=$need_version
21083
# Whether dlopen is supported.
21084
dlopen_support=$enable_dlopen
21086
# Whether dlopen of programs is supported.
21087
dlopen_self=$enable_dlopen_self
21089
# Whether dlopen of statically linked programs is supported.
21090
dlopen_self_static=$enable_dlopen_self_static
21092
# Compiler flag to prevent dynamic linking.
21093
link_static_flag=$lt_lt_prog_compiler_static_CXX
21095
# Compiler flag to turn off builtin functions.
21096
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21098
# Compiler flag to allow reflexive dlopens.
21099
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21101
# Compiler flag to generate shared objects directly from archives.
21102
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21104
# Compiler flag to generate thread-safe objects.
21105
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21107
# Library versioning type.
21108
version_type=$version_type
21110
# Format of library name prefix.
21111
libname_spec=$lt_libname_spec
21113
# List of archive names. First name is the real one, the rest are links.
21114
# The last name is the one that the linker finds with -lNAME.
21115
library_names_spec=$lt_library_names_spec
21117
# The coded name of the library, if different from the real name.
21118
soname_spec=$lt_soname_spec
21120
# Commands used to build and install an old-style archive.
21122
old_archive_cmds=$lt_old_archive_cmds_CXX
21123
old_postinstall_cmds=$lt_old_postinstall_cmds
21124
old_postuninstall_cmds=$lt_old_postuninstall_cmds
21126
# Create an old-style archive from a shared archive.
21127
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21129
# Create a temporary old-style archive to link instead of a shared archive.
21130
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21132
# Commands used to build and install a shared archive.
21133
archive_cmds=$lt_archive_cmds_CXX
21134
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21135
postinstall_cmds=$lt_postinstall_cmds
21136
postuninstall_cmds=$lt_postuninstall_cmds
21138
# Commands used to build a loadable module (assumed same as above if empty)
21139
module_cmds=$lt_module_cmds_CXX
21140
module_expsym_cmds=$lt_module_expsym_cmds_CXX
21142
# Commands to strip libraries.
21143
old_striplib=$lt_old_striplib
21144
striplib=$lt_striplib
21146
# Dependencies to place before the objects being linked to create a
21148
predep_objects=$lt_predep_objects_CXX
21150
# Dependencies to place after the objects being linked to create a
21152
postdep_objects=$lt_postdep_objects_CXX
21154
# Dependencies to place before the objects being linked to create a
21156
predeps=$lt_predeps_CXX
21158
# Dependencies to place after the objects being linked to create a
21160
postdeps=$lt_postdeps_CXX
21162
# The directories searched by this compiler when creating a shared
21164
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21166
# The library search path used internally by the compiler when linking
21167
# a shared library.
21168
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21170
# Method to check whether dependent libraries are shared objects.
21171
deplibs_check_method=$lt_deplibs_check_method
21173
# Command to use when deplibs_check_method == file_magic.
21174
file_magic_cmd=$lt_file_magic_cmd
21176
# Flag that allows shared libraries with undefined symbols to be built.
21177
allow_undefined_flag=$lt_allow_undefined_flag_CXX
21179
# Flag that forces no undefined symbols.
21180
no_undefined_flag=$lt_no_undefined_flag_CXX
21182
# Commands used to finish a libtool library installation in a directory.
21183
finish_cmds=$lt_finish_cmds
21185
# Same as above, but a single script fragment to be evaled but not shown.
21186
finish_eval=$lt_finish_eval
21188
# Take the output of nm and produce a listing of raw symbols and C names.
21189
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21191
# Transform the output of nm in a proper C declaration
21192
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21194
# Transform the output of nm in a C name address pair
21195
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21197
# This is the shared library runtime path variable.
21198
runpath_var=$runpath_var
21200
# This is the shared library path variable.
21201
shlibpath_var=$shlibpath_var
21203
# Is shlibpath searched before the hard-coded library search path?
21204
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21206
# How to hardcode a shared library path into an executable.
21207
hardcode_action=$hardcode_action_CXX
21209
# Whether we should hardcode library paths into libraries.
21210
hardcode_into_libs=$hardcode_into_libs
21212
# Flag to hardcode \$libdir into a binary during linking.
21213
# This must work even if \$libdir does not exist.
21214
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21216
# If ld is used when linking, flag to hardcode \$libdir into
21217
# a binary during linking. This must work even if \$libdir does
21219
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21221
# Whether we need a single -rpath flag with a separated argument.
21222
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21224
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21225
# resulting binary.
21226
hardcode_direct=$hardcode_direct_CXX
21228
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21229
# resulting binary.
21230
hardcode_minus_L=$hardcode_minus_L_CXX
21232
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21233
# the resulting binary.
21234
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21236
# Set to yes if building a shared library automatically hardcodes DIR into the library
21237
# and all subsequent libraries and executables linked against it.
21238
hardcode_automatic=$hardcode_automatic_CXX
21240
# Variables whose values should be saved in libtool wrapper scripts and
21241
# restored at relink time.
21242
variables_saved_for_relink="$variables_saved_for_relink"
21244
# Whether libtool must link a program against all its dependency libraries.
21245
link_all_deplibs=$link_all_deplibs_CXX
21247
# Compile-time system search path for libraries
21248
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21250
# Run-time system search path for libraries
21251
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21253
# Fix the shell variable \$srcfile for the compiler.
21254
fix_srcfile_path=$lt_fix_srcfile_path
21256
# Set to yes if exported symbols are required.
21257
always_export_symbols=$always_export_symbols_CXX
21259
# The commands to list exported symbols.
21260
export_symbols_cmds=$lt_export_symbols_cmds_CXX
21262
# The commands to extract the exported symbol list from a shared archive.
21263
extract_expsyms_cmds=$lt_extract_expsyms_cmds
21265
# Symbols that should not be listed in the preloaded symbols.
21266
exclude_expsyms=$lt_exclude_expsyms_CXX
21268
# Symbols that must always be exported.
21269
include_expsyms=$lt_include_expsyms_CXX
21271
# ### END LIBTOOL TAG CONFIG: $tagname
21277
# If there is no Makefile yet, we rely on a make rule to execute
21278
# `config.status --recheck' to rerun these tests and create the
21279
# libtool script then.
21280
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21281
if test -f "$ltmain_in"; then
21282
test -f Makefile && make "$ltmain"
21288
ac_cpp='$CPP $CPPFLAGS'
21289
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21290
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21291
ac_compiler_gnu=$ac_cv_c_compiler_gnu
21297
with_gnu_ldcxx=$with_gnu_ld
21298
with_gnu_ld=$lt_save_with_gnu_ld
21299
lt_cv_path_LDCXX=$lt_cv_path_LD
21300
lt_cv_path_LD=$lt_save_path_LD
21301
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21302
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21310
if test -n "$F77" && test "X$F77" != "Xno"; then
21313
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21314
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21315
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21318
archive_cmds_need_lc_F77=no
21319
allow_undefined_flag_F77=
21320
always_export_symbols_F77=no
21321
archive_expsym_cmds_F77=
21322
export_dynamic_flag_spec_F77=
21323
hardcode_direct_F77=no
21324
hardcode_libdir_flag_spec_F77=
21325
hardcode_libdir_flag_spec_ld_F77=
21326
hardcode_libdir_separator_F77=
21327
hardcode_minus_L_F77=no
21328
hardcode_automatic_F77=no
21330
module_expsym_cmds_F77=
21331
link_all_deplibs_F77=unknown
21332
old_archive_cmds_F77=$old_archive_cmds
21333
no_undefined_flag_F77=
21334
whole_archive_flag_spec_F77=
21335
enable_shared_with_static_runtimes_F77=no
21337
# Source file extension for f77 test sources.
21340
# Object file extension for compiled f77 test sources.
21344
# Code to be used in simple compile tests
21345
lt_simple_compile_test_code="\
21351
# Code to be used in simple link tests
21352
lt_simple_link_test_code="\
21357
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21359
# If no C compiler was specified, use CC.
21362
# If no C compiler flags were specified, use CFLAGS.
21363
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21365
# Allow CC to be a program name with arguments.
21369
# save warnings/boilerplate of simple test code
21370
ac_outfile=conftest.$ac_objext
21371
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
21372
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21373
_lt_compiler_boilerplate=`cat conftest.err`
21376
ac_outfile=conftest.$ac_objext
21377
echo "$lt_simple_link_test_code" >conftest.$ac_ext
21378
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21379
_lt_linker_boilerplate=`cat conftest.err`
21383
# Allow CC to be a program name with arguments.
21388
for cc_temp in $compiler""; do
21390
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21391
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21396
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21399
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21400
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
21401
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
21402
$as_echo "$can_build_shared" >&6; }
21404
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21405
$as_echo_n "checking whether to build shared libraries... " >&6; }
21406
test "$can_build_shared" = "no" && enable_shared=no
21408
# On AIX, shared libraries and static libraries use the same namespace, and
21409
# are all built from PIC.
21412
test "$enable_shared" = yes && enable_static=no
21413
if test -n "$RANLIB"; then
21414
archive_cmds="$archive_cmds~\$RANLIB \$lib"
21415
postinstall_cmds='$RANLIB $lib'
21419
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21420
test "$enable_shared" = yes && enable_static=no
21424
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
21425
$as_echo "$enable_shared" >&6; }
21427
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21428
$as_echo_n "checking whether to build static libraries... " >&6; }
21429
# Make sure either enable_shared or enable_static is yes.
21430
test "$enable_shared" = yes || enable_static=yes
21431
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
21432
$as_echo "$enable_static" >&6; }
21437
lt_prog_compiler_wl_F77=
21438
lt_prog_compiler_pic_F77=
21439
lt_prog_compiler_static_F77=
21441
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21442
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
21444
if test "$GCC" = yes; then
21445
lt_prog_compiler_wl_F77='-Wl,'
21446
lt_prog_compiler_static_F77='-static'
21450
# All AIX code is PIC.
21451
if test "$host_cpu" = ia64; then
21452
# AIX 5 now supports IA64 processor
21453
lt_prog_compiler_static_F77='-Bstatic'
21458
# FIXME: we need at least 68020 code to build shared libraries, but
21459
# adding the `-m68020' flag to GCC prevents building anything better,
21461
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21464
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21465
# PIC is the default for these OSes.
21468
mingw* | cygwin* | pw32* | os2*)
21469
# This hack is so that the source file can tell whether it is being
21470
# built for inclusion in a dll (and should export symbols for example).
21471
# Although the cygwin gcc ignores -fPIC, still need this for old-style
21472
# (--disable-auto-import) libraries
21473
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21476
darwin* | rhapsody*)
21477
# PIC is the default on this platform
21478
# Common symbols not allowed in MH_DYLIB files
21479
lt_prog_compiler_pic_F77='-fno-common'
21483
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
21484
# Instead, we relocate shared libraries at runtime.
21488
# Just because we use GCC doesn't mean we suddenly get shared libraries
21489
# on systems that don't support them.
21490
lt_prog_compiler_can_build_shared_F77=no
21495
if test -d /usr/nec; then
21496
lt_prog_compiler_pic_F77=-Kconform_pic
21501
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21502
# not for PA HP-UX.
21508
lt_prog_compiler_pic_F77='-fPIC'
21514
lt_prog_compiler_pic_F77='-fPIC'
21518
# PORTME Check for flag to pass linker flags through the system compiler.
21521
lt_prog_compiler_wl_F77='-Wl,'
21522
if test "$host_cpu" = ia64; then
21523
# AIX 5 now supports IA64 processor
21524
lt_prog_compiler_static_F77='-Bstatic'
21526
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21530
# PIC is the default on this platform
21531
# Common symbols not allowed in MH_DYLIB files
21532
case $cc_basename in
21534
lt_prog_compiler_pic_F77='-qnocommon'
21535
lt_prog_compiler_wl_F77='-Wl,'
21540
mingw* | cygwin* | pw32* | os2*)
21541
# This hack is so that the source file can tell whether it is being
21542
# built for inclusion in a dll (and should export symbols for example).
21543
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21546
hpux9* | hpux10* | hpux11*)
21547
lt_prog_compiler_wl_F77='-Wl,'
21548
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21549
# not for PA HP-UX.
21555
lt_prog_compiler_pic_F77='+Z'
21558
# Is there a better lt_prog_compiler_static that works with the bundled CC?
21559
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21562
irix5* | irix6* | nonstopux*)
21563
lt_prog_compiler_wl_F77='-Wl,'
21564
# PIC (with -KPIC) is the default.
21565
lt_prog_compiler_static_F77='-non_shared'
21569
lt_prog_compiler_pic_F77='-KPIC'
21570
lt_prog_compiler_static_F77='-Bstatic'
21573
linux* | k*bsd*-gnu)
21574
case $cc_basename in
21576
lt_prog_compiler_wl_F77='-Wl,'
21577
lt_prog_compiler_pic_F77='-KPIC'
21578
lt_prog_compiler_static_F77='-static'
21580
pgcc* | pgf77* | pgf90* | pgf95*)
21581
# Portland Group compilers (*not* the Pentium gcc compiler,
21582
# which looks to be a dead project)
21583
lt_prog_compiler_wl_F77='-Wl,'
21584
lt_prog_compiler_pic_F77='-fpic'
21585
lt_prog_compiler_static_F77='-Bstatic'
21588
lt_prog_compiler_wl_F77='-Wl,'
21589
# All Alpha code is PIC.
21590
lt_prog_compiler_static_F77='-non_shared'
21593
case `$CC -V 2>&1 | sed 5q` in
21596
lt_prog_compiler_pic_F77='-KPIC'
21597
lt_prog_compiler_static_F77='-Bstatic'
21598
lt_prog_compiler_wl_F77='-Wl,'
21601
# Sun Fortran 8.3 passes all unrecognized flags to the linker
21602
lt_prog_compiler_pic_F77='-KPIC'
21603
lt_prog_compiler_static_F77='-Bstatic'
21604
lt_prog_compiler_wl_F77=''
21611
osf3* | osf4* | osf5*)
21612
lt_prog_compiler_wl_F77='-Wl,'
21613
# All OSF/1 code is PIC.
21614
lt_prog_compiler_static_F77='-non_shared'
21618
lt_prog_compiler_static_F77='-non_shared'
21622
lt_prog_compiler_pic_F77='-KPIC'
21623
lt_prog_compiler_static_F77='-Bstatic'
21624
case $cc_basename in
21625
f77* | f90* | f95*)
21626
lt_prog_compiler_wl_F77='-Qoption ld ';;
21628
lt_prog_compiler_wl_F77='-Wl,';;
21633
lt_prog_compiler_wl_F77='-Qoption ld '
21634
lt_prog_compiler_pic_F77='-PIC'
21635
lt_prog_compiler_static_F77='-Bstatic'
21638
sysv4 | sysv4.2uw2* | sysv4.3*)
21639
lt_prog_compiler_wl_F77='-Wl,'
21640
lt_prog_compiler_pic_F77='-KPIC'
21641
lt_prog_compiler_static_F77='-Bstatic'
21645
if test -d /usr/nec ;then
21646
lt_prog_compiler_pic_F77='-Kconform_pic'
21647
lt_prog_compiler_static_F77='-Bstatic'
21651
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21652
lt_prog_compiler_wl_F77='-Wl,'
21653
lt_prog_compiler_pic_F77='-KPIC'
21654
lt_prog_compiler_static_F77='-Bstatic'
21658
lt_prog_compiler_wl_F77='-Wl,'
21659
lt_prog_compiler_can_build_shared_F77=no
21663
lt_prog_compiler_pic_F77='-pic'
21664
lt_prog_compiler_static_F77='-Bstatic'
21668
lt_prog_compiler_can_build_shared_F77=no
21673
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21674
$as_echo "$lt_prog_compiler_pic_F77" >&6; }
21677
# Check to make sure the PIC flag actually works.
21679
if test -n "$lt_prog_compiler_pic_F77"; then
21681
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21682
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
21683
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
21684
$as_echo_n "(cached) " >&6
21686
lt_cv_prog_compiler_pic_works_F77=no
21687
ac_outfile=conftest.$ac_objext
21688
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21689
lt_compiler_flag="$lt_prog_compiler_pic_F77"
21690
# Insert the option either (1) after the last *FLAGS variable, or
21691
# (2) before a word containing "conftest.", or (3) at the end.
21692
# Note that $ac_compile itself does not contain backslashes and begins
21693
# with a dollar sign (not a hyphen), so the echo should work correctly.
21694
# The option is referenced via a variable to avoid confusing sed.
21695
lt_compile=`echo "$ac_compile" | $SED \
21696
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21697
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21698
-e 's:$: $lt_compiler_flag:'`
21699
(eval echo "\"\$as_me:21699: $lt_compile\"" >&5)
21700
(eval "$lt_compile" 2>conftest.err)
21702
cat conftest.err >&5
21703
echo "$as_me:21703: \$? = $ac_status" >&5
21704
if (exit $ac_status) && test -s "$ac_outfile"; then
21705
# The compiler can only warn and ignore the option if not recognized
21706
# So say no if there are warnings other than the usual output.
21707
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21708
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21709
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21710
lt_cv_prog_compiler_pic_works_F77=yes
21716
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
21717
$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
21719
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
21720
case $lt_prog_compiler_pic_F77 in
21722
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21725
lt_prog_compiler_pic_F77=
21726
lt_prog_compiler_can_build_shared_F77=no
21731
# For platforms which do not support PIC, -DPIC is meaningless:
21733
lt_prog_compiler_pic_F77=
21736
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21741
# Check to make sure the static flag actually works.
21743
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21744
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21745
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
21746
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
21747
$as_echo_n "(cached) " >&6
21749
lt_cv_prog_compiler_static_works_F77=no
21750
save_LDFLAGS="$LDFLAGS"
21751
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21752
echo "$lt_simple_link_test_code" > conftest.$ac_ext
21753
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21754
# The linker can only warn and ignore the option if not recognized
21755
# So say no if there are warnings
21756
if test -s conftest.err; then
21757
# Append any errors to the config.log.
21758
cat conftest.err 1>&5
21759
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21760
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21761
if diff conftest.exp conftest.er2 >/dev/null; then
21762
lt_cv_prog_compiler_static_works_F77=yes
21765
lt_cv_prog_compiler_static_works_F77=yes
21769
LDFLAGS="$save_LDFLAGS"
21772
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
21773
$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
21775
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
21778
lt_prog_compiler_static_F77=
21782
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21783
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21784
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21785
$as_echo_n "(cached) " >&6
21787
lt_cv_prog_compiler_c_o_F77=no
21788
$rm -r conftest 2>/dev/null
21792
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21794
lt_compiler_flag="-o out/conftest2.$ac_objext"
21795
# Insert the option either (1) after the last *FLAGS variable, or
21796
# (2) before a word containing "conftest.", or (3) at the end.
21797
# Note that $ac_compile itself does not contain backslashes and begins
21798
# with a dollar sign (not a hyphen), so the echo should work correctly.
21799
lt_compile=`echo "$ac_compile" | $SED \
21800
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21801
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21802
-e 's:$: $lt_compiler_flag:'`
21803
(eval echo "\"\$as_me:21803: $lt_compile\"" >&5)
21804
(eval "$lt_compile" 2>out/conftest.err)
21806
cat out/conftest.err >&5
21807
echo "$as_me:21807: \$? = $ac_status" >&5
21808
if (exit $ac_status) && test -s out/conftest2.$ac_objext
21810
# The compiler can only warn and ignore the option if not recognized
21811
# So say no if there are warnings
21812
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21813
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21814
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21815
lt_cv_prog_compiler_c_o_F77=yes
21820
# SGI C++ compiler will create directory out/ii_files/ for
21821
# template instantiation
21822
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21823
$rm out/* && rmdir out
21829
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21830
$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
21833
hard_links="nottested"
21834
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21835
# do not overwrite the value of need_locks provided by the user
21836
{ $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21837
$as_echo_n "checking if we can lock with hard links... " >&6; }
21840
ln conftest.a conftest.b 2>/dev/null && hard_links=no
21842
ln conftest.a conftest.b 2>&5 || hard_links=no
21843
ln conftest.a conftest.b 2>/dev/null && hard_links=no
21844
{ $as_echo "$as_me:$LINENO: result: $hard_links" >&5
21845
$as_echo "$hard_links" >&6; }
21846
if test "$hard_links" = no; then
21847
{ $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21848
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21855
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21856
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
21859
allow_undefined_flag_F77=
21860
enable_shared_with_static_runtimes_F77=no
21862
archive_expsym_cmds_F77=
21863
old_archive_From_new_cmds_F77=
21864
old_archive_from_expsyms_cmds_F77=
21865
export_dynamic_flag_spec_F77=
21866
whole_archive_flag_spec_F77=
21867
thread_safe_flag_spec_F77=
21868
hardcode_libdir_flag_spec_F77=
21869
hardcode_libdir_flag_spec_ld_F77=
21870
hardcode_libdir_separator_F77=
21871
hardcode_direct_F77=no
21872
hardcode_minus_L_F77=no
21873
hardcode_shlibpath_var_F77=unsupported
21874
link_all_deplibs_F77=unknown
21875
hardcode_automatic_F77=no
21877
module_expsym_cmds_F77=
21878
always_export_symbols_F77=no
21879
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21880
# include_expsyms should be a list of space-separated symbols to be *always*
21881
# included in the symbol list
21882
include_expsyms_F77=
21883
# exclude_expsyms can be an extended regexp of symbols to exclude
21884
# it will be wrapped by ` (' and `)$', so one must not match beginning or
21885
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21886
# as well as any symbol that contains `d'.
21887
exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
21888
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21889
# platforms (ab)use it in PIC code, but their linkers get confused if
21890
# the symbol is explicitly referenced. Since portable code cannot
21891
# rely on this symbol name, it's probably fine to never include it in
21892
# preloaded symbol tables.
21893
# Exclude shared library initialization/finalization symbols.
21894
extract_expsyms_cmds=
21895
# Just being paranoid about ensuring that cc_basename is set.
21896
for cc_temp in $compiler""; do
21898
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21899
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21904
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21907
cygwin* | mingw* | pw32*)
21908
# FIXME: the MSVC++ port hasn't been tested in a loooong time
21909
# When not using gcc, we currently assume that we are using
21910
# Microsoft Visual C++.
21911
if test "$GCC" != yes; then
21916
# we just hope/assume this is gcc and not c89 (= MSVC++)
21925
if test "$with_gnu_ld" = yes; then
21926
# If archive_cmds runs LD, not CC, wlarc should be empty
21929
# Set some defaults for GNU ld with shared library support. These
21930
# are reset later if shared libraries are not supported. Putting them
21931
# here allows them to be overridden if necessary.
21932
runpath_var=LD_RUN_PATH
21933
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21934
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21935
# ancient GNU ld didn't support --whole-archive et. al.
21936
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21937
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21939
whole_archive_flag_spec_F77=
21941
supports_anon_versioning=no
21942
case `$LD -v 2>/dev/null` in
21943
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21944
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21945
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21946
*\ 2.11.*) ;; # other 2.11 versions
21947
*) supports_anon_versioning=yes ;;
21950
# See if GNU ld supports shared libraries.
21953
# On AIX/PPC, the GNU linker is very broken
21954
if test "$host_cpu" != ia64; then
21958
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21959
*** to be unable to reliably create shared libraries on AIX.
21960
*** Therefore, libtool is disabling shared libraries support. If you
21961
*** really care for shared libraries, you may want to modify your PATH
21962
*** so that a non-GNU linker is found, and then restart.
21969
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)'
21970
hardcode_libdir_flag_spec_F77='-L$libdir'
21971
hardcode_minus_L_F77=yes
21973
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21974
# that the semantics of dynamic libraries on AmigaOS, at least up
21975
# to version 4, is to share data among multiple programs linked
21976
# with the same dynamic library. Since this doesn't match the
21977
# behavior of shared libraries on other platforms, we can't use
21983
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21984
allow_undefined_flag_F77=unsupported
21985
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21986
# support --undefined. This deserves some investigation. FIXME
21987
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21993
cygwin* | mingw* | pw32*)
21994
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21995
# as there is no search path for DLLs.
21996
hardcode_libdir_flag_spec_F77='-L$libdir'
21997
allow_undefined_flag_F77=unsupported
21998
always_export_symbols_F77=no
21999
enable_shared_with_static_runtimes_F77=yes
22000
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
22002
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
22003
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22004
# If the export-symbols file already is a .def file (1st line
22005
# is EXPORTS), use it as is; otherwise, prepend...
22006
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22007
cp $export_symbols $output_objdir/$soname.def;
22009
echo EXPORTS > $output_objdir/$soname.def;
22010
cat $export_symbols >> $output_objdir/$soname.def;
22012
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22019
hardcode_direct_F77=no
22020
hardcode_shlibpath_var_F77=no
22021
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22022
export_dynamic_flag_spec_F77='${wl}-E'
22023
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22024
# Instead, shared libraries are loaded at an image base (0x10000000 by
22025
# default) and relocated if they conflict, which is a slow very memory
22026
# consuming and fragmenting process. To avoid this, we pick a random,
22027
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22028
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
22029
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'
22030
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'
22033
gnu* | linux* | k*bsd*-gnu)
22034
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22036
case $cc_basename,$host_cpu in
22037
pgcc*) # Portland Group C compiler
22038
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'
22039
tmp_addflag=' $pic_flag'
22041
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
22042
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'
22043
tmp_addflag=' $pic_flag -Mnomain' ;;
22044
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
22045
tmp_addflag=' -i_dynamic' ;;
22046
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
22047
tmp_addflag=' -i_dynamic -nofor_main' ;;
22048
ifc* | ifort*) # Intel Fortran compiler
22049
tmp_addflag=' -nofor_main' ;;
22051
case `$CC -V 2>&1 | sed 5q` in
22052
*Sun\ C*) # Sun C 5.9
22053
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'
22054
tmp_sharedflag='-G' ;;
22055
*Sun\ F*) # Sun Fortran 8.3
22056
tmp_sharedflag='-G' ;;
22058
tmp_sharedflag='-shared' ;;
22060
archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22062
if test $supports_anon_versioning = yes; then
22063
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22064
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22065
$echo "local: *; };" >> $output_objdir/$libname.ver~
22066
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22068
link_all_deplibs_F77=no
22074
netbsd* | netbsdelf*-gnu)
22075
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22076
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22079
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22080
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22085
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22089
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
22090
*** create shared libraries on Solaris systems. Therefore, libtool
22091
*** is disabling shared libraries support. We urge you to upgrade GNU
22092
*** binutils to release 2.9.1 or newer. Another option is to modify
22093
*** your PATH or compiler configuration so that the native linker is
22094
*** used, and then restart.
22097
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22098
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22099
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22105
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22106
case `$LD -v 2>&1` in
22107
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22111
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22112
*** reliably create shared libraries on SCO systems. Therefore, libtool
22113
*** is disabling shared libraries support. We urge you to upgrade GNU
22114
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22115
*** your PATH or compiler configuration so that the native linker is
22116
*** used, and then restart.
22121
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22122
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22123
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22124
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22133
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22135
hardcode_direct_F77=yes
22136
hardcode_shlibpath_var_F77=no
22140
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22141
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22142
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22149
if test "$ld_shlibs_F77" = no; then
22151
hardcode_libdir_flag_spec_F77=
22152
export_dynamic_flag_spec_F77=
22153
whole_archive_flag_spec_F77=
22156
# PORTME fill in a description of your system's linker (not GNU ld)
22159
allow_undefined_flag_F77=unsupported
22160
always_export_symbols_F77=yes
22161
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'
22162
# Note: this linker hardcodes the directories in LIBPATH if there
22163
# are no directories specified by -L.
22164
hardcode_minus_L_F77=yes
22165
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22166
# Neither direct hardcoding nor static linking is supported with a
22168
hardcode_direct_F77=unsupported
22173
if test "$host_cpu" = ia64; then
22174
# On IA64, the linker does run time linking by default, so we don't
22175
# have to do anything special.
22176
aix_use_runtimelinking=no
22177
exp_sym_flag='-Bexport'
22180
# If we're using GNU nm, then we don't want the "-C" option.
22181
# -C means demangle to AIX nm, but means don't demangle with GNU nm
22182
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22183
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'
22185
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'
22187
aix_use_runtimelinking=no
22189
# Test if we are trying to use run time linking or normal
22190
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
22191
# need to do runtime linking.
22192
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
22193
for ld_flag in $LDFLAGS; do
22194
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22195
aix_use_runtimelinking=yes
22202
exp_sym_flag='-bexport'
22203
no_entry_flag='-bnoentry'
22206
# When large executables or shared objects are built, AIX ld can
22207
# have problems creating the table of contents. If linking a library
22208
# or program results in "error TOC overflow" add -mminimal-toc to
22209
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22210
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22212
archive_cmds_F77=''
22213
hardcode_direct_F77=yes
22214
hardcode_libdir_separator_F77=':'
22215
link_all_deplibs_F77=yes
22217
if test "$GCC" = yes; then
22218
case $host_os in aix4.[012]|aix4.[012].*)
22219
# We only want to do this on AIX 4.2 and lower, the check
22220
# below for broken collect2 doesn't work under 4.3+
22221
collect2name=`${CC} -print-prog-name=collect2`
22222
if test -f "$collect2name" && \
22223
strings "$collect2name" | grep resolve_lib_name >/dev/null
22225
# We have reworked collect2
22228
# We have old collect2
22229
hardcode_direct_F77=unsupported
22230
# It fails to find uninstalled libraries when the uninstalled
22231
# path is not listed in the libpath. Setting hardcode_minus_L
22232
# to unsupported forces relinking
22233
hardcode_minus_L_F77=yes
22234
hardcode_libdir_flag_spec_F77='-L$libdir'
22235
hardcode_libdir_separator_F77=
22239
shared_flag='-shared'
22240
if test "$aix_use_runtimelinking" = yes; then
22241
shared_flag="$shared_flag "'${wl}-G'
22245
if test "$host_cpu" = ia64; then
22246
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22247
# chokes on -Wl,-G. The following line is correct:
22250
if test "$aix_use_runtimelinking" = yes; then
22251
shared_flag='${wl}-G'
22253
shared_flag='${wl}-bM:SRE'
22258
# It seems that -bexpall does not export symbols beginning with
22259
# underscore (_), so it is better to generate a list of symbols to export.
22260
always_export_symbols_F77=yes
22261
if test "$aix_use_runtimelinking" = yes; then
22262
# Warning - without using the other runtime loading flags (-brtl),
22263
# -berok will link without error, but may produce a broken library.
22264
allow_undefined_flag_F77='-berok'
22265
# Determine the default libpath from the value encoded in an empty executable.
22266
cat >conftest.$ac_ext <<_ACEOF
22271
rm -f conftest.$ac_objext conftest$ac_exeext
22272
if { (ac_try="$ac_link"
22273
case "(($ac_try" in
22274
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22275
*) ac_try_echo=$ac_try;;
22277
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22278
$as_echo "$ac_try_echo") >&5
22279
(eval "$ac_link") 2>conftest.er1
22281
grep -v '^ *+' conftest.er1 >conftest.err
22283
cat conftest.err >&5
22284
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22285
(exit $ac_status); } && {
22286
test -z "$ac_f77_werror_flag" ||
22287
test ! -s conftest.err
22288
} && test -s conftest$ac_exeext && {
22289
test "$cross_compiling" = yes ||
22290
$as_test_x conftest$ac_exeext
22293
lt_aix_libpath_sed='
22294
/Import File Strings/,/^$/ {
22300
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22301
# Check for a 64-bit object if we didn't find anything.
22302
if test -z "$aix_libpath"; then
22303
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22306
$as_echo "$as_me: failed program was:" >&5
22307
sed 's/^/| /' conftest.$ac_ext >&5
22312
rm -rf conftest.dSYM
22313
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22314
conftest$ac_exeext conftest.$ac_ext
22315
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22317
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22318
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"
22320
if test "$host_cpu" = ia64; then
22321
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22322
allow_undefined_flag_F77="-z nodefs"
22323
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"
22325
# Determine the default libpath from the value encoded in an empty executable.
22326
cat >conftest.$ac_ext <<_ACEOF
22331
rm -f conftest.$ac_objext conftest$ac_exeext
22332
if { (ac_try="$ac_link"
22333
case "(($ac_try" in
22334
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22335
*) ac_try_echo=$ac_try;;
22337
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22338
$as_echo "$ac_try_echo") >&5
22339
(eval "$ac_link") 2>conftest.er1
22341
grep -v '^ *+' conftest.er1 >conftest.err
22343
cat conftest.err >&5
22344
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22345
(exit $ac_status); } && {
22346
test -z "$ac_f77_werror_flag" ||
22347
test ! -s conftest.err
22348
} && test -s conftest$ac_exeext && {
22349
test "$cross_compiling" = yes ||
22350
$as_test_x conftest$ac_exeext
22353
lt_aix_libpath_sed='
22354
/Import File Strings/,/^$/ {
22360
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22361
# Check for a 64-bit object if we didn't find anything.
22362
if test -z "$aix_libpath"; then
22363
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22366
$as_echo "$as_me: failed program was:" >&5
22367
sed 's/^/| /' conftest.$ac_ext >&5
22372
rm -rf conftest.dSYM
22373
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22374
conftest$ac_exeext conftest.$ac_ext
22375
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22377
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22378
# Warning - without using the other run time loading flags,
22379
# -berok will link without error, but may produce a broken library.
22380
no_undefined_flag_F77=' ${wl}-bernotok'
22381
allow_undefined_flag_F77=' ${wl}-berok'
22382
# Exported symbols can be pulled into shared objects from archives
22383
whole_archive_flag_spec_F77='$convenience'
22384
archive_cmds_need_lc_F77=yes
22385
# This is similar to how AIX traditionally builds its shared libraries.
22386
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'
22392
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)'
22393
hardcode_libdir_flag_spec_F77='-L$libdir'
22394
hardcode_minus_L_F77=yes
22395
# see comment about different semantics on the GNU ld section
22400
export_dynamic_flag_spec_F77=-rdynamic
22403
cygwin* | mingw* | pw32*)
22404
# When not using gcc, we currently assume that we are using
22405
# Microsoft Visual C++.
22406
# hardcode_libdir_flag_spec is actually meaningless, as there is
22407
# no search path for DLLs.
22408
hardcode_libdir_flag_spec_F77=' '
22409
allow_undefined_flag_F77=unsupported
22410
# Tell ltmain to make .lib files, not .a files.
22412
# Tell ltmain to make .dll files, not .so files.
22414
# FIXME: Setting linknames here is a bad hack.
22415
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22416
# The linker will automatically build a .lib file if we build a DLL.
22417
old_archive_From_new_cmds_F77='true'
22418
# FIXME: Should let the user specify the lib program.
22419
old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
22420
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22421
enable_shared_with_static_runtimes_F77=yes
22424
darwin* | rhapsody*)
22426
rhapsody* | darwin1.[012])
22427
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22430
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22431
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22433
case ${MACOSX_DEPLOYMENT_TARGET} in
22435
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22438
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22444
archive_cmds_need_lc_F77=no
22445
hardcode_direct_F77=no
22446
hardcode_automatic_F77=yes
22447
hardcode_shlibpath_var_F77=unsupported
22448
whole_archive_flag_spec_F77=''
22449
link_all_deplibs_F77=yes
22450
if test "$GCC" = yes ; then
22451
output_verbose_link_cmd='echo'
22452
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}"
22453
module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
22454
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}"
22455
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}"
22457
case $cc_basename in
22459
output_verbose_link_cmd='echo'
22460
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
22461
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22462
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22463
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}'
22464
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}'
22474
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22475
hardcode_libdir_flag_spec_F77='-L$libdir'
22476
hardcode_shlibpath_var_F77=no
22483
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22484
# support. Future versions do this automatically, but an explicit c++rt0.o
22485
# does not break anything, and helps significantly (at the cost of a little
22488
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22489
hardcode_libdir_flag_spec_F77='-R$libdir'
22490
hardcode_direct_F77=yes
22491
hardcode_shlibpath_var_F77=no
22494
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
22496
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22497
hardcode_direct_F77=yes
22498
hardcode_minus_L_F77=yes
22499
hardcode_shlibpath_var_F77=no
22502
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22503
freebsd* | dragonfly*)
22504
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22505
hardcode_libdir_flag_spec_F77='-R$libdir'
22506
hardcode_direct_F77=yes
22507
hardcode_shlibpath_var_F77=no
22511
if test "$GCC" = yes; then
22512
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'
22514
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'
22516
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22517
hardcode_libdir_separator_F77=:
22518
hardcode_direct_F77=yes
22520
# hardcode_minus_L: Not really in the search PATH,
22521
# but as the default location of the library.
22522
hardcode_minus_L_F77=yes
22523
export_dynamic_flag_spec_F77='${wl}-E'
22527
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22528
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22530
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22532
if test "$with_gnu_ld" = no; then
22533
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22534
hardcode_libdir_separator_F77=:
22536
hardcode_direct_F77=yes
22537
export_dynamic_flag_spec_F77='${wl}-E'
22539
# hardcode_minus_L: Not really in the search PATH,
22540
# but as the default location of the library.
22541
hardcode_minus_L_F77=yes
22546
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22549
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22552
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22555
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22561
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22564
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22567
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22571
if test "$with_gnu_ld" = no; then
22572
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22573
hardcode_libdir_separator_F77=:
22577
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22578
hardcode_direct_F77=no
22579
hardcode_shlibpath_var_F77=no
22582
hardcode_direct_F77=yes
22583
export_dynamic_flag_spec_F77='${wl}-E'
22585
# hardcode_minus_L: Not really in the search PATH,
22586
# but as the default location of the library.
22587
hardcode_minus_L_F77=yes
22593
irix5* | irix6* | nonstopux*)
22594
if test "$GCC" = yes; then
22595
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'
22597
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'
22598
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22600
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22601
hardcode_libdir_separator_F77=:
22602
link_all_deplibs_F77=yes
22605
netbsd* | netbsdelf*-gnu)
22606
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22607
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22609
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22611
hardcode_libdir_flag_spec_F77='-R$libdir'
22612
hardcode_direct_F77=yes
22613
hardcode_shlibpath_var_F77=no
22617
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22618
hardcode_direct_F77=yes
22619
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22620
hardcode_libdir_separator_F77=:
22621
hardcode_shlibpath_var_F77=no
22625
if test -f /usr/libexec/ld.so; then
22626
hardcode_direct_F77=yes
22627
hardcode_shlibpath_var_F77=no
22628
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22629
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22630
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22631
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22632
export_dynamic_flag_spec_F77='${wl}-E'
22635
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22636
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22637
hardcode_libdir_flag_spec_F77='-R$libdir'
22640
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22641
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22651
hardcode_libdir_flag_spec_F77='-L$libdir'
22652
hardcode_minus_L_F77=yes
22653
allow_undefined_flag_F77=unsupported
22654
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'
22655
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22659
if test "$GCC" = yes; then
22660
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22661
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'
22663
allow_undefined_flag_F77=' -expect_unresolved \*'
22664
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'
22666
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22667
hardcode_libdir_separator_F77=:
22670
osf4* | osf5*) # as osf3* with the addition of -msym flag
22671
if test "$GCC" = yes; then
22672
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22673
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'
22674
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22676
allow_undefined_flag_F77=' -expect_unresolved \*'
22677
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'
22678
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~
22679
$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'
22681
# Both c and cxx compiler support -rpath directly
22682
hardcode_libdir_flag_spec_F77='-rpath $libdir'
22684
hardcode_libdir_separator_F77=:
22688
no_undefined_flag_F77=' -z text'
22689
if test "$GCC" = yes; then
22691
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22692
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22693
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22696
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22697
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22698
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22700
hardcode_libdir_flag_spec_F77='-R$libdir'
22701
hardcode_shlibpath_var_F77=no
22703
solaris2.[0-5] | solaris2.[0-5].*) ;;
22705
# The compiler driver will combine and reorder linker options,
22706
# but understands `-z linker_flag'. GCC discards it without `$wl',
22707
# but is careful enough not to reorder.
22708
# Supported since Solaris 2.6 (maybe 2.5.1?)
22709
if test "$GCC" = yes; then
22710
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
22712
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
22716
link_all_deplibs_F77=yes
22720
if test "x$host_vendor" = xsequent; then
22721
# Use $CC to link under sequent, because it throws in some extra .o
22722
# files that make .init and .fini sections work.
22723
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22725
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22727
hardcode_libdir_flag_spec_F77='-L$libdir'
22728
hardcode_direct_F77=yes
22729
hardcode_minus_L_F77=yes
22730
hardcode_shlibpath_var_F77=no
22734
case $host_vendor in
22736
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22737
hardcode_direct_F77=yes # is this really true???
22740
## LD is ld it makes a PLAMLIB
22741
## CC just makes a GrossModule.
22742
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22743
reload_cmds_F77='$CC -r -o $output$reload_objs'
22744
hardcode_direct_F77=no
22747
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22748
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22751
runpath_var='LD_RUN_PATH'
22752
hardcode_shlibpath_var_F77=no
22756
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22757
hardcode_shlibpath_var_F77=no
22758
export_dynamic_flag_spec_F77='-Bexport'
22762
if test -d /usr/nec; then
22763
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22764
hardcode_shlibpath_var_F77=no
22765
runpath_var=LD_RUN_PATH
22766
hardcode_runpath_var=yes
22771
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
22772
no_undefined_flag_F77='${wl}-z,text'
22773
archive_cmds_need_lc_F77=no
22774
hardcode_shlibpath_var_F77=no
22775
runpath_var='LD_RUN_PATH'
22777
if test "$GCC" = yes; then
22778
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22779
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22781
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22782
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22786
sysv5* | sco3.2v5* | sco5v6*)
22787
# Note: We can NOT use -z defs as we might desire, because we do not
22788
# link with -lc, and that would cause any symbols used from libc to
22789
# always be unresolved, which means just about no library would
22790
# ever link correctly. If we're not using GNU ld we use -z text
22791
# though, which does catch some bad symbols but isn't as heavy-handed
22793
no_undefined_flag_F77='${wl}-z,text'
22794
allow_undefined_flag_F77='${wl}-z,nodefs'
22795
archive_cmds_need_lc_F77=no
22796
hardcode_shlibpath_var_F77=no
22797
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22798
hardcode_libdir_separator_F77=':'
22799
link_all_deplibs_F77=yes
22800
export_dynamic_flag_spec_F77='${wl}-Bexport'
22801
runpath_var='LD_RUN_PATH'
22803
if test "$GCC" = yes; then
22804
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22805
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22807
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22808
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22813
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22814
hardcode_libdir_flag_spec_F77='-L$libdir'
22815
hardcode_shlibpath_var_F77=no
22824
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22825
$as_echo "$ld_shlibs_F77" >&6; }
22826
test "$ld_shlibs_F77" = no && can_build_shared=no
22829
# Do we need to explicitly link libc?
22831
case "x$archive_cmds_need_lc_F77" in
22833
# Assume -lc should be added
22834
archive_cmds_need_lc_F77=yes
22836
if test "$enable_shared" = yes && test "$GCC" = yes; then
22837
case $archive_cmds_F77 in
22839
# FIXME: we may have to deal with multi-command sequences.
22842
# Test whether the compiler implicitly links with -lc since on some
22843
# systems, -lgcc has to come before -lc. If gcc already passes -lc
22844
# to ld, don't add -lc before -lgcc.
22845
{ $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22846
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22848
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22850
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22851
(eval $ac_compile) 2>&5
22853
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22854
(exit $ac_status); } 2>conftest.err; then
22857
libobjs=conftest.$ac_objext
22859
wl=$lt_prog_compiler_wl_F77
22860
pic_flag=$lt_prog_compiler_pic_F77
22866
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22867
allow_undefined_flag_F77=
22868
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22869
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22871
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22872
(exit $ac_status); }
22874
archive_cmds_need_lc_F77=no
22876
archive_cmds_need_lc_F77=yes
22878
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22880
cat conftest.err 1>&5
22883
{ $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22884
$as_echo "$archive_cmds_need_lc_F77" >&6; }
22891
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22892
$as_echo_n "checking dynamic linker characteristics... " >&6; }
22893
library_names_spec=
22894
libname_spec='lib$name'
22898
postuninstall_cmds=
22902
shlibpath_overrides_runpath=unknown
22904
dynamic_linker="$host_os ld.so"
22905
sys_lib_dlsearch_path_spec="/lib /usr/lib"
22907
need_lib_prefix=unknown
22908
hardcode_into_libs=no
22910
# when you set need_version to no, make sure it does not cause -set_version
22911
# flags to be left without arguments
22912
need_version=unknown
22917
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22918
shlibpath_var=LIBPATH
22920
# AIX 3 has no versioning support, so we append a major version to the name.
22921
soname_spec='${libname}${release}${shared_ext}$major'
22928
hardcode_into_libs=yes
22929
if test "$host_cpu" = ia64; then
22930
# AIX 5 supports IA64
22931
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22932
shlibpath_var=LD_LIBRARY_PATH
22934
# With GCC up to 2.95.x, collect2 would create an import file
22935
# for dependence libraries. The import file would start with
22936
# the line `#! .'. This would cause the generated library to
22937
# depend on `.', always an invalid library. This was fixed in
22938
# development snapshots of GCC prior to 3.0.
22940
aix4 | aix4.[01] | aix4.[01].*)
22941
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22943
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22946
can_build_shared=no
22950
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22951
# soname into executable. Probably we can add versioning support to
22952
# collect2, so additional links can be useful in future.
22953
if test "$aix_use_runtimelinking" = yes; then
22954
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
22955
# instead of lib<name>.a to let people know that these are not
22956
# typical AIX shared libraries.
22957
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22959
# We preserve .a as extension for shared libraries through AIX4.2
22960
# and later when we are not doing run time linking.
22961
library_names_spec='${libname}${release}.a $libname.a'
22962
soname_spec='${libname}${release}${shared_ext}$major'
22964
shlibpath_var=LIBPATH
22969
library_names_spec='$libname.ixlibrary $libname.a'
22970
# Create ${libname}_ixlibrary.a entries in /sys/libs.
22971
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'
22975
library_names_spec='${libname}${shared_ext}'
22976
dynamic_linker="$host_os ld.so"
22977
shlibpath_var=LIBRARY_PATH
22983
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22984
soname_spec='${libname}${release}${shared_ext}$major'
22985
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22986
shlibpath_var=LD_LIBRARY_PATH
22987
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22988
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22989
# the default ld.so.conf also contains /usr/contrib/lib and
22990
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22991
# libtool to hard-code these into programs
22994
cygwin* | mingw* | pw32*)
22995
version_type=windows
23000
case $GCC,$host_os in
23001
yes,cygwin* | yes,mingw* | yes,pw32*)
23002
library_names_spec='$libname.dll.a'
23003
# DLL is installed to $(libdir)/../bin by postinstall_cmds
23004
postinstall_cmds='base_file=`basename \${file}`~
23005
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23006
dldir=$destdir/`dirname \$dlpath`~
23007
test -d \$dldir || mkdir -p \$dldir~
23008
$install_prog $dir/$dlname \$dldir/$dlname~
23009
chmod a+x \$dldir/$dlname'
23010
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23011
dlpath=$dir/\$dldll~
23013
shlibpath_overrides_runpath=yes
23017
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
23018
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23019
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
23022
# MinGW DLLs use traditional 'lib' prefix
23023
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23024
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23025
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23026
# It is most probably a Windows format PATH printed by
23027
# mingw gcc, but we are running on Cygwin. Gcc prints its search
23028
# path with ; separators, and with drive letters. We can handle the
23029
# drive letters (cygwin fileutils understands them), so leave them,
23030
# especially as we might pass files found there to a mingw objdump,
23031
# which wouldn't understand a cygwinified path. Ahh.
23032
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23034
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23038
# pw32 DLLs use 'pw' prefix rather than 'lib'
23039
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23045
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23048
dynamic_linker='Win32 ld.exe'
23049
# FIXME: first we should search . and the directory the executable is in
23053
darwin* | rhapsody*)
23054
dynamic_linker="$host_os dyld"
23055
version_type=darwin
23058
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23059
soname_spec='${libname}${release}${major}$shared_ext'
23060
shlibpath_overrides_runpath=yes
23061
shlibpath_var=DYLD_LIBRARY_PATH
23062
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
23064
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23071
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23072
soname_spec='${libname}${release}${shared_ext}$major'
23073
shlibpath_var=LD_LIBRARY_PATH
23080
freebsd* | dragonfly*)
23081
# DragonFly does not have aout. When/if they implement a new
23082
# versioning mechanism, adjust this.
23083
if test -x /usr/bin/objformat; then
23084
objformat=`/usr/bin/objformat`
23087
freebsd[123]*) objformat=aout ;;
23088
*) objformat=elf ;;
23091
version_type=freebsd-$objformat
23092
case $version_type in
23094
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23099
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23103
shlibpath_var=LD_LIBRARY_PATH
23106
shlibpath_overrides_runpath=yes
23108
freebsd3.[01]* | freebsdelf3.[01]*)
23109
shlibpath_overrides_runpath=yes
23110
hardcode_into_libs=yes
23112
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23113
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23114
shlibpath_overrides_runpath=no
23115
hardcode_into_libs=yes
23117
*) # from 4.6 on, and DragonFly
23118
shlibpath_overrides_runpath=yes
23119
hardcode_into_libs=yes
23128
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23129
soname_spec='${libname}${release}${shared_ext}$major'
23130
shlibpath_var=LD_LIBRARY_PATH
23131
hardcode_into_libs=yes
23134
hpux9* | hpux10* | hpux11*)
23135
# Give a soname corresponding to the major version so that dld.sl refuses to
23136
# link against other versions.
23143
hardcode_into_libs=yes
23144
dynamic_linker="$host_os dld.so"
23145
shlibpath_var=LD_LIBRARY_PATH
23146
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23147
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23148
soname_spec='${libname}${release}${shared_ext}$major'
23149
if test "X$HPUX_IA64_MODE" = X32; then
23150
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23152
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23154
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23158
hardcode_into_libs=yes
23159
dynamic_linker="$host_os dld.sl"
23160
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23161
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23162
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23163
soname_spec='${libname}${release}${shared_ext}$major'
23164
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23165
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23169
dynamic_linker="$host_os dld.sl"
23170
shlibpath_var=SHLIB_PATH
23171
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23172
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23173
soname_spec='${libname}${release}${shared_ext}$major'
23176
# HP-UX runs *really* slowly unless shared libraries are mode 555.
23177
postinstall_cmds='chmod 555 $lib'
23184
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23185
soname_spec='${libname}${release}${shared_ext}$major'
23186
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23187
shlibpath_var=LD_LIBRARY_PATH
23188
shlibpath_overrides_runpath=no
23189
hardcode_into_libs=yes
23192
irix5* | irix6* | nonstopux*)
23194
nonstopux*) version_type=nonstopux ;;
23196
if test "$lt_cv_prog_gnu_ld" = yes; then
23204
soname_spec='${libname}${release}${shared_ext}$major'
23205
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23207
irix5* | nonstopux*)
23208
libsuff= shlibsuff=
23211
case $LD in # libtool.m4 will add one of these switches to LD
23212
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23213
libsuff= shlibsuff= libmagic=32-bit;;
23214
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23215
libsuff=32 shlibsuff=N32 libmagic=N32;;
23216
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23217
libsuff=64 shlibsuff=64 libmagic=64-bit;;
23218
*) libsuff= shlibsuff= libmagic=never-match;;
23222
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23223
shlibpath_overrides_runpath=no
23224
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23225
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23226
hardcode_into_libs=yes
23229
# No shared lib support for Linux oldld, aout, or coff.
23230
linux*oldld* | linux*aout* | linux*coff*)
23234
# This must be Linux ELF.
23235
linux* | k*bsd*-gnu)
23239
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23240
soname_spec='${libname}${release}${shared_ext}$major'
23241
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23242
shlibpath_var=LD_LIBRARY_PATH
23243
shlibpath_overrides_runpath=no
23244
# This implies no fast_install, which is unacceptable.
23245
# Some rework will be needed to allow for fast_install
23246
# before this can be enabled.
23247
hardcode_into_libs=yes
23249
# Append ld.so.conf contents to the search path
23250
if test -f /etc/ld.so.conf; then
23251
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' ' '`
23252
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23255
# We used to test for /lib/ld.so.1 and disable shared libraries on
23256
# powerpc, because MkLinux only supported shared libraries with the
23257
# GNU dynamic linker. Since this was broken with cross compilers,
23258
# most powerpc-linux boxes support dynamic linking these days and
23259
# people can always --disable-shared, the test was removed, and we
23260
# assume the GNU/Linux dynamic linker is in use.
23261
dynamic_linker='GNU/Linux ld.so'
23268
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23269
soname_spec='${libname}${release}${shared_ext}$major'
23270
shlibpath_var=LD_LIBRARY_PATH
23271
shlibpath_overrides_runpath=no
23272
hardcode_into_libs=yes
23273
dynamic_linker='NetBSD ld.elf_so'
23280
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23281
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23282
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23283
dynamic_linker='NetBSD (a.out) ld.so'
23285
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23286
soname_spec='${libname}${release}${shared_ext}$major'
23287
dynamic_linker='NetBSD ld.elf_so'
23289
shlibpath_var=LD_LIBRARY_PATH
23290
shlibpath_overrides_runpath=yes
23291
hardcode_into_libs=yes
23296
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23297
shlibpath_var=LD_LIBRARY_PATH
23298
shlibpath_overrides_runpath=yes
23305
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23306
soname_spec='${libname}${release}${shared_ext}$major'
23307
shlibpath_var=LD_LIBRARY_PATH
23308
shlibpath_overrides_runpath=yes
23313
sys_lib_dlsearch_path_spec="/usr/lib"
23315
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23317
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23318
*) need_version=no ;;
23320
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23321
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23322
shlibpath_var=LD_LIBRARY_PATH
23323
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23325
openbsd2.[89] | openbsd2.[89].*)
23326
shlibpath_overrides_runpath=no
23329
shlibpath_overrides_runpath=yes
23333
shlibpath_overrides_runpath=yes
23338
libname_spec='$name'
23341
library_names_spec='$libname${shared_ext} $libname.a'
23342
dynamic_linker='OS/2 ld.exe'
23343
shlibpath_var=LIBPATH
23346
osf3* | osf4* | osf5*)
23350
soname_spec='${libname}${release}${shared_ext}$major'
23351
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23352
shlibpath_var=LD_LIBRARY_PATH
23353
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23354
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23365
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23366
soname_spec='${libname}${release}${shared_ext}$major'
23367
shlibpath_var=LD_LIBRARY_PATH
23368
shlibpath_overrides_runpath=yes
23369
hardcode_into_libs=yes
23370
# ldd complains unless libraries are executable
23371
postinstall_cmds='chmod +x $lib'
23376
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23377
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23378
shlibpath_var=LD_LIBRARY_PATH
23379
shlibpath_overrides_runpath=yes
23380
if test "$with_gnu_ld" = yes; then
23388
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23389
soname_spec='${libname}${release}${shared_ext}$major'
23390
shlibpath_var=LD_LIBRARY_PATH
23391
case $host_vendor in
23393
shlibpath_overrides_runpath=no
23395
export_dynamic_flag_spec='${wl}-Blargedynsym'
23396
runpath_var=LD_RUN_PATH
23404
shlibpath_overrides_runpath=no
23405
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23411
if test -d /usr/nec ;then
23413
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23414
soname_spec='$libname${shared_ext}.$major'
23415
shlibpath_var=LD_LIBRARY_PATH
23419
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23420
version_type=freebsd-elf
23423
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23424
soname_spec='${libname}${release}${shared_ext}$major'
23425
shlibpath_var=LD_LIBRARY_PATH
23426
hardcode_into_libs=yes
23427
if test "$with_gnu_ld" = yes; then
23428
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23429
shlibpath_overrides_runpath=no
23431
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23432
shlibpath_overrides_runpath=yes
23435
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23439
sys_lib_dlsearch_path_spec='/usr/lib'
23444
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23445
soname_spec='${libname}${release}${shared_ext}$major'
23446
shlibpath_var=LD_LIBRARY_PATH
23453
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23454
$as_echo "$dynamic_linker" >&6; }
23455
test "$dynamic_linker" = no && can_build_shared=no
23457
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
23458
$as_echo_n "(cached) " >&6
23460
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
23463
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
23464
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
23465
$as_echo_n "(cached) " >&6
23467
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
23470
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
23472
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23473
if test "$GCC" = yes; then
23474
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23477
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23478
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
23479
hardcode_action_F77=
23480
if test -n "$hardcode_libdir_flag_spec_F77" || \
23481
test -n "$runpath_var_F77" || \
23482
test "X$hardcode_automatic_F77" = "Xyes" ; then
23484
# We can hardcode non-existant directories.
23485
if test "$hardcode_direct_F77" != no &&
23486
# If the only mechanism to avoid hardcoding is shlibpath_var, we
23487
# have to relink, otherwise we might link with an installed library
23488
# when we should be linking with a yet-to-be-installed one
23489
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23490
test "$hardcode_minus_L_F77" != no; then
23491
# Linking always hardcodes the temporary library directory.
23492
hardcode_action_F77=relink
23494
# We can link without hardcoding, and we can hardcode nonexisting dirs.
23495
hardcode_action_F77=immediate
23498
# We cannot hardcode anything, or else we can only hardcode existing
23500
hardcode_action_F77=unsupported
23502
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23503
$as_echo "$hardcode_action_F77" >&6; }
23505
if test "$hardcode_action_F77" = relink; then
23506
# Fast installation is not supported
23507
enable_fast_install=no
23508
elif test "$shlibpath_overrides_runpath" = yes ||
23509
test "$enable_shared" = no; then
23510
# Fast installation is not necessary
23511
enable_fast_install=needless
23515
# The else clause should only fire when bootstrapping the
23516
# libtool distribution, otherwise you forgot to ship ltmain.sh
23517
# with your package, and you will get complaints that there are
23518
# no rules to generate ltmain.sh.
23519
if test -f "$ltmain"; then
23520
# See if we are running on zsh, and set the options which allow our commands through
23521
# without removal of \ escapes.
23522
if test -n "${ZSH_VERSION+set}" ; then
23523
setopt NO_GLOB_SUBST
23525
# Now quote all the things that may contain metacharacters while being
23526
# careful not to overquote the AC_SUBSTed values. We take copies of the
23527
# variables and quote the copies for generation of the libtool script.
23528
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23530
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23531
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23532
deplibs_check_method reload_flag reload_cmds need_locks \
23533
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23534
lt_cv_sys_global_symbol_to_c_name_address \
23535
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23536
old_postinstall_cmds old_postuninstall_cmds \
23540
lt_prog_compiler_wl_F77 \
23541
lt_prog_compiler_pic_F77 \
23542
lt_prog_compiler_static_F77 \
23543
lt_prog_compiler_no_builtin_flag_F77 \
23544
export_dynamic_flag_spec_F77 \
23545
thread_safe_flag_spec_F77 \
23546
whole_archive_flag_spec_F77 \
23547
enable_shared_with_static_runtimes_F77 \
23548
old_archive_cmds_F77 \
23549
old_archive_from_new_cmds_F77 \
23550
predep_objects_F77 \
23551
postdep_objects_F77 \
23554
compiler_lib_search_path_F77 \
23555
compiler_lib_search_dirs_F77 \
23557
archive_expsym_cmds_F77 \
23558
postinstall_cmds_F77 \
23559
postuninstall_cmds_F77 \
23560
old_archive_from_expsyms_cmds_F77 \
23561
allow_undefined_flag_F77 \
23562
no_undefined_flag_F77 \
23563
export_symbols_cmds_F77 \
23564
hardcode_libdir_flag_spec_F77 \
23565
hardcode_libdir_flag_spec_ld_F77 \
23566
hardcode_libdir_separator_F77 \
23567
hardcode_automatic_F77 \
23569
module_expsym_cmds_F77 \
23570
lt_cv_prog_compiler_c_o_F77 \
23571
fix_srcfile_path_F77 \
23572
exclude_expsyms_F77 \
23573
include_expsyms_F77; do
23576
old_archive_cmds_F77 | \
23577
old_archive_from_new_cmds_F77 | \
23578
archive_cmds_F77 | \
23579
archive_expsym_cmds_F77 | \
23580
module_cmds_F77 | \
23581
module_expsym_cmds_F77 | \
23582
old_archive_from_expsyms_cmds_F77 | \
23583
export_symbols_cmds_F77 | \
23584
extract_expsyms_cmds | reload_cmds | finish_cmds | \
23585
postinstall_cmds | postuninstall_cmds | \
23586
old_postinstall_cmds | old_postuninstall_cmds | \
23587
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23588
# Double-quote double-evaled strings.
23589
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23592
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23598
*'\$0 --fallback-echo"')
23599
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23605
cat <<__EOF__ >> "$cfgfile"
23606
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23608
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23610
# Shell to use when invoking shell scripts.
23613
# Whether or not to build shared libraries.
23614
build_libtool_libs=$enable_shared
23616
# Whether or not to build static libraries.
23617
build_old_libs=$enable_static
23619
# Whether or not to add -lc for building shared libraries.
23620
build_libtool_need_lc=$archive_cmds_need_lc_F77
23622
# Whether or not to disallow shared libs when runtime libs are static
23623
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23625
# Whether or not to optimize for fast installation.
23626
fast_install=$enable_fast_install
23629
host_alias=$host_alias
23633
# The build system.
23634
build_alias=$build_alias
23638
# An echo program that does not interpret backslashes.
23643
AR_FLAGS=$lt_AR_FLAGS
23648
# LTCC compiler flags.
23649
LTCFLAGS=$lt_LTCFLAGS
23651
# A language-specific compiler.
23652
CC=$lt_compiler_F77
23654
# Is the compiler the GNU C compiler?
23660
# The linker used to build libraries.
23663
# Whether we need hard or soft links.
23666
# A BSD-compatible nm program.
23669
# A symbol stripping program
23672
# Used to examine libraries when file_magic_cmd begins "file"
23673
MAGIC_CMD=$MAGIC_CMD
23675
# Used on cygwin: DLL creation program.
23678
# Used on cygwin: object dumper.
23681
# Used on cygwin: assembler.
23684
# The name of the directory that contains temporary libtool files.
23687
# How to create reloadable object files.
23688
reload_flag=$lt_reload_flag
23689
reload_cmds=$lt_reload_cmds
23691
# How to pass a linker flag through the compiler.
23692
wl=$lt_lt_prog_compiler_wl_F77
23694
# Object file suffix (normally "o").
23695
objext="$ac_objext"
23697
# Old archive suffix (normally "a").
23700
# Shared library suffix (normally ".so").
23701
shrext_cmds='$shrext_cmds'
23703
# Executable file suffix (normally "").
23706
# Additional compiler flags for building library objects.
23707
pic_flag=$lt_lt_prog_compiler_pic_F77
23710
# What is the maximum length of a command?
23711
max_cmd_len=$lt_cv_sys_max_cmd_len
23713
# Does compiler simultaneously support -c and -o options?
23714
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23716
# Must we lock files when doing compilation?
23717
need_locks=$lt_need_locks
23719
# Do we need the lib prefix for modules?
23720
need_lib_prefix=$need_lib_prefix
23722
# Do we need a version for libraries?
23723
need_version=$need_version
23725
# Whether dlopen is supported.
23726
dlopen_support=$enable_dlopen
23728
# Whether dlopen of programs is supported.
23729
dlopen_self=$enable_dlopen_self
23731
# Whether dlopen of statically linked programs is supported.
23732
dlopen_self_static=$enable_dlopen_self_static
23734
# Compiler flag to prevent dynamic linking.
23735
link_static_flag=$lt_lt_prog_compiler_static_F77
23737
# Compiler flag to turn off builtin functions.
23738
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23740
# Compiler flag to allow reflexive dlopens.
23741
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23743
# Compiler flag to generate shared objects directly from archives.
23744
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23746
# Compiler flag to generate thread-safe objects.
23747
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23749
# Library versioning type.
23750
version_type=$version_type
23752
# Format of library name prefix.
23753
libname_spec=$lt_libname_spec
23755
# List of archive names. First name is the real one, the rest are links.
23756
# The last name is the one that the linker finds with -lNAME.
23757
library_names_spec=$lt_library_names_spec
23759
# The coded name of the library, if different from the real name.
23760
soname_spec=$lt_soname_spec
23762
# Commands used to build and install an old-style archive.
23764
old_archive_cmds=$lt_old_archive_cmds_F77
23765
old_postinstall_cmds=$lt_old_postinstall_cmds
23766
old_postuninstall_cmds=$lt_old_postuninstall_cmds
23768
# Create an old-style archive from a shared archive.
23769
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23771
# Create a temporary old-style archive to link instead of a shared archive.
23772
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23774
# Commands used to build and install a shared archive.
23775
archive_cmds=$lt_archive_cmds_F77
23776
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23777
postinstall_cmds=$lt_postinstall_cmds
23778
postuninstall_cmds=$lt_postuninstall_cmds
23780
# Commands used to build a loadable module (assumed same as above if empty)
23781
module_cmds=$lt_module_cmds_F77
23782
module_expsym_cmds=$lt_module_expsym_cmds_F77
23784
# Commands to strip libraries.
23785
old_striplib=$lt_old_striplib
23786
striplib=$lt_striplib
23788
# Dependencies to place before the objects being linked to create a
23790
predep_objects=$lt_predep_objects_F77
23792
# Dependencies to place after the objects being linked to create a
23794
postdep_objects=$lt_postdep_objects_F77
23796
# Dependencies to place before the objects being linked to create a
23798
predeps=$lt_predeps_F77
23800
# Dependencies to place after the objects being linked to create a
23802
postdeps=$lt_postdeps_F77
23804
# The directories searched by this compiler when creating a shared
23806
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
23808
# The library search path used internally by the compiler when linking
23809
# a shared library.
23810
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23812
# Method to check whether dependent libraries are shared objects.
23813
deplibs_check_method=$lt_deplibs_check_method
23815
# Command to use when deplibs_check_method == file_magic.
23816
file_magic_cmd=$lt_file_magic_cmd
23818
# Flag that allows shared libraries with undefined symbols to be built.
23819
allow_undefined_flag=$lt_allow_undefined_flag_F77
23821
# Flag that forces no undefined symbols.
23822
no_undefined_flag=$lt_no_undefined_flag_F77
23824
# Commands used to finish a libtool library installation in a directory.
23825
finish_cmds=$lt_finish_cmds
23827
# Same as above, but a single script fragment to be evaled but not shown.
23828
finish_eval=$lt_finish_eval
23830
# Take the output of nm and produce a listing of raw symbols and C names.
23831
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23833
# Transform the output of nm in a proper C declaration
23834
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23836
# Transform the output of nm in a C name address pair
23837
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23839
# This is the shared library runtime path variable.
23840
runpath_var=$runpath_var
23842
# This is the shared library path variable.
23843
shlibpath_var=$shlibpath_var
23845
# Is shlibpath searched before the hard-coded library search path?
23846
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23848
# How to hardcode a shared library path into an executable.
23849
hardcode_action=$hardcode_action_F77
23851
# Whether we should hardcode library paths into libraries.
23852
hardcode_into_libs=$hardcode_into_libs
23854
# Flag to hardcode \$libdir into a binary during linking.
23855
# This must work even if \$libdir does not exist.
23856
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23858
# If ld is used when linking, flag to hardcode \$libdir into
23859
# a binary during linking. This must work even if \$libdir does
23861
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23863
# Whether we need a single -rpath flag with a separated argument.
23864
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23866
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23867
# resulting binary.
23868
hardcode_direct=$hardcode_direct_F77
23870
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23871
# resulting binary.
23872
hardcode_minus_L=$hardcode_minus_L_F77
23874
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23875
# the resulting binary.
23876
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23878
# Set to yes if building a shared library automatically hardcodes DIR into the library
23879
# and all subsequent libraries and executables linked against it.
23880
hardcode_automatic=$hardcode_automatic_F77
23882
# Variables whose values should be saved in libtool wrapper scripts and
23883
# restored at relink time.
23884
variables_saved_for_relink="$variables_saved_for_relink"
23886
# Whether libtool must link a program against all its dependency libraries.
23887
link_all_deplibs=$link_all_deplibs_F77
23889
# Compile-time system search path for libraries
23890
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23892
# Run-time system search path for libraries
23893
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23895
# Fix the shell variable \$srcfile for the compiler.
23896
fix_srcfile_path=$lt_fix_srcfile_path
23898
# Set to yes if exported symbols are required.
23899
always_export_symbols=$always_export_symbols_F77
23901
# The commands to list exported symbols.
23902
export_symbols_cmds=$lt_export_symbols_cmds_F77
23904
# The commands to extract the exported symbol list from a shared archive.
23905
extract_expsyms_cmds=$lt_extract_expsyms_cmds
23907
# Symbols that should not be listed in the preloaded symbols.
23908
exclude_expsyms=$lt_exclude_expsyms_F77
23910
# Symbols that must always be exported.
23911
include_expsyms=$lt_include_expsyms_F77
23913
# ### END LIBTOOL TAG CONFIG: $tagname
23919
# If there is no Makefile yet, we rely on a make rule to execute
23920
# `config.status --recheck' to rerun these tests and create the
23921
# libtool script then.
23922
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23923
if test -f "$ltmain_in"; then
23924
test -f Makefile && make "$ltmain"
23930
ac_cpp='$CPP $CPPFLAGS'
23931
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23932
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23933
ac_compiler_gnu=$ac_cv_c_compiler_gnu
23943
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23946
# Source file extension for Java test sources.
23949
# Object file extension for compiled Java test sources.
23953
# Code to be used in simple compile tests
23954
lt_simple_compile_test_code="class foo {}"
23956
# Code to be used in simple link tests
23957
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
23959
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23961
# If no C compiler was specified, use CC.
23964
# If no C compiler flags were specified, use CFLAGS.
23965
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23967
# Allow CC to be a program name with arguments.
23971
# save warnings/boilerplate of simple test code
23972
ac_outfile=conftest.$ac_objext
23973
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
23974
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23975
_lt_compiler_boilerplate=`cat conftest.err`
23978
ac_outfile=conftest.$ac_objext
23979
echo "$lt_simple_link_test_code" >conftest.$ac_ext
23980
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23981
_lt_linker_boilerplate=`cat conftest.err`
23985
# Allow CC to be a program name with arguments.
23990
for cc_temp in $compiler""; do
23992
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23993
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23998
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24001
# GCJ did not exist at the time GCC didn't implicitly link libc in.
24002
archive_cmds_need_lc_GCJ=no
24004
old_archive_cmds_GCJ=$old_archive_cmds
24007
lt_prog_compiler_no_builtin_flag_GCJ=
24009
if test "$GCC" = yes; then
24010
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
24013
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24014
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
24015
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24016
$as_echo_n "(cached) " >&6
24018
lt_cv_prog_compiler_rtti_exceptions=no
24019
ac_outfile=conftest.$ac_objext
24020
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
24021
lt_compiler_flag="-fno-rtti -fno-exceptions"
24022
# Insert the option either (1) after the last *FLAGS variable, or
24023
# (2) before a word containing "conftest.", or (3) at the end.
24024
# Note that $ac_compile itself does not contain backslashes and begins
24025
# with a dollar sign (not a hyphen), so the echo should work correctly.
24026
# The option is referenced via a variable to avoid confusing sed.
24027
lt_compile=`echo "$ac_compile" | $SED \
24028
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24029
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24030
-e 's:$: $lt_compiler_flag:'`
24031
(eval echo "\"\$as_me:24031: $lt_compile\"" >&5)
24032
(eval "$lt_compile" 2>conftest.err)
24034
cat conftest.err >&5
24035
echo "$as_me:24035: \$? = $ac_status" >&5
24036
if (exit $ac_status) && test -s "$ac_outfile"; then
24037
# The compiler can only warn and ignore the option if not recognized
24038
# So say no if there are warnings other than the usual output.
24039
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24040
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24041
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24042
lt_cv_prog_compiler_rtti_exceptions=yes
24048
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24049
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
24051
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24052
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24059
lt_prog_compiler_wl_GCJ=
24060
lt_prog_compiler_pic_GCJ=
24061
lt_prog_compiler_static_GCJ=
24063
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24064
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
24066
if test "$GCC" = yes; then
24067
lt_prog_compiler_wl_GCJ='-Wl,'
24068
lt_prog_compiler_static_GCJ='-static'
24072
# All AIX code is PIC.
24073
if test "$host_cpu" = ia64; then
24074
# AIX 5 now supports IA64 processor
24075
lt_prog_compiler_static_GCJ='-Bstatic'
24080
# FIXME: we need at least 68020 code to build shared libraries, but
24081
# adding the `-m68020' flag to GCC prevents building anything better,
24083
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24086
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24087
# PIC is the default for these OSes.
24090
mingw* | cygwin* | pw32* | os2*)
24091
# This hack is so that the source file can tell whether it is being
24092
# built for inclusion in a dll (and should export symbols for example).
24093
# Although the cygwin gcc ignores -fPIC, still need this for old-style
24094
# (--disable-auto-import) libraries
24098
darwin* | rhapsody*)
24099
# PIC is the default on this platform
24100
# Common symbols not allowed in MH_DYLIB files
24101
lt_prog_compiler_pic_GCJ='-fno-common'
24105
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
24106
# Instead, we relocate shared libraries at runtime.
24110
# Just because we use GCC doesn't mean we suddenly get shared libraries
24111
# on systems that don't support them.
24112
lt_prog_compiler_can_build_shared_GCJ=no
24117
if test -d /usr/nec; then
24118
lt_prog_compiler_pic_GCJ=-Kconform_pic
24123
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24124
# not for PA HP-UX.
24130
lt_prog_compiler_pic_GCJ='-fPIC'
24136
lt_prog_compiler_pic_GCJ='-fPIC'
24140
# PORTME Check for flag to pass linker flags through the system compiler.
24143
lt_prog_compiler_wl_GCJ='-Wl,'
24144
if test "$host_cpu" = ia64; then
24145
# AIX 5 now supports IA64 processor
24146
lt_prog_compiler_static_GCJ='-Bstatic'
24148
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24152
# PIC is the default on this platform
24153
# Common symbols not allowed in MH_DYLIB files
24154
case $cc_basename in
24156
lt_prog_compiler_pic_GCJ='-qnocommon'
24157
lt_prog_compiler_wl_GCJ='-Wl,'
24162
mingw* | cygwin* | pw32* | os2*)
24163
# This hack is so that the source file can tell whether it is being
24164
# built for inclusion in a dll (and should export symbols for example).
24168
hpux9* | hpux10* | hpux11*)
24169
lt_prog_compiler_wl_GCJ='-Wl,'
24170
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24171
# not for PA HP-UX.
24177
lt_prog_compiler_pic_GCJ='+Z'
24180
# Is there a better lt_prog_compiler_static that works with the bundled CC?
24181
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24184
irix5* | irix6* | nonstopux*)
24185
lt_prog_compiler_wl_GCJ='-Wl,'
24186
# PIC (with -KPIC) is the default.
24187
lt_prog_compiler_static_GCJ='-non_shared'
24191
lt_prog_compiler_pic_GCJ='-KPIC'
24192
lt_prog_compiler_static_GCJ='-Bstatic'
24195
linux* | k*bsd*-gnu)
24196
case $cc_basename in
24198
lt_prog_compiler_wl_GCJ='-Wl,'
24199
lt_prog_compiler_pic_GCJ='-KPIC'
24200
lt_prog_compiler_static_GCJ='-static'
24202
pgcc* | pgf77* | pgf90* | pgf95*)
24203
# Portland Group compilers (*not* the Pentium gcc compiler,
24204
# which looks to be a dead project)
24205
lt_prog_compiler_wl_GCJ='-Wl,'
24206
lt_prog_compiler_pic_GCJ='-fpic'
24207
lt_prog_compiler_static_GCJ='-Bstatic'
24210
lt_prog_compiler_wl_GCJ='-Wl,'
24211
# All Alpha code is PIC.
24212
lt_prog_compiler_static_GCJ='-non_shared'
24215
case `$CC -V 2>&1 | sed 5q` in
24218
lt_prog_compiler_pic_GCJ='-KPIC'
24219
lt_prog_compiler_static_GCJ='-Bstatic'
24220
lt_prog_compiler_wl_GCJ='-Wl,'
24223
# Sun Fortran 8.3 passes all unrecognized flags to the linker
24224
lt_prog_compiler_pic_GCJ='-KPIC'
24225
lt_prog_compiler_static_GCJ='-Bstatic'
24226
lt_prog_compiler_wl_GCJ=''
24233
osf3* | osf4* | osf5*)
24234
lt_prog_compiler_wl_GCJ='-Wl,'
24235
# All OSF/1 code is PIC.
24236
lt_prog_compiler_static_GCJ='-non_shared'
24240
lt_prog_compiler_static_GCJ='-non_shared'
24244
lt_prog_compiler_pic_GCJ='-KPIC'
24245
lt_prog_compiler_static_GCJ='-Bstatic'
24246
case $cc_basename in
24247
f77* | f90* | f95*)
24248
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24250
lt_prog_compiler_wl_GCJ='-Wl,';;
24255
lt_prog_compiler_wl_GCJ='-Qoption ld '
24256
lt_prog_compiler_pic_GCJ='-PIC'
24257
lt_prog_compiler_static_GCJ='-Bstatic'
24260
sysv4 | sysv4.2uw2* | sysv4.3*)
24261
lt_prog_compiler_wl_GCJ='-Wl,'
24262
lt_prog_compiler_pic_GCJ='-KPIC'
24263
lt_prog_compiler_static_GCJ='-Bstatic'
24267
if test -d /usr/nec ;then
24268
lt_prog_compiler_pic_GCJ='-Kconform_pic'
24269
lt_prog_compiler_static_GCJ='-Bstatic'
24273
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24274
lt_prog_compiler_wl_GCJ='-Wl,'
24275
lt_prog_compiler_pic_GCJ='-KPIC'
24276
lt_prog_compiler_static_GCJ='-Bstatic'
24280
lt_prog_compiler_wl_GCJ='-Wl,'
24281
lt_prog_compiler_can_build_shared_GCJ=no
24285
lt_prog_compiler_pic_GCJ='-pic'
24286
lt_prog_compiler_static_GCJ='-Bstatic'
24290
lt_prog_compiler_can_build_shared_GCJ=no
24295
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24296
$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
24299
# Check to make sure the PIC flag actually works.
24301
if test -n "$lt_prog_compiler_pic_GCJ"; then
24303
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24304
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
24305
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
24306
$as_echo_n "(cached) " >&6
24308
lt_cv_prog_compiler_pic_works_GCJ=no
24309
ac_outfile=conftest.$ac_objext
24310
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
24311
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24312
# Insert the option either (1) after the last *FLAGS variable, or
24313
# (2) before a word containing "conftest.", or (3) at the end.
24314
# Note that $ac_compile itself does not contain backslashes and begins
24315
# with a dollar sign (not a hyphen), so the echo should work correctly.
24316
# The option is referenced via a variable to avoid confusing sed.
24317
lt_compile=`echo "$ac_compile" | $SED \
24318
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24319
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24320
-e 's:$: $lt_compiler_flag:'`
24321
(eval echo "\"\$as_me:24321: $lt_compile\"" >&5)
24322
(eval "$lt_compile" 2>conftest.err)
24324
cat conftest.err >&5
24325
echo "$as_me:24325: \$? = $ac_status" >&5
24326
if (exit $ac_status) && test -s "$ac_outfile"; then
24327
# The compiler can only warn and ignore the option if not recognized
24328
# So say no if there are warnings other than the usual output.
24329
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24330
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24331
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24332
lt_cv_prog_compiler_pic_works_GCJ=yes
24338
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
24339
$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
24341
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
24342
case $lt_prog_compiler_pic_GCJ in
24344
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24347
lt_prog_compiler_pic_GCJ=
24348
lt_prog_compiler_can_build_shared_GCJ=no
24353
# For platforms which do not support PIC, -DPIC is meaningless:
24355
lt_prog_compiler_pic_GCJ=
24358
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24363
# Check to make sure the static flag actually works.
24365
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24366
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24367
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
24368
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
24369
$as_echo_n "(cached) " >&6
24371
lt_cv_prog_compiler_static_works_GCJ=no
24372
save_LDFLAGS="$LDFLAGS"
24373
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24374
echo "$lt_simple_link_test_code" > conftest.$ac_ext
24375
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24376
# The linker can only warn and ignore the option if not recognized
24377
# So say no if there are warnings
24378
if test -s conftest.err; then
24379
# Append any errors to the config.log.
24380
cat conftest.err 1>&5
24381
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24382
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24383
if diff conftest.exp conftest.er2 >/dev/null; then
24384
lt_cv_prog_compiler_static_works_GCJ=yes
24387
lt_cv_prog_compiler_static_works_GCJ=yes
24391
LDFLAGS="$save_LDFLAGS"
24394
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
24395
$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
24397
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
24400
lt_prog_compiler_static_GCJ=
24404
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24405
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
24406
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24407
$as_echo_n "(cached) " >&6
24409
lt_cv_prog_compiler_c_o_GCJ=no
24410
$rm -r conftest 2>/dev/null
24414
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
24416
lt_compiler_flag="-o out/conftest2.$ac_objext"
24417
# Insert the option either (1) after the last *FLAGS variable, or
24418
# (2) before a word containing "conftest.", or (3) at the end.
24419
# Note that $ac_compile itself does not contain backslashes and begins
24420
# with a dollar sign (not a hyphen), so the echo should work correctly.
24421
lt_compile=`echo "$ac_compile" | $SED \
24422
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24423
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24424
-e 's:$: $lt_compiler_flag:'`
24425
(eval echo "\"\$as_me:24425: $lt_compile\"" >&5)
24426
(eval "$lt_compile" 2>out/conftest.err)
24428
cat out/conftest.err >&5
24429
echo "$as_me:24429: \$? = $ac_status" >&5
24430
if (exit $ac_status) && test -s out/conftest2.$ac_objext
24432
# The compiler can only warn and ignore the option if not recognized
24433
# So say no if there are warnings
24434
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24435
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24436
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24437
lt_cv_prog_compiler_c_o_GCJ=yes
24442
# SGI C++ compiler will create directory out/ii_files/ for
24443
# template instantiation
24444
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24445
$rm out/* && rmdir out
24451
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24452
$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24455
hard_links="nottested"
24456
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24457
# do not overwrite the value of need_locks provided by the user
24458
{ $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24459
$as_echo_n "checking if we can lock with hard links... " >&6; }
24462
ln conftest.a conftest.b 2>/dev/null && hard_links=no
24464
ln conftest.a conftest.b 2>&5 || hard_links=no
24465
ln conftest.a conftest.b 2>/dev/null && hard_links=no
24466
{ $as_echo "$as_me:$LINENO: result: $hard_links" >&5
24467
$as_echo "$hard_links" >&6; }
24468
if test "$hard_links" = no; then
24469
{ $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24470
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24477
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24478
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
24481
allow_undefined_flag_GCJ=
24482
enable_shared_with_static_runtimes_GCJ=no
24484
archive_expsym_cmds_GCJ=
24485
old_archive_From_new_cmds_GCJ=
24486
old_archive_from_expsyms_cmds_GCJ=
24487
export_dynamic_flag_spec_GCJ=
24488
whole_archive_flag_spec_GCJ=
24489
thread_safe_flag_spec_GCJ=
24490
hardcode_libdir_flag_spec_GCJ=
24491
hardcode_libdir_flag_spec_ld_GCJ=
24492
hardcode_libdir_separator_GCJ=
24493
hardcode_direct_GCJ=no
24494
hardcode_minus_L_GCJ=no
24495
hardcode_shlibpath_var_GCJ=unsupported
24496
link_all_deplibs_GCJ=unknown
24497
hardcode_automatic_GCJ=no
24499
module_expsym_cmds_GCJ=
24500
always_export_symbols_GCJ=no
24501
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24502
# include_expsyms should be a list of space-separated symbols to be *always*
24503
# included in the symbol list
24504
include_expsyms_GCJ=
24505
# exclude_expsyms can be an extended regexp of symbols to exclude
24506
# it will be wrapped by ` (' and `)$', so one must not match beginning or
24507
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24508
# as well as any symbol that contains `d'.
24509
exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
24510
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24511
# platforms (ab)use it in PIC code, but their linkers get confused if
24512
# the symbol is explicitly referenced. Since portable code cannot
24513
# rely on this symbol name, it's probably fine to never include it in
24514
# preloaded symbol tables.
24515
# Exclude shared library initialization/finalization symbols.
24516
extract_expsyms_cmds=
24517
# Just being paranoid about ensuring that cc_basename is set.
24518
for cc_temp in $compiler""; do
24520
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24521
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24526
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24529
cygwin* | mingw* | pw32*)
24530
# FIXME: the MSVC++ port hasn't been tested in a loooong time
24531
# When not using gcc, we currently assume that we are using
24532
# Microsoft Visual C++.
24533
if test "$GCC" != yes; then
24538
# we just hope/assume this is gcc and not c89 (= MSVC++)
24547
if test "$with_gnu_ld" = yes; then
24548
# If archive_cmds runs LD, not CC, wlarc should be empty
24551
# Set some defaults for GNU ld with shared library support. These
24552
# are reset later if shared libraries are not supported. Putting them
24553
# here allows them to be overridden if necessary.
24554
runpath_var=LD_RUN_PATH
24555
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24556
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24557
# ancient GNU ld didn't support --whole-archive et. al.
24558
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24559
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24561
whole_archive_flag_spec_GCJ=
24563
supports_anon_versioning=no
24564
case `$LD -v 2>/dev/null` in
24565
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24566
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24567
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24568
*\ 2.11.*) ;; # other 2.11 versions
24569
*) supports_anon_versioning=yes ;;
24572
# See if GNU ld supports shared libraries.
24575
# On AIX/PPC, the GNU linker is very broken
24576
if test "$host_cpu" != ia64; then
24580
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24581
*** to be unable to reliably create shared libraries on AIX.
24582
*** Therefore, libtool is disabling shared libraries support. If you
24583
*** really care for shared libraries, you may want to modify your PATH
24584
*** so that a non-GNU linker is found, and then restart.
24591
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)'
24592
hardcode_libdir_flag_spec_GCJ='-L$libdir'
24593
hardcode_minus_L_GCJ=yes
24595
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24596
# that the semantics of dynamic libraries on AmigaOS, at least up
24597
# to version 4, is to share data among multiple programs linked
24598
# with the same dynamic library. Since this doesn't match the
24599
# behavior of shared libraries on other platforms, we can't use
24605
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24606
allow_undefined_flag_GCJ=unsupported
24607
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24608
# support --undefined. This deserves some investigation. FIXME
24609
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24615
cygwin* | mingw* | pw32*)
24616
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24617
# as there is no search path for DLLs.
24618
hardcode_libdir_flag_spec_GCJ='-L$libdir'
24619
allow_undefined_flag_GCJ=unsupported
24620
always_export_symbols_GCJ=no
24621
enable_shared_with_static_runtimes_GCJ=yes
24622
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
24624
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24625
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24626
# If the export-symbols file already is a .def file (1st line
24627
# is EXPORTS), use it as is; otherwise, prepend...
24628
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24629
cp $export_symbols $output_objdir/$soname.def;
24631
echo EXPORTS > $output_objdir/$soname.def;
24632
cat $export_symbols >> $output_objdir/$soname.def;
24634
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24641
hardcode_direct_GCJ=no
24642
hardcode_shlibpath_var_GCJ=no
24643
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24644
export_dynamic_flag_spec_GCJ='${wl}-E'
24645
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24646
# Instead, shared libraries are loaded at an image base (0x10000000 by
24647
# default) and relocated if they conflict, which is a slow very memory
24648
# consuming and fragmenting process. To avoid this, we pick a random,
24649
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24650
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
24651
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'
24652
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'
24655
gnu* | linux* | k*bsd*-gnu)
24656
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24658
case $cc_basename,$host_cpu in
24659
pgcc*) # Portland Group C compiler
24660
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'
24661
tmp_addflag=' $pic_flag'
24663
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24664
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'
24665
tmp_addflag=' $pic_flag -Mnomain' ;;
24666
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24667
tmp_addflag=' -i_dynamic' ;;
24668
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24669
tmp_addflag=' -i_dynamic -nofor_main' ;;
24670
ifc* | ifort*) # Intel Fortran compiler
24671
tmp_addflag=' -nofor_main' ;;
24673
case `$CC -V 2>&1 | sed 5q` in
24674
*Sun\ C*) # Sun C 5.9
24675
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'
24676
tmp_sharedflag='-G' ;;
24677
*Sun\ F*) # Sun Fortran 8.3
24678
tmp_sharedflag='-G' ;;
24680
tmp_sharedflag='-shared' ;;
24682
archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24684
if test $supports_anon_versioning = yes; then
24685
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24686
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24687
$echo "local: *; };" >> $output_objdir/$libname.ver~
24688
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24690
link_all_deplibs_GCJ=no
24696
netbsd* | netbsdelf*-gnu)
24697
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24698
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24701
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24702
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24707
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24711
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24712
*** create shared libraries on Solaris systems. Therefore, libtool
24713
*** is disabling shared libraries support. We urge you to upgrade GNU
24714
*** binutils to release 2.9.1 or newer. Another option is to modify
24715
*** your PATH or compiler configuration so that the native linker is
24716
*** used, and then restart.
24719
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24720
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24721
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24727
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24728
case `$LD -v 2>&1` in
24729
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24733
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24734
*** reliably create shared libraries on SCO systems. Therefore, libtool
24735
*** is disabling shared libraries support. We urge you to upgrade GNU
24736
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24737
*** your PATH or compiler configuration so that the native linker is
24738
*** used, and then restart.
24743
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24744
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24745
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24746
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24755
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24757
hardcode_direct_GCJ=yes
24758
hardcode_shlibpath_var_GCJ=no
24762
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24763
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24764
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24771
if test "$ld_shlibs_GCJ" = no; then
24773
hardcode_libdir_flag_spec_GCJ=
24774
export_dynamic_flag_spec_GCJ=
24775
whole_archive_flag_spec_GCJ=
24778
# PORTME fill in a description of your system's linker (not GNU ld)
24781
allow_undefined_flag_GCJ=unsupported
24782
always_export_symbols_GCJ=yes
24783
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'
24784
# Note: this linker hardcodes the directories in LIBPATH if there
24785
# are no directories specified by -L.
24786
hardcode_minus_L_GCJ=yes
24787
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24788
# Neither direct hardcoding nor static linking is supported with a
24790
hardcode_direct_GCJ=unsupported
24795
if test "$host_cpu" = ia64; then
24796
# On IA64, the linker does run time linking by default, so we don't
24797
# have to do anything special.
24798
aix_use_runtimelinking=no
24799
exp_sym_flag='-Bexport'
24802
# If we're using GNU nm, then we don't want the "-C" option.
24803
# -C means demangle to AIX nm, but means don't demangle with GNU nm
24804
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24805
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'
24807
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'
24809
aix_use_runtimelinking=no
24811
# Test if we are trying to use run time linking or normal
24812
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
24813
# need to do runtime linking.
24814
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
24815
for ld_flag in $LDFLAGS; do
24816
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24817
aix_use_runtimelinking=yes
24824
exp_sym_flag='-bexport'
24825
no_entry_flag='-bnoentry'
24828
# When large executables or shared objects are built, AIX ld can
24829
# have problems creating the table of contents. If linking a library
24830
# or program results in "error TOC overflow" add -mminimal-toc to
24831
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24832
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24834
archive_cmds_GCJ=''
24835
hardcode_direct_GCJ=yes
24836
hardcode_libdir_separator_GCJ=':'
24837
link_all_deplibs_GCJ=yes
24839
if test "$GCC" = yes; then
24840
case $host_os in aix4.[012]|aix4.[012].*)
24841
# We only want to do this on AIX 4.2 and lower, the check
24842
# below for broken collect2 doesn't work under 4.3+
24843
collect2name=`${CC} -print-prog-name=collect2`
24844
if test -f "$collect2name" && \
24845
strings "$collect2name" | grep resolve_lib_name >/dev/null
24847
# We have reworked collect2
24850
# We have old collect2
24851
hardcode_direct_GCJ=unsupported
24852
# It fails to find uninstalled libraries when the uninstalled
24853
# path is not listed in the libpath. Setting hardcode_minus_L
24854
# to unsupported forces relinking
24855
hardcode_minus_L_GCJ=yes
24856
hardcode_libdir_flag_spec_GCJ='-L$libdir'
24857
hardcode_libdir_separator_GCJ=
24861
shared_flag='-shared'
24862
if test "$aix_use_runtimelinking" = yes; then
24863
shared_flag="$shared_flag "'${wl}-G'
24867
if test "$host_cpu" = ia64; then
24868
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24869
# chokes on -Wl,-G. The following line is correct:
24872
if test "$aix_use_runtimelinking" = yes; then
24873
shared_flag='${wl}-G'
24875
shared_flag='${wl}-bM:SRE'
24880
# It seems that -bexpall does not export symbols beginning with
24881
# underscore (_), so it is better to generate a list of symbols to export.
24882
always_export_symbols_GCJ=yes
24883
if test "$aix_use_runtimelinking" = yes; then
24884
# Warning - without using the other runtime loading flags (-brtl),
24885
# -berok will link without error, but may produce a broken library.
24886
allow_undefined_flag_GCJ='-berok'
24887
# Determine the default libpath from the value encoded in an empty executable.
24888
cat >conftest.$ac_ext <<_ACEOF
24891
cat confdefs.h >>conftest.$ac_ext
24892
cat >>conftest.$ac_ext <<_ACEOF
24893
/* end confdefs.h. */
24903
rm -f conftest.$ac_objext conftest$ac_exeext
24904
if { (ac_try="$ac_link"
24905
case "(($ac_try" in
24906
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24907
*) ac_try_echo=$ac_try;;
24909
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24910
$as_echo "$ac_try_echo") >&5
24911
(eval "$ac_link") 2>conftest.er1
24913
grep -v '^ *+' conftest.er1 >conftest.err
24915
cat conftest.err >&5
24916
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24917
(exit $ac_status); } && {
24918
test -z "$ac_c_werror_flag" ||
24919
test ! -s conftest.err
24920
} && test -s conftest$ac_exeext && {
24921
test "$cross_compiling" = yes ||
24922
$as_test_x conftest$ac_exeext
24925
lt_aix_libpath_sed='
24926
/Import File Strings/,/^$/ {
24932
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
24933
# Check for a 64-bit object if we didn't find anything.
24934
if test -z "$aix_libpath"; then
24935
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
24938
$as_echo "$as_me: failed program was:" >&5
24939
sed 's/^/| /' conftest.$ac_ext >&5
24944
rm -rf conftest.dSYM
24945
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24946
conftest$ac_exeext conftest.$ac_ext
24947
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24949
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24950
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"
24952
if test "$host_cpu" = ia64; then
24953
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24954
allow_undefined_flag_GCJ="-z nodefs"
24955
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"
24957
# Determine the default libpath from the value encoded in an empty executable.
24958
cat >conftest.$ac_ext <<_ACEOF
24961
cat confdefs.h >>conftest.$ac_ext
24962
cat >>conftest.$ac_ext <<_ACEOF
24963
/* end confdefs.h. */
24973
rm -f conftest.$ac_objext conftest$ac_exeext
24974
if { (ac_try="$ac_link"
24975
case "(($ac_try" in
24976
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24977
*) ac_try_echo=$ac_try;;
24979
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24980
$as_echo "$ac_try_echo") >&5
24981
(eval "$ac_link") 2>conftest.er1
24983
grep -v '^ *+' conftest.er1 >conftest.err
24985
cat conftest.err >&5
24986
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24987
(exit $ac_status); } && {
24988
test -z "$ac_c_werror_flag" ||
24989
test ! -s conftest.err
24990
} && test -s conftest$ac_exeext && {
24991
test "$cross_compiling" = yes ||
24992
$as_test_x conftest$ac_exeext
24995
lt_aix_libpath_sed='
24996
/Import File Strings/,/^$/ {
25002
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
25003
# Check for a 64-bit object if we didn't find anything.
25004
if test -z "$aix_libpath"; then
25005
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
25008
$as_echo "$as_me: failed program was:" >&5
25009
sed 's/^/| /' conftest.$ac_ext >&5
25014
rm -rf conftest.dSYM
25015
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25016
conftest$ac_exeext conftest.$ac_ext
25017
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25019
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25020
# Warning - without using the other run time loading flags,
25021
# -berok will link without error, but may produce a broken library.
25022
no_undefined_flag_GCJ=' ${wl}-bernotok'
25023
allow_undefined_flag_GCJ=' ${wl}-berok'
25024
# Exported symbols can be pulled into shared objects from archives
25025
whole_archive_flag_spec_GCJ='$convenience'
25026
archive_cmds_need_lc_GCJ=yes
25027
# This is similar to how AIX traditionally builds its shared libraries.
25028
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'
25034
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)'
25035
hardcode_libdir_flag_spec_GCJ='-L$libdir'
25036
hardcode_minus_L_GCJ=yes
25037
# see comment about different semantics on the GNU ld section
25042
export_dynamic_flag_spec_GCJ=-rdynamic
25045
cygwin* | mingw* | pw32*)
25046
# When not using gcc, we currently assume that we are using
25047
# Microsoft Visual C++.
25048
# hardcode_libdir_flag_spec is actually meaningless, as there is
25049
# no search path for DLLs.
25050
hardcode_libdir_flag_spec_GCJ=' '
25051
allow_undefined_flag_GCJ=unsupported
25052
# Tell ltmain to make .lib files, not .a files.
25054
# Tell ltmain to make .dll files, not .so files.
25056
# FIXME: Setting linknames here is a bad hack.
25057
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
25058
# The linker will automatically build a .lib file if we build a DLL.
25059
old_archive_From_new_cmds_GCJ='true'
25060
# FIXME: Should let the user specify the lib program.
25061
old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
25062
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
25063
enable_shared_with_static_runtimes_GCJ=yes
25066
darwin* | rhapsody*)
25068
rhapsody* | darwin1.[012])
25069
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25072
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25073
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25075
case ${MACOSX_DEPLOYMENT_TARGET} in
25077
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25080
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25086
archive_cmds_need_lc_GCJ=no
25087
hardcode_direct_GCJ=no
25088
hardcode_automatic_GCJ=yes
25089
hardcode_shlibpath_var_GCJ=unsupported
25090
whole_archive_flag_spec_GCJ=''
25091
link_all_deplibs_GCJ=yes
25092
if test "$GCC" = yes ; then
25093
output_verbose_link_cmd='echo'
25094
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}"
25095
module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
25096
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}"
25097
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}"
25099
case $cc_basename in
25101
output_verbose_link_cmd='echo'
25102
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
25103
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25104
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25105
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}'
25106
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}'
25116
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25117
hardcode_libdir_flag_spec_GCJ='-L$libdir'
25118
hardcode_shlibpath_var_GCJ=no
25125
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25126
# support. Future versions do this automatically, but an explicit c++rt0.o
25127
# does not break anything, and helps significantly (at the cost of a little
25130
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25131
hardcode_libdir_flag_spec_GCJ='-R$libdir'
25132
hardcode_direct_GCJ=yes
25133
hardcode_shlibpath_var_GCJ=no
25136
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
25138
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25139
hardcode_direct_GCJ=yes
25140
hardcode_minus_L_GCJ=yes
25141
hardcode_shlibpath_var_GCJ=no
25144
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25145
freebsd* | dragonfly*)
25146
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25147
hardcode_libdir_flag_spec_GCJ='-R$libdir'
25148
hardcode_direct_GCJ=yes
25149
hardcode_shlibpath_var_GCJ=no
25153
if test "$GCC" = yes; then
25154
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'
25156
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'
25158
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25159
hardcode_libdir_separator_GCJ=:
25160
hardcode_direct_GCJ=yes
25162
# hardcode_minus_L: Not really in the search PATH,
25163
# but as the default location of the library.
25164
hardcode_minus_L_GCJ=yes
25165
export_dynamic_flag_spec_GCJ='${wl}-E'
25169
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25170
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25172
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25174
if test "$with_gnu_ld" = no; then
25175
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25176
hardcode_libdir_separator_GCJ=:
25178
hardcode_direct_GCJ=yes
25179
export_dynamic_flag_spec_GCJ='${wl}-E'
25181
# hardcode_minus_L: Not really in the search PATH,
25182
# but as the default location of the library.
25183
hardcode_minus_L_GCJ=yes
25188
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25191
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25194
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25197
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25203
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25206
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25209
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25213
if test "$with_gnu_ld" = no; then
25214
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25215
hardcode_libdir_separator_GCJ=:
25219
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25220
hardcode_direct_GCJ=no
25221
hardcode_shlibpath_var_GCJ=no
25224
hardcode_direct_GCJ=yes
25225
export_dynamic_flag_spec_GCJ='${wl}-E'
25227
# hardcode_minus_L: Not really in the search PATH,
25228
# but as the default location of the library.
25229
hardcode_minus_L_GCJ=yes
25235
irix5* | irix6* | nonstopux*)
25236
if test "$GCC" = yes; then
25237
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'
25239
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'
25240
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25242
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25243
hardcode_libdir_separator_GCJ=:
25244
link_all_deplibs_GCJ=yes
25247
netbsd* | netbsdelf*-gnu)
25248
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25249
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25251
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25253
hardcode_libdir_flag_spec_GCJ='-R$libdir'
25254
hardcode_direct_GCJ=yes
25255
hardcode_shlibpath_var_GCJ=no
25259
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25260
hardcode_direct_GCJ=yes
25261
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25262
hardcode_libdir_separator_GCJ=:
25263
hardcode_shlibpath_var_GCJ=no
25267
if test -f /usr/libexec/ld.so; then
25268
hardcode_direct_GCJ=yes
25269
hardcode_shlibpath_var_GCJ=no
25270
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25271
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25272
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25273
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25274
export_dynamic_flag_spec_GCJ='${wl}-E'
25277
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25278
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25279
hardcode_libdir_flag_spec_GCJ='-R$libdir'
25282
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25283
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25293
hardcode_libdir_flag_spec_GCJ='-L$libdir'
25294
hardcode_minus_L_GCJ=yes
25295
allow_undefined_flag_GCJ=unsupported
25296
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'
25297
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25301
if test "$GCC" = yes; then
25302
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25303
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'
25305
allow_undefined_flag_GCJ=' -expect_unresolved \*'
25306
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'
25308
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25309
hardcode_libdir_separator_GCJ=:
25312
osf4* | osf5*) # as osf3* with the addition of -msym flag
25313
if test "$GCC" = yes; then
25314
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25315
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'
25316
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25318
allow_undefined_flag_GCJ=' -expect_unresolved \*'
25319
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'
25320
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~
25321
$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'
25323
# Both c and cxx compiler support -rpath directly
25324
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25326
hardcode_libdir_separator_GCJ=:
25330
no_undefined_flag_GCJ=' -z text'
25331
if test "$GCC" = yes; then
25333
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25334
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25335
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25338
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25339
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25340
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25342
hardcode_libdir_flag_spec_GCJ='-R$libdir'
25343
hardcode_shlibpath_var_GCJ=no
25345
solaris2.[0-5] | solaris2.[0-5].*) ;;
25347
# The compiler driver will combine and reorder linker options,
25348
# but understands `-z linker_flag'. GCC discards it without `$wl',
25349
# but is careful enough not to reorder.
25350
# Supported since Solaris 2.6 (maybe 2.5.1?)
25351
if test "$GCC" = yes; then
25352
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
25354
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
25358
link_all_deplibs_GCJ=yes
25362
if test "x$host_vendor" = xsequent; then
25363
# Use $CC to link under sequent, because it throws in some extra .o
25364
# files that make .init and .fini sections work.
25365
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25367
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25369
hardcode_libdir_flag_spec_GCJ='-L$libdir'
25370
hardcode_direct_GCJ=yes
25371
hardcode_minus_L_GCJ=yes
25372
hardcode_shlibpath_var_GCJ=no
25376
case $host_vendor in
25378
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25379
hardcode_direct_GCJ=yes # is this really true???
25382
## LD is ld it makes a PLAMLIB
25383
## CC just makes a GrossModule.
25384
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25385
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25386
hardcode_direct_GCJ=no
25389
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25390
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25393
runpath_var='LD_RUN_PATH'
25394
hardcode_shlibpath_var_GCJ=no
25398
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25399
hardcode_shlibpath_var_GCJ=no
25400
export_dynamic_flag_spec_GCJ='-Bexport'
25404
if test -d /usr/nec; then
25405
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25406
hardcode_shlibpath_var_GCJ=no
25407
runpath_var=LD_RUN_PATH
25408
hardcode_runpath_var=yes
25413
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
25414
no_undefined_flag_GCJ='${wl}-z,text'
25415
archive_cmds_need_lc_GCJ=no
25416
hardcode_shlibpath_var_GCJ=no
25417
runpath_var='LD_RUN_PATH'
25419
if test "$GCC" = yes; then
25420
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25421
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25423
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25424
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25428
sysv5* | sco3.2v5* | sco5v6*)
25429
# Note: We can NOT use -z defs as we might desire, because we do not
25430
# link with -lc, and that would cause any symbols used from libc to
25431
# always be unresolved, which means just about no library would
25432
# ever link correctly. If we're not using GNU ld we use -z text
25433
# though, which does catch some bad symbols but isn't as heavy-handed
25435
no_undefined_flag_GCJ='${wl}-z,text'
25436
allow_undefined_flag_GCJ='${wl}-z,nodefs'
25437
archive_cmds_need_lc_GCJ=no
25438
hardcode_shlibpath_var_GCJ=no
25439
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25440
hardcode_libdir_separator_GCJ=':'
25441
link_all_deplibs_GCJ=yes
25442
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25443
runpath_var='LD_RUN_PATH'
25445
if test "$GCC" = yes; then
25446
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25447
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25449
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25450
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25455
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25456
hardcode_libdir_flag_spec_GCJ='-L$libdir'
25457
hardcode_shlibpath_var_GCJ=no
25466
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25467
$as_echo "$ld_shlibs_GCJ" >&6; }
25468
test "$ld_shlibs_GCJ" = no && can_build_shared=no
25471
# Do we need to explicitly link libc?
25473
case "x$archive_cmds_need_lc_GCJ" in
25475
# Assume -lc should be added
25476
archive_cmds_need_lc_GCJ=yes
25478
if test "$enable_shared" = yes && test "$GCC" = yes; then
25479
case $archive_cmds_GCJ in
25481
# FIXME: we may have to deal with multi-command sequences.
25484
# Test whether the compiler implicitly links with -lc since on some
25485
# systems, -lgcc has to come before -lc. If gcc already passes -lc
25486
# to ld, don't add -lc before -lgcc.
25487
{ $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25488
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
25490
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
25492
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25493
(eval $ac_compile) 2>&5
25495
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25496
(exit $ac_status); } 2>conftest.err; then
25499
libobjs=conftest.$ac_objext
25501
wl=$lt_prog_compiler_wl_GCJ
25502
pic_flag=$lt_prog_compiler_pic_GCJ
25508
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25509
allow_undefined_flag_GCJ=
25510
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25511
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25513
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25514
(exit $ac_status); }
25516
archive_cmds_need_lc_GCJ=no
25518
archive_cmds_need_lc_GCJ=yes
25520
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25522
cat conftest.err 1>&5
25525
{ $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25526
$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
25533
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25534
$as_echo_n "checking dynamic linker characteristics... " >&6; }
25535
library_names_spec=
25536
libname_spec='lib$name'
25540
postuninstall_cmds=
25544
shlibpath_overrides_runpath=unknown
25546
dynamic_linker="$host_os ld.so"
25547
sys_lib_dlsearch_path_spec="/lib /usr/lib"
25549
need_lib_prefix=unknown
25550
hardcode_into_libs=no
25552
# when you set need_version to no, make sure it does not cause -set_version
25553
# flags to be left without arguments
25554
need_version=unknown
25559
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25560
shlibpath_var=LIBPATH
25562
# AIX 3 has no versioning support, so we append a major version to the name.
25563
soname_spec='${libname}${release}${shared_ext}$major'
25570
hardcode_into_libs=yes
25571
if test "$host_cpu" = ia64; then
25572
# AIX 5 supports IA64
25573
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25574
shlibpath_var=LD_LIBRARY_PATH
25576
# With GCC up to 2.95.x, collect2 would create an import file
25577
# for dependence libraries. The import file would start with
25578
# the line `#! .'. This would cause the generated library to
25579
# depend on `.', always an invalid library. This was fixed in
25580
# development snapshots of GCC prior to 3.0.
25582
aix4 | aix4.[01] | aix4.[01].*)
25583
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25585
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25588
can_build_shared=no
25592
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25593
# soname into executable. Probably we can add versioning support to
25594
# collect2, so additional links can be useful in future.
25595
if test "$aix_use_runtimelinking" = yes; then
25596
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
25597
# instead of lib<name>.a to let people know that these are not
25598
# typical AIX shared libraries.
25599
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25601
# We preserve .a as extension for shared libraries through AIX4.2
25602
# and later when we are not doing run time linking.
25603
library_names_spec='${libname}${release}.a $libname.a'
25604
soname_spec='${libname}${release}${shared_ext}$major'
25606
shlibpath_var=LIBPATH
25611
library_names_spec='$libname.ixlibrary $libname.a'
25612
# Create ${libname}_ixlibrary.a entries in /sys/libs.
25613
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'
25617
library_names_spec='${libname}${shared_ext}'
25618
dynamic_linker="$host_os ld.so"
25619
shlibpath_var=LIBRARY_PATH
25625
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25626
soname_spec='${libname}${release}${shared_ext}$major'
25627
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25628
shlibpath_var=LD_LIBRARY_PATH
25629
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25630
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25631
# the default ld.so.conf also contains /usr/contrib/lib and
25632
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25633
# libtool to hard-code these into programs
25636
cygwin* | mingw* | pw32*)
25637
version_type=windows
25642
case $GCC,$host_os in
25643
yes,cygwin* | yes,mingw* | yes,pw32*)
25644
library_names_spec='$libname.dll.a'
25645
# DLL is installed to $(libdir)/../bin by postinstall_cmds
25646
postinstall_cmds='base_file=`basename \${file}`~
25647
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25648
dldir=$destdir/`dirname \$dlpath`~
25649
test -d \$dldir || mkdir -p \$dldir~
25650
$install_prog $dir/$dlname \$dldir/$dlname~
25651
chmod a+x \$dldir/$dlname'
25652
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25653
dlpath=$dir/\$dldll~
25655
shlibpath_overrides_runpath=yes
25659
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
25660
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25661
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25664
# MinGW DLLs use traditional 'lib' prefix
25665
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25666
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25667
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25668
# It is most probably a Windows format PATH printed by
25669
# mingw gcc, but we are running on Cygwin. Gcc prints its search
25670
# path with ; separators, and with drive letters. We can handle the
25671
# drive letters (cygwin fileutils understands them), so leave them,
25672
# especially as we might pass files found there to a mingw objdump,
25673
# which wouldn't understand a cygwinified path. Ahh.
25674
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25676
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25680
# pw32 DLLs use 'pw' prefix rather than 'lib'
25681
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25687
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25690
dynamic_linker='Win32 ld.exe'
25691
# FIXME: first we should search . and the directory the executable is in
25695
darwin* | rhapsody*)
25696
dynamic_linker="$host_os dyld"
25697
version_type=darwin
25700
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25701
soname_spec='${libname}${release}${major}$shared_ext'
25702
shlibpath_overrides_runpath=yes
25703
shlibpath_var=DYLD_LIBRARY_PATH
25704
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
25706
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25713
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25714
soname_spec='${libname}${release}${shared_ext}$major'
25715
shlibpath_var=LD_LIBRARY_PATH
25722
freebsd* | dragonfly*)
25723
# DragonFly does not have aout. When/if they implement a new
25724
# versioning mechanism, adjust this.
25725
if test -x /usr/bin/objformat; then
25726
objformat=`/usr/bin/objformat`
25729
freebsd[123]*) objformat=aout ;;
25730
*) objformat=elf ;;
25733
version_type=freebsd-$objformat
25734
case $version_type in
25736
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25741
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25745
shlibpath_var=LD_LIBRARY_PATH
25748
shlibpath_overrides_runpath=yes
25750
freebsd3.[01]* | freebsdelf3.[01]*)
25751
shlibpath_overrides_runpath=yes
25752
hardcode_into_libs=yes
25754
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25755
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25756
shlibpath_overrides_runpath=no
25757
hardcode_into_libs=yes
25759
*) # from 4.6 on, and DragonFly
25760
shlibpath_overrides_runpath=yes
25761
hardcode_into_libs=yes
25770
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25771
soname_spec='${libname}${release}${shared_ext}$major'
25772
shlibpath_var=LD_LIBRARY_PATH
25773
hardcode_into_libs=yes
25776
hpux9* | hpux10* | hpux11*)
25777
# Give a soname corresponding to the major version so that dld.sl refuses to
25778
# link against other versions.
25785
hardcode_into_libs=yes
25786
dynamic_linker="$host_os dld.so"
25787
shlibpath_var=LD_LIBRARY_PATH
25788
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25789
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25790
soname_spec='${libname}${release}${shared_ext}$major'
25791
if test "X$HPUX_IA64_MODE" = X32; then
25792
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25794
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25796
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25800
hardcode_into_libs=yes
25801
dynamic_linker="$host_os dld.sl"
25802
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25803
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25804
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25805
soname_spec='${libname}${release}${shared_ext}$major'
25806
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25807
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25811
dynamic_linker="$host_os dld.sl"
25812
shlibpath_var=SHLIB_PATH
25813
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25814
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25815
soname_spec='${libname}${release}${shared_ext}$major'
25818
# HP-UX runs *really* slowly unless shared libraries are mode 555.
25819
postinstall_cmds='chmod 555 $lib'
25826
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25827
soname_spec='${libname}${release}${shared_ext}$major'
25828
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25829
shlibpath_var=LD_LIBRARY_PATH
25830
shlibpath_overrides_runpath=no
25831
hardcode_into_libs=yes
25834
irix5* | irix6* | nonstopux*)
25836
nonstopux*) version_type=nonstopux ;;
25838
if test "$lt_cv_prog_gnu_ld" = yes; then
25846
soname_spec='${libname}${release}${shared_ext}$major'
25847
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25849
irix5* | nonstopux*)
25850
libsuff= shlibsuff=
25853
case $LD in # libtool.m4 will add one of these switches to LD
25854
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25855
libsuff= shlibsuff= libmagic=32-bit;;
25856
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25857
libsuff=32 shlibsuff=N32 libmagic=N32;;
25858
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25859
libsuff=64 shlibsuff=64 libmagic=64-bit;;
25860
*) libsuff= shlibsuff= libmagic=never-match;;
25864
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25865
shlibpath_overrides_runpath=no
25866
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25867
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25868
hardcode_into_libs=yes
25871
# No shared lib support for Linux oldld, aout, or coff.
25872
linux*oldld* | linux*aout* | linux*coff*)
25876
# This must be Linux ELF.
25877
linux* | k*bsd*-gnu)
25881
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25882
soname_spec='${libname}${release}${shared_ext}$major'
25883
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25884
shlibpath_var=LD_LIBRARY_PATH
25885
shlibpath_overrides_runpath=no
25886
# This implies no fast_install, which is unacceptable.
25887
# Some rework will be needed to allow for fast_install
25888
# before this can be enabled.
25889
hardcode_into_libs=yes
25891
# Append ld.so.conf contents to the search path
25892
if test -f /etc/ld.so.conf; then
25893
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' ' '`
25894
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25897
# We used to test for /lib/ld.so.1 and disable shared libraries on
25898
# powerpc, because MkLinux only supported shared libraries with the
25899
# GNU dynamic linker. Since this was broken with cross compilers,
25900
# most powerpc-linux boxes support dynamic linking these days and
25901
# people can always --disable-shared, the test was removed, and we
25902
# assume the GNU/Linux dynamic linker is in use.
25903
dynamic_linker='GNU/Linux ld.so'
25910
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25911
soname_spec='${libname}${release}${shared_ext}$major'
25912
shlibpath_var=LD_LIBRARY_PATH
25913
shlibpath_overrides_runpath=no
25914
hardcode_into_libs=yes
25915
dynamic_linker='NetBSD ld.elf_so'
25922
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25923
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25924
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25925
dynamic_linker='NetBSD (a.out) ld.so'
25927
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25928
soname_spec='${libname}${release}${shared_ext}$major'
25929
dynamic_linker='NetBSD ld.elf_so'
25931
shlibpath_var=LD_LIBRARY_PATH
25932
shlibpath_overrides_runpath=yes
25933
hardcode_into_libs=yes
25938
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25939
shlibpath_var=LD_LIBRARY_PATH
25940
shlibpath_overrides_runpath=yes
25947
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25948
soname_spec='${libname}${release}${shared_ext}$major'
25949
shlibpath_var=LD_LIBRARY_PATH
25950
shlibpath_overrides_runpath=yes
25955
sys_lib_dlsearch_path_spec="/usr/lib"
25957
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25959
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25960
*) need_version=no ;;
25962
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25963
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25964
shlibpath_var=LD_LIBRARY_PATH
25965
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25967
openbsd2.[89] | openbsd2.[89].*)
25968
shlibpath_overrides_runpath=no
25971
shlibpath_overrides_runpath=yes
25975
shlibpath_overrides_runpath=yes
25980
libname_spec='$name'
25983
library_names_spec='$libname${shared_ext} $libname.a'
25984
dynamic_linker='OS/2 ld.exe'
25985
shlibpath_var=LIBPATH
25988
osf3* | osf4* | osf5*)
25992
soname_spec='${libname}${release}${shared_ext}$major'
25993
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25994
shlibpath_var=LD_LIBRARY_PATH
25995
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25996
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26007
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26008
soname_spec='${libname}${release}${shared_ext}$major'
26009
shlibpath_var=LD_LIBRARY_PATH
26010
shlibpath_overrides_runpath=yes
26011
hardcode_into_libs=yes
26012
# ldd complains unless libraries are executable
26013
postinstall_cmds='chmod +x $lib'
26018
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26019
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26020
shlibpath_var=LD_LIBRARY_PATH
26021
shlibpath_overrides_runpath=yes
26022
if test "$with_gnu_ld" = yes; then
26030
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26031
soname_spec='${libname}${release}${shared_ext}$major'
26032
shlibpath_var=LD_LIBRARY_PATH
26033
case $host_vendor in
26035
shlibpath_overrides_runpath=no
26037
export_dynamic_flag_spec='${wl}-Blargedynsym'
26038
runpath_var=LD_RUN_PATH
26046
shlibpath_overrides_runpath=no
26047
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26053
if test -d /usr/nec ;then
26055
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26056
soname_spec='$libname${shared_ext}.$major'
26057
shlibpath_var=LD_LIBRARY_PATH
26061
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26062
version_type=freebsd-elf
26065
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26066
soname_spec='${libname}${release}${shared_ext}$major'
26067
shlibpath_var=LD_LIBRARY_PATH
26068
hardcode_into_libs=yes
26069
if test "$with_gnu_ld" = yes; then
26070
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26071
shlibpath_overrides_runpath=no
26073
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26074
shlibpath_overrides_runpath=yes
26077
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26081
sys_lib_dlsearch_path_spec='/usr/lib'
26086
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26087
soname_spec='${libname}${release}${shared_ext}$major'
26088
shlibpath_var=LD_LIBRARY_PATH
26095
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26096
$as_echo "$dynamic_linker" >&6; }
26097
test "$dynamic_linker" = no && can_build_shared=no
26099
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
26100
$as_echo_n "(cached) " >&6
26102
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
26105
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
26106
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
26107
$as_echo_n "(cached) " >&6
26109
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
26112
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
26114
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26115
if test "$GCC" = yes; then
26116
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26119
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26120
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
26121
hardcode_action_GCJ=
26122
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26123
test -n "$runpath_var_GCJ" || \
26124
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26126
# We can hardcode non-existant directories.
26127
if test "$hardcode_direct_GCJ" != no &&
26128
# If the only mechanism to avoid hardcoding is shlibpath_var, we
26129
# have to relink, otherwise we might link with an installed library
26130
# when we should be linking with a yet-to-be-installed one
26131
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26132
test "$hardcode_minus_L_GCJ" != no; then
26133
# Linking always hardcodes the temporary library directory.
26134
hardcode_action_GCJ=relink
26136
# We can link without hardcoding, and we can hardcode nonexisting dirs.
26137
hardcode_action_GCJ=immediate
26140
# We cannot hardcode anything, or else we can only hardcode existing
26142
hardcode_action_GCJ=unsupported
26144
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26145
$as_echo "$hardcode_action_GCJ" >&6; }
26147
if test "$hardcode_action_GCJ" = relink; then
26148
# Fast installation is not supported
26149
enable_fast_install=no
26150
elif test "$shlibpath_overrides_runpath" = yes ||
26151
test "$enable_shared" = no; then
26152
# Fast installation is not necessary
26153
enable_fast_install=needless
26157
# The else clause should only fire when bootstrapping the
26158
# libtool distribution, otherwise you forgot to ship ltmain.sh
26159
# with your package, and you will get complaints that there are
26160
# no rules to generate ltmain.sh.
26161
if test -f "$ltmain"; then
26162
# See if we are running on zsh, and set the options which allow our commands through
26163
# without removal of \ escapes.
26164
if test -n "${ZSH_VERSION+set}" ; then
26165
setopt NO_GLOB_SUBST
26167
# Now quote all the things that may contain metacharacters while being
26168
# careful not to overquote the AC_SUBSTed values. We take copies of the
26169
# variables and quote the copies for generation of the libtool script.
26170
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26172
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26173
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26174
deplibs_check_method reload_flag reload_cmds need_locks \
26175
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26176
lt_cv_sys_global_symbol_to_c_name_address \
26177
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26178
old_postinstall_cmds old_postuninstall_cmds \
26182
lt_prog_compiler_wl_GCJ \
26183
lt_prog_compiler_pic_GCJ \
26184
lt_prog_compiler_static_GCJ \
26185
lt_prog_compiler_no_builtin_flag_GCJ \
26186
export_dynamic_flag_spec_GCJ \
26187
thread_safe_flag_spec_GCJ \
26188
whole_archive_flag_spec_GCJ \
26189
enable_shared_with_static_runtimes_GCJ \
26190
old_archive_cmds_GCJ \
26191
old_archive_from_new_cmds_GCJ \
26192
predep_objects_GCJ \
26193
postdep_objects_GCJ \
26196
compiler_lib_search_path_GCJ \
26197
compiler_lib_search_dirs_GCJ \
26199
archive_expsym_cmds_GCJ \
26200
postinstall_cmds_GCJ \
26201
postuninstall_cmds_GCJ \
26202
old_archive_from_expsyms_cmds_GCJ \
26203
allow_undefined_flag_GCJ \
26204
no_undefined_flag_GCJ \
26205
export_symbols_cmds_GCJ \
26206
hardcode_libdir_flag_spec_GCJ \
26207
hardcode_libdir_flag_spec_ld_GCJ \
26208
hardcode_libdir_separator_GCJ \
26209
hardcode_automatic_GCJ \
26211
module_expsym_cmds_GCJ \
26212
lt_cv_prog_compiler_c_o_GCJ \
26213
fix_srcfile_path_GCJ \
26214
exclude_expsyms_GCJ \
26215
include_expsyms_GCJ; do
26218
old_archive_cmds_GCJ | \
26219
old_archive_from_new_cmds_GCJ | \
26220
archive_cmds_GCJ | \
26221
archive_expsym_cmds_GCJ | \
26222
module_cmds_GCJ | \
26223
module_expsym_cmds_GCJ | \
26224
old_archive_from_expsyms_cmds_GCJ | \
26225
export_symbols_cmds_GCJ | \
26226
extract_expsyms_cmds | reload_cmds | finish_cmds | \
26227
postinstall_cmds | postuninstall_cmds | \
26228
old_postinstall_cmds | old_postuninstall_cmds | \
26229
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26230
# Double-quote double-evaled strings.
26231
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26234
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26240
*'\$0 --fallback-echo"')
26241
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26247
cat <<__EOF__ >> "$cfgfile"
26248
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26250
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26252
# Shell to use when invoking shell scripts.
26255
# Whether or not to build shared libraries.
26256
build_libtool_libs=$enable_shared
26258
# Whether or not to build static libraries.
26259
build_old_libs=$enable_static
26261
# Whether or not to add -lc for building shared libraries.
26262
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26264
# Whether or not to disallow shared libs when runtime libs are static
26265
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26267
# Whether or not to optimize for fast installation.
26268
fast_install=$enable_fast_install
26271
host_alias=$host_alias
26275
# The build system.
26276
build_alias=$build_alias
26280
# An echo program that does not interpret backslashes.
26285
AR_FLAGS=$lt_AR_FLAGS
26290
# LTCC compiler flags.
26291
LTCFLAGS=$lt_LTCFLAGS
26293
# A language-specific compiler.
26294
CC=$lt_compiler_GCJ
26296
# Is the compiler the GNU C compiler?
26302
# The linker used to build libraries.
26305
# Whether we need hard or soft links.
26308
# A BSD-compatible nm program.
26311
# A symbol stripping program
26314
# Used to examine libraries when file_magic_cmd begins "file"
26315
MAGIC_CMD=$MAGIC_CMD
26317
# Used on cygwin: DLL creation program.
26320
# Used on cygwin: object dumper.
26323
# Used on cygwin: assembler.
26326
# The name of the directory that contains temporary libtool files.
26329
# How to create reloadable object files.
26330
reload_flag=$lt_reload_flag
26331
reload_cmds=$lt_reload_cmds
26333
# How to pass a linker flag through the compiler.
26334
wl=$lt_lt_prog_compiler_wl_GCJ
26336
# Object file suffix (normally "o").
26337
objext="$ac_objext"
26339
# Old archive suffix (normally "a").
26342
# Shared library suffix (normally ".so").
26343
shrext_cmds='$shrext_cmds'
26345
# Executable file suffix (normally "").
26348
# Additional compiler flags for building library objects.
26349
pic_flag=$lt_lt_prog_compiler_pic_GCJ
26352
# What is the maximum length of a command?
26353
max_cmd_len=$lt_cv_sys_max_cmd_len
26355
# Does compiler simultaneously support -c and -o options?
26356
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26358
# Must we lock files when doing compilation?
26359
need_locks=$lt_need_locks
26361
# Do we need the lib prefix for modules?
26362
need_lib_prefix=$need_lib_prefix
26364
# Do we need a version for libraries?
26365
need_version=$need_version
26367
# Whether dlopen is supported.
26368
dlopen_support=$enable_dlopen
26370
# Whether dlopen of programs is supported.
26371
dlopen_self=$enable_dlopen_self
26373
# Whether dlopen of statically linked programs is supported.
26374
dlopen_self_static=$enable_dlopen_self_static
26376
# Compiler flag to prevent dynamic linking.
26377
link_static_flag=$lt_lt_prog_compiler_static_GCJ
26379
# Compiler flag to turn off builtin functions.
26380
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26382
# Compiler flag to allow reflexive dlopens.
26383
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26385
# Compiler flag to generate shared objects directly from archives.
26386
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26388
# Compiler flag to generate thread-safe objects.
26389
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26391
# Library versioning type.
26392
version_type=$version_type
26394
# Format of library name prefix.
26395
libname_spec=$lt_libname_spec
26397
# List of archive names. First name is the real one, the rest are links.
26398
# The last name is the one that the linker finds with -lNAME.
26399
library_names_spec=$lt_library_names_spec
26401
# The coded name of the library, if different from the real name.
26402
soname_spec=$lt_soname_spec
26404
# Commands used to build and install an old-style archive.
26406
old_archive_cmds=$lt_old_archive_cmds_GCJ
26407
old_postinstall_cmds=$lt_old_postinstall_cmds
26408
old_postuninstall_cmds=$lt_old_postuninstall_cmds
26410
# Create an old-style archive from a shared archive.
26411
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26413
# Create a temporary old-style archive to link instead of a shared archive.
26414
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26416
# Commands used to build and install a shared archive.
26417
archive_cmds=$lt_archive_cmds_GCJ
26418
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26419
postinstall_cmds=$lt_postinstall_cmds
26420
postuninstall_cmds=$lt_postuninstall_cmds
26422
# Commands used to build a loadable module (assumed same as above if empty)
26423
module_cmds=$lt_module_cmds_GCJ
26424
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26426
# Commands to strip libraries.
26427
old_striplib=$lt_old_striplib
26428
striplib=$lt_striplib
26430
# Dependencies to place before the objects being linked to create a
26432
predep_objects=$lt_predep_objects_GCJ
26434
# Dependencies to place after the objects being linked to create a
26436
postdep_objects=$lt_postdep_objects_GCJ
26438
# Dependencies to place before the objects being linked to create a
26440
predeps=$lt_predeps_GCJ
26442
# Dependencies to place after the objects being linked to create a
26444
postdeps=$lt_postdeps_GCJ
26446
# The directories searched by this compiler when creating a shared
26448
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
26450
# The library search path used internally by the compiler when linking
26451
# a shared library.
26452
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26454
# Method to check whether dependent libraries are shared objects.
26455
deplibs_check_method=$lt_deplibs_check_method
26457
# Command to use when deplibs_check_method == file_magic.
26458
file_magic_cmd=$lt_file_magic_cmd
26460
# Flag that allows shared libraries with undefined symbols to be built.
26461
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26463
# Flag that forces no undefined symbols.
26464
no_undefined_flag=$lt_no_undefined_flag_GCJ
26466
# Commands used to finish a libtool library installation in a directory.
26467
finish_cmds=$lt_finish_cmds
26469
# Same as above, but a single script fragment to be evaled but not shown.
26470
finish_eval=$lt_finish_eval
26472
# Take the output of nm and produce a listing of raw symbols and C names.
26473
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26475
# Transform the output of nm in a proper C declaration
26476
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26478
# Transform the output of nm in a C name address pair
26479
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26481
# This is the shared library runtime path variable.
26482
runpath_var=$runpath_var
26484
# This is the shared library path variable.
26485
shlibpath_var=$shlibpath_var
26487
# Is shlibpath searched before the hard-coded library search path?
26488
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26490
# How to hardcode a shared library path into an executable.
26491
hardcode_action=$hardcode_action_GCJ
26493
# Whether we should hardcode library paths into libraries.
26494
hardcode_into_libs=$hardcode_into_libs
26496
# Flag to hardcode \$libdir into a binary during linking.
26497
# This must work even if \$libdir does not exist.
26498
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26500
# If ld is used when linking, flag to hardcode \$libdir into
26501
# a binary during linking. This must work even if \$libdir does
26503
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26505
# Whether we need a single -rpath flag with a separated argument.
26506
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26508
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26509
# resulting binary.
26510
hardcode_direct=$hardcode_direct_GCJ
26512
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26513
# resulting binary.
26514
hardcode_minus_L=$hardcode_minus_L_GCJ
26516
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26517
# the resulting binary.
26518
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26520
# Set to yes if building a shared library automatically hardcodes DIR into the library
26521
# and all subsequent libraries and executables linked against it.
26522
hardcode_automatic=$hardcode_automatic_GCJ
26524
# Variables whose values should be saved in libtool wrapper scripts and
26525
# restored at relink time.
26526
variables_saved_for_relink="$variables_saved_for_relink"
26528
# Whether libtool must link a program against all its dependency libraries.
26529
link_all_deplibs=$link_all_deplibs_GCJ
26531
# Compile-time system search path for libraries
26532
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26534
# Run-time system search path for libraries
26535
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26537
# Fix the shell variable \$srcfile for the compiler.
26538
fix_srcfile_path=$lt_fix_srcfile_path
26540
# Set to yes if exported symbols are required.
26541
always_export_symbols=$always_export_symbols_GCJ
26543
# The commands to list exported symbols.
26544
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26546
# The commands to extract the exported symbol list from a shared archive.
26547
extract_expsyms_cmds=$lt_extract_expsyms_cmds
26549
# Symbols that should not be listed in the preloaded symbols.
26550
exclude_expsyms=$lt_exclude_expsyms_GCJ
26552
# Symbols that must always be exported.
26553
include_expsyms=$lt_include_expsyms_GCJ
26555
# ### END LIBTOOL TAG CONFIG: $tagname
26561
# If there is no Makefile yet, we rely on a make rule to execute
26562
# `config.status --recheck' to rerun these tests and create the
26563
# libtool script then.
26564
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26565
if test -f "$ltmain_in"; then
26566
test -f Makefile && make "$ltmain"
26572
ac_cpp='$CPP $CPPFLAGS'
26573
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26574
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26575
ac_compiler_gnu=$ac_cv_c_compiler_gnu
26587
# Source file extension for RC test sources.
26590
# Object file extension for compiled RC test sources.
26594
# Code to be used in simple compile tests
26595
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
26597
# Code to be used in simple link tests
26598
lt_simple_link_test_code="$lt_simple_compile_test_code"
26600
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26602
# If no C compiler was specified, use CC.
26605
# If no C compiler flags were specified, use CFLAGS.
26606
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26608
# Allow CC to be a program name with arguments.
26612
# save warnings/boilerplate of simple test code
26613
ac_outfile=conftest.$ac_objext
26614
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
26615
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26616
_lt_compiler_boilerplate=`cat conftest.err`
26619
ac_outfile=conftest.$ac_objext
26620
echo "$lt_simple_link_test_code" >conftest.$ac_ext
26621
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26622
_lt_linker_boilerplate=`cat conftest.err`
26626
# Allow CC to be a program name with arguments.
26631
for cc_temp in $compiler""; do
26633
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26634
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26639
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26641
lt_cv_prog_compiler_c_o_RC=yes
26643
# The else clause should only fire when bootstrapping the
26644
# libtool distribution, otherwise you forgot to ship ltmain.sh
26645
# with your package, and you will get complaints that there are
26646
# no rules to generate ltmain.sh.
26647
if test -f "$ltmain"; then
26648
# See if we are running on zsh, and set the options which allow our commands through
26649
# without removal of \ escapes.
26650
if test -n "${ZSH_VERSION+set}" ; then
26651
setopt NO_GLOB_SUBST
26653
# Now quote all the things that may contain metacharacters while being
26654
# careful not to overquote the AC_SUBSTed values. We take copies of the
26655
# variables and quote the copies for generation of the libtool script.
26656
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26658
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26659
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26660
deplibs_check_method reload_flag reload_cmds need_locks \
26661
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26662
lt_cv_sys_global_symbol_to_c_name_address \
26663
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26664
old_postinstall_cmds old_postuninstall_cmds \
26668
lt_prog_compiler_wl_RC \
26669
lt_prog_compiler_pic_RC \
26670
lt_prog_compiler_static_RC \
26671
lt_prog_compiler_no_builtin_flag_RC \
26672
export_dynamic_flag_spec_RC \
26673
thread_safe_flag_spec_RC \
26674
whole_archive_flag_spec_RC \
26675
enable_shared_with_static_runtimes_RC \
26676
old_archive_cmds_RC \
26677
old_archive_from_new_cmds_RC \
26678
predep_objects_RC \
26679
postdep_objects_RC \
26682
compiler_lib_search_path_RC \
26683
compiler_lib_search_dirs_RC \
26685
archive_expsym_cmds_RC \
26686
postinstall_cmds_RC \
26687
postuninstall_cmds_RC \
26688
old_archive_from_expsyms_cmds_RC \
26689
allow_undefined_flag_RC \
26690
no_undefined_flag_RC \
26691
export_symbols_cmds_RC \
26692
hardcode_libdir_flag_spec_RC \
26693
hardcode_libdir_flag_spec_ld_RC \
26694
hardcode_libdir_separator_RC \
26695
hardcode_automatic_RC \
26697
module_expsym_cmds_RC \
26698
lt_cv_prog_compiler_c_o_RC \
26699
fix_srcfile_path_RC \
26700
exclude_expsyms_RC \
26701
include_expsyms_RC; do
26704
old_archive_cmds_RC | \
26705
old_archive_from_new_cmds_RC | \
26706
archive_cmds_RC | \
26707
archive_expsym_cmds_RC | \
26709
module_expsym_cmds_RC | \
26710
old_archive_from_expsyms_cmds_RC | \
26711
export_symbols_cmds_RC | \
26712
extract_expsyms_cmds | reload_cmds | finish_cmds | \
26713
postinstall_cmds | postuninstall_cmds | \
26714
old_postinstall_cmds | old_postuninstall_cmds | \
26715
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26716
# Double-quote double-evaled strings.
26717
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26720
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26726
*'\$0 --fallback-echo"')
26727
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26733
cat <<__EOF__ >> "$cfgfile"
26734
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26736
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26738
# Shell to use when invoking shell scripts.
26741
# Whether or not to build shared libraries.
26742
build_libtool_libs=$enable_shared
26744
# Whether or not to build static libraries.
26745
build_old_libs=$enable_static
26747
# Whether or not to add -lc for building shared libraries.
26748
build_libtool_need_lc=$archive_cmds_need_lc_RC
26750
# Whether or not to disallow shared libs when runtime libs are static
26751
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26753
# Whether or not to optimize for fast installation.
26754
fast_install=$enable_fast_install
26757
host_alias=$host_alias
26761
# The build system.
26762
build_alias=$build_alias
26766
# An echo program that does not interpret backslashes.
26771
AR_FLAGS=$lt_AR_FLAGS
26776
# LTCC compiler flags.
26777
LTCFLAGS=$lt_LTCFLAGS
26779
# A language-specific compiler.
26782
# Is the compiler the GNU C compiler?
26788
# The linker used to build libraries.
26791
# Whether we need hard or soft links.
26794
# A BSD-compatible nm program.
26797
# A symbol stripping program
26800
# Used to examine libraries when file_magic_cmd begins "file"
26801
MAGIC_CMD=$MAGIC_CMD
26803
# Used on cygwin: DLL creation program.
26806
# Used on cygwin: object dumper.
26809
# Used on cygwin: assembler.
26812
# The name of the directory that contains temporary libtool files.
26815
# How to create reloadable object files.
26816
reload_flag=$lt_reload_flag
26817
reload_cmds=$lt_reload_cmds
26819
# How to pass a linker flag through the compiler.
26820
wl=$lt_lt_prog_compiler_wl_RC
26822
# Object file suffix (normally "o").
26823
objext="$ac_objext"
26825
# Old archive suffix (normally "a").
26828
# Shared library suffix (normally ".so").
26829
shrext_cmds='$shrext_cmds'
26831
# Executable file suffix (normally "").
26834
# Additional compiler flags for building library objects.
26835
pic_flag=$lt_lt_prog_compiler_pic_RC
26838
# What is the maximum length of a command?
26839
max_cmd_len=$lt_cv_sys_max_cmd_len
26841
# Does compiler simultaneously support -c and -o options?
26842
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26844
# Must we lock files when doing compilation?
26845
need_locks=$lt_need_locks
26847
# Do we need the lib prefix for modules?
26848
need_lib_prefix=$need_lib_prefix
26850
# Do we need a version for libraries?
26851
need_version=$need_version
26853
# Whether dlopen is supported.
26854
dlopen_support=$enable_dlopen
26856
# Whether dlopen of programs is supported.
26857
dlopen_self=$enable_dlopen_self
26859
# Whether dlopen of statically linked programs is supported.
26860
dlopen_self_static=$enable_dlopen_self_static
26862
# Compiler flag to prevent dynamic linking.
26863
link_static_flag=$lt_lt_prog_compiler_static_RC
26865
# Compiler flag to turn off builtin functions.
26866
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26868
# Compiler flag to allow reflexive dlopens.
26869
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26871
# Compiler flag to generate shared objects directly from archives.
26872
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26874
# Compiler flag to generate thread-safe objects.
26875
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26877
# Library versioning type.
26878
version_type=$version_type
26880
# Format of library name prefix.
26881
libname_spec=$lt_libname_spec
26883
# List of archive names. First name is the real one, the rest are links.
26884
# The last name is the one that the linker finds with -lNAME.
26885
library_names_spec=$lt_library_names_spec
26887
# The coded name of the library, if different from the real name.
26888
soname_spec=$lt_soname_spec
26890
# Commands used to build and install an old-style archive.
26892
old_archive_cmds=$lt_old_archive_cmds_RC
26893
old_postinstall_cmds=$lt_old_postinstall_cmds
26894
old_postuninstall_cmds=$lt_old_postuninstall_cmds
26896
# Create an old-style archive from a shared archive.
26897
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26899
# Create a temporary old-style archive to link instead of a shared archive.
26900
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26902
# Commands used to build and install a shared archive.
26903
archive_cmds=$lt_archive_cmds_RC
26904
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26905
postinstall_cmds=$lt_postinstall_cmds
26906
postuninstall_cmds=$lt_postuninstall_cmds
26908
# Commands used to build a loadable module (assumed same as above if empty)
26909
module_cmds=$lt_module_cmds_RC
26910
module_expsym_cmds=$lt_module_expsym_cmds_RC
26912
# Commands to strip libraries.
26913
old_striplib=$lt_old_striplib
26914
striplib=$lt_striplib
26916
# Dependencies to place before the objects being linked to create a
26918
predep_objects=$lt_predep_objects_RC
26920
# Dependencies to place after the objects being linked to create a
26922
postdep_objects=$lt_postdep_objects_RC
26924
# Dependencies to place before the objects being linked to create a
26926
predeps=$lt_predeps_RC
26928
# Dependencies to place after the objects being linked to create a
26930
postdeps=$lt_postdeps_RC
26932
# The directories searched by this compiler when creating a shared
26934
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
26936
# The library search path used internally by the compiler when linking
26937
# a shared library.
26938
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26940
# Method to check whether dependent libraries are shared objects.
26941
deplibs_check_method=$lt_deplibs_check_method
26943
# Command to use when deplibs_check_method == file_magic.
26944
file_magic_cmd=$lt_file_magic_cmd
26946
# Flag that allows shared libraries with undefined symbols to be built.
26947
allow_undefined_flag=$lt_allow_undefined_flag_RC
26949
# Flag that forces no undefined symbols.
26950
no_undefined_flag=$lt_no_undefined_flag_RC
26952
# Commands used to finish a libtool library installation in a directory.
26953
finish_cmds=$lt_finish_cmds
26955
# Same as above, but a single script fragment to be evaled but not shown.
26956
finish_eval=$lt_finish_eval
26958
# Take the output of nm and produce a listing of raw symbols and C names.
26959
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26961
# Transform the output of nm in a proper C declaration
26962
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26964
# Transform the output of nm in a C name address pair
26965
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26967
# This is the shared library runtime path variable.
26968
runpath_var=$runpath_var
26970
# This is the shared library path variable.
26971
shlibpath_var=$shlibpath_var
26973
# Is shlibpath searched before the hard-coded library search path?
26974
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26976
# How to hardcode a shared library path into an executable.
26977
hardcode_action=$hardcode_action_RC
26979
# Whether we should hardcode library paths into libraries.
26980
hardcode_into_libs=$hardcode_into_libs
26982
# Flag to hardcode \$libdir into a binary during linking.
26983
# This must work even if \$libdir does not exist.
26984
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26986
# If ld is used when linking, flag to hardcode \$libdir into
26987
# a binary during linking. This must work even if \$libdir does
26989
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26991
# Whether we need a single -rpath flag with a separated argument.
26992
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26994
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26995
# resulting binary.
26996
hardcode_direct=$hardcode_direct_RC
26998
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26999
# resulting binary.
27000
hardcode_minus_L=$hardcode_minus_L_RC
27002
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27003
# the resulting binary.
27004
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
27006
# Set to yes if building a shared library automatically hardcodes DIR into the library
27007
# and all subsequent libraries and executables linked against it.
27008
hardcode_automatic=$hardcode_automatic_RC
27010
# Variables whose values should be saved in libtool wrapper scripts and
27011
# restored at relink time.
27012
variables_saved_for_relink="$variables_saved_for_relink"
27014
# Whether libtool must link a program against all its dependency libraries.
27015
link_all_deplibs=$link_all_deplibs_RC
27017
# Compile-time system search path for libraries
27018
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27020
# Run-time system search path for libraries
27021
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27023
# Fix the shell variable \$srcfile for the compiler.
27024
fix_srcfile_path=$lt_fix_srcfile_path
27026
# Set to yes if exported symbols are required.
27027
always_export_symbols=$always_export_symbols_RC
27029
# The commands to list exported symbols.
27030
export_symbols_cmds=$lt_export_symbols_cmds_RC
27032
# The commands to extract the exported symbol list from a shared archive.
27033
extract_expsyms_cmds=$lt_extract_expsyms_cmds
27035
# Symbols that should not be listed in the preloaded symbols.
27036
exclude_expsyms=$lt_exclude_expsyms_RC
27038
# Symbols that must always be exported.
27039
include_expsyms=$lt_include_expsyms_RC
27041
# ### END LIBTOOL TAG CONFIG: $tagname
27047
# If there is no Makefile yet, we rely on a make rule to execute
27048
# `config.status --recheck' to rerun these tests and create the
27049
# libtool script then.
27050
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27051
if test -f "$ltmain_in"; then
27052
test -f Makefile && make "$ltmain"
27058
ac_cpp='$CPP $CPPFLAGS'
27059
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27060
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27061
ac_compiler_gnu=$ac_cv_c_compiler_gnu
27068
{ { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27069
$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27070
{ (exit 1); exit 1; }; }
27074
# Append the new tag name to the list of available tags.
27075
if test -n "$tagname" ; then
27076
available_tags="$available_tags $tagname"
27082
# Now substitute the updated list of available tags.
27083
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27084
mv "${ofile}T" "$ofile"
27088
{ { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27089
$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27090
{ (exit 1); exit 1; }; }
27096
# This can be used to rebuild libtool when needed
27097
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27099
# Always use our own libtool.
27100
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
27102
# Prevent multiple expansion
18773
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18774
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
18775
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18776
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18777
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18778
{ $as_echo "$as_me:$LINENO: result: yes" >&5
18779
$as_echo "yes" >&6; }
18781
# FIXME - insert some real tests, host_os isn't really good enough
18784
if test -n "$STRIP" ; then
18785
striplib="$STRIP -x"
18786
old_striplib="$STRIP -S"
18787
{ $as_echo "$as_me:$LINENO: result: yes" >&5
18788
$as_echo "yes" >&6; }
18790
{ $as_echo "$as_me:$LINENO: result: no" >&5
18791
$as_echo "no" >&6; }
18795
{ $as_echo "$as_me:$LINENO: result: no" >&5
18796
$as_echo "no" >&6; }
18812
# Report which library types will actually be built
18813
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18814
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
18815
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
18816
$as_echo "$can_build_shared" >&6; }
18818
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18819
$as_echo_n "checking whether to build shared libraries... " >&6; }
18820
test "$can_build_shared" = "no" && enable_shared=no
18822
# On AIX, shared libraries and static libraries use the same namespace, and
18823
# are all built from PIC.
18826
test "$enable_shared" = yes && enable_static=no
18827
if test -n "$RANLIB"; then
18828
archive_cmds="$archive_cmds~\$RANLIB \$lib"
18829
postinstall_cmds='$RANLIB $lib'
18834
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18835
test "$enable_shared" = yes && enable_static=no
18839
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
18840
$as_echo "$enable_shared" >&6; }
18842
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18843
$as_echo_n "checking whether to build static libraries... " >&6; }
18844
# Make sure either enable_shared or enable_static is yes.
18845
test "$enable_shared" = yes || enable_static=yes
18846
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
18847
$as_echo "$enable_static" >&6; }
18854
ac_cpp='$CPP $CPPFLAGS'
18855
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18856
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18857
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18873
ac_config_commands="$ac_config_commands libtool"
18878
# Only expand once:
27123
18881
if test "x$CC" != xcc; then