10571
# Report which library types will actually be built
10572
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10573
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10574
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10575
echo "${ECHO_T}$can_build_shared" >&6; }
10577
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10578
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10579
test "$can_build_shared" = "no" && enable_shared=no
10581
# On AIX, shared libraries and static libraries use the same namespace, and
10582
# are all built from PIC.
10585
test "$enable_shared" = yes && enable_static=no
10586
if test -n "$RANLIB"; then
10587
archive_cmds="$archive_cmds~\$RANLIB \$lib"
10588
postinstall_cmds='$RANLIB $lib'
10593
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10594
test "$enable_shared" = yes && enable_static=no
10598
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10599
echo "${ECHO_T}$enable_shared" >&6; }
10601
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10602
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10603
# Make sure either enable_shared or enable_static is yes.
10604
test "$enable_shared" = yes || enable_static=yes
10605
{ echo "$as_me:$LINENO: result: $enable_static" >&5
10606
echo "${ECHO_T}$enable_static" >&6; }
10608
# The else clause should only fire when bootstrapping the
10609
# libtool distribution, otherwise you forgot to ship ltmain.sh
10610
# with your package, and you will get complaints that there are
10611
# no rules to generate ltmain.sh.
10612
if test -f "$ltmain"; then
10613
# See if we are running on zsh, and set the options which allow our commands through
10614
# without removal of \ escapes.
10615
if test -n "${ZSH_VERSION+set}" ; then
10616
setopt NO_GLOB_SUBST
10618
# Now quote all the things that may contain metacharacters while being
10619
# careful not to overquote the AC_SUBSTed values. We take copies of the
10620
# variables and quote the copies for generation of the libtool script.
10621
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10623
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10624
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10625
deplibs_check_method reload_flag reload_cmds need_locks \
10626
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10627
lt_cv_sys_global_symbol_to_c_name_address \
10628
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10629
old_postinstall_cmds old_postuninstall_cmds \
10633
lt_prog_compiler_wl \
10634
lt_prog_compiler_pic \
10635
lt_prog_compiler_static \
10636
lt_prog_compiler_no_builtin_flag \
10637
export_dynamic_flag_spec \
10638
thread_safe_flag_spec \
10639
whole_archive_flag_spec \
10640
enable_shared_with_static_runtimes \
10642
old_archive_from_new_cmds \
10647
compiler_lib_search_path \
10648
compiler_lib_search_dirs \
10650
archive_expsym_cmds \
10652
postuninstall_cmds \
10653
old_archive_from_expsyms_cmds \
10654
allow_undefined_flag \
10655
no_undefined_flag \
10656
export_symbols_cmds \
10657
hardcode_libdir_flag_spec \
10658
hardcode_libdir_flag_spec_ld \
10659
hardcode_libdir_separator \
10660
hardcode_automatic \
10662
module_expsym_cmds \
10663
lt_cv_prog_compiler_c_o \
10666
include_expsyms; do
10669
old_archive_cmds | \
10670
old_archive_from_new_cmds | \
10672
archive_expsym_cmds | \
10674
module_expsym_cmds | \
10675
old_archive_from_expsyms_cmds | \
10676
export_symbols_cmds | \
10677
extract_expsyms_cmds | reload_cmds | finish_cmds | \
10678
postinstall_cmds | postuninstall_cmds | \
10679
old_postinstall_cmds | old_postuninstall_cmds | \
10680
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10681
# Double-quote double-evaled strings.
10682
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10685
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10691
*'\$0 --fallback-echo"')
10692
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10696
cfgfile="${ofile}T"
10697
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10699
{ echo "$as_me:$LINENO: creating $ofile" >&5
10700
echo "$as_me: creating $ofile" >&6;}
10702
cat <<__EOF__ >> "$cfgfile"
10705
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10706
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10707
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10709
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10710
# Free Software Foundation, Inc.
10712
# This file is part of GNU Libtool:
10713
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10715
# This program is free software; you can redistribute it and/or modify
10716
# it under the terms of the GNU General Public License as published by
10717
# the Free Software Foundation; either version 2 of the License, or
10718
# (at your option) any later version.
10720
# This program is distributed in the hope that it will be useful, but
10721
# WITHOUT ANY WARRANTY; without even the implied warranty of
10722
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10723
# General Public License for more details.
10725
# You should have received a copy of the GNU General Public License
10726
# along with this program; if not, write to the Free Software
10727
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10729
# As a special exception to the GNU General Public License, if you
10730
# distribute this file as part of a program that contains a
10731
# configuration script generated by Autoconf, you may include it under
10732
# the same distribution terms that you use for the rest of that program.
10734
# A sed program that does not truncate output.
10737
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10738
Xsed="$SED -e 1s/^X//"
10740
# The HP-UX ksh and POSIX shell print the target directory to stdout
10741
# if CDPATH is set.
10742
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10744
# The names of the tagged configurations supported by this script.
10747
# ### BEGIN LIBTOOL CONFIG
10749
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10751
# Shell to use when invoking shell scripts.
10754
# Whether or not to build shared libraries.
10755
build_libtool_libs=$enable_shared
10757
# Whether or not to build static libraries.
10758
build_old_libs=$enable_static
10760
# Whether or not to add -lc for building shared libraries.
10761
build_libtool_need_lc=$archive_cmds_need_lc
10763
# Whether or not to disallow shared libs when runtime libs are static
10764
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10766
# Whether or not to optimize for fast installation.
10767
fast_install=$enable_fast_install
10770
host_alias=$host_alias
10774
# The build system.
10775
build_alias=$build_alias
10779
# An echo program that does not interpret backslashes.
10784
AR_FLAGS=$lt_AR_FLAGS
10789
# LTCC compiler flags.
10790
LTCFLAGS=$lt_LTCFLAGS
10792
# A language-specific compiler.
10795
# Is the compiler the GNU C compiler?
10801
# The linker used to build libraries.
10804
# Whether we need hard or soft links.
10807
# A BSD-compatible nm program.
10810
# A symbol stripping program
10813
# Used to examine libraries when file_magic_cmd begins "file"
10814
MAGIC_CMD=$MAGIC_CMD
10816
# Used on cygwin: DLL creation program.
10819
# Used on cygwin: object dumper.
10822
# Used on cygwin: assembler.
10825
# The name of the directory that contains temporary libtool files.
10828
# How to create reloadable object files.
10829
reload_flag=$lt_reload_flag
10830
reload_cmds=$lt_reload_cmds
10832
# How to pass a linker flag through the compiler.
10833
wl=$lt_lt_prog_compiler_wl
10835
# Object file suffix (normally "o").
10836
objext="$ac_objext"
10838
# Old archive suffix (normally "a").
10841
# Shared library suffix (normally ".so").
10842
shrext_cmds='$shrext_cmds'
10844
# Executable file suffix (normally "").
10847
# Additional compiler flags for building library objects.
10848
pic_flag=$lt_lt_prog_compiler_pic
10851
# What is the maximum length of a command?
10852
max_cmd_len=$lt_cv_sys_max_cmd_len
10854
# Does compiler simultaneously support -c and -o options?
10855
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10857
# Must we lock files when doing compilation?
10858
need_locks=$lt_need_locks
10860
# Do we need the lib prefix for modules?
10861
need_lib_prefix=$need_lib_prefix
10863
# Do we need a version for libraries?
10864
need_version=$need_version
10866
# Whether dlopen is supported.
10867
dlopen_support=$enable_dlopen
10869
# Whether dlopen of programs is supported.
10870
dlopen_self=$enable_dlopen_self
10872
# Whether dlopen of statically linked programs is supported.
10873
dlopen_self_static=$enable_dlopen_self_static
10875
# Compiler flag to prevent dynamic linking.
10876
link_static_flag=$lt_lt_prog_compiler_static
10878
# Compiler flag to turn off builtin functions.
10879
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10881
# Compiler flag to allow reflexive dlopens.
10882
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10884
# Compiler flag to generate shared objects directly from archives.
10885
whole_archive_flag_spec=$lt_whole_archive_flag_spec
10887
# Compiler flag to generate thread-safe objects.
10888
thread_safe_flag_spec=$lt_thread_safe_flag_spec
10890
# Library versioning type.
10891
version_type=$version_type
10893
# Format of library name prefix.
10894
libname_spec=$lt_libname_spec
10896
# List of archive names. First name is the real one, the rest are links.
10897
# The last name is the one that the linker finds with -lNAME.
10898
library_names_spec=$lt_library_names_spec
10900
# The coded name of the library, if different from the real name.
10901
soname_spec=$lt_soname_spec
10903
# Commands used to build and install an old-style archive.
10905
old_archive_cmds=$lt_old_archive_cmds
10906
old_postinstall_cmds=$lt_old_postinstall_cmds
10907
old_postuninstall_cmds=$lt_old_postuninstall_cmds
10909
# Create an old-style archive from a shared archive.
10910
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10912
# Create a temporary old-style archive to link instead of a shared archive.
10913
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10915
# Commands used to build and install a shared archive.
10916
archive_cmds=$lt_archive_cmds
10917
archive_expsym_cmds=$lt_archive_expsym_cmds
10918
postinstall_cmds=$lt_postinstall_cmds
10919
postuninstall_cmds=$lt_postuninstall_cmds
10921
# Commands used to build a loadable module (assumed same as above if empty)
10922
module_cmds=$lt_module_cmds
10923
module_expsym_cmds=$lt_module_expsym_cmds
10925
# Commands to strip libraries.
10926
old_striplib=$lt_old_striplib
10927
striplib=$lt_striplib
10929
# Dependencies to place before the objects being linked to create a
10931
predep_objects=$lt_predep_objects
10933
# Dependencies to place after the objects being linked to create a
10935
postdep_objects=$lt_postdep_objects
10937
# Dependencies to place before the objects being linked to create a
10939
predeps=$lt_predeps
10941
# Dependencies to place after the objects being linked to create a
10943
postdeps=$lt_postdeps
10945
# The directories searched by this compiler when creating a shared
10947
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10949
# The library search path used internally by the compiler when linking
10950
# a shared library.
10951
compiler_lib_search_path=$lt_compiler_lib_search_path
10953
# Method to check whether dependent libraries are shared objects.
10954
deplibs_check_method=$lt_deplibs_check_method
10956
# Command to use when deplibs_check_method == file_magic.
10957
file_magic_cmd=$lt_file_magic_cmd
10959
# Flag that allows shared libraries with undefined symbols to be built.
10960
allow_undefined_flag=$lt_allow_undefined_flag
10962
# Flag that forces no undefined symbols.
10963
no_undefined_flag=$lt_no_undefined_flag
10965
# Commands used to finish a libtool library installation in a directory.
10966
finish_cmds=$lt_finish_cmds
10968
# Same as above, but a single script fragment to be evaled but not shown.
10969
finish_eval=$lt_finish_eval
10971
# Take the output of nm and produce a listing of raw symbols and C names.
10972
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10974
# Transform the output of nm in a proper C declaration
10975
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10977
# Transform the output of nm in a C name address pair
10978
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10980
# This is the shared library runtime path variable.
10981
runpath_var=$runpath_var
10983
# This is the shared library path variable.
10984
shlibpath_var=$shlibpath_var
10986
# Is shlibpath searched before the hard-coded library search path?
10987
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10989
# How to hardcode a shared library path into an executable.
10990
hardcode_action=$hardcode_action
10992
# Whether we should hardcode library paths into libraries.
10993
hardcode_into_libs=$hardcode_into_libs
10995
# Flag to hardcode \$libdir into a binary during linking.
10996
# This must work even if \$libdir does not exist.
10997
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10999
# If ld is used when linking, flag to hardcode \$libdir into
11000
# a binary during linking. This must work even if \$libdir does
11002
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11004
# Whether we need a single -rpath flag with a separated argument.
11005
hardcode_libdir_separator=$lt_hardcode_libdir_separator
11007
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11008
# resulting binary.
11009
hardcode_direct=$hardcode_direct
11011
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11012
# resulting binary.
11013
hardcode_minus_L=$hardcode_minus_L
11015
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11016
# the resulting binary.
11017
hardcode_shlibpath_var=$hardcode_shlibpath_var
11019
# Set to yes if building a shared library automatically hardcodes DIR into the library
11020
# and all subsequent libraries and executables linked against it.
11021
hardcode_automatic=$hardcode_automatic
11023
# Variables whose values should be saved in libtool wrapper scripts and
11024
# restored at relink time.
11025
variables_saved_for_relink="$variables_saved_for_relink"
11027
# Whether libtool must link a program against all its dependency libraries.
11028
link_all_deplibs=$link_all_deplibs
11030
# Compile-time system search path for libraries
11031
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11033
# Run-time system search path for libraries
11034
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11036
# Fix the shell variable \$srcfile for the compiler.
11037
fix_srcfile_path=$lt_fix_srcfile_path
11039
# Set to yes if exported symbols are required.
11040
always_export_symbols=$always_export_symbols
11042
# The commands to list exported symbols.
11043
export_symbols_cmds=$lt_export_symbols_cmds
11045
# The commands to extract the exported symbol list from a shared archive.
11046
extract_expsyms_cmds=$lt_extract_expsyms_cmds
11048
# Symbols that should not be listed in the preloaded symbols.
11049
exclude_expsyms=$lt_exclude_expsyms
11051
# Symbols that must always be exported.
11052
include_expsyms=$lt_include_expsyms
11054
# ### END LIBTOOL CONFIG
11061
cat <<\EOF >> "$cfgfile"
11063
# AIX sometimes has problems with the GCC collect2 program. For some
11064
# reason, if we set the COLLECT_NAMES environment variable, the problems
11065
# vanish in a puff of smoke.
11066
if test "X${COLLECT_NAMES+set}" != Xset; then
11068
export COLLECT_NAMES
11074
# We use sed instead of cat because bash on DJGPP gets confused if
11075
# if finds mixed CR/LF and LF-only lines. Since sed operates in
11076
# text mode, it properly converts lines to CR/LF. This bash problem
11077
# is reportedly fixed, but why not run on old versions too?
11078
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11080
mv -f "$cfgfile" "$ofile" || \
11081
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11085
# If there is no Makefile yet, we rely on a make rule to execute
11086
# `config.status --recheck' to rerun these tests and create the
11087
# libtool script then.
11088
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11089
if test -f "$ltmain_in"; then
11090
test -f Makefile && make "$ltmain"
11096
ac_cpp='$CPP $CPPFLAGS'
11097
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11098
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11099
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11104
# Check whether --with-tags was given.
11105
if test "${with_tags+set}" = set; then
11106
withval=$with_tags; tagnames="$withval"
11110
if test -f "$ltmain" && test -n "$tagnames"; then
11111
if test ! -f "${ofile}"; then
11112
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11113
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11116
if test -z "$LTCC"; then
11117
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11118
if test -z "$LTCC"; then
11119
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11120
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11122
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11123
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11126
if test -z "$LTCFLAGS"; then
11127
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11130
# Extract list of available tagged configurations in $ofile.
11131
# Note that this assumes the entire list is on one line.
11132
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11134
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11135
for tagname in $tagnames; do
11137
# Check whether tagname contains only valid characters
11138
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11140
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11141
echo "$as_me: error: invalid tag name: $tagname" >&2;}
11142
{ (exit 1); exit 1; }; }
11146
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11148
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11149
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11150
{ (exit 1); exit 1; }; }
11153
# Update the list of available tags.
11154
if test -n "$tagname"; then
11155
echo appending configuration tag \"$tagname\" to $ofile
11159
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11160
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11161
(test "X$CXX" != "Xg++"))) ; then
11163
ac_cpp='$CXXCPP $CPPFLAGS'
11164
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11165
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11166
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11171
archive_cmds_need_lc_CXX=no
11172
allow_undefined_flag_CXX=
11173
always_export_symbols_CXX=no
11174
archive_expsym_cmds_CXX=
11175
export_dynamic_flag_spec_CXX=
11176
hardcode_direct_CXX=no
11177
hardcode_libdir_flag_spec_CXX=
11178
hardcode_libdir_flag_spec_ld_CXX=
11179
hardcode_libdir_separator_CXX=
11180
hardcode_minus_L_CXX=no
11181
hardcode_shlibpath_var_CXX=unsupported
11182
hardcode_automatic_CXX=no
11184
module_expsym_cmds_CXX=
11185
link_all_deplibs_CXX=unknown
11186
old_archive_cmds_CXX=$old_archive_cmds
11187
no_undefined_flag_CXX=
11188
whole_archive_flag_spec_CXX=
11189
enable_shared_with_static_runtimes_CXX=no
11191
# Dependencies to place before and after the object being linked:
11192
predep_objects_CXX=
11193
postdep_objects_CXX=
11196
compiler_lib_search_path_CXX=
11197
compiler_lib_search_dirs_CXX=
11199
# Source file extension for C++ test sources.
11202
# Object file extension for compiled C++ test sources.
11206
# Code to be used in simple compile tests
11207
lt_simple_compile_test_code="int some_variable = 0;"
11209
# Code to be used in simple link tests
11210
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11212
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11214
# If no C compiler was specified, use CC.
11217
# If no C compiler flags were specified, use CFLAGS.
11218
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11220
# Allow CC to be a program name with arguments.
11224
# save warnings/boilerplate of simple test code
11225
ac_outfile=conftest.$ac_objext
11226
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11227
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11228
_lt_compiler_boilerplate=`cat conftest.err`
11231
ac_outfile=conftest.$ac_objext
11232
echo "$lt_simple_link_test_code" >conftest.$ac_ext
11233
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11234
_lt_linker_boilerplate=`cat conftest.err`
11238
# Allow CC to be a program name with arguments.
11243
lt_save_with_gnu_ld=$with_gnu_ld
11244
lt_save_path_LD=$lt_cv_path_LD
11245
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11246
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11248
$as_unset lt_cv_prog_gnu_ld
11250
if test -n "${lt_cv_path_LDCXX+set}"; then
11251
lt_cv_path_LD=$lt_cv_path_LDCXX
11253
$as_unset lt_cv_path_LD
11255
test -z "${LDCXX+set}" || LD=$LDCXX
11259
for cc_temp in $compiler""; do
11261
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11262
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11267
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11270
# We don't want -fno-exception wen compiling C++ code, so set the
11271
# no_builtin_flag separately
11272
if test "$GXX" = yes; then
11273
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11275
lt_prog_compiler_no_builtin_flag_CXX=
11278
if test "$GXX" = yes; then
11279
# Set up default GNU C++ configuration
11282
# Check whether --with-gnu-ld was given.
11283
if test "${with_gnu_ld+set}" = set; then
11284
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11290
if test "$GCC" = yes; then
11291
# Check if gcc -print-prog-name=ld gives a path.
11292
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11293
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11296
# gcc leaves a trailing carriage return which upsets mingw
11297
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11299
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11302
# Accept absolute paths.
11304
re_direlt='/[^/][^/]*/\.\./'
11305
# Canonicalize the pathname of ld
11306
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11307
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11308
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11310
test -z "$LD" && LD="$ac_prog"
11313
# If it fails, then pretend we aren't using GCC.
11317
# If it is relative, then search for the first ld in PATH.
11318
with_gnu_ld=unknown
11321
elif test "$with_gnu_ld" = yes; then
11322
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
11323
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11325
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11326
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11328
if test "${lt_cv_path_LD+set}" = set; then
11329
echo $ECHO_N "(cached) $ECHO_C" >&6
11331
if test -z "$LD"; then
11332
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11333
for ac_dir in $PATH; do
11335
test -z "$ac_dir" && ac_dir=.
11336
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11337
lt_cv_path_LD="$ac_dir/$ac_prog"
11338
# Check to see if the program is GNU ld. I'd rather use --version,
11339
# but apparently some variants of GNU ld only accept -v.
11340
# Break only if it was the GNU/non-GNU ld that we prefer.
11341
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11342
*GNU* | *'with BFD'*)
11343
test "$with_gnu_ld" != no && break
11346
test "$with_gnu_ld" != yes && break
11353
lt_cv_path_LD="$LD" # Let the user override the test with a path.
11357
LD="$lt_cv_path_LD"
11358
if test -n "$LD"; then
11359
{ echo "$as_me:$LINENO: result: $LD" >&5
11360
echo "${ECHO_T}$LD" >&6; }
11362
{ echo "$as_me:$LINENO: result: no" >&5
11363
echo "${ECHO_T}no" >&6; }
11365
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11366
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11367
{ (exit 1); exit 1; }; }
11368
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11369
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11370
if test "${lt_cv_prog_gnu_ld+set}" = set; then
11371
echo $ECHO_N "(cached) $ECHO_C" >&6
11373
# I'd rather use --version here, but apparently some GNU lds only accept -v.
11374
case `$LD -v 2>&1 </dev/null` in
11375
*GNU* | *'with BFD'*)
11376
lt_cv_prog_gnu_ld=yes
11379
lt_cv_prog_gnu_ld=no
11383
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11384
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11385
with_gnu_ld=$lt_cv_prog_gnu_ld
11389
# Check if GNU C++ uses GNU ld as the underlying linker, since the
11390
# archiving commands below assume that GNU ld is being used.
11391
if test "$with_gnu_ld" = yes; then
11392
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11393
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'
11395
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11396
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11398
# If archive_cmds runs LD, not CC, wlarc should be empty
11399
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11400
# investigate it a little bit more. (MM)
11403
# ancient GNU ld didn't support --whole-archive et. al.
11404
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11405
grep 'no-whole-archive' > /dev/null; then
11406
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11408
whole_archive_flag_spec_CXX=
11414
# A generic and very simple default shared library creation
11415
# command for GNU C++ for the case where it uses the native
11416
# linker, instead of GNU ld. If possible, this setting should
11417
# overridden to take advantage of the native linker features on
11418
# the platform it is being used on.
11419
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11422
# Commands to make compiler produce verbose output that lists
11423
# what "hidden" libraries, object files and flags are used when
11424
# linking a shared library.
11425
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11433
# PORTME: fill in a description of your system's C++ link characteristics
11434
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11435
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11439
# FIXME: insert proper C++ library support
11443
if test "$host_cpu" = ia64; then
11444
# On IA64, the linker does run time linking by default, so we don't
11445
# have to do anything special.
11446
aix_use_runtimelinking=no
11447
exp_sym_flag='-Bexport'
11450
aix_use_runtimelinking=no
11452
# Test if we are trying to use run time linking or normal
11453
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11454
# need to do runtime linking.
11455
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11456
for ld_flag in $LDFLAGS; do
11459
aix_use_runtimelinking=yes
11467
exp_sym_flag='-bexport'
11468
no_entry_flag='-bnoentry'
11471
# When large executables or shared objects are built, AIX ld can
11472
# have problems creating the table of contents. If linking a library
11473
# or program results in "error TOC overflow" add -mminimal-toc to
11474
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11475
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11477
archive_cmds_CXX=''
11478
hardcode_direct_CXX=yes
11479
hardcode_libdir_separator_CXX=':'
11480
link_all_deplibs_CXX=yes
11482
if test "$GXX" = yes; then
11483
case $host_os in aix4.[012]|aix4.[012].*)
11484
# We only want to do this on AIX 4.2 and lower, the check
11485
# below for broken collect2 doesn't work under 4.3+
11486
collect2name=`${CC} -print-prog-name=collect2`
11487
if test -f "$collect2name" && \
11488
strings "$collect2name" | grep resolve_lib_name >/dev/null
11490
# We have reworked collect2
11493
# We have old collect2
11494
hardcode_direct_CXX=unsupported
11495
# It fails to find uninstalled libraries when the uninstalled
11496
# path is not listed in the libpath. Setting hardcode_minus_L
11497
# to unsupported forces relinking
11498
hardcode_minus_L_CXX=yes
11499
hardcode_libdir_flag_spec_CXX='-L$libdir'
11500
hardcode_libdir_separator_CXX=
11504
shared_flag='-shared'
11505
if test "$aix_use_runtimelinking" = yes; then
11506
shared_flag="$shared_flag "'${wl}-G'
11510
if test "$host_cpu" = ia64; then
11511
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11512
# chokes on -Wl,-G. The following line is correct:
11515
if test "$aix_use_runtimelinking" = yes; then
11516
shared_flag='${wl}-G'
11518
shared_flag='${wl}-bM:SRE'
11523
# It seems that -bexpall does not export symbols beginning with
11524
# underscore (_), so it is better to generate a list of symbols to export.
11525
always_export_symbols_CXX=yes
11526
if test "$aix_use_runtimelinking" = yes; then
11527
# Warning - without using the other runtime loading flags (-brtl),
11528
# -berok will link without error, but may produce a broken library.
11529
allow_undefined_flag_CXX='-berok'
11530
# Determine the default libpath from the value encoded in an empty executable.
11531
cat >conftest.$ac_ext <<_ACEOF
11534
cat confdefs.h >>conftest.$ac_ext
11535
cat >>conftest.$ac_ext <<_ACEOF
11536
/* end confdefs.h. */
11546
rm -f conftest.$ac_objext conftest$ac_exeext
11547
if { (ac_try="$ac_link"
11548
case "(($ac_try" in
11549
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11550
*) ac_try_echo=$ac_try;;
11552
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11553
(eval "$ac_link") 2>conftest.er1
11555
grep -v '^ *+' conftest.er1 >conftest.err
11557
cat conftest.err >&5
11558
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559
(exit $ac_status); } && {
11560
test -z "$ac_cxx_werror_flag" ||
11561
test ! -s conftest.err
11562
} && test -s conftest$ac_exeext &&
11563
$as_test_x conftest$ac_exeext; then
11565
lt_aix_libpath_sed='
11566
/Import File Strings/,/^$/ {
11572
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11573
# Check for a 64-bit object if we didn't find anything.
11574
if test -z "$aix_libpath"; then
11575
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11578
echo "$as_me: failed program was:" >&5
11579
sed 's/^/| /' conftest.$ac_ext >&5
11584
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11585
conftest$ac_exeext conftest.$ac_ext
11586
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11588
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11590
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"
11592
if test "$host_cpu" = ia64; then
11593
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11594
allow_undefined_flag_CXX="-z nodefs"
11595
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"
11597
# Determine the default libpath from the value encoded in an empty executable.
11598
cat >conftest.$ac_ext <<_ACEOF
11601
cat confdefs.h >>conftest.$ac_ext
11602
cat >>conftest.$ac_ext <<_ACEOF
11603
/* end confdefs.h. */
11613
rm -f conftest.$ac_objext conftest$ac_exeext
11614
if { (ac_try="$ac_link"
11615
case "(($ac_try" in
11616
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11617
*) ac_try_echo=$ac_try;;
11619
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11620
(eval "$ac_link") 2>conftest.er1
11622
grep -v '^ *+' conftest.er1 >conftest.err
11624
cat conftest.err >&5
11625
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626
(exit $ac_status); } && {
11627
test -z "$ac_cxx_werror_flag" ||
11628
test ! -s conftest.err
11629
} && test -s conftest$ac_exeext &&
11630
$as_test_x conftest$ac_exeext; then
11632
lt_aix_libpath_sed='
11633
/Import File Strings/,/^$/ {
11639
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11640
# Check for a 64-bit object if we didn't find anything.
11641
if test -z "$aix_libpath"; then
11642
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11645
echo "$as_me: failed program was:" >&5
11646
sed 's/^/| /' conftest.$ac_ext >&5
11651
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11652
conftest$ac_exeext conftest.$ac_ext
11653
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11655
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11656
# Warning - without using the other run time loading flags,
11657
# -berok will link without error, but may produce a broken library.
11658
no_undefined_flag_CXX=' ${wl}-bernotok'
11659
allow_undefined_flag_CXX=' ${wl}-berok'
11660
# Exported symbols can be pulled into shared objects from archives
11661
whole_archive_flag_spec_CXX='$convenience'
11662
archive_cmds_need_lc_CXX=yes
11663
# This is similar to how AIX traditionally builds its shared libraries.
11664
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'
11670
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11671
allow_undefined_flag_CXX=unsupported
11672
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11673
# support --undefined. This deserves some investigation. FIXME
11674
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11681
case $cc_basename in
11683
# FIXME: insert proper C++ library support
11689
cygwin* | mingw* | pw32*)
11690
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11691
# as there is no search path for DLLs.
11692
hardcode_libdir_flag_spec_CXX='-L$libdir'
11693
allow_undefined_flag_CXX=unsupported
11694
always_export_symbols_CXX=no
11695
enable_shared_with_static_runtimes_CXX=yes
11697
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11698
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'
11699
# If the export-symbols file already is a .def file (1st line
11700
# is EXPORTS), use it as is; otherwise, prepend...
11701
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11702
cp $export_symbols $output_objdir/$soname.def;
11704
echo EXPORTS > $output_objdir/$soname.def;
11705
cat $export_symbols >> $output_objdir/$soname.def;
11707
$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'
11712
darwin* | rhapsody*)
11713
archive_cmds_need_lc_CXX=no
11714
hardcode_direct_CXX=no
11715
hardcode_automatic_CXX=yes
11716
hardcode_shlibpath_var_CXX=unsupported
11717
whole_archive_flag_spec_CXX=''
11718
link_all_deplibs_CXX=yes
11719
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11720
if test "$GXX" = yes ; then
11721
output_verbose_link_cmd='echo'
11722
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}"
11723
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11724
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}"
11725
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}"
11726
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11727
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}"
11728
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}"
11731
case $cc_basename in
11733
output_verbose_link_cmd='echo'
11734
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'
11735
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11736
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11737
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}'
11738
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}'
11748
case $cc_basename in
11750
# FIXME: insert proper C++ library support
11754
# Green Hills C++ Compiler
11755
# FIXME: insert proper C++ library support
11759
# FIXME: insert proper C++ library support
11765
# C++ shared libraries reported to be fairly broken before switch to ELF
11769
archive_cmds_need_lc_CXX=no
11771
freebsd* | dragonfly*)
11772
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11779
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11780
hardcode_libdir_separator_CXX=:
11781
export_dynamic_flag_spec_CXX='${wl}-E'
11782
hardcode_direct_CXX=yes
11783
hardcode_minus_L_CXX=yes # Not in the search PATH,
11784
# but as the default
11785
# location of the library.
11787
case $cc_basename in
11789
# FIXME: insert proper C++ library support
11793
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'
11794
# Commands to make compiler produce verbose output that lists
11795
# what "hidden" libraries, object files and flags are used when
11796
# linking a shared library.
11798
# There doesn't appear to be a way to prevent this compiler from
11799
# explicitly linking system object files so we need to strip them
11800
# from the output so that they don't get included in the library
11802
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'
11805
if test "$GXX" = yes; then
11806
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'
11808
# FIXME: insert proper C++ library support
11815
if test $with_gnu_ld = no; then
11816
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11817
hardcode_libdir_separator_CXX=:
11822
export_dynamic_flag_spec_CXX='${wl}-E'
11828
hardcode_direct_CXX=no
11829
hardcode_shlibpath_var_CXX=no
11832
hardcode_direct_CXX=yes
11833
hardcode_minus_L_CXX=yes # Not in the search PATH,
11834
# but as the default
11835
# location of the library.
11839
case $cc_basename in
11841
# FIXME: insert proper C++ library support
11847
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11850
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11853
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11856
# Commands to make compiler produce verbose output that lists
11857
# what "hidden" libraries, object files and flags are used when
11858
# linking a shared library.
11860
# There doesn't appear to be a way to prevent this compiler from
11861
# explicitly linking system object files so we need to strip them
11862
# from the output so that they don't get included in the library
11864
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'
11867
if test "$GXX" = yes; then
11868
if test $with_gnu_ld = no; then
11871
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11874
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11877
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'
11882
# FIXME: insert proper C++ library support
11889
hardcode_direct_CXX=no
11890
hardcode_shlibpath_var_CXX=no
11891
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11892
export_dynamic_flag_spec_CXX='${wl}-E'
11893
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11894
# Instead, shared libraries are loaded at an image base (0x10000000 by
11895
# default) and relocated if they conflict, which is a slow very memory
11896
# consuming and fragmenting process. To avoid this, we pick a random,
11897
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11898
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
11899
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'
11900
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'
11903
case $cc_basename in
11906
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'
11908
# Archives containing C++ object files must be created using
11909
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
11910
# necessary to make sure instantiated templates are included
11912
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11915
if test "$GXX" = yes; then
11916
if test "$with_gnu_ld" = no; then
11917
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'
11919
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'
11922
link_all_deplibs_CXX=yes
11925
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11926
hardcode_libdir_separator_CXX=:
11928
linux* | k*bsd*-gnu)
11929
case $cc_basename in
11931
# Kuck and Associates, Inc. (KAI) C++ Compiler
11933
# KCC will only create a shared library if the output file
11934
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11935
# to its proper name (with version) after linking.
11936
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'
11937
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'
11938
# Commands to make compiler produce verbose output that lists
11939
# what "hidden" libraries, object files and flags are used when
11940
# linking a shared library.
11942
# There doesn't appear to be a way to prevent this compiler from
11943
# explicitly linking system object files so we need to strip them
11944
# from the output so that they don't get included in the library
11946
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'
11948
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11949
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11951
# Archives containing C++ object files must be created using
11952
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11953
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11958
# version 8.0 and above of icpc choke on multiply defined symbols
11959
# if we add $predep_objects and $postdep_objects, however 7.1 and
11960
# earlier do not add the objects themselves.
11961
case `$CC -V 2>&1` in
11963
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11964
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'
11966
*) # Version 8.0 or newer
11969
ia64*) tmp_idyn=' -i_dynamic';;
11971
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11972
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'
11975
archive_cmds_need_lc_CXX=no
11976
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11977
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11978
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11981
# Portland Group C++ compiler
11982
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11983
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'
11985
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11986
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11987
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'
11991
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11992
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'
11994
runpath_var=LD_RUN_PATH
11995
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11996
hardcode_libdir_separator_CXX=:
11998
# Commands to make compiler produce verbose output that lists
11999
# what "hidden" libraries, object files and flags are used when
12000
# linking a shared library.
12002
# There doesn't appear to be a way to prevent this compiler from
12003
# explicitly linking system object files so we need to strip them
12004
# from the output so that they don't get included in the library
12006
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'
12009
case `$CC -V 2>&1 | sed 5q` in
12012
no_undefined_flag_CXX=' -zdefs'
12013
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12014
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'
12015
hardcode_libdir_flag_spec_CXX='-R$libdir'
12016
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'
12018
# Not sure whether something based on
12019
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12021
output_verbose_link_cmd='echo'
12023
# Archives containing C++ object files must be created using
12024
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12025
# necessary to make sure instantiated templates are included
12027
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12034
# FIXME: insert proper C++ library support
12038
# FIXME: insert proper C++ library support
12042
case $cc_basename in
12044
# FIXME: insert proper C++ library support
12048
# FIXME: insert proper C++ library support
12054
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12055
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12057
hardcode_libdir_flag_spec_CXX='-R$libdir'
12058
hardcode_direct_CXX=yes
12059
hardcode_shlibpath_var_CXX=no
12061
# Workaround some broken pre-1.5 toolchains
12062
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12065
# C++ shared libraries are fairly broken
12069
if test -f /usr/libexec/ld.so; then
12070
hardcode_direct_CXX=yes
12071
hardcode_shlibpath_var_CXX=no
12072
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12073
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12074
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12075
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12076
export_dynamic_flag_spec_CXX='${wl}-E'
12077
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12079
output_verbose_link_cmd='echo'
12085
case $cc_basename in
12087
# Kuck and Associates, Inc. (KAI) C++ Compiler
12089
# KCC will only create a shared library if the output file
12090
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12091
# to its proper name (with version) after linking.
12092
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'
12094
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12095
hardcode_libdir_separator_CXX=:
12097
# Archives containing C++ object files must be created using
12098
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12099
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12103
# Rational C++ 2.4.1
12104
# FIXME: insert proper C++ library support
12108
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12109
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'
12111
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12112
hardcode_libdir_separator_CXX=:
12114
# Commands to make compiler produce verbose output that lists
12115
# what "hidden" libraries, object files and flags are used when
12116
# linking a shared library.
12118
# There doesn't appear to be a way to prevent this compiler from
12119
# explicitly linking system object files so we need to strip them
12120
# from the output so that they don't get included in the library
12122
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'
12125
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12126
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12127
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'
12129
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12130
hardcode_libdir_separator_CXX=:
12132
# Commands to make compiler produce verbose output that lists
12133
# what "hidden" libraries, object files and flags are used when
12134
# linking a shared library.
12135
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12138
# FIXME: insert proper C++ library support
12145
case $cc_basename in
12147
# Kuck and Associates, Inc. (KAI) C++ Compiler
12149
# KCC will only create a shared library if the output file
12150
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12151
# to its proper name (with version) after linking.
12152
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'
12154
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12155
hardcode_libdir_separator_CXX=:
12157
# Archives containing C++ object files must be created using
12158
# the KAI C++ compiler.
12159
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12162
# Rational C++ 2.4.1
12163
# FIXME: insert proper C++ library support
12167
allow_undefined_flag_CXX=' -expect_unresolved \*'
12168
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'
12169
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12170
echo "-hidden">> $lib.exp~
12171
$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~
12174
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12175
hardcode_libdir_separator_CXX=:
12177
# Commands to make compiler produce verbose output that lists
12178
# what "hidden" libraries, object files and flags are used when
12179
# linking a shared library.
12181
# There doesn't appear to be a way to prevent this compiler from
12182
# explicitly linking system object files so we need to strip them
12183
# from the output so that they don't get included in the library
12185
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'
12188
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12189
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12190
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'
12192
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12193
hardcode_libdir_separator_CXX=:
12195
# Commands to make compiler produce verbose output that lists
12196
# what "hidden" libraries, object files and flags are used when
12197
# linking a shared library.
12198
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12201
# FIXME: insert proper C++ library support
12208
# FIXME: insert proper C++ library support
12212
case $cc_basename in
12215
# FIXME: insert proper C++ library support
12220
# FIXME: insert proper C++ library support
12224
# FIXME: insert proper C++ library support
12230
case $cc_basename in
12232
# Sun C++ 4.2, 5.x and Centerline C++
12233
archive_cmds_need_lc_CXX=yes
12234
no_undefined_flag_CXX=' -zdefs'
12235
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12236
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12237
$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'
12239
hardcode_libdir_flag_spec_CXX='-R$libdir'
12240
hardcode_shlibpath_var_CXX=no
12242
solaris2.[0-5] | solaris2.[0-5].*) ;;
12244
# The compiler driver will combine and reorder linker options,
12245
# but understands `-z linker_flag'.
12246
# Supported since Solaris 2.6 (maybe 2.5.1?)
12247
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12250
link_all_deplibs_CXX=yes
12252
output_verbose_link_cmd='echo'
12254
# Archives containing C++ object files must be created using
12255
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12256
# necessary to make sure instantiated templates are included
12258
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12261
# Green Hills C++ Compiler
12262
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12264
# The C++ compiler must be used to create the archive.
12265
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12268
# GNU C++ compiler with Solaris linker
12269
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12270
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12271
if $CC --version | grep -v '^2\.7' > /dev/null; then
12272
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12273
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12274
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12276
# Commands to make compiler produce verbose output that lists
12277
# what "hidden" libraries, object files and flags are used when
12278
# linking a shared library.
12279
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12281
# g++ 2.7 appears to require `-G' NOT `-shared' on this
12283
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12284
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12285
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12287
# Commands to make compiler produce verbose output that lists
12288
# what "hidden" libraries, object files and flags are used when
12289
# linking a shared library.
12290
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12293
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12295
solaris2.[0-5] | solaris2.[0-5].*) ;;
12297
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12304
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12305
no_undefined_flag_CXX='${wl}-z,text'
12306
archive_cmds_need_lc_CXX=no
12307
hardcode_shlibpath_var_CXX=no
12308
runpath_var='LD_RUN_PATH'
12310
case $cc_basename in
12312
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12313
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12316
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12317
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12321
sysv5* | sco3.2v5* | sco5v6*)
12322
# Note: We can NOT use -z defs as we might desire, because we do not
12323
# link with -lc, and that would cause any symbols used from libc to
12324
# always be unresolved, which means just about no library would
12325
# ever link correctly. If we're not using GNU ld we use -z text
12326
# though, which does catch some bad symbols but isn't as heavy-handed
12328
# For security reasons, it is highly recommended that you always
12329
# use absolute paths for naming shared libraries, and exclude the
12330
# DT_RUNPATH tag from executables and libraries. But doing so
12331
# requires that you compile everything twice, which is a pain.
12332
# So that behaviour is only enabled if SCOABSPATH is set to a
12333
# non-empty value in the environment. Most likely only useful for
12334
# creating official distributions of packages.
12335
# This is a hack until libtool officially supports absolute path
12336
# names for shared libraries.
12337
no_undefined_flag_CXX='${wl}-z,text'
12338
allow_undefined_flag_CXX='${wl}-z,nodefs'
12339
archive_cmds_need_lc_CXX=no
12340
hardcode_shlibpath_var_CXX=no
12341
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12342
hardcode_libdir_separator_CXX=':'
12343
link_all_deplibs_CXX=yes
12344
export_dynamic_flag_spec_CXX='${wl}-Bexport'
12345
runpath_var='LD_RUN_PATH'
12347
case $cc_basename in
12349
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12350
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12353
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12354
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12359
case $cc_basename in
12361
# NonStop-UX NCC 3.20
12362
# FIXME: insert proper C++ library support
12366
# FIXME: insert proper C++ library support
12372
# FIXME: insert proper C++ library support
12376
# FIXME: insert proper C++ library support
12380
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12381
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12382
test "$ld_shlibs_CXX" = no && can_build_shared=no
12387
cat > conftest.$ac_ext <<EOF
12391
Foo (void) { a = 0; }
12397
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12398
(eval $ac_compile) 2>&5
12400
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401
(exit $ac_status); }; then
12402
# Parse the compiler output and extract the necessary
12403
# objects, libraries and library flags.
12405
# Sentinel used to keep track of whether or not we are before
12406
# the conftest object file.
12407
pre_test_object_deps_done=no
12409
# The `*' in the case matches for architectures that use `case' in
12410
# $output_verbose_cmd can trigger glob expansion during the loop
12411
# eval without this substitution.
12412
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12414
for p in `eval $output_verbose_link_cmd`; do
12418
# Some compilers place space between "-{L,R}" and the path.
12419
# Remove the space.
12420
if test $p = "-L" \
12421
|| test $p = "-R"; then
12428
if test "$pre_test_object_deps_done" = no; then
12431
# Internal compiler library paths should come after those
12432
# provided the user. The postdeps already come after the
12433
# user supplied libs so there is no need to process them.
12434
if test -z "$compiler_lib_search_path_CXX"; then
12435
compiler_lib_search_path_CXX="${prev}${p}"
12437
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12440
# The "-l" case would never come before the object being
12441
# linked, so don't bother handling this case.
12444
if test -z "$postdeps_CXX"; then
12445
postdeps_CXX="${prev}${p}"
12447
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12453
# This assumes that the test object file only shows up
12454
# once in the compiler output.
12455
if test "$p" = "conftest.$objext"; then
12456
pre_test_object_deps_done=yes
12460
if test "$pre_test_object_deps_done" = no; then
12461
if test -z "$predep_objects_CXX"; then
12462
predep_objects_CXX="$p"
12464
predep_objects_CXX="$predep_objects_CXX $p"
12467
if test -z "$postdep_objects_CXX"; then
12468
postdep_objects_CXX="$p"
12470
postdep_objects_CXX="$postdep_objects_CXX $p"
12475
*) ;; # Ignore the rest.
12483
echo "libtool.m4: error: problem compiling CXX test program"
12486
$rm -f confest.$objext
12488
compiler_lib_search_dirs_CXX=
12489
if test -n "$compiler_lib_search_path_CXX"; then
12490
compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12493
# PORTME: override above test on systems where it is broken
12496
# Interix 3.5 installs completely hosed .la files for C++, so rather than
12497
# hack all around it, let's just trust "g++" to DTRT.
12498
predep_objects_CXX=
12499
postdep_objects_CXX=
12504
case `$CC -V 2>&1 | sed 5q` in
12508
# The more standards-conforming stlport4 library is
12509
# incompatible with the Cstd library. Avoid specifying
12510
# it if it's in CXXFLAGS. Ignore libCrun as
12511
# -library=stlport4 depends on it.
12512
case " $CXX $CXXFLAGS " in
12513
*" -library=stlport4 "*)
12514
solaris_use_stlport4=yes
12517
if test "$solaris_use_stlport4" != yes; then
12518
postdeps_CXX='-library=Cstd -library=Crun'
12525
case $cc_basename in
12527
# The more standards-conforming stlport4 library is
12528
# incompatible with the Cstd library. Avoid specifying
12529
# it if it's in CXXFLAGS. Ignore libCrun as
12530
# -library=stlport4 depends on it.
12531
case " $CXX $CXXFLAGS " in
12532
*" -library=stlport4 "*)
12533
solaris_use_stlport4=yes
12537
# Adding this requires a known-good setup of shared libraries for
12538
# Sun compiler versions before 5.6, else PIC objects from an old
12539
# archive will be linked into the output, leading to subtle bugs.
12540
if test "$solaris_use_stlport4" != yes; then
12541
postdeps_CXX='-library=Cstd -library=Crun'
12548
case " $postdeps_CXX " in
12549
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12552
lt_prog_compiler_wl_CXX=
12553
lt_prog_compiler_pic_CXX=
12554
lt_prog_compiler_static_CXX=
12556
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12557
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12559
# C++ specific cases for pic, static, wl, etc.
12560
if test "$GXX" = yes; then
12561
lt_prog_compiler_wl_CXX='-Wl,'
12562
lt_prog_compiler_static_CXX='-static'
12566
# All AIX code is PIC.
12567
if test "$host_cpu" = ia64; then
12568
# AIX 5 now supports IA64 processor
12569
lt_prog_compiler_static_CXX='-Bstatic'
12573
# FIXME: we need at least 68020 code to build shared libraries, but
12574
# adding the `-m68020' flag to GCC prevents building anything better,
12576
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12578
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12579
# PIC is the default for these OSes.
12581
mingw* | cygwin* | os2* | pw32*)
12582
# This hack is so that the source file can tell whether it is being
12583
# built for inclusion in a dll (and should export symbols for example).
12584
# Although the cygwin gcc ignores -fPIC, still need this for old-style
12585
# (--disable-auto-import) libraries
12586
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12588
darwin* | rhapsody*)
12589
# PIC is the default on this platform
12590
# Common symbols not allowed in MH_DYLIB files
12591
lt_prog_compiler_pic_CXX='-fno-common'
12594
# DJGPP does not support shared libraries at all
12595
lt_prog_compiler_pic_CXX=
12598
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
12599
# Instead, we relocate shared libraries at runtime.
12602
if test -d /usr/nec; then
12603
lt_prog_compiler_pic_CXX=-Kconform_pic
12607
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12608
# not for PA HP-UX.
12613
lt_prog_compiler_pic_CXX='-fPIC'
12618
lt_prog_compiler_pic_CXX='-fPIC'
12624
# All AIX code is PIC.
12625
if test "$host_cpu" = ia64; then
12626
# AIX 5 now supports IA64 processor
12627
lt_prog_compiler_static_CXX='-Bstatic'
12629
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12633
case $cc_basename in
12635
# Green Hills C++ Compiler
12636
# _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"
12641
# PIC is the default on this platform
12642
# Common symbols not allowed in MH_DYLIB files
12643
case $cc_basename in
12645
lt_prog_compiler_pic_CXX='-qnocommon'
12646
lt_prog_compiler_wl_CXX='-Wl,'
12651
case $cc_basename in
12653
lt_prog_compiler_pic_CXX='-KPIC'
12656
# Green Hills C++ Compiler
12657
lt_prog_compiler_pic_CXX='-pic'
12663
freebsd* | dragonfly*)
12664
# FreeBSD uses GNU C++
12666
hpux9* | hpux10* | hpux11*)
12667
case $cc_basename in
12669
lt_prog_compiler_wl_CXX='-Wl,'
12670
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12671
if test "$host_cpu" != ia64; then
12672
lt_prog_compiler_pic_CXX='+Z'
12676
lt_prog_compiler_wl_CXX='-Wl,'
12677
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12683
lt_prog_compiler_pic_CXX='+Z'
12692
# This is c89, which is MS Visual C++ (no shared libs)
12693
# Anyone wants to do a port?
12695
irix5* | irix6* | nonstopux*)
12696
case $cc_basename in
12698
lt_prog_compiler_wl_CXX='-Wl,'
12699
lt_prog_compiler_static_CXX='-non_shared'
12700
# CC pic flag -KPIC is the default.
12706
linux* | k*bsd*-gnu)
12707
case $cc_basename in
12710
lt_prog_compiler_wl_CXX='--backend -Wl,'
12711
lt_prog_compiler_pic_CXX='-fPIC'
12715
lt_prog_compiler_wl_CXX='-Wl,'
12716
lt_prog_compiler_pic_CXX='-KPIC'
12717
lt_prog_compiler_static_CXX='-static'
12720
# Portland Group C++ compiler.
12721
lt_prog_compiler_wl_CXX='-Wl,'
12722
lt_prog_compiler_pic_CXX='-fpic'
12723
lt_prog_compiler_static_CXX='-Bstatic'
12727
# Make sure the PIC flag is empty. It appears that all Alpha
12728
# Linux and Compaq Tru64 Unix objects are PIC.
12729
lt_prog_compiler_pic_CXX=
12730
lt_prog_compiler_static_CXX='-non_shared'
12733
case `$CC -V 2>&1 | sed 5q` in
12736
lt_prog_compiler_pic_CXX='-KPIC'
12737
lt_prog_compiler_static_CXX='-Bstatic'
12738
lt_prog_compiler_wl_CXX='-Qoption ld '
12749
case $cc_basename in
12751
lt_prog_compiler_pic_CXX='-W c,exportall'
12759
osf3* | osf4* | osf5*)
12760
case $cc_basename in
12762
lt_prog_compiler_wl_CXX='--backend -Wl,'
12765
# Rational C++ 2.4.1
12766
lt_prog_compiler_pic_CXX='-pic'
12769
# Digital/Compaq C++
12770
lt_prog_compiler_wl_CXX='-Wl,'
12771
# Make sure the PIC flag is empty. It appears that all Alpha
12772
# Linux and Compaq Tru64 Unix objects are PIC.
12773
lt_prog_compiler_pic_CXX=
12774
lt_prog_compiler_static_CXX='-non_shared'
12783
case $cc_basename in
12785
# Sun C++ 4.2, 5.x and Centerline C++
12786
lt_prog_compiler_pic_CXX='-KPIC'
12787
lt_prog_compiler_static_CXX='-Bstatic'
12788
lt_prog_compiler_wl_CXX='-Qoption ld '
12791
# Green Hills C++ Compiler
12792
lt_prog_compiler_pic_CXX='-PIC'
12799
case $cc_basename in
12802
lt_prog_compiler_pic_CXX='-pic'
12803
lt_prog_compiler_static_CXX='-Bstatic'
12807
lt_prog_compiler_pic_CXX='-pic'
12814
case $cc_basename in
12816
# NonStop-UX NCC 3.20
12817
lt_prog_compiler_pic_CXX='-KPIC'
12823
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12824
case $cc_basename in
12826
lt_prog_compiler_wl_CXX='-Wl,'
12827
lt_prog_compiler_pic_CXX='-KPIC'
12828
lt_prog_compiler_static_CXX='-Bstatic'
12835
lt_prog_compiler_can_build_shared_CXX=no
12840
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12841
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12844
# Check to make sure the PIC flag actually works.
12846
if test -n "$lt_prog_compiler_pic_CXX"; then
12848
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12849
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12850
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12851
echo $ECHO_N "(cached) $ECHO_C" >&6
12853
lt_cv_prog_compiler_pic_works_CXX=no
12854
ac_outfile=conftest.$ac_objext
12855
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12856
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12857
# Insert the option either (1) after the last *FLAGS variable, or
12858
# (2) before a word containing "conftest.", or (3) at the end.
12859
# Note that $ac_compile itself does not contain backslashes and begins
12860
# with a dollar sign (not a hyphen), so the echo should work correctly.
12861
# The option is referenced via a variable to avoid confusing sed.
12862
lt_compile=`echo "$ac_compile" | $SED \
12863
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12864
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12865
-e 's:$: $lt_compiler_flag:'`
12866
(eval echo "\"\$as_me:12866: $lt_compile\"" >&5)
12867
(eval "$lt_compile" 2>conftest.err)
12869
cat conftest.err >&5
12870
echo "$as_me:12870: \$? = $ac_status" >&5
12871
if (exit $ac_status) && test -s "$ac_outfile"; then
12872
# The compiler can only warn and ignore the option if not recognized
12873
# So say no if there are warnings other than the usual output.
12874
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12875
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12876
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12877
lt_cv_prog_compiler_pic_works_CXX=yes
12883
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12884
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12886
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12887
case $lt_prog_compiler_pic_CXX in
12889
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12892
lt_prog_compiler_pic_CXX=
12893
lt_prog_compiler_can_build_shared_CXX=no
12898
# For platforms which do not support PIC, -DPIC is meaningless:
12900
lt_prog_compiler_pic_CXX=
12903
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12908
# Check to make sure the static flag actually works.
12910
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12911
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12912
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12913
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12914
echo $ECHO_N "(cached) $ECHO_C" >&6
12916
lt_cv_prog_compiler_static_works_CXX=no
12917
save_LDFLAGS="$LDFLAGS"
12918
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12919
echo "$lt_simple_link_test_code" > conftest.$ac_ext
12920
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12921
# The linker can only warn and ignore the option if not recognized
12922
# So say no if there are warnings
12923
if test -s conftest.err; then
12924
# Append any errors to the config.log.
12925
cat conftest.err 1>&5
12926
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12927
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12928
if diff conftest.exp conftest.er2 >/dev/null; then
12929
lt_cv_prog_compiler_static_works_CXX=yes
12932
lt_cv_prog_compiler_static_works_CXX=yes
12936
LDFLAGS="$save_LDFLAGS"
12939
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12940
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12942
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12945
lt_prog_compiler_static_CXX=
12949
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12950
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12951
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12952
echo $ECHO_N "(cached) $ECHO_C" >&6
12954
lt_cv_prog_compiler_c_o_CXX=no
12955
$rm -r conftest 2>/dev/null
12959
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12961
lt_compiler_flag="-o out/conftest2.$ac_objext"
12962
# Insert the option either (1) after the last *FLAGS variable, or
12963
# (2) before a word containing "conftest.", or (3) at the end.
12964
# Note that $ac_compile itself does not contain backslashes and begins
12965
# with a dollar sign (not a hyphen), so the echo should work correctly.
12966
lt_compile=`echo "$ac_compile" | $SED \
12967
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12968
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12969
-e 's:$: $lt_compiler_flag:'`
12970
(eval echo "\"\$as_me:12970: $lt_compile\"" >&5)
12971
(eval "$lt_compile" 2>out/conftest.err)
12973
cat out/conftest.err >&5
12974
echo "$as_me:12974: \$? = $ac_status" >&5
12975
if (exit $ac_status) && test -s out/conftest2.$ac_objext
12977
# The compiler can only warn and ignore the option if not recognized
12978
# So say no if there are warnings
12979
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12980
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12981
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12982
lt_cv_prog_compiler_c_o_CXX=yes
12987
# SGI C++ compiler will create directory out/ii_files/ for
12988
# template instantiation
12989
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12990
$rm out/* && rmdir out
12996
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12997
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13000
hard_links="nottested"
13001
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13002
# do not overwrite the value of need_locks provided by the user
13003
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13004
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13007
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13009
ln conftest.a conftest.b 2>&5 || hard_links=no
13010
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13011
{ echo "$as_me:$LINENO: result: $hard_links" >&5
13012
echo "${ECHO_T}$hard_links" >&6; }
13013
if test "$hard_links" = no; then
13014
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13015
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13022
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13023
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13025
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13028
# If we're using GNU nm, then we don't want the "-C" option.
13029
# -C means demangle to AIX nm, but means don't demangle with GNU nm
13030
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13031
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'
13033
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'
13037
export_symbols_cmds_CXX="$ltdll_cmds"
13040
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'
13043
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13046
exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13048
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13049
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13050
test "$ld_shlibs_CXX" = no && can_build_shared=no
13053
# Do we need to explicitly link libc?
13055
case "x$archive_cmds_need_lc_CXX" in
13057
# Assume -lc should be added
13058
archive_cmds_need_lc_CXX=yes
13060
if test "$enable_shared" = yes && test "$GCC" = yes; then
13061
case $archive_cmds_CXX in
13063
# FIXME: we may have to deal with multi-command sequences.
13066
# Test whether the compiler implicitly links with -lc since on some
13067
# systems, -lgcc has to come before -lc. If gcc already passes -lc
13068
# to ld, don't add -lc before -lgcc.
13069
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13070
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13072
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13074
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13075
(eval $ac_compile) 2>&5
13077
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078
(exit $ac_status); } 2>conftest.err; then
13081
libobjs=conftest.$ac_objext
13083
wl=$lt_prog_compiler_wl_CXX
13084
pic_flag=$lt_prog_compiler_pic_CXX
13090
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13091
allow_undefined_flag_CXX=
13092
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13093
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13095
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096
(exit $ac_status); }
13098
archive_cmds_need_lc_CXX=no
13100
archive_cmds_need_lc_CXX=yes
13102
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13104
cat conftest.err 1>&5
13107
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13108
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13115
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13116
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13117
library_names_spec=
13118
libname_spec='lib$name'
13122
postuninstall_cmds=
13126
shlibpath_overrides_runpath=unknown
13128
dynamic_linker="$host_os ld.so"
13129
sys_lib_dlsearch_path_spec="/lib /usr/lib"
13131
need_lib_prefix=unknown
13132
hardcode_into_libs=no
13134
# when you set need_version to no, make sure it does not cause -set_version
13135
# flags to be left without arguments
13136
need_version=unknown
13141
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13142
shlibpath_var=LIBPATH
13144
# AIX 3 has no versioning support, so we append a major version to the name.
13145
soname_spec='${libname}${release}${shared_ext}$major'
13152
hardcode_into_libs=yes
13153
if test "$host_cpu" = ia64; then
13154
# AIX 5 supports IA64
13155
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13156
shlibpath_var=LD_LIBRARY_PATH
13158
# With GCC up to 2.95.x, collect2 would create an import file
13159
# for dependence libraries. The import file would start with
13160
# the line `#! .'. This would cause the generated library to
13161
# depend on `.', always an invalid library. This was fixed in
13162
# development snapshots of GCC prior to 3.0.
13164
aix4 | aix4.[01] | aix4.[01].*)
13165
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13167
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13170
can_build_shared=no
13174
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13175
# soname into executable. Probably we can add versioning support to
13176
# collect2, so additional links can be useful in future.
13177
if test "$aix_use_runtimelinking" = yes; then
13178
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
13179
# instead of lib<name>.a to let people know that these are not
13180
# typical AIX shared libraries.
13181
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13183
# We preserve .a as extension for shared libraries through AIX4.2
13184
# and later when we are not doing run time linking.
13185
library_names_spec='${libname}${release}.a $libname.a'
13186
soname_spec='${libname}${release}${shared_ext}$major'
13188
shlibpath_var=LIBPATH
13193
library_names_spec='$libname.ixlibrary $libname.a'
13194
# Create ${libname}_ixlibrary.a entries in /sys/libs.
13195
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'
13199
library_names_spec='${libname}${shared_ext}'
13200
dynamic_linker="$host_os ld.so"
13201
shlibpath_var=LIBRARY_PATH
13207
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13208
soname_spec='${libname}${release}${shared_ext}$major'
13209
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13210
shlibpath_var=LD_LIBRARY_PATH
13211
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13212
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13213
# the default ld.so.conf also contains /usr/contrib/lib and
13214
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13215
# libtool to hard-code these into programs
13218
cygwin* | mingw* | pw32*)
13219
version_type=windows
13224
case $GCC,$host_os in
13225
yes,cygwin* | yes,mingw* | yes,pw32*)
13226
library_names_spec='$libname.dll.a'
13227
# DLL is installed to $(libdir)/../bin by postinstall_cmds
13228
postinstall_cmds='base_file=`basename \${file}`~
13229
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13230
dldir=$destdir/`dirname \$dlpath`~
13231
test -d \$dldir || mkdir -p \$dldir~
13232
$install_prog $dir/$dlname \$dldir/$dlname~
13233
chmod a+x \$dldir/$dlname'
13234
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13235
dlpath=$dir/\$dldll~
13237
shlibpath_overrides_runpath=yes
13241
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
13242
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13243
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13246
# MinGW DLLs use traditional 'lib' prefix
13247
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13248
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13249
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13250
# It is most probably a Windows format PATH printed by
13251
# mingw gcc, but we are running on Cygwin. Gcc prints its search
13252
# path with ; separators, and with drive letters. We can handle the
13253
# drive letters (cygwin fileutils understands them), so leave them,
13254
# especially as we might pass files found there to a mingw objdump,
13255
# which wouldn't understand a cygwinified path. Ahh.
13256
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13258
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13262
# pw32 DLLs use 'pw' prefix rather than 'lib'
13263
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13269
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13272
dynamic_linker='Win32 ld.exe'
13273
# FIXME: first we should search . and the directory the executable is in
13277
darwin* | rhapsody*)
13278
dynamic_linker="$host_os dyld"
13279
version_type=darwin
13282
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13283
soname_spec='${libname}${release}${major}$shared_ext'
13284
shlibpath_overrides_runpath=yes
13285
shlibpath_var=DYLD_LIBRARY_PATH
13286
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13288
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13295
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13296
soname_spec='${libname}${release}${shared_ext}$major'
13297
shlibpath_var=LD_LIBRARY_PATH
13304
freebsd* | dragonfly*)
13305
# DragonFly does not have aout. When/if they implement a new
13306
# versioning mechanism, adjust this.
13307
if test -x /usr/bin/objformat; then
13308
objformat=`/usr/bin/objformat`
13311
freebsd[123]*) objformat=aout ;;
13312
*) objformat=elf ;;
13315
# Handle Gentoo/FreeBSD as it was Linux
13316
case $host_vendor in
13318
version_type=linux ;;
13320
version_type=freebsd-$objformat ;;
13323
case $version_type in
13325
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13330
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13334
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13335
soname_spec='${libname}${release}${shared_ext}$major'
13340
shlibpath_var=LD_LIBRARY_PATH
13343
shlibpath_overrides_runpath=yes
13345
freebsd3.[01]* | freebsdelf3.[01]*)
13346
shlibpath_overrides_runpath=yes
13347
hardcode_into_libs=yes
13349
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13350
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13351
shlibpath_overrides_runpath=no
13352
hardcode_into_libs=yes
13354
*) # from 4.6 on, and DragonFly
13355
shlibpath_overrides_runpath=yes
13356
hardcode_into_libs=yes
13365
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13366
soname_spec='${libname}${release}${shared_ext}$major'
13367
shlibpath_var=LD_LIBRARY_PATH
13368
hardcode_into_libs=yes
13371
hpux9* | hpux10* | hpux11*)
13372
# Give a soname corresponding to the major version so that dld.sl refuses to
13373
# link against other versions.
13380
hardcode_into_libs=yes
13381
dynamic_linker="$host_os dld.so"
13382
shlibpath_var=LD_LIBRARY_PATH
13383
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13384
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13385
soname_spec='${libname}${release}${shared_ext}$major'
13386
if test "X$HPUX_IA64_MODE" = X32; then
13387
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13389
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13391
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13395
hardcode_into_libs=yes
13396
dynamic_linker="$host_os dld.sl"
13397
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13398
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13399
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13400
soname_spec='${libname}${release}${shared_ext}$major'
13401
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13402
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13406
dynamic_linker="$host_os dld.sl"
13407
shlibpath_var=SHLIB_PATH
13408
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13409
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13410
soname_spec='${libname}${release}${shared_ext}$major'
13413
# HP-UX runs *really* slowly unless shared libraries are mode 555.
13414
postinstall_cmds='chmod 555 $lib'
13421
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13422
soname_spec='${libname}${release}${shared_ext}$major'
13423
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13424
shlibpath_var=LD_LIBRARY_PATH
13425
shlibpath_overrides_runpath=no
13426
hardcode_into_libs=yes
13429
irix5* | irix6* | nonstopux*)
13431
nonstopux*) version_type=nonstopux ;;
13433
if test "$lt_cv_prog_gnu_ld" = yes; then
13441
soname_spec='${libname}${release}${shared_ext}$major'
13442
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13444
irix5* | nonstopux*)
13445
libsuff= shlibsuff=
13448
case $LD in # libtool.m4 will add one of these switches to LD
13449
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13450
libsuff= shlibsuff= libmagic=32-bit;;
13451
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13452
libsuff=32 shlibsuff=N32 libmagic=N32;;
13453
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13454
libsuff=64 shlibsuff=64 libmagic=64-bit;;
13455
*) libsuff= shlibsuff= libmagic=never-match;;
13459
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13460
shlibpath_overrides_runpath=no
13461
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13462
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13463
hardcode_into_libs=yes
13466
# No shared lib support for Linux oldld, aout, or coff.
13467
linux*oldld* | linux*aout* | linux*coff*)
13471
# This must be Linux ELF.
13472
linux* | k*bsd*-gnu)
13476
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13477
soname_spec='${libname}${release}${shared_ext}$major'
13478
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13479
shlibpath_var=LD_LIBRARY_PATH
13480
shlibpath_overrides_runpath=no
13481
# This implies no fast_install, which is unacceptable.
13482
# Some rework will be needed to allow for fast_install
13483
# before this can be enabled.
13484
hardcode_into_libs=yes
13486
# Append ld.so.conf contents to the search path
13487
if test -f /etc/ld.so.conf; then
13488
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' ' '`
13489
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13492
# We used to test for /lib/ld.so.1 and disable shared libraries on
13493
# powerpc, because MkLinux only supported shared libraries with the
13494
# GNU dynamic linker. Since this was broken with cross compilers,
13495
# most powerpc-linux boxes support dynamic linking these days and
13496
# people can always --disable-shared, the test was removed, and we
13497
# assume the GNU/Linux dynamic linker is in use.
13498
dynamic_linker='GNU/Linux ld.so'
13505
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13506
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13507
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13508
dynamic_linker='NetBSD (a.out) ld.so'
13510
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13511
soname_spec='${libname}${release}${shared_ext}$major'
13512
dynamic_linker='NetBSD ld.elf_so'
13514
shlibpath_var=LD_LIBRARY_PATH
13515
shlibpath_overrides_runpath=yes
13516
hardcode_into_libs=yes
13521
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13522
shlibpath_var=LD_LIBRARY_PATH
13523
shlibpath_overrides_runpath=yes
13530
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13531
soname_spec='${libname}${release}${shared_ext}$major'
13532
shlibpath_var=LD_LIBRARY_PATH
13533
shlibpath_overrides_runpath=yes
13538
sys_lib_dlsearch_path_spec="/usr/lib"
13540
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13542
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13543
*) need_version=no ;;
13545
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13546
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13547
shlibpath_var=LD_LIBRARY_PATH
13548
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13550
openbsd2.[89] | openbsd2.[89].*)
13551
shlibpath_overrides_runpath=no
13554
shlibpath_overrides_runpath=yes
13558
shlibpath_overrides_runpath=yes
13563
libname_spec='$name'
13566
library_names_spec='$libname${shared_ext} $libname.a'
13567
dynamic_linker='OS/2 ld.exe'
13568
shlibpath_var=LIBPATH
13571
osf3* | osf4* | osf5*)
13575
soname_spec='${libname}${release}${shared_ext}$major'
13576
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13577
shlibpath_var=LD_LIBRARY_PATH
13578
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13579
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13590
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13591
soname_spec='${libname}${release}${shared_ext}$major'
13592
shlibpath_var=LD_LIBRARY_PATH
13593
shlibpath_overrides_runpath=yes
13594
hardcode_into_libs=yes
13595
# ldd complains unless libraries are executable
13596
postinstall_cmds='chmod +x $lib'
13601
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13602
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13603
shlibpath_var=LD_LIBRARY_PATH
13604
shlibpath_overrides_runpath=yes
13605
if test "$with_gnu_ld" = yes; then
13613
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13614
soname_spec='${libname}${release}${shared_ext}$major'
13615
shlibpath_var=LD_LIBRARY_PATH
13616
case $host_vendor in
13618
shlibpath_overrides_runpath=no
13620
export_dynamic_flag_spec='${wl}-Blargedynsym'
13621
runpath_var=LD_RUN_PATH
13629
shlibpath_overrides_runpath=no
13630
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13636
if test -d /usr/nec ;then
13638
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13639
soname_spec='$libname${shared_ext}.$major'
13640
shlibpath_var=LD_LIBRARY_PATH
13644
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13645
version_type=freebsd-elf
13648
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13649
soname_spec='${libname}${release}${shared_ext}$major'
13650
shlibpath_var=LD_LIBRARY_PATH
13651
hardcode_into_libs=yes
13652
if test "$with_gnu_ld" = yes; then
13653
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13654
shlibpath_overrides_runpath=no
13656
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13657
shlibpath_overrides_runpath=yes
13660
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13664
sys_lib_dlsearch_path_spec='/usr/lib'
13669
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13670
soname_spec='${libname}${release}${shared_ext}$major'
13671
shlibpath_var=LD_LIBRARY_PATH
13678
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13679
echo "${ECHO_T}$dynamic_linker" >&6; }
13680
test "$dynamic_linker" = no && can_build_shared=no
13682
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13683
echo $ECHO_N "(cached) $ECHO_C" >&6
13685
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13688
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13689
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13690
echo $ECHO_N "(cached) $ECHO_C" >&6
13692
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13695
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13697
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13698
if test "$GCC" = yes; then
13699
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13702
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13703
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13704
hardcode_action_CXX=
13705
if test -n "$hardcode_libdir_flag_spec_CXX" || \
13706
test -n "$runpath_var_CXX" || \
13707
test "X$hardcode_automatic_CXX" = "Xyes" ; then
13709
# We can hardcode non-existant directories.
13710
if test "$hardcode_direct_CXX" != no &&
13711
# If the only mechanism to avoid hardcoding is shlibpath_var, we
13712
# have to relink, otherwise we might link with an installed library
13713
# when we should be linking with a yet-to-be-installed one
13714
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13715
test "$hardcode_minus_L_CXX" != no; then
13716
# Linking always hardcodes the temporary library directory.
13717
hardcode_action_CXX=relink
13719
# We can link without hardcoding, and we can hardcode nonexisting dirs.
13720
hardcode_action_CXX=immediate
13723
# We cannot hardcode anything, or else we can only hardcode existing
13725
hardcode_action_CXX=unsupported
13727
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13728
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13730
if test "$hardcode_action_CXX" = relink; then
13731
# Fast installation is not supported
13732
enable_fast_install=no
13733
elif test "$shlibpath_overrides_runpath" = yes ||
13734
test "$enable_shared" = no; then
13735
# Fast installation is not necessary
13736
enable_fast_install=needless
13740
# The else clause should only fire when bootstrapping the
13741
# libtool distribution, otherwise you forgot to ship ltmain.sh
13742
# with your package, and you will get complaints that there are
13743
# no rules to generate ltmain.sh.
13744
if test -f "$ltmain"; then
13745
# See if we are running on zsh, and set the options which allow our commands through
13746
# without removal of \ escapes.
13747
if test -n "${ZSH_VERSION+set}" ; then
13748
setopt NO_GLOB_SUBST
13750
# Now quote all the things that may contain metacharacters while being
13751
# careful not to overquote the AC_SUBSTed values. We take copies of the
13752
# variables and quote the copies for generation of the libtool script.
13753
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13755
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13756
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13757
deplibs_check_method reload_flag reload_cmds need_locks \
13758
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13759
lt_cv_sys_global_symbol_to_c_name_address \
13760
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13761
old_postinstall_cmds old_postuninstall_cmds \
13765
lt_prog_compiler_wl_CXX \
13766
lt_prog_compiler_pic_CXX \
13767
lt_prog_compiler_static_CXX \
13768
lt_prog_compiler_no_builtin_flag_CXX \
13769
export_dynamic_flag_spec_CXX \
13770
thread_safe_flag_spec_CXX \
13771
whole_archive_flag_spec_CXX \
13772
enable_shared_with_static_runtimes_CXX \
13773
old_archive_cmds_CXX \
13774
old_archive_from_new_cmds_CXX \
13775
predep_objects_CXX \
13776
postdep_objects_CXX \
13779
compiler_lib_search_path_CXX \
13780
compiler_lib_search_dirs_CXX \
13782
archive_expsym_cmds_CXX \
13783
postinstall_cmds_CXX \
13784
postuninstall_cmds_CXX \
13785
old_archive_from_expsyms_cmds_CXX \
13786
allow_undefined_flag_CXX \
13787
no_undefined_flag_CXX \
13788
export_symbols_cmds_CXX \
13789
hardcode_libdir_flag_spec_CXX \
13790
hardcode_libdir_flag_spec_ld_CXX \
13791
hardcode_libdir_separator_CXX \
13792
hardcode_automatic_CXX \
13794
module_expsym_cmds_CXX \
13795
lt_cv_prog_compiler_c_o_CXX \
13796
fix_srcfile_path_CXX \
13797
exclude_expsyms_CXX \
13798
include_expsyms_CXX; do
13801
old_archive_cmds_CXX | \
13802
old_archive_from_new_cmds_CXX | \
13803
archive_cmds_CXX | \
13804
archive_expsym_cmds_CXX | \
13805
module_cmds_CXX | \
13806
module_expsym_cmds_CXX | \
13807
old_archive_from_expsyms_cmds_CXX | \
13808
export_symbols_cmds_CXX | \
13809
extract_expsyms_cmds | reload_cmds | finish_cmds | \
13810
postinstall_cmds | postuninstall_cmds | \
13811
old_postinstall_cmds | old_postuninstall_cmds | \
13812
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13813
# Double-quote double-evaled strings.
13814
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13817
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13823
*'\$0 --fallback-echo"')
13824
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13830
cat <<__EOF__ >> "$cfgfile"
13831
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13833
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13835
# Shell to use when invoking shell scripts.
13838
# Whether or not to build shared libraries.
13839
build_libtool_libs=$enable_shared
13841
# Whether or not to build static libraries.
13842
build_old_libs=$enable_static
13844
# Whether or not to add -lc for building shared libraries.
13845
build_libtool_need_lc=$archive_cmds_need_lc_CXX
13847
# Whether or not to disallow shared libs when runtime libs are static
13848
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13850
# Whether or not to optimize for fast installation.
13851
fast_install=$enable_fast_install
13854
host_alias=$host_alias
13858
# The build system.
13859
build_alias=$build_alias
13863
# An echo program that does not interpret backslashes.
13868
AR_FLAGS=$lt_AR_FLAGS
13873
# LTCC compiler flags.
13874
LTCFLAGS=$lt_LTCFLAGS
13876
# A language-specific compiler.
13877
CC=$lt_compiler_CXX
13879
# Is the compiler the GNU C compiler?
13885
# The linker used to build libraries.
13888
# Whether we need hard or soft links.
13891
# A BSD-compatible nm program.
13894
# A symbol stripping program
13897
# Used to examine libraries when file_magic_cmd begins "file"
13898
MAGIC_CMD=$MAGIC_CMD
13900
# Used on cygwin: DLL creation program.
13903
# Used on cygwin: object dumper.
13906
# Used on cygwin: assembler.
13909
# The name of the directory that contains temporary libtool files.
13912
# How to create reloadable object files.
13913
reload_flag=$lt_reload_flag
13914
reload_cmds=$lt_reload_cmds
13916
# How to pass a linker flag through the compiler.
13917
wl=$lt_lt_prog_compiler_wl_CXX
13919
# Object file suffix (normally "o").
13920
objext="$ac_objext"
13922
# Old archive suffix (normally "a").
13925
# Shared library suffix (normally ".so").
13926
shrext_cmds='$shrext_cmds'
13928
# Executable file suffix (normally "").
13931
# Additional compiler flags for building library objects.
13932
pic_flag=$lt_lt_prog_compiler_pic_CXX
13935
# What is the maximum length of a command?
13936
max_cmd_len=$lt_cv_sys_max_cmd_len
13938
# Does compiler simultaneously support -c and -o options?
13939
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13941
# Must we lock files when doing compilation?
13942
need_locks=$lt_need_locks
13944
# Do we need the lib prefix for modules?
13945
need_lib_prefix=$need_lib_prefix
13947
# Do we need a version for libraries?
13948
need_version=$need_version
13950
# Whether dlopen is supported.
13951
dlopen_support=$enable_dlopen
13953
# Whether dlopen of programs is supported.
13954
dlopen_self=$enable_dlopen_self
13956
# Whether dlopen of statically linked programs is supported.
13957
dlopen_self_static=$enable_dlopen_self_static
13959
# Compiler flag to prevent dynamic linking.
13960
link_static_flag=$lt_lt_prog_compiler_static_CXX
13962
# Compiler flag to turn off builtin functions.
13963
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13965
# Compiler flag to allow reflexive dlopens.
13966
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13968
# Compiler flag to generate shared objects directly from archives.
13969
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13971
# Compiler flag to generate thread-safe objects.
13972
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13974
# Library versioning type.
13975
version_type=$version_type
13977
# Format of library name prefix.
13978
libname_spec=$lt_libname_spec
13980
# List of archive names. First name is the real one, the rest are links.
13981
# The last name is the one that the linker finds with -lNAME.
13982
library_names_spec=$lt_library_names_spec
13984
# The coded name of the library, if different from the real name.
13985
soname_spec=$lt_soname_spec
13987
# Commands used to build and install an old-style archive.
13989
old_archive_cmds=$lt_old_archive_cmds_CXX
13990
old_postinstall_cmds=$lt_old_postinstall_cmds
13991
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13993
# Create an old-style archive from a shared archive.
13994
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13996
# Create a temporary old-style archive to link instead of a shared archive.
13997
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13999
# Commands used to build and install a shared archive.
14000
archive_cmds=$lt_archive_cmds_CXX
14001
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14002
postinstall_cmds=$lt_postinstall_cmds
14003
postuninstall_cmds=$lt_postuninstall_cmds
14005
# Commands used to build a loadable module (assumed same as above if empty)
14006
module_cmds=$lt_module_cmds_CXX
14007
module_expsym_cmds=$lt_module_expsym_cmds_CXX
14009
# Commands to strip libraries.
14010
old_striplib=$lt_old_striplib
14011
striplib=$lt_striplib
14013
# Dependencies to place before the objects being linked to create a
14015
predep_objects=$lt_predep_objects_CXX
14017
# Dependencies to place after the objects being linked to create a
14019
postdep_objects=$lt_postdep_objects_CXX
14021
# Dependencies to place before the objects being linked to create a
14023
predeps=$lt_predeps_CXX
14025
# Dependencies to place after the objects being linked to create a
14027
postdeps=$lt_postdeps_CXX
14029
# The directories searched by this compiler when creating a shared
14031
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14033
# The library search path used internally by the compiler when linking
14034
# a shared library.
14035
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14037
# Method to check whether dependent libraries are shared objects.
14038
deplibs_check_method=$lt_deplibs_check_method
14040
# Command to use when deplibs_check_method == file_magic.
14041
file_magic_cmd=$lt_file_magic_cmd
14043
# Flag that allows shared libraries with undefined symbols to be built.
14044
allow_undefined_flag=$lt_allow_undefined_flag_CXX
14046
# Flag that forces no undefined symbols.
14047
no_undefined_flag=$lt_no_undefined_flag_CXX
14049
# Commands used to finish a libtool library installation in a directory.
14050
finish_cmds=$lt_finish_cmds
14052
# Same as above, but a single script fragment to be evaled but not shown.
14053
finish_eval=$lt_finish_eval
14055
# Take the output of nm and produce a listing of raw symbols and C names.
14056
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14058
# Transform the output of nm in a proper C declaration
14059
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14061
# Transform the output of nm in a C name address pair
14062
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14064
# This is the shared library runtime path variable.
14065
runpath_var=$runpath_var
14067
# This is the shared library path variable.
14068
shlibpath_var=$shlibpath_var
14070
# Is shlibpath searched before the hard-coded library search path?
14071
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14073
# How to hardcode a shared library path into an executable.
14074
hardcode_action=$hardcode_action_CXX
14076
# Whether we should hardcode library paths into libraries.
14077
hardcode_into_libs=$hardcode_into_libs
14079
# Flag to hardcode \$libdir into a binary during linking.
14080
# This must work even if \$libdir does not exist.
14081
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14083
# If ld is used when linking, flag to hardcode \$libdir into
14084
# a binary during linking. This must work even if \$libdir does
14086
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14088
# Whether we need a single -rpath flag with a separated argument.
14089
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14091
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14092
# resulting binary.
14093
hardcode_direct=$hardcode_direct_CXX
14095
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14096
# resulting binary.
14097
hardcode_minus_L=$hardcode_minus_L_CXX
14099
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14100
# the resulting binary.
14101
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14103
# Set to yes if building a shared library automatically hardcodes DIR into the library
14104
# and all subsequent libraries and executables linked against it.
14105
hardcode_automatic=$hardcode_automatic_CXX
14107
# Variables whose values should be saved in libtool wrapper scripts and
14108
# restored at relink time.
14109
variables_saved_for_relink="$variables_saved_for_relink"
14111
# Whether libtool must link a program against all its dependency libraries.
14112
link_all_deplibs=$link_all_deplibs_CXX
14114
# Compile-time system search path for libraries
14115
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14117
# Run-time system search path for libraries
14118
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14120
# Fix the shell variable \$srcfile for the compiler.
14121
fix_srcfile_path=$lt_fix_srcfile_path
14123
# Set to yes if exported symbols are required.
14124
always_export_symbols=$always_export_symbols_CXX
14126
# The commands to list exported symbols.
14127
export_symbols_cmds=$lt_export_symbols_cmds_CXX
14129
# The commands to extract the exported symbol list from a shared archive.
14130
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14132
# Symbols that should not be listed in the preloaded symbols.
14133
exclude_expsyms=$lt_exclude_expsyms_CXX
14135
# Symbols that must always be exported.
14136
include_expsyms=$lt_include_expsyms_CXX
14138
# ### END LIBTOOL TAG CONFIG: $tagname
14144
# If there is no Makefile yet, we rely on a make rule to execute
14145
# `config.status --recheck' to rerun these tests and create the
14146
# libtool script then.
14147
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14148
if test -f "$ltmain_in"; then
14149
test -f Makefile && make "$ltmain"
14155
ac_cpp='$CPP $CPPFLAGS'
14156
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14157
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14158
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14164
with_gnu_ldcxx=$with_gnu_ld
14165
with_gnu_ld=$lt_save_with_gnu_ld
14166
lt_cv_path_LDCXX=$lt_cv_path_LD
14167
lt_cv_path_LD=$lt_save_path_LD
14168
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14169
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14177
if test -n "$F77" && test "X$F77" != "Xno"; then
14180
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14181
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14182
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14185
archive_cmds_need_lc_F77=no
14186
allow_undefined_flag_F77=
14187
always_export_symbols_F77=no
14188
archive_expsym_cmds_F77=
14189
export_dynamic_flag_spec_F77=
14190
hardcode_direct_F77=no
14191
hardcode_libdir_flag_spec_F77=
14192
hardcode_libdir_flag_spec_ld_F77=
14193
hardcode_libdir_separator_F77=
14194
hardcode_minus_L_F77=no
14195
hardcode_automatic_F77=no
14197
module_expsym_cmds_F77=
14198
link_all_deplibs_F77=unknown
14199
old_archive_cmds_F77=$old_archive_cmds
14200
no_undefined_flag_F77=
14201
whole_archive_flag_spec_F77=
14202
enable_shared_with_static_runtimes_F77=no
14204
# Source file extension for f77 test sources.
14207
# Object file extension for compiled f77 test sources.
14211
# Code to be used in simple compile tests
14212
lt_simple_compile_test_code="\
14218
# Code to be used in simple link tests
14219
lt_simple_link_test_code="\
14224
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14226
# If no C compiler was specified, use CC.
14229
# If no C compiler flags were specified, use CFLAGS.
14230
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14232
# Allow CC to be a program name with arguments.
14236
# save warnings/boilerplate of simple test code
14237
ac_outfile=conftest.$ac_objext
14238
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14239
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14240
_lt_compiler_boilerplate=`cat conftest.err`
14243
ac_outfile=conftest.$ac_objext
14244
echo "$lt_simple_link_test_code" >conftest.$ac_ext
14245
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14246
_lt_linker_boilerplate=`cat conftest.err`
14250
# Allow CC to be a program name with arguments.
14255
for cc_temp in $compiler""; do
14257
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14258
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14263
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14266
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14267
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14268
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14269
echo "${ECHO_T}$can_build_shared" >&6; }
14271
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14272
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14273
test "$can_build_shared" = "no" && enable_shared=no
14275
# On AIX, shared libraries and static libraries use the same namespace, and
14276
# are all built from PIC.
14279
test "$enable_shared" = yes && enable_static=no
14280
if test -n "$RANLIB"; then
14281
archive_cmds="$archive_cmds~\$RANLIB \$lib"
14282
postinstall_cmds='$RANLIB $lib'
14286
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14287
test "$enable_shared" = yes && enable_static=no
14291
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14292
echo "${ECHO_T}$enable_shared" >&6; }
14294
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14295
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14296
# Make sure either enable_shared or enable_static is yes.
14297
test "$enable_shared" = yes || enable_static=yes
14298
{ echo "$as_me:$LINENO: result: $enable_static" >&5
14299
echo "${ECHO_T}$enable_static" >&6; }
14304
lt_prog_compiler_wl_F77=
14305
lt_prog_compiler_pic_F77=
14306
lt_prog_compiler_static_F77=
14308
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14309
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14311
if test "$GCC" = yes; then
14312
lt_prog_compiler_wl_F77='-Wl,'
14313
lt_prog_compiler_static_F77='-static'
14317
# All AIX code is PIC.
14318
if test "$host_cpu" = ia64; then
14319
# AIX 5 now supports IA64 processor
14320
lt_prog_compiler_static_F77='-Bstatic'
14325
# FIXME: we need at least 68020 code to build shared libraries, but
14326
# adding the `-m68020' flag to GCC prevents building anything better,
14328
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14331
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14332
# PIC is the default for these OSes.
14335
mingw* | cygwin* | pw32* | os2*)
14336
# This hack is so that the source file can tell whether it is being
14337
# built for inclusion in a dll (and should export symbols for example).
14338
# Although the cygwin gcc ignores -fPIC, still need this for old-style
14339
# (--disable-auto-import) libraries
14340
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14343
darwin* | rhapsody*)
14344
# PIC is the default on this platform
14345
# Common symbols not allowed in MH_DYLIB files
14346
lt_prog_compiler_pic_F77='-fno-common'
14350
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
14351
# Instead, we relocate shared libraries at runtime.
14355
# Just because we use GCC doesn't mean we suddenly get shared libraries
14356
# on systems that don't support them.
14357
lt_prog_compiler_can_build_shared_F77=no
14362
if test -d /usr/nec; then
14363
lt_prog_compiler_pic_F77=-Kconform_pic
14368
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14369
# not for PA HP-UX.
14375
lt_prog_compiler_pic_F77='-fPIC'
14381
lt_prog_compiler_pic_F77='-fPIC'
14385
# PORTME Check for flag to pass linker flags through the system compiler.
14388
lt_prog_compiler_wl_F77='-Wl,'
14389
if test "$host_cpu" = ia64; then
14390
# AIX 5 now supports IA64 processor
14391
lt_prog_compiler_static_F77='-Bstatic'
14393
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14397
# PIC is the default on this platform
14398
# Common symbols not allowed in MH_DYLIB files
14399
case $cc_basename in
14401
lt_prog_compiler_pic_F77='-qnocommon'
14402
lt_prog_compiler_wl_F77='-Wl,'
14407
mingw* | cygwin* | pw32* | os2*)
14408
# This hack is so that the source file can tell whether it is being
14409
# built for inclusion in a dll (and should export symbols for example).
14410
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14413
hpux9* | hpux10* | hpux11*)
14414
lt_prog_compiler_wl_F77='-Wl,'
14415
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14416
# not for PA HP-UX.
14422
lt_prog_compiler_pic_F77='+Z'
14425
# Is there a better lt_prog_compiler_static that works with the bundled CC?
14426
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14429
irix5* | irix6* | nonstopux*)
14430
lt_prog_compiler_wl_F77='-Wl,'
14431
# PIC (with -KPIC) is the default.
14432
lt_prog_compiler_static_F77='-non_shared'
14436
lt_prog_compiler_pic_F77='-KPIC'
14437
lt_prog_compiler_static_F77='-Bstatic'
14440
linux* | k*bsd*-gnu)
14441
case $cc_basename in
14443
lt_prog_compiler_wl_F77='-Wl,'
14444
lt_prog_compiler_pic_F77='-KPIC'
14445
lt_prog_compiler_static_F77='-static'
14447
pgcc* | pgf77* | pgf90* | pgf95*)
14448
# Portland Group compilers (*not* the Pentium gcc compiler,
14449
# which looks to be a dead project)
14450
lt_prog_compiler_wl_F77='-Wl,'
14451
lt_prog_compiler_pic_F77='-fpic'
14452
lt_prog_compiler_static_F77='-Bstatic'
14455
lt_prog_compiler_wl_F77='-Wl,'
14456
# All Alpha code is PIC.
14457
lt_prog_compiler_static_F77='-non_shared'
14460
case `$CC -V 2>&1 | sed 5q` in
14463
lt_prog_compiler_pic_F77='-KPIC'
14464
lt_prog_compiler_static_F77='-Bstatic'
14465
lt_prog_compiler_wl_F77='-Wl,'
14468
# Sun Fortran 8.3 passes all unrecognized flags to the linker
14469
lt_prog_compiler_pic_F77='-KPIC'
14470
lt_prog_compiler_static_F77='-Bstatic'
14471
lt_prog_compiler_wl_F77=''
14478
osf3* | osf4* | osf5*)
14479
lt_prog_compiler_wl_F77='-Wl,'
14480
# All OSF/1 code is PIC.
14481
lt_prog_compiler_static_F77='-non_shared'
14485
lt_prog_compiler_static_F77='-non_shared'
14489
lt_prog_compiler_pic_F77='-KPIC'
14490
lt_prog_compiler_static_F77='-Bstatic'
14491
case $cc_basename in
14492
f77* | f90* | f95*)
14493
lt_prog_compiler_wl_F77='-Qoption ld ';;
14495
lt_prog_compiler_wl_F77='-Wl,';;
14500
lt_prog_compiler_wl_F77='-Qoption ld '
14501
lt_prog_compiler_pic_F77='-PIC'
14502
lt_prog_compiler_static_F77='-Bstatic'
14505
sysv4 | sysv4.2uw2* | sysv4.3*)
14506
lt_prog_compiler_wl_F77='-Wl,'
14507
lt_prog_compiler_pic_F77='-KPIC'
14508
lt_prog_compiler_static_F77='-Bstatic'
14512
if test -d /usr/nec ;then
14513
lt_prog_compiler_pic_F77='-Kconform_pic'
14514
lt_prog_compiler_static_F77='-Bstatic'
14518
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14519
lt_prog_compiler_wl_F77='-Wl,'
14520
lt_prog_compiler_pic_F77='-KPIC'
14521
lt_prog_compiler_static_F77='-Bstatic'
14525
lt_prog_compiler_wl_F77='-Wl,'
14526
lt_prog_compiler_can_build_shared_F77=no
14530
lt_prog_compiler_pic_F77='-pic'
14531
lt_prog_compiler_static_F77='-Bstatic'
14535
lt_prog_compiler_can_build_shared_F77=no
14540
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14541
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14544
# Check to make sure the PIC flag actually works.
14546
if test -n "$lt_prog_compiler_pic_F77"; then
14548
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14549
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14550
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14551
echo $ECHO_N "(cached) $ECHO_C" >&6
14553
lt_cv_prog_compiler_pic_works_F77=no
14554
ac_outfile=conftest.$ac_objext
14555
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14556
lt_compiler_flag="$lt_prog_compiler_pic_F77"
14557
# Insert the option either (1) after the last *FLAGS variable, or
14558
# (2) before a word containing "conftest.", or (3) at the end.
14559
# Note that $ac_compile itself does not contain backslashes and begins
14560
# with a dollar sign (not a hyphen), so the echo should work correctly.
14561
# The option is referenced via a variable to avoid confusing sed.
14562
lt_compile=`echo "$ac_compile" | $SED \
14563
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14564
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14565
-e 's:$: $lt_compiler_flag:'`
14566
(eval echo "\"\$as_me:14566: $lt_compile\"" >&5)
14567
(eval "$lt_compile" 2>conftest.err)
14569
cat conftest.err >&5
14570
echo "$as_me:14570: \$? = $ac_status" >&5
14571
if (exit $ac_status) && test -s "$ac_outfile"; then
14572
# The compiler can only warn and ignore the option if not recognized
14573
# So say no if there are warnings other than the usual output.
14574
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14575
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14576
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14577
lt_cv_prog_compiler_pic_works_F77=yes
14583
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14584
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14586
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14587
case $lt_prog_compiler_pic_F77 in
14589
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14592
lt_prog_compiler_pic_F77=
14593
lt_prog_compiler_can_build_shared_F77=no
14598
# For platforms which do not support PIC, -DPIC is meaningless:
14600
lt_prog_compiler_pic_F77=
14603
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14608
# Check to make sure the static flag actually works.
14610
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14611
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14612
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14613
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14614
echo $ECHO_N "(cached) $ECHO_C" >&6
14616
lt_cv_prog_compiler_static_works_F77=no
14617
save_LDFLAGS="$LDFLAGS"
14618
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14619
echo "$lt_simple_link_test_code" > conftest.$ac_ext
14620
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14621
# The linker can only warn and ignore the option if not recognized
14622
# So say no if there are warnings
14623
if test -s conftest.err; then
14624
# Append any errors to the config.log.
14625
cat conftest.err 1>&5
14626
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14627
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14628
if diff conftest.exp conftest.er2 >/dev/null; then
14629
lt_cv_prog_compiler_static_works_F77=yes
14632
lt_cv_prog_compiler_static_works_F77=yes
14636
LDFLAGS="$save_LDFLAGS"
14639
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14640
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14642
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14645
lt_prog_compiler_static_F77=
14649
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14650
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14651
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14652
echo $ECHO_N "(cached) $ECHO_C" >&6
14654
lt_cv_prog_compiler_c_o_F77=no
14655
$rm -r conftest 2>/dev/null
14659
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14661
lt_compiler_flag="-o out/conftest2.$ac_objext"
14662
# Insert the option either (1) after the last *FLAGS variable, or
14663
# (2) before a word containing "conftest.", or (3) at the end.
14664
# Note that $ac_compile itself does not contain backslashes and begins
14665
# with a dollar sign (not a hyphen), so the echo should work correctly.
14666
lt_compile=`echo "$ac_compile" | $SED \
14667
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14668
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14669
-e 's:$: $lt_compiler_flag:'`
14670
(eval echo "\"\$as_me:14670: $lt_compile\"" >&5)
14671
(eval "$lt_compile" 2>out/conftest.err)
14673
cat out/conftest.err >&5
14674
echo "$as_me:14674: \$? = $ac_status" >&5
14675
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14677
# The compiler can only warn and ignore the option if not recognized
14678
# So say no if there are warnings
14679
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14680
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14681
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14682
lt_cv_prog_compiler_c_o_F77=yes
14687
# SGI C++ compiler will create directory out/ii_files/ for
14688
# template instantiation
14689
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14690
$rm out/* && rmdir out
14696
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14697
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14700
hard_links="nottested"
14701
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14702
# do not overwrite the value of need_locks provided by the user
14703
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14704
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14707
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14709
ln conftest.a conftest.b 2>&5 || hard_links=no
14710
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14711
{ echo "$as_me:$LINENO: result: $hard_links" >&5
14712
echo "${ECHO_T}$hard_links" >&6; }
14713
if test "$hard_links" = no; then
14714
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14715
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14722
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14723
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14726
allow_undefined_flag_F77=
14727
enable_shared_with_static_runtimes_F77=no
14729
archive_expsym_cmds_F77=
14730
old_archive_From_new_cmds_F77=
14731
old_archive_from_expsyms_cmds_F77=
14732
export_dynamic_flag_spec_F77=
14733
whole_archive_flag_spec_F77=
14734
thread_safe_flag_spec_F77=
14735
hardcode_libdir_flag_spec_F77=
14736
hardcode_libdir_flag_spec_ld_F77=
14737
hardcode_libdir_separator_F77=
14738
hardcode_direct_F77=no
14739
hardcode_minus_L_F77=no
14740
hardcode_shlibpath_var_F77=unsupported
14741
link_all_deplibs_F77=unknown
14742
hardcode_automatic_F77=no
14744
module_expsym_cmds_F77=
14745
always_export_symbols_F77=no
14746
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14747
# include_expsyms should be a list of space-separated symbols to be *always*
14748
# included in the symbol list
14749
include_expsyms_F77=
14750
# exclude_expsyms can be an extended regexp of symbols to exclude
14751
# it will be wrapped by ` (' and `)$', so one must not match beginning or
14752
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14753
# as well as any symbol that contains `d'.
14754
exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14755
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14756
# platforms (ab)use it in PIC code, but their linkers get confused if
14757
# the symbol is explicitly referenced. Since portable code cannot
14758
# rely on this symbol name, it's probably fine to never include it in
14759
# preloaded symbol tables.
14760
# Exclude shared library initialization/finalization symbols.
14761
extract_expsyms_cmds=
14762
# Just being paranoid about ensuring that cc_basename is set.
14763
for cc_temp in $compiler""; do
14765
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14766
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14771
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14774
cygwin* | mingw* | pw32*)
14775
# FIXME: the MSVC++ port hasn't been tested in a loooong time
14776
# When not using gcc, we currently assume that we are using
14777
# Microsoft Visual C++.
14778
if test "$GCC" != yes; then
14783
# we just hope/assume this is gcc and not c89 (= MSVC++)
14792
if test "$with_gnu_ld" = yes; then
14793
# If archive_cmds runs LD, not CC, wlarc should be empty
14796
# Set some defaults for GNU ld with shared library support. These
14797
# are reset later if shared libraries are not supported. Putting them
14798
# here allows them to be overridden if necessary.
14799
runpath_var=LD_RUN_PATH
14800
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14801
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14802
# ancient GNU ld didn't support --whole-archive et. al.
14803
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14804
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14806
whole_archive_flag_spec_F77=
14808
supports_anon_versioning=no
14809
case `$LD -v 2>/dev/null` in
14810
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14811
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14812
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14813
*\ 2.11.*) ;; # other 2.11 versions
14814
*) supports_anon_versioning=yes ;;
14817
# See if GNU ld supports shared libraries.
14820
# On AIX/PPC, the GNU linker is very broken
14821
if test "$host_cpu" != ia64; then
14825
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14826
*** to be unable to reliably create shared libraries on AIX.
14827
*** Therefore, libtool is disabling shared libraries support. If you
14828
*** really care for shared libraries, you may want to modify your PATH
14829
*** so that a non-GNU linker is found, and then restart.
14836
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)'
14837
hardcode_libdir_flag_spec_F77='-L$libdir'
14838
hardcode_minus_L_F77=yes
14840
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14841
# that the semantics of dynamic libraries on AmigaOS, at least up
14842
# to version 4, is to share data among multiple programs linked
14843
# with the same dynamic library. Since this doesn't match the
14844
# behavior of shared libraries on other platforms, we can't use
14850
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14851
allow_undefined_flag_F77=unsupported
14852
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14853
# support --undefined. This deserves some investigation. FIXME
14854
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14860
cygwin* | mingw* | pw32*)
14861
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14862
# as there is no search path for DLLs.
14863
hardcode_libdir_flag_spec_F77='-L$libdir'
14864
allow_undefined_flag_F77=unsupported
14865
always_export_symbols_F77=no
14866
enable_shared_with_static_runtimes_F77=yes
14867
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14869
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14870
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14871
# If the export-symbols file already is a .def file (1st line
14872
# is EXPORTS), use it as is; otherwise, prepend...
14873
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14874
cp $export_symbols $output_objdir/$soname.def;
14876
echo EXPORTS > $output_objdir/$soname.def;
14877
cat $export_symbols >> $output_objdir/$soname.def;
14879
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14886
hardcode_direct_F77=no
14887
hardcode_shlibpath_var_F77=no
14888
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14889
export_dynamic_flag_spec_F77='${wl}-E'
14890
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14891
# Instead, shared libraries are loaded at an image base (0x10000000 by
14892
# default) and relocated if they conflict, which is a slow very memory
14893
# consuming and fragmenting process. To avoid this, we pick a random,
14894
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14895
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
14896
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'
14897
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'
14900
gnu* | linux* | k*bsd*-gnu)
14901
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14903
case $cc_basename,$host_cpu in
14904
pgcc*) # Portland Group C compiler
14905
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'
14906
tmp_addflag=' $pic_flag'
14908
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14909
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'
14910
tmp_addflag=' $pic_flag -Mnomain' ;;
14911
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14912
tmp_addflag=' -i_dynamic' ;;
14913
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14914
tmp_addflag=' -i_dynamic -nofor_main' ;;
14915
ifc* | ifort*) # Intel Fortran compiler
14916
tmp_addflag=' -nofor_main' ;;
14918
case `$CC -V 2>&1 | sed 5q` in
14919
*Sun\ C*) # Sun C 5.9
14920
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'
14921
tmp_sharedflag='-G' ;;
14922
*Sun\ F*) # Sun Fortran 8.3
14923
tmp_sharedflag='-G' ;;
14925
tmp_sharedflag='-shared' ;;
14927
archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14929
if test $supports_anon_versioning = yes; then
14930
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14931
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14932
$echo "local: *; };" >> $output_objdir/$libname.ver~
14933
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14941
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14942
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14945
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14946
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14951
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14955
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14956
*** create shared libraries on Solaris systems. Therefore, libtool
14957
*** is disabling shared libraries support. We urge you to upgrade GNU
14958
*** binutils to release 2.9.1 or newer. Another option is to modify
14959
*** your PATH or compiler configuration so that the native linker is
14960
*** used, and then restart.
14963
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14964
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14965
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14971
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14972
case `$LD -v 2>&1` in
14973
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14977
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14978
*** reliably create shared libraries on SCO systems. Therefore, libtool
14979
*** is disabling shared libraries support. We urge you to upgrade GNU
14980
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14981
*** your PATH or compiler configuration so that the native linker is
14982
*** used, and then restart.
14987
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14988
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14989
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14990
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14999
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15001
hardcode_direct_F77=yes
15002
hardcode_shlibpath_var_F77=no
15006
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15007
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15008
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15015
if test "$ld_shlibs_F77" = no; then
15017
hardcode_libdir_flag_spec_F77=
15018
export_dynamic_flag_spec_F77=
15019
whole_archive_flag_spec_F77=
15022
# PORTME fill in a description of your system's linker (not GNU ld)
15025
allow_undefined_flag_F77=unsupported
15026
always_export_symbols_F77=yes
15027
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'
15028
# Note: this linker hardcodes the directories in LIBPATH if there
15029
# are no directories specified by -L.
15030
hardcode_minus_L_F77=yes
15031
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15032
# Neither direct hardcoding nor static linking is supported with a
15034
hardcode_direct_F77=unsupported
15039
if test "$host_cpu" = ia64; then
15040
# On IA64, the linker does run time linking by default, so we don't
15041
# have to do anything special.
15042
aix_use_runtimelinking=no
15043
exp_sym_flag='-Bexport'
15046
# If we're using GNU nm, then we don't want the "-C" option.
15047
# -C means demangle to AIX nm, but means don't demangle with GNU nm
15048
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15049
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'
15051
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'
15053
aix_use_runtimelinking=no
15055
# Test if we are trying to use run time linking or normal
15056
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15057
# need to do runtime linking.
15058
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15059
for ld_flag in $LDFLAGS; do
15060
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15061
aix_use_runtimelinking=yes
15068
exp_sym_flag='-bexport'
15069
no_entry_flag='-bnoentry'
15072
# When large executables or shared objects are built, AIX ld can
15073
# have problems creating the table of contents. If linking a library
15074
# or program results in "error TOC overflow" add -mminimal-toc to
15075
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15076
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15078
archive_cmds_F77=''
15079
hardcode_direct_F77=yes
15080
hardcode_libdir_separator_F77=':'
15081
link_all_deplibs_F77=yes
15083
if test "$GCC" = yes; then
15084
case $host_os in aix4.[012]|aix4.[012].*)
15085
# We only want to do this on AIX 4.2 and lower, the check
15086
# below for broken collect2 doesn't work under 4.3+
15087
collect2name=`${CC} -print-prog-name=collect2`
15088
if test -f "$collect2name" && \
15089
strings "$collect2name" | grep resolve_lib_name >/dev/null
15091
# We have reworked collect2
15094
# We have old collect2
15095
hardcode_direct_F77=unsupported
15096
# It fails to find uninstalled libraries when the uninstalled
15097
# path is not listed in the libpath. Setting hardcode_minus_L
15098
# to unsupported forces relinking
15099
hardcode_minus_L_F77=yes
15100
hardcode_libdir_flag_spec_F77='-L$libdir'
15101
hardcode_libdir_separator_F77=
15105
shared_flag='-shared'
15106
if test "$aix_use_runtimelinking" = yes; then
15107
shared_flag="$shared_flag "'${wl}-G'
15111
if test "$host_cpu" = ia64; then
15112
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15113
# chokes on -Wl,-G. The following line is correct:
15116
if test "$aix_use_runtimelinking" = yes; then
15117
shared_flag='${wl}-G'
15119
shared_flag='${wl}-bM:SRE'
15124
# It seems that -bexpall does not export symbols beginning with
15125
# underscore (_), so it is better to generate a list of symbols to export.
15126
always_export_symbols_F77=yes
15127
if test "$aix_use_runtimelinking" = yes; then
15128
# Warning - without using the other runtime loading flags (-brtl),
15129
# -berok will link without error, but may produce a broken library.
15130
allow_undefined_flag_F77='-berok'
15131
# Determine the default libpath from the value encoded in an empty executable.
15132
cat >conftest.$ac_ext <<_ACEOF
15137
rm -f conftest.$ac_objext conftest$ac_exeext
15138
if { (ac_try="$ac_link"
15139
case "(($ac_try" in
15140
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15141
*) ac_try_echo=$ac_try;;
15143
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15144
(eval "$ac_link") 2>conftest.er1
15146
grep -v '^ *+' conftest.er1 >conftest.err
15148
cat conftest.err >&5
15149
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150
(exit $ac_status); } && {
15151
test -z "$ac_f77_werror_flag" ||
15152
test ! -s conftest.err
15153
} && test -s conftest$ac_exeext &&
15154
$as_test_x conftest$ac_exeext; then
15156
lt_aix_libpath_sed='
15157
/Import File Strings/,/^$/ {
15163
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15164
# Check for a 64-bit object if we didn't find anything.
15165
if test -z "$aix_libpath"; then
15166
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15169
echo "$as_me: failed program was:" >&5
15170
sed 's/^/| /' conftest.$ac_ext >&5
15175
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15176
conftest$ac_exeext conftest.$ac_ext
15177
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15179
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15180
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"
15182
if test "$host_cpu" = ia64; then
15183
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15184
allow_undefined_flag_F77="-z nodefs"
15185
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"
15187
# Determine the default libpath from the value encoded in an empty executable.
15188
cat >conftest.$ac_ext <<_ACEOF
15193
rm -f conftest.$ac_objext conftest$ac_exeext
15194
if { (ac_try="$ac_link"
15195
case "(($ac_try" in
15196
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15197
*) ac_try_echo=$ac_try;;
15199
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15200
(eval "$ac_link") 2>conftest.er1
15202
grep -v '^ *+' conftest.er1 >conftest.err
15204
cat conftest.err >&5
15205
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206
(exit $ac_status); } && {
15207
test -z "$ac_f77_werror_flag" ||
15208
test ! -s conftest.err
15209
} && test -s conftest$ac_exeext &&
15210
$as_test_x conftest$ac_exeext; then
15212
lt_aix_libpath_sed='
15213
/Import File Strings/,/^$/ {
15219
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15220
# Check for a 64-bit object if we didn't find anything.
15221
if test -z "$aix_libpath"; then
15222
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15225
echo "$as_me: failed program was:" >&5
15226
sed 's/^/| /' conftest.$ac_ext >&5
15231
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15232
conftest$ac_exeext conftest.$ac_ext
15233
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15235
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15236
# Warning - without using the other run time loading flags,
15237
# -berok will link without error, but may produce a broken library.
15238
no_undefined_flag_F77=' ${wl}-bernotok'
15239
allow_undefined_flag_F77=' ${wl}-berok'
15240
# Exported symbols can be pulled into shared objects from archives
15241
whole_archive_flag_spec_F77='$convenience'
15242
archive_cmds_need_lc_F77=yes
15243
# This is similar to how AIX traditionally builds its shared libraries.
15244
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'
15250
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)'
15251
hardcode_libdir_flag_spec_F77='-L$libdir'
15252
hardcode_minus_L_F77=yes
15253
# see comment about different semantics on the GNU ld section
15258
export_dynamic_flag_spec_F77=-rdynamic
15261
cygwin* | mingw* | pw32*)
15262
# When not using gcc, we currently assume that we are using
15263
# Microsoft Visual C++.
15264
# hardcode_libdir_flag_spec is actually meaningless, as there is
15265
# no search path for DLLs.
15266
hardcode_libdir_flag_spec_F77=' '
15267
allow_undefined_flag_F77=unsupported
15268
# Tell ltmain to make .lib files, not .a files.
15270
# Tell ltmain to make .dll files, not .so files.
15272
# FIXME: Setting linknames here is a bad hack.
15273
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15274
# The linker will automatically build a .lib file if we build a DLL.
15275
old_archive_From_new_cmds_F77='true'
15276
# FIXME: Should let the user specify the lib program.
15277
old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15278
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15279
enable_shared_with_static_runtimes_F77=yes
15282
darwin* | rhapsody*)
15284
rhapsody* | darwin1.[012])
15285
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15288
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15289
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15291
case ${MACOSX_DEPLOYMENT_TARGET} in
15293
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15296
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15302
archive_cmds_need_lc_F77=no
15303
hardcode_direct_F77=no
15304
hardcode_automatic_F77=yes
15305
hardcode_shlibpath_var_F77=unsupported
15306
whole_archive_flag_spec_F77=''
15307
link_all_deplibs_F77=yes
15308
if test "$GCC" = yes ; then
15309
output_verbose_link_cmd='echo'
15310
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}"
15311
module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15312
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}"
15313
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}"
15315
case $cc_basename in
15317
output_verbose_link_cmd='echo'
15318
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15319
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15320
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15321
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}'
15322
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}'
15332
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15333
hardcode_libdir_flag_spec_F77='-L$libdir'
15334
hardcode_shlibpath_var_F77=no
15341
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15342
# support. Future versions do this automatically, but an explicit c++rt0.o
15343
# does not break anything, and helps significantly (at the cost of a little
15346
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15347
hardcode_libdir_flag_spec_F77='-R$libdir'
15348
hardcode_direct_F77=yes
15349
hardcode_shlibpath_var_F77=no
15352
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
15354
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15355
hardcode_direct_F77=yes
15356
hardcode_minus_L_F77=yes
15357
hardcode_shlibpath_var_F77=no
15360
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15361
freebsd* | dragonfly*)
15362
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15363
hardcode_libdir_flag_spec_F77='-R$libdir'
15364
hardcode_direct_F77=yes
15365
hardcode_shlibpath_var_F77=no
15369
if test "$GCC" = yes; then
15370
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'
15372
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'
15374
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15375
hardcode_libdir_separator_F77=:
15376
hardcode_direct_F77=yes
15378
# hardcode_minus_L: Not really in the search PATH,
15379
# but as the default location of the library.
15380
hardcode_minus_L_F77=yes
15381
export_dynamic_flag_spec_F77='${wl}-E'
15385
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15386
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15388
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15390
if test "$with_gnu_ld" = no; then
15391
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15392
hardcode_libdir_separator_F77=:
15394
hardcode_direct_F77=yes
15395
export_dynamic_flag_spec_F77='${wl}-E'
15397
# hardcode_minus_L: Not really in the search PATH,
15398
# but as the default location of the library.
15399
hardcode_minus_L_F77=yes
15404
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15407
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15410
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15413
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15419
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15422
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15425
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15429
if test "$with_gnu_ld" = no; then
15430
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15431
hardcode_libdir_separator_F77=:
15435
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15436
hardcode_direct_F77=no
15437
hardcode_shlibpath_var_F77=no
15440
hardcode_direct_F77=yes
15441
export_dynamic_flag_spec_F77='${wl}-E'
15443
# hardcode_minus_L: Not really in the search PATH,
15444
# but as the default location of the library.
15445
hardcode_minus_L_F77=yes
15451
irix5* | irix6* | nonstopux*)
15452
if test "$GCC" = yes; then
15453
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'
15455
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'
15456
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15458
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15459
hardcode_libdir_separator_F77=:
15460
link_all_deplibs_F77=yes
15464
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15465
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15467
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15469
hardcode_libdir_flag_spec_F77='-R$libdir'
15470
hardcode_direct_F77=yes
15471
hardcode_shlibpath_var_F77=no
15475
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15476
hardcode_direct_F77=yes
15477
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15478
hardcode_libdir_separator_F77=:
15479
hardcode_shlibpath_var_F77=no
15483
if test -f /usr/libexec/ld.so; then
15484
hardcode_direct_F77=yes
15485
hardcode_shlibpath_var_F77=no
15486
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15487
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15488
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15489
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15490
export_dynamic_flag_spec_F77='${wl}-E'
15493
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15494
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15495
hardcode_libdir_flag_spec_F77='-R$libdir'
15498
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15499
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15509
hardcode_libdir_flag_spec_F77='-L$libdir'
15510
hardcode_minus_L_F77=yes
15511
allow_undefined_flag_F77=unsupported
15512
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'
15513
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15517
if test "$GCC" = yes; then
15518
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15519
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'
15521
allow_undefined_flag_F77=' -expect_unresolved \*'
15522
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'
15524
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15525
hardcode_libdir_separator_F77=:
15528
osf4* | osf5*) # as osf3* with the addition of -msym flag
15529
if test "$GCC" = yes; then
15530
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15531
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'
15532
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15534
allow_undefined_flag_F77=' -expect_unresolved \*'
15535
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'
15536
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~
15537
$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'
15539
# Both c and cxx compiler support -rpath directly
15540
hardcode_libdir_flag_spec_F77='-rpath $libdir'
15542
hardcode_libdir_separator_F77=:
15546
no_undefined_flag_F77=' -z text'
15547
if test "$GCC" = yes; then
15549
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15550
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15551
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15554
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15555
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15556
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15558
hardcode_libdir_flag_spec_F77='-R$libdir'
15559
hardcode_shlibpath_var_F77=no
15561
solaris2.[0-5] | solaris2.[0-5].*) ;;
15563
# The compiler driver will combine and reorder linker options,
15564
# but understands `-z linker_flag'. GCC discards it without `$wl',
15565
# but is careful enough not to reorder.
15566
# Supported since Solaris 2.6 (maybe 2.5.1?)
15567
if test "$GCC" = yes; then
15568
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15570
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15574
link_all_deplibs_F77=yes
15578
if test "x$host_vendor" = xsequent; then
15579
# Use $CC to link under sequent, because it throws in some extra .o
15580
# files that make .init and .fini sections work.
15581
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15583
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15585
hardcode_libdir_flag_spec_F77='-L$libdir'
15586
hardcode_direct_F77=yes
15587
hardcode_minus_L_F77=yes
15588
hardcode_shlibpath_var_F77=no
15592
case $host_vendor in
15594
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15595
hardcode_direct_F77=yes # is this really true???
15598
## LD is ld it makes a PLAMLIB
15599
## CC just makes a GrossModule.
15600
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15601
reload_cmds_F77='$CC -r -o $output$reload_objs'
15602
hardcode_direct_F77=no
15605
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15606
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15609
runpath_var='LD_RUN_PATH'
15610
hardcode_shlibpath_var_F77=no
15614
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15615
hardcode_shlibpath_var_F77=no
15616
export_dynamic_flag_spec_F77='-Bexport'
15620
if test -d /usr/nec; then
15621
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15622
hardcode_shlibpath_var_F77=no
15623
runpath_var=LD_RUN_PATH
15624
hardcode_runpath_var=yes
15629
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15630
no_undefined_flag_F77='${wl}-z,text'
15631
archive_cmds_need_lc_F77=no
15632
hardcode_shlibpath_var_F77=no
15633
runpath_var='LD_RUN_PATH'
15635
if test "$GCC" = yes; then
15636
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15637
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15639
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15640
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15644
sysv5* | sco3.2v5* | sco5v6*)
15645
# Note: We can NOT use -z defs as we might desire, because we do not
15646
# link with -lc, and that would cause any symbols used from libc to
15647
# always be unresolved, which means just about no library would
15648
# ever link correctly. If we're not using GNU ld we use -z text
15649
# though, which does catch some bad symbols but isn't as heavy-handed
15651
no_undefined_flag_F77='${wl}-z,text'
15652
allow_undefined_flag_F77='${wl}-z,nodefs'
15653
archive_cmds_need_lc_F77=no
15654
hardcode_shlibpath_var_F77=no
15655
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15656
hardcode_libdir_separator_F77=':'
15657
link_all_deplibs_F77=yes
15658
export_dynamic_flag_spec_F77='${wl}-Bexport'
15659
runpath_var='LD_RUN_PATH'
15661
if test "$GCC" = yes; then
15662
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15663
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15665
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15666
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15671
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15672
hardcode_libdir_flag_spec_F77='-L$libdir'
15673
hardcode_shlibpath_var_F77=no
15682
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15683
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15684
test "$ld_shlibs_F77" = no && can_build_shared=no
15687
# Do we need to explicitly link libc?
15689
case "x$archive_cmds_need_lc_F77" in
15691
# Assume -lc should be added
15692
archive_cmds_need_lc_F77=yes
15694
if test "$enable_shared" = yes && test "$GCC" = yes; then
15695
case $archive_cmds_F77 in
15697
# FIXME: we may have to deal with multi-command sequences.
15700
# Test whether the compiler implicitly links with -lc since on some
15701
# systems, -lgcc has to come before -lc. If gcc already passes -lc
15702
# to ld, don't add -lc before -lgcc.
15703
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15704
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15706
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15708
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15709
(eval $ac_compile) 2>&5
15711
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712
(exit $ac_status); } 2>conftest.err; then
15715
libobjs=conftest.$ac_objext
15717
wl=$lt_prog_compiler_wl_F77
15718
pic_flag=$lt_prog_compiler_pic_F77
15724
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15725
allow_undefined_flag_F77=
15726
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15727
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15729
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730
(exit $ac_status); }
15732
archive_cmds_need_lc_F77=no
15734
archive_cmds_need_lc_F77=yes
15736
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15738
cat conftest.err 1>&5
15741
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15742
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15749
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15750
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15751
library_names_spec=
15752
libname_spec='lib$name'
15756
postuninstall_cmds=
15760
shlibpath_overrides_runpath=unknown
15762
dynamic_linker="$host_os ld.so"
15763
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15765
need_lib_prefix=unknown
15766
hardcode_into_libs=no
15768
# when you set need_version to no, make sure it does not cause -set_version
15769
# flags to be left without arguments
15770
need_version=unknown
15775
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15776
shlibpath_var=LIBPATH
15778
# AIX 3 has no versioning support, so we append a major version to the name.
15779
soname_spec='${libname}${release}${shared_ext}$major'
15786
hardcode_into_libs=yes
15787
if test "$host_cpu" = ia64; then
15788
# AIX 5 supports IA64
15789
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15790
shlibpath_var=LD_LIBRARY_PATH
15792
# With GCC up to 2.95.x, collect2 would create an import file
15793
# for dependence libraries. The import file would start with
15794
# the line `#! .'. This would cause the generated library to
15795
# depend on `.', always an invalid library. This was fixed in
15796
# development snapshots of GCC prior to 3.0.
15798
aix4 | aix4.[01] | aix4.[01].*)
15799
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15801
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15804
can_build_shared=no
15808
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15809
# soname into executable. Probably we can add versioning support to
15810
# collect2, so additional links can be useful in future.
15811
if test "$aix_use_runtimelinking" = yes; then
15812
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
15813
# instead of lib<name>.a to let people know that these are not
15814
# typical AIX shared libraries.
15815
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15817
# We preserve .a as extension for shared libraries through AIX4.2
15818
# and later when we are not doing run time linking.
15819
library_names_spec='${libname}${release}.a $libname.a'
15820
soname_spec='${libname}${release}${shared_ext}$major'
15822
shlibpath_var=LIBPATH
15827
library_names_spec='$libname.ixlibrary $libname.a'
15828
# Create ${libname}_ixlibrary.a entries in /sys/libs.
15829
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'
15833
library_names_spec='${libname}${shared_ext}'
15834
dynamic_linker="$host_os ld.so"
15835
shlibpath_var=LIBRARY_PATH
15841
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15842
soname_spec='${libname}${release}${shared_ext}$major'
15843
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15844
shlibpath_var=LD_LIBRARY_PATH
15845
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15846
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15847
# the default ld.so.conf also contains /usr/contrib/lib and
15848
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15849
# libtool to hard-code these into programs
15852
cygwin* | mingw* | pw32*)
15853
version_type=windows
15858
case $GCC,$host_os in
15859
yes,cygwin* | yes,mingw* | yes,pw32*)
15860
library_names_spec='$libname.dll.a'
15861
# DLL is installed to $(libdir)/../bin by postinstall_cmds
15862
postinstall_cmds='base_file=`basename \${file}`~
15863
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15864
dldir=$destdir/`dirname \$dlpath`~
15865
test -d \$dldir || mkdir -p \$dldir~
15866
$install_prog $dir/$dlname \$dldir/$dlname~
15867
chmod a+x \$dldir/$dlname'
15868
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15869
dlpath=$dir/\$dldll~
15871
shlibpath_overrides_runpath=yes
15875
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
15876
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15877
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15880
# MinGW DLLs use traditional 'lib' prefix
15881
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15882
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15883
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15884
# It is most probably a Windows format PATH printed by
15885
# mingw gcc, but we are running on Cygwin. Gcc prints its search
15886
# path with ; separators, and with drive letters. We can handle the
15887
# drive letters (cygwin fileutils understands them), so leave them,
15888
# especially as we might pass files found there to a mingw objdump,
15889
# which wouldn't understand a cygwinified path. Ahh.
15890
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15892
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15896
# pw32 DLLs use 'pw' prefix rather than 'lib'
15897
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15903
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15906
dynamic_linker='Win32 ld.exe'
15907
# FIXME: first we should search . and the directory the executable is in
15911
darwin* | rhapsody*)
15912
dynamic_linker="$host_os dyld"
15913
version_type=darwin
15916
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15917
soname_spec='${libname}${release}${major}$shared_ext'
15918
shlibpath_overrides_runpath=yes
15919
shlibpath_var=DYLD_LIBRARY_PATH
15920
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15922
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15929
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15930
soname_spec='${libname}${release}${shared_ext}$major'
15931
shlibpath_var=LD_LIBRARY_PATH
15938
freebsd* | dragonfly*)
15939
# DragonFly does not have aout. When/if they implement a new
15940
# versioning mechanism, adjust this.
15941
if test -x /usr/bin/objformat; then
15942
objformat=`/usr/bin/objformat`
15945
freebsd[123]*) objformat=aout ;;
15946
*) objformat=elf ;;
15949
# Handle Gentoo/FreeBSD as it was Linux
15950
case $host_vendor in
15952
version_type=linux ;;
15954
version_type=freebsd-$objformat ;;
15957
case $version_type in
15959
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15964
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15968
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15969
soname_spec='${libname}${release}${shared_ext}$major'
15974
shlibpath_var=LD_LIBRARY_PATH
15977
shlibpath_overrides_runpath=yes
15979
freebsd3.[01]* | freebsdelf3.[01]*)
15980
shlibpath_overrides_runpath=yes
15981
hardcode_into_libs=yes
15983
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15984
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15985
shlibpath_overrides_runpath=no
15986
hardcode_into_libs=yes
15988
*) # from 4.6 on, and DragonFly
15989
shlibpath_overrides_runpath=yes
15990
hardcode_into_libs=yes
15999
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16000
soname_spec='${libname}${release}${shared_ext}$major'
16001
shlibpath_var=LD_LIBRARY_PATH
16002
hardcode_into_libs=yes
16005
hpux9* | hpux10* | hpux11*)
16006
# Give a soname corresponding to the major version so that dld.sl refuses to
16007
# link against other versions.
16014
hardcode_into_libs=yes
16015
dynamic_linker="$host_os dld.so"
16016
shlibpath_var=LD_LIBRARY_PATH
16017
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16018
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16019
soname_spec='${libname}${release}${shared_ext}$major'
16020
if test "X$HPUX_IA64_MODE" = X32; then
16021
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16023
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16025
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16029
hardcode_into_libs=yes
16030
dynamic_linker="$host_os dld.sl"
16031
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16032
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16033
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16034
soname_spec='${libname}${release}${shared_ext}$major'
16035
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16036
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16040
dynamic_linker="$host_os dld.sl"
16041
shlibpath_var=SHLIB_PATH
16042
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16043
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16044
soname_spec='${libname}${release}${shared_ext}$major'
16047
# HP-UX runs *really* slowly unless shared libraries are mode 555.
16048
postinstall_cmds='chmod 555 $lib'
16055
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16056
soname_spec='${libname}${release}${shared_ext}$major'
16057
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16058
shlibpath_var=LD_LIBRARY_PATH
16059
shlibpath_overrides_runpath=no
16060
hardcode_into_libs=yes
16063
irix5* | irix6* | nonstopux*)
16065
nonstopux*) version_type=nonstopux ;;
16067
if test "$lt_cv_prog_gnu_ld" = yes; then
16075
soname_spec='${libname}${release}${shared_ext}$major'
16076
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16078
irix5* | nonstopux*)
16079
libsuff= shlibsuff=
16082
case $LD in # libtool.m4 will add one of these switches to LD
16083
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16084
libsuff= shlibsuff= libmagic=32-bit;;
16085
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16086
libsuff=32 shlibsuff=N32 libmagic=N32;;
16087
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16088
libsuff=64 shlibsuff=64 libmagic=64-bit;;
16089
*) libsuff= shlibsuff= libmagic=never-match;;
16093
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16094
shlibpath_overrides_runpath=no
16095
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16096
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16097
hardcode_into_libs=yes
16100
# No shared lib support for Linux oldld, aout, or coff.
16101
linux*oldld* | linux*aout* | linux*coff*)
16105
# This must be Linux ELF.
16106
linux* | k*bsd*-gnu)
16110
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16111
soname_spec='${libname}${release}${shared_ext}$major'
16112
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16113
shlibpath_var=LD_LIBRARY_PATH
16114
shlibpath_overrides_runpath=no
16115
# This implies no fast_install, which is unacceptable.
16116
# Some rework will be needed to allow for fast_install
16117
# before this can be enabled.
16118
hardcode_into_libs=yes
16120
# Append ld.so.conf contents to the search path
16121
if test -f /etc/ld.so.conf; then
16122
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' ' '`
16123
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16126
# We used to test for /lib/ld.so.1 and disable shared libraries on
16127
# powerpc, because MkLinux only supported shared libraries with the
16128
# GNU dynamic linker. Since this was broken with cross compilers,
16129
# most powerpc-linux boxes support dynamic linking these days and
16130
# people can always --disable-shared, the test was removed, and we
16131
# assume the GNU/Linux dynamic linker is in use.
16132
dynamic_linker='GNU/Linux ld.so'
16139
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16140
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16141
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16142
dynamic_linker='NetBSD (a.out) ld.so'
16144
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16145
soname_spec='${libname}${release}${shared_ext}$major'
16146
dynamic_linker='NetBSD ld.elf_so'
16148
shlibpath_var=LD_LIBRARY_PATH
16149
shlibpath_overrides_runpath=yes
16150
hardcode_into_libs=yes
16155
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16156
shlibpath_var=LD_LIBRARY_PATH
16157
shlibpath_overrides_runpath=yes
16164
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16165
soname_spec='${libname}${release}${shared_ext}$major'
16166
shlibpath_var=LD_LIBRARY_PATH
16167
shlibpath_overrides_runpath=yes
16172
sys_lib_dlsearch_path_spec="/usr/lib"
16174
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16176
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16177
*) need_version=no ;;
16179
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16180
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16181
shlibpath_var=LD_LIBRARY_PATH
16182
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16184
openbsd2.[89] | openbsd2.[89].*)
16185
shlibpath_overrides_runpath=no
16188
shlibpath_overrides_runpath=yes
16192
shlibpath_overrides_runpath=yes
16197
libname_spec='$name'
16200
library_names_spec='$libname${shared_ext} $libname.a'
16201
dynamic_linker='OS/2 ld.exe'
16202
shlibpath_var=LIBPATH
16205
osf3* | osf4* | osf5*)
16209
soname_spec='${libname}${release}${shared_ext}$major'
16210
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16211
shlibpath_var=LD_LIBRARY_PATH
16212
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16213
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16224
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16225
soname_spec='${libname}${release}${shared_ext}$major'
16226
shlibpath_var=LD_LIBRARY_PATH
16227
shlibpath_overrides_runpath=yes
16228
hardcode_into_libs=yes
16229
# ldd complains unless libraries are executable
16230
postinstall_cmds='chmod +x $lib'
16235
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16236
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16237
shlibpath_var=LD_LIBRARY_PATH
16238
shlibpath_overrides_runpath=yes
16239
if test "$with_gnu_ld" = yes; then
16247
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16248
soname_spec='${libname}${release}${shared_ext}$major'
16249
shlibpath_var=LD_LIBRARY_PATH
16250
case $host_vendor in
16252
shlibpath_overrides_runpath=no
16254
export_dynamic_flag_spec='${wl}-Blargedynsym'
16255
runpath_var=LD_RUN_PATH
16263
shlibpath_overrides_runpath=no
16264
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16270
if test -d /usr/nec ;then
16272
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16273
soname_spec='$libname${shared_ext}.$major'
16274
shlibpath_var=LD_LIBRARY_PATH
16278
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16279
version_type=freebsd-elf
16282
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16283
soname_spec='${libname}${release}${shared_ext}$major'
16284
shlibpath_var=LD_LIBRARY_PATH
16285
hardcode_into_libs=yes
16286
if test "$with_gnu_ld" = yes; then
16287
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16288
shlibpath_overrides_runpath=no
16290
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16291
shlibpath_overrides_runpath=yes
16294
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16298
sys_lib_dlsearch_path_spec='/usr/lib'
16303
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16304
soname_spec='${libname}${release}${shared_ext}$major'
16305
shlibpath_var=LD_LIBRARY_PATH
16312
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16313
echo "${ECHO_T}$dynamic_linker" >&6; }
16314
test "$dynamic_linker" = no && can_build_shared=no
16316
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16317
echo $ECHO_N "(cached) $ECHO_C" >&6
16319
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16322
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16323
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16324
echo $ECHO_N "(cached) $ECHO_C" >&6
16326
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16329
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16331
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16332
if test "$GCC" = yes; then
16333
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16336
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16337
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16338
hardcode_action_F77=
16339
if test -n "$hardcode_libdir_flag_spec_F77" || \
16340
test -n "$runpath_var_F77" || \
16341
test "X$hardcode_automatic_F77" = "Xyes" ; then
16343
# We can hardcode non-existant directories.
16344
if test "$hardcode_direct_F77" != no &&
16345
# If the only mechanism to avoid hardcoding is shlibpath_var, we
16346
# have to relink, otherwise we might link with an installed library
16347
# when we should be linking with a yet-to-be-installed one
16348
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16349
test "$hardcode_minus_L_F77" != no; then
16350
# Linking always hardcodes the temporary library directory.
16351
hardcode_action_F77=relink
16353
# We can link without hardcoding, and we can hardcode nonexisting dirs.
16354
hardcode_action_F77=immediate
16357
# We cannot hardcode anything, or else we can only hardcode existing
16359
hardcode_action_F77=unsupported
16361
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16362
echo "${ECHO_T}$hardcode_action_F77" >&6; }
16364
if test "$hardcode_action_F77" = relink; then
16365
# Fast installation is not supported
16366
enable_fast_install=no
16367
elif test "$shlibpath_overrides_runpath" = yes ||
16368
test "$enable_shared" = no; then
16369
# Fast installation is not necessary
16370
enable_fast_install=needless
16374
# The else clause should only fire when bootstrapping the
16375
# libtool distribution, otherwise you forgot to ship ltmain.sh
16376
# with your package, and you will get complaints that there are
16377
# no rules to generate ltmain.sh.
16378
if test -f "$ltmain"; then
16379
# See if we are running on zsh, and set the options which allow our commands through
16380
# without removal of \ escapes.
16381
if test -n "${ZSH_VERSION+set}" ; then
16382
setopt NO_GLOB_SUBST
16384
# Now quote all the things that may contain metacharacters while being
16385
# careful not to overquote the AC_SUBSTed values. We take copies of the
16386
# variables and quote the copies for generation of the libtool script.
16387
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16389
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16390
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16391
deplibs_check_method reload_flag reload_cmds need_locks \
16392
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16393
lt_cv_sys_global_symbol_to_c_name_address \
16394
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16395
old_postinstall_cmds old_postuninstall_cmds \
16399
lt_prog_compiler_wl_F77 \
16400
lt_prog_compiler_pic_F77 \
16401
lt_prog_compiler_static_F77 \
16402
lt_prog_compiler_no_builtin_flag_F77 \
16403
export_dynamic_flag_spec_F77 \
16404
thread_safe_flag_spec_F77 \
16405
whole_archive_flag_spec_F77 \
16406
enable_shared_with_static_runtimes_F77 \
16407
old_archive_cmds_F77 \
16408
old_archive_from_new_cmds_F77 \
16409
predep_objects_F77 \
16410
postdep_objects_F77 \
16413
compiler_lib_search_path_F77 \
16414
compiler_lib_search_dirs_F77 \
16416
archive_expsym_cmds_F77 \
16417
postinstall_cmds_F77 \
16418
postuninstall_cmds_F77 \
16419
old_archive_from_expsyms_cmds_F77 \
16420
allow_undefined_flag_F77 \
16421
no_undefined_flag_F77 \
16422
export_symbols_cmds_F77 \
16423
hardcode_libdir_flag_spec_F77 \
16424
hardcode_libdir_flag_spec_ld_F77 \
16425
hardcode_libdir_separator_F77 \
16426
hardcode_automatic_F77 \
16428
module_expsym_cmds_F77 \
16429
lt_cv_prog_compiler_c_o_F77 \
16430
fix_srcfile_path_F77 \
16431
exclude_expsyms_F77 \
16432
include_expsyms_F77; do
16435
old_archive_cmds_F77 | \
16436
old_archive_from_new_cmds_F77 | \
16437
archive_cmds_F77 | \
16438
archive_expsym_cmds_F77 | \
16439
module_cmds_F77 | \
16440
module_expsym_cmds_F77 | \
16441
old_archive_from_expsyms_cmds_F77 | \
16442
export_symbols_cmds_F77 | \
16443
extract_expsyms_cmds | reload_cmds | finish_cmds | \
16444
postinstall_cmds | postuninstall_cmds | \
16445
old_postinstall_cmds | old_postuninstall_cmds | \
16446
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16447
# Double-quote double-evaled strings.
16448
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16451
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16457
*'\$0 --fallback-echo"')
16458
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16464
cat <<__EOF__ >> "$cfgfile"
16465
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16467
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16469
# Shell to use when invoking shell scripts.
16472
# Whether or not to build shared libraries.
16473
build_libtool_libs=$enable_shared
16475
# Whether or not to build static libraries.
16476
build_old_libs=$enable_static
16478
# Whether or not to add -lc for building shared libraries.
16479
build_libtool_need_lc=$archive_cmds_need_lc_F77
16481
# Whether or not to disallow shared libs when runtime libs are static
16482
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16484
# Whether or not to optimize for fast installation.
16485
fast_install=$enable_fast_install
16488
host_alias=$host_alias
16492
# The build system.
16493
build_alias=$build_alias
16497
# An echo program that does not interpret backslashes.
16502
AR_FLAGS=$lt_AR_FLAGS
16507
# LTCC compiler flags.
16508
LTCFLAGS=$lt_LTCFLAGS
16510
# A language-specific compiler.
16511
CC=$lt_compiler_F77
16513
# Is the compiler the GNU C compiler?
16519
# The linker used to build libraries.
16522
# Whether we need hard or soft links.
16525
# A BSD-compatible nm program.
16528
# A symbol stripping program
16531
# Used to examine libraries when file_magic_cmd begins "file"
16532
MAGIC_CMD=$MAGIC_CMD
16534
# Used on cygwin: DLL creation program.
16537
# Used on cygwin: object dumper.
16540
# Used on cygwin: assembler.
16543
# The name of the directory that contains temporary libtool files.
16546
# How to create reloadable object files.
16547
reload_flag=$lt_reload_flag
16548
reload_cmds=$lt_reload_cmds
16550
# How to pass a linker flag through the compiler.
16551
wl=$lt_lt_prog_compiler_wl_F77
16553
# Object file suffix (normally "o").
16554
objext="$ac_objext"
16556
# Old archive suffix (normally "a").
16559
# Shared library suffix (normally ".so").
16560
shrext_cmds='$shrext_cmds'
16562
# Executable file suffix (normally "").
16565
# Additional compiler flags for building library objects.
16566
pic_flag=$lt_lt_prog_compiler_pic_F77
16569
# What is the maximum length of a command?
16570
max_cmd_len=$lt_cv_sys_max_cmd_len
16572
# Does compiler simultaneously support -c and -o options?
16573
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16575
# Must we lock files when doing compilation?
16576
need_locks=$lt_need_locks
16578
# Do we need the lib prefix for modules?
16579
need_lib_prefix=$need_lib_prefix
16581
# Do we need a version for libraries?
16582
need_version=$need_version
16584
# Whether dlopen is supported.
16585
dlopen_support=$enable_dlopen
16587
# Whether dlopen of programs is supported.
16588
dlopen_self=$enable_dlopen_self
16590
# Whether dlopen of statically linked programs is supported.
16591
dlopen_self_static=$enable_dlopen_self_static
16593
# Compiler flag to prevent dynamic linking.
16594
link_static_flag=$lt_lt_prog_compiler_static_F77
16596
# Compiler flag to turn off builtin functions.
16597
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16599
# Compiler flag to allow reflexive dlopens.
16600
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16602
# Compiler flag to generate shared objects directly from archives.
16603
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16605
# Compiler flag to generate thread-safe objects.
16606
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16608
# Library versioning type.
16609
version_type=$version_type
16611
# Format of library name prefix.
16612
libname_spec=$lt_libname_spec
16614
# List of archive names. First name is the real one, the rest are links.
16615
# The last name is the one that the linker finds with -lNAME.
16616
library_names_spec=$lt_library_names_spec
16618
# The coded name of the library, if different from the real name.
16619
soname_spec=$lt_soname_spec
16621
# Commands used to build and install an old-style archive.
16623
old_archive_cmds=$lt_old_archive_cmds_F77
16624
old_postinstall_cmds=$lt_old_postinstall_cmds
16625
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16627
# Create an old-style archive from a shared archive.
16628
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16630
# Create a temporary old-style archive to link instead of a shared archive.
16631
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16633
# Commands used to build and install a shared archive.
16634
archive_cmds=$lt_archive_cmds_F77
16635
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16636
postinstall_cmds=$lt_postinstall_cmds
16637
postuninstall_cmds=$lt_postuninstall_cmds
16639
# Commands used to build a loadable module (assumed same as above if empty)
16640
module_cmds=$lt_module_cmds_F77
16641
module_expsym_cmds=$lt_module_expsym_cmds_F77
16643
# Commands to strip libraries.
16644
old_striplib=$lt_old_striplib
16645
striplib=$lt_striplib
16647
# Dependencies to place before the objects being linked to create a
16649
predep_objects=$lt_predep_objects_F77
16651
# Dependencies to place after the objects being linked to create a
16653
postdep_objects=$lt_postdep_objects_F77
16655
# Dependencies to place before the objects being linked to create a
16657
predeps=$lt_predeps_F77
16659
# Dependencies to place after the objects being linked to create a
16661
postdeps=$lt_postdeps_F77
16663
# The directories searched by this compiler when creating a shared
16665
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16667
# The library search path used internally by the compiler when linking
16668
# a shared library.
16669
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16671
# Method to check whether dependent libraries are shared objects.
16672
deplibs_check_method=$lt_deplibs_check_method
16674
# Command to use when deplibs_check_method == file_magic.
16675
file_magic_cmd=$lt_file_magic_cmd
16677
# Flag that allows shared libraries with undefined symbols to be built.
16678
allow_undefined_flag=$lt_allow_undefined_flag_F77
16680
# Flag that forces no undefined symbols.
16681
no_undefined_flag=$lt_no_undefined_flag_F77
16683
# Commands used to finish a libtool library installation in a directory.
16684
finish_cmds=$lt_finish_cmds
16686
# Same as above, but a single script fragment to be evaled but not shown.
16687
finish_eval=$lt_finish_eval
16689
# Take the output of nm and produce a listing of raw symbols and C names.
16690
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16692
# Transform the output of nm in a proper C declaration
16693
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16695
# Transform the output of nm in a C name address pair
16696
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16698
# This is the shared library runtime path variable.
16699
runpath_var=$runpath_var
16701
# This is the shared library path variable.
16702
shlibpath_var=$shlibpath_var
16704
# Is shlibpath searched before the hard-coded library search path?
16705
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16707
# How to hardcode a shared library path into an executable.
16708
hardcode_action=$hardcode_action_F77
16710
# Whether we should hardcode library paths into libraries.
16711
hardcode_into_libs=$hardcode_into_libs
16713
# Flag to hardcode \$libdir into a binary during linking.
16714
# This must work even if \$libdir does not exist.
16715
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16717
# If ld is used when linking, flag to hardcode \$libdir into
16718
# a binary during linking. This must work even if \$libdir does
16720
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16722
# Whether we need a single -rpath flag with a separated argument.
16723
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16725
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16726
# resulting binary.
16727
hardcode_direct=$hardcode_direct_F77
16729
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16730
# resulting binary.
16731
hardcode_minus_L=$hardcode_minus_L_F77
16733
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16734
# the resulting binary.
16735
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16737
# Set to yes if building a shared library automatically hardcodes DIR into the library
16738
# and all subsequent libraries and executables linked against it.
16739
hardcode_automatic=$hardcode_automatic_F77
16741
# Variables whose values should be saved in libtool wrapper scripts and
16742
# restored at relink time.
16743
variables_saved_for_relink="$variables_saved_for_relink"
16745
# Whether libtool must link a program against all its dependency libraries.
16746
link_all_deplibs=$link_all_deplibs_F77
16748
# Compile-time system search path for libraries
16749
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16751
# Run-time system search path for libraries
16752
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16754
# Fix the shell variable \$srcfile for the compiler.
16755
fix_srcfile_path=$lt_fix_srcfile_path
16757
# Set to yes if exported symbols are required.
16758
always_export_symbols=$always_export_symbols_F77
16760
# The commands to list exported symbols.
16761
export_symbols_cmds=$lt_export_symbols_cmds_F77
16763
# The commands to extract the exported symbol list from a shared archive.
16764
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16766
# Symbols that should not be listed in the preloaded symbols.
16767
exclude_expsyms=$lt_exclude_expsyms_F77
16769
# Symbols that must always be exported.
16770
include_expsyms=$lt_include_expsyms_F77
16772
# ### END LIBTOOL TAG CONFIG: $tagname
16778
# If there is no Makefile yet, we rely on a make rule to execute
16779
# `config.status --recheck' to rerun these tests and create the
16780
# libtool script then.
16781
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16782
if test -f "$ltmain_in"; then
16783
test -f Makefile && make "$ltmain"
16789
ac_cpp='$CPP $CPPFLAGS'
16790
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16791
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16792
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16802
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16805
# Source file extension for Java test sources.
16808
# Object file extension for compiled Java test sources.
16812
# Code to be used in simple compile tests
16813
lt_simple_compile_test_code="class foo {}"
16815
# Code to be used in simple link tests
16816
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16818
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16820
# If no C compiler was specified, use CC.
16823
# If no C compiler flags were specified, use CFLAGS.
16824
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16826
# Allow CC to be a program name with arguments.
16830
# save warnings/boilerplate of simple test code
16831
ac_outfile=conftest.$ac_objext
16832
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16833
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16834
_lt_compiler_boilerplate=`cat conftest.err`
16837
ac_outfile=conftest.$ac_objext
16838
echo "$lt_simple_link_test_code" >conftest.$ac_ext
16839
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16840
_lt_linker_boilerplate=`cat conftest.err`
16844
# Allow CC to be a program name with arguments.
16849
for cc_temp in $compiler""; do
16851
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16852
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16857
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16860
# GCJ did not exist at the time GCC didn't implicitly link libc in.
16861
archive_cmds_need_lc_GCJ=no
16863
old_archive_cmds_GCJ=$old_archive_cmds
16866
lt_prog_compiler_no_builtin_flag_GCJ=
16868
if test "$GCC" = yes; then
16869
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16872
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16873
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16874
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16875
echo $ECHO_N "(cached) $ECHO_C" >&6
16877
lt_cv_prog_compiler_rtti_exceptions=no
16878
ac_outfile=conftest.$ac_objext
16879
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16880
lt_compiler_flag="-fno-rtti -fno-exceptions"
16881
# Insert the option either (1) after the last *FLAGS variable, or
16882
# (2) before a word containing "conftest.", or (3) at the end.
16883
# Note that $ac_compile itself does not contain backslashes and begins
16884
# with a dollar sign (not a hyphen), so the echo should work correctly.
16885
# The option is referenced via a variable to avoid confusing sed.
16886
lt_compile=`echo "$ac_compile" | $SED \
16887
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16888
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16889
-e 's:$: $lt_compiler_flag:'`
16890
(eval echo "\"\$as_me:16890: $lt_compile\"" >&5)
16891
(eval "$lt_compile" 2>conftest.err)
16893
cat conftest.err >&5
16894
echo "$as_me:16894: \$? = $ac_status" >&5
16895
if (exit $ac_status) && test -s "$ac_outfile"; then
16896
# The compiler can only warn and ignore the option if not recognized
16897
# So say no if there are warnings other than the usual output.
16898
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16899
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16900
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16901
lt_cv_prog_compiler_rtti_exceptions=yes
16907
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16908
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16910
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16911
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16918
lt_prog_compiler_wl_GCJ=
16919
lt_prog_compiler_pic_GCJ=
16920
lt_prog_compiler_static_GCJ=
16922
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16923
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16925
if test "$GCC" = yes; then
16926
lt_prog_compiler_wl_GCJ='-Wl,'
16927
lt_prog_compiler_static_GCJ='-static'
16931
# All AIX code is PIC.
16932
if test "$host_cpu" = ia64; then
16933
# AIX 5 now supports IA64 processor
16934
lt_prog_compiler_static_GCJ='-Bstatic'
16939
# FIXME: we need at least 68020 code to build shared libraries, but
16940
# adding the `-m68020' flag to GCC prevents building anything better,
16942
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16945
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16946
# PIC is the default for these OSes.
16949
mingw* | cygwin* | pw32* | os2*)
16950
# This hack is so that the source file can tell whether it is being
16951
# built for inclusion in a dll (and should export symbols for example).
16952
# Although the cygwin gcc ignores -fPIC, still need this for old-style
16953
# (--disable-auto-import) libraries
16957
darwin* | rhapsody*)
16958
# PIC is the default on this platform
16959
# Common symbols not allowed in MH_DYLIB files
16960
lt_prog_compiler_pic_GCJ='-fno-common'
16964
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
16965
# Instead, we relocate shared libraries at runtime.
16969
# Just because we use GCC doesn't mean we suddenly get shared libraries
16970
# on systems that don't support them.
16971
lt_prog_compiler_can_build_shared_GCJ=no
16976
if test -d /usr/nec; then
16977
lt_prog_compiler_pic_GCJ=-Kconform_pic
16982
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16983
# not for PA HP-UX.
16989
lt_prog_compiler_pic_GCJ='-fPIC'
16995
lt_prog_compiler_pic_GCJ='-fPIC'
16999
# PORTME Check for flag to pass linker flags through the system compiler.
17002
lt_prog_compiler_wl_GCJ='-Wl,'
17003
if test "$host_cpu" = ia64; then
17004
# AIX 5 now supports IA64 processor
17005
lt_prog_compiler_static_GCJ='-Bstatic'
17007
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17011
# PIC is the default on this platform
17012
# Common symbols not allowed in MH_DYLIB files
17013
case $cc_basename in
17015
lt_prog_compiler_pic_GCJ='-qnocommon'
17016
lt_prog_compiler_wl_GCJ='-Wl,'
17021
mingw* | cygwin* | pw32* | os2*)
17022
# This hack is so that the source file can tell whether it is being
17023
# built for inclusion in a dll (and should export symbols for example).
17027
hpux9* | hpux10* | hpux11*)
17028
lt_prog_compiler_wl_GCJ='-Wl,'
17029
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17030
# not for PA HP-UX.
17036
lt_prog_compiler_pic_GCJ='+Z'
17039
# Is there a better lt_prog_compiler_static that works with the bundled CC?
17040
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17043
irix5* | irix6* | nonstopux*)
17044
lt_prog_compiler_wl_GCJ='-Wl,'
17045
# PIC (with -KPIC) is the default.
17046
lt_prog_compiler_static_GCJ='-non_shared'
17050
lt_prog_compiler_pic_GCJ='-KPIC'
17051
lt_prog_compiler_static_GCJ='-Bstatic'
17054
linux* | k*bsd*-gnu)
17055
case $cc_basename in
17057
lt_prog_compiler_wl_GCJ='-Wl,'
17058
lt_prog_compiler_pic_GCJ='-KPIC'
17059
lt_prog_compiler_static_GCJ='-static'
17061
pgcc* | pgf77* | pgf90* | pgf95*)
17062
# Portland Group compilers (*not* the Pentium gcc compiler,
17063
# which looks to be a dead project)
17064
lt_prog_compiler_wl_GCJ='-Wl,'
17065
lt_prog_compiler_pic_GCJ='-fpic'
17066
lt_prog_compiler_static_GCJ='-Bstatic'
17069
lt_prog_compiler_wl_GCJ='-Wl,'
17070
# All Alpha code is PIC.
17071
lt_prog_compiler_static_GCJ='-non_shared'
17074
case `$CC -V 2>&1 | sed 5q` in
17077
lt_prog_compiler_pic_GCJ='-KPIC'
17078
lt_prog_compiler_static_GCJ='-Bstatic'
17079
lt_prog_compiler_wl_GCJ='-Wl,'
17082
# Sun Fortran 8.3 passes all unrecognized flags to the linker
17083
lt_prog_compiler_pic_GCJ='-KPIC'
17084
lt_prog_compiler_static_GCJ='-Bstatic'
17085
lt_prog_compiler_wl_GCJ=''
17092
osf3* | osf4* | osf5*)
17093
lt_prog_compiler_wl_GCJ='-Wl,'
17094
# All OSF/1 code is PIC.
17095
lt_prog_compiler_static_GCJ='-non_shared'
17099
lt_prog_compiler_static_GCJ='-non_shared'
17103
lt_prog_compiler_pic_GCJ='-KPIC'
17104
lt_prog_compiler_static_GCJ='-Bstatic'
17105
case $cc_basename in
17106
f77* | f90* | f95*)
17107
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17109
lt_prog_compiler_wl_GCJ='-Wl,';;
17114
lt_prog_compiler_wl_GCJ='-Qoption ld '
17115
lt_prog_compiler_pic_GCJ='-PIC'
17116
lt_prog_compiler_static_GCJ='-Bstatic'
17119
sysv4 | sysv4.2uw2* | sysv4.3*)
17120
lt_prog_compiler_wl_GCJ='-Wl,'
17121
lt_prog_compiler_pic_GCJ='-KPIC'
17122
lt_prog_compiler_static_GCJ='-Bstatic'
17126
if test -d /usr/nec ;then
17127
lt_prog_compiler_pic_GCJ='-Kconform_pic'
17128
lt_prog_compiler_static_GCJ='-Bstatic'
17132
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17133
lt_prog_compiler_wl_GCJ='-Wl,'
17134
lt_prog_compiler_pic_GCJ='-KPIC'
17135
lt_prog_compiler_static_GCJ='-Bstatic'
17139
lt_prog_compiler_wl_GCJ='-Wl,'
17140
lt_prog_compiler_can_build_shared_GCJ=no
17144
lt_prog_compiler_pic_GCJ='-pic'
17145
lt_prog_compiler_static_GCJ='-Bstatic'
17149
lt_prog_compiler_can_build_shared_GCJ=no
17154
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17155
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17158
# Check to make sure the PIC flag actually works.
17160
if test -n "$lt_prog_compiler_pic_GCJ"; then
17162
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17163
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17164
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17165
echo $ECHO_N "(cached) $ECHO_C" >&6
17167
lt_cv_prog_compiler_pic_works_GCJ=no
17168
ac_outfile=conftest.$ac_objext
17169
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17170
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17171
# Insert the option either (1) after the last *FLAGS variable, or
17172
# (2) before a word containing "conftest.", or (3) at the end.
17173
# Note that $ac_compile itself does not contain backslashes and begins
17174
# with a dollar sign (not a hyphen), so the echo should work correctly.
17175
# The option is referenced via a variable to avoid confusing sed.
17176
lt_compile=`echo "$ac_compile" | $SED \
17177
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17178
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17179
-e 's:$: $lt_compiler_flag:'`
17180
(eval echo "\"\$as_me:17180: $lt_compile\"" >&5)
17181
(eval "$lt_compile" 2>conftest.err)
17183
cat conftest.err >&5
17184
echo "$as_me:17184: \$? = $ac_status" >&5
17185
if (exit $ac_status) && test -s "$ac_outfile"; then
17186
# The compiler can only warn and ignore the option if not recognized
17187
# So say no if there are warnings other than the usual output.
17188
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17189
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17190
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17191
lt_cv_prog_compiler_pic_works_GCJ=yes
17197
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17198
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17200
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17201
case $lt_prog_compiler_pic_GCJ in
17203
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17206
lt_prog_compiler_pic_GCJ=
17207
lt_prog_compiler_can_build_shared_GCJ=no
17212
# For platforms which do not support PIC, -DPIC is meaningless:
17214
lt_prog_compiler_pic_GCJ=
17217
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17222
# Check to make sure the static flag actually works.
17224
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17225
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17226
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17227
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17228
echo $ECHO_N "(cached) $ECHO_C" >&6
17230
lt_cv_prog_compiler_static_works_GCJ=no
17231
save_LDFLAGS="$LDFLAGS"
17232
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17233
echo "$lt_simple_link_test_code" > conftest.$ac_ext
17234
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17235
# The linker can only warn and ignore the option if not recognized
17236
# So say no if there are warnings
17237
if test -s conftest.err; then
17238
# Append any errors to the config.log.
17239
cat conftest.err 1>&5
17240
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17241
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17242
if diff conftest.exp conftest.er2 >/dev/null; then
17243
lt_cv_prog_compiler_static_works_GCJ=yes
17246
lt_cv_prog_compiler_static_works_GCJ=yes
17250
LDFLAGS="$save_LDFLAGS"
17253
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17254
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17256
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17259
lt_prog_compiler_static_GCJ=
17263
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17264
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17265
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17266
echo $ECHO_N "(cached) $ECHO_C" >&6
17268
lt_cv_prog_compiler_c_o_GCJ=no
17269
$rm -r conftest 2>/dev/null
17273
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17275
lt_compiler_flag="-o out/conftest2.$ac_objext"
17276
# Insert the option either (1) after the last *FLAGS variable, or
17277
# (2) before a word containing "conftest.", or (3) at the end.
17278
# Note that $ac_compile itself does not contain backslashes and begins
17279
# with a dollar sign (not a hyphen), so the echo should work correctly.
17280
lt_compile=`echo "$ac_compile" | $SED \
17281
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17282
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17283
-e 's:$: $lt_compiler_flag:'`
17284
(eval echo "\"\$as_me:17284: $lt_compile\"" >&5)
17285
(eval "$lt_compile" 2>out/conftest.err)
17287
cat out/conftest.err >&5
17288
echo "$as_me:17288: \$? = $ac_status" >&5
17289
if (exit $ac_status) && test -s out/conftest2.$ac_objext
17291
# The compiler can only warn and ignore the option if not recognized
17292
# So say no if there are warnings
17293
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17294
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17295
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17296
lt_cv_prog_compiler_c_o_GCJ=yes
17301
# SGI C++ compiler will create directory out/ii_files/ for
17302
# template instantiation
17303
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17304
$rm out/* && rmdir out
17310
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17311
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17314
hard_links="nottested"
17315
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17316
# do not overwrite the value of need_locks provided by the user
17317
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17318
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17321
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17323
ln conftest.a conftest.b 2>&5 || hard_links=no
17324
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17325
{ echo "$as_me:$LINENO: result: $hard_links" >&5
17326
echo "${ECHO_T}$hard_links" >&6; }
17327
if test "$hard_links" = no; then
17328
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17329
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17336
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17337
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17340
allow_undefined_flag_GCJ=
17341
enable_shared_with_static_runtimes_GCJ=no
17343
archive_expsym_cmds_GCJ=
17344
old_archive_From_new_cmds_GCJ=
17345
old_archive_from_expsyms_cmds_GCJ=
17346
export_dynamic_flag_spec_GCJ=
17347
whole_archive_flag_spec_GCJ=
17348
thread_safe_flag_spec_GCJ=
17349
hardcode_libdir_flag_spec_GCJ=
17350
hardcode_libdir_flag_spec_ld_GCJ=
17351
hardcode_libdir_separator_GCJ=
17352
hardcode_direct_GCJ=no
17353
hardcode_minus_L_GCJ=no
17354
hardcode_shlibpath_var_GCJ=unsupported
17355
link_all_deplibs_GCJ=unknown
17356
hardcode_automatic_GCJ=no
17358
module_expsym_cmds_GCJ=
17359
always_export_symbols_GCJ=no
17360
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17361
# include_expsyms should be a list of space-separated symbols to be *always*
17362
# included in the symbol list
17363
include_expsyms_GCJ=
17364
# exclude_expsyms can be an extended regexp of symbols to exclude
17365
# it will be wrapped by ` (' and `)$', so one must not match beginning or
17366
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17367
# as well as any symbol that contains `d'.
17368
exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17369
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17370
# platforms (ab)use it in PIC code, but their linkers get confused if
17371
# the symbol is explicitly referenced. Since portable code cannot
17372
# rely on this symbol name, it's probably fine to never include it in
17373
# preloaded symbol tables.
17374
# Exclude shared library initialization/finalization symbols.
17375
extract_expsyms_cmds=
17376
# Just being paranoid about ensuring that cc_basename is set.
17377
for cc_temp in $compiler""; do
17379
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17380
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17385
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17388
cygwin* | mingw* | pw32*)
17389
# FIXME: the MSVC++ port hasn't been tested in a loooong time
17390
# When not using gcc, we currently assume that we are using
17391
# Microsoft Visual C++.
17392
if test "$GCC" != yes; then
17397
# we just hope/assume this is gcc and not c89 (= MSVC++)
17406
if test "$with_gnu_ld" = yes; then
17407
# If archive_cmds runs LD, not CC, wlarc should be empty
17410
# Set some defaults for GNU ld with shared library support. These
17411
# are reset later if shared libraries are not supported. Putting them
17412
# here allows them to be overridden if necessary.
17413
runpath_var=LD_RUN_PATH
17414
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17415
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17416
# ancient GNU ld didn't support --whole-archive et. al.
17417
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17418
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17420
whole_archive_flag_spec_GCJ=
17422
supports_anon_versioning=no
17423
case `$LD -v 2>/dev/null` in
17424
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17425
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17426
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17427
*\ 2.11.*) ;; # other 2.11 versions
17428
*) supports_anon_versioning=yes ;;
17431
# See if GNU ld supports shared libraries.
17434
# On AIX/PPC, the GNU linker is very broken
17435
if test "$host_cpu" != ia64; then
17439
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17440
*** to be unable to reliably create shared libraries on AIX.
17441
*** Therefore, libtool is disabling shared libraries support. If you
17442
*** really care for shared libraries, you may want to modify your PATH
17443
*** so that a non-GNU linker is found, and then restart.
17450
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)'
17451
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17452
hardcode_minus_L_GCJ=yes
17454
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17455
# that the semantics of dynamic libraries on AmigaOS, at least up
17456
# to version 4, is to share data among multiple programs linked
17457
# with the same dynamic library. Since this doesn't match the
17458
# behavior of shared libraries on other platforms, we can't use
17464
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17465
allow_undefined_flag_GCJ=unsupported
17466
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17467
# support --undefined. This deserves some investigation. FIXME
17468
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17474
cygwin* | mingw* | pw32*)
17475
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17476
# as there is no search path for DLLs.
17477
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17478
allow_undefined_flag_GCJ=unsupported
17479
always_export_symbols_GCJ=no
17480
enable_shared_with_static_runtimes_GCJ=yes
17481
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17483
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17484
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17485
# If the export-symbols file already is a .def file (1st line
17486
# is EXPORTS), use it as is; otherwise, prepend...
17487
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17488
cp $export_symbols $output_objdir/$soname.def;
17490
echo EXPORTS > $output_objdir/$soname.def;
17491
cat $export_symbols >> $output_objdir/$soname.def;
17493
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17500
hardcode_direct_GCJ=no
17501
hardcode_shlibpath_var_GCJ=no
17502
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17503
export_dynamic_flag_spec_GCJ='${wl}-E'
17504
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17505
# Instead, shared libraries are loaded at an image base (0x10000000 by
17506
# default) and relocated if they conflict, which is a slow very memory
17507
# consuming and fragmenting process. To avoid this, we pick a random,
17508
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17509
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
17510
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'
17511
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'
17514
gnu* | linux* | k*bsd*-gnu)
17515
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17517
case $cc_basename,$host_cpu in
17518
pgcc*) # Portland Group C compiler
17519
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'
17520
tmp_addflag=' $pic_flag'
17522
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17523
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'
17524
tmp_addflag=' $pic_flag -Mnomain' ;;
17525
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17526
tmp_addflag=' -i_dynamic' ;;
17527
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17528
tmp_addflag=' -i_dynamic -nofor_main' ;;
17529
ifc* | ifort*) # Intel Fortran compiler
17530
tmp_addflag=' -nofor_main' ;;
17532
case `$CC -V 2>&1 | sed 5q` in
17533
*Sun\ C*) # Sun C 5.9
17534
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'
17535
tmp_sharedflag='-G' ;;
17536
*Sun\ F*) # Sun Fortran 8.3
17537
tmp_sharedflag='-G' ;;
17539
tmp_sharedflag='-shared' ;;
17541
archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17543
if test $supports_anon_versioning = yes; then
17544
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17545
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17546
$echo "local: *; };" >> $output_objdir/$libname.ver~
17547
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17555
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17556
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17559
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17560
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17565
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17569
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17570
*** create shared libraries on Solaris systems. Therefore, libtool
17571
*** is disabling shared libraries support. We urge you to upgrade GNU
17572
*** binutils to release 2.9.1 or newer. Another option is to modify
17573
*** your PATH or compiler configuration so that the native linker is
17574
*** used, and then restart.
17577
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17578
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17579
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17585
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17586
case `$LD -v 2>&1` in
17587
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17591
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17592
*** reliably create shared libraries on SCO systems. Therefore, libtool
17593
*** is disabling shared libraries support. We urge you to upgrade GNU
17594
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17595
*** your PATH or compiler configuration so that the native linker is
17596
*** used, and then restart.
17601
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17602
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17603
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17604
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17613
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17615
hardcode_direct_GCJ=yes
17616
hardcode_shlibpath_var_GCJ=no
17620
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17621
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17622
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17629
if test "$ld_shlibs_GCJ" = no; then
17631
hardcode_libdir_flag_spec_GCJ=
17632
export_dynamic_flag_spec_GCJ=
17633
whole_archive_flag_spec_GCJ=
17636
# PORTME fill in a description of your system's linker (not GNU ld)
17639
allow_undefined_flag_GCJ=unsupported
17640
always_export_symbols_GCJ=yes
17641
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'
17642
# Note: this linker hardcodes the directories in LIBPATH if there
17643
# are no directories specified by -L.
17644
hardcode_minus_L_GCJ=yes
17645
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17646
# Neither direct hardcoding nor static linking is supported with a
17648
hardcode_direct_GCJ=unsupported
17653
if test "$host_cpu" = ia64; then
17654
# On IA64, the linker does run time linking by default, so we don't
17655
# have to do anything special.
17656
aix_use_runtimelinking=no
17657
exp_sym_flag='-Bexport'
17660
# If we're using GNU nm, then we don't want the "-C" option.
17661
# -C means demangle to AIX nm, but means don't demangle with GNU nm
17662
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17663
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'
17665
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'
17667
aix_use_runtimelinking=no
17669
# Test if we are trying to use run time linking or normal
17670
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17671
# need to do runtime linking.
17672
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17673
for ld_flag in $LDFLAGS; do
17674
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17675
aix_use_runtimelinking=yes
17682
exp_sym_flag='-bexport'
17683
no_entry_flag='-bnoentry'
17686
# When large executables or shared objects are built, AIX ld can
17687
# have problems creating the table of contents. If linking a library
17688
# or program results in "error TOC overflow" add -mminimal-toc to
17689
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17690
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17692
archive_cmds_GCJ=''
17693
hardcode_direct_GCJ=yes
17694
hardcode_libdir_separator_GCJ=':'
17695
link_all_deplibs_GCJ=yes
17697
if test "$GCC" = yes; then
17698
case $host_os in aix4.[012]|aix4.[012].*)
17699
# We only want to do this on AIX 4.2 and lower, the check
17700
# below for broken collect2 doesn't work under 4.3+
17701
collect2name=`${CC} -print-prog-name=collect2`
17702
if test -f "$collect2name" && \
17703
strings "$collect2name" | grep resolve_lib_name >/dev/null
17705
# We have reworked collect2
17708
# We have old collect2
17709
hardcode_direct_GCJ=unsupported
17710
# It fails to find uninstalled libraries when the uninstalled
17711
# path is not listed in the libpath. Setting hardcode_minus_L
17712
# to unsupported forces relinking
17713
hardcode_minus_L_GCJ=yes
17714
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17715
hardcode_libdir_separator_GCJ=
17719
shared_flag='-shared'
17720
if test "$aix_use_runtimelinking" = yes; then
17721
shared_flag="$shared_flag "'${wl}-G'
17725
if test "$host_cpu" = ia64; then
17726
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17727
# chokes on -Wl,-G. The following line is correct:
17730
if test "$aix_use_runtimelinking" = yes; then
17731
shared_flag='${wl}-G'
17733
shared_flag='${wl}-bM:SRE'
17738
# It seems that -bexpall does not export symbols beginning with
17739
# underscore (_), so it is better to generate a list of symbols to export.
17740
always_export_symbols_GCJ=yes
17741
if test "$aix_use_runtimelinking" = yes; then
17742
# Warning - without using the other runtime loading flags (-brtl),
17743
# -berok will link without error, but may produce a broken library.
17744
allow_undefined_flag_GCJ='-berok'
17745
# Determine the default libpath from the value encoded in an empty executable.
17746
cat >conftest.$ac_ext <<_ACEOF
17749
cat confdefs.h >>conftest.$ac_ext
17750
cat >>conftest.$ac_ext <<_ACEOF
17751
/* end confdefs.h. */
17761
rm -f conftest.$ac_objext conftest$ac_exeext
17762
if { (ac_try="$ac_link"
17763
case "(($ac_try" in
17764
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17765
*) ac_try_echo=$ac_try;;
17767
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17768
(eval "$ac_link") 2>conftest.er1
17770
grep -v '^ *+' conftest.er1 >conftest.err
17772
cat conftest.err >&5
17773
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774
(exit $ac_status); } && {
17775
test -z "$ac_c_werror_flag" ||
17776
test ! -s conftest.err
17777
} && test -s conftest$ac_exeext &&
17778
$as_test_x conftest$ac_exeext; then
17780
lt_aix_libpath_sed='
17781
/Import File Strings/,/^$/ {
17787
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17788
# Check for a 64-bit object if we didn't find anything.
17789
if test -z "$aix_libpath"; then
17790
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17793
echo "$as_me: failed program was:" >&5
17794
sed 's/^/| /' conftest.$ac_ext >&5
17799
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17800
conftest$ac_exeext conftest.$ac_ext
17801
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17803
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17804
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"
17806
if test "$host_cpu" = ia64; then
17807
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17808
allow_undefined_flag_GCJ="-z nodefs"
17809
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"
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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17834
(eval "$ac_link") 2>conftest.er1
17836
grep -v '^ *+' conftest.er1 >conftest.err
17838
cat conftest.err >&5
17839
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840
(exit $ac_status); } && {
17841
test -z "$ac_c_werror_flag" ||
17842
test ! -s conftest.err
17843
} && test -s conftest$ac_exeext &&
17844
$as_test_x conftest$ac_exeext; then
17846
lt_aix_libpath_sed='
17847
/Import File Strings/,/^$/ {
17853
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17854
# Check for a 64-bit object if we didn't find anything.
17855
if test -z "$aix_libpath"; then
17856
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17859
echo "$as_me: failed program was:" >&5
17860
sed 's/^/| /' conftest.$ac_ext >&5
17865
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17866
conftest$ac_exeext conftest.$ac_ext
17867
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17869
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17870
# Warning - without using the other run time loading flags,
17871
# -berok will link without error, but may produce a broken library.
17872
no_undefined_flag_GCJ=' ${wl}-bernotok'
17873
allow_undefined_flag_GCJ=' ${wl}-berok'
17874
# Exported symbols can be pulled into shared objects from archives
17875
whole_archive_flag_spec_GCJ='$convenience'
17876
archive_cmds_need_lc_GCJ=yes
17877
# This is similar to how AIX traditionally builds its shared libraries.
17878
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'
17884
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)'
17885
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17886
hardcode_minus_L_GCJ=yes
17887
# see comment about different semantics on the GNU ld section
17892
export_dynamic_flag_spec_GCJ=-rdynamic
17895
cygwin* | mingw* | pw32*)
17896
# When not using gcc, we currently assume that we are using
17897
# Microsoft Visual C++.
17898
# hardcode_libdir_flag_spec is actually meaningless, as there is
17899
# no search path for DLLs.
17900
hardcode_libdir_flag_spec_GCJ=' '
17901
allow_undefined_flag_GCJ=unsupported
17902
# Tell ltmain to make .lib files, not .a files.
17904
# Tell ltmain to make .dll files, not .so files.
17906
# FIXME: Setting linknames here is a bad hack.
17907
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17908
# The linker will automatically build a .lib file if we build a DLL.
17909
old_archive_From_new_cmds_GCJ='true'
17910
# FIXME: Should let the user specify the lib program.
17911
old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17912
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17913
enable_shared_with_static_runtimes_GCJ=yes
17916
darwin* | rhapsody*)
17918
rhapsody* | darwin1.[012])
17919
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17922
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17923
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17925
case ${MACOSX_DEPLOYMENT_TARGET} in
17927
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17930
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17936
archive_cmds_need_lc_GCJ=no
17937
hardcode_direct_GCJ=no
17938
hardcode_automatic_GCJ=yes
17939
hardcode_shlibpath_var_GCJ=unsupported
17940
whole_archive_flag_spec_GCJ=''
17941
link_all_deplibs_GCJ=yes
17942
if test "$GCC" = yes ; then
17943
output_verbose_link_cmd='echo'
17944
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}"
17945
module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17946
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}"
17947
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}"
17949
case $cc_basename in
17951
output_verbose_link_cmd='echo'
17952
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17953
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17954
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17955
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}'
17956
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}'
17966
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17967
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17968
hardcode_shlibpath_var_GCJ=no
17975
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17976
# support. Future versions do this automatically, but an explicit c++rt0.o
17977
# does not break anything, and helps significantly (at the cost of a little
17980
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17981
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17982
hardcode_direct_GCJ=yes
17983
hardcode_shlibpath_var_GCJ=no
17986
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
17988
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17989
hardcode_direct_GCJ=yes
17990
hardcode_minus_L_GCJ=yes
17991
hardcode_shlibpath_var_GCJ=no
17994
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17995
freebsd* | dragonfly*)
17996
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17997
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17998
hardcode_direct_GCJ=yes
17999
hardcode_shlibpath_var_GCJ=no
18003
if test "$GCC" = yes; then
18004
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'
18006
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'
18008
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18009
hardcode_libdir_separator_GCJ=:
18010
hardcode_direct_GCJ=yes
18012
# hardcode_minus_L: Not really in the search PATH,
18013
# but as the default location of the library.
18014
hardcode_minus_L_GCJ=yes
18015
export_dynamic_flag_spec_GCJ='${wl}-E'
18019
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18020
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18022
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18024
if test "$with_gnu_ld" = no; then
18025
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18026
hardcode_libdir_separator_GCJ=:
18028
hardcode_direct_GCJ=yes
18029
export_dynamic_flag_spec_GCJ='${wl}-E'
18031
# hardcode_minus_L: Not really in the search PATH,
18032
# but as the default location of the library.
18033
hardcode_minus_L_GCJ=yes
18038
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18041
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18044
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18047
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18053
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18056
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18059
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18063
if test "$with_gnu_ld" = no; then
18064
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18065
hardcode_libdir_separator_GCJ=:
18069
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18070
hardcode_direct_GCJ=no
18071
hardcode_shlibpath_var_GCJ=no
18074
hardcode_direct_GCJ=yes
18075
export_dynamic_flag_spec_GCJ='${wl}-E'
18077
# hardcode_minus_L: Not really in the search PATH,
18078
# but as the default location of the library.
18079
hardcode_minus_L_GCJ=yes
18085
irix5* | irix6* | nonstopux*)
18086
if test "$GCC" = yes; then
18087
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'
18089
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'
18090
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18092
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18093
hardcode_libdir_separator_GCJ=:
18094
link_all_deplibs_GCJ=yes
18098
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18099
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18101
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18103
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18104
hardcode_direct_GCJ=yes
18105
hardcode_shlibpath_var_GCJ=no
18109
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18110
hardcode_direct_GCJ=yes
18111
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18112
hardcode_libdir_separator_GCJ=:
18113
hardcode_shlibpath_var_GCJ=no
18117
if test -f /usr/libexec/ld.so; then
18118
hardcode_direct_GCJ=yes
18119
hardcode_shlibpath_var_GCJ=no
18120
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18121
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18122
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18123
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18124
export_dynamic_flag_spec_GCJ='${wl}-E'
18127
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18128
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18129
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18132
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18133
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18143
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18144
hardcode_minus_L_GCJ=yes
18145
allow_undefined_flag_GCJ=unsupported
18146
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'
18147
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18151
if test "$GCC" = yes; then
18152
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18153
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'
18155
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18156
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'
18158
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18159
hardcode_libdir_separator_GCJ=:
18162
osf4* | osf5*) # as osf3* with the addition of -msym flag
18163
if test "$GCC" = yes; then
18164
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18165
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'
18166
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18168
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18169
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'
18170
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~
18171
$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'
18173
# Both c and cxx compiler support -rpath directly
18174
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18176
hardcode_libdir_separator_GCJ=:
18180
no_undefined_flag_GCJ=' -z text'
18181
if test "$GCC" = yes; then
18183
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18184
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18185
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18188
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18189
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18190
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18192
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18193
hardcode_shlibpath_var_GCJ=no
18195
solaris2.[0-5] | solaris2.[0-5].*) ;;
18197
# The compiler driver will combine and reorder linker options,
18198
# but understands `-z linker_flag'. GCC discards it without `$wl',
18199
# but is careful enough not to reorder.
18200
# Supported since Solaris 2.6 (maybe 2.5.1?)
18201
if test "$GCC" = yes; then
18202
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18204
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18208
link_all_deplibs_GCJ=yes
18212
if test "x$host_vendor" = xsequent; then
18213
# Use $CC to link under sequent, because it throws in some extra .o
18214
# files that make .init and .fini sections work.
18215
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18217
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18219
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18220
hardcode_direct_GCJ=yes
18221
hardcode_minus_L_GCJ=yes
18222
hardcode_shlibpath_var_GCJ=no
18226
case $host_vendor in
18228
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18229
hardcode_direct_GCJ=yes # is this really true???
18232
## LD is ld it makes a PLAMLIB
18233
## CC just makes a GrossModule.
18234
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18235
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18236
hardcode_direct_GCJ=no
18239
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18240
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18243
runpath_var='LD_RUN_PATH'
18244
hardcode_shlibpath_var_GCJ=no
18248
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18249
hardcode_shlibpath_var_GCJ=no
18250
export_dynamic_flag_spec_GCJ='-Bexport'
18254
if test -d /usr/nec; then
18255
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18256
hardcode_shlibpath_var_GCJ=no
18257
runpath_var=LD_RUN_PATH
18258
hardcode_runpath_var=yes
18263
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18264
no_undefined_flag_GCJ='${wl}-z,text'
18265
archive_cmds_need_lc_GCJ=no
18266
hardcode_shlibpath_var_GCJ=no
18267
runpath_var='LD_RUN_PATH'
18269
if test "$GCC" = yes; then
18270
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18271
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18273
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18274
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18278
sysv5* | sco3.2v5* | sco5v6*)
18279
# Note: We can NOT use -z defs as we might desire, because we do not
18280
# link with -lc, and that would cause any symbols used from libc to
18281
# always be unresolved, which means just about no library would
18282
# ever link correctly. If we're not using GNU ld we use -z text
18283
# though, which does catch some bad symbols but isn't as heavy-handed
18285
no_undefined_flag_GCJ='${wl}-z,text'
18286
allow_undefined_flag_GCJ='${wl}-z,nodefs'
18287
archive_cmds_need_lc_GCJ=no
18288
hardcode_shlibpath_var_GCJ=no
18289
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18290
hardcode_libdir_separator_GCJ=':'
18291
link_all_deplibs_GCJ=yes
18292
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18293
runpath_var='LD_RUN_PATH'
18295
if test "$GCC" = yes; then
18296
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18297
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18299
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18300
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18305
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18306
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18307
hardcode_shlibpath_var_GCJ=no
18316
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18317
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18318
test "$ld_shlibs_GCJ" = no && can_build_shared=no
18321
# Do we need to explicitly link libc?
18323
case "x$archive_cmds_need_lc_GCJ" in
18325
# Assume -lc should be added
18326
archive_cmds_need_lc_GCJ=yes
18328
if test "$enable_shared" = yes && test "$GCC" = yes; then
18329
case $archive_cmds_GCJ in
18331
# FIXME: we may have to deal with multi-command sequences.
18334
# Test whether the compiler implicitly links with -lc since on some
18335
# systems, -lgcc has to come before -lc. If gcc already passes -lc
18336
# to ld, don't add -lc before -lgcc.
18337
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18338
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18340
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18342
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18343
(eval $ac_compile) 2>&5
18345
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346
(exit $ac_status); } 2>conftest.err; then
18349
libobjs=conftest.$ac_objext
18351
wl=$lt_prog_compiler_wl_GCJ
18352
pic_flag=$lt_prog_compiler_pic_GCJ
18358
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18359
allow_undefined_flag_GCJ=
18360
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18361
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18363
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18364
(exit $ac_status); }
18366
archive_cmds_need_lc_GCJ=no
18368
archive_cmds_need_lc_GCJ=yes
18370
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18372
cat conftest.err 1>&5
18375
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18376
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18383
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18384
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18385
library_names_spec=
18386
libname_spec='lib$name'
18390
postuninstall_cmds=
18394
shlibpath_overrides_runpath=unknown
18396
dynamic_linker="$host_os ld.so"
18397
sys_lib_dlsearch_path_spec="/lib /usr/lib"
18399
need_lib_prefix=unknown
18400
hardcode_into_libs=no
18402
# when you set need_version to no, make sure it does not cause -set_version
18403
# flags to be left without arguments
18404
need_version=unknown
18409
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18410
shlibpath_var=LIBPATH
18412
# AIX 3 has no versioning support, so we append a major version to the name.
18413
soname_spec='${libname}${release}${shared_ext}$major'
18420
hardcode_into_libs=yes
18421
if test "$host_cpu" = ia64; then
18422
# AIX 5 supports IA64
18423
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18424
shlibpath_var=LD_LIBRARY_PATH
18426
# With GCC up to 2.95.x, collect2 would create an import file
18427
# for dependence libraries. The import file would start with
18428
# the line `#! .'. This would cause the generated library to
18429
# depend on `.', always an invalid library. This was fixed in
18430
# development snapshots of GCC prior to 3.0.
18432
aix4 | aix4.[01] | aix4.[01].*)
18433
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18435
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18438
can_build_shared=no
18442
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18443
# soname into executable. Probably we can add versioning support to
18444
# collect2, so additional links can be useful in future.
18445
if test "$aix_use_runtimelinking" = yes; then
18446
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
18447
# instead of lib<name>.a to let people know that these are not
18448
# typical AIX shared libraries.
18449
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18451
# We preserve .a as extension for shared libraries through AIX4.2
18452
# and later when we are not doing run time linking.
18453
library_names_spec='${libname}${release}.a $libname.a'
18454
soname_spec='${libname}${release}${shared_ext}$major'
18456
shlibpath_var=LIBPATH
18461
library_names_spec='$libname.ixlibrary $libname.a'
18462
# Create ${libname}_ixlibrary.a entries in /sys/libs.
18463
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'
18467
library_names_spec='${libname}${shared_ext}'
18468
dynamic_linker="$host_os ld.so"
18469
shlibpath_var=LIBRARY_PATH
18475
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18476
soname_spec='${libname}${release}${shared_ext}$major'
18477
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18478
shlibpath_var=LD_LIBRARY_PATH
18479
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18480
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18481
# the default ld.so.conf also contains /usr/contrib/lib and
18482
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18483
# libtool to hard-code these into programs
18486
cygwin* | mingw* | pw32*)
18487
version_type=windows
18492
case $GCC,$host_os in
18493
yes,cygwin* | yes,mingw* | yes,pw32*)
18494
library_names_spec='$libname.dll.a'
18495
# DLL is installed to $(libdir)/../bin by postinstall_cmds
18496
postinstall_cmds='base_file=`basename \${file}`~
18497
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18498
dldir=$destdir/`dirname \$dlpath`~
18499
test -d \$dldir || mkdir -p \$dldir~
18500
$install_prog $dir/$dlname \$dldir/$dlname~
18501
chmod a+x \$dldir/$dlname'
18502
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18503
dlpath=$dir/\$dldll~
18505
shlibpath_overrides_runpath=yes
18509
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
18510
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18511
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18514
# MinGW DLLs use traditional 'lib' prefix
18515
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18516
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18517
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18518
# It is most probably a Windows format PATH printed by
18519
# mingw gcc, but we are running on Cygwin. Gcc prints its search
18520
# path with ; separators, and with drive letters. We can handle the
18521
# drive letters (cygwin fileutils understands them), so leave them,
18522
# especially as we might pass files found there to a mingw objdump,
18523
# which wouldn't understand a cygwinified path. Ahh.
18524
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18526
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18530
# pw32 DLLs use 'pw' prefix rather than 'lib'
18531
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18537
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18540
dynamic_linker='Win32 ld.exe'
18541
# FIXME: first we should search . and the directory the executable is in
18545
darwin* | rhapsody*)
18546
dynamic_linker="$host_os dyld"
18547
version_type=darwin
18550
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18551
soname_spec='${libname}${release}${major}$shared_ext'
18552
shlibpath_overrides_runpath=yes
18553
shlibpath_var=DYLD_LIBRARY_PATH
18554
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18556
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18563
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18564
soname_spec='${libname}${release}${shared_ext}$major'
18565
shlibpath_var=LD_LIBRARY_PATH
18572
freebsd* | dragonfly*)
18573
# DragonFly does not have aout. When/if they implement a new
18574
# versioning mechanism, adjust this.
18575
if test -x /usr/bin/objformat; then
18576
objformat=`/usr/bin/objformat`
18579
freebsd[123]*) objformat=aout ;;
18580
*) objformat=elf ;;
18583
# Handle Gentoo/FreeBSD as it was Linux
18584
case $host_vendor in
18586
version_type=linux ;;
18588
version_type=freebsd-$objformat ;;
18591
case $version_type in
18593
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18598
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18602
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18603
soname_spec='${libname}${release}${shared_ext}$major'
18608
shlibpath_var=LD_LIBRARY_PATH
18611
shlibpath_overrides_runpath=yes
18613
freebsd3.[01]* | freebsdelf3.[01]*)
18614
shlibpath_overrides_runpath=yes
18615
hardcode_into_libs=yes
18617
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18618
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18619
shlibpath_overrides_runpath=no
18620
hardcode_into_libs=yes
18622
*) # from 4.6 on, and DragonFly
18623
shlibpath_overrides_runpath=yes
18624
hardcode_into_libs=yes
18633
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18634
soname_spec='${libname}${release}${shared_ext}$major'
18635
shlibpath_var=LD_LIBRARY_PATH
18636
hardcode_into_libs=yes
18639
hpux9* | hpux10* | hpux11*)
18640
# Give a soname corresponding to the major version so that dld.sl refuses to
18641
# link against other versions.
18648
hardcode_into_libs=yes
18649
dynamic_linker="$host_os dld.so"
18650
shlibpath_var=LD_LIBRARY_PATH
18651
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18652
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18653
soname_spec='${libname}${release}${shared_ext}$major'
18654
if test "X$HPUX_IA64_MODE" = X32; then
18655
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18657
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18659
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18663
hardcode_into_libs=yes
18664
dynamic_linker="$host_os dld.sl"
18665
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18666
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18667
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18668
soname_spec='${libname}${release}${shared_ext}$major'
18669
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18670
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18674
dynamic_linker="$host_os dld.sl"
18675
shlibpath_var=SHLIB_PATH
18676
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18677
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18678
soname_spec='${libname}${release}${shared_ext}$major'
18681
# HP-UX runs *really* slowly unless shared libraries are mode 555.
18682
postinstall_cmds='chmod 555 $lib'
18689
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18690
soname_spec='${libname}${release}${shared_ext}$major'
18691
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18692
shlibpath_var=LD_LIBRARY_PATH
18693
shlibpath_overrides_runpath=no
18694
hardcode_into_libs=yes
18697
irix5* | irix6* | nonstopux*)
18699
nonstopux*) version_type=nonstopux ;;
18701
if test "$lt_cv_prog_gnu_ld" = yes; then
18709
soname_spec='${libname}${release}${shared_ext}$major'
18710
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18712
irix5* | nonstopux*)
18713
libsuff= shlibsuff=
18716
case $LD in # libtool.m4 will add one of these switches to LD
18717
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18718
libsuff= shlibsuff= libmagic=32-bit;;
18719
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18720
libsuff=32 shlibsuff=N32 libmagic=N32;;
18721
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18722
libsuff=64 shlibsuff=64 libmagic=64-bit;;
18723
*) libsuff= shlibsuff= libmagic=never-match;;
18727
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18728
shlibpath_overrides_runpath=no
18729
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18730
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18731
hardcode_into_libs=yes
18734
# No shared lib support for Linux oldld, aout, or coff.
18735
linux*oldld* | linux*aout* | linux*coff*)
18739
# This must be Linux ELF.
18740
linux* | k*bsd*-gnu)
18744
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18745
soname_spec='${libname}${release}${shared_ext}$major'
18746
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18747
shlibpath_var=LD_LIBRARY_PATH
18748
shlibpath_overrides_runpath=no
18749
# This implies no fast_install, which is unacceptable.
18750
# Some rework will be needed to allow for fast_install
18751
# before this can be enabled.
18752
hardcode_into_libs=yes
18754
# Append ld.so.conf contents to the search path
18755
if test -f /etc/ld.so.conf; then
18756
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' ' '`
18757
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18760
# We used to test for /lib/ld.so.1 and disable shared libraries on
18761
# powerpc, because MkLinux only supported shared libraries with the
18762
# GNU dynamic linker. Since this was broken with cross compilers,
18763
# most powerpc-linux boxes support dynamic linking these days and
18764
# people can always --disable-shared, the test was removed, and we
18765
# assume the GNU/Linux dynamic linker is in use.
18766
dynamic_linker='GNU/Linux ld.so'
18773
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18774
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18775
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18776
dynamic_linker='NetBSD (a.out) ld.so'
18778
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18779
soname_spec='${libname}${release}${shared_ext}$major'
18780
dynamic_linker='NetBSD ld.elf_so'
18782
shlibpath_var=LD_LIBRARY_PATH
18783
shlibpath_overrides_runpath=yes
18784
hardcode_into_libs=yes
18789
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18790
shlibpath_var=LD_LIBRARY_PATH
18791
shlibpath_overrides_runpath=yes
18798
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18799
soname_spec='${libname}${release}${shared_ext}$major'
18800
shlibpath_var=LD_LIBRARY_PATH
18801
shlibpath_overrides_runpath=yes
18806
sys_lib_dlsearch_path_spec="/usr/lib"
18808
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18810
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18811
*) need_version=no ;;
18813
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18814
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18815
shlibpath_var=LD_LIBRARY_PATH
18816
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18818
openbsd2.[89] | openbsd2.[89].*)
18819
shlibpath_overrides_runpath=no
18822
shlibpath_overrides_runpath=yes
18826
shlibpath_overrides_runpath=yes
18831
libname_spec='$name'
18834
library_names_spec='$libname${shared_ext} $libname.a'
18835
dynamic_linker='OS/2 ld.exe'
18836
shlibpath_var=LIBPATH
18839
osf3* | osf4* | osf5*)
18843
soname_spec='${libname}${release}${shared_ext}$major'
18844
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18845
shlibpath_var=LD_LIBRARY_PATH
18846
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18847
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18858
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18859
soname_spec='${libname}${release}${shared_ext}$major'
18860
shlibpath_var=LD_LIBRARY_PATH
18861
shlibpath_overrides_runpath=yes
18862
hardcode_into_libs=yes
18863
# ldd complains unless libraries are executable
18864
postinstall_cmds='chmod +x $lib'
18869
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18870
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18871
shlibpath_var=LD_LIBRARY_PATH
18872
shlibpath_overrides_runpath=yes
18873
if test "$with_gnu_ld" = yes; then
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
case $host_vendor in
18886
shlibpath_overrides_runpath=no
18888
export_dynamic_flag_spec='${wl}-Blargedynsym'
18889
runpath_var=LD_RUN_PATH
18897
shlibpath_overrides_runpath=no
18898
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18904
if test -d /usr/nec ;then
18906
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18907
soname_spec='$libname${shared_ext}.$major'
18908
shlibpath_var=LD_LIBRARY_PATH
18912
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18913
version_type=freebsd-elf
18916
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18917
soname_spec='${libname}${release}${shared_ext}$major'
18918
shlibpath_var=LD_LIBRARY_PATH
18919
hardcode_into_libs=yes
18920
if test "$with_gnu_ld" = yes; then
18921
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18922
shlibpath_overrides_runpath=no
18924
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18925
shlibpath_overrides_runpath=yes
18928
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18932
sys_lib_dlsearch_path_spec='/usr/lib'
18937
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18938
soname_spec='${libname}${release}${shared_ext}$major'
18939
shlibpath_var=LD_LIBRARY_PATH
18946
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18947
echo "${ECHO_T}$dynamic_linker" >&6; }
18948
test "$dynamic_linker" = no && can_build_shared=no
18950
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18951
echo $ECHO_N "(cached) $ECHO_C" >&6
18953
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18956
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18957
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18958
echo $ECHO_N "(cached) $ECHO_C" >&6
18960
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18963
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18965
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18966
if test "$GCC" = yes; then
18967
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18970
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18971
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18972
hardcode_action_GCJ=
18973
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18974
test -n "$runpath_var_GCJ" || \
18975
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18977
# We can hardcode non-existant directories.
18978
if test "$hardcode_direct_GCJ" != no &&
18979
# If the only mechanism to avoid hardcoding is shlibpath_var, we
18980
# have to relink, otherwise we might link with an installed library
18981
# when we should be linking with a yet-to-be-installed one
18982
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18983
test "$hardcode_minus_L_GCJ" != no; then
18984
# Linking always hardcodes the temporary library directory.
18985
hardcode_action_GCJ=relink
18987
# We can link without hardcoding, and we can hardcode nonexisting dirs.
18988
hardcode_action_GCJ=immediate
18991
# We cannot hardcode anything, or else we can only hardcode existing
18993
hardcode_action_GCJ=unsupported
18995
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18996
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18998
if test "$hardcode_action_GCJ" = relink; then
18999
# Fast installation is not supported
19000
enable_fast_install=no
19001
elif test "$shlibpath_overrides_runpath" = yes ||
19002
test "$enable_shared" = no; then
19003
# Fast installation is not necessary
19004
enable_fast_install=needless
19008
# The else clause should only fire when bootstrapping the
19009
# libtool distribution, otherwise you forgot to ship ltmain.sh
19010
# with your package, and you will get complaints that there are
19011
# no rules to generate ltmain.sh.
19012
if test -f "$ltmain"; then
19013
# See if we are running on zsh, and set the options which allow our commands through
19014
# without removal of \ escapes.
19015
if test -n "${ZSH_VERSION+set}" ; then
19016
setopt NO_GLOB_SUBST
19018
# Now quote all the things that may contain metacharacters while being
19019
# careful not to overquote the AC_SUBSTed values. We take copies of the
19020
# variables and quote the copies for generation of the libtool script.
19021
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19023
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19024
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19025
deplibs_check_method reload_flag reload_cmds need_locks \
19026
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19027
lt_cv_sys_global_symbol_to_c_name_address \
19028
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19029
old_postinstall_cmds old_postuninstall_cmds \
19033
lt_prog_compiler_wl_GCJ \
19034
lt_prog_compiler_pic_GCJ \
19035
lt_prog_compiler_static_GCJ \
19036
lt_prog_compiler_no_builtin_flag_GCJ \
19037
export_dynamic_flag_spec_GCJ \
19038
thread_safe_flag_spec_GCJ \
19039
whole_archive_flag_spec_GCJ \
19040
enable_shared_with_static_runtimes_GCJ \
19041
old_archive_cmds_GCJ \
19042
old_archive_from_new_cmds_GCJ \
19043
predep_objects_GCJ \
19044
postdep_objects_GCJ \
19047
compiler_lib_search_path_GCJ \
19048
compiler_lib_search_dirs_GCJ \
19050
archive_expsym_cmds_GCJ \
19051
postinstall_cmds_GCJ \
19052
postuninstall_cmds_GCJ \
19053
old_archive_from_expsyms_cmds_GCJ \
19054
allow_undefined_flag_GCJ \
19055
no_undefined_flag_GCJ \
19056
export_symbols_cmds_GCJ \
19057
hardcode_libdir_flag_spec_GCJ \
19058
hardcode_libdir_flag_spec_ld_GCJ \
19059
hardcode_libdir_separator_GCJ \
19060
hardcode_automatic_GCJ \
19062
module_expsym_cmds_GCJ \
19063
lt_cv_prog_compiler_c_o_GCJ \
19064
fix_srcfile_path_GCJ \
19065
exclude_expsyms_GCJ \
19066
include_expsyms_GCJ; do
19069
old_archive_cmds_GCJ | \
19070
old_archive_from_new_cmds_GCJ | \
19071
archive_cmds_GCJ | \
19072
archive_expsym_cmds_GCJ | \
19073
module_cmds_GCJ | \
19074
module_expsym_cmds_GCJ | \
19075
old_archive_from_expsyms_cmds_GCJ | \
19076
export_symbols_cmds_GCJ | \
19077
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19078
postinstall_cmds | postuninstall_cmds | \
19079
old_postinstall_cmds | old_postuninstall_cmds | \
19080
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19081
# Double-quote double-evaled strings.
19082
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19085
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19091
*'\$0 --fallback-echo"')
19092
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19098
cat <<__EOF__ >> "$cfgfile"
19099
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19101
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19103
# Shell to use when invoking shell scripts.
19106
# Whether or not to build shared libraries.
19107
build_libtool_libs=$enable_shared
19109
# Whether or not to build static libraries.
19110
build_old_libs=$enable_static
19112
# Whether or not to add -lc for building shared libraries.
19113
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19115
# Whether or not to disallow shared libs when runtime libs are static
19116
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19118
# Whether or not to optimize for fast installation.
19119
fast_install=$enable_fast_install
19122
host_alias=$host_alias
19126
# The build system.
19127
build_alias=$build_alias
19131
# An echo program that does not interpret backslashes.
19136
AR_FLAGS=$lt_AR_FLAGS
19141
# LTCC compiler flags.
19142
LTCFLAGS=$lt_LTCFLAGS
19144
# A language-specific compiler.
19145
CC=$lt_compiler_GCJ
19147
# Is the compiler the GNU C compiler?
19153
# The linker used to build libraries.
19156
# Whether we need hard or soft links.
19159
# A BSD-compatible nm program.
19162
# A symbol stripping program
19165
# Used to examine libraries when file_magic_cmd begins "file"
19166
MAGIC_CMD=$MAGIC_CMD
19168
# Used on cygwin: DLL creation program.
19171
# Used on cygwin: object dumper.
19174
# Used on cygwin: assembler.
19177
# The name of the directory that contains temporary libtool files.
19180
# How to create reloadable object files.
19181
reload_flag=$lt_reload_flag
19182
reload_cmds=$lt_reload_cmds
19184
# How to pass a linker flag through the compiler.
19185
wl=$lt_lt_prog_compiler_wl_GCJ
19187
# Object file suffix (normally "o").
19188
objext="$ac_objext"
19190
# Old archive suffix (normally "a").
19193
# Shared library suffix (normally ".so").
19194
shrext_cmds='$shrext_cmds'
19196
# Executable file suffix (normally "").
19199
# Additional compiler flags for building library objects.
19200
pic_flag=$lt_lt_prog_compiler_pic_GCJ
19203
# What is the maximum length of a command?
19204
max_cmd_len=$lt_cv_sys_max_cmd_len
19206
# Does compiler simultaneously support -c and -o options?
19207
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19209
# Must we lock files when doing compilation?
19210
need_locks=$lt_need_locks
19212
# Do we need the lib prefix for modules?
19213
need_lib_prefix=$need_lib_prefix
19215
# Do we need a version for libraries?
19216
need_version=$need_version
19218
# Whether dlopen is supported.
19219
dlopen_support=$enable_dlopen
19221
# Whether dlopen of programs is supported.
19222
dlopen_self=$enable_dlopen_self
19224
# Whether dlopen of statically linked programs is supported.
19225
dlopen_self_static=$enable_dlopen_self_static
19227
# Compiler flag to prevent dynamic linking.
19228
link_static_flag=$lt_lt_prog_compiler_static_GCJ
19230
# Compiler flag to turn off builtin functions.
19231
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19233
# Compiler flag to allow reflexive dlopens.
19234
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19236
# Compiler flag to generate shared objects directly from archives.
19237
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19239
# Compiler flag to generate thread-safe objects.
19240
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19242
# Library versioning type.
19243
version_type=$version_type
19245
# Format of library name prefix.
19246
libname_spec=$lt_libname_spec
19248
# List of archive names. First name is the real one, the rest are links.
19249
# The last name is the one that the linker finds with -lNAME.
19250
library_names_spec=$lt_library_names_spec
19252
# The coded name of the library, if different from the real name.
19253
soname_spec=$lt_soname_spec
19255
# Commands used to build and install an old-style archive.
19257
old_archive_cmds=$lt_old_archive_cmds_GCJ
19258
old_postinstall_cmds=$lt_old_postinstall_cmds
19259
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19261
# Create an old-style archive from a shared archive.
19262
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19264
# Create a temporary old-style archive to link instead of a shared archive.
19265
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19267
# Commands used to build and install a shared archive.
19268
archive_cmds=$lt_archive_cmds_GCJ
19269
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19270
postinstall_cmds=$lt_postinstall_cmds
19271
postuninstall_cmds=$lt_postuninstall_cmds
19273
# Commands used to build a loadable module (assumed same as above if empty)
19274
module_cmds=$lt_module_cmds_GCJ
19275
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19277
# Commands to strip libraries.
19278
old_striplib=$lt_old_striplib
19279
striplib=$lt_striplib
19281
# Dependencies to place before the objects being linked to create a
19283
predep_objects=$lt_predep_objects_GCJ
19285
# Dependencies to place after the objects being linked to create a
19287
postdep_objects=$lt_postdep_objects_GCJ
19289
# Dependencies to place before the objects being linked to create a
19291
predeps=$lt_predeps_GCJ
19293
# Dependencies to place after the objects being linked to create a
19295
postdeps=$lt_postdeps_GCJ
19297
# The directories searched by this compiler when creating a shared
19299
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19301
# The library search path used internally by the compiler when linking
19302
# a shared library.
19303
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19305
# Method to check whether dependent libraries are shared objects.
19306
deplibs_check_method=$lt_deplibs_check_method
19308
# Command to use when deplibs_check_method == file_magic.
19309
file_magic_cmd=$lt_file_magic_cmd
19311
# Flag that allows shared libraries with undefined symbols to be built.
19312
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19314
# Flag that forces no undefined symbols.
19315
no_undefined_flag=$lt_no_undefined_flag_GCJ
19317
# Commands used to finish a libtool library installation in a directory.
19318
finish_cmds=$lt_finish_cmds
19320
# Same as above, but a single script fragment to be evaled but not shown.
19321
finish_eval=$lt_finish_eval
19323
# Take the output of nm and produce a listing of raw symbols and C names.
19324
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19326
# Transform the output of nm in a proper C declaration
19327
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19329
# Transform the output of nm in a C name address pair
19330
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19332
# This is the shared library runtime path variable.
19333
runpath_var=$runpath_var
19335
# This is the shared library path variable.
19336
shlibpath_var=$shlibpath_var
19338
# Is shlibpath searched before the hard-coded library search path?
19339
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19341
# How to hardcode a shared library path into an executable.
19342
hardcode_action=$hardcode_action_GCJ
19344
# Whether we should hardcode library paths into libraries.
19345
hardcode_into_libs=$hardcode_into_libs
19347
# Flag to hardcode \$libdir into a binary during linking.
19348
# This must work even if \$libdir does not exist.
19349
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19351
# If ld is used when linking, flag to hardcode \$libdir into
19352
# a binary during linking. This must work even if \$libdir does
19354
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19356
# Whether we need a single -rpath flag with a separated argument.
19357
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19359
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19360
# resulting binary.
19361
hardcode_direct=$hardcode_direct_GCJ
19363
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19364
# resulting binary.
19365
hardcode_minus_L=$hardcode_minus_L_GCJ
19367
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19368
# the resulting binary.
19369
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19371
# Set to yes if building a shared library automatically hardcodes DIR into the library
19372
# and all subsequent libraries and executables linked against it.
19373
hardcode_automatic=$hardcode_automatic_GCJ
19375
# Variables whose values should be saved in libtool wrapper scripts and
19376
# restored at relink time.
19377
variables_saved_for_relink="$variables_saved_for_relink"
19379
# Whether libtool must link a program against all its dependency libraries.
19380
link_all_deplibs=$link_all_deplibs_GCJ
19382
# Compile-time system search path for libraries
19383
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19385
# Run-time system search path for libraries
19386
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19388
# Fix the shell variable \$srcfile for the compiler.
19389
fix_srcfile_path=$lt_fix_srcfile_path
19391
# Set to yes if exported symbols are required.
19392
always_export_symbols=$always_export_symbols_GCJ
19394
# The commands to list exported symbols.
19395
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19397
# The commands to extract the exported symbol list from a shared archive.
19398
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19400
# Symbols that should not be listed in the preloaded symbols.
19401
exclude_expsyms=$lt_exclude_expsyms_GCJ
19403
# Symbols that must always be exported.
19404
include_expsyms=$lt_include_expsyms_GCJ
19406
# ### END LIBTOOL TAG CONFIG: $tagname
19412
# If there is no Makefile yet, we rely on a make rule to execute
19413
# `config.status --recheck' to rerun these tests and create the
19414
# libtool script then.
19415
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19416
if test -f "$ltmain_in"; then
19417
test -f Makefile && make "$ltmain"
19423
ac_cpp='$CPP $CPPFLAGS'
19424
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19425
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19426
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19438
# Source file extension for RC test sources.
19441
# Object file extension for compiled RC test sources.
19445
# Code to be used in simple compile tests
19446
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19448
# Code to be used in simple link tests
19449
lt_simple_link_test_code="$lt_simple_compile_test_code"
19451
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19453
# If no C compiler was specified, use CC.
19456
# If no C compiler flags were specified, use CFLAGS.
19457
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19459
# Allow CC to be a program name with arguments.
19463
# save warnings/boilerplate of simple test code
19464
ac_outfile=conftest.$ac_objext
19465
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19466
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19467
_lt_compiler_boilerplate=`cat conftest.err`
19470
ac_outfile=conftest.$ac_objext
19471
echo "$lt_simple_link_test_code" >conftest.$ac_ext
19472
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19473
_lt_linker_boilerplate=`cat conftest.err`
19477
# Allow CC to be a program name with arguments.
19482
for cc_temp in $compiler""; do
19484
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19485
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19490
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19492
lt_cv_prog_compiler_c_o_RC=yes
19494
# The else clause should only fire when bootstrapping the
19495
# libtool distribution, otherwise you forgot to ship ltmain.sh
19496
# with your package, and you will get complaints that there are
19497
# no rules to generate ltmain.sh.
19498
if test -f "$ltmain"; then
19499
# See if we are running on zsh, and set the options which allow our commands through
19500
# without removal of \ escapes.
19501
if test -n "${ZSH_VERSION+set}" ; then
19502
setopt NO_GLOB_SUBST
19504
# Now quote all the things that may contain metacharacters while being
19505
# careful not to overquote the AC_SUBSTed values. We take copies of the
19506
# variables and quote the copies for generation of the libtool script.
19507
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19509
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19510
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19511
deplibs_check_method reload_flag reload_cmds need_locks \
19512
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19513
lt_cv_sys_global_symbol_to_c_name_address \
19514
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19515
old_postinstall_cmds old_postuninstall_cmds \
19519
lt_prog_compiler_wl_RC \
19520
lt_prog_compiler_pic_RC \
19521
lt_prog_compiler_static_RC \
19522
lt_prog_compiler_no_builtin_flag_RC \
19523
export_dynamic_flag_spec_RC \
19524
thread_safe_flag_spec_RC \
19525
whole_archive_flag_spec_RC \
19526
enable_shared_with_static_runtimes_RC \
19527
old_archive_cmds_RC \
19528
old_archive_from_new_cmds_RC \
19529
predep_objects_RC \
19530
postdep_objects_RC \
19533
compiler_lib_search_path_RC \
19534
compiler_lib_search_dirs_RC \
19536
archive_expsym_cmds_RC \
19537
postinstall_cmds_RC \
19538
postuninstall_cmds_RC \
19539
old_archive_from_expsyms_cmds_RC \
19540
allow_undefined_flag_RC \
19541
no_undefined_flag_RC \
19542
export_symbols_cmds_RC \
19543
hardcode_libdir_flag_spec_RC \
19544
hardcode_libdir_flag_spec_ld_RC \
19545
hardcode_libdir_separator_RC \
19546
hardcode_automatic_RC \
19548
module_expsym_cmds_RC \
19549
lt_cv_prog_compiler_c_o_RC \
19550
fix_srcfile_path_RC \
19551
exclude_expsyms_RC \
19552
include_expsyms_RC; do
19555
old_archive_cmds_RC | \
19556
old_archive_from_new_cmds_RC | \
19557
archive_cmds_RC | \
19558
archive_expsym_cmds_RC | \
19560
module_expsym_cmds_RC | \
19561
old_archive_from_expsyms_cmds_RC | \
19562
export_symbols_cmds_RC | \
19563
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19564
postinstall_cmds | postuninstall_cmds | \
19565
old_postinstall_cmds | old_postuninstall_cmds | \
19566
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19567
# Double-quote double-evaled strings.
19568
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19571
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19577
*'\$0 --fallback-echo"')
19578
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19584
cat <<__EOF__ >> "$cfgfile"
19585
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19587
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19589
# Shell to use when invoking shell scripts.
19592
# Whether or not to build shared libraries.
19593
build_libtool_libs=$enable_shared
19595
# Whether or not to build static libraries.
19596
build_old_libs=$enable_static
19598
# Whether or not to add -lc for building shared libraries.
19599
build_libtool_need_lc=$archive_cmds_need_lc_RC
19601
# Whether or not to disallow shared libs when runtime libs are static
19602
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19604
# Whether or not to optimize for fast installation.
19605
fast_install=$enable_fast_install
19608
host_alias=$host_alias
19612
# The build system.
19613
build_alias=$build_alias
19617
# An echo program that does not interpret backslashes.
19622
AR_FLAGS=$lt_AR_FLAGS
19627
# LTCC compiler flags.
19628
LTCFLAGS=$lt_LTCFLAGS
19630
# A language-specific compiler.
19633
# Is the compiler the GNU C compiler?
19639
# The linker used to build libraries.
19642
# Whether we need hard or soft links.
19645
# A BSD-compatible nm program.
19648
# A symbol stripping program
19651
# Used to examine libraries when file_magic_cmd begins "file"
19652
MAGIC_CMD=$MAGIC_CMD
19654
# Used on cygwin: DLL creation program.
19657
# Used on cygwin: object dumper.
19660
# Used on cygwin: assembler.
19663
# The name of the directory that contains temporary libtool files.
19666
# How to create reloadable object files.
19667
reload_flag=$lt_reload_flag
19668
reload_cmds=$lt_reload_cmds
19670
# How to pass a linker flag through the compiler.
19671
wl=$lt_lt_prog_compiler_wl_RC
19673
# Object file suffix (normally "o").
19674
objext="$ac_objext"
19676
# Old archive suffix (normally "a").
19679
# Shared library suffix (normally ".so").
19680
shrext_cmds='$shrext_cmds'
19682
# Executable file suffix (normally "").
19685
# Additional compiler flags for building library objects.
19686
pic_flag=$lt_lt_prog_compiler_pic_RC
19689
# What is the maximum length of a command?
19690
max_cmd_len=$lt_cv_sys_max_cmd_len
19692
# Does compiler simultaneously support -c and -o options?
19693
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19695
# Must we lock files when doing compilation?
19696
need_locks=$lt_need_locks
19698
# Do we need the lib prefix for modules?
19699
need_lib_prefix=$need_lib_prefix
19701
# Do we need a version for libraries?
19702
need_version=$need_version
19704
# Whether dlopen is supported.
19705
dlopen_support=$enable_dlopen
19707
# Whether dlopen of programs is supported.
19708
dlopen_self=$enable_dlopen_self
19710
# Whether dlopen of statically linked programs is supported.
19711
dlopen_self_static=$enable_dlopen_self_static
19713
# Compiler flag to prevent dynamic linking.
19714
link_static_flag=$lt_lt_prog_compiler_static_RC
19716
# Compiler flag to turn off builtin functions.
19717
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19719
# Compiler flag to allow reflexive dlopens.
19720
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19722
# Compiler flag to generate shared objects directly from archives.
19723
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19725
# Compiler flag to generate thread-safe objects.
19726
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19728
# Library versioning type.
19729
version_type=$version_type
19731
# Format of library name prefix.
19732
libname_spec=$lt_libname_spec
19734
# List of archive names. First name is the real one, the rest are links.
19735
# The last name is the one that the linker finds with -lNAME.
19736
library_names_spec=$lt_library_names_spec
19738
# The coded name of the library, if different from the real name.
19739
soname_spec=$lt_soname_spec
19741
# Commands used to build and install an old-style archive.
19743
old_archive_cmds=$lt_old_archive_cmds_RC
19744
old_postinstall_cmds=$lt_old_postinstall_cmds
19745
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19747
# Create an old-style archive from a shared archive.
19748
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19750
# Create a temporary old-style archive to link instead of a shared archive.
19751
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19753
# Commands used to build and install a shared archive.
19754
archive_cmds=$lt_archive_cmds_RC
19755
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19756
postinstall_cmds=$lt_postinstall_cmds
19757
postuninstall_cmds=$lt_postuninstall_cmds
19759
# Commands used to build a loadable module (assumed same as above if empty)
19760
module_cmds=$lt_module_cmds_RC
19761
module_expsym_cmds=$lt_module_expsym_cmds_RC
19763
# Commands to strip libraries.
19764
old_striplib=$lt_old_striplib
19765
striplib=$lt_striplib
19767
# Dependencies to place before the objects being linked to create a
19769
predep_objects=$lt_predep_objects_RC
19771
# Dependencies to place after the objects being linked to create a
19773
postdep_objects=$lt_postdep_objects_RC
19775
# Dependencies to place before the objects being linked to create a
19777
predeps=$lt_predeps_RC
19779
# Dependencies to place after the objects being linked to create a
19781
postdeps=$lt_postdeps_RC
19783
# The directories searched by this compiler when creating a shared
19785
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19787
# The library search path used internally by the compiler when linking
19788
# a shared library.
19789
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19791
# Method to check whether dependent libraries are shared objects.
19792
deplibs_check_method=$lt_deplibs_check_method
19794
# Command to use when deplibs_check_method == file_magic.
19795
file_magic_cmd=$lt_file_magic_cmd
19797
# Flag that allows shared libraries with undefined symbols to be built.
19798
allow_undefined_flag=$lt_allow_undefined_flag_RC
19800
# Flag that forces no undefined symbols.
19801
no_undefined_flag=$lt_no_undefined_flag_RC
19803
# Commands used to finish a libtool library installation in a directory.
19804
finish_cmds=$lt_finish_cmds
19806
# Same as above, but a single script fragment to be evaled but not shown.
19807
finish_eval=$lt_finish_eval
19809
# Take the output of nm and produce a listing of raw symbols and C names.
19810
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19812
# Transform the output of nm in a proper C declaration
19813
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19815
# Transform the output of nm in a C name address pair
19816
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19818
# This is the shared library runtime path variable.
19819
runpath_var=$runpath_var
19821
# This is the shared library path variable.
19822
shlibpath_var=$shlibpath_var
19824
# Is shlibpath searched before the hard-coded library search path?
19825
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19827
# How to hardcode a shared library path into an executable.
19828
hardcode_action=$hardcode_action_RC
19830
# Whether we should hardcode library paths into libraries.
19831
hardcode_into_libs=$hardcode_into_libs
19833
# Flag to hardcode \$libdir into a binary during linking.
19834
# This must work even if \$libdir does not exist.
19835
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19837
# If ld is used when linking, flag to hardcode \$libdir into
19838
# a binary during linking. This must work even if \$libdir does
19840
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19842
# Whether we need a single -rpath flag with a separated argument.
19843
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19845
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19846
# resulting binary.
19847
hardcode_direct=$hardcode_direct_RC
19849
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19850
# resulting binary.
19851
hardcode_minus_L=$hardcode_minus_L_RC
19853
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19854
# the resulting binary.
19855
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19857
# Set to yes if building a shared library automatically hardcodes DIR into the library
19858
# and all subsequent libraries and executables linked against it.
19859
hardcode_automatic=$hardcode_automatic_RC
19861
# Variables whose values should be saved in libtool wrapper scripts and
19862
# restored at relink time.
19863
variables_saved_for_relink="$variables_saved_for_relink"
19865
# Whether libtool must link a program against all its dependency libraries.
19866
link_all_deplibs=$link_all_deplibs_RC
19868
# Compile-time system search path for libraries
19869
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19871
# Run-time system search path for libraries
19872
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19874
# Fix the shell variable \$srcfile for the compiler.
19875
fix_srcfile_path=$lt_fix_srcfile_path
19877
# Set to yes if exported symbols are required.
19878
always_export_symbols=$always_export_symbols_RC
19880
# The commands to list exported symbols.
19881
export_symbols_cmds=$lt_export_symbols_cmds_RC
19883
# The commands to extract the exported symbol list from a shared archive.
19884
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19886
# Symbols that should not be listed in the preloaded symbols.
19887
exclude_expsyms=$lt_exclude_expsyms_RC
19889
# Symbols that must always be exported.
19890
include_expsyms=$lt_include_expsyms_RC
19892
# ### END LIBTOOL TAG CONFIG: $tagname
19898
# If there is no Makefile yet, we rely on a make rule to execute
19899
# `config.status --recheck' to rerun these tests and create the
19900
# libtool script then.
19901
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19902
if test -f "$ltmain_in"; then
19903
test -f Makefile && make "$ltmain"
19909
ac_cpp='$CPP $CPPFLAGS'
19910
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19911
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19912
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19919
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19920
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19921
{ (exit 1); exit 1; }; }
19925
# Append the new tag name to the list of available tags.
19926
if test -n "$tagname" ; then
19927
available_tags="$available_tags $tagname"
19933
# Now substitute the updated list of available tags.
19934
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19935
mv "${ofile}T" "$ofile"
19939
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19940
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19941
{ (exit 1); exit 1; }; }
19947
# This can be used to rebuild libtool when needed
19948
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19950
# Always use our own libtool.
19951
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19953
# Prevent multiple expansion
12351
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12352
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12353
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12354
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12355
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12356
{ $as_echo "$as_me:$LINENO: result: yes" >&5
12357
$as_echo "yes" >&6; }
12359
# FIXME - insert some real tests, host_os isn't really good enough
12362
if test -n "$STRIP" ; then
12363
striplib="$STRIP -x"
12364
old_striplib="$STRIP -S"
12365
{ $as_echo "$as_me:$LINENO: result: yes" >&5
12366
$as_echo "yes" >&6; }
12368
{ $as_echo "$as_me:$LINENO: result: no" >&5
12369
$as_echo "no" >&6; }
12373
{ $as_echo "$as_me:$LINENO: result: no" >&5
12374
$as_echo "no" >&6; }
12390
# Report which library types will actually be built
12391
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12392
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12393
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
12394
$as_echo "$can_build_shared" >&6; }
12396
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12397
$as_echo_n "checking whether to build shared libraries... " >&6; }
12398
test "$can_build_shared" = "no" && enable_shared=no
12400
# On AIX, shared libraries and static libraries use the same namespace, and
12401
# are all built from PIC.
12404
test "$enable_shared" = yes && enable_static=no
12405
if test -n "$RANLIB"; then
12406
archive_cmds="$archive_cmds~\$RANLIB \$lib"
12407
postinstall_cmds='$RANLIB $lib'
12412
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12413
test "$enable_shared" = yes && enable_static=no
12417
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
12418
$as_echo "$enable_shared" >&6; }
12420
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12421
$as_echo_n "checking whether to build static libraries... " >&6; }
12422
# Make sure either enable_shared or enable_static is yes.
12423
test "$enable_shared" = yes || enable_static=yes
12424
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
12425
$as_echo "$enable_static" >&6; }
12432
ac_cpp='$CPP $CPPFLAGS'
12433
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12434
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12435
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12451
ac_config_commands="$ac_config_commands libtool"
12456
# Only expand once: