10597
# Report which library types will actually be built
10598
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10599
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10600
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10601
$as_echo "$can_build_shared" >&6; }
10603
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10604
$as_echo_n "checking whether to build shared libraries... " >&6; }
10605
test "$can_build_shared" = "no" && enable_shared=no
10607
# On AIX, shared libraries and static libraries use the same namespace, and
10608
# are all built from PIC.
10611
test "$enable_shared" = yes && enable_static=no
10612
if test -n "$RANLIB"; then
10613
archive_cmds="$archive_cmds~\$RANLIB \$lib"
10614
postinstall_cmds='$RANLIB $lib'
10619
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10620
test "$enable_shared" = yes && enable_static=no
10624
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10625
$as_echo "$enable_shared" >&6; }
10627
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10628
$as_echo_n "checking whether to build static libraries... " >&6; }
10629
# Make sure either enable_shared or enable_static is yes.
10630
test "$enable_shared" = yes || enable_static=yes
10631
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10632
$as_echo "$enable_static" >&6; }
10634
# The else clause should only fire when bootstrapping the
10635
# libtool distribution, otherwise you forgot to ship ltmain.sh
10636
# with your package, and you will get complaints that there are
10637
# no rules to generate ltmain.sh.
10638
if test -f "$ltmain"; then
10639
# See if we are running on zsh, and set the options which allow our commands through
10640
# without removal of \ escapes.
10641
if test -n "${ZSH_VERSION+set}" ; then
10642
setopt NO_GLOB_SUBST
10644
# Now quote all the things that may contain metacharacters while being
10645
# careful not to overquote the AC_SUBSTed values. We take copies of the
10646
# variables and quote the copies for generation of the libtool script.
10647
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10649
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10650
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10651
deplibs_check_method reload_flag reload_cmds need_locks \
10652
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10653
lt_cv_sys_global_symbol_to_c_name_address \
10654
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10655
old_postinstall_cmds old_postuninstall_cmds \
10659
lt_prog_compiler_wl \
10660
lt_prog_compiler_pic \
10661
lt_prog_compiler_static \
10662
lt_prog_compiler_no_builtin_flag \
10663
export_dynamic_flag_spec \
10664
thread_safe_flag_spec \
10665
whole_archive_flag_spec \
10666
enable_shared_with_static_runtimes \
10668
old_archive_from_new_cmds \
10673
compiler_lib_search_path \
10674
compiler_lib_search_dirs \
10676
archive_expsym_cmds \
10678
postuninstall_cmds \
10679
old_archive_from_expsyms_cmds \
10680
allow_undefined_flag \
10681
no_undefined_flag \
10682
export_symbols_cmds \
10683
hardcode_libdir_flag_spec \
10684
hardcode_libdir_flag_spec_ld \
10685
hardcode_libdir_separator \
10686
hardcode_automatic \
10688
module_expsym_cmds \
10689
lt_cv_prog_compiler_c_o \
10692
include_expsyms; do
10695
old_archive_cmds | \
10696
old_archive_from_new_cmds | \
10698
archive_expsym_cmds | \
10700
module_expsym_cmds | \
10701
old_archive_from_expsyms_cmds | \
10702
export_symbols_cmds | \
10703
extract_expsyms_cmds | reload_cmds | finish_cmds | \
10704
postinstall_cmds | postuninstall_cmds | \
10705
old_postinstall_cmds | old_postuninstall_cmds | \
10706
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10707
# Double-quote double-evaled strings.
10708
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10711
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10717
*'\$0 --fallback-echo"')
10718
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10722
cfgfile="${ofile}T"
10723
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10725
{ $as_echo "$as_me:$LINENO: creating $ofile" >&5
10726
$as_echo "$as_me: creating $ofile" >&6;}
10728
cat <<__EOF__ >> "$cfgfile"
10731
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10732
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10733
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10735
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10736
# Free Software Foundation, Inc.
10738
# This file is part of GNU Libtool:
10739
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10741
# This program is free software; you can redistribute it and/or modify
10742
# it under the terms of the GNU General Public License as published by
10743
# the Free Software Foundation; either version 2 of the License, or
10744
# (at your option) any later version.
10746
# This program is distributed in the hope that it will be useful, but
10747
# WITHOUT ANY WARRANTY; without even the implied warranty of
10748
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10749
# General Public License for more details.
10751
# You should have received a copy of the GNU General Public License
10752
# along with this program; if not, write to the Free Software
10753
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10755
# As a special exception to the GNU General Public License, if you
10756
# distribute this file as part of a program that contains a
10757
# configuration script generated by Autoconf, you may include it under
10758
# the same distribution terms that you use for the rest of that program.
10760
# A sed program that does not truncate output.
10763
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10764
Xsed="$SED -e 1s/^X//"
10766
# The HP-UX ksh and POSIX shell print the target directory to stdout
10767
# if CDPATH is set.
10768
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10770
# The names of the tagged configurations supported by this script.
10773
# ### BEGIN LIBTOOL CONFIG
10775
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10777
# Shell to use when invoking shell scripts.
10780
# Whether or not to build shared libraries.
10781
build_libtool_libs=$enable_shared
10783
# Whether or not to build static libraries.
10784
build_old_libs=$enable_static
10786
# Whether or not to add -lc for building shared libraries.
10787
build_libtool_need_lc=$archive_cmds_need_lc
10789
# Whether or not to disallow shared libs when runtime libs are static
10790
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10792
# Whether or not to optimize for fast installation.
10793
fast_install=$enable_fast_install
10796
host_alias=$host_alias
10800
# The build system.
10801
build_alias=$build_alias
10805
# An echo program that does not interpret backslashes.
10810
AR_FLAGS=$lt_AR_FLAGS
10815
# LTCC compiler flags.
10816
LTCFLAGS=$lt_LTCFLAGS
10818
# A language-specific compiler.
10821
# Is the compiler the GNU C compiler?
10827
# The linker used to build libraries.
10830
# Whether we need hard or soft links.
10833
# A BSD-compatible nm program.
10836
# A symbol stripping program
10839
# Used to examine libraries when file_magic_cmd begins "file"
10840
MAGIC_CMD=$MAGIC_CMD
10842
# Used on cygwin: DLL creation program.
10845
# Used on cygwin: object dumper.
10848
# Used on cygwin: assembler.
10851
# The name of the directory that contains temporary libtool files.
10854
# How to create reloadable object files.
10855
reload_flag=$lt_reload_flag
10856
reload_cmds=$lt_reload_cmds
10858
# How to pass a linker flag through the compiler.
10859
wl=$lt_lt_prog_compiler_wl
10861
# Object file suffix (normally "o").
10862
objext="$ac_objext"
10864
# Old archive suffix (normally "a").
10867
# Shared library suffix (normally ".so").
10868
shrext_cmds='$shrext_cmds'
10870
# Executable file suffix (normally "").
10873
# Additional compiler flags for building library objects.
10874
pic_flag=$lt_lt_prog_compiler_pic
10877
# What is the maximum length of a command?
10878
max_cmd_len=$lt_cv_sys_max_cmd_len
10880
# Does compiler simultaneously support -c and -o options?
10881
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10883
# Must we lock files when doing compilation?
10884
need_locks=$lt_need_locks
10886
# Do we need the lib prefix for modules?
10887
need_lib_prefix=$need_lib_prefix
10889
# Do we need a version for libraries?
10890
need_version=$need_version
10892
# Whether dlopen is supported.
10893
dlopen_support=$enable_dlopen
10895
# Whether dlopen of programs is supported.
10896
dlopen_self=$enable_dlopen_self
10898
# Whether dlopen of statically linked programs is supported.
10899
dlopen_self_static=$enable_dlopen_self_static
10901
# Compiler flag to prevent dynamic linking.
10902
link_static_flag=$lt_lt_prog_compiler_static
10904
# Compiler flag to turn off builtin functions.
10905
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10907
# Compiler flag to allow reflexive dlopens.
10908
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10910
# Compiler flag to generate shared objects directly from archives.
10911
whole_archive_flag_spec=$lt_whole_archive_flag_spec
10913
# Compiler flag to generate thread-safe objects.
10914
thread_safe_flag_spec=$lt_thread_safe_flag_spec
10916
# Library versioning type.
10917
version_type=$version_type
10919
# Format of library name prefix.
10920
libname_spec=$lt_libname_spec
10922
# List of archive names. First name is the real one, the rest are links.
10923
# The last name is the one that the linker finds with -lNAME.
10924
library_names_spec=$lt_library_names_spec
10926
# The coded name of the library, if different from the real name.
10927
soname_spec=$lt_soname_spec
10929
# Commands used to build and install an old-style archive.
10931
old_archive_cmds=$lt_old_archive_cmds
10932
old_postinstall_cmds=$lt_old_postinstall_cmds
10933
old_postuninstall_cmds=$lt_old_postuninstall_cmds
10935
# Create an old-style archive from a shared archive.
10936
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10938
# Create a temporary old-style archive to link instead of a shared archive.
10939
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10941
# Commands used to build and install a shared archive.
10942
archive_cmds=$lt_archive_cmds
10943
archive_expsym_cmds=$lt_archive_expsym_cmds
10944
postinstall_cmds=$lt_postinstall_cmds
10945
postuninstall_cmds=$lt_postuninstall_cmds
10947
# Commands used to build a loadable module (assumed same as above if empty)
10948
module_cmds=$lt_module_cmds
10949
module_expsym_cmds=$lt_module_expsym_cmds
10951
# Commands to strip libraries.
10952
old_striplib=$lt_old_striplib
10953
striplib=$lt_striplib
10955
# Dependencies to place before the objects being linked to create a
10957
predep_objects=$lt_predep_objects
10959
# Dependencies to place after the objects being linked to create a
10961
postdep_objects=$lt_postdep_objects
10963
# Dependencies to place before the objects being linked to create a
10965
predeps=$lt_predeps
10967
# Dependencies to place after the objects being linked to create a
10969
postdeps=$lt_postdeps
10971
# The directories searched by this compiler when creating a shared
10973
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10975
# The library search path used internally by the compiler when linking
10976
# a shared library.
10977
compiler_lib_search_path=$lt_compiler_lib_search_path
10979
# Method to check whether dependent libraries are shared objects.
10980
deplibs_check_method=$lt_deplibs_check_method
10982
# Command to use when deplibs_check_method == file_magic.
10983
file_magic_cmd=$lt_file_magic_cmd
10985
# Flag that allows shared libraries with undefined symbols to be built.
10986
allow_undefined_flag=$lt_allow_undefined_flag
10988
# Flag that forces no undefined symbols.
10989
no_undefined_flag=$lt_no_undefined_flag
10991
# Commands used to finish a libtool library installation in a directory.
10992
finish_cmds=$lt_finish_cmds
10994
# Same as above, but a single script fragment to be evaled but not shown.
10995
finish_eval=$lt_finish_eval
10997
# Take the output of nm and produce a listing of raw symbols and C names.
10998
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11000
# Transform the output of nm in a proper C declaration
11001
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11003
# Transform the output of nm in a C name address pair
11004
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11006
# This is the shared library runtime path variable.
11007
runpath_var=$runpath_var
11009
# This is the shared library path variable.
11010
shlibpath_var=$shlibpath_var
11012
# Is shlibpath searched before the hard-coded library search path?
11013
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11015
# How to hardcode a shared library path into an executable.
11016
hardcode_action=$hardcode_action
11018
# Whether we should hardcode library paths into libraries.
11019
hardcode_into_libs=$hardcode_into_libs
11021
# Flag to hardcode \$libdir into a binary during linking.
11022
# This must work even if \$libdir does not exist.
11023
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11025
# If ld is used when linking, flag to hardcode \$libdir into
11026
# a binary during linking. This must work even if \$libdir does
11028
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11030
# Whether we need a single -rpath flag with a separated argument.
11031
hardcode_libdir_separator=$lt_hardcode_libdir_separator
11033
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11034
# resulting binary.
11035
hardcode_direct=$hardcode_direct
11037
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11038
# resulting binary.
11039
hardcode_minus_L=$hardcode_minus_L
11041
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11042
# the resulting binary.
11043
hardcode_shlibpath_var=$hardcode_shlibpath_var
11045
# Set to yes if building a shared library automatically hardcodes DIR into the library
11046
# and all subsequent libraries and executables linked against it.
11047
hardcode_automatic=$hardcode_automatic
11049
# Variables whose values should be saved in libtool wrapper scripts and
11050
# restored at relink time.
11051
variables_saved_for_relink="$variables_saved_for_relink"
11053
# Whether libtool must link a program against all its dependency libraries.
11054
link_all_deplibs=$link_all_deplibs
11056
# Compile-time system search path for libraries
11057
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11059
# Run-time system search path for libraries
11060
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11062
# Fix the shell variable \$srcfile for the compiler.
11063
fix_srcfile_path=$lt_fix_srcfile_path
11065
# Set to yes if exported symbols are required.
11066
always_export_symbols=$always_export_symbols
11068
# The commands to list exported symbols.
11069
export_symbols_cmds=$lt_export_symbols_cmds
11071
# The commands to extract the exported symbol list from a shared archive.
11072
extract_expsyms_cmds=$lt_extract_expsyms_cmds
11074
# Symbols that should not be listed in the preloaded symbols.
11075
exclude_expsyms=$lt_exclude_expsyms
11077
# Symbols that must always be exported.
11078
include_expsyms=$lt_include_expsyms
11080
# ### END LIBTOOL CONFIG
11087
cat <<\EOF >> "$cfgfile"
11089
# AIX sometimes has problems with the GCC collect2 program. For some
11090
# reason, if we set the COLLECT_NAMES environment variable, the problems
11091
# vanish in a puff of smoke.
11092
if test "X${COLLECT_NAMES+set}" != Xset; then
11094
export COLLECT_NAMES
11100
# We use sed instead of cat because bash on DJGPP gets confused if
11101
# if finds mixed CR/LF and LF-only lines. Since sed operates in
11102
# text mode, it properly converts lines to CR/LF. This bash problem
11103
# is reportedly fixed, but why not run on old versions too?
11104
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11106
mv -f "$cfgfile" "$ofile" || \
11107
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11111
# If there is no Makefile yet, we rely on a make rule to execute
11112
# `config.status --recheck' to rerun these tests and create the
11113
# libtool script then.
11114
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11115
if test -f "$ltmain_in"; then
11116
test -f Makefile && make "$ltmain"
11122
ac_cpp='$CPP $CPPFLAGS'
11123
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11124
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11125
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11130
# Check whether --with-tags was given.
11131
if test "${with_tags+set}" = set; then
11132
withval=$with_tags; tagnames="$withval"
11136
if test -f "$ltmain" && test -n "$tagnames"; then
11137
if test ! -f "${ofile}"; then
11138
{ $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11139
$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11142
if test -z "$LTCC"; then
11143
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11144
if test -z "$LTCC"; then
11145
{ $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11146
$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11148
{ $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11149
$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11152
if test -z "$LTCFLAGS"; then
11153
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11156
# Extract list of available tagged configurations in $ofile.
11157
# Note that this assumes the entire list is on one line.
11158
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11160
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11161
for tagname in $tagnames; do
11163
# Check whether tagname contains only valid characters
11164
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11166
*) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11167
$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
11168
{ (exit 1); exit 1; }; }
11172
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11174
{ { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11175
$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11176
{ (exit 1); exit 1; }; }
11179
# Update the list of available tags.
11180
if test -n "$tagname"; then
11181
echo appending configuration tag \"$tagname\" to $ofile
11185
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11186
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11187
(test "X$CXX" != "Xg++"))) ; then
11189
ac_cpp='$CXXCPP $CPPFLAGS'
11190
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11191
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11192
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11197
archive_cmds_need_lc_CXX=no
11198
allow_undefined_flag_CXX=
11199
always_export_symbols_CXX=no
11200
archive_expsym_cmds_CXX=
11201
export_dynamic_flag_spec_CXX=
11202
hardcode_direct_CXX=no
11203
hardcode_libdir_flag_spec_CXX=
11204
hardcode_libdir_flag_spec_ld_CXX=
11205
hardcode_libdir_separator_CXX=
11206
hardcode_minus_L_CXX=no
11207
hardcode_shlibpath_var_CXX=unsupported
11208
hardcode_automatic_CXX=no
11210
module_expsym_cmds_CXX=
11211
link_all_deplibs_CXX=unknown
11212
old_archive_cmds_CXX=$old_archive_cmds
11213
no_undefined_flag_CXX=
11214
whole_archive_flag_spec_CXX=
11215
enable_shared_with_static_runtimes_CXX=no
11217
# Dependencies to place before and after the object being linked:
11218
predep_objects_CXX=
11219
postdep_objects_CXX=
11222
compiler_lib_search_path_CXX=
11223
compiler_lib_search_dirs_CXX=
11225
# Source file extension for C++ test sources.
11228
# Object file extension for compiled C++ test sources.
11232
# Code to be used in simple compile tests
11233
lt_simple_compile_test_code="int some_variable = 0;"
11235
# Code to be used in simple link tests
11236
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11238
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11240
# If no C compiler was specified, use CC.
11243
# If no C compiler flags were specified, use CFLAGS.
11244
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11246
# Allow CC to be a program name with arguments.
11250
# save warnings/boilerplate of simple test code
11251
ac_outfile=conftest.$ac_objext
11252
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11253
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11254
_lt_compiler_boilerplate=`cat conftest.err`
11257
ac_outfile=conftest.$ac_objext
11258
echo "$lt_simple_link_test_code" >conftest.$ac_ext
11259
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11260
_lt_linker_boilerplate=`cat conftest.err`
11264
# Allow CC to be a program name with arguments.
11269
lt_save_with_gnu_ld=$with_gnu_ld
11270
lt_save_path_LD=$lt_cv_path_LD
11271
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11272
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11274
$as_unset lt_cv_prog_gnu_ld
11276
if test -n "${lt_cv_path_LDCXX+set}"; then
11277
lt_cv_path_LD=$lt_cv_path_LDCXX
11279
$as_unset lt_cv_path_LD
11281
test -z "${LDCXX+set}" || LD=$LDCXX
11285
for cc_temp in $compiler""; do
11287
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11288
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11293
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11296
# We don't want -fno-exception wen compiling C++ code, so set the
11297
# no_builtin_flag separately
11298
if test "$GXX" = yes; then
11299
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11301
lt_prog_compiler_no_builtin_flag_CXX=
11304
if test "$GXX" = yes; then
11305
# Set up default GNU C++ configuration
11308
# Check whether --with-gnu-ld was given.
11309
if test "${with_gnu_ld+set}" = set; then
11310
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11316
if test "$GCC" = yes; then
11317
# Check if gcc -print-prog-name=ld gives a path.
11318
{ $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11319
$as_echo_n "checking for ld used by $CC... " >&6; }
11322
# gcc leaves a trailing carriage return which upsets mingw
11323
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11325
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11328
# Accept absolute paths.
11330
re_direlt='/[^/][^/]*/\.\./'
11331
# Canonicalize the pathname of ld
11332
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11333
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11334
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11336
test -z "$LD" && LD="$ac_prog"
11339
# If it fails, then pretend we aren't using GCC.
11343
# If it is relative, then search for the first ld in PATH.
11344
with_gnu_ld=unknown
11347
elif test "$with_gnu_ld" = yes; then
11348
{ $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11349
$as_echo_n "checking for GNU ld... " >&6; }
11351
{ $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11352
$as_echo_n "checking for non-GNU ld... " >&6; }
11354
if test "${lt_cv_path_LD+set}" = set; then
11355
$as_echo_n "(cached) " >&6
11357
if test -z "$LD"; then
11358
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11359
for ac_dir in $PATH; do
11361
test -z "$ac_dir" && ac_dir=.
11362
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11363
lt_cv_path_LD="$ac_dir/$ac_prog"
11364
# Check to see if the program is GNU ld. I'd rather use --version,
11365
# but apparently some variants of GNU ld only accept -v.
11366
# Break only if it was the GNU/non-GNU ld that we prefer.
11367
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11368
*GNU* | *'with BFD'*)
11369
test "$with_gnu_ld" != no && break
11372
test "$with_gnu_ld" != yes && break
11379
lt_cv_path_LD="$LD" # Let the user override the test with a path.
11383
LD="$lt_cv_path_LD"
11384
if test -n "$LD"; then
11385
{ $as_echo "$as_me:$LINENO: result: $LD" >&5
11386
$as_echo "$LD" >&6; }
11388
{ $as_echo "$as_me:$LINENO: result: no" >&5
11389
$as_echo "no" >&6; }
11391
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11392
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11393
{ (exit 1); exit 1; }; }
11394
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11395
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11396
if test "${lt_cv_prog_gnu_ld+set}" = set; then
11397
$as_echo_n "(cached) " >&6
11399
# I'd rather use --version here, but apparently some GNU lds only accept -v.
11400
case `$LD -v 2>&1 </dev/null` in
11401
*GNU* | *'with BFD'*)
11402
lt_cv_prog_gnu_ld=yes
11405
lt_cv_prog_gnu_ld=no
11409
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11410
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11411
with_gnu_ld=$lt_cv_prog_gnu_ld
11415
# Check if GNU C++ uses GNU ld as the underlying linker, since the
11416
# archiving commands below assume that GNU ld is being used.
11417
if test "$with_gnu_ld" = yes; then
11418
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11419
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'
11421
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11422
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11424
# If archive_cmds runs LD, not CC, wlarc should be empty
11425
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11426
# investigate it a little bit more. (MM)
11429
# ancient GNU ld didn't support --whole-archive et. al.
11430
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11431
grep 'no-whole-archive' > /dev/null; then
11432
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11434
whole_archive_flag_spec_CXX=
11440
# A generic and very simple default shared library creation
11441
# command for GNU C++ for the case where it uses the native
11442
# linker, instead of GNU ld. If possible, this setting should
11443
# overridden to take advantage of the native linker features on
11444
# the platform it is being used on.
11445
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11448
# Commands to make compiler produce verbose output that lists
11449
# what "hidden" libraries, object files and flags are used when
11450
# linking a shared library.
11451
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11459
# PORTME: fill in a description of your system's C++ link characteristics
11460
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11461
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11465
# FIXME: insert proper C++ library support
11469
if test "$host_cpu" = ia64; then
11470
# On IA64, the linker does run time linking by default, so we don't
11471
# have to do anything special.
11472
aix_use_runtimelinking=no
11473
exp_sym_flag='-Bexport'
11476
aix_use_runtimelinking=no
11478
# Test if we are trying to use run time linking or normal
11479
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11480
# need to do runtime linking.
11481
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11482
for ld_flag in $LDFLAGS; do
11485
aix_use_runtimelinking=yes
11493
exp_sym_flag='-bexport'
11494
no_entry_flag='-bnoentry'
11497
# When large executables or shared objects are built, AIX ld can
11498
# have problems creating the table of contents. If linking a library
11499
# or program results in "error TOC overflow" add -mminimal-toc to
11500
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11501
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11503
archive_cmds_CXX=''
11504
hardcode_direct_CXX=yes
11505
hardcode_libdir_separator_CXX=':'
11506
link_all_deplibs_CXX=yes
11508
if test "$GXX" = yes; then
11509
case $host_os in aix4.[012]|aix4.[012].*)
11510
# We only want to do this on AIX 4.2 and lower, the check
11511
# below for broken collect2 doesn't work under 4.3+
11512
collect2name=`${CC} -print-prog-name=collect2`
11513
if test -f "$collect2name" && \
11514
strings "$collect2name" | grep resolve_lib_name >/dev/null
11516
# We have reworked collect2
11519
# We have old collect2
11520
hardcode_direct_CXX=unsupported
11521
# It fails to find uninstalled libraries when the uninstalled
11522
# path is not listed in the libpath. Setting hardcode_minus_L
11523
# to unsupported forces relinking
11524
hardcode_minus_L_CXX=yes
11525
hardcode_libdir_flag_spec_CXX='-L$libdir'
11526
hardcode_libdir_separator_CXX=
11530
shared_flag='-shared'
11531
if test "$aix_use_runtimelinking" = yes; then
11532
shared_flag="$shared_flag "'${wl}-G'
11536
if test "$host_cpu" = ia64; then
11537
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11538
# chokes on -Wl,-G. The following line is correct:
11541
if test "$aix_use_runtimelinking" = yes; then
11542
shared_flag='${wl}-G'
11544
shared_flag='${wl}-bM:SRE'
11549
# It seems that -bexpall does not export symbols beginning with
11550
# underscore (_), so it is better to generate a list of symbols to export.
11551
always_export_symbols_CXX=yes
11552
if test "$aix_use_runtimelinking" = yes; then
11553
# Warning - without using the other runtime loading flags (-brtl),
11554
# -berok will link without error, but may produce a broken library.
11555
allow_undefined_flag_CXX='-berok'
11556
# Determine the default libpath from the value encoded in an empty executable.
11557
cat >conftest.$ac_ext <<_ACEOF
11560
cat confdefs.h >>conftest.$ac_ext
11561
cat >>conftest.$ac_ext <<_ACEOF
11562
/* end confdefs.h. */
11572
rm -f conftest.$ac_objext conftest$ac_exeext
11573
if { (ac_try="$ac_link"
11574
case "(($ac_try" in
11575
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11576
*) ac_try_echo=$ac_try;;
11578
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11579
$as_echo "$ac_try_echo") >&5
11580
(eval "$ac_link") 2>conftest.er1
11582
grep -v '^ *+' conftest.er1 >conftest.err
11584
cat conftest.err >&5
11585
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586
(exit $ac_status); } && {
11587
test -z "$ac_cxx_werror_flag" ||
11588
test ! -s conftest.err
11589
} && test -s conftest$ac_exeext && {
11590
test "$cross_compiling" = yes ||
11591
$as_test_x conftest$ac_exeext
11594
lt_aix_libpath_sed='
11595
/Import File Strings/,/^$/ {
11601
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11602
# Check for a 64-bit object if we didn't find anything.
11603
if test -z "$aix_libpath"; then
11604
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11607
$as_echo "$as_me: failed program was:" >&5
11608
sed 's/^/| /' conftest.$ac_ext >&5
11613
rm -rf conftest.dSYM
11614
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11615
conftest$ac_exeext conftest.$ac_ext
11616
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11618
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11620
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"
11622
if test "$host_cpu" = ia64; then
11623
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11624
allow_undefined_flag_CXX="-z nodefs"
11625
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"
11627
# Determine the default libpath from the value encoded in an empty executable.
11628
cat >conftest.$ac_ext <<_ACEOF
11631
cat confdefs.h >>conftest.$ac_ext
11632
cat >>conftest.$ac_ext <<_ACEOF
11633
/* end confdefs.h. */
11643
rm -f conftest.$ac_objext conftest$ac_exeext
11644
if { (ac_try="$ac_link"
11645
case "(($ac_try" in
11646
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11647
*) ac_try_echo=$ac_try;;
11649
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11650
$as_echo "$ac_try_echo") >&5
11651
(eval "$ac_link") 2>conftest.er1
11653
grep -v '^ *+' conftest.er1 >conftest.err
11655
cat conftest.err >&5
11656
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657
(exit $ac_status); } && {
11658
test -z "$ac_cxx_werror_flag" ||
11659
test ! -s conftest.err
11660
} && test -s conftest$ac_exeext && {
11661
test "$cross_compiling" = yes ||
11662
$as_test_x conftest$ac_exeext
11665
lt_aix_libpath_sed='
11666
/Import File Strings/,/^$/ {
11672
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11673
# Check for a 64-bit object if we didn't find anything.
11674
if test -z "$aix_libpath"; then
11675
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11678
$as_echo "$as_me: failed program was:" >&5
11679
sed 's/^/| /' conftest.$ac_ext >&5
11684
rm -rf conftest.dSYM
11685
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11686
conftest$ac_exeext conftest.$ac_ext
11687
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11689
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11690
# Warning - without using the other run time loading flags,
11691
# -berok will link without error, but may produce a broken library.
11692
no_undefined_flag_CXX=' ${wl}-bernotok'
11693
allow_undefined_flag_CXX=' ${wl}-berok'
11694
# Exported symbols can be pulled into shared objects from archives
11695
whole_archive_flag_spec_CXX='$convenience'
11696
archive_cmds_need_lc_CXX=yes
11697
# This is similar to how AIX traditionally builds its shared libraries.
11698
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'
11704
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11705
allow_undefined_flag_CXX=unsupported
11706
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11707
# support --undefined. This deserves some investigation. FIXME
11708
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11715
case $cc_basename in
11717
# FIXME: insert proper C++ library support
11723
cygwin* | mingw* | pw32*)
11724
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11725
# as there is no search path for DLLs.
11726
hardcode_libdir_flag_spec_CXX='-L$libdir'
11727
allow_undefined_flag_CXX=unsupported
11728
always_export_symbols_CXX=no
11729
enable_shared_with_static_runtimes_CXX=yes
11731
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11732
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'
11733
# If the export-symbols file already is a .def file (1st line
11734
# is EXPORTS), use it as is; otherwise, prepend...
11735
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11736
cp $export_symbols $output_objdir/$soname.def;
11738
echo EXPORTS > $output_objdir/$soname.def;
11739
cat $export_symbols >> $output_objdir/$soname.def;
11741
$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'
11746
darwin* | rhapsody*)
11747
archive_cmds_need_lc_CXX=no
11748
hardcode_direct_CXX=no
11749
hardcode_automatic_CXX=yes
11750
hardcode_shlibpath_var_CXX=unsupported
11751
whole_archive_flag_spec_CXX=''
11752
link_all_deplibs_CXX=yes
11753
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11754
if test "$GXX" = yes ; then
11755
output_verbose_link_cmd='echo'
11756
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}"
11757
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11758
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}"
11759
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}"
11760
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11761
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}"
11762
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}"
11765
case $cc_basename in
11767
output_verbose_link_cmd='echo'
11768
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'
11769
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11770
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11771
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}'
11772
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}'
11782
case $cc_basename in
11784
# FIXME: insert proper C++ library support
11788
# Green Hills C++ Compiler
11789
# FIXME: insert proper C++ library support
11793
# FIXME: insert proper C++ library support
11799
# C++ shared libraries reported to be fairly broken before switch to ELF
11803
archive_cmds_need_lc_CXX=no
11805
freebsd* | dragonfly*)
11806
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11813
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11814
hardcode_libdir_separator_CXX=:
11815
export_dynamic_flag_spec_CXX='${wl}-E'
11816
hardcode_direct_CXX=yes
11817
hardcode_minus_L_CXX=yes # Not in the search PATH,
11818
# but as the default
11819
# location of the library.
11821
case $cc_basename in
11823
# FIXME: insert proper C++ library support
11827
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'
11828
# Commands to make compiler produce verbose output that lists
11829
# what "hidden" libraries, object files and flags are used when
11830
# linking a shared library.
11832
# There doesn't appear to be a way to prevent this compiler from
11833
# explicitly linking system object files so we need to strip them
11834
# from the output so that they don't get included in the library
11836
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'
11839
if test "$GXX" = yes; then
11840
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'
11842
# FIXME: insert proper C++ library support
11849
if test $with_gnu_ld = no; then
11850
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11851
hardcode_libdir_separator_CXX=:
11856
export_dynamic_flag_spec_CXX='${wl}-E'
11862
hardcode_direct_CXX=no
11863
hardcode_shlibpath_var_CXX=no
11866
hardcode_direct_CXX=yes
11867
hardcode_minus_L_CXX=yes # Not in the search PATH,
11868
# but as the default
11869
# location of the library.
11873
case $cc_basename in
11875
# FIXME: insert proper C++ library support
11881
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11884
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11887
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11890
# Commands to make compiler produce verbose output that lists
11891
# what "hidden" libraries, object files and flags are used when
11892
# linking a shared library.
11894
# There doesn't appear to be a way to prevent this compiler from
11895
# explicitly linking system object files so we need to strip them
11896
# from the output so that they don't get included in the library
11898
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'
11901
if test "$GXX" = yes; then
11902
if test $with_gnu_ld = no; then
11905
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11908
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11911
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'
11916
# FIXME: insert proper C++ library support
11923
hardcode_direct_CXX=no
11924
hardcode_shlibpath_var_CXX=no
11925
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11926
export_dynamic_flag_spec_CXX='${wl}-E'
11927
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11928
# Instead, shared libraries are loaded at an image base (0x10000000 by
11929
# default) and relocated if they conflict, which is a slow very memory
11930
# consuming and fragmenting process. To avoid this, we pick a random,
11931
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11932
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
11933
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'
11934
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'
11937
case $cc_basename in
11940
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'
11942
# Archives containing C++ object files must be created using
11943
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
11944
# necessary to make sure instantiated templates are included
11946
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11949
if test "$GXX" = yes; then
11950
if test "$with_gnu_ld" = no; then
11951
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'
11953
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'
11956
link_all_deplibs_CXX=yes
11959
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11960
hardcode_libdir_separator_CXX=:
11962
linux* | k*bsd*-gnu)
11963
case $cc_basename in
11965
# Kuck and Associates, Inc. (KAI) C++ Compiler
11967
# KCC will only create a shared library if the output file
11968
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11969
# to its proper name (with version) after linking.
11970
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'
11971
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'
11972
# Commands to make compiler produce verbose output that lists
11973
# what "hidden" libraries, object files and flags are used when
11974
# linking a shared library.
11976
# There doesn't appear to be a way to prevent this compiler from
11977
# explicitly linking system object files so we need to strip them
11978
# from the output so that they don't get included in the library
11980
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'
11982
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11983
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11985
# Archives containing C++ object files must be created using
11986
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11987
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11992
# version 8.0 and above of icpc choke on multiply defined symbols
11993
# if we add $predep_objects and $postdep_objects, however 7.1 and
11994
# earlier do not add the objects themselves.
11995
case `$CC -V 2>&1` in
11997
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11998
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'
12000
*) # Version 8.0 or newer
12003
ia64*) tmp_idyn=' -i_dynamic';;
12005
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12006
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'
12009
archive_cmds_need_lc_CXX=no
12010
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12011
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12012
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12015
# Portland Group C++ compiler
12016
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12017
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'
12019
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12020
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12021
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'
12025
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12026
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'
12028
runpath_var=LD_RUN_PATH
12029
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12030
hardcode_libdir_separator_CXX=:
12032
# Commands to make compiler produce verbose output that lists
12033
# what "hidden" libraries, object files and flags are used when
12034
# linking a shared library.
12036
# There doesn't appear to be a way to prevent this compiler from
12037
# explicitly linking system object files so we need to strip them
12038
# from the output so that they don't get included in the library
12040
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'
12043
case `$CC -V 2>&1 | sed 5q` in
12046
no_undefined_flag_CXX=' -zdefs'
12047
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12048
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'
12049
hardcode_libdir_flag_spec_CXX='-R$libdir'
12050
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'
12052
# Not sure whether something based on
12053
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12055
output_verbose_link_cmd='echo'
12057
# Archives containing C++ object files must be created using
12058
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12059
# necessary to make sure instantiated templates are included
12061
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12068
# FIXME: insert proper C++ library support
12072
# FIXME: insert proper C++ library support
12076
case $cc_basename in
12078
# FIXME: insert proper C++ library support
12082
# FIXME: insert proper C++ library support
12088
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12089
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12091
hardcode_libdir_flag_spec_CXX='-R$libdir'
12092
hardcode_direct_CXX=yes
12093
hardcode_shlibpath_var_CXX=no
12095
# Workaround some broken pre-1.5 toolchains
12096
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12099
# C++ shared libraries are fairly broken
12103
if test -f /usr/libexec/ld.so; then
12104
hardcode_direct_CXX=yes
12105
hardcode_shlibpath_var_CXX=no
12106
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12107
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12108
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12109
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12110
export_dynamic_flag_spec_CXX='${wl}-E'
12111
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12113
output_verbose_link_cmd='echo'
12119
case $cc_basename in
12121
# Kuck and Associates, Inc. (KAI) C++ Compiler
12123
# KCC will only create a shared library if the output file
12124
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12125
# to its proper name (with version) after linking.
12126
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'
12128
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12129
hardcode_libdir_separator_CXX=:
12131
# Archives containing C++ object files must be created using
12132
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12133
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12137
# Rational C++ 2.4.1
12138
# FIXME: insert proper C++ library support
12142
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12143
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'
12145
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12146
hardcode_libdir_separator_CXX=:
12148
# Commands to make compiler produce verbose output that lists
12149
# what "hidden" libraries, object files and flags are used when
12150
# linking a shared library.
12152
# There doesn't appear to be a way to prevent this compiler from
12153
# explicitly linking system object files so we need to strip them
12154
# from the output so that they don't get included in the library
12156
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'
12159
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12160
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12161
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'
12163
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12164
hardcode_libdir_separator_CXX=:
12166
# Commands to make compiler produce verbose output that lists
12167
# what "hidden" libraries, object files and flags are used when
12168
# linking a shared library.
12169
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12172
# FIXME: insert proper C++ library support
12179
case $cc_basename in
12181
# Kuck and Associates, Inc. (KAI) C++ Compiler
12183
# KCC will only create a shared library if the output file
12184
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12185
# to its proper name (with version) after linking.
12186
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'
12188
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12189
hardcode_libdir_separator_CXX=:
12191
# Archives containing C++ object files must be created using
12192
# the KAI C++ compiler.
12193
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12196
# Rational C++ 2.4.1
12197
# FIXME: insert proper C++ library support
12201
allow_undefined_flag_CXX=' -expect_unresolved \*'
12202
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'
12203
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12204
echo "-hidden">> $lib.exp~
12205
$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~
12208
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12209
hardcode_libdir_separator_CXX=:
12211
# Commands to make compiler produce verbose output that lists
12212
# what "hidden" libraries, object files and flags are used when
12213
# linking a shared library.
12215
# There doesn't appear to be a way to prevent this compiler from
12216
# explicitly linking system object files so we need to strip them
12217
# from the output so that they don't get included in the library
12219
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'
12222
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12223
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12224
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'
12226
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12227
hardcode_libdir_separator_CXX=:
12229
# Commands to make compiler produce verbose output that lists
12230
# what "hidden" libraries, object files and flags are used when
12231
# linking a shared library.
12232
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12235
# FIXME: insert proper C++ library support
12242
# FIXME: insert proper C++ library support
12246
case $cc_basename in
12249
# FIXME: insert proper C++ library support
12254
# FIXME: insert proper C++ library support
12258
# FIXME: insert proper C++ library support
12264
case $cc_basename in
12266
# Sun C++ 4.2, 5.x and Centerline C++
12267
archive_cmds_need_lc_CXX=yes
12268
no_undefined_flag_CXX=' -zdefs'
12269
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12270
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12271
$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'
12273
hardcode_libdir_flag_spec_CXX='-R$libdir'
12274
hardcode_shlibpath_var_CXX=no
12276
solaris2.[0-5] | solaris2.[0-5].*) ;;
12278
# The compiler driver will combine and reorder linker options,
12279
# but understands `-z linker_flag'.
12280
# Supported since Solaris 2.6 (maybe 2.5.1?)
12281
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12284
link_all_deplibs_CXX=yes
12286
output_verbose_link_cmd='echo'
12288
# Archives containing C++ object files must be created using
12289
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12290
# necessary to make sure instantiated templates are included
12292
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12295
# Green Hills C++ Compiler
12296
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12298
# The C++ compiler must be used to create the archive.
12299
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12302
# GNU C++ compiler with Solaris linker
12303
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12304
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12305
if $CC --version | grep -v '^2\.7' > /dev/null; then
12306
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12307
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12308
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12310
# Commands to make compiler produce verbose output that lists
12311
# what "hidden" libraries, object files and flags are used when
12312
# linking a shared library.
12313
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12315
# g++ 2.7 appears to require `-G' NOT `-shared' on this
12317
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12318
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12319
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12321
# Commands to make compiler produce verbose output that lists
12322
# what "hidden" libraries, object files and flags are used when
12323
# linking a shared library.
12324
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12327
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12329
solaris2.[0-5] | solaris2.[0-5].*) ;;
12331
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12338
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12339
no_undefined_flag_CXX='${wl}-z,text'
12340
archive_cmds_need_lc_CXX=no
12341
hardcode_shlibpath_var_CXX=no
12342
runpath_var='LD_RUN_PATH'
12344
case $cc_basename in
12346
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12347
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12350
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12351
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12355
sysv5* | sco3.2v5* | sco5v6*)
12356
# Note: We can NOT use -z defs as we might desire, because we do not
12357
# link with -lc, and that would cause any symbols used from libc to
12358
# always be unresolved, which means just about no library would
12359
# ever link correctly. If we're not using GNU ld we use -z text
12360
# though, which does catch some bad symbols but isn't as heavy-handed
12362
# For security reasons, it is highly recommended that you always
12363
# use absolute paths for naming shared libraries, and exclude the
12364
# DT_RUNPATH tag from executables and libraries. But doing so
12365
# requires that you compile everything twice, which is a pain.
12366
# So that behaviour is only enabled if SCOABSPATH is set to a
12367
# non-empty value in the environment. Most likely only useful for
12368
# creating official distributions of packages.
12369
# This is a hack until libtool officially supports absolute path
12370
# names for shared libraries.
12371
no_undefined_flag_CXX='${wl}-z,text'
12372
allow_undefined_flag_CXX='${wl}-z,nodefs'
12373
archive_cmds_need_lc_CXX=no
12374
hardcode_shlibpath_var_CXX=no
12375
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12376
hardcode_libdir_separator_CXX=':'
12377
link_all_deplibs_CXX=yes
12378
export_dynamic_flag_spec_CXX='${wl}-Bexport'
12379
runpath_var='LD_RUN_PATH'
12381
case $cc_basename in
12383
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12384
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12387
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12388
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12393
case $cc_basename in
12395
# NonStop-UX NCC 3.20
12396
# FIXME: insert proper C++ library support
12400
# FIXME: insert proper C++ library support
12406
# FIXME: insert proper C++ library support
12410
# FIXME: insert proper C++ library support
12414
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12415
$as_echo "$ld_shlibs_CXX" >&6; }
12416
test "$ld_shlibs_CXX" = no && can_build_shared=no
12421
cat > conftest.$ac_ext <<EOF
12425
Foo (void) { a = 0; }
12431
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12432
(eval $ac_compile) 2>&5
12434
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435
(exit $ac_status); }; then
12436
# Parse the compiler output and extract the necessary
12437
# objects, libraries and library flags.
12439
# Sentinel used to keep track of whether or not we are before
12440
# the conftest object file.
12441
pre_test_object_deps_done=no
12443
# The `*' in the case matches for architectures that use `case' in
12444
# $output_verbose_cmd can trigger glob expansion during the loop
12445
# eval without this substitution.
12446
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12448
for p in `eval $output_verbose_link_cmd`; do
12452
# Some compilers place space between "-{L,R}" and the path.
12453
# Remove the space.
12454
if test $p = "-L" \
12455
|| test $p = "-R"; then
12462
if test "$pre_test_object_deps_done" = no; then
12465
# Internal compiler library paths should come after those
12466
# provided the user. The postdeps already come after the
12467
# user supplied libs so there is no need to process them.
12468
if test -z "$compiler_lib_search_path_CXX"; then
12469
compiler_lib_search_path_CXX="${prev}${p}"
12471
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12474
# The "-l" case would never come before the object being
12475
# linked, so don't bother handling this case.
12478
if test -z "$postdeps_CXX"; then
12479
postdeps_CXX="${prev}${p}"
12481
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12487
# This assumes that the test object file only shows up
12488
# once in the compiler output.
12489
if test "$p" = "conftest.$objext"; then
12490
pre_test_object_deps_done=yes
12494
if test "$pre_test_object_deps_done" = no; then
12495
if test -z "$predep_objects_CXX"; then
12496
predep_objects_CXX="$p"
12498
predep_objects_CXX="$predep_objects_CXX $p"
12501
if test -z "$postdep_objects_CXX"; then
12502
postdep_objects_CXX="$p"
12504
postdep_objects_CXX="$postdep_objects_CXX $p"
12509
*) ;; # Ignore the rest.
12517
echo "libtool.m4: error: problem compiling CXX test program"
12520
$rm -f confest.$objext
12522
compiler_lib_search_dirs_CXX=
12523
if test -n "$compiler_lib_search_path_CXX"; then
12524
compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12527
# PORTME: override above test on systems where it is broken
12530
# Interix 3.5 installs completely hosed .la files for C++, so rather than
12531
# hack all around it, let's just trust "g++" to DTRT.
12532
predep_objects_CXX=
12533
postdep_objects_CXX=
12538
case `$CC -V 2>&1 | sed 5q` in
12542
# The more standards-conforming stlport4 library is
12543
# incompatible with the Cstd library. Avoid specifying
12544
# it if it's in CXXFLAGS. Ignore libCrun as
12545
# -library=stlport4 depends on it.
12546
case " $CXX $CXXFLAGS " in
12547
*" -library=stlport4 "*)
12548
solaris_use_stlport4=yes
12551
if test "$solaris_use_stlport4" != yes; then
12552
postdeps_CXX='-library=Cstd -library=Crun'
12559
case $cc_basename in
12561
# The more standards-conforming stlport4 library is
12562
# incompatible with the Cstd library. Avoid specifying
12563
# it if it's in CXXFLAGS. Ignore libCrun as
12564
# -library=stlport4 depends on it.
12565
case " $CXX $CXXFLAGS " in
12566
*" -library=stlport4 "*)
12567
solaris_use_stlport4=yes
12571
# Adding this requires a known-good setup of shared libraries for
12572
# Sun compiler versions before 5.6, else PIC objects from an old
12573
# archive will be linked into the output, leading to subtle bugs.
12574
if test "$solaris_use_stlport4" != yes; then
12575
postdeps_CXX='-library=Cstd -library=Crun'
12582
case " $postdeps_CXX " in
12583
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12586
lt_prog_compiler_wl_CXX=
12587
lt_prog_compiler_pic_CXX=
12588
lt_prog_compiler_static_CXX=
12590
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12591
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12593
# C++ specific cases for pic, static, wl, etc.
12594
if test "$GXX" = yes; then
12595
lt_prog_compiler_wl_CXX='-Wl,'
12596
lt_prog_compiler_static_CXX='-static'
12600
# All AIX code is PIC.
12601
if test "$host_cpu" = ia64; then
12602
# AIX 5 now supports IA64 processor
12603
lt_prog_compiler_static_CXX='-Bstatic'
12607
# FIXME: we need at least 68020 code to build shared libraries, but
12608
# adding the `-m68020' flag to GCC prevents building anything better,
12610
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12612
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12613
# PIC is the default for these OSes.
12615
mingw* | cygwin* | os2* | pw32*)
12616
# This hack is so that the source file can tell whether it is being
12617
# built for inclusion in a dll (and should export symbols for example).
12618
# Although the cygwin gcc ignores -fPIC, still need this for old-style
12619
# (--disable-auto-import) libraries
12620
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12622
darwin* | rhapsody*)
12623
# PIC is the default on this platform
12624
# Common symbols not allowed in MH_DYLIB files
12625
lt_prog_compiler_pic_CXX='-fno-common'
12628
# DJGPP does not support shared libraries at all
12629
lt_prog_compiler_pic_CXX=
12632
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
12633
# Instead, we relocate shared libraries at runtime.
12636
if test -d /usr/nec; then
12637
lt_prog_compiler_pic_CXX=-Kconform_pic
12641
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12642
# not for PA HP-UX.
12647
lt_prog_compiler_pic_CXX='-fPIC'
12652
lt_prog_compiler_pic_CXX='-fPIC'
12658
# All AIX code is PIC.
12659
if test "$host_cpu" = ia64; then
12660
# AIX 5 now supports IA64 processor
12661
lt_prog_compiler_static_CXX='-Bstatic'
12663
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12667
case $cc_basename in
12669
# Green Hills C++ Compiler
12670
# _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"
12675
# PIC is the default on this platform
12676
# Common symbols not allowed in MH_DYLIB files
12677
case $cc_basename in
12679
lt_prog_compiler_pic_CXX='-qnocommon'
12680
lt_prog_compiler_wl_CXX='-Wl,'
12685
case $cc_basename in
12687
lt_prog_compiler_pic_CXX='-KPIC'
12690
# Green Hills C++ Compiler
12691
lt_prog_compiler_pic_CXX='-pic'
12697
freebsd* | dragonfly*)
12698
# FreeBSD uses GNU C++
12700
hpux9* | hpux10* | hpux11*)
12701
case $cc_basename in
12703
lt_prog_compiler_wl_CXX='-Wl,'
12704
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12705
if test "$host_cpu" != ia64; then
12706
lt_prog_compiler_pic_CXX='+Z'
12710
lt_prog_compiler_wl_CXX='-Wl,'
12711
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12717
lt_prog_compiler_pic_CXX='+Z'
12726
# This is c89, which is MS Visual C++ (no shared libs)
12727
# Anyone wants to do a port?
12729
irix5* | irix6* | nonstopux*)
12730
case $cc_basename in
12732
lt_prog_compiler_wl_CXX='-Wl,'
12733
lt_prog_compiler_static_CXX='-non_shared'
12734
# CC pic flag -KPIC is the default.
12740
linux* | k*bsd*-gnu)
12741
case $cc_basename in
12744
lt_prog_compiler_wl_CXX='--backend -Wl,'
12745
lt_prog_compiler_pic_CXX='-fPIC'
12749
lt_prog_compiler_wl_CXX='-Wl,'
12750
lt_prog_compiler_pic_CXX='-KPIC'
12751
lt_prog_compiler_static_CXX='-static'
12754
# Portland Group C++ compiler.
12755
lt_prog_compiler_wl_CXX='-Wl,'
12756
lt_prog_compiler_pic_CXX='-fpic'
12757
lt_prog_compiler_static_CXX='-Bstatic'
12761
# Make sure the PIC flag is empty. It appears that all Alpha
12762
# Linux and Compaq Tru64 Unix objects are PIC.
12763
lt_prog_compiler_pic_CXX=
12764
lt_prog_compiler_static_CXX='-non_shared'
12767
case `$CC -V 2>&1 | sed 5q` in
12770
lt_prog_compiler_pic_CXX='-KPIC'
12771
lt_prog_compiler_static_CXX='-Bstatic'
12772
lt_prog_compiler_wl_CXX='-Qoption ld '
12783
case $cc_basename in
12785
lt_prog_compiler_pic_CXX='-W c,exportall'
12793
osf3* | osf4* | osf5*)
12794
case $cc_basename in
12796
lt_prog_compiler_wl_CXX='--backend -Wl,'
12799
# Rational C++ 2.4.1
12800
lt_prog_compiler_pic_CXX='-pic'
12803
# Digital/Compaq C++
12804
lt_prog_compiler_wl_CXX='-Wl,'
12805
# Make sure the PIC flag is empty. It appears that all Alpha
12806
# Linux and Compaq Tru64 Unix objects are PIC.
12807
lt_prog_compiler_pic_CXX=
12808
lt_prog_compiler_static_CXX='-non_shared'
12817
case $cc_basename in
12819
# Sun C++ 4.2, 5.x and Centerline C++
12820
lt_prog_compiler_pic_CXX='-KPIC'
12821
lt_prog_compiler_static_CXX='-Bstatic'
12822
lt_prog_compiler_wl_CXX='-Qoption ld '
12825
# Green Hills C++ Compiler
12826
lt_prog_compiler_pic_CXX='-PIC'
12833
case $cc_basename in
12836
lt_prog_compiler_pic_CXX='-pic'
12837
lt_prog_compiler_static_CXX='-Bstatic'
12841
lt_prog_compiler_pic_CXX='-pic'
12848
case $cc_basename in
12850
# NonStop-UX NCC 3.20
12851
lt_prog_compiler_pic_CXX='-KPIC'
12857
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12858
case $cc_basename in
12860
lt_prog_compiler_wl_CXX='-Wl,'
12861
lt_prog_compiler_pic_CXX='-KPIC'
12862
lt_prog_compiler_static_CXX='-Bstatic'
12869
lt_prog_compiler_can_build_shared_CXX=no
12874
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12875
$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12878
# Check to make sure the PIC flag actually works.
12880
if test -n "$lt_prog_compiler_pic_CXX"; then
12882
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12883
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12884
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12885
$as_echo_n "(cached) " >&6
12887
lt_cv_prog_compiler_pic_works_CXX=no
12888
ac_outfile=conftest.$ac_objext
12889
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12890
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12891
# Insert the option either (1) after the last *FLAGS variable, or
12892
# (2) before a word containing "conftest.", or (3) at the end.
12893
# Note that $ac_compile itself does not contain backslashes and begins
12894
# with a dollar sign (not a hyphen), so the echo should work correctly.
12895
# The option is referenced via a variable to avoid confusing sed.
12896
lt_compile=`echo "$ac_compile" | $SED \
12897
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12898
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12899
-e 's:$: $lt_compiler_flag:'`
12900
(eval echo "\"\$as_me:12900: $lt_compile\"" >&5)
12901
(eval "$lt_compile" 2>conftest.err)
12903
cat conftest.err >&5
12904
echo "$as_me:12904: \$? = $ac_status" >&5
12905
if (exit $ac_status) && test -s "$ac_outfile"; then
12906
# The compiler can only warn and ignore the option if not recognized
12907
# So say no if there are warnings other than the usual output.
12908
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12909
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12910
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12911
lt_cv_prog_compiler_pic_works_CXX=yes
12917
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12918
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12920
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12921
case $lt_prog_compiler_pic_CXX in
12923
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12926
lt_prog_compiler_pic_CXX=
12927
lt_prog_compiler_can_build_shared_CXX=no
12932
# For platforms which do not support PIC, -DPIC is meaningless:
12934
lt_prog_compiler_pic_CXX=
12937
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12942
# Check to make sure the static flag actually works.
12944
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12945
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12946
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12947
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12948
$as_echo_n "(cached) " >&6
12950
lt_cv_prog_compiler_static_works_CXX=no
12951
save_LDFLAGS="$LDFLAGS"
12952
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12953
echo "$lt_simple_link_test_code" > conftest.$ac_ext
12954
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12955
# The linker can only warn and ignore the option if not recognized
12956
# So say no if there are warnings
12957
if test -s conftest.err; then
12958
# Append any errors to the config.log.
12959
cat conftest.err 1>&5
12960
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12961
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12962
if diff conftest.exp conftest.er2 >/dev/null; then
12963
lt_cv_prog_compiler_static_works_CXX=yes
12966
lt_cv_prog_compiler_static_works_CXX=yes
12970
LDFLAGS="$save_LDFLAGS"
12973
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12974
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12976
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12979
lt_prog_compiler_static_CXX=
12983
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12984
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12985
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12986
$as_echo_n "(cached) " >&6
12988
lt_cv_prog_compiler_c_o_CXX=no
12989
$rm -r conftest 2>/dev/null
12993
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12995
lt_compiler_flag="-o out/conftest2.$ac_objext"
12996
# Insert the option either (1) after the last *FLAGS variable, or
12997
# (2) before a word containing "conftest.", or (3) at the end.
12998
# Note that $ac_compile itself does not contain backslashes and begins
12999
# with a dollar sign (not a hyphen), so the echo should work correctly.
13000
lt_compile=`echo "$ac_compile" | $SED \
13001
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13002
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13003
-e 's:$: $lt_compiler_flag:'`
13004
(eval echo "\"\$as_me:13004: $lt_compile\"" >&5)
13005
(eval "$lt_compile" 2>out/conftest.err)
13007
cat out/conftest.err >&5
13008
echo "$as_me:13008: \$? = $ac_status" >&5
13009
if (exit $ac_status) && test -s out/conftest2.$ac_objext
13011
# The compiler can only warn and ignore the option if not recognized
13012
# So say no if there are warnings
13013
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13014
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13015
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13016
lt_cv_prog_compiler_c_o_CXX=yes
13021
# SGI C++ compiler will create directory out/ii_files/ for
13022
# template instantiation
13023
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13024
$rm out/* && rmdir out
13030
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13031
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13034
hard_links="nottested"
13035
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13036
# do not overwrite the value of need_locks provided by the user
13037
{ $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13038
$as_echo_n "checking if we can lock with hard links... " >&6; }
13041
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13043
ln conftest.a conftest.b 2>&5 || hard_links=no
13044
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13045
{ $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13046
$as_echo "$hard_links" >&6; }
13047
if test "$hard_links" = no; then
13048
{ $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13049
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13056
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13057
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13059
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13062
# If we're using GNU nm, then we don't want the "-C" option.
13063
# -C means demangle to AIX nm, but means don't demangle with GNU nm
13064
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13065
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'
13067
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'
13071
export_symbols_cmds_CXX="$ltdll_cmds"
13074
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'
13076
linux* | k*bsd*-gnu)
13077
link_all_deplibs_CXX=no
13080
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13083
exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13085
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13086
$as_echo "$ld_shlibs_CXX" >&6; }
13087
test "$ld_shlibs_CXX" = no && can_build_shared=no
13090
# Do we need to explicitly link libc?
13092
case "x$archive_cmds_need_lc_CXX" in
13094
# Assume -lc should be added
13095
archive_cmds_need_lc_CXX=yes
13097
if test "$enable_shared" = yes && test "$GCC" = yes; then
13098
case $archive_cmds_CXX in
13100
# FIXME: we may have to deal with multi-command sequences.
13103
# Test whether the compiler implicitly links with -lc since on some
13104
# systems, -lgcc has to come before -lc. If gcc already passes -lc
13105
# to ld, don't add -lc before -lgcc.
13106
{ $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13107
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13109
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13111
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13112
(eval $ac_compile) 2>&5
13114
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115
(exit $ac_status); } 2>conftest.err; then
13118
libobjs=conftest.$ac_objext
13120
wl=$lt_prog_compiler_wl_CXX
13121
pic_flag=$lt_prog_compiler_pic_CXX
13127
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13128
allow_undefined_flag_CXX=
13129
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13130
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13132
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133
(exit $ac_status); }
13135
archive_cmds_need_lc_CXX=no
13137
archive_cmds_need_lc_CXX=yes
13139
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13141
cat conftest.err 1>&5
13144
{ $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13145
$as_echo "$archive_cmds_need_lc_CXX" >&6; }
13152
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13153
$as_echo_n "checking dynamic linker characteristics... " >&6; }
13154
library_names_spec=
13155
libname_spec='lib$name'
13159
postuninstall_cmds=
13163
shlibpath_overrides_runpath=unknown
13165
dynamic_linker="$host_os ld.so"
13166
sys_lib_dlsearch_path_spec="/lib /usr/lib"
13168
need_lib_prefix=unknown
13169
hardcode_into_libs=no
13171
# when you set need_version to no, make sure it does not cause -set_version
13172
# flags to be left without arguments
13173
need_version=unknown
13178
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13179
shlibpath_var=LIBPATH
13181
# AIX 3 has no versioning support, so we append a major version to the name.
13182
soname_spec='${libname}${release}${shared_ext}$major'
13189
hardcode_into_libs=yes
13190
if test "$host_cpu" = ia64; then
13191
# AIX 5 supports IA64
13192
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13193
shlibpath_var=LD_LIBRARY_PATH
13195
# With GCC up to 2.95.x, collect2 would create an import file
13196
# for dependence libraries. The import file would start with
13197
# the line `#! .'. This would cause the generated library to
13198
# depend on `.', always an invalid library. This was fixed in
13199
# development snapshots of GCC prior to 3.0.
13201
aix4 | aix4.[01] | aix4.[01].*)
13202
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13204
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13207
can_build_shared=no
13211
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13212
# soname into executable. Probably we can add versioning support to
13213
# collect2, so additional links can be useful in future.
13214
if test "$aix_use_runtimelinking" = yes; then
13215
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
13216
# instead of lib<name>.a to let people know that these are not
13217
# typical AIX shared libraries.
13218
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13220
# We preserve .a as extension for shared libraries through AIX4.2
13221
# and later when we are not doing run time linking.
13222
library_names_spec='${libname}${release}.a $libname.a'
13223
soname_spec='${libname}${release}${shared_ext}$major'
13225
shlibpath_var=LIBPATH
13230
library_names_spec='$libname.ixlibrary $libname.a'
13231
# Create ${libname}_ixlibrary.a entries in /sys/libs.
13232
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'
13236
library_names_spec='${libname}${shared_ext}'
13237
dynamic_linker="$host_os ld.so"
13238
shlibpath_var=LIBRARY_PATH
13244
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13245
soname_spec='${libname}${release}${shared_ext}$major'
13246
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13247
shlibpath_var=LD_LIBRARY_PATH
13248
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13249
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13250
# the default ld.so.conf also contains /usr/contrib/lib and
13251
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13252
# libtool to hard-code these into programs
13255
cygwin* | mingw* | pw32*)
13256
version_type=windows
13261
case $GCC,$host_os in
13262
yes,cygwin* | yes,mingw* | yes,pw32*)
13263
library_names_spec='$libname.dll.a'
13264
# DLL is installed to $(libdir)/../bin by postinstall_cmds
13265
postinstall_cmds='base_file=`basename \${file}`~
13266
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13267
dldir=$destdir/`dirname \$dlpath`~
13268
test -d \$dldir || mkdir -p \$dldir~
13269
$install_prog $dir/$dlname \$dldir/$dlname~
13270
chmod a+x \$dldir/$dlname'
13271
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13272
dlpath=$dir/\$dldll~
13274
shlibpath_overrides_runpath=yes
13278
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
13279
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13280
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13283
# MinGW DLLs use traditional 'lib' prefix
13284
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13285
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13286
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13287
# It is most probably a Windows format PATH printed by
13288
# mingw gcc, but we are running on Cygwin. Gcc prints its search
13289
# path with ; separators, and with drive letters. We can handle the
13290
# drive letters (cygwin fileutils understands them), so leave them,
13291
# especially as we might pass files found there to a mingw objdump,
13292
# which wouldn't understand a cygwinified path. Ahh.
13293
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13295
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13299
# pw32 DLLs use 'pw' prefix rather than 'lib'
13300
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13306
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13309
dynamic_linker='Win32 ld.exe'
13310
# FIXME: first we should search . and the directory the executable is in
13314
darwin* | rhapsody*)
13315
dynamic_linker="$host_os dyld"
13316
version_type=darwin
13319
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13320
soname_spec='${libname}${release}${major}$shared_ext'
13321
shlibpath_overrides_runpath=yes
13322
shlibpath_var=DYLD_LIBRARY_PATH
13323
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13325
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13332
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13333
soname_spec='${libname}${release}${shared_ext}$major'
13334
shlibpath_var=LD_LIBRARY_PATH
13341
freebsd* | dragonfly*)
13342
# DragonFly does not have aout. When/if they implement a new
13343
# versioning mechanism, adjust this.
13344
if test -x /usr/bin/objformat; then
13345
objformat=`/usr/bin/objformat`
13348
freebsd[123]*) objformat=aout ;;
13349
*) objformat=elf ;;
13352
version_type=freebsd-$objformat
13353
case $version_type in
13355
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13360
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13364
shlibpath_var=LD_LIBRARY_PATH
13367
shlibpath_overrides_runpath=yes
13369
freebsd3.[01]* | freebsdelf3.[01]*)
13370
shlibpath_overrides_runpath=yes
13371
hardcode_into_libs=yes
13373
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13374
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13375
shlibpath_overrides_runpath=no
13376
hardcode_into_libs=yes
13378
*) # from 4.6 on, and DragonFly
13379
shlibpath_overrides_runpath=yes
13380
hardcode_into_libs=yes
13389
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13390
soname_spec='${libname}${release}${shared_ext}$major'
13391
shlibpath_var=LD_LIBRARY_PATH
13392
hardcode_into_libs=yes
13395
hpux9* | hpux10* | hpux11*)
13396
# Give a soname corresponding to the major version so that dld.sl refuses to
13397
# link against other versions.
13404
hardcode_into_libs=yes
13405
dynamic_linker="$host_os dld.so"
13406
shlibpath_var=LD_LIBRARY_PATH
13407
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13408
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13409
soname_spec='${libname}${release}${shared_ext}$major'
13410
if test "X$HPUX_IA64_MODE" = X32; then
13411
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13413
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13415
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13419
hardcode_into_libs=yes
13420
dynamic_linker="$host_os dld.sl"
13421
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13422
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13423
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13424
soname_spec='${libname}${release}${shared_ext}$major'
13425
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13426
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13430
dynamic_linker="$host_os dld.sl"
13431
shlibpath_var=SHLIB_PATH
13432
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13433
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13434
soname_spec='${libname}${release}${shared_ext}$major'
13437
# HP-UX runs *really* slowly unless shared libraries are mode 555.
13438
postinstall_cmds='chmod 555 $lib'
13445
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13446
soname_spec='${libname}${release}${shared_ext}$major'
13447
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13448
shlibpath_var=LD_LIBRARY_PATH
13449
shlibpath_overrides_runpath=no
13450
hardcode_into_libs=yes
13453
irix5* | irix6* | nonstopux*)
13455
nonstopux*) version_type=nonstopux ;;
13457
if test "$lt_cv_prog_gnu_ld" = yes; then
13465
soname_spec='${libname}${release}${shared_ext}$major'
13466
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13468
irix5* | nonstopux*)
13469
libsuff= shlibsuff=
13472
case $LD in # libtool.m4 will add one of these switches to LD
13473
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13474
libsuff= shlibsuff= libmagic=32-bit;;
13475
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13476
libsuff=32 shlibsuff=N32 libmagic=N32;;
13477
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13478
libsuff=64 shlibsuff=64 libmagic=64-bit;;
13479
*) libsuff= shlibsuff= libmagic=never-match;;
13483
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13484
shlibpath_overrides_runpath=no
13485
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13486
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13487
hardcode_into_libs=yes
13490
# No shared lib support for Linux oldld, aout, or coff.
13491
linux*oldld* | linux*aout* | linux*coff*)
13495
# This must be Linux ELF.
13496
linux* | k*bsd*-gnu)
13500
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13501
soname_spec='${libname}${release}${shared_ext}$major'
13502
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13503
shlibpath_var=LD_LIBRARY_PATH
13504
shlibpath_overrides_runpath=no
13505
# This implies no fast_install, which is unacceptable.
13506
# Some rework will be needed to allow for fast_install
13507
# before this can be enabled.
13508
hardcode_into_libs=yes
13510
# find out which ABI we are using
13512
case "$host_cpu" in
13513
x86_64*|s390x*|powerpc64*)
13514
echo '#line 13514 "configure"' > conftest.$ac_ext
13515
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13516
(eval $ac_compile) 2>&5
13518
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519
(exit $ac_status); }; then
13520
case `/usr/bin/file conftest.$ac_objext` in
13530
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
13532
# Append ld.so.conf contents to the search path
13533
if test -f /etc/ld.so.conf; then
13534
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' ' '`
13535
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13538
# We used to test for /lib/ld.so.1 and disable shared libraries on
13539
# powerpc, because MkLinux only supported shared libraries with the
13540
# GNU dynamic linker. Since this was broken with cross compilers,
13541
# most powerpc-linux boxes support dynamic linking these days and
13542
# people can always --disable-shared, the test was removed, and we
13543
# assume the GNU/Linux dynamic linker is in use.
13544
dynamic_linker='GNU/Linux ld.so'
13551
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13552
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13553
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13554
dynamic_linker='NetBSD (a.out) ld.so'
13556
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13557
soname_spec='${libname}${release}${shared_ext}$major'
13558
dynamic_linker='NetBSD ld.elf_so'
13560
shlibpath_var=LD_LIBRARY_PATH
13561
shlibpath_overrides_runpath=yes
13562
hardcode_into_libs=yes
13567
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13568
shlibpath_var=LD_LIBRARY_PATH
13569
shlibpath_overrides_runpath=yes
13576
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13577
soname_spec='${libname}${release}${shared_ext}$major'
13578
shlibpath_var=LD_LIBRARY_PATH
13579
shlibpath_overrides_runpath=yes
13584
sys_lib_dlsearch_path_spec="/usr/lib"
13586
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13588
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13589
*) need_version=no ;;
13591
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13592
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13593
shlibpath_var=LD_LIBRARY_PATH
13594
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13596
openbsd2.[89] | openbsd2.[89].*)
13597
shlibpath_overrides_runpath=no
13600
shlibpath_overrides_runpath=yes
13604
shlibpath_overrides_runpath=yes
13609
libname_spec='$name'
13612
library_names_spec='$libname${shared_ext} $libname.a'
13613
dynamic_linker='OS/2 ld.exe'
13614
shlibpath_var=LIBPATH
13617
osf3* | osf4* | osf5*)
13621
soname_spec='${libname}${release}${shared_ext}$major'
13622
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13623
shlibpath_var=LD_LIBRARY_PATH
13624
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13625
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13636
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13637
soname_spec='${libname}${release}${shared_ext}$major'
13638
shlibpath_var=LD_LIBRARY_PATH
13639
shlibpath_overrides_runpath=yes
13640
hardcode_into_libs=yes
13641
# ldd complains unless libraries are executable
13642
postinstall_cmds='chmod +x $lib'
13647
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13648
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13649
shlibpath_var=LD_LIBRARY_PATH
13650
shlibpath_overrides_runpath=yes
13651
if test "$with_gnu_ld" = yes; then
13659
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13660
soname_spec='${libname}${release}${shared_ext}$major'
13661
shlibpath_var=LD_LIBRARY_PATH
13662
case $host_vendor in
13664
shlibpath_overrides_runpath=no
13666
export_dynamic_flag_spec='${wl}-Blargedynsym'
13667
runpath_var=LD_RUN_PATH
13675
shlibpath_overrides_runpath=no
13676
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13682
if test -d /usr/nec ;then
13684
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13685
soname_spec='$libname${shared_ext}.$major'
13686
shlibpath_var=LD_LIBRARY_PATH
13690
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13691
version_type=freebsd-elf
13694
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13695
soname_spec='${libname}${release}${shared_ext}$major'
13696
shlibpath_var=LD_LIBRARY_PATH
13697
hardcode_into_libs=yes
13698
if test "$with_gnu_ld" = yes; then
13699
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13700
shlibpath_overrides_runpath=no
13702
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13703
shlibpath_overrides_runpath=yes
13706
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13710
sys_lib_dlsearch_path_spec='/usr/lib'
13715
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13716
soname_spec='${libname}${release}${shared_ext}$major'
13717
shlibpath_var=LD_LIBRARY_PATH
13724
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13725
$as_echo "$dynamic_linker" >&6; }
13726
test "$dynamic_linker" = no && can_build_shared=no
13728
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13729
$as_echo_n "(cached) " >&6
13731
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13734
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13735
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13736
$as_echo_n "(cached) " >&6
13738
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13741
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13743
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13744
if test "$GCC" = yes; then
13745
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13748
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13749
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13750
hardcode_action_CXX=
13751
if test -n "$hardcode_libdir_flag_spec_CXX" || \
13752
test -n "$runpath_var_CXX" || \
13753
test "X$hardcode_automatic_CXX" = "Xyes" ; then
13755
# We can hardcode non-existant directories.
13756
if test "$hardcode_direct_CXX" != no &&
13757
# If the only mechanism to avoid hardcoding is shlibpath_var, we
13758
# have to relink, otherwise we might link with an installed library
13759
# when we should be linking with a yet-to-be-installed one
13760
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13761
test "$hardcode_minus_L_CXX" != no; then
13762
# Linking always hardcodes the temporary library directory.
13763
hardcode_action_CXX=relink
13765
# We can link without hardcoding, and we can hardcode nonexisting dirs.
13766
hardcode_action_CXX=immediate
13769
# We cannot hardcode anything, or else we can only hardcode existing
13771
hardcode_action_CXX=unsupported
13773
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13774
$as_echo "$hardcode_action_CXX" >&6; }
13776
if test "$hardcode_action_CXX" = relink; then
13777
# Fast installation is not supported
13778
enable_fast_install=no
13779
elif test "$shlibpath_overrides_runpath" = yes ||
13780
test "$enable_shared" = no; then
13781
# Fast installation is not necessary
13782
enable_fast_install=needless
13786
# The else clause should only fire when bootstrapping the
13787
# libtool distribution, otherwise you forgot to ship ltmain.sh
13788
# with your package, and you will get complaints that there are
13789
# no rules to generate ltmain.sh.
13790
if test -f "$ltmain"; then
13791
# See if we are running on zsh, and set the options which allow our commands through
13792
# without removal of \ escapes.
13793
if test -n "${ZSH_VERSION+set}" ; then
13794
setopt NO_GLOB_SUBST
13796
# Now quote all the things that may contain metacharacters while being
13797
# careful not to overquote the AC_SUBSTed values. We take copies of the
13798
# variables and quote the copies for generation of the libtool script.
13799
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13801
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13802
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13803
deplibs_check_method reload_flag reload_cmds need_locks \
13804
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13805
lt_cv_sys_global_symbol_to_c_name_address \
13806
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13807
old_postinstall_cmds old_postuninstall_cmds \
13811
lt_prog_compiler_wl_CXX \
13812
lt_prog_compiler_pic_CXX \
13813
lt_prog_compiler_static_CXX \
13814
lt_prog_compiler_no_builtin_flag_CXX \
13815
export_dynamic_flag_spec_CXX \
13816
thread_safe_flag_spec_CXX \
13817
whole_archive_flag_spec_CXX \
13818
enable_shared_with_static_runtimes_CXX \
13819
old_archive_cmds_CXX \
13820
old_archive_from_new_cmds_CXX \
13821
predep_objects_CXX \
13822
postdep_objects_CXX \
13825
compiler_lib_search_path_CXX \
13826
compiler_lib_search_dirs_CXX \
13828
archive_expsym_cmds_CXX \
13829
postinstall_cmds_CXX \
13830
postuninstall_cmds_CXX \
13831
old_archive_from_expsyms_cmds_CXX \
13832
allow_undefined_flag_CXX \
13833
no_undefined_flag_CXX \
13834
export_symbols_cmds_CXX \
13835
hardcode_libdir_flag_spec_CXX \
13836
hardcode_libdir_flag_spec_ld_CXX \
13837
hardcode_libdir_separator_CXX \
13838
hardcode_automatic_CXX \
13840
module_expsym_cmds_CXX \
13841
lt_cv_prog_compiler_c_o_CXX \
13842
fix_srcfile_path_CXX \
13843
exclude_expsyms_CXX \
13844
include_expsyms_CXX; do
13847
old_archive_cmds_CXX | \
13848
old_archive_from_new_cmds_CXX | \
13849
archive_cmds_CXX | \
13850
archive_expsym_cmds_CXX | \
13851
module_cmds_CXX | \
13852
module_expsym_cmds_CXX | \
13853
old_archive_from_expsyms_cmds_CXX | \
13854
export_symbols_cmds_CXX | \
13855
extract_expsyms_cmds | reload_cmds | finish_cmds | \
13856
postinstall_cmds | postuninstall_cmds | \
13857
old_postinstall_cmds | old_postuninstall_cmds | \
13858
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13859
# Double-quote double-evaled strings.
13860
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13863
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13869
*'\$0 --fallback-echo"')
13870
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13876
cat <<__EOF__ >> "$cfgfile"
13877
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13879
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13881
# Shell to use when invoking shell scripts.
13884
# Whether or not to build shared libraries.
13885
build_libtool_libs=$enable_shared
13887
# Whether or not to build static libraries.
13888
build_old_libs=$enable_static
13890
# Whether or not to add -lc for building shared libraries.
13891
build_libtool_need_lc=$archive_cmds_need_lc_CXX
13893
# Whether or not to disallow shared libs when runtime libs are static
13894
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13896
# Whether or not to optimize for fast installation.
13897
fast_install=$enable_fast_install
13900
host_alias=$host_alias
13904
# The build system.
13905
build_alias=$build_alias
13909
# An echo program that does not interpret backslashes.
13914
AR_FLAGS=$lt_AR_FLAGS
13919
# LTCC compiler flags.
13920
LTCFLAGS=$lt_LTCFLAGS
13922
# A language-specific compiler.
13923
CC=$lt_compiler_CXX
13925
# Is the compiler the GNU C compiler?
13931
# The linker used to build libraries.
13934
# Whether we need hard or soft links.
13937
# A BSD-compatible nm program.
13940
# A symbol stripping program
13943
# Used to examine libraries when file_magic_cmd begins "file"
13944
MAGIC_CMD=$MAGIC_CMD
13946
# Used on cygwin: DLL creation program.
13949
# Used on cygwin: object dumper.
13952
# Used on cygwin: assembler.
13955
# The name of the directory that contains temporary libtool files.
13958
# How to create reloadable object files.
13959
reload_flag=$lt_reload_flag
13960
reload_cmds=$lt_reload_cmds
13962
# How to pass a linker flag through the compiler.
13963
wl=$lt_lt_prog_compiler_wl_CXX
13965
# Object file suffix (normally "o").
13966
objext="$ac_objext"
13968
# Old archive suffix (normally "a").
13971
# Shared library suffix (normally ".so").
13972
shrext_cmds='$shrext_cmds'
13974
# Executable file suffix (normally "").
13977
# Additional compiler flags for building library objects.
13978
pic_flag=$lt_lt_prog_compiler_pic_CXX
13981
# What is the maximum length of a command?
13982
max_cmd_len=$lt_cv_sys_max_cmd_len
13984
# Does compiler simultaneously support -c and -o options?
13985
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13987
# Must we lock files when doing compilation?
13988
need_locks=$lt_need_locks
13990
# Do we need the lib prefix for modules?
13991
need_lib_prefix=$need_lib_prefix
13993
# Do we need a version for libraries?
13994
need_version=$need_version
13996
# Whether dlopen is supported.
13997
dlopen_support=$enable_dlopen
13999
# Whether dlopen of programs is supported.
14000
dlopen_self=$enable_dlopen_self
14002
# Whether dlopen of statically linked programs is supported.
14003
dlopen_self_static=$enable_dlopen_self_static
14005
# Compiler flag to prevent dynamic linking.
14006
link_static_flag=$lt_lt_prog_compiler_static_CXX
14008
# Compiler flag to turn off builtin functions.
14009
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14011
# Compiler flag to allow reflexive dlopens.
14012
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14014
# Compiler flag to generate shared objects directly from archives.
14015
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14017
# Compiler flag to generate thread-safe objects.
14018
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14020
# Library versioning type.
14021
version_type=$version_type
14023
# Format of library name prefix.
14024
libname_spec=$lt_libname_spec
14026
# List of archive names. First name is the real one, the rest are links.
14027
# The last name is the one that the linker finds with -lNAME.
14028
library_names_spec=$lt_library_names_spec
14030
# The coded name of the library, if different from the real name.
14031
soname_spec=$lt_soname_spec
14033
# Commands used to build and install an old-style archive.
14035
old_archive_cmds=$lt_old_archive_cmds_CXX
14036
old_postinstall_cmds=$lt_old_postinstall_cmds
14037
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14039
# Create an old-style archive from a shared archive.
14040
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14042
# Create a temporary old-style archive to link instead of a shared archive.
14043
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14045
# Commands used to build and install a shared archive.
14046
archive_cmds=$lt_archive_cmds_CXX
14047
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14048
postinstall_cmds=$lt_postinstall_cmds
14049
postuninstall_cmds=$lt_postuninstall_cmds
14051
# Commands used to build a loadable module (assumed same as above if empty)
14052
module_cmds=$lt_module_cmds_CXX
14053
module_expsym_cmds=$lt_module_expsym_cmds_CXX
14055
# Commands to strip libraries.
14056
old_striplib=$lt_old_striplib
14057
striplib=$lt_striplib
14059
# Dependencies to place before the objects being linked to create a
14061
predep_objects=$lt_predep_objects_CXX
14063
# Dependencies to place after the objects being linked to create a
14065
postdep_objects=$lt_postdep_objects_CXX
14067
# Dependencies to place before the objects being linked to create a
14069
predeps=$lt_predeps_CXX
14071
# Dependencies to place after the objects being linked to create a
14073
postdeps=$lt_postdeps_CXX
14075
# The directories searched by this compiler when creating a shared
14077
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14079
# The library search path used internally by the compiler when linking
14080
# a shared library.
14081
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14083
# Method to check whether dependent libraries are shared objects.
14084
deplibs_check_method=$lt_deplibs_check_method
14086
# Command to use when deplibs_check_method == file_magic.
14087
file_magic_cmd=$lt_file_magic_cmd
14089
# Flag that allows shared libraries with undefined symbols to be built.
14090
allow_undefined_flag=$lt_allow_undefined_flag_CXX
14092
# Flag that forces no undefined symbols.
14093
no_undefined_flag=$lt_no_undefined_flag_CXX
14095
# Commands used to finish a libtool library installation in a directory.
14096
finish_cmds=$lt_finish_cmds
14098
# Same as above, but a single script fragment to be evaled but not shown.
14099
finish_eval=$lt_finish_eval
14101
# Take the output of nm and produce a listing of raw symbols and C names.
14102
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14104
# Transform the output of nm in a proper C declaration
14105
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14107
# Transform the output of nm in a C name address pair
14108
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14110
# This is the shared library runtime path variable.
14111
runpath_var=$runpath_var
14113
# This is the shared library path variable.
14114
shlibpath_var=$shlibpath_var
14116
# Is shlibpath searched before the hard-coded library search path?
14117
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14119
# How to hardcode a shared library path into an executable.
14120
hardcode_action=$hardcode_action_CXX
14122
# Whether we should hardcode library paths into libraries.
14123
hardcode_into_libs=$hardcode_into_libs
14125
# Flag to hardcode \$libdir into a binary during linking.
14126
# This must work even if \$libdir does not exist.
14127
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14129
# If ld is used when linking, flag to hardcode \$libdir into
14130
# a binary during linking. This must work even if \$libdir does
14132
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14134
# Whether we need a single -rpath flag with a separated argument.
14135
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14137
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14138
# resulting binary.
14139
hardcode_direct=$hardcode_direct_CXX
14141
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14142
# resulting binary.
14143
hardcode_minus_L=$hardcode_minus_L_CXX
14145
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14146
# the resulting binary.
14147
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14149
# Set to yes if building a shared library automatically hardcodes DIR into the library
14150
# and all subsequent libraries and executables linked against it.
14151
hardcode_automatic=$hardcode_automatic_CXX
14153
# Variables whose values should be saved in libtool wrapper scripts and
14154
# restored at relink time.
14155
variables_saved_for_relink="$variables_saved_for_relink"
14157
# Whether libtool must link a program against all its dependency libraries.
14158
link_all_deplibs=$link_all_deplibs_CXX
14160
# Compile-time system search path for libraries
14161
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14163
# Run-time system search path for libraries
14164
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14166
# Fix the shell variable \$srcfile for the compiler.
14167
fix_srcfile_path=$lt_fix_srcfile_path
14169
# Set to yes if exported symbols are required.
14170
always_export_symbols=$always_export_symbols_CXX
14172
# The commands to list exported symbols.
14173
export_symbols_cmds=$lt_export_symbols_cmds_CXX
14175
# The commands to extract the exported symbol list from a shared archive.
14176
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14178
# Symbols that should not be listed in the preloaded symbols.
14179
exclude_expsyms=$lt_exclude_expsyms_CXX
14181
# Symbols that must always be exported.
14182
include_expsyms=$lt_include_expsyms_CXX
14184
# ### END LIBTOOL TAG CONFIG: $tagname
14190
# If there is no Makefile yet, we rely on a make rule to execute
14191
# `config.status --recheck' to rerun these tests and create the
14192
# libtool script then.
14193
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14194
if test -f "$ltmain_in"; then
14195
test -f Makefile && make "$ltmain"
14201
ac_cpp='$CPP $CPPFLAGS'
14202
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14203
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14204
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14210
with_gnu_ldcxx=$with_gnu_ld
14211
with_gnu_ld=$lt_save_with_gnu_ld
14212
lt_cv_path_LDCXX=$lt_cv_path_LD
14213
lt_cv_path_LD=$lt_save_path_LD
14214
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14215
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14223
if test -n "$F77" && test "X$F77" != "Xno"; then
14226
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14227
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14228
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14231
archive_cmds_need_lc_F77=no
14232
allow_undefined_flag_F77=
14233
always_export_symbols_F77=no
14234
archive_expsym_cmds_F77=
14235
export_dynamic_flag_spec_F77=
14236
hardcode_direct_F77=no
14237
hardcode_libdir_flag_spec_F77=
14238
hardcode_libdir_flag_spec_ld_F77=
14239
hardcode_libdir_separator_F77=
14240
hardcode_minus_L_F77=no
14241
hardcode_automatic_F77=no
14243
module_expsym_cmds_F77=
14244
link_all_deplibs_F77=unknown
14245
old_archive_cmds_F77=$old_archive_cmds
14246
no_undefined_flag_F77=
14247
whole_archive_flag_spec_F77=
14248
enable_shared_with_static_runtimes_F77=no
14250
# Source file extension for f77 test sources.
14253
# Object file extension for compiled f77 test sources.
14257
# Code to be used in simple compile tests
14258
lt_simple_compile_test_code="\
14264
# Code to be used in simple link tests
14265
lt_simple_link_test_code="\
14270
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14272
# If no C compiler was specified, use CC.
14275
# If no C compiler flags were specified, use CFLAGS.
14276
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14278
# Allow CC to be a program name with arguments.
14282
# save warnings/boilerplate of simple test code
14283
ac_outfile=conftest.$ac_objext
14284
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14285
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14286
_lt_compiler_boilerplate=`cat conftest.err`
14289
ac_outfile=conftest.$ac_objext
14290
echo "$lt_simple_link_test_code" >conftest.$ac_ext
14291
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14292
_lt_linker_boilerplate=`cat conftest.err`
14296
# Allow CC to be a program name with arguments.
14301
for cc_temp in $compiler""; do
14303
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14304
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14309
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14312
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14313
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14314
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14315
$as_echo "$can_build_shared" >&6; }
14317
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14318
$as_echo_n "checking whether to build shared libraries... " >&6; }
14319
test "$can_build_shared" = "no" && enable_shared=no
14321
# On AIX, shared libraries and static libraries use the same namespace, and
14322
# are all built from PIC.
14325
test "$enable_shared" = yes && enable_static=no
14326
if test -n "$RANLIB"; then
14327
archive_cmds="$archive_cmds~\$RANLIB \$lib"
14328
postinstall_cmds='$RANLIB $lib'
14332
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14333
test "$enable_shared" = yes && enable_static=no
14337
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14338
$as_echo "$enable_shared" >&6; }
14340
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14341
$as_echo_n "checking whether to build static libraries... " >&6; }
14342
# Make sure either enable_shared or enable_static is yes.
14343
test "$enable_shared" = yes || enable_static=yes
14344
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14345
$as_echo "$enable_static" >&6; }
14350
lt_prog_compiler_wl_F77=
14351
lt_prog_compiler_pic_F77=
14352
lt_prog_compiler_static_F77=
14354
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14355
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14357
if test "$GCC" = yes; then
14358
lt_prog_compiler_wl_F77='-Wl,'
14359
lt_prog_compiler_static_F77='-static'
14363
# All AIX code is PIC.
14364
if test "$host_cpu" = ia64; then
14365
# AIX 5 now supports IA64 processor
14366
lt_prog_compiler_static_F77='-Bstatic'
14371
# FIXME: we need at least 68020 code to build shared libraries, but
14372
# adding the `-m68020' flag to GCC prevents building anything better,
14374
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14377
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14378
# PIC is the default for these OSes.
14381
mingw* | cygwin* | pw32* | os2*)
14382
# This hack is so that the source file can tell whether it is being
14383
# built for inclusion in a dll (and should export symbols for example).
14384
# Although the cygwin gcc ignores -fPIC, still need this for old-style
14385
# (--disable-auto-import) libraries
14386
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14389
darwin* | rhapsody*)
14390
# PIC is the default on this platform
14391
# Common symbols not allowed in MH_DYLIB files
14392
lt_prog_compiler_pic_F77='-fno-common'
14396
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
14397
# Instead, we relocate shared libraries at runtime.
14401
# Just because we use GCC doesn't mean we suddenly get shared libraries
14402
# on systems that don't support them.
14403
lt_prog_compiler_can_build_shared_F77=no
14408
if test -d /usr/nec; then
14409
lt_prog_compiler_pic_F77=-Kconform_pic
14414
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14415
# not for PA HP-UX.
14421
lt_prog_compiler_pic_F77='-fPIC'
14427
lt_prog_compiler_pic_F77='-fPIC'
14431
# PORTME Check for flag to pass linker flags through the system compiler.
14434
lt_prog_compiler_wl_F77='-Wl,'
14435
if test "$host_cpu" = ia64; then
14436
# AIX 5 now supports IA64 processor
14437
lt_prog_compiler_static_F77='-Bstatic'
14439
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14443
# PIC is the default on this platform
14444
# Common symbols not allowed in MH_DYLIB files
14445
case $cc_basename in
14447
lt_prog_compiler_pic_F77='-qnocommon'
14448
lt_prog_compiler_wl_F77='-Wl,'
14453
mingw* | cygwin* | pw32* | os2*)
14454
# This hack is so that the source file can tell whether it is being
14455
# built for inclusion in a dll (and should export symbols for example).
14456
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14459
hpux9* | hpux10* | hpux11*)
14460
lt_prog_compiler_wl_F77='-Wl,'
14461
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14462
# not for PA HP-UX.
14468
lt_prog_compiler_pic_F77='+Z'
14471
# Is there a better lt_prog_compiler_static that works with the bundled CC?
14472
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14475
irix5* | irix6* | nonstopux*)
14476
lt_prog_compiler_wl_F77='-Wl,'
14477
# PIC (with -KPIC) is the default.
14478
lt_prog_compiler_static_F77='-non_shared'
14482
lt_prog_compiler_pic_F77='-KPIC'
14483
lt_prog_compiler_static_F77='-Bstatic'
14486
linux* | k*bsd*-gnu)
14487
case $cc_basename in
14489
lt_prog_compiler_wl_F77='-Wl,'
14490
lt_prog_compiler_pic_F77='-KPIC'
14491
lt_prog_compiler_static_F77='-static'
14493
pgcc* | pgf77* | pgf90* | pgf95*)
14494
# Portland Group compilers (*not* the Pentium gcc compiler,
14495
# which looks to be a dead project)
14496
lt_prog_compiler_wl_F77='-Wl,'
14497
lt_prog_compiler_pic_F77='-fpic'
14498
lt_prog_compiler_static_F77='-Bstatic'
14501
lt_prog_compiler_wl_F77='-Wl,'
14502
# All Alpha code is PIC.
14503
lt_prog_compiler_static_F77='-non_shared'
14506
case `$CC -V 2>&1 | sed 5q` in
14509
lt_prog_compiler_pic_F77='-KPIC'
14510
lt_prog_compiler_static_F77='-Bstatic'
14511
lt_prog_compiler_wl_F77='-Wl,'
14514
# Sun Fortran 8.3 passes all unrecognized flags to the linker
14515
lt_prog_compiler_pic_F77='-KPIC'
14516
lt_prog_compiler_static_F77='-Bstatic'
14517
lt_prog_compiler_wl_F77=''
14524
osf3* | osf4* | osf5*)
14525
lt_prog_compiler_wl_F77='-Wl,'
14526
# All OSF/1 code is PIC.
14527
lt_prog_compiler_static_F77='-non_shared'
14531
lt_prog_compiler_static_F77='-non_shared'
14535
lt_prog_compiler_pic_F77='-KPIC'
14536
lt_prog_compiler_static_F77='-Bstatic'
14537
case $cc_basename in
14538
f77* | f90* | f95*)
14539
lt_prog_compiler_wl_F77='-Qoption ld ';;
14541
lt_prog_compiler_wl_F77='-Wl,';;
14546
lt_prog_compiler_wl_F77='-Qoption ld '
14547
lt_prog_compiler_pic_F77='-PIC'
14548
lt_prog_compiler_static_F77='-Bstatic'
14551
sysv4 | sysv4.2uw2* | sysv4.3*)
14552
lt_prog_compiler_wl_F77='-Wl,'
14553
lt_prog_compiler_pic_F77='-KPIC'
14554
lt_prog_compiler_static_F77='-Bstatic'
14558
if test -d /usr/nec ;then
14559
lt_prog_compiler_pic_F77='-Kconform_pic'
14560
lt_prog_compiler_static_F77='-Bstatic'
14564
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14565
lt_prog_compiler_wl_F77='-Wl,'
14566
lt_prog_compiler_pic_F77='-KPIC'
14567
lt_prog_compiler_static_F77='-Bstatic'
14571
lt_prog_compiler_wl_F77='-Wl,'
14572
lt_prog_compiler_can_build_shared_F77=no
14576
lt_prog_compiler_pic_F77='-pic'
14577
lt_prog_compiler_static_F77='-Bstatic'
14581
lt_prog_compiler_can_build_shared_F77=no
14586
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14587
$as_echo "$lt_prog_compiler_pic_F77" >&6; }
14590
# Check to make sure the PIC flag actually works.
14592
if test -n "$lt_prog_compiler_pic_F77"; then
14594
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14595
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14596
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14597
$as_echo_n "(cached) " >&6
14599
lt_cv_prog_compiler_pic_works_F77=no
14600
ac_outfile=conftest.$ac_objext
14601
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14602
lt_compiler_flag="$lt_prog_compiler_pic_F77"
14603
# Insert the option either (1) after the last *FLAGS variable, or
14604
# (2) before a word containing "conftest.", or (3) at the end.
14605
# Note that $ac_compile itself does not contain backslashes and begins
14606
# with a dollar sign (not a hyphen), so the echo should work correctly.
14607
# The option is referenced via a variable to avoid confusing sed.
14608
lt_compile=`echo "$ac_compile" | $SED \
14609
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14610
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14611
-e 's:$: $lt_compiler_flag:'`
14612
(eval echo "\"\$as_me:14612: $lt_compile\"" >&5)
14613
(eval "$lt_compile" 2>conftest.err)
14615
cat conftest.err >&5
14616
echo "$as_me:14616: \$? = $ac_status" >&5
14617
if (exit $ac_status) && test -s "$ac_outfile"; then
14618
# The compiler can only warn and ignore the option if not recognized
14619
# So say no if there are warnings other than the usual output.
14620
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14621
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14622
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14623
lt_cv_prog_compiler_pic_works_F77=yes
14629
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14630
$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14632
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14633
case $lt_prog_compiler_pic_F77 in
14635
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14638
lt_prog_compiler_pic_F77=
14639
lt_prog_compiler_can_build_shared_F77=no
14644
# For platforms which do not support PIC, -DPIC is meaningless:
14646
lt_prog_compiler_pic_F77=
14649
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14654
# Check to make sure the static flag actually works.
14656
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14657
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14658
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14659
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14660
$as_echo_n "(cached) " >&6
14662
lt_cv_prog_compiler_static_works_F77=no
14663
save_LDFLAGS="$LDFLAGS"
14664
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14665
echo "$lt_simple_link_test_code" > conftest.$ac_ext
14666
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14667
# The linker can only warn and ignore the option if not recognized
14668
# So say no if there are warnings
14669
if test -s conftest.err; then
14670
# Append any errors to the config.log.
14671
cat conftest.err 1>&5
14672
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14673
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14674
if diff conftest.exp conftest.er2 >/dev/null; then
14675
lt_cv_prog_compiler_static_works_F77=yes
14678
lt_cv_prog_compiler_static_works_F77=yes
14682
LDFLAGS="$save_LDFLAGS"
14685
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14686
$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14688
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14691
lt_prog_compiler_static_F77=
14695
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14696
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14697
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14698
$as_echo_n "(cached) " >&6
14700
lt_cv_prog_compiler_c_o_F77=no
14701
$rm -r conftest 2>/dev/null
14705
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14707
lt_compiler_flag="-o out/conftest2.$ac_objext"
14708
# Insert the option either (1) after the last *FLAGS variable, or
14709
# (2) before a word containing "conftest.", or (3) at the end.
14710
# Note that $ac_compile itself does not contain backslashes and begins
14711
# with a dollar sign (not a hyphen), so the echo should work correctly.
14712
lt_compile=`echo "$ac_compile" | $SED \
14713
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14714
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14715
-e 's:$: $lt_compiler_flag:'`
14716
(eval echo "\"\$as_me:14716: $lt_compile\"" >&5)
14717
(eval "$lt_compile" 2>out/conftest.err)
14719
cat out/conftest.err >&5
14720
echo "$as_me:14720: \$? = $ac_status" >&5
14721
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14723
# The compiler can only warn and ignore the option if not recognized
14724
# So say no if there are warnings
14725
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14726
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14727
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14728
lt_cv_prog_compiler_c_o_F77=yes
14733
# SGI C++ compiler will create directory out/ii_files/ for
14734
# template instantiation
14735
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14736
$rm out/* && rmdir out
14742
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14743
$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14746
hard_links="nottested"
14747
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14748
# do not overwrite the value of need_locks provided by the user
14749
{ $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14750
$as_echo_n "checking if we can lock with hard links... " >&6; }
14753
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14755
ln conftest.a conftest.b 2>&5 || hard_links=no
14756
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14757
{ $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14758
$as_echo "$hard_links" >&6; }
14759
if test "$hard_links" = no; then
14760
{ $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14761
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14768
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14769
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14772
allow_undefined_flag_F77=
14773
enable_shared_with_static_runtimes_F77=no
14775
archive_expsym_cmds_F77=
14776
old_archive_From_new_cmds_F77=
14777
old_archive_from_expsyms_cmds_F77=
14778
export_dynamic_flag_spec_F77=
14779
whole_archive_flag_spec_F77=
14780
thread_safe_flag_spec_F77=
14781
hardcode_libdir_flag_spec_F77=
14782
hardcode_libdir_flag_spec_ld_F77=
14783
hardcode_libdir_separator_F77=
14784
hardcode_direct_F77=no
14785
hardcode_minus_L_F77=no
14786
hardcode_shlibpath_var_F77=unsupported
14787
link_all_deplibs_F77=unknown
14788
hardcode_automatic_F77=no
14790
module_expsym_cmds_F77=
14791
always_export_symbols_F77=no
14792
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14793
# include_expsyms should be a list of space-separated symbols to be *always*
14794
# included in the symbol list
14795
include_expsyms_F77=
14796
# exclude_expsyms can be an extended regexp of symbols to exclude
14797
# it will be wrapped by ` (' and `)$', so one must not match beginning or
14798
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14799
# as well as any symbol that contains `d'.
14800
exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14801
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14802
# platforms (ab)use it in PIC code, but their linkers get confused if
14803
# the symbol is explicitly referenced. Since portable code cannot
14804
# rely on this symbol name, it's probably fine to never include it in
14805
# preloaded symbol tables.
14806
# Exclude shared library initialization/finalization symbols.
14807
extract_expsyms_cmds=
14808
# Just being paranoid about ensuring that cc_basename is set.
14809
for cc_temp in $compiler""; do
14811
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14812
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14817
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14820
cygwin* | mingw* | pw32*)
14821
# FIXME: the MSVC++ port hasn't been tested in a loooong time
14822
# When not using gcc, we currently assume that we are using
14823
# Microsoft Visual C++.
14824
if test "$GCC" != yes; then
14829
# we just hope/assume this is gcc and not c89 (= MSVC++)
14838
if test "$with_gnu_ld" = yes; then
14839
# If archive_cmds runs LD, not CC, wlarc should be empty
14842
# Set some defaults for GNU ld with shared library support. These
14843
# are reset later if shared libraries are not supported. Putting them
14844
# here allows them to be overridden if necessary.
14845
runpath_var=LD_RUN_PATH
14846
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14847
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14848
# ancient GNU ld didn't support --whole-archive et. al.
14849
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14850
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14852
whole_archive_flag_spec_F77=
14854
supports_anon_versioning=no
14855
case `$LD -v 2>/dev/null` in
14856
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14857
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14858
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14859
*\ 2.11.*) ;; # other 2.11 versions
14860
*) supports_anon_versioning=yes ;;
14863
# See if GNU ld supports shared libraries.
14866
# On AIX/PPC, the GNU linker is very broken
14867
if test "$host_cpu" != ia64; then
14871
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14872
*** to be unable to reliably create shared libraries on AIX.
14873
*** Therefore, libtool is disabling shared libraries support. If you
14874
*** really care for shared libraries, you may want to modify your PATH
14875
*** so that a non-GNU linker is found, and then restart.
14882
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)'
14883
hardcode_libdir_flag_spec_F77='-L$libdir'
14884
hardcode_minus_L_F77=yes
14886
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14887
# that the semantics of dynamic libraries on AmigaOS, at least up
14888
# to version 4, is to share data among multiple programs linked
14889
# with the same dynamic library. Since this doesn't match the
14890
# behavior of shared libraries on other platforms, we can't use
14896
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14897
allow_undefined_flag_F77=unsupported
14898
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14899
# support --undefined. This deserves some investigation. FIXME
14900
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14906
cygwin* | mingw* | pw32*)
14907
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14908
# as there is no search path for DLLs.
14909
hardcode_libdir_flag_spec_F77='-L$libdir'
14910
allow_undefined_flag_F77=unsupported
14911
always_export_symbols_F77=no
14912
enable_shared_with_static_runtimes_F77=yes
14913
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14915
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14916
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14917
# If the export-symbols file already is a .def file (1st line
14918
# is EXPORTS), use it as is; otherwise, prepend...
14919
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14920
cp $export_symbols $output_objdir/$soname.def;
14922
echo EXPORTS > $output_objdir/$soname.def;
14923
cat $export_symbols >> $output_objdir/$soname.def;
14925
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14932
hardcode_direct_F77=no
14933
hardcode_shlibpath_var_F77=no
14934
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14935
export_dynamic_flag_spec_F77='${wl}-E'
14936
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14937
# Instead, shared libraries are loaded at an image base (0x10000000 by
14938
# default) and relocated if they conflict, which is a slow very memory
14939
# consuming and fragmenting process. To avoid this, we pick a random,
14940
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14941
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
14942
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'
14943
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'
14946
gnu* | linux* | k*bsd*-gnu)
14947
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14949
case $cc_basename,$host_cpu in
14950
pgcc*) # Portland Group C compiler
14951
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'
14952
tmp_addflag=' $pic_flag'
14954
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14955
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'
14956
tmp_addflag=' $pic_flag -Mnomain' ;;
14957
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14958
tmp_addflag=' -i_dynamic' ;;
14959
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14960
tmp_addflag=' -i_dynamic -nofor_main' ;;
14961
ifc* | ifort*) # Intel Fortran compiler
14962
tmp_addflag=' -nofor_main' ;;
14964
case `$CC -V 2>&1 | sed 5q` in
14965
*Sun\ C*) # Sun C 5.9
14966
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'
14967
tmp_sharedflag='-G' ;;
14968
*Sun\ F*) # Sun Fortran 8.3
14969
tmp_sharedflag='-G' ;;
14971
tmp_sharedflag='-shared' ;;
14973
archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14975
if test $supports_anon_versioning = yes; then
14976
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14977
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14978
$echo "local: *; };" >> $output_objdir/$libname.ver~
14979
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14981
link_all_deplibs_F77=no
14988
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14989
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14992
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14993
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14998
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15002
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15003
*** create shared libraries on Solaris systems. Therefore, libtool
15004
*** is disabling shared libraries support. We urge you to upgrade GNU
15005
*** binutils to release 2.9.1 or newer. Another option is to modify
15006
*** your PATH or compiler configuration so that the native linker is
15007
*** used, and then restart.
15010
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15011
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15012
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15018
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15019
case `$LD -v 2>&1` in
15020
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15024
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15025
*** reliably create shared libraries on SCO systems. Therefore, libtool
15026
*** is disabling shared libraries support. We urge you to upgrade GNU
15027
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15028
*** your PATH or compiler configuration so that the native linker is
15029
*** used, and then restart.
15034
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15035
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15036
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15037
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15046
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15048
hardcode_direct_F77=yes
15049
hardcode_shlibpath_var_F77=no
15053
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15054
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15055
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15062
if test "$ld_shlibs_F77" = no; then
15064
hardcode_libdir_flag_spec_F77=
15065
export_dynamic_flag_spec_F77=
15066
whole_archive_flag_spec_F77=
15069
# PORTME fill in a description of your system's linker (not GNU ld)
15072
allow_undefined_flag_F77=unsupported
15073
always_export_symbols_F77=yes
15074
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'
15075
# Note: this linker hardcodes the directories in LIBPATH if there
15076
# are no directories specified by -L.
15077
hardcode_minus_L_F77=yes
15078
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15079
# Neither direct hardcoding nor static linking is supported with a
15081
hardcode_direct_F77=unsupported
15086
if test "$host_cpu" = ia64; then
15087
# On IA64, the linker does run time linking by default, so we don't
15088
# have to do anything special.
15089
aix_use_runtimelinking=no
15090
exp_sym_flag='-Bexport'
15093
# If we're using GNU nm, then we don't want the "-C" option.
15094
# -C means demangle to AIX nm, but means don't demangle with GNU nm
15095
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15096
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'
15098
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'
15100
aix_use_runtimelinking=no
15102
# Test if we are trying to use run time linking or normal
15103
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15104
# need to do runtime linking.
15105
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15106
for ld_flag in $LDFLAGS; do
15107
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15108
aix_use_runtimelinking=yes
15115
exp_sym_flag='-bexport'
15116
no_entry_flag='-bnoentry'
15119
# When large executables or shared objects are built, AIX ld can
15120
# have problems creating the table of contents. If linking a library
15121
# or program results in "error TOC overflow" add -mminimal-toc to
15122
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15123
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15125
archive_cmds_F77=''
15126
hardcode_direct_F77=yes
15127
hardcode_libdir_separator_F77=':'
15128
link_all_deplibs_F77=yes
15130
if test "$GCC" = yes; then
15131
case $host_os in aix4.[012]|aix4.[012].*)
15132
# We only want to do this on AIX 4.2 and lower, the check
15133
# below for broken collect2 doesn't work under 4.3+
15134
collect2name=`${CC} -print-prog-name=collect2`
15135
if test -f "$collect2name" && \
15136
strings "$collect2name" | grep resolve_lib_name >/dev/null
15138
# We have reworked collect2
15141
# We have old collect2
15142
hardcode_direct_F77=unsupported
15143
# It fails to find uninstalled libraries when the uninstalled
15144
# path is not listed in the libpath. Setting hardcode_minus_L
15145
# to unsupported forces relinking
15146
hardcode_minus_L_F77=yes
15147
hardcode_libdir_flag_spec_F77='-L$libdir'
15148
hardcode_libdir_separator_F77=
15152
shared_flag='-shared'
15153
if test "$aix_use_runtimelinking" = yes; then
15154
shared_flag="$shared_flag "'${wl}-G'
15158
if test "$host_cpu" = ia64; then
15159
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15160
# chokes on -Wl,-G. The following line is correct:
15163
if test "$aix_use_runtimelinking" = yes; then
15164
shared_flag='${wl}-G'
15166
shared_flag='${wl}-bM:SRE'
15171
# It seems that -bexpall does not export symbols beginning with
15172
# underscore (_), so it is better to generate a list of symbols to export.
15173
always_export_symbols_F77=yes
15174
if test "$aix_use_runtimelinking" = yes; then
15175
# Warning - without using the other runtime loading flags (-brtl),
15176
# -berok will link without error, but may produce a broken library.
15177
allow_undefined_flag_F77='-berok'
15178
# Determine the default libpath from the value encoded in an empty executable.
15179
cat >conftest.$ac_ext <<_ACEOF
15184
rm -f conftest.$ac_objext conftest$ac_exeext
15185
if { (ac_try="$ac_link"
15186
case "(($ac_try" in
15187
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15188
*) ac_try_echo=$ac_try;;
15190
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15191
$as_echo "$ac_try_echo") >&5
15192
(eval "$ac_link") 2>conftest.er1
15194
grep -v '^ *+' conftest.er1 >conftest.err
15196
cat conftest.err >&5
15197
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15198
(exit $ac_status); } && {
15199
test -z "$ac_f77_werror_flag" ||
15200
test ! -s conftest.err
15201
} && test -s conftest$ac_exeext && {
15202
test "$cross_compiling" = yes ||
15203
$as_test_x conftest$ac_exeext
15206
lt_aix_libpath_sed='
15207
/Import File Strings/,/^$/ {
15213
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15214
# Check for a 64-bit object if we didn't find anything.
15215
if test -z "$aix_libpath"; then
15216
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15219
$as_echo "$as_me: failed program was:" >&5
15220
sed 's/^/| /' conftest.$ac_ext >&5
15225
rm -rf conftest.dSYM
15226
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15227
conftest$ac_exeext conftest.$ac_ext
15228
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15230
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15231
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"
15233
if test "$host_cpu" = ia64; then
15234
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15235
allow_undefined_flag_F77="-z nodefs"
15236
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"
15238
# Determine the default libpath from the value encoded in an empty executable.
15239
cat >conftest.$ac_ext <<_ACEOF
15244
rm -f conftest.$ac_objext conftest$ac_exeext
15245
if { (ac_try="$ac_link"
15246
case "(($ac_try" in
15247
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15248
*) ac_try_echo=$ac_try;;
15250
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15251
$as_echo "$ac_try_echo") >&5
15252
(eval "$ac_link") 2>conftest.er1
15254
grep -v '^ *+' conftest.er1 >conftest.err
15256
cat conftest.err >&5
15257
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258
(exit $ac_status); } && {
15259
test -z "$ac_f77_werror_flag" ||
15260
test ! -s conftest.err
15261
} && test -s conftest$ac_exeext && {
15262
test "$cross_compiling" = yes ||
15263
$as_test_x conftest$ac_exeext
15266
lt_aix_libpath_sed='
15267
/Import File Strings/,/^$/ {
15273
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15274
# Check for a 64-bit object if we didn't find anything.
15275
if test -z "$aix_libpath"; then
15276
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15279
$as_echo "$as_me: failed program was:" >&5
15280
sed 's/^/| /' conftest.$ac_ext >&5
15285
rm -rf conftest.dSYM
15286
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15287
conftest$ac_exeext conftest.$ac_ext
15288
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15290
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15291
# Warning - without using the other run time loading flags,
15292
# -berok will link without error, but may produce a broken library.
15293
no_undefined_flag_F77=' ${wl}-bernotok'
15294
allow_undefined_flag_F77=' ${wl}-berok'
15295
# Exported symbols can be pulled into shared objects from archives
15296
whole_archive_flag_spec_F77='$convenience'
15297
archive_cmds_need_lc_F77=yes
15298
# This is similar to how AIX traditionally builds its shared libraries.
15299
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'
15305
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)'
15306
hardcode_libdir_flag_spec_F77='-L$libdir'
15307
hardcode_minus_L_F77=yes
15308
# see comment about different semantics on the GNU ld section
15313
export_dynamic_flag_spec_F77=-rdynamic
15316
cygwin* | mingw* | pw32*)
15317
# When not using gcc, we currently assume that we are using
15318
# Microsoft Visual C++.
15319
# hardcode_libdir_flag_spec is actually meaningless, as there is
15320
# no search path for DLLs.
15321
hardcode_libdir_flag_spec_F77=' '
15322
allow_undefined_flag_F77=unsupported
15323
# Tell ltmain to make .lib files, not .a files.
15325
# Tell ltmain to make .dll files, not .so files.
15327
# FIXME: Setting linknames here is a bad hack.
15328
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15329
# The linker will automatically build a .lib file if we build a DLL.
15330
old_archive_From_new_cmds_F77='true'
15331
# FIXME: Should let the user specify the lib program.
15332
old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15333
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15334
enable_shared_with_static_runtimes_F77=yes
15337
darwin* | rhapsody*)
15339
rhapsody* | darwin1.[012])
15340
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15343
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15344
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15346
case ${MACOSX_DEPLOYMENT_TARGET} in
15348
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15351
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15357
archive_cmds_need_lc_F77=no
15358
hardcode_direct_F77=no
15359
hardcode_automatic_F77=yes
15360
hardcode_shlibpath_var_F77=unsupported
15361
whole_archive_flag_spec_F77=''
15362
link_all_deplibs_F77=yes
15363
if test "$GCC" = yes ; then
15364
output_verbose_link_cmd='echo'
15365
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}"
15366
module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15367
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}"
15368
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}"
15370
case $cc_basename in
15372
output_verbose_link_cmd='echo'
15373
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15374
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15375
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15376
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}'
15377
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}'
15387
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15388
hardcode_libdir_flag_spec_F77='-L$libdir'
15389
hardcode_shlibpath_var_F77=no
15396
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15397
# support. Future versions do this automatically, but an explicit c++rt0.o
15398
# does not break anything, and helps significantly (at the cost of a little
15401
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15402
hardcode_libdir_flag_spec_F77='-R$libdir'
15403
hardcode_direct_F77=yes
15404
hardcode_shlibpath_var_F77=no
15407
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
15409
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15410
hardcode_direct_F77=yes
15411
hardcode_minus_L_F77=yes
15412
hardcode_shlibpath_var_F77=no
15415
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15416
freebsd* | dragonfly*)
15417
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15418
hardcode_libdir_flag_spec_F77='-R$libdir'
15419
hardcode_direct_F77=yes
15420
hardcode_shlibpath_var_F77=no
15424
if test "$GCC" = yes; then
15425
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'
15427
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'
15429
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15430
hardcode_libdir_separator_F77=:
15431
hardcode_direct_F77=yes
15433
# hardcode_minus_L: Not really in the search PATH,
15434
# but as the default location of the library.
15435
hardcode_minus_L_F77=yes
15436
export_dynamic_flag_spec_F77='${wl}-E'
15440
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15441
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15443
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15445
if test "$with_gnu_ld" = no; then
15446
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15447
hardcode_libdir_separator_F77=:
15449
hardcode_direct_F77=yes
15450
export_dynamic_flag_spec_F77='${wl}-E'
15452
# hardcode_minus_L: Not really in the search PATH,
15453
# but as the default location of the library.
15454
hardcode_minus_L_F77=yes
15459
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15462
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15465
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15468
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15474
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15477
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15480
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15484
if test "$with_gnu_ld" = no; then
15485
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15486
hardcode_libdir_separator_F77=:
15490
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15491
hardcode_direct_F77=no
15492
hardcode_shlibpath_var_F77=no
15495
hardcode_direct_F77=yes
15496
export_dynamic_flag_spec_F77='${wl}-E'
15498
# hardcode_minus_L: Not really in the search PATH,
15499
# but as the default location of the library.
15500
hardcode_minus_L_F77=yes
15506
irix5* | irix6* | nonstopux*)
15507
if test "$GCC" = yes; then
15508
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'
15510
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'
15511
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15513
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15514
hardcode_libdir_separator_F77=:
15515
link_all_deplibs_F77=yes
15519
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15520
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15522
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15524
hardcode_libdir_flag_spec_F77='-R$libdir'
15525
hardcode_direct_F77=yes
15526
hardcode_shlibpath_var_F77=no
15530
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15531
hardcode_direct_F77=yes
15532
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15533
hardcode_libdir_separator_F77=:
15534
hardcode_shlibpath_var_F77=no
15538
if test -f /usr/libexec/ld.so; then
15539
hardcode_direct_F77=yes
15540
hardcode_shlibpath_var_F77=no
15541
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15542
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15543
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15544
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15545
export_dynamic_flag_spec_F77='${wl}-E'
15548
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15549
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15550
hardcode_libdir_flag_spec_F77='-R$libdir'
15553
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15554
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15564
hardcode_libdir_flag_spec_F77='-L$libdir'
15565
hardcode_minus_L_F77=yes
15566
allow_undefined_flag_F77=unsupported
15567
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'
15568
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15572
if test "$GCC" = yes; then
15573
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15574
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'
15576
allow_undefined_flag_F77=' -expect_unresolved \*'
15577
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'
15579
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15580
hardcode_libdir_separator_F77=:
15583
osf4* | osf5*) # as osf3* with the addition of -msym flag
15584
if test "$GCC" = yes; then
15585
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15586
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'
15587
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15589
allow_undefined_flag_F77=' -expect_unresolved \*'
15590
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'
15591
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~
15592
$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'
15594
# Both c and cxx compiler support -rpath directly
15595
hardcode_libdir_flag_spec_F77='-rpath $libdir'
15597
hardcode_libdir_separator_F77=:
15601
no_undefined_flag_F77=' -z text'
15602
if test "$GCC" = yes; then
15604
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15605
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15606
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15609
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15610
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15611
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15613
hardcode_libdir_flag_spec_F77='-R$libdir'
15614
hardcode_shlibpath_var_F77=no
15616
solaris2.[0-5] | solaris2.[0-5].*) ;;
15618
# The compiler driver will combine and reorder linker options,
15619
# but understands `-z linker_flag'. GCC discards it without `$wl',
15620
# but is careful enough not to reorder.
15621
# Supported since Solaris 2.6 (maybe 2.5.1?)
15622
if test "$GCC" = yes; then
15623
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15625
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15629
link_all_deplibs_F77=yes
15633
if test "x$host_vendor" = xsequent; then
15634
# Use $CC to link under sequent, because it throws in some extra .o
15635
# files that make .init and .fini sections work.
15636
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15638
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15640
hardcode_libdir_flag_spec_F77='-L$libdir'
15641
hardcode_direct_F77=yes
15642
hardcode_minus_L_F77=yes
15643
hardcode_shlibpath_var_F77=no
15647
case $host_vendor in
15649
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15650
hardcode_direct_F77=yes # is this really true???
15653
## LD is ld it makes a PLAMLIB
15654
## CC just makes a GrossModule.
15655
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15656
reload_cmds_F77='$CC -r -o $output$reload_objs'
15657
hardcode_direct_F77=no
15660
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15661
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15664
runpath_var='LD_RUN_PATH'
15665
hardcode_shlibpath_var_F77=no
15669
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15670
hardcode_shlibpath_var_F77=no
15671
export_dynamic_flag_spec_F77='-Bexport'
15675
if test -d /usr/nec; then
15676
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15677
hardcode_shlibpath_var_F77=no
15678
runpath_var=LD_RUN_PATH
15679
hardcode_runpath_var=yes
15684
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15685
no_undefined_flag_F77='${wl}-z,text'
15686
archive_cmds_need_lc_F77=no
15687
hardcode_shlibpath_var_F77=no
15688
runpath_var='LD_RUN_PATH'
15690
if test "$GCC" = yes; then
15691
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15692
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15694
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15695
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15699
sysv5* | sco3.2v5* | sco5v6*)
15700
# Note: We can NOT use -z defs as we might desire, because we do not
15701
# link with -lc, and that would cause any symbols used from libc to
15702
# always be unresolved, which means just about no library would
15703
# ever link correctly. If we're not using GNU ld we use -z text
15704
# though, which does catch some bad symbols but isn't as heavy-handed
15706
no_undefined_flag_F77='${wl}-z,text'
15707
allow_undefined_flag_F77='${wl}-z,nodefs'
15708
archive_cmds_need_lc_F77=no
15709
hardcode_shlibpath_var_F77=no
15710
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15711
hardcode_libdir_separator_F77=':'
15712
link_all_deplibs_F77=yes
15713
export_dynamic_flag_spec_F77='${wl}-Bexport'
15714
runpath_var='LD_RUN_PATH'
15716
if test "$GCC" = yes; then
15717
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15718
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15720
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15721
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15726
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15727
hardcode_libdir_flag_spec_F77='-L$libdir'
15728
hardcode_shlibpath_var_F77=no
15737
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15738
$as_echo "$ld_shlibs_F77" >&6; }
15739
test "$ld_shlibs_F77" = no && can_build_shared=no
15742
# Do we need to explicitly link libc?
15744
case "x$archive_cmds_need_lc_F77" in
15746
# Assume -lc should be added
15747
archive_cmds_need_lc_F77=yes
15749
if test "$enable_shared" = yes && test "$GCC" = yes; then
15750
case $archive_cmds_F77 in
15752
# FIXME: we may have to deal with multi-command sequences.
15755
# Test whether the compiler implicitly links with -lc since on some
15756
# systems, -lgcc has to come before -lc. If gcc already passes -lc
15757
# to ld, don't add -lc before -lgcc.
15758
{ $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15759
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15761
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15763
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15764
(eval $ac_compile) 2>&5
15766
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15767
(exit $ac_status); } 2>conftest.err; then
15770
libobjs=conftest.$ac_objext
15772
wl=$lt_prog_compiler_wl_F77
15773
pic_flag=$lt_prog_compiler_pic_F77
15779
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15780
allow_undefined_flag_F77=
15781
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15782
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15784
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15785
(exit $ac_status); }
15787
archive_cmds_need_lc_F77=no
15789
archive_cmds_need_lc_F77=yes
15791
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15793
cat conftest.err 1>&5
15796
{ $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15797
$as_echo "$archive_cmds_need_lc_F77" >&6; }
15804
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15805
$as_echo_n "checking dynamic linker characteristics... " >&6; }
15806
library_names_spec=
15807
libname_spec='lib$name'
15811
postuninstall_cmds=
15815
shlibpath_overrides_runpath=unknown
15817
dynamic_linker="$host_os ld.so"
15818
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15820
need_lib_prefix=unknown
15821
hardcode_into_libs=no
15823
# when you set need_version to no, make sure it does not cause -set_version
15824
# flags to be left without arguments
15825
need_version=unknown
15830
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15831
shlibpath_var=LIBPATH
15833
# AIX 3 has no versioning support, so we append a major version to the name.
15834
soname_spec='${libname}${release}${shared_ext}$major'
15841
hardcode_into_libs=yes
15842
if test "$host_cpu" = ia64; then
15843
# AIX 5 supports IA64
15844
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15845
shlibpath_var=LD_LIBRARY_PATH
15847
# With GCC up to 2.95.x, collect2 would create an import file
15848
# for dependence libraries. The import file would start with
15849
# the line `#! .'. This would cause the generated library to
15850
# depend on `.', always an invalid library. This was fixed in
15851
# development snapshots of GCC prior to 3.0.
15853
aix4 | aix4.[01] | aix4.[01].*)
15854
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15856
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15859
can_build_shared=no
15863
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15864
# soname into executable. Probably we can add versioning support to
15865
# collect2, so additional links can be useful in future.
15866
if test "$aix_use_runtimelinking" = yes; then
15867
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
15868
# instead of lib<name>.a to let people know that these are not
15869
# typical AIX shared libraries.
15870
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15872
# We preserve .a as extension for shared libraries through AIX4.2
15873
# and later when we are not doing run time linking.
15874
library_names_spec='${libname}${release}.a $libname.a'
15875
soname_spec='${libname}${release}${shared_ext}$major'
15877
shlibpath_var=LIBPATH
15882
library_names_spec='$libname.ixlibrary $libname.a'
15883
# Create ${libname}_ixlibrary.a entries in /sys/libs.
15884
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'
15888
library_names_spec='${libname}${shared_ext}'
15889
dynamic_linker="$host_os ld.so"
15890
shlibpath_var=LIBRARY_PATH
15896
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15897
soname_spec='${libname}${release}${shared_ext}$major'
15898
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15899
shlibpath_var=LD_LIBRARY_PATH
15900
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15901
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15902
# the default ld.so.conf also contains /usr/contrib/lib and
15903
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15904
# libtool to hard-code these into programs
15907
cygwin* | mingw* | pw32*)
15908
version_type=windows
15913
case $GCC,$host_os in
15914
yes,cygwin* | yes,mingw* | yes,pw32*)
15915
library_names_spec='$libname.dll.a'
15916
# DLL is installed to $(libdir)/../bin by postinstall_cmds
15917
postinstall_cmds='base_file=`basename \${file}`~
15918
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15919
dldir=$destdir/`dirname \$dlpath`~
15920
test -d \$dldir || mkdir -p \$dldir~
15921
$install_prog $dir/$dlname \$dldir/$dlname~
15922
chmod a+x \$dldir/$dlname'
15923
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15924
dlpath=$dir/\$dldll~
15926
shlibpath_overrides_runpath=yes
15930
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
15931
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15932
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15935
# MinGW DLLs use traditional 'lib' prefix
15936
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15937
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15938
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15939
# It is most probably a Windows format PATH printed by
15940
# mingw gcc, but we are running on Cygwin. Gcc prints its search
15941
# path with ; separators, and with drive letters. We can handle the
15942
# drive letters (cygwin fileutils understands them), so leave them,
15943
# especially as we might pass files found there to a mingw objdump,
15944
# which wouldn't understand a cygwinified path. Ahh.
15945
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15947
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15951
# pw32 DLLs use 'pw' prefix rather than 'lib'
15952
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15958
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15961
dynamic_linker='Win32 ld.exe'
15962
# FIXME: first we should search . and the directory the executable is in
15966
darwin* | rhapsody*)
15967
dynamic_linker="$host_os dyld"
15968
version_type=darwin
15971
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15972
soname_spec='${libname}${release}${major}$shared_ext'
15973
shlibpath_overrides_runpath=yes
15974
shlibpath_var=DYLD_LIBRARY_PATH
15975
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15977
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15984
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15985
soname_spec='${libname}${release}${shared_ext}$major'
15986
shlibpath_var=LD_LIBRARY_PATH
15993
freebsd* | dragonfly*)
15994
# DragonFly does not have aout. When/if they implement a new
15995
# versioning mechanism, adjust this.
15996
if test -x /usr/bin/objformat; then
15997
objformat=`/usr/bin/objformat`
16000
freebsd[123]*) objformat=aout ;;
16001
*) objformat=elf ;;
16004
version_type=freebsd-$objformat
16005
case $version_type in
16007
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16012
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16016
shlibpath_var=LD_LIBRARY_PATH
16019
shlibpath_overrides_runpath=yes
16021
freebsd3.[01]* | freebsdelf3.[01]*)
16022
shlibpath_overrides_runpath=yes
16023
hardcode_into_libs=yes
16025
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16026
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16027
shlibpath_overrides_runpath=no
16028
hardcode_into_libs=yes
16030
*) # from 4.6 on, and DragonFly
16031
shlibpath_overrides_runpath=yes
16032
hardcode_into_libs=yes
16041
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16042
soname_spec='${libname}${release}${shared_ext}$major'
16043
shlibpath_var=LD_LIBRARY_PATH
16044
hardcode_into_libs=yes
16047
hpux9* | hpux10* | hpux11*)
16048
# Give a soname corresponding to the major version so that dld.sl refuses to
16049
# link against other versions.
16056
hardcode_into_libs=yes
16057
dynamic_linker="$host_os dld.so"
16058
shlibpath_var=LD_LIBRARY_PATH
16059
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16060
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16061
soname_spec='${libname}${release}${shared_ext}$major'
16062
if test "X$HPUX_IA64_MODE" = X32; then
16063
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16065
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16067
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16071
hardcode_into_libs=yes
16072
dynamic_linker="$host_os dld.sl"
16073
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16074
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16075
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16076
soname_spec='${libname}${release}${shared_ext}$major'
16077
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16078
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16082
dynamic_linker="$host_os dld.sl"
16083
shlibpath_var=SHLIB_PATH
16084
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16085
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16086
soname_spec='${libname}${release}${shared_ext}$major'
16089
# HP-UX runs *really* slowly unless shared libraries are mode 555.
16090
postinstall_cmds='chmod 555 $lib'
16097
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16098
soname_spec='${libname}${release}${shared_ext}$major'
16099
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16100
shlibpath_var=LD_LIBRARY_PATH
16101
shlibpath_overrides_runpath=no
16102
hardcode_into_libs=yes
16105
irix5* | irix6* | nonstopux*)
16107
nonstopux*) version_type=nonstopux ;;
16109
if test "$lt_cv_prog_gnu_ld" = yes; then
16117
soname_spec='${libname}${release}${shared_ext}$major'
16118
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16120
irix5* | nonstopux*)
16121
libsuff= shlibsuff=
16124
case $LD in # libtool.m4 will add one of these switches to LD
16125
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16126
libsuff= shlibsuff= libmagic=32-bit;;
16127
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16128
libsuff=32 shlibsuff=N32 libmagic=N32;;
16129
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16130
libsuff=64 shlibsuff=64 libmagic=64-bit;;
16131
*) libsuff= shlibsuff= libmagic=never-match;;
16135
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16136
shlibpath_overrides_runpath=no
16137
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16138
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16139
hardcode_into_libs=yes
16142
# No shared lib support for Linux oldld, aout, or coff.
16143
linux*oldld* | linux*aout* | linux*coff*)
16147
# This must be Linux ELF.
16148
linux* | k*bsd*-gnu)
16152
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16153
soname_spec='${libname}${release}${shared_ext}$major'
16154
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16155
shlibpath_var=LD_LIBRARY_PATH
16156
shlibpath_overrides_runpath=no
16157
# This implies no fast_install, which is unacceptable.
16158
# Some rework will be needed to allow for fast_install
16159
# before this can be enabled.
16160
hardcode_into_libs=yes
16162
# find out which ABI we are using
16164
case "$host_cpu" in
16165
x86_64*|s390x*|powerpc64*)
16166
echo '#line 16166 "configure"' > conftest.$ac_ext
16167
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16168
(eval $ac_compile) 2>&5
16170
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16171
(exit $ac_status); }; then
16172
case `/usr/bin/file conftest.$ac_objext` in
16182
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
16184
# Append ld.so.conf contents to the search path
16185
if test -f /etc/ld.so.conf; then
16186
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' ' '`
16187
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16190
# We used to test for /lib/ld.so.1 and disable shared libraries on
16191
# powerpc, because MkLinux only supported shared libraries with the
16192
# GNU dynamic linker. Since this was broken with cross compilers,
16193
# most powerpc-linux boxes support dynamic linking these days and
16194
# people can always --disable-shared, the test was removed, and we
16195
# assume the GNU/Linux dynamic linker is in use.
16196
dynamic_linker='GNU/Linux ld.so'
16203
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16204
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16205
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16206
dynamic_linker='NetBSD (a.out) ld.so'
16208
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16209
soname_spec='${libname}${release}${shared_ext}$major'
16210
dynamic_linker='NetBSD ld.elf_so'
16212
shlibpath_var=LD_LIBRARY_PATH
16213
shlibpath_overrides_runpath=yes
16214
hardcode_into_libs=yes
16219
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16220
shlibpath_var=LD_LIBRARY_PATH
16221
shlibpath_overrides_runpath=yes
16228
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16229
soname_spec='${libname}${release}${shared_ext}$major'
16230
shlibpath_var=LD_LIBRARY_PATH
16231
shlibpath_overrides_runpath=yes
16236
sys_lib_dlsearch_path_spec="/usr/lib"
16238
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16240
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16241
*) need_version=no ;;
16243
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16244
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16245
shlibpath_var=LD_LIBRARY_PATH
16246
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16248
openbsd2.[89] | openbsd2.[89].*)
16249
shlibpath_overrides_runpath=no
16252
shlibpath_overrides_runpath=yes
16256
shlibpath_overrides_runpath=yes
16261
libname_spec='$name'
16264
library_names_spec='$libname${shared_ext} $libname.a'
16265
dynamic_linker='OS/2 ld.exe'
16266
shlibpath_var=LIBPATH
16269
osf3* | osf4* | osf5*)
16273
soname_spec='${libname}${release}${shared_ext}$major'
16274
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16275
shlibpath_var=LD_LIBRARY_PATH
16276
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16277
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16288
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16289
soname_spec='${libname}${release}${shared_ext}$major'
16290
shlibpath_var=LD_LIBRARY_PATH
16291
shlibpath_overrides_runpath=yes
16292
hardcode_into_libs=yes
16293
# ldd complains unless libraries are executable
16294
postinstall_cmds='chmod +x $lib'
16299
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16300
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16301
shlibpath_var=LD_LIBRARY_PATH
16302
shlibpath_overrides_runpath=yes
16303
if test "$with_gnu_ld" = yes; then
16311
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16312
soname_spec='${libname}${release}${shared_ext}$major'
16313
shlibpath_var=LD_LIBRARY_PATH
16314
case $host_vendor in
16316
shlibpath_overrides_runpath=no
16318
export_dynamic_flag_spec='${wl}-Blargedynsym'
16319
runpath_var=LD_RUN_PATH
16327
shlibpath_overrides_runpath=no
16328
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16334
if test -d /usr/nec ;then
16336
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16337
soname_spec='$libname${shared_ext}.$major'
16338
shlibpath_var=LD_LIBRARY_PATH
16342
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16343
version_type=freebsd-elf
16346
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16347
soname_spec='${libname}${release}${shared_ext}$major'
16348
shlibpath_var=LD_LIBRARY_PATH
16349
hardcode_into_libs=yes
16350
if test "$with_gnu_ld" = yes; then
16351
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16352
shlibpath_overrides_runpath=no
16354
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16355
shlibpath_overrides_runpath=yes
16358
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16362
sys_lib_dlsearch_path_spec='/usr/lib'
16367
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16368
soname_spec='${libname}${release}${shared_ext}$major'
16369
shlibpath_var=LD_LIBRARY_PATH
16376
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16377
$as_echo "$dynamic_linker" >&6; }
16378
test "$dynamic_linker" = no && can_build_shared=no
16380
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16381
$as_echo_n "(cached) " >&6
16383
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16386
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16387
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16388
$as_echo_n "(cached) " >&6
16390
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16393
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16395
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16396
if test "$GCC" = yes; then
16397
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16400
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16401
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16402
hardcode_action_F77=
16403
if test -n "$hardcode_libdir_flag_spec_F77" || \
16404
test -n "$runpath_var_F77" || \
16405
test "X$hardcode_automatic_F77" = "Xyes" ; then
16407
# We can hardcode non-existant directories.
16408
if test "$hardcode_direct_F77" != no &&
16409
# If the only mechanism to avoid hardcoding is shlibpath_var, we
16410
# have to relink, otherwise we might link with an installed library
16411
# when we should be linking with a yet-to-be-installed one
16412
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16413
test "$hardcode_minus_L_F77" != no; then
16414
# Linking always hardcodes the temporary library directory.
16415
hardcode_action_F77=relink
16417
# We can link without hardcoding, and we can hardcode nonexisting dirs.
16418
hardcode_action_F77=immediate
16421
# We cannot hardcode anything, or else we can only hardcode existing
16423
hardcode_action_F77=unsupported
16425
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16426
$as_echo "$hardcode_action_F77" >&6; }
16428
if test "$hardcode_action_F77" = relink; then
16429
# Fast installation is not supported
16430
enable_fast_install=no
16431
elif test "$shlibpath_overrides_runpath" = yes ||
16432
test "$enable_shared" = no; then
16433
# Fast installation is not necessary
16434
enable_fast_install=needless
16438
# The else clause should only fire when bootstrapping the
16439
# libtool distribution, otherwise you forgot to ship ltmain.sh
16440
# with your package, and you will get complaints that there are
16441
# no rules to generate ltmain.sh.
16442
if test -f "$ltmain"; then
16443
# See if we are running on zsh, and set the options which allow our commands through
16444
# without removal of \ escapes.
16445
if test -n "${ZSH_VERSION+set}" ; then
16446
setopt NO_GLOB_SUBST
16448
# Now quote all the things that may contain metacharacters while being
16449
# careful not to overquote the AC_SUBSTed values. We take copies of the
16450
# variables and quote the copies for generation of the libtool script.
16451
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16453
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16454
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16455
deplibs_check_method reload_flag reload_cmds need_locks \
16456
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16457
lt_cv_sys_global_symbol_to_c_name_address \
16458
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16459
old_postinstall_cmds old_postuninstall_cmds \
16463
lt_prog_compiler_wl_F77 \
16464
lt_prog_compiler_pic_F77 \
16465
lt_prog_compiler_static_F77 \
16466
lt_prog_compiler_no_builtin_flag_F77 \
16467
export_dynamic_flag_spec_F77 \
16468
thread_safe_flag_spec_F77 \
16469
whole_archive_flag_spec_F77 \
16470
enable_shared_with_static_runtimes_F77 \
16471
old_archive_cmds_F77 \
16472
old_archive_from_new_cmds_F77 \
16473
predep_objects_F77 \
16474
postdep_objects_F77 \
16477
compiler_lib_search_path_F77 \
16478
compiler_lib_search_dirs_F77 \
16480
archive_expsym_cmds_F77 \
16481
postinstall_cmds_F77 \
16482
postuninstall_cmds_F77 \
16483
old_archive_from_expsyms_cmds_F77 \
16484
allow_undefined_flag_F77 \
16485
no_undefined_flag_F77 \
16486
export_symbols_cmds_F77 \
16487
hardcode_libdir_flag_spec_F77 \
16488
hardcode_libdir_flag_spec_ld_F77 \
16489
hardcode_libdir_separator_F77 \
16490
hardcode_automatic_F77 \
16492
module_expsym_cmds_F77 \
16493
lt_cv_prog_compiler_c_o_F77 \
16494
fix_srcfile_path_F77 \
16495
exclude_expsyms_F77 \
16496
include_expsyms_F77; do
16499
old_archive_cmds_F77 | \
16500
old_archive_from_new_cmds_F77 | \
16501
archive_cmds_F77 | \
16502
archive_expsym_cmds_F77 | \
16503
module_cmds_F77 | \
16504
module_expsym_cmds_F77 | \
16505
old_archive_from_expsyms_cmds_F77 | \
16506
export_symbols_cmds_F77 | \
16507
extract_expsyms_cmds | reload_cmds | finish_cmds | \
16508
postinstall_cmds | postuninstall_cmds | \
16509
old_postinstall_cmds | old_postuninstall_cmds | \
16510
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16511
# Double-quote double-evaled strings.
16512
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16515
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16521
*'\$0 --fallback-echo"')
16522
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16528
cat <<__EOF__ >> "$cfgfile"
16529
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16531
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16533
# Shell to use when invoking shell scripts.
16536
# Whether or not to build shared libraries.
16537
build_libtool_libs=$enable_shared
16539
# Whether or not to build static libraries.
16540
build_old_libs=$enable_static
16542
# Whether or not to add -lc for building shared libraries.
16543
build_libtool_need_lc=$archive_cmds_need_lc_F77
16545
# Whether or not to disallow shared libs when runtime libs are static
16546
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16548
# Whether or not to optimize for fast installation.
16549
fast_install=$enable_fast_install
16552
host_alias=$host_alias
16556
# The build system.
16557
build_alias=$build_alias
16561
# An echo program that does not interpret backslashes.
16566
AR_FLAGS=$lt_AR_FLAGS
16571
# LTCC compiler flags.
16572
LTCFLAGS=$lt_LTCFLAGS
16574
# A language-specific compiler.
16575
CC=$lt_compiler_F77
16577
# Is the compiler the GNU C compiler?
16583
# The linker used to build libraries.
16586
# Whether we need hard or soft links.
16589
# A BSD-compatible nm program.
16592
# A symbol stripping program
16595
# Used to examine libraries when file_magic_cmd begins "file"
16596
MAGIC_CMD=$MAGIC_CMD
16598
# Used on cygwin: DLL creation program.
16601
# Used on cygwin: object dumper.
16604
# Used on cygwin: assembler.
16607
# The name of the directory that contains temporary libtool files.
16610
# How to create reloadable object files.
16611
reload_flag=$lt_reload_flag
16612
reload_cmds=$lt_reload_cmds
16614
# How to pass a linker flag through the compiler.
16615
wl=$lt_lt_prog_compiler_wl_F77
16617
# Object file suffix (normally "o").
16618
objext="$ac_objext"
16620
# Old archive suffix (normally "a").
16623
# Shared library suffix (normally ".so").
16624
shrext_cmds='$shrext_cmds'
16626
# Executable file suffix (normally "").
16629
# Additional compiler flags for building library objects.
16630
pic_flag=$lt_lt_prog_compiler_pic_F77
16633
# What is the maximum length of a command?
16634
max_cmd_len=$lt_cv_sys_max_cmd_len
16636
# Does compiler simultaneously support -c and -o options?
16637
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16639
# Must we lock files when doing compilation?
16640
need_locks=$lt_need_locks
16642
# Do we need the lib prefix for modules?
16643
need_lib_prefix=$need_lib_prefix
16645
# Do we need a version for libraries?
16646
need_version=$need_version
16648
# Whether dlopen is supported.
16649
dlopen_support=$enable_dlopen
16651
# Whether dlopen of programs is supported.
16652
dlopen_self=$enable_dlopen_self
16654
# Whether dlopen of statically linked programs is supported.
16655
dlopen_self_static=$enable_dlopen_self_static
16657
# Compiler flag to prevent dynamic linking.
16658
link_static_flag=$lt_lt_prog_compiler_static_F77
16660
# Compiler flag to turn off builtin functions.
16661
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16663
# Compiler flag to allow reflexive dlopens.
16664
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16666
# Compiler flag to generate shared objects directly from archives.
16667
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16669
# Compiler flag to generate thread-safe objects.
16670
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16672
# Library versioning type.
16673
version_type=$version_type
16675
# Format of library name prefix.
16676
libname_spec=$lt_libname_spec
16678
# List of archive names. First name is the real one, the rest are links.
16679
# The last name is the one that the linker finds with -lNAME.
16680
library_names_spec=$lt_library_names_spec
16682
# The coded name of the library, if different from the real name.
16683
soname_spec=$lt_soname_spec
16685
# Commands used to build and install an old-style archive.
16687
old_archive_cmds=$lt_old_archive_cmds_F77
16688
old_postinstall_cmds=$lt_old_postinstall_cmds
16689
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16691
# Create an old-style archive from a shared archive.
16692
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16694
# Create a temporary old-style archive to link instead of a shared archive.
16695
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16697
# Commands used to build and install a shared archive.
16698
archive_cmds=$lt_archive_cmds_F77
16699
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16700
postinstall_cmds=$lt_postinstall_cmds
16701
postuninstall_cmds=$lt_postuninstall_cmds
16703
# Commands used to build a loadable module (assumed same as above if empty)
16704
module_cmds=$lt_module_cmds_F77
16705
module_expsym_cmds=$lt_module_expsym_cmds_F77
16707
# Commands to strip libraries.
16708
old_striplib=$lt_old_striplib
16709
striplib=$lt_striplib
16711
# Dependencies to place before the objects being linked to create a
16713
predep_objects=$lt_predep_objects_F77
16715
# Dependencies to place after the objects being linked to create a
16717
postdep_objects=$lt_postdep_objects_F77
16719
# Dependencies to place before the objects being linked to create a
16721
predeps=$lt_predeps_F77
16723
# Dependencies to place after the objects being linked to create a
16725
postdeps=$lt_postdeps_F77
16727
# The directories searched by this compiler when creating a shared
16729
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16731
# The library search path used internally by the compiler when linking
16732
# a shared library.
16733
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16735
# Method to check whether dependent libraries are shared objects.
16736
deplibs_check_method=$lt_deplibs_check_method
16738
# Command to use when deplibs_check_method == file_magic.
16739
file_magic_cmd=$lt_file_magic_cmd
16741
# Flag that allows shared libraries with undefined symbols to be built.
16742
allow_undefined_flag=$lt_allow_undefined_flag_F77
16744
# Flag that forces no undefined symbols.
16745
no_undefined_flag=$lt_no_undefined_flag_F77
16747
# Commands used to finish a libtool library installation in a directory.
16748
finish_cmds=$lt_finish_cmds
16750
# Same as above, but a single script fragment to be evaled but not shown.
16751
finish_eval=$lt_finish_eval
16753
# Take the output of nm and produce a listing of raw symbols and C names.
16754
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16756
# Transform the output of nm in a proper C declaration
16757
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16759
# Transform the output of nm in a C name address pair
16760
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16762
# This is the shared library runtime path variable.
16763
runpath_var=$runpath_var
16765
# This is the shared library path variable.
16766
shlibpath_var=$shlibpath_var
16768
# Is shlibpath searched before the hard-coded library search path?
16769
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16771
# How to hardcode a shared library path into an executable.
16772
hardcode_action=$hardcode_action_F77
16774
# Whether we should hardcode library paths into libraries.
16775
hardcode_into_libs=$hardcode_into_libs
16777
# Flag to hardcode \$libdir into a binary during linking.
16778
# This must work even if \$libdir does not exist.
16779
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16781
# If ld is used when linking, flag to hardcode \$libdir into
16782
# a binary during linking. This must work even if \$libdir does
16784
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16786
# Whether we need a single -rpath flag with a separated argument.
16787
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16789
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16790
# resulting binary.
16791
hardcode_direct=$hardcode_direct_F77
16793
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16794
# resulting binary.
16795
hardcode_minus_L=$hardcode_minus_L_F77
16797
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16798
# the resulting binary.
16799
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16801
# Set to yes if building a shared library automatically hardcodes DIR into the library
16802
# and all subsequent libraries and executables linked against it.
16803
hardcode_automatic=$hardcode_automatic_F77
16805
# Variables whose values should be saved in libtool wrapper scripts and
16806
# restored at relink time.
16807
variables_saved_for_relink="$variables_saved_for_relink"
16809
# Whether libtool must link a program against all its dependency libraries.
16810
link_all_deplibs=$link_all_deplibs_F77
16812
# Compile-time system search path for libraries
16813
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16815
# Run-time system search path for libraries
16816
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16818
# Fix the shell variable \$srcfile for the compiler.
16819
fix_srcfile_path=$lt_fix_srcfile_path
16821
# Set to yes if exported symbols are required.
16822
always_export_symbols=$always_export_symbols_F77
16824
# The commands to list exported symbols.
16825
export_symbols_cmds=$lt_export_symbols_cmds_F77
16827
# The commands to extract the exported symbol list from a shared archive.
16828
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16830
# Symbols that should not be listed in the preloaded symbols.
16831
exclude_expsyms=$lt_exclude_expsyms_F77
16833
# Symbols that must always be exported.
16834
include_expsyms=$lt_include_expsyms_F77
16836
# ### END LIBTOOL TAG CONFIG: $tagname
16842
# If there is no Makefile yet, we rely on a make rule to execute
16843
# `config.status --recheck' to rerun these tests and create the
16844
# libtool script then.
16845
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16846
if test -f "$ltmain_in"; then
16847
test -f Makefile && make "$ltmain"
16853
ac_cpp='$CPP $CPPFLAGS'
16854
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16855
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16856
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16866
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16869
# Source file extension for Java test sources.
16872
# Object file extension for compiled Java test sources.
16876
# Code to be used in simple compile tests
16877
lt_simple_compile_test_code="class foo {}"
16879
# Code to be used in simple link tests
16880
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16882
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16884
# If no C compiler was specified, use CC.
16887
# If no C compiler flags were specified, use CFLAGS.
16888
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16890
# Allow CC to be a program name with arguments.
16894
# save warnings/boilerplate of simple test code
16895
ac_outfile=conftest.$ac_objext
16896
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16897
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16898
_lt_compiler_boilerplate=`cat conftest.err`
16901
ac_outfile=conftest.$ac_objext
16902
echo "$lt_simple_link_test_code" >conftest.$ac_ext
16903
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16904
_lt_linker_boilerplate=`cat conftest.err`
16908
# Allow CC to be a program name with arguments.
16913
for cc_temp in $compiler""; do
16915
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16916
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16921
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16925
# GCJ did not exist at the time GCC didn't implicitly link libc in.
16926
archive_cmds_need_lc_GCJ=no
16928
old_archive_cmds_GCJ=$old_archive_cmds
16931
lt_prog_compiler_no_builtin_flag_GCJ=
16933
if test "$GCC" = yes; then
16934
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16937
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16938
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16939
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16940
$as_echo_n "(cached) " >&6
16942
lt_cv_prog_compiler_rtti_exceptions=no
16943
ac_outfile=conftest.$ac_objext
16944
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16945
lt_compiler_flag="-fno-rtti -fno-exceptions"
16946
# Insert the option either (1) after the last *FLAGS variable, or
16947
# (2) before a word containing "conftest.", or (3) at the end.
16948
# Note that $ac_compile itself does not contain backslashes and begins
16949
# with a dollar sign (not a hyphen), so the echo should work correctly.
16950
# The option is referenced via a variable to avoid confusing sed.
16951
lt_compile=`echo "$ac_compile" | $SED \
16952
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16953
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16954
-e 's:$: $lt_compiler_flag:'`
16955
(eval echo "\"\$as_me:16955: $lt_compile\"" >&5)
16956
(eval "$lt_compile" 2>conftest.err)
16958
cat conftest.err >&5
16959
echo "$as_me:16959: \$? = $ac_status" >&5
16960
if (exit $ac_status) && test -s "$ac_outfile"; then
16961
# The compiler can only warn and ignore the option if not recognized
16962
# So say no if there are warnings other than the usual output.
16963
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16964
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16965
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16966
lt_cv_prog_compiler_rtti_exceptions=yes
16972
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16973
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16975
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16976
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16983
lt_prog_compiler_wl_GCJ=
16984
lt_prog_compiler_pic_GCJ=
16985
lt_prog_compiler_static_GCJ=
16987
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16988
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16990
if test "$GCC" = yes; then
16991
lt_prog_compiler_wl_GCJ='-Wl,'
16992
lt_prog_compiler_static_GCJ='-static'
16996
# All AIX code is PIC.
16997
if test "$host_cpu" = ia64; then
16998
# AIX 5 now supports IA64 processor
16999
lt_prog_compiler_static_GCJ='-Bstatic'
17004
# FIXME: we need at least 68020 code to build shared libraries, but
17005
# adding the `-m68020' flag to GCC prevents building anything better,
17007
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17010
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17011
# PIC is the default for these OSes.
17014
mingw* | cygwin* | pw32* | os2*)
17015
# This hack is so that the source file can tell whether it is being
17016
# built for inclusion in a dll (and should export symbols for example).
17017
# Although the cygwin gcc ignores -fPIC, still need this for old-style
17018
# (--disable-auto-import) libraries
17022
darwin* | rhapsody*)
17023
# PIC is the default on this platform
17024
# Common symbols not allowed in MH_DYLIB files
17025
lt_prog_compiler_pic_GCJ='-fno-common'
17029
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
17030
# Instead, we relocate shared libraries at runtime.
17034
# Just because we use GCC doesn't mean we suddenly get shared libraries
17035
# on systems that don't support them.
17036
lt_prog_compiler_can_build_shared_GCJ=no
17041
if test -d /usr/nec; then
17042
lt_prog_compiler_pic_GCJ=-Kconform_pic
17047
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17048
# not for PA HP-UX.
17054
lt_prog_compiler_pic_GCJ='-fPIC'
17060
lt_prog_compiler_pic_GCJ='-fPIC'
17064
# PORTME Check for flag to pass linker flags through the system compiler.
17067
lt_prog_compiler_wl_GCJ='-Wl,'
17068
if test "$host_cpu" = ia64; then
17069
# AIX 5 now supports IA64 processor
17070
lt_prog_compiler_static_GCJ='-Bstatic'
17072
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17076
# PIC is the default on this platform
17077
# Common symbols not allowed in MH_DYLIB files
17078
case $cc_basename in
17080
lt_prog_compiler_pic_GCJ='-qnocommon'
17081
lt_prog_compiler_wl_GCJ='-Wl,'
17086
mingw* | cygwin* | pw32* | os2*)
17087
# This hack is so that the source file can tell whether it is being
17088
# built for inclusion in a dll (and should export symbols for example).
17092
hpux9* | hpux10* | hpux11*)
17093
lt_prog_compiler_wl_GCJ='-Wl,'
17094
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17095
# not for PA HP-UX.
17101
lt_prog_compiler_pic_GCJ='+Z'
17104
# Is there a better lt_prog_compiler_static that works with the bundled CC?
17105
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17108
irix5* | irix6* | nonstopux*)
17109
lt_prog_compiler_wl_GCJ='-Wl,'
17110
# PIC (with -KPIC) is the default.
17111
lt_prog_compiler_static_GCJ='-non_shared'
17115
lt_prog_compiler_pic_GCJ='-KPIC'
17116
lt_prog_compiler_static_GCJ='-Bstatic'
17119
linux* | k*bsd*-gnu)
17120
case $cc_basename in
17122
lt_prog_compiler_wl_GCJ='-Wl,'
17123
lt_prog_compiler_pic_GCJ='-KPIC'
17124
lt_prog_compiler_static_GCJ='-static'
17126
pgcc* | pgf77* | pgf90* | pgf95*)
17127
# Portland Group compilers (*not* the Pentium gcc compiler,
17128
# which looks to be a dead project)
17129
lt_prog_compiler_wl_GCJ='-Wl,'
17130
lt_prog_compiler_pic_GCJ='-fpic'
17131
lt_prog_compiler_static_GCJ='-Bstatic'
17134
lt_prog_compiler_wl_GCJ='-Wl,'
17135
# All Alpha code is PIC.
17136
lt_prog_compiler_static_GCJ='-non_shared'
17139
case `$CC -V 2>&1 | sed 5q` in
17142
lt_prog_compiler_pic_GCJ='-KPIC'
17143
lt_prog_compiler_static_GCJ='-Bstatic'
17144
lt_prog_compiler_wl_GCJ='-Wl,'
17147
# Sun Fortran 8.3 passes all unrecognized flags to the linker
17148
lt_prog_compiler_pic_GCJ='-KPIC'
17149
lt_prog_compiler_static_GCJ='-Bstatic'
17150
lt_prog_compiler_wl_GCJ=''
17157
osf3* | osf4* | osf5*)
17158
lt_prog_compiler_wl_GCJ='-Wl,'
17159
# All OSF/1 code is PIC.
17160
lt_prog_compiler_static_GCJ='-non_shared'
17164
lt_prog_compiler_static_GCJ='-non_shared'
17168
lt_prog_compiler_pic_GCJ='-KPIC'
17169
lt_prog_compiler_static_GCJ='-Bstatic'
17170
case $cc_basename in
17171
f77* | f90* | f95*)
17172
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17174
lt_prog_compiler_wl_GCJ='-Wl,';;
17179
lt_prog_compiler_wl_GCJ='-Qoption ld '
17180
lt_prog_compiler_pic_GCJ='-PIC'
17181
lt_prog_compiler_static_GCJ='-Bstatic'
17184
sysv4 | sysv4.2uw2* | sysv4.3*)
17185
lt_prog_compiler_wl_GCJ='-Wl,'
17186
lt_prog_compiler_pic_GCJ='-KPIC'
17187
lt_prog_compiler_static_GCJ='-Bstatic'
17191
if test -d /usr/nec ;then
17192
lt_prog_compiler_pic_GCJ='-Kconform_pic'
17193
lt_prog_compiler_static_GCJ='-Bstatic'
17197
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17198
lt_prog_compiler_wl_GCJ='-Wl,'
17199
lt_prog_compiler_pic_GCJ='-KPIC'
17200
lt_prog_compiler_static_GCJ='-Bstatic'
17204
lt_prog_compiler_wl_GCJ='-Wl,'
17205
lt_prog_compiler_can_build_shared_GCJ=no
17209
lt_prog_compiler_pic_GCJ='-pic'
17210
lt_prog_compiler_static_GCJ='-Bstatic'
17214
lt_prog_compiler_can_build_shared_GCJ=no
17219
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17220
$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17223
# Check to make sure the PIC flag actually works.
17225
if test -n "$lt_prog_compiler_pic_GCJ"; then
17227
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17228
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17229
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17230
$as_echo_n "(cached) " >&6
17232
lt_cv_prog_compiler_pic_works_GCJ=no
17233
ac_outfile=conftest.$ac_objext
17234
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17235
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17236
# Insert the option either (1) after the last *FLAGS variable, or
17237
# (2) before a word containing "conftest.", or (3) at the end.
17238
# Note that $ac_compile itself does not contain backslashes and begins
17239
# with a dollar sign (not a hyphen), so the echo should work correctly.
17240
# The option is referenced via a variable to avoid confusing sed.
17241
lt_compile=`echo "$ac_compile" | $SED \
17242
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17243
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17244
-e 's:$: $lt_compiler_flag:'`
17245
(eval echo "\"\$as_me:17245: $lt_compile\"" >&5)
17246
(eval "$lt_compile" 2>conftest.err)
17248
cat conftest.err >&5
17249
echo "$as_me:17249: \$? = $ac_status" >&5
17250
if (exit $ac_status) && test -s "$ac_outfile"; then
17251
# The compiler can only warn and ignore the option if not recognized
17252
# So say no if there are warnings other than the usual output.
17253
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17254
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17255
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17256
lt_cv_prog_compiler_pic_works_GCJ=yes
17262
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17263
$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17265
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17266
case $lt_prog_compiler_pic_GCJ in
17268
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17271
lt_prog_compiler_pic_GCJ=
17272
lt_prog_compiler_can_build_shared_GCJ=no
17277
# For platforms which do not support PIC, -DPIC is meaningless:
17279
lt_prog_compiler_pic_GCJ=
17282
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17287
# Check to make sure the static flag actually works.
17289
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17290
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17291
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17292
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17293
$as_echo_n "(cached) " >&6
17295
lt_cv_prog_compiler_static_works_GCJ=no
17296
save_LDFLAGS="$LDFLAGS"
17297
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17298
echo "$lt_simple_link_test_code" > conftest.$ac_ext
17299
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17300
# The linker can only warn and ignore the option if not recognized
17301
# So say no if there are warnings
17302
if test -s conftest.err; then
17303
# Append any errors to the config.log.
17304
cat conftest.err 1>&5
17305
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17306
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17307
if diff conftest.exp conftest.er2 >/dev/null; then
17308
lt_cv_prog_compiler_static_works_GCJ=yes
17311
lt_cv_prog_compiler_static_works_GCJ=yes
17315
LDFLAGS="$save_LDFLAGS"
17318
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17319
$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17321
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17324
lt_prog_compiler_static_GCJ=
17328
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17329
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17330
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17331
$as_echo_n "(cached) " >&6
17333
lt_cv_prog_compiler_c_o_GCJ=no
17334
$rm -r conftest 2>/dev/null
17338
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17340
lt_compiler_flag="-o out/conftest2.$ac_objext"
17341
# Insert the option either (1) after the last *FLAGS variable, or
17342
# (2) before a word containing "conftest.", or (3) at the end.
17343
# Note that $ac_compile itself does not contain backslashes and begins
17344
# with a dollar sign (not a hyphen), so the echo should work correctly.
17345
lt_compile=`echo "$ac_compile" | $SED \
17346
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17347
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17348
-e 's:$: $lt_compiler_flag:'`
17349
(eval echo "\"\$as_me:17349: $lt_compile\"" >&5)
17350
(eval "$lt_compile" 2>out/conftest.err)
17352
cat out/conftest.err >&5
17353
echo "$as_me:17353: \$? = $ac_status" >&5
17354
if (exit $ac_status) && test -s out/conftest2.$ac_objext
17356
# The compiler can only warn and ignore the option if not recognized
17357
# So say no if there are warnings
17358
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17359
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17360
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17361
lt_cv_prog_compiler_c_o_GCJ=yes
17366
# SGI C++ compiler will create directory out/ii_files/ for
17367
# template instantiation
17368
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17369
$rm out/* && rmdir out
17375
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17376
$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17379
hard_links="nottested"
17380
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17381
# do not overwrite the value of need_locks provided by the user
17382
{ $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17383
$as_echo_n "checking if we can lock with hard links... " >&6; }
17386
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17388
ln conftest.a conftest.b 2>&5 || hard_links=no
17389
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17390
{ $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17391
$as_echo "$hard_links" >&6; }
17392
if test "$hard_links" = no; then
17393
{ $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17394
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17401
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17402
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17405
allow_undefined_flag_GCJ=
17406
enable_shared_with_static_runtimes_GCJ=no
17408
archive_expsym_cmds_GCJ=
17409
old_archive_From_new_cmds_GCJ=
17410
old_archive_from_expsyms_cmds_GCJ=
17411
export_dynamic_flag_spec_GCJ=
17412
whole_archive_flag_spec_GCJ=
17413
thread_safe_flag_spec_GCJ=
17414
hardcode_libdir_flag_spec_GCJ=
17415
hardcode_libdir_flag_spec_ld_GCJ=
17416
hardcode_libdir_separator_GCJ=
17417
hardcode_direct_GCJ=no
17418
hardcode_minus_L_GCJ=no
17419
hardcode_shlibpath_var_GCJ=unsupported
17420
link_all_deplibs_GCJ=unknown
17421
hardcode_automatic_GCJ=no
17423
module_expsym_cmds_GCJ=
17424
always_export_symbols_GCJ=no
17425
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17426
# include_expsyms should be a list of space-separated symbols to be *always*
17427
# included in the symbol list
17428
include_expsyms_GCJ=
17429
# exclude_expsyms can be an extended regexp of symbols to exclude
17430
# it will be wrapped by ` (' and `)$', so one must not match beginning or
17431
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17432
# as well as any symbol that contains `d'.
17433
exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17434
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17435
# platforms (ab)use it in PIC code, but their linkers get confused if
17436
# the symbol is explicitly referenced. Since portable code cannot
17437
# rely on this symbol name, it's probably fine to never include it in
17438
# preloaded symbol tables.
17439
# Exclude shared library initialization/finalization symbols.
17440
extract_expsyms_cmds=
17441
# Just being paranoid about ensuring that cc_basename is set.
17442
for cc_temp in $compiler""; do
17444
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17445
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17450
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17453
cygwin* | mingw* | pw32*)
17454
# FIXME: the MSVC++ port hasn't been tested in a loooong time
17455
# When not using gcc, we currently assume that we are using
17456
# Microsoft Visual C++.
17457
if test "$GCC" != yes; then
17462
# we just hope/assume this is gcc and not c89 (= MSVC++)
17471
if test "$with_gnu_ld" = yes; then
17472
# If archive_cmds runs LD, not CC, wlarc should be empty
17475
# Set some defaults for GNU ld with shared library support. These
17476
# are reset later if shared libraries are not supported. Putting them
17477
# here allows them to be overridden if necessary.
17478
runpath_var=LD_RUN_PATH
17479
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17480
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17481
# ancient GNU ld didn't support --whole-archive et. al.
17482
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17483
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17485
whole_archive_flag_spec_GCJ=
17487
supports_anon_versioning=no
17488
case `$LD -v 2>/dev/null` in
17489
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17490
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17491
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17492
*\ 2.11.*) ;; # other 2.11 versions
17493
*) supports_anon_versioning=yes ;;
17496
# See if GNU ld supports shared libraries.
17499
# On AIX/PPC, the GNU linker is very broken
17500
if test "$host_cpu" != ia64; then
17504
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17505
*** to be unable to reliably create shared libraries on AIX.
17506
*** Therefore, libtool is disabling shared libraries support. If you
17507
*** really care for shared libraries, you may want to modify your PATH
17508
*** so that a non-GNU linker is found, and then restart.
17515
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)'
17516
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17517
hardcode_minus_L_GCJ=yes
17519
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17520
# that the semantics of dynamic libraries on AmigaOS, at least up
17521
# to version 4, is to share data among multiple programs linked
17522
# with the same dynamic library. Since this doesn't match the
17523
# behavior of shared libraries on other platforms, we can't use
17529
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17530
allow_undefined_flag_GCJ=unsupported
17531
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17532
# support --undefined. This deserves some investigation. FIXME
17533
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17539
cygwin* | mingw* | pw32*)
17540
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17541
# as there is no search path for DLLs.
17542
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17543
allow_undefined_flag_GCJ=unsupported
17544
always_export_symbols_GCJ=no
17545
enable_shared_with_static_runtimes_GCJ=yes
17546
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17548
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17549
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17550
# If the export-symbols file already is a .def file (1st line
17551
# is EXPORTS), use it as is; otherwise, prepend...
17552
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17553
cp $export_symbols $output_objdir/$soname.def;
17555
echo EXPORTS > $output_objdir/$soname.def;
17556
cat $export_symbols >> $output_objdir/$soname.def;
17558
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17565
hardcode_direct_GCJ=no
17566
hardcode_shlibpath_var_GCJ=no
17567
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17568
export_dynamic_flag_spec_GCJ='${wl}-E'
17569
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17570
# Instead, shared libraries are loaded at an image base (0x10000000 by
17571
# default) and relocated if they conflict, which is a slow very memory
17572
# consuming and fragmenting process. To avoid this, we pick a random,
17573
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17574
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
17575
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'
17576
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'
17579
gnu* | linux* | k*bsd*-gnu)
17580
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17582
case $cc_basename,$host_cpu in
17583
pgcc*) # Portland Group C compiler
17584
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'
17585
tmp_addflag=' $pic_flag'
17587
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17588
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'
17589
tmp_addflag=' $pic_flag -Mnomain' ;;
17590
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17591
tmp_addflag=' -i_dynamic' ;;
17592
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17593
tmp_addflag=' -i_dynamic -nofor_main' ;;
17594
ifc* | ifort*) # Intel Fortran compiler
17595
tmp_addflag=' -nofor_main' ;;
17597
case `$CC -V 2>&1 | sed 5q` in
17598
*Sun\ C*) # Sun C 5.9
17599
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'
17600
tmp_sharedflag='-G' ;;
17601
*Sun\ F*) # Sun Fortran 8.3
17602
tmp_sharedflag='-G' ;;
17604
tmp_sharedflag='-shared' ;;
17606
archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17608
if test $supports_anon_versioning = yes; then
17609
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17610
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17611
$echo "local: *; };" >> $output_objdir/$libname.ver~
17612
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17614
link_all_deplibs_GCJ=no
17621
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17622
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17625
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17626
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17631
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17635
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17636
*** create shared libraries on Solaris systems. Therefore, libtool
17637
*** is disabling shared libraries support. We urge you to upgrade GNU
17638
*** binutils to release 2.9.1 or newer. Another option is to modify
17639
*** your PATH or compiler configuration so that the native linker is
17640
*** used, and then restart.
17643
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17644
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17645
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17651
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17652
case `$LD -v 2>&1` in
17653
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17657
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17658
*** reliably create shared libraries on SCO systems. Therefore, libtool
17659
*** is disabling shared libraries support. We urge you to upgrade GNU
17660
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17661
*** your PATH or compiler configuration so that the native linker is
17662
*** used, and then restart.
17667
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17668
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17669
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17670
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17679
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17681
hardcode_direct_GCJ=yes
17682
hardcode_shlibpath_var_GCJ=no
17686
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17687
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17688
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17695
if test "$ld_shlibs_GCJ" = no; then
17697
hardcode_libdir_flag_spec_GCJ=
17698
export_dynamic_flag_spec_GCJ=
17699
whole_archive_flag_spec_GCJ=
17702
# PORTME fill in a description of your system's linker (not GNU ld)
17705
allow_undefined_flag_GCJ=unsupported
17706
always_export_symbols_GCJ=yes
17707
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'
17708
# Note: this linker hardcodes the directories in LIBPATH if there
17709
# are no directories specified by -L.
17710
hardcode_minus_L_GCJ=yes
17711
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17712
# Neither direct hardcoding nor static linking is supported with a
17714
hardcode_direct_GCJ=unsupported
17719
if test "$host_cpu" = ia64; then
17720
# On IA64, the linker does run time linking by default, so we don't
17721
# have to do anything special.
17722
aix_use_runtimelinking=no
17723
exp_sym_flag='-Bexport'
17726
# If we're using GNU nm, then we don't want the "-C" option.
17727
# -C means demangle to AIX nm, but means don't demangle with GNU nm
17728
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17729
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'
17731
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'
17733
aix_use_runtimelinking=no
17735
# Test if we are trying to use run time linking or normal
17736
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17737
# need to do runtime linking.
17738
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17739
for ld_flag in $LDFLAGS; do
17740
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17741
aix_use_runtimelinking=yes
17748
exp_sym_flag='-bexport'
17749
no_entry_flag='-bnoentry'
17752
# When large executables or shared objects are built, AIX ld can
17753
# have problems creating the table of contents. If linking a library
17754
# or program results in "error TOC overflow" add -mminimal-toc to
17755
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17756
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17758
archive_cmds_GCJ=''
17759
hardcode_direct_GCJ=yes
17760
hardcode_libdir_separator_GCJ=':'
17761
link_all_deplibs_GCJ=yes
17763
if test "$GCC" = yes; then
17764
case $host_os in aix4.[012]|aix4.[012].*)
17765
# We only want to do this on AIX 4.2 and lower, the check
17766
# below for broken collect2 doesn't work under 4.3+
17767
collect2name=`${CC} -print-prog-name=collect2`
17768
if test -f "$collect2name" && \
17769
strings "$collect2name" | grep resolve_lib_name >/dev/null
17771
# We have reworked collect2
17774
# We have old collect2
17775
hardcode_direct_GCJ=unsupported
17776
# It fails to find uninstalled libraries when the uninstalled
17777
# path is not listed in the libpath. Setting hardcode_minus_L
17778
# to unsupported forces relinking
17779
hardcode_minus_L_GCJ=yes
17780
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17781
hardcode_libdir_separator_GCJ=
17785
shared_flag='-shared'
17786
if test "$aix_use_runtimelinking" = yes; then
17787
shared_flag="$shared_flag "'${wl}-G'
17791
if test "$host_cpu" = ia64; then
17792
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17793
# chokes on -Wl,-G. The following line is correct:
17796
if test "$aix_use_runtimelinking" = yes; then
17797
shared_flag='${wl}-G'
17799
shared_flag='${wl}-bM:SRE'
17804
# It seems that -bexpall does not export symbols beginning with
17805
# underscore (_), so it is better to generate a list of symbols to export.
17806
always_export_symbols_GCJ=yes
17807
if test "$aix_use_runtimelinking" = yes; then
17808
# Warning - without using the other runtime loading flags (-brtl),
17809
# -berok will link without error, but may produce a broken library.
17810
allow_undefined_flag_GCJ='-berok'
17811
# Determine the default libpath from the value encoded in an empty executable.
17812
cat >conftest.$ac_ext <<_ACEOF
17815
cat confdefs.h >>conftest.$ac_ext
17816
cat >>conftest.$ac_ext <<_ACEOF
17817
/* end confdefs.h. */
17827
rm -f conftest.$ac_objext conftest$ac_exeext
17828
if { (ac_try="$ac_link"
17829
case "(($ac_try" in
17830
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17831
*) ac_try_echo=$ac_try;;
17833
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17834
$as_echo "$ac_try_echo") >&5
17835
(eval "$ac_link") 2>conftest.er1
17837
grep -v '^ *+' conftest.er1 >conftest.err
17839
cat conftest.err >&5
17840
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841
(exit $ac_status); } && {
17842
test -z "$ac_c_werror_flag" ||
17843
test ! -s conftest.err
17844
} && test -s conftest$ac_exeext && {
17845
test "$cross_compiling" = yes ||
17846
$as_test_x conftest$ac_exeext
17849
lt_aix_libpath_sed='
17850
/Import File Strings/,/^$/ {
17856
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17857
# Check for a 64-bit object if we didn't find anything.
17858
if test -z "$aix_libpath"; then
17859
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17862
$as_echo "$as_me: failed program was:" >&5
17863
sed 's/^/| /' conftest.$ac_ext >&5
17868
rm -rf conftest.dSYM
17869
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17870
conftest$ac_exeext conftest.$ac_ext
17871
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17873
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17874
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"
17876
if test "$host_cpu" = ia64; then
17877
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17878
allow_undefined_flag_GCJ="-z nodefs"
17879
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"
17881
# Determine the default libpath from the value encoded in an empty executable.
17882
cat >conftest.$ac_ext <<_ACEOF
17885
cat confdefs.h >>conftest.$ac_ext
17886
cat >>conftest.$ac_ext <<_ACEOF
17887
/* end confdefs.h. */
17897
rm -f conftest.$ac_objext conftest$ac_exeext
17898
if { (ac_try="$ac_link"
17899
case "(($ac_try" in
17900
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17901
*) ac_try_echo=$ac_try;;
17903
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17904
$as_echo "$ac_try_echo") >&5
17905
(eval "$ac_link") 2>conftest.er1
17907
grep -v '^ *+' conftest.er1 >conftest.err
17909
cat conftest.err >&5
17910
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911
(exit $ac_status); } && {
17912
test -z "$ac_c_werror_flag" ||
17913
test ! -s conftest.err
17914
} && test -s conftest$ac_exeext && {
17915
test "$cross_compiling" = yes ||
17916
$as_test_x conftest$ac_exeext
17919
lt_aix_libpath_sed='
17920
/Import File Strings/,/^$/ {
17926
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17927
# Check for a 64-bit object if we didn't find anything.
17928
if test -z "$aix_libpath"; then
17929
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17932
$as_echo "$as_me: failed program was:" >&5
17933
sed 's/^/| /' conftest.$ac_ext >&5
17938
rm -rf conftest.dSYM
17939
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17940
conftest$ac_exeext conftest.$ac_ext
17941
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17943
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17944
# Warning - without using the other run time loading flags,
17945
# -berok will link without error, but may produce a broken library.
17946
no_undefined_flag_GCJ=' ${wl}-bernotok'
17947
allow_undefined_flag_GCJ=' ${wl}-berok'
17948
# Exported symbols can be pulled into shared objects from archives
17949
whole_archive_flag_spec_GCJ='$convenience'
17950
archive_cmds_need_lc_GCJ=yes
17951
# This is similar to how AIX traditionally builds its shared libraries.
17952
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'
17958
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)'
17959
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17960
hardcode_minus_L_GCJ=yes
17961
# see comment about different semantics on the GNU ld section
17966
export_dynamic_flag_spec_GCJ=-rdynamic
17969
cygwin* | mingw* | pw32*)
17970
# When not using gcc, we currently assume that we are using
17971
# Microsoft Visual C++.
17972
# hardcode_libdir_flag_spec is actually meaningless, as there is
17973
# no search path for DLLs.
17974
hardcode_libdir_flag_spec_GCJ=' '
17975
allow_undefined_flag_GCJ=unsupported
17976
# Tell ltmain to make .lib files, not .a files.
17978
# Tell ltmain to make .dll files, not .so files.
17980
# FIXME: Setting linknames here is a bad hack.
17981
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17982
# The linker will automatically build a .lib file if we build a DLL.
17983
old_archive_From_new_cmds_GCJ='true'
17984
# FIXME: Should let the user specify the lib program.
17985
old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17986
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17987
enable_shared_with_static_runtimes_GCJ=yes
17990
darwin* | rhapsody*)
17992
rhapsody* | darwin1.[012])
17993
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17996
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17997
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17999
case ${MACOSX_DEPLOYMENT_TARGET} in
18001
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18004
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18010
archive_cmds_need_lc_GCJ=no
18011
hardcode_direct_GCJ=no
18012
hardcode_automatic_GCJ=yes
18013
hardcode_shlibpath_var_GCJ=unsupported
18014
whole_archive_flag_spec_GCJ=''
18015
link_all_deplibs_GCJ=yes
18016
if test "$GCC" = yes ; then
18017
output_verbose_link_cmd='echo'
18018
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}"
18019
module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18020
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}"
18021
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}"
18023
case $cc_basename in
18025
output_verbose_link_cmd='echo'
18026
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18027
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18028
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18029
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}'
18030
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}'
18040
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18041
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18042
hardcode_shlibpath_var_GCJ=no
18049
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18050
# support. Future versions do this automatically, but an explicit c++rt0.o
18051
# does not break anything, and helps significantly (at the cost of a little
18054
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18055
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18056
hardcode_direct_GCJ=yes
18057
hardcode_shlibpath_var_GCJ=no
18060
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
18062
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18063
hardcode_direct_GCJ=yes
18064
hardcode_minus_L_GCJ=yes
18065
hardcode_shlibpath_var_GCJ=no
18068
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18069
freebsd* | dragonfly*)
18070
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18071
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18072
hardcode_direct_GCJ=yes
18073
hardcode_shlibpath_var_GCJ=no
18077
if test "$GCC" = yes; then
18078
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'
18080
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'
18082
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18083
hardcode_libdir_separator_GCJ=:
18084
hardcode_direct_GCJ=yes
18086
# hardcode_minus_L: Not really in the search PATH,
18087
# but as the default location of the library.
18088
hardcode_minus_L_GCJ=yes
18089
export_dynamic_flag_spec_GCJ='${wl}-E'
18093
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18094
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18096
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18098
if test "$with_gnu_ld" = no; then
18099
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18100
hardcode_libdir_separator_GCJ=:
18102
hardcode_direct_GCJ=yes
18103
export_dynamic_flag_spec_GCJ='${wl}-E'
18105
# hardcode_minus_L: Not really in the search PATH,
18106
# but as the default location of the library.
18107
hardcode_minus_L_GCJ=yes
18112
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18115
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18118
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18121
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18127
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18130
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18133
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18137
if test "$with_gnu_ld" = no; then
18138
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18139
hardcode_libdir_separator_GCJ=:
18143
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18144
hardcode_direct_GCJ=no
18145
hardcode_shlibpath_var_GCJ=no
18148
hardcode_direct_GCJ=yes
18149
export_dynamic_flag_spec_GCJ='${wl}-E'
18151
# hardcode_minus_L: Not really in the search PATH,
18152
# but as the default location of the library.
18153
hardcode_minus_L_GCJ=yes
18159
irix5* | irix6* | nonstopux*)
18160
if test "$GCC" = yes; then
18161
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'
18163
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'
18164
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18166
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18167
hardcode_libdir_separator_GCJ=:
18168
link_all_deplibs_GCJ=yes
18172
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18173
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18175
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18177
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18178
hardcode_direct_GCJ=yes
18179
hardcode_shlibpath_var_GCJ=no
18183
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18184
hardcode_direct_GCJ=yes
18185
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18186
hardcode_libdir_separator_GCJ=:
18187
hardcode_shlibpath_var_GCJ=no
18191
if test -f /usr/libexec/ld.so; then
18192
hardcode_direct_GCJ=yes
18193
hardcode_shlibpath_var_GCJ=no
18194
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18195
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18196
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18197
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18198
export_dynamic_flag_spec_GCJ='${wl}-E'
18201
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18202
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18203
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18206
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18207
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18217
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18218
hardcode_minus_L_GCJ=yes
18219
allow_undefined_flag_GCJ=unsupported
18220
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'
18221
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18225
if test "$GCC" = yes; then
18226
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18227
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'
18229
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18230
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'
18232
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18233
hardcode_libdir_separator_GCJ=:
18236
osf4* | osf5*) # as osf3* with the addition of -msym flag
18237
if test "$GCC" = yes; then
18238
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18239
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'
18240
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18242
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18243
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'
18244
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~
18245
$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'
18247
# Both c and cxx compiler support -rpath directly
18248
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18250
hardcode_libdir_separator_GCJ=:
18254
no_undefined_flag_GCJ=' -z text'
18255
if test "$GCC" = yes; then
18257
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18258
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18259
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18262
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18263
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18264
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18266
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18267
hardcode_shlibpath_var_GCJ=no
18269
solaris2.[0-5] | solaris2.[0-5].*) ;;
18271
# The compiler driver will combine and reorder linker options,
18272
# but understands `-z linker_flag'. GCC discards it without `$wl',
18273
# but is careful enough not to reorder.
18274
# Supported since Solaris 2.6 (maybe 2.5.1?)
18275
if test "$GCC" = yes; then
18276
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18278
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18282
link_all_deplibs_GCJ=yes
18286
if test "x$host_vendor" = xsequent; then
18287
# Use $CC to link under sequent, because it throws in some extra .o
18288
# files that make .init and .fini sections work.
18289
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18291
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18293
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18294
hardcode_direct_GCJ=yes
18295
hardcode_minus_L_GCJ=yes
18296
hardcode_shlibpath_var_GCJ=no
18300
case $host_vendor in
18302
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18303
hardcode_direct_GCJ=yes # is this really true???
18306
## LD is ld it makes a PLAMLIB
18307
## CC just makes a GrossModule.
18308
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18309
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18310
hardcode_direct_GCJ=no
18313
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18314
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18317
runpath_var='LD_RUN_PATH'
18318
hardcode_shlibpath_var_GCJ=no
18322
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18323
hardcode_shlibpath_var_GCJ=no
18324
export_dynamic_flag_spec_GCJ='-Bexport'
18328
if test -d /usr/nec; then
18329
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18330
hardcode_shlibpath_var_GCJ=no
18331
runpath_var=LD_RUN_PATH
18332
hardcode_runpath_var=yes
18337
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18338
no_undefined_flag_GCJ='${wl}-z,text'
18339
archive_cmds_need_lc_GCJ=no
18340
hardcode_shlibpath_var_GCJ=no
18341
runpath_var='LD_RUN_PATH'
18343
if test "$GCC" = yes; then
18344
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18345
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18347
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18348
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18352
sysv5* | sco3.2v5* | sco5v6*)
18353
# Note: We can NOT use -z defs as we might desire, because we do not
18354
# link with -lc, and that would cause any symbols used from libc to
18355
# always be unresolved, which means just about no library would
18356
# ever link correctly. If we're not using GNU ld we use -z text
18357
# though, which does catch some bad symbols but isn't as heavy-handed
18359
no_undefined_flag_GCJ='${wl}-z,text'
18360
allow_undefined_flag_GCJ='${wl}-z,nodefs'
18361
archive_cmds_need_lc_GCJ=no
18362
hardcode_shlibpath_var_GCJ=no
18363
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18364
hardcode_libdir_separator_GCJ=':'
18365
link_all_deplibs_GCJ=yes
18366
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18367
runpath_var='LD_RUN_PATH'
18369
if test "$GCC" = yes; then
18370
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18371
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18373
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18374
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18379
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18380
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18381
hardcode_shlibpath_var_GCJ=no
18390
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18391
$as_echo "$ld_shlibs_GCJ" >&6; }
18392
test "$ld_shlibs_GCJ" = no && can_build_shared=no
18395
# Do we need to explicitly link libc?
18397
case "x$archive_cmds_need_lc_GCJ" in
18399
# Assume -lc should be added
18400
archive_cmds_need_lc_GCJ=yes
18402
if test "$enable_shared" = yes && test "$GCC" = yes; then
18403
case $archive_cmds_GCJ in
18405
# FIXME: we may have to deal with multi-command sequences.
18408
# Test whether the compiler implicitly links with -lc since on some
18409
# systems, -lgcc has to come before -lc. If gcc already passes -lc
18410
# to ld, don't add -lc before -lgcc.
18411
{ $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18412
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18414
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18416
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18417
(eval $ac_compile) 2>&5
18419
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18420
(exit $ac_status); } 2>conftest.err; then
18423
libobjs=conftest.$ac_objext
18425
wl=$lt_prog_compiler_wl_GCJ
18426
pic_flag=$lt_prog_compiler_pic_GCJ
18432
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18433
allow_undefined_flag_GCJ=
18434
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18435
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18437
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438
(exit $ac_status); }
18440
archive_cmds_need_lc_GCJ=no
18442
archive_cmds_need_lc_GCJ=yes
18444
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18446
cat conftest.err 1>&5
18449
{ $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18450
$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
18457
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18458
$as_echo_n "checking dynamic linker characteristics... " >&6; }
18459
library_names_spec=
18460
libname_spec='lib$name'
18464
postuninstall_cmds=
18468
shlibpath_overrides_runpath=unknown
18470
dynamic_linker="$host_os ld.so"
18471
sys_lib_dlsearch_path_spec="/lib /usr/lib"
18473
need_lib_prefix=unknown
18474
hardcode_into_libs=no
18476
# when you set need_version to no, make sure it does not cause -set_version
18477
# flags to be left without arguments
18478
need_version=unknown
18483
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18484
shlibpath_var=LIBPATH
18486
# AIX 3 has no versioning support, so we append a major version to the name.
18487
soname_spec='${libname}${release}${shared_ext}$major'
18494
hardcode_into_libs=yes
18495
if test "$host_cpu" = ia64; then
18496
# AIX 5 supports IA64
18497
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18498
shlibpath_var=LD_LIBRARY_PATH
18500
# With GCC up to 2.95.x, collect2 would create an import file
18501
# for dependence libraries. The import file would start with
18502
# the line `#! .'. This would cause the generated library to
18503
# depend on `.', always an invalid library. This was fixed in
18504
# development snapshots of GCC prior to 3.0.
18506
aix4 | aix4.[01] | aix4.[01].*)
18507
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18509
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18512
can_build_shared=no
18516
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18517
# soname into executable. Probably we can add versioning support to
18518
# collect2, so additional links can be useful in future.
18519
if test "$aix_use_runtimelinking" = yes; then
18520
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
18521
# instead of lib<name>.a to let people know that these are not
18522
# typical AIX shared libraries.
18523
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18525
# We preserve .a as extension for shared libraries through AIX4.2
18526
# and later when we are not doing run time linking.
18527
library_names_spec='${libname}${release}.a $libname.a'
18528
soname_spec='${libname}${release}${shared_ext}$major'
18530
shlibpath_var=LIBPATH
18535
library_names_spec='$libname.ixlibrary $libname.a'
18536
# Create ${libname}_ixlibrary.a entries in /sys/libs.
18537
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'
18541
library_names_spec='${libname}${shared_ext}'
18542
dynamic_linker="$host_os ld.so"
18543
shlibpath_var=LIBRARY_PATH
18549
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18550
soname_spec='${libname}${release}${shared_ext}$major'
18551
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18552
shlibpath_var=LD_LIBRARY_PATH
18553
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18554
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18555
# the default ld.so.conf also contains /usr/contrib/lib and
18556
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18557
# libtool to hard-code these into programs
18560
cygwin* | mingw* | pw32*)
18561
version_type=windows
18566
case $GCC,$host_os in
18567
yes,cygwin* | yes,mingw* | yes,pw32*)
18568
library_names_spec='$libname.dll.a'
18569
# DLL is installed to $(libdir)/../bin by postinstall_cmds
18570
postinstall_cmds='base_file=`basename \${file}`~
18571
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18572
dldir=$destdir/`dirname \$dlpath`~
18573
test -d \$dldir || mkdir -p \$dldir~
18574
$install_prog $dir/$dlname \$dldir/$dlname~
18575
chmod a+x \$dldir/$dlname'
18576
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18577
dlpath=$dir/\$dldll~
18579
shlibpath_overrides_runpath=yes
18583
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
18584
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18585
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18588
# MinGW DLLs use traditional 'lib' prefix
18589
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18590
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18591
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18592
# It is most probably a Windows format PATH printed by
18593
# mingw gcc, but we are running on Cygwin. Gcc prints its search
18594
# path with ; separators, and with drive letters. We can handle the
18595
# drive letters (cygwin fileutils understands them), so leave them,
18596
# especially as we might pass files found there to a mingw objdump,
18597
# which wouldn't understand a cygwinified path. Ahh.
18598
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18600
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18604
# pw32 DLLs use 'pw' prefix rather than 'lib'
18605
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18611
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18614
dynamic_linker='Win32 ld.exe'
18615
# FIXME: first we should search . and the directory the executable is in
18619
darwin* | rhapsody*)
18620
dynamic_linker="$host_os dyld"
18621
version_type=darwin
18624
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18625
soname_spec='${libname}${release}${major}$shared_ext'
18626
shlibpath_overrides_runpath=yes
18627
shlibpath_var=DYLD_LIBRARY_PATH
18628
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18630
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18637
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18638
soname_spec='${libname}${release}${shared_ext}$major'
18639
shlibpath_var=LD_LIBRARY_PATH
18646
freebsd* | dragonfly*)
18647
# DragonFly does not have aout. When/if they implement a new
18648
# versioning mechanism, adjust this.
18649
if test -x /usr/bin/objformat; then
18650
objformat=`/usr/bin/objformat`
18653
freebsd[123]*) objformat=aout ;;
18654
*) objformat=elf ;;
18657
version_type=freebsd-$objformat
18658
case $version_type in
18660
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18665
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18669
shlibpath_var=LD_LIBRARY_PATH
18672
shlibpath_overrides_runpath=yes
18674
freebsd3.[01]* | freebsdelf3.[01]*)
18675
shlibpath_overrides_runpath=yes
18676
hardcode_into_libs=yes
18678
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18679
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18680
shlibpath_overrides_runpath=no
18681
hardcode_into_libs=yes
18683
*) # from 4.6 on, and DragonFly
18684
shlibpath_overrides_runpath=yes
18685
hardcode_into_libs=yes
18694
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18695
soname_spec='${libname}${release}${shared_ext}$major'
18696
shlibpath_var=LD_LIBRARY_PATH
18697
hardcode_into_libs=yes
18700
hpux9* | hpux10* | hpux11*)
18701
# Give a soname corresponding to the major version so that dld.sl refuses to
18702
# link against other versions.
18709
hardcode_into_libs=yes
18710
dynamic_linker="$host_os dld.so"
18711
shlibpath_var=LD_LIBRARY_PATH
18712
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18713
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18714
soname_spec='${libname}${release}${shared_ext}$major'
18715
if test "X$HPUX_IA64_MODE" = X32; then
18716
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18718
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18720
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18724
hardcode_into_libs=yes
18725
dynamic_linker="$host_os dld.sl"
18726
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18727
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18728
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18729
soname_spec='${libname}${release}${shared_ext}$major'
18730
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18731
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18735
dynamic_linker="$host_os dld.sl"
18736
shlibpath_var=SHLIB_PATH
18737
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18738
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18739
soname_spec='${libname}${release}${shared_ext}$major'
18742
# HP-UX runs *really* slowly unless shared libraries are mode 555.
18743
postinstall_cmds='chmod 555 $lib'
18750
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18751
soname_spec='${libname}${release}${shared_ext}$major'
18752
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18753
shlibpath_var=LD_LIBRARY_PATH
18754
shlibpath_overrides_runpath=no
18755
hardcode_into_libs=yes
18758
irix5* | irix6* | nonstopux*)
18760
nonstopux*) version_type=nonstopux ;;
18762
if test "$lt_cv_prog_gnu_ld" = yes; then
18770
soname_spec='${libname}${release}${shared_ext}$major'
18771
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18773
irix5* | nonstopux*)
18774
libsuff= shlibsuff=
18777
case $LD in # libtool.m4 will add one of these switches to LD
18778
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18779
libsuff= shlibsuff= libmagic=32-bit;;
18780
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18781
libsuff=32 shlibsuff=N32 libmagic=N32;;
18782
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18783
libsuff=64 shlibsuff=64 libmagic=64-bit;;
18784
*) libsuff= shlibsuff= libmagic=never-match;;
18788
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18789
shlibpath_overrides_runpath=no
18790
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18791
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18792
hardcode_into_libs=yes
18795
# No shared lib support for Linux oldld, aout, or coff.
18796
linux*oldld* | linux*aout* | linux*coff*)
18800
# This must be Linux ELF.
18801
linux* | k*bsd*-gnu)
18805
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18806
soname_spec='${libname}${release}${shared_ext}$major'
18807
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18808
shlibpath_var=LD_LIBRARY_PATH
18809
shlibpath_overrides_runpath=no
18810
# This implies no fast_install, which is unacceptable.
18811
# Some rework will be needed to allow for fast_install
18812
# before this can be enabled.
18813
hardcode_into_libs=yes
18815
# find out which ABI we are using
18817
case "$host_cpu" in
18818
x86_64*|s390x*|powerpc64*)
18819
echo '#line 18819 "configure"' > conftest.$ac_ext
18820
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18821
(eval $ac_compile) 2>&5
18823
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18824
(exit $ac_status); }; then
18825
case `/usr/bin/file conftest.$ac_objext` in
18835
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
18837
# Append ld.so.conf contents to the search path
18838
if test -f /etc/ld.so.conf; then
18839
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' ' '`
18840
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18843
# We used to test for /lib/ld.so.1 and disable shared libraries on
18844
# powerpc, because MkLinux only supported shared libraries with the
18845
# GNU dynamic linker. Since this was broken with cross compilers,
18846
# most powerpc-linux boxes support dynamic linking these days and
18847
# people can always --disable-shared, the test was removed, and we
18848
# assume the GNU/Linux dynamic linker is in use.
18849
dynamic_linker='GNU/Linux ld.so'
18856
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18857
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18858
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18859
dynamic_linker='NetBSD (a.out) ld.so'
18861
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18862
soname_spec='${libname}${release}${shared_ext}$major'
18863
dynamic_linker='NetBSD ld.elf_so'
18865
shlibpath_var=LD_LIBRARY_PATH
18866
shlibpath_overrides_runpath=yes
18867
hardcode_into_libs=yes
18872
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18873
shlibpath_var=LD_LIBRARY_PATH
18874
shlibpath_overrides_runpath=yes
18881
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18882
soname_spec='${libname}${release}${shared_ext}$major'
18883
shlibpath_var=LD_LIBRARY_PATH
18884
shlibpath_overrides_runpath=yes
18889
sys_lib_dlsearch_path_spec="/usr/lib"
18891
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18893
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18894
*) need_version=no ;;
18896
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18897
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18898
shlibpath_var=LD_LIBRARY_PATH
18899
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18901
openbsd2.[89] | openbsd2.[89].*)
18902
shlibpath_overrides_runpath=no
18905
shlibpath_overrides_runpath=yes
18909
shlibpath_overrides_runpath=yes
18914
libname_spec='$name'
18917
library_names_spec='$libname${shared_ext} $libname.a'
18918
dynamic_linker='OS/2 ld.exe'
18919
shlibpath_var=LIBPATH
18922
osf3* | osf4* | osf5*)
18926
soname_spec='${libname}${release}${shared_ext}$major'
18927
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18928
shlibpath_var=LD_LIBRARY_PATH
18929
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18930
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18941
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18942
soname_spec='${libname}${release}${shared_ext}$major'
18943
shlibpath_var=LD_LIBRARY_PATH
18944
shlibpath_overrides_runpath=yes
18945
hardcode_into_libs=yes
18946
# ldd complains unless libraries are executable
18947
postinstall_cmds='chmod +x $lib'
18952
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18953
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18954
shlibpath_var=LD_LIBRARY_PATH
18955
shlibpath_overrides_runpath=yes
18956
if test "$with_gnu_ld" = yes; then
18964
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18965
soname_spec='${libname}${release}${shared_ext}$major'
18966
shlibpath_var=LD_LIBRARY_PATH
18967
case $host_vendor in
18969
shlibpath_overrides_runpath=no
18971
export_dynamic_flag_spec='${wl}-Blargedynsym'
18972
runpath_var=LD_RUN_PATH
18980
shlibpath_overrides_runpath=no
18981
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18987
if test -d /usr/nec ;then
18989
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18990
soname_spec='$libname${shared_ext}.$major'
18991
shlibpath_var=LD_LIBRARY_PATH
18995
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18996
version_type=freebsd-elf
18999
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19000
soname_spec='${libname}${release}${shared_ext}$major'
19001
shlibpath_var=LD_LIBRARY_PATH
19002
hardcode_into_libs=yes
19003
if test "$with_gnu_ld" = yes; then
19004
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19005
shlibpath_overrides_runpath=no
19007
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19008
shlibpath_overrides_runpath=yes
19011
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19015
sys_lib_dlsearch_path_spec='/usr/lib'
19020
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19021
soname_spec='${libname}${release}${shared_ext}$major'
19022
shlibpath_var=LD_LIBRARY_PATH
19029
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19030
$as_echo "$dynamic_linker" >&6; }
19031
test "$dynamic_linker" = no && can_build_shared=no
19033
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19034
$as_echo_n "(cached) " >&6
19036
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19039
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19040
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19041
$as_echo_n "(cached) " >&6
19043
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19046
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19048
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19049
if test "$GCC" = yes; then
19050
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19053
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19054
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19055
hardcode_action_GCJ=
19056
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19057
test -n "$runpath_var_GCJ" || \
19058
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19060
# We can hardcode non-existant directories.
19061
if test "$hardcode_direct_GCJ" != no &&
19062
# If the only mechanism to avoid hardcoding is shlibpath_var, we
19063
# have to relink, otherwise we might link with an installed library
19064
# when we should be linking with a yet-to-be-installed one
19065
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19066
test "$hardcode_minus_L_GCJ" != no; then
19067
# Linking always hardcodes the temporary library directory.
19068
hardcode_action_GCJ=relink
19070
# We can link without hardcoding, and we can hardcode nonexisting dirs.
19071
hardcode_action_GCJ=immediate
19074
# We cannot hardcode anything, or else we can only hardcode existing
19076
hardcode_action_GCJ=unsupported
19078
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19079
$as_echo "$hardcode_action_GCJ" >&6; }
19081
if test "$hardcode_action_GCJ" = relink; then
19082
# Fast installation is not supported
19083
enable_fast_install=no
19084
elif test "$shlibpath_overrides_runpath" = yes ||
19085
test "$enable_shared" = no; then
19086
# Fast installation is not necessary
19087
enable_fast_install=needless
19091
# The else clause should only fire when bootstrapping the
19092
# libtool distribution, otherwise you forgot to ship ltmain.sh
19093
# with your package, and you will get complaints that there are
19094
# no rules to generate ltmain.sh.
19095
if test -f "$ltmain"; then
19096
# See if we are running on zsh, and set the options which allow our commands through
19097
# without removal of \ escapes.
19098
if test -n "${ZSH_VERSION+set}" ; then
19099
setopt NO_GLOB_SUBST
19101
# Now quote all the things that may contain metacharacters while being
19102
# careful not to overquote the AC_SUBSTed values. We take copies of the
19103
# variables and quote the copies for generation of the libtool script.
19104
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19106
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19107
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19108
deplibs_check_method reload_flag reload_cmds need_locks \
19109
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19110
lt_cv_sys_global_symbol_to_c_name_address \
19111
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19112
old_postinstall_cmds old_postuninstall_cmds \
19116
lt_prog_compiler_wl_GCJ \
19117
lt_prog_compiler_pic_GCJ \
19118
lt_prog_compiler_static_GCJ \
19119
lt_prog_compiler_no_builtin_flag_GCJ \
19120
export_dynamic_flag_spec_GCJ \
19121
thread_safe_flag_spec_GCJ \
19122
whole_archive_flag_spec_GCJ \
19123
enable_shared_with_static_runtimes_GCJ \
19124
old_archive_cmds_GCJ \
19125
old_archive_from_new_cmds_GCJ \
19126
predep_objects_GCJ \
19127
postdep_objects_GCJ \
19130
compiler_lib_search_path_GCJ \
19131
compiler_lib_search_dirs_GCJ \
19133
archive_expsym_cmds_GCJ \
19134
postinstall_cmds_GCJ \
19135
postuninstall_cmds_GCJ \
19136
old_archive_from_expsyms_cmds_GCJ \
19137
allow_undefined_flag_GCJ \
19138
no_undefined_flag_GCJ \
19139
export_symbols_cmds_GCJ \
19140
hardcode_libdir_flag_spec_GCJ \
19141
hardcode_libdir_flag_spec_ld_GCJ \
19142
hardcode_libdir_separator_GCJ \
19143
hardcode_automatic_GCJ \
19145
module_expsym_cmds_GCJ \
19146
lt_cv_prog_compiler_c_o_GCJ \
19147
fix_srcfile_path_GCJ \
19148
exclude_expsyms_GCJ \
19149
include_expsyms_GCJ; do
19152
old_archive_cmds_GCJ | \
19153
old_archive_from_new_cmds_GCJ | \
19154
archive_cmds_GCJ | \
19155
archive_expsym_cmds_GCJ | \
19156
module_cmds_GCJ | \
19157
module_expsym_cmds_GCJ | \
19158
old_archive_from_expsyms_cmds_GCJ | \
19159
export_symbols_cmds_GCJ | \
19160
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19161
postinstall_cmds | postuninstall_cmds | \
19162
old_postinstall_cmds | old_postuninstall_cmds | \
19163
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19164
# Double-quote double-evaled strings.
19165
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19168
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19174
*'\$0 --fallback-echo"')
19175
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19181
cat <<__EOF__ >> "$cfgfile"
19182
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19184
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19186
# Shell to use when invoking shell scripts.
19189
# Whether or not to build shared libraries.
19190
build_libtool_libs=$enable_shared
19192
# Whether or not to build static libraries.
19193
build_old_libs=$enable_static
19195
# Whether or not to add -lc for building shared libraries.
19196
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19198
# Whether or not to disallow shared libs when runtime libs are static
19199
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19201
# Whether or not to optimize for fast installation.
19202
fast_install=$enable_fast_install
19205
host_alias=$host_alias
19209
# The build system.
19210
build_alias=$build_alias
19214
# An echo program that does not interpret backslashes.
19219
AR_FLAGS=$lt_AR_FLAGS
19224
# LTCC compiler flags.
19225
LTCFLAGS=$lt_LTCFLAGS
19227
# A language-specific compiler.
19228
CC=$lt_compiler_GCJ
19230
# Is the compiler the GNU C compiler?
19236
# The linker used to build libraries.
19239
# Whether we need hard or soft links.
19242
# A BSD-compatible nm program.
19245
# A symbol stripping program
19248
# Used to examine libraries when file_magic_cmd begins "file"
19249
MAGIC_CMD=$MAGIC_CMD
19251
# Used on cygwin: DLL creation program.
19254
# Used on cygwin: object dumper.
19257
# Used on cygwin: assembler.
19260
# The name of the directory that contains temporary libtool files.
19263
# How to create reloadable object files.
19264
reload_flag=$lt_reload_flag
19265
reload_cmds=$lt_reload_cmds
19267
# How to pass a linker flag through the compiler.
19268
wl=$lt_lt_prog_compiler_wl_GCJ
19270
# Object file suffix (normally "o").
19271
objext="$ac_objext"
19273
# Old archive suffix (normally "a").
19276
# Shared library suffix (normally ".so").
19277
shrext_cmds='$shrext_cmds'
19279
# Executable file suffix (normally "").
19282
# Additional compiler flags for building library objects.
19283
pic_flag=$lt_lt_prog_compiler_pic_GCJ
19286
# What is the maximum length of a command?
19287
max_cmd_len=$lt_cv_sys_max_cmd_len
19289
# Does compiler simultaneously support -c and -o options?
19290
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19292
# Must we lock files when doing compilation?
19293
need_locks=$lt_need_locks
19295
# Do we need the lib prefix for modules?
19296
need_lib_prefix=$need_lib_prefix
19298
# Do we need a version for libraries?
19299
need_version=$need_version
19301
# Whether dlopen is supported.
19302
dlopen_support=$enable_dlopen
19304
# Whether dlopen of programs is supported.
19305
dlopen_self=$enable_dlopen_self
19307
# Whether dlopen of statically linked programs is supported.
19308
dlopen_self_static=$enable_dlopen_self_static
19310
# Compiler flag to prevent dynamic linking.
19311
link_static_flag=$lt_lt_prog_compiler_static_GCJ
19313
# Compiler flag to turn off builtin functions.
19314
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19316
# Compiler flag to allow reflexive dlopens.
19317
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19319
# Compiler flag to generate shared objects directly from archives.
19320
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19322
# Compiler flag to generate thread-safe objects.
19323
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19325
# Library versioning type.
19326
version_type=$version_type
19328
# Format of library name prefix.
19329
libname_spec=$lt_libname_spec
19331
# List of archive names. First name is the real one, the rest are links.
19332
# The last name is the one that the linker finds with -lNAME.
19333
library_names_spec=$lt_library_names_spec
19335
# The coded name of the library, if different from the real name.
19336
soname_spec=$lt_soname_spec
19338
# Commands used to build and install an old-style archive.
19340
old_archive_cmds=$lt_old_archive_cmds_GCJ
19341
old_postinstall_cmds=$lt_old_postinstall_cmds
19342
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19344
# Create an old-style archive from a shared archive.
19345
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19347
# Create a temporary old-style archive to link instead of a shared archive.
19348
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19350
# Commands used to build and install a shared archive.
19351
archive_cmds=$lt_archive_cmds_GCJ
19352
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19353
postinstall_cmds=$lt_postinstall_cmds
19354
postuninstall_cmds=$lt_postuninstall_cmds
19356
# Commands used to build a loadable module (assumed same as above if empty)
19357
module_cmds=$lt_module_cmds_GCJ
19358
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19360
# Commands to strip libraries.
19361
old_striplib=$lt_old_striplib
19362
striplib=$lt_striplib
19364
# Dependencies to place before the objects being linked to create a
19366
predep_objects=$lt_predep_objects_GCJ
19368
# Dependencies to place after the objects being linked to create a
19370
postdep_objects=$lt_postdep_objects_GCJ
19372
# Dependencies to place before the objects being linked to create a
19374
predeps=$lt_predeps_GCJ
19376
# Dependencies to place after the objects being linked to create a
19378
postdeps=$lt_postdeps_GCJ
19380
# The directories searched by this compiler when creating a shared
19382
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19384
# The library search path used internally by the compiler when linking
19385
# a shared library.
19386
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19388
# Method to check whether dependent libraries are shared objects.
19389
deplibs_check_method=$lt_deplibs_check_method
19391
# Command to use when deplibs_check_method == file_magic.
19392
file_magic_cmd=$lt_file_magic_cmd
19394
# Flag that allows shared libraries with undefined symbols to be built.
19395
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19397
# Flag that forces no undefined symbols.
19398
no_undefined_flag=$lt_no_undefined_flag_GCJ
19400
# Commands used to finish a libtool library installation in a directory.
19401
finish_cmds=$lt_finish_cmds
19403
# Same as above, but a single script fragment to be evaled but not shown.
19404
finish_eval=$lt_finish_eval
19406
# Take the output of nm and produce a listing of raw symbols and C names.
19407
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19409
# Transform the output of nm in a proper C declaration
19410
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19412
# Transform the output of nm in a C name address pair
19413
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19415
# This is the shared library runtime path variable.
19416
runpath_var=$runpath_var
19418
# This is the shared library path variable.
19419
shlibpath_var=$shlibpath_var
19421
# Is shlibpath searched before the hard-coded library search path?
19422
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19424
# How to hardcode a shared library path into an executable.
19425
hardcode_action=$hardcode_action_GCJ
19427
# Whether we should hardcode library paths into libraries.
19428
hardcode_into_libs=$hardcode_into_libs
19430
# Flag to hardcode \$libdir into a binary during linking.
19431
# This must work even if \$libdir does not exist.
19432
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19434
# If ld is used when linking, flag to hardcode \$libdir into
19435
# a binary during linking. This must work even if \$libdir does
19437
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19439
# Whether we need a single -rpath flag with a separated argument.
19440
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19442
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19443
# resulting binary.
19444
hardcode_direct=$hardcode_direct_GCJ
19446
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19447
# resulting binary.
19448
hardcode_minus_L=$hardcode_minus_L_GCJ
19450
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19451
# the resulting binary.
19452
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19454
# Set to yes if building a shared library automatically hardcodes DIR into the library
19455
# and all subsequent libraries and executables linked against it.
19456
hardcode_automatic=$hardcode_automatic_GCJ
19458
# Variables whose values should be saved in libtool wrapper scripts and
19459
# restored at relink time.
19460
variables_saved_for_relink="$variables_saved_for_relink"
19462
# Whether libtool must link a program against all its dependency libraries.
19463
link_all_deplibs=$link_all_deplibs_GCJ
19465
# Compile-time system search path for libraries
19466
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19468
# Run-time system search path for libraries
19469
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19471
# Fix the shell variable \$srcfile for the compiler.
19472
fix_srcfile_path=$lt_fix_srcfile_path
19474
# Set to yes if exported symbols are required.
19475
always_export_symbols=$always_export_symbols_GCJ
19477
# The commands to list exported symbols.
19478
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19480
# The commands to extract the exported symbol list from a shared archive.
19481
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19483
# Symbols that should not be listed in the preloaded symbols.
19484
exclude_expsyms=$lt_exclude_expsyms_GCJ
19486
# Symbols that must always be exported.
19487
include_expsyms=$lt_include_expsyms_GCJ
19489
# ### END LIBTOOL TAG CONFIG: $tagname
19495
# If there is no Makefile yet, we rely on a make rule to execute
19496
# `config.status --recheck' to rerun these tests and create the
19497
# libtool script then.
19498
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19499
if test -f "$ltmain_in"; then
19500
test -f Makefile && make "$ltmain"
19506
ac_cpp='$CPP $CPPFLAGS'
19507
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19508
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19509
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19521
# Source file extension for RC test sources.
19524
# Object file extension for compiled RC test sources.
19528
# Code to be used in simple compile tests
19529
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19531
# Code to be used in simple link tests
19532
lt_simple_link_test_code="$lt_simple_compile_test_code"
19534
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19536
# If no C compiler was specified, use CC.
19539
# If no C compiler flags were specified, use CFLAGS.
19540
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19542
# Allow CC to be a program name with arguments.
19546
# save warnings/boilerplate of simple test code
19547
ac_outfile=conftest.$ac_objext
19548
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19549
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19550
_lt_compiler_boilerplate=`cat conftest.err`
19553
ac_outfile=conftest.$ac_objext
19554
echo "$lt_simple_link_test_code" >conftest.$ac_ext
19555
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19556
_lt_linker_boilerplate=`cat conftest.err`
19560
# Allow CC to be a program name with arguments.
19565
for cc_temp in $compiler""; do
19567
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19568
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19573
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19575
lt_cv_prog_compiler_c_o_RC=yes
19577
# The else clause should only fire when bootstrapping the
19578
# libtool distribution, otherwise you forgot to ship ltmain.sh
19579
# with your package, and you will get complaints that there are
19580
# no rules to generate ltmain.sh.
19581
if test -f "$ltmain"; then
19582
# See if we are running on zsh, and set the options which allow our commands through
19583
# without removal of \ escapes.
19584
if test -n "${ZSH_VERSION+set}" ; then
19585
setopt NO_GLOB_SUBST
19587
# Now quote all the things that may contain metacharacters while being
19588
# careful not to overquote the AC_SUBSTed values. We take copies of the
19589
# variables and quote the copies for generation of the libtool script.
19590
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19592
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19593
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19594
deplibs_check_method reload_flag reload_cmds need_locks \
19595
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19596
lt_cv_sys_global_symbol_to_c_name_address \
19597
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19598
old_postinstall_cmds old_postuninstall_cmds \
19602
lt_prog_compiler_wl_RC \
19603
lt_prog_compiler_pic_RC \
19604
lt_prog_compiler_static_RC \
19605
lt_prog_compiler_no_builtin_flag_RC \
19606
export_dynamic_flag_spec_RC \
19607
thread_safe_flag_spec_RC \
19608
whole_archive_flag_spec_RC \
19609
enable_shared_with_static_runtimes_RC \
19610
old_archive_cmds_RC \
19611
old_archive_from_new_cmds_RC \
19612
predep_objects_RC \
19613
postdep_objects_RC \
19616
compiler_lib_search_path_RC \
19617
compiler_lib_search_dirs_RC \
19619
archive_expsym_cmds_RC \
19620
postinstall_cmds_RC \
19621
postuninstall_cmds_RC \
19622
old_archive_from_expsyms_cmds_RC \
19623
allow_undefined_flag_RC \
19624
no_undefined_flag_RC \
19625
export_symbols_cmds_RC \
19626
hardcode_libdir_flag_spec_RC \
19627
hardcode_libdir_flag_spec_ld_RC \
19628
hardcode_libdir_separator_RC \
19629
hardcode_automatic_RC \
19631
module_expsym_cmds_RC \
19632
lt_cv_prog_compiler_c_o_RC \
19633
fix_srcfile_path_RC \
19634
exclude_expsyms_RC \
19635
include_expsyms_RC; do
19638
old_archive_cmds_RC | \
19639
old_archive_from_new_cmds_RC | \
19640
archive_cmds_RC | \
19641
archive_expsym_cmds_RC | \
19643
module_expsym_cmds_RC | \
19644
old_archive_from_expsyms_cmds_RC | \
19645
export_symbols_cmds_RC | \
19646
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19647
postinstall_cmds | postuninstall_cmds | \
19648
old_postinstall_cmds | old_postuninstall_cmds | \
19649
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19650
# Double-quote double-evaled strings.
19651
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19654
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19660
*'\$0 --fallback-echo"')
19661
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19667
cat <<__EOF__ >> "$cfgfile"
19668
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19670
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19672
# Shell to use when invoking shell scripts.
19675
# Whether or not to build shared libraries.
19676
build_libtool_libs=$enable_shared
19678
# Whether or not to build static libraries.
19679
build_old_libs=$enable_static
19681
# Whether or not to add -lc for building shared libraries.
19682
build_libtool_need_lc=$archive_cmds_need_lc_RC
19684
# Whether or not to disallow shared libs when runtime libs are static
19685
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19687
# Whether or not to optimize for fast installation.
19688
fast_install=$enable_fast_install
19691
host_alias=$host_alias
19695
# The build system.
19696
build_alias=$build_alias
19700
# An echo program that does not interpret backslashes.
19705
AR_FLAGS=$lt_AR_FLAGS
19710
# LTCC compiler flags.
19711
LTCFLAGS=$lt_LTCFLAGS
19713
# A language-specific compiler.
19716
# Is the compiler the GNU C compiler?
19722
# The linker used to build libraries.
19725
# Whether we need hard or soft links.
19728
# A BSD-compatible nm program.
19731
# A symbol stripping program
19734
# Used to examine libraries when file_magic_cmd begins "file"
19735
MAGIC_CMD=$MAGIC_CMD
19737
# Used on cygwin: DLL creation program.
19740
# Used on cygwin: object dumper.
19743
# Used on cygwin: assembler.
19746
# The name of the directory that contains temporary libtool files.
19749
# How to create reloadable object files.
19750
reload_flag=$lt_reload_flag
19751
reload_cmds=$lt_reload_cmds
19753
# How to pass a linker flag through the compiler.
19754
wl=$lt_lt_prog_compiler_wl_RC
19756
# Object file suffix (normally "o").
19757
objext="$ac_objext"
19759
# Old archive suffix (normally "a").
19762
# Shared library suffix (normally ".so").
19763
shrext_cmds='$shrext_cmds'
19765
# Executable file suffix (normally "").
19768
# Additional compiler flags for building library objects.
19769
pic_flag=$lt_lt_prog_compiler_pic_RC
19772
# What is the maximum length of a command?
19773
max_cmd_len=$lt_cv_sys_max_cmd_len
19775
# Does compiler simultaneously support -c and -o options?
19776
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19778
# Must we lock files when doing compilation?
19779
need_locks=$lt_need_locks
19781
# Do we need the lib prefix for modules?
19782
need_lib_prefix=$need_lib_prefix
19784
# Do we need a version for libraries?
19785
need_version=$need_version
19787
# Whether dlopen is supported.
19788
dlopen_support=$enable_dlopen
19790
# Whether dlopen of programs is supported.
19791
dlopen_self=$enable_dlopen_self
19793
# Whether dlopen of statically linked programs is supported.
19794
dlopen_self_static=$enable_dlopen_self_static
19796
# Compiler flag to prevent dynamic linking.
19797
link_static_flag=$lt_lt_prog_compiler_static_RC
19799
# Compiler flag to turn off builtin functions.
19800
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19802
# Compiler flag to allow reflexive dlopens.
19803
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19805
# Compiler flag to generate shared objects directly from archives.
19806
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19808
# Compiler flag to generate thread-safe objects.
19809
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19811
# Library versioning type.
19812
version_type=$version_type
19814
# Format of library name prefix.
19815
libname_spec=$lt_libname_spec
19817
# List of archive names. First name is the real one, the rest are links.
19818
# The last name is the one that the linker finds with -lNAME.
19819
library_names_spec=$lt_library_names_spec
19821
# The coded name of the library, if different from the real name.
19822
soname_spec=$lt_soname_spec
19824
# Commands used to build and install an old-style archive.
19826
old_archive_cmds=$lt_old_archive_cmds_RC
19827
old_postinstall_cmds=$lt_old_postinstall_cmds
19828
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19830
# Create an old-style archive from a shared archive.
19831
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19833
# Create a temporary old-style archive to link instead of a shared archive.
19834
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19836
# Commands used to build and install a shared archive.
19837
archive_cmds=$lt_archive_cmds_RC
19838
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19839
postinstall_cmds=$lt_postinstall_cmds
19840
postuninstall_cmds=$lt_postuninstall_cmds
19842
# Commands used to build a loadable module (assumed same as above if empty)
19843
module_cmds=$lt_module_cmds_RC
19844
module_expsym_cmds=$lt_module_expsym_cmds_RC
19846
# Commands to strip libraries.
19847
old_striplib=$lt_old_striplib
19848
striplib=$lt_striplib
19850
# Dependencies to place before the objects being linked to create a
19852
predep_objects=$lt_predep_objects_RC
19854
# Dependencies to place after the objects being linked to create a
19856
postdep_objects=$lt_postdep_objects_RC
19858
# Dependencies to place before the objects being linked to create a
19860
predeps=$lt_predeps_RC
19862
# Dependencies to place after the objects being linked to create a
19864
postdeps=$lt_postdeps_RC
19866
# The directories searched by this compiler when creating a shared
19868
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19870
# The library search path used internally by the compiler when linking
19871
# a shared library.
19872
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19874
# Method to check whether dependent libraries are shared objects.
19875
deplibs_check_method=$lt_deplibs_check_method
19877
# Command to use when deplibs_check_method == file_magic.
19878
file_magic_cmd=$lt_file_magic_cmd
19880
# Flag that allows shared libraries with undefined symbols to be built.
19881
allow_undefined_flag=$lt_allow_undefined_flag_RC
19883
# Flag that forces no undefined symbols.
19884
no_undefined_flag=$lt_no_undefined_flag_RC
19886
# Commands used to finish a libtool library installation in a directory.
19887
finish_cmds=$lt_finish_cmds
19889
# Same as above, but a single script fragment to be evaled but not shown.
19890
finish_eval=$lt_finish_eval
19892
# Take the output of nm and produce a listing of raw symbols and C names.
19893
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19895
# Transform the output of nm in a proper C declaration
19896
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19898
# Transform the output of nm in a C name address pair
19899
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19901
# This is the shared library runtime path variable.
19902
runpath_var=$runpath_var
19904
# This is the shared library path variable.
19905
shlibpath_var=$shlibpath_var
19907
# Is shlibpath searched before the hard-coded library search path?
19908
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19910
# How to hardcode a shared library path into an executable.
19911
hardcode_action=$hardcode_action_RC
19913
# Whether we should hardcode library paths into libraries.
19914
hardcode_into_libs=$hardcode_into_libs
19916
# Flag to hardcode \$libdir into a binary during linking.
19917
# This must work even if \$libdir does not exist.
19918
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19920
# If ld is used when linking, flag to hardcode \$libdir into
19921
# a binary during linking. This must work even if \$libdir does
19923
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19925
# Whether we need a single -rpath flag with a separated argument.
19926
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19928
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19929
# resulting binary.
19930
hardcode_direct=$hardcode_direct_RC
19932
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19933
# resulting binary.
19934
hardcode_minus_L=$hardcode_minus_L_RC
19936
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19937
# the resulting binary.
19938
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19940
# Set to yes if building a shared library automatically hardcodes DIR into the library
19941
# and all subsequent libraries and executables linked against it.
19942
hardcode_automatic=$hardcode_automatic_RC
19944
# Variables whose values should be saved in libtool wrapper scripts and
19945
# restored at relink time.
19946
variables_saved_for_relink="$variables_saved_for_relink"
19948
# Whether libtool must link a program against all its dependency libraries.
19949
link_all_deplibs=$link_all_deplibs_RC
19951
# Compile-time system search path for libraries
19952
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19954
# Run-time system search path for libraries
19955
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19957
# Fix the shell variable \$srcfile for the compiler.
19958
fix_srcfile_path=$lt_fix_srcfile_path
19960
# Set to yes if exported symbols are required.
19961
always_export_symbols=$always_export_symbols_RC
19963
# The commands to list exported symbols.
19964
export_symbols_cmds=$lt_export_symbols_cmds_RC
19966
# The commands to extract the exported symbol list from a shared archive.
19967
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19969
# Symbols that should not be listed in the preloaded symbols.
19970
exclude_expsyms=$lt_exclude_expsyms_RC
19972
# Symbols that must always be exported.
19973
include_expsyms=$lt_include_expsyms_RC
19975
# ### END LIBTOOL TAG CONFIG: $tagname
19981
# If there is no Makefile yet, we rely on a make rule to execute
19982
# `config.status --recheck' to rerun these tests and create the
19983
# libtool script then.
19984
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19985
if test -f "$ltmain_in"; then
19986
test -f Makefile && make "$ltmain"
19992
ac_cpp='$CPP $CPPFLAGS'
19993
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19994
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19995
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20002
{ { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20003
$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20004
{ (exit 1); exit 1; }; }
20008
# Append the new tag name to the list of available tags.
20009
if test -n "$tagname" ; then
20010
available_tags="$available_tags $tagname"
20016
# Now substitute the updated list of available tags.
20017
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20018
mv "${ofile}T" "$ofile"
20022
{ { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20023
$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20024
{ (exit 1); exit 1; }; }
20030
# This can be used to rebuild libtool when needed
20031
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20033
# Always use our own libtool.
20034
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20036
# Prevent multiple expansion
11044
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11045
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11046
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11047
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11048
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11049
{ $as_echo "$as_me:$LINENO: result: yes" >&5
11050
$as_echo "yes" >&6; }
11052
# FIXME - insert some real tests, host_os isn't really good enough
11055
if test -n "$STRIP" ; then
11056
striplib="$STRIP -x"
11057
old_striplib="$STRIP -S"
11058
{ $as_echo "$as_me:$LINENO: result: yes" >&5
11059
$as_echo "yes" >&6; }
11061
{ $as_echo "$as_me:$LINENO: result: no" >&5
11062
$as_echo "no" >&6; }
11066
{ $as_echo "$as_me:$LINENO: result: no" >&5
11067
$as_echo "no" >&6; }
11083
# Report which library types will actually be built
11084
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11085
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11086
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11087
$as_echo "$can_build_shared" >&6; }
11089
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11090
$as_echo_n "checking whether to build shared libraries... " >&6; }
11091
test "$can_build_shared" = "no" && enable_shared=no
11093
# On AIX, shared libraries and static libraries use the same namespace, and
11094
# are all built from PIC.
11097
test "$enable_shared" = yes && enable_static=no
11098
if test -n "$RANLIB"; then
11099
archive_cmds="$archive_cmds~\$RANLIB \$lib"
11100
postinstall_cmds='$RANLIB $lib'
11105
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11106
test "$enable_shared" = yes && enable_static=no
11110
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11111
$as_echo "$enable_shared" >&6; }
11113
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11114
$as_echo_n "checking whether to build static libraries... " >&6; }
11115
# Make sure either enable_shared or enable_static is yes.
11116
test "$enable_shared" = yes || enable_static=yes
11117
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11118
$as_echo "$enable_static" >&6; }
11125
ac_cpp='$CPP $CPPFLAGS'
11126
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11127
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11128
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11144
ac_config_commands="$ac_config_commands libtool"
11149
# Only expand once: