10735
# Report which library types will actually be built
10736
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10737
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10738
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10739
echo "${ECHO_T}$can_build_shared" >&6; }
10741
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10742
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10743
test "$can_build_shared" = "no" && enable_shared=no
10745
# On AIX, shared libraries and static libraries use the same namespace, and
10746
# are all built from PIC.
10749
test "$enable_shared" = yes && enable_static=no
10750
if test -n "$RANLIB"; then
10751
archive_cmds="$archive_cmds~\$RANLIB \$lib"
10752
postinstall_cmds='$RANLIB $lib'
10757
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10758
test "$enable_shared" = yes && enable_static=no
10762
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10763
echo "${ECHO_T}$enable_shared" >&6; }
10765
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10766
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10767
# Make sure either enable_shared or enable_static is yes.
10768
test "$enable_shared" = yes || enable_static=yes
10769
{ echo "$as_me:$LINENO: result: $enable_static" >&5
10770
echo "${ECHO_T}$enable_static" >&6; }
10772
# The else clause should only fire when bootstrapping the
10773
# libtool distribution, otherwise you forgot to ship ltmain.sh
10774
# with your package, and you will get complaints that there are
10775
# no rules to generate ltmain.sh.
10776
if test -f "$ltmain"; then
10777
# See if we are running on zsh, and set the options which allow our commands through
10778
# without removal of \ escapes.
10779
if test -n "${ZSH_VERSION+set}" ; then
10780
setopt NO_GLOB_SUBST
10782
# Now quote all the things that may contain metacharacters while being
10783
# careful not to overquote the AC_SUBSTed values. We take copies of the
10784
# variables and quote the copies for generation of the libtool script.
10785
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10787
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10788
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10789
deplibs_check_method reload_flag reload_cmds need_locks \
10790
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10791
lt_cv_sys_global_symbol_to_c_name_address \
10792
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10793
old_postinstall_cmds old_postuninstall_cmds \
10797
lt_prog_compiler_wl \
10798
lt_prog_compiler_pic \
10799
lt_prog_compiler_static \
10800
lt_prog_compiler_no_builtin_flag \
10801
export_dynamic_flag_spec \
10802
thread_safe_flag_spec \
10803
whole_archive_flag_spec \
10804
enable_shared_with_static_runtimes \
10806
old_archive_from_new_cmds \
10811
compiler_lib_search_path \
10812
compiler_lib_search_dirs \
10814
archive_expsym_cmds \
10816
postuninstall_cmds \
10817
old_archive_from_expsyms_cmds \
10818
allow_undefined_flag \
10819
no_undefined_flag \
10820
export_symbols_cmds \
10821
hardcode_libdir_flag_spec \
10822
hardcode_libdir_flag_spec_ld \
10823
hardcode_libdir_separator \
10824
hardcode_automatic \
10826
module_expsym_cmds \
10827
lt_cv_prog_compiler_c_o \
10830
include_expsyms; do
10833
old_archive_cmds | \
10834
old_archive_from_new_cmds | \
10836
archive_expsym_cmds | \
10838
module_expsym_cmds | \
10839
old_archive_from_expsyms_cmds | \
10840
export_symbols_cmds | \
10841
extract_expsyms_cmds | reload_cmds | finish_cmds | \
10842
postinstall_cmds | postuninstall_cmds | \
10843
old_postinstall_cmds | old_postuninstall_cmds | \
10844
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10845
# Double-quote double-evaled strings.
10846
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10849
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10855
*'\$0 --fallback-echo"')
10856
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10860
cfgfile="${ofile}T"
10861
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10863
{ echo "$as_me:$LINENO: creating $ofile" >&5
10864
echo "$as_me: creating $ofile" >&6;}
10866
cat <<__EOF__ >> "$cfgfile"
10869
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10870
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10871
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10873
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10874
# Free Software Foundation, Inc.
10876
# This file is part of GNU Libtool:
10877
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10879
# This program is free software; you can redistribute it and/or modify
10880
# it under the terms of the GNU General Public License as published by
10881
# the Free Software Foundation; either version 2 of the License, or
10882
# (at your option) any later version.
10884
# This program is distributed in the hope that it will be useful, but
10885
# WITHOUT ANY WARRANTY; without even the implied warranty of
10886
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10887
# General Public License for more details.
10889
# You should have received a copy of the GNU General Public License
10890
# along with this program; if not, write to the Free Software
10891
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10893
# As a special exception to the GNU General Public License, if you
10894
# distribute this file as part of a program that contains a
10895
# configuration script generated by Autoconf, you may include it under
10896
# the same distribution terms that you use for the rest of that program.
10898
# A sed program that does not truncate output.
10901
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10902
Xsed="$SED -e 1s/^X//"
10904
# The HP-UX ksh and POSIX shell print the target directory to stdout
10905
# if CDPATH is set.
10906
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10908
# The names of the tagged configurations supported by this script.
10911
# ### BEGIN LIBTOOL CONFIG
10913
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10915
# Shell to use when invoking shell scripts.
10918
# Whether or not to build shared libraries.
10919
build_libtool_libs=$enable_shared
10921
# Whether or not to build static libraries.
10922
build_old_libs=$enable_static
10924
# Whether or not to add -lc for building shared libraries.
10925
build_libtool_need_lc=$archive_cmds_need_lc
10927
# Whether or not to disallow shared libs when runtime libs are static
10928
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10930
# Whether or not to optimize for fast installation.
10931
fast_install=$enable_fast_install
10934
host_alias=$host_alias
10938
# The build system.
10939
build_alias=$build_alias
10943
# An echo program that does not interpret backslashes.
10948
AR_FLAGS=$lt_AR_FLAGS
10953
# LTCC compiler flags.
10954
LTCFLAGS=$lt_LTCFLAGS
10956
# A language-specific compiler.
10959
# Is the compiler the GNU C compiler?
10965
# The linker used to build libraries.
10968
# Whether we need hard or soft links.
10971
# A BSD-compatible nm program.
10974
# A symbol stripping program
10977
# Used to examine libraries when file_magic_cmd begins "file"
10978
MAGIC_CMD=$MAGIC_CMD
10980
# Used on cygwin: DLL creation program.
10983
# Used on cygwin: object dumper.
10986
# Used on cygwin: assembler.
10989
# The name of the directory that contains temporary libtool files.
10992
# How to create reloadable object files.
10993
reload_flag=$lt_reload_flag
10994
reload_cmds=$lt_reload_cmds
10996
# How to pass a linker flag through the compiler.
10997
wl=$lt_lt_prog_compiler_wl
10999
# Object file suffix (normally "o").
11000
objext="$ac_objext"
11002
# Old archive suffix (normally "a").
11005
# Shared library suffix (normally ".so").
11006
shrext_cmds='$shrext_cmds'
11008
# Executable file suffix (normally "").
11011
# Additional compiler flags for building library objects.
11012
pic_flag=$lt_lt_prog_compiler_pic
11015
# What is the maximum length of a command?
11016
max_cmd_len=$lt_cv_sys_max_cmd_len
11018
# Does compiler simultaneously support -c and -o options?
11019
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11021
# Must we lock files when doing compilation?
11022
need_locks=$lt_need_locks
11024
# Do we need the lib prefix for modules?
11025
need_lib_prefix=$need_lib_prefix
11027
# Do we need a version for libraries?
11028
need_version=$need_version
11030
# Whether dlopen is supported.
11031
dlopen_support=$enable_dlopen
11033
# Whether dlopen of programs is supported.
11034
dlopen_self=$enable_dlopen_self
11036
# Whether dlopen of statically linked programs is supported.
11037
dlopen_self_static=$enable_dlopen_self_static
11039
# Compiler flag to prevent dynamic linking.
11040
link_static_flag=$lt_lt_prog_compiler_static
11042
# Compiler flag to turn off builtin functions.
11043
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11045
# Compiler flag to allow reflexive dlopens.
11046
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11048
# Compiler flag to generate shared objects directly from archives.
11049
whole_archive_flag_spec=$lt_whole_archive_flag_spec
11051
# Compiler flag to generate thread-safe objects.
11052
thread_safe_flag_spec=$lt_thread_safe_flag_spec
11054
# Library versioning type.
11055
version_type=$version_type
11057
# Format of library name prefix.
11058
libname_spec=$lt_libname_spec
11060
# List of archive names. First name is the real one, the rest are links.
11061
# The last name is the one that the linker finds with -lNAME.
11062
library_names_spec=$lt_library_names_spec
11064
# The coded name of the library, if different from the real name.
11065
soname_spec=$lt_soname_spec
11067
# Commands used to build and install an old-style archive.
11069
old_archive_cmds=$lt_old_archive_cmds
11070
old_postinstall_cmds=$lt_old_postinstall_cmds
11071
old_postuninstall_cmds=$lt_old_postuninstall_cmds
11073
# Create an old-style archive from a shared archive.
11074
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11076
# Create a temporary old-style archive to link instead of a shared archive.
11077
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11079
# Commands used to build and install a shared archive.
11080
archive_cmds=$lt_archive_cmds
11081
archive_expsym_cmds=$lt_archive_expsym_cmds
11082
postinstall_cmds=$lt_postinstall_cmds
11083
postuninstall_cmds=$lt_postuninstall_cmds
11085
# Commands used to build a loadable module (assumed same as above if empty)
11086
module_cmds=$lt_module_cmds
11087
module_expsym_cmds=$lt_module_expsym_cmds
11089
# Commands to strip libraries.
11090
old_striplib=$lt_old_striplib
11091
striplib=$lt_striplib
11093
# Dependencies to place before the objects being linked to create a
11095
predep_objects=$lt_predep_objects
11097
# Dependencies to place after the objects being linked to create a
11099
postdep_objects=$lt_postdep_objects
11101
# Dependencies to place before the objects being linked to create a
11103
predeps=$lt_predeps
11105
# Dependencies to place after the objects being linked to create a
11107
postdeps=$lt_postdeps
11109
# The directories searched by this compiler when creating a shared
11111
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11113
# The library search path used internally by the compiler when linking
11114
# a shared library.
11115
compiler_lib_search_path=$lt_compiler_lib_search_path
11117
# Method to check whether dependent libraries are shared objects.
11118
deplibs_check_method=$lt_deplibs_check_method
11120
# Command to use when deplibs_check_method == file_magic.
11121
file_magic_cmd=$lt_file_magic_cmd
11123
# Flag that allows shared libraries with undefined symbols to be built.
11124
allow_undefined_flag=$lt_allow_undefined_flag
11126
# Flag that forces no undefined symbols.
11127
no_undefined_flag=$lt_no_undefined_flag
11129
# Commands used to finish a libtool library installation in a directory.
11130
finish_cmds=$lt_finish_cmds
11132
# Same as above, but a single script fragment to be evaled but not shown.
11133
finish_eval=$lt_finish_eval
11135
# Take the output of nm and produce a listing of raw symbols and C names.
11136
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11138
# Transform the output of nm in a proper C declaration
11139
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11141
# Transform the output of nm in a C name address pair
11142
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11144
# This is the shared library runtime path variable.
11145
runpath_var=$runpath_var
11147
# This is the shared library path variable.
11148
shlibpath_var=$shlibpath_var
11150
# Is shlibpath searched before the hard-coded library search path?
11151
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11153
# How to hardcode a shared library path into an executable.
11154
hardcode_action=$hardcode_action
11156
# Whether we should hardcode library paths into libraries.
11157
hardcode_into_libs=$hardcode_into_libs
11159
# Flag to hardcode \$libdir into a binary during linking.
11160
# This must work even if \$libdir does not exist.
11161
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11163
# If ld is used when linking, flag to hardcode \$libdir into
11164
# a binary during linking. This must work even if \$libdir does
11166
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11168
# Whether we need a single -rpath flag with a separated argument.
11169
hardcode_libdir_separator=$lt_hardcode_libdir_separator
11171
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11172
# resulting binary.
11173
hardcode_direct=$hardcode_direct
11175
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11176
# resulting binary.
11177
hardcode_minus_L=$hardcode_minus_L
11179
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11180
# the resulting binary.
11181
hardcode_shlibpath_var=$hardcode_shlibpath_var
11183
# Set to yes if building a shared library automatically hardcodes DIR into the library
11184
# and all subsequent libraries and executables linked against it.
11185
hardcode_automatic=$hardcode_automatic
11187
# Variables whose values should be saved in libtool wrapper scripts and
11188
# restored at relink time.
11189
variables_saved_for_relink="$variables_saved_for_relink"
11191
# Whether libtool must link a program against all its dependency libraries.
11192
link_all_deplibs=$link_all_deplibs
11194
# Compile-time system search path for libraries
11195
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11197
# Run-time system search path for libraries
11198
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11200
# Fix the shell variable \$srcfile for the compiler.
11201
fix_srcfile_path=$lt_fix_srcfile_path
11203
# Set to yes if exported symbols are required.
11204
always_export_symbols=$always_export_symbols
11206
# The commands to list exported symbols.
11207
export_symbols_cmds=$lt_export_symbols_cmds
11209
# The commands to extract the exported symbol list from a shared archive.
11210
extract_expsyms_cmds=$lt_extract_expsyms_cmds
11212
# Symbols that should not be listed in the preloaded symbols.
11213
exclude_expsyms=$lt_exclude_expsyms
11215
# Symbols that must always be exported.
11216
include_expsyms=$lt_include_expsyms
11218
# ### END LIBTOOL CONFIG
11225
cat <<\EOF >> "$cfgfile"
11227
# AIX sometimes has problems with the GCC collect2 program. For some
11228
# reason, if we set the COLLECT_NAMES environment variable, the problems
11229
# vanish in a puff of smoke.
11230
if test "X${COLLECT_NAMES+set}" != Xset; then
11232
export COLLECT_NAMES
11238
# We use sed instead of cat because bash on DJGPP gets confused if
11239
# if finds mixed CR/LF and LF-only lines. Since sed operates in
11240
# text mode, it properly converts lines to CR/LF. This bash problem
11241
# is reportedly fixed, but why not run on old versions too?
11242
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11244
mv -f "$cfgfile" "$ofile" || \
11245
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11249
# If there is no Makefile yet, we rely on a make rule to execute
11250
# `config.status --recheck' to rerun these tests and create the
11251
# libtool script then.
11252
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11253
if test -f "$ltmain_in"; then
11254
test -f Makefile && make "$ltmain"
11260
ac_cpp='$CPP $CPPFLAGS'
11261
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11262
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11263
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11268
# Check whether --with-tags was given.
11269
if test "${with_tags+set}" = set; then
11270
withval=$with_tags; tagnames="$withval"
11274
if test -f "$ltmain" && test -n "$tagnames"; then
11275
if test ! -f "${ofile}"; then
11276
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11277
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11280
if test -z "$LTCC"; then
11281
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11282
if test -z "$LTCC"; then
11283
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11284
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11286
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11287
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11290
if test -z "$LTCFLAGS"; then
11291
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11294
# Extract list of available tagged configurations in $ofile.
11295
# Note that this assumes the entire list is on one line.
11296
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11298
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11299
for tagname in $tagnames; do
11301
# Check whether tagname contains only valid characters
11302
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11304
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11305
echo "$as_me: error: invalid tag name: $tagname" >&2;}
11306
{ (exit 1); exit 1; }; }
11310
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11312
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11313
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11314
{ (exit 1); exit 1; }; }
11317
# Update the list of available tags.
11318
if test -n "$tagname"; then
11319
echo appending configuration tag \"$tagname\" to $ofile
11323
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11324
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11325
(test "X$CXX" != "Xg++"))) ; then
11327
ac_cpp='$CXXCPP $CPPFLAGS'
11328
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11329
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11330
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11335
archive_cmds_need_lc_CXX=no
11336
allow_undefined_flag_CXX=
11337
always_export_symbols_CXX=no
11338
archive_expsym_cmds_CXX=
11339
export_dynamic_flag_spec_CXX=
11340
hardcode_direct_CXX=no
11341
hardcode_libdir_flag_spec_CXX=
11342
hardcode_libdir_flag_spec_ld_CXX=
11343
hardcode_libdir_separator_CXX=
11344
hardcode_minus_L_CXX=no
11345
hardcode_shlibpath_var_CXX=unsupported
11346
hardcode_automatic_CXX=no
11348
module_expsym_cmds_CXX=
11349
link_all_deplibs_CXX=unknown
11350
old_archive_cmds_CXX=$old_archive_cmds
11351
no_undefined_flag_CXX=
11352
whole_archive_flag_spec_CXX=
11353
enable_shared_with_static_runtimes_CXX=no
11355
# Dependencies to place before and after the object being linked:
11356
predep_objects_CXX=
11357
postdep_objects_CXX=
11360
compiler_lib_search_path_CXX=
11361
compiler_lib_search_dirs_CXX=
11363
# Source file extension for C++ test sources.
11366
# Object file extension for compiled C++ test sources.
11370
# Code to be used in simple compile tests
11371
lt_simple_compile_test_code="int some_variable = 0;"
11373
# Code to be used in simple link tests
11374
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11376
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11378
# If no C compiler was specified, use CC.
11381
# If no C compiler flags were specified, use CFLAGS.
11382
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11384
# Allow CC to be a program name with arguments.
11388
# save warnings/boilerplate of simple test code
11389
ac_outfile=conftest.$ac_objext
11390
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11391
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11392
_lt_compiler_boilerplate=`cat conftest.err`
11395
ac_outfile=conftest.$ac_objext
11396
echo "$lt_simple_link_test_code" >conftest.$ac_ext
11397
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11398
_lt_linker_boilerplate=`cat conftest.err`
11402
# Allow CC to be a program name with arguments.
11407
lt_save_with_gnu_ld=$with_gnu_ld
11408
lt_save_path_LD=$lt_cv_path_LD
11409
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11410
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11412
$as_unset lt_cv_prog_gnu_ld
11414
if test -n "${lt_cv_path_LDCXX+set}"; then
11415
lt_cv_path_LD=$lt_cv_path_LDCXX
11417
$as_unset lt_cv_path_LD
11419
test -z "${LDCXX+set}" || LD=$LDCXX
11423
for cc_temp in $compiler""; do
11425
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11426
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11431
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11434
# We don't want -fno-exception wen compiling C++ code, so set the
11435
# no_builtin_flag separately
11436
if test "$GXX" = yes; then
11437
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11439
lt_prog_compiler_no_builtin_flag_CXX=
11442
if test "$GXX" = yes; then
11443
# Set up default GNU C++ configuration
11446
# Check whether --with-gnu-ld was given.
11447
if test "${with_gnu_ld+set}" = set; then
11448
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11454
if test "$GCC" = yes; then
11455
# Check if gcc -print-prog-name=ld gives a path.
11456
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11457
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11460
# gcc leaves a trailing carriage return which upsets mingw
11461
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11463
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11466
# Accept absolute paths.
11468
re_direlt='/[^/][^/]*/\.\./'
11469
# Canonicalize the pathname of ld
11470
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11471
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11472
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11474
test -z "$LD" && LD="$ac_prog"
11477
# If it fails, then pretend we aren't using GCC.
11481
# If it is relative, then search for the first ld in PATH.
11482
with_gnu_ld=unknown
11485
elif test "$with_gnu_ld" = yes; then
11486
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
11487
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11489
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11490
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11492
if test "${lt_cv_path_LD+set}" = set; then
11493
echo $ECHO_N "(cached) $ECHO_C" >&6
11495
if test -z "$LD"; then
11496
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11497
for ac_dir in $PATH; do
11499
test -z "$ac_dir" && ac_dir=.
11500
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11501
lt_cv_path_LD="$ac_dir/$ac_prog"
11502
# Check to see if the program is GNU ld. I'd rather use --version,
11503
# but apparently some variants of GNU ld only accept -v.
11504
# Break only if it was the GNU/non-GNU ld that we prefer.
11505
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11506
*GNU* | *'with BFD'*)
11507
test "$with_gnu_ld" != no && break
11510
test "$with_gnu_ld" != yes && break
11517
lt_cv_path_LD="$LD" # Let the user override the test with a path.
11521
LD="$lt_cv_path_LD"
11522
if test -n "$LD"; then
11523
{ echo "$as_me:$LINENO: result: $LD" >&5
11524
echo "${ECHO_T}$LD" >&6; }
11526
{ echo "$as_me:$LINENO: result: no" >&5
11527
echo "${ECHO_T}no" >&6; }
11529
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11530
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11531
{ (exit 1); exit 1; }; }
11532
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11533
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11534
if test "${lt_cv_prog_gnu_ld+set}" = set; then
11535
echo $ECHO_N "(cached) $ECHO_C" >&6
11537
# I'd rather use --version here, but apparently some GNU lds only accept -v.
11538
case `$LD -v 2>&1 </dev/null` in
11539
*GNU* | *'with BFD'*)
11540
lt_cv_prog_gnu_ld=yes
11543
lt_cv_prog_gnu_ld=no
11547
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11548
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11549
with_gnu_ld=$lt_cv_prog_gnu_ld
11553
# Check if GNU C++ uses GNU ld as the underlying linker, since the
11554
# archiving commands below assume that GNU ld is being used.
11555
if test "$with_gnu_ld" = yes; then
11556
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11557
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'
11559
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11560
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11562
# If archive_cmds runs LD, not CC, wlarc should be empty
11563
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11564
# investigate it a little bit more. (MM)
11567
# ancient GNU ld didn't support --whole-archive et. al.
11568
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11569
grep 'no-whole-archive' > /dev/null; then
11570
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11572
whole_archive_flag_spec_CXX=
11578
# A generic and very simple default shared library creation
11579
# command for GNU C++ for the case where it uses the native
11580
# linker, instead of GNU ld. If possible, this setting should
11581
# overridden to take advantage of the native linker features on
11582
# the platform it is being used on.
11583
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11586
# Commands to make compiler produce verbose output that lists
11587
# what "hidden" libraries, object files and flags are used when
11588
# linking a shared library.
11589
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11597
# PORTME: fill in a description of your system's C++ link characteristics
11598
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11599
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11603
# FIXME: insert proper C++ library support
11607
if test "$host_cpu" = ia64; then
11608
# On IA64, the linker does run time linking by default, so we don't
11609
# have to do anything special.
11610
aix_use_runtimelinking=no
11611
exp_sym_flag='-Bexport'
11614
aix_use_runtimelinking=no
11616
# Test if we are trying to use run time linking or normal
11617
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11618
# need to do runtime linking.
11619
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11620
for ld_flag in $LDFLAGS; do
11623
aix_use_runtimelinking=yes
11631
exp_sym_flag='-bexport'
11632
no_entry_flag='-bnoentry'
11635
# When large executables or shared objects are built, AIX ld can
11636
# have problems creating the table of contents. If linking a library
11637
# or program results in "error TOC overflow" add -mminimal-toc to
11638
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11639
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11641
archive_cmds_CXX=''
11642
hardcode_direct_CXX=yes
11643
hardcode_libdir_separator_CXX=':'
11644
link_all_deplibs_CXX=yes
11646
if test "$GXX" = yes; then
11647
case $host_os in aix4.[012]|aix4.[012].*)
11648
# We only want to do this on AIX 4.2 and lower, the check
11649
# below for broken collect2 doesn't work under 4.3+
11650
collect2name=`${CC} -print-prog-name=collect2`
11651
if test -f "$collect2name" && \
11652
strings "$collect2name" | grep resolve_lib_name >/dev/null
11654
# We have reworked collect2
11657
# We have old collect2
11658
hardcode_direct_CXX=unsupported
11659
# It fails to find uninstalled libraries when the uninstalled
11660
# path is not listed in the libpath. Setting hardcode_minus_L
11661
# to unsupported forces relinking
11662
hardcode_minus_L_CXX=yes
11663
hardcode_libdir_flag_spec_CXX='-L$libdir'
11664
hardcode_libdir_separator_CXX=
11668
shared_flag='-shared'
11669
if test "$aix_use_runtimelinking" = yes; then
11670
shared_flag="$shared_flag "'${wl}-G'
11674
if test "$host_cpu" = ia64; then
11675
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11676
# chokes on -Wl,-G. The following line is correct:
11679
if test "$aix_use_runtimelinking" = yes; then
11680
shared_flag='${wl}-G'
11682
shared_flag='${wl}-bM:SRE'
11687
# It seems that -bexpall does not export symbols beginning with
11688
# underscore (_), so it is better to generate a list of symbols to export.
11689
always_export_symbols_CXX=yes
11690
if test "$aix_use_runtimelinking" = yes; then
11691
# Warning - without using the other runtime loading flags (-brtl),
11692
# -berok will link without error, but may produce a broken library.
11693
allow_undefined_flag_CXX='-berok'
11694
# Determine the default libpath from the value encoded in an empty executable.
11695
cat >conftest.$ac_ext <<_ACEOF
11698
cat confdefs.h >>conftest.$ac_ext
11699
cat >>conftest.$ac_ext <<_ACEOF
11700
/* end confdefs.h. */
11710
rm -f conftest.$ac_objext conftest$ac_exeext
11711
if { (ac_try="$ac_link"
11712
case "(($ac_try" in
11713
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11714
*) ac_try_echo=$ac_try;;
11716
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11717
(eval "$ac_link") 2>conftest.er1
11719
grep -v '^ *+' conftest.er1 >conftest.err
11721
cat conftest.err >&5
11722
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723
(exit $ac_status); } && {
11724
test -z "$ac_cxx_werror_flag" ||
11725
test ! -s conftest.err
11726
} && test -s conftest$ac_exeext &&
11727
$as_test_x conftest$ac_exeext; then
11729
lt_aix_libpath_sed='
11730
/Import File Strings/,/^$/ {
11736
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11737
# Check for a 64-bit object if we didn't find anything.
11738
if test -z "$aix_libpath"; then
11739
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11742
echo "$as_me: failed program was:" >&5
11743
sed 's/^/| /' conftest.$ac_ext >&5
11748
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11749
conftest$ac_exeext conftest.$ac_ext
11750
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11752
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11754
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"
11756
if test "$host_cpu" = ia64; then
11757
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11758
allow_undefined_flag_CXX="-z nodefs"
11759
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"
11761
# Determine the default libpath from the value encoded in an empty executable.
11762
cat >conftest.$ac_ext <<_ACEOF
11765
cat confdefs.h >>conftest.$ac_ext
11766
cat >>conftest.$ac_ext <<_ACEOF
11767
/* end confdefs.h. */
11777
rm -f conftest.$ac_objext conftest$ac_exeext
11778
if { (ac_try="$ac_link"
11779
case "(($ac_try" in
11780
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11781
*) ac_try_echo=$ac_try;;
11783
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11784
(eval "$ac_link") 2>conftest.er1
11786
grep -v '^ *+' conftest.er1 >conftest.err
11788
cat conftest.err >&5
11789
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790
(exit $ac_status); } && {
11791
test -z "$ac_cxx_werror_flag" ||
11792
test ! -s conftest.err
11793
} && test -s conftest$ac_exeext &&
11794
$as_test_x conftest$ac_exeext; then
11796
lt_aix_libpath_sed='
11797
/Import File Strings/,/^$/ {
11803
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11804
# Check for a 64-bit object if we didn't find anything.
11805
if test -z "$aix_libpath"; then
11806
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11809
echo "$as_me: failed program was:" >&5
11810
sed 's/^/| /' conftest.$ac_ext >&5
11815
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11816
conftest$ac_exeext conftest.$ac_ext
11817
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11819
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11820
# Warning - without using the other run time loading flags,
11821
# -berok will link without error, but may produce a broken library.
11822
no_undefined_flag_CXX=' ${wl}-bernotok'
11823
allow_undefined_flag_CXX=' ${wl}-berok'
11824
# Exported symbols can be pulled into shared objects from archives
11825
whole_archive_flag_spec_CXX='$convenience'
11826
archive_cmds_need_lc_CXX=yes
11827
# This is similar to how AIX traditionally builds its shared libraries.
11828
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'
11834
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11835
allow_undefined_flag_CXX=unsupported
11836
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11837
# support --undefined. This deserves some investigation. FIXME
11838
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11845
case $cc_basename in
11847
# FIXME: insert proper C++ library support
11853
cygwin* | mingw* | pw32*)
11854
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11855
# as there is no search path for DLLs.
11856
hardcode_libdir_flag_spec_CXX='-L$libdir'
11857
allow_undefined_flag_CXX=unsupported
11858
always_export_symbols_CXX=no
11859
enable_shared_with_static_runtimes_CXX=yes
11861
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11862
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'
11863
# If the export-symbols file already is a .def file (1st line
11864
# is EXPORTS), use it as is; otherwise, prepend...
11865
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11866
cp $export_symbols $output_objdir/$soname.def;
11868
echo EXPORTS > $output_objdir/$soname.def;
11869
cat $export_symbols >> $output_objdir/$soname.def;
11871
$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'
11876
darwin* | rhapsody*)
11877
archive_cmds_need_lc_CXX=no
11878
hardcode_direct_CXX=no
11879
hardcode_automatic_CXX=yes
11880
hardcode_shlibpath_var_CXX=unsupported
11881
whole_archive_flag_spec_CXX=''
11882
link_all_deplibs_CXX=yes
11883
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11884
if test "$GXX" = yes ; then
11885
output_verbose_link_cmd='echo'
11886
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}"
11887
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11888
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}"
11889
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}"
11890
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11891
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}"
11892
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}"
11895
case $cc_basename in
11897
output_verbose_link_cmd='echo'
11898
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'
11899
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11900
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11901
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}'
11902
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}'
11912
case $cc_basename in
11914
# FIXME: insert proper C++ library support
11918
# Green Hills C++ Compiler
11919
# FIXME: insert proper C++ library support
11923
# FIXME: insert proper C++ library support
11929
# C++ shared libraries reported to be fairly broken before switch to ELF
11933
archive_cmds_need_lc_CXX=no
11935
freebsd* | dragonfly*)
11936
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11943
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11944
hardcode_libdir_separator_CXX=:
11945
export_dynamic_flag_spec_CXX='${wl}-E'
11946
hardcode_direct_CXX=yes
11947
hardcode_minus_L_CXX=yes # Not in the search PATH,
11948
# but as the default
11949
# location of the library.
11951
case $cc_basename in
11953
# FIXME: insert proper C++ library support
11957
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'
11958
# Commands to make compiler produce verbose output that lists
11959
# what "hidden" libraries, object files and flags are used when
11960
# linking a shared library.
11962
# There doesn't appear to be a way to prevent this compiler from
11963
# explicitly linking system object files so we need to strip them
11964
# from the output so that they don't get included in the library
11966
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'
11969
if test "$GXX" = yes; then
11970
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'
11972
# FIXME: insert proper C++ library support
11979
if test $with_gnu_ld = no; then
11980
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11981
hardcode_libdir_separator_CXX=:
11986
export_dynamic_flag_spec_CXX='${wl}-E'
11992
hardcode_direct_CXX=no
11993
hardcode_shlibpath_var_CXX=no
11996
hardcode_direct_CXX=yes
11997
hardcode_minus_L_CXX=yes # Not in the search PATH,
11998
# but as the default
11999
# location of the library.
12003
case $cc_basename in
12005
# FIXME: insert proper C++ library support
12011
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12014
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12017
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12020
# Commands to make compiler produce verbose output that lists
12021
# what "hidden" libraries, object files and flags are used when
12022
# linking a shared library.
12024
# There doesn't appear to be a way to prevent this compiler from
12025
# explicitly linking system object files so we need to strip them
12026
# from the output so that they don't get included in the library
12028
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'
12031
if test "$GXX" = yes; then
12032
if test $with_gnu_ld = no; then
12035
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12038
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12041
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'
12046
# FIXME: insert proper C++ library support
12053
hardcode_direct_CXX=no
12054
hardcode_shlibpath_var_CXX=no
12055
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12056
export_dynamic_flag_spec_CXX='${wl}-E'
12057
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12058
# Instead, shared libraries are loaded at an image base (0x10000000 by
12059
# default) and relocated if they conflict, which is a slow very memory
12060
# consuming and fragmenting process. To avoid this, we pick a random,
12061
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12062
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
12063
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'
12064
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'
12067
case $cc_basename in
12070
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'
12072
# Archives containing C++ object files must be created using
12073
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
12074
# necessary to make sure instantiated templates are included
12076
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12079
if test "$GXX" = yes; then
12080
if test "$with_gnu_ld" = no; then
12081
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'
12083
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'
12086
link_all_deplibs_CXX=yes
12089
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12090
hardcode_libdir_separator_CXX=:
12092
linux* | k*bsd*-gnu)
12093
case $cc_basename in
12095
# Kuck and Associates, Inc. (KAI) C++ Compiler
12097
# KCC will only create a shared library if the output file
12098
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12099
# to its proper name (with version) after linking.
12100
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'
12101
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'
12102
# Commands to make compiler produce verbose output that lists
12103
# what "hidden" libraries, object files and flags are used when
12104
# linking a shared library.
12106
# There doesn't appear to be a way to prevent this compiler from
12107
# explicitly linking system object files so we need to strip them
12108
# from the output so that they don't get included in the library
12110
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'
12112
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12113
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12115
# Archives containing C++ object files must be created using
12116
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12117
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12122
# version 8.0 and above of icpc choke on multiply defined symbols
12123
# if we add $predep_objects and $postdep_objects, however 7.1 and
12124
# earlier do not add the objects themselves.
12125
case `$CC -V 2>&1` in
12127
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12128
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'
12130
*) # Version 8.0 or newer
12133
ia64*) tmp_idyn=' -i_dynamic';;
12135
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12136
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'
12139
archive_cmds_need_lc_CXX=no
12140
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12141
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12142
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12145
# Portland Group C++ compiler
12146
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12147
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'
12149
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12150
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12151
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'
12155
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12156
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'
12158
runpath_var=LD_RUN_PATH
12159
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12160
hardcode_libdir_separator_CXX=:
12162
# Commands to make compiler produce verbose output that lists
12163
# what "hidden" libraries, object files and flags are used when
12164
# linking a shared library.
12166
# There doesn't appear to be a way to prevent this compiler from
12167
# explicitly linking system object files so we need to strip them
12168
# from the output so that they don't get included in the library
12170
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'
12173
case `$CC -V 2>&1 | sed 5q` in
12176
no_undefined_flag_CXX=' -zdefs'
12177
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12178
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'
12179
hardcode_libdir_flag_spec_CXX='-R$libdir'
12180
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'
12182
# Not sure whether something based on
12183
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12185
output_verbose_link_cmd='echo'
12187
# Archives containing C++ object files must be created using
12188
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12189
# necessary to make sure instantiated templates are included
12191
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12198
# FIXME: insert proper C++ library support
12202
# FIXME: insert proper C++ library support
12206
case $cc_basename in
12208
# FIXME: insert proper C++ library support
12212
# FIXME: insert proper C++ library support
12218
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12219
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12221
hardcode_libdir_flag_spec_CXX='-R$libdir'
12222
hardcode_direct_CXX=yes
12223
hardcode_shlibpath_var_CXX=no
12225
# Workaround some broken pre-1.5 toolchains
12226
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12229
# C++ shared libraries are fairly broken
12233
if test -f /usr/libexec/ld.so; then
12234
hardcode_direct_CXX=yes
12235
hardcode_shlibpath_var_CXX=no
12236
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12237
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12238
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12239
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12240
export_dynamic_flag_spec_CXX='${wl}-E'
12241
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12243
output_verbose_link_cmd='echo'
12249
case $cc_basename in
12251
# Kuck and Associates, Inc. (KAI) C++ Compiler
12253
# KCC will only create a shared library if the output file
12254
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12255
# to its proper name (with version) after linking.
12256
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'
12258
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12259
hardcode_libdir_separator_CXX=:
12261
# Archives containing C++ object files must be created using
12262
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12263
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12267
# Rational C++ 2.4.1
12268
# FIXME: insert proper C++ library support
12272
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12273
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'
12275
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12276
hardcode_libdir_separator_CXX=:
12278
# Commands to make compiler produce verbose output that lists
12279
# what "hidden" libraries, object files and flags are used when
12280
# linking a shared library.
12282
# There doesn't appear to be a way to prevent this compiler from
12283
# explicitly linking system object files so we need to strip them
12284
# from the output so that they don't get included in the library
12286
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'
12289
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12290
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12291
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'
12293
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12294
hardcode_libdir_separator_CXX=:
12296
# Commands to make compiler produce verbose output that lists
12297
# what "hidden" libraries, object files and flags are used when
12298
# linking a shared library.
12299
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12302
# FIXME: insert proper C++ library support
12309
case $cc_basename in
12311
# Kuck and Associates, Inc. (KAI) C++ Compiler
12313
# KCC will only create a shared library if the output file
12314
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12315
# to its proper name (with version) after linking.
12316
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'
12318
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12319
hardcode_libdir_separator_CXX=:
12321
# Archives containing C++ object files must be created using
12322
# the KAI C++ compiler.
12323
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12326
# Rational C++ 2.4.1
12327
# FIXME: insert proper C++ library support
12331
allow_undefined_flag_CXX=' -expect_unresolved \*'
12332
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'
12333
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12334
echo "-hidden">> $lib.exp~
12335
$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~
12338
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12339
hardcode_libdir_separator_CXX=:
12341
# Commands to make compiler produce verbose output that lists
12342
# what "hidden" libraries, object files and flags are used when
12343
# linking a shared library.
12345
# There doesn't appear to be a way to prevent this compiler from
12346
# explicitly linking system object files so we need to strip them
12347
# from the output so that they don't get included in the library
12349
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'
12352
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12353
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12354
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'
12356
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12357
hardcode_libdir_separator_CXX=:
12359
# Commands to make compiler produce verbose output that lists
12360
# what "hidden" libraries, object files and flags are used when
12361
# linking a shared library.
12362
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12365
# FIXME: insert proper C++ library support
12372
# FIXME: insert proper C++ library support
12376
case $cc_basename in
12379
# FIXME: insert proper C++ library support
12384
# FIXME: insert proper C++ library support
12388
# FIXME: insert proper C++ library support
12394
case $cc_basename in
12396
# Sun C++ 4.2, 5.x and Centerline C++
12397
archive_cmds_need_lc_CXX=yes
12398
no_undefined_flag_CXX=' -zdefs'
12399
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12400
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12401
$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'
12403
hardcode_libdir_flag_spec_CXX='-R$libdir'
12404
hardcode_shlibpath_var_CXX=no
12406
solaris2.[0-5] | solaris2.[0-5].*) ;;
12408
# The compiler driver will combine and reorder linker options,
12409
# but understands `-z linker_flag'.
12410
# Supported since Solaris 2.6 (maybe 2.5.1?)
12411
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12414
link_all_deplibs_CXX=yes
12416
output_verbose_link_cmd='echo'
12418
# Archives containing C++ object files must be created using
12419
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12420
# necessary to make sure instantiated templates are included
12422
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12425
# Green Hills C++ Compiler
12426
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12428
# The C++ compiler must be used to create the archive.
12429
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12432
# GNU C++ compiler with Solaris linker
12433
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12434
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12435
if $CC --version | grep -v '^2\.7' > /dev/null; then
12436
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12437
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12438
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12440
# Commands to make compiler produce verbose output that lists
12441
# what "hidden" libraries, object files and flags are used when
12442
# linking a shared library.
12443
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12445
# g++ 2.7 appears to require `-G' NOT `-shared' on this
12447
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12448
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12449
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12451
# Commands to make compiler produce verbose output that lists
12452
# what "hidden" libraries, object files and flags are used when
12453
# linking a shared library.
12454
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12457
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12459
solaris2.[0-5] | solaris2.[0-5].*) ;;
12461
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12468
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12469
no_undefined_flag_CXX='${wl}-z,text'
12470
archive_cmds_need_lc_CXX=no
12471
hardcode_shlibpath_var_CXX=no
12472
runpath_var='LD_RUN_PATH'
12474
case $cc_basename in
12476
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12477
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12480
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12481
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12485
sysv5* | sco3.2v5* | sco5v6*)
12486
# Note: We can NOT use -z defs as we might desire, because we do not
12487
# link with -lc, and that would cause any symbols used from libc to
12488
# always be unresolved, which means just about no library would
12489
# ever link correctly. If we're not using GNU ld we use -z text
12490
# though, which does catch some bad symbols but isn't as heavy-handed
12492
# For security reasons, it is highly recommended that you always
12493
# use absolute paths for naming shared libraries, and exclude the
12494
# DT_RUNPATH tag from executables and libraries. But doing so
12495
# requires that you compile everything twice, which is a pain.
12496
# So that behaviour is only enabled if SCOABSPATH is set to a
12497
# non-empty value in the environment. Most likely only useful for
12498
# creating official distributions of packages.
12499
# This is a hack until libtool officially supports absolute path
12500
# names for shared libraries.
12501
no_undefined_flag_CXX='${wl}-z,text'
12502
allow_undefined_flag_CXX='${wl}-z,nodefs'
12503
archive_cmds_need_lc_CXX=no
12504
hardcode_shlibpath_var_CXX=no
12505
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12506
hardcode_libdir_separator_CXX=':'
12507
link_all_deplibs_CXX=yes
12508
export_dynamic_flag_spec_CXX='${wl}-Bexport'
12509
runpath_var='LD_RUN_PATH'
12511
case $cc_basename in
12513
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12514
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12517
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12518
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12523
case $cc_basename in
12525
# NonStop-UX NCC 3.20
12526
# FIXME: insert proper C++ library support
12530
# FIXME: insert proper C++ library support
12536
# FIXME: insert proper C++ library support
12540
# FIXME: insert proper C++ library support
12544
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12545
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12546
test "$ld_shlibs_CXX" = no && can_build_shared=no
12551
cat > conftest.$ac_ext <<EOF
12555
Foo (void) { a = 0; }
12561
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12562
(eval $ac_compile) 2>&5
12564
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565
(exit $ac_status); }; then
12566
# Parse the compiler output and extract the necessary
12567
# objects, libraries and library flags.
12569
# Sentinel used to keep track of whether or not we are before
12570
# the conftest object file.
12571
pre_test_object_deps_done=no
12573
# The `*' in the case matches for architectures that use `case' in
12574
# $output_verbose_cmd can trigger glob expansion during the loop
12575
# eval without this substitution.
12576
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12578
for p in `eval $output_verbose_link_cmd`; do
12582
# Some compilers place space between "-{L,R}" and the path.
12583
# Remove the space.
12584
if test $p = "-L" \
12585
|| test $p = "-R"; then
12592
if test "$pre_test_object_deps_done" = no; then
12595
# Internal compiler library paths should come after those
12596
# provided the user. The postdeps already come after the
12597
# user supplied libs so there is no need to process them.
12598
if test -z "$compiler_lib_search_path_CXX"; then
12599
compiler_lib_search_path_CXX="${prev}${p}"
12601
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12604
# The "-l" case would never come before the object being
12605
# linked, so don't bother handling this case.
12608
if test -z "$postdeps_CXX"; then
12609
postdeps_CXX="${prev}${p}"
12611
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12617
# This assumes that the test object file only shows up
12618
# once in the compiler output.
12619
if test "$p" = "conftest.$objext"; then
12620
pre_test_object_deps_done=yes
12624
if test "$pre_test_object_deps_done" = no; then
12625
if test -z "$predep_objects_CXX"; then
12626
predep_objects_CXX="$p"
12628
predep_objects_CXX="$predep_objects_CXX $p"
12631
if test -z "$postdep_objects_CXX"; then
12632
postdep_objects_CXX="$p"
12634
postdep_objects_CXX="$postdep_objects_CXX $p"
12639
*) ;; # Ignore the rest.
12647
echo "libtool.m4: error: problem compiling CXX test program"
12650
$rm -f confest.$objext
12652
compiler_lib_search_dirs_CXX=
12653
if test -n "$compiler_lib_search_path_CXX"; then
12654
compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12657
# PORTME: override above test on systems where it is broken
12660
# Interix 3.5 installs completely hosed .la files for C++, so rather than
12661
# hack all around it, let's just trust "g++" to DTRT.
12662
predep_objects_CXX=
12663
postdep_objects_CXX=
12668
case `$CC -V 2>&1 | sed 5q` in
12672
# The more standards-conforming stlport4 library is
12673
# incompatible with the Cstd library. Avoid specifying
12674
# it if it's in CXXFLAGS. Ignore libCrun as
12675
# -library=stlport4 depends on it.
12676
case " $CXX $CXXFLAGS " in
12677
*" -library=stlport4 "*)
12678
solaris_use_stlport4=yes
12681
if test "$solaris_use_stlport4" != yes; then
12682
postdeps_CXX='-library=Cstd -library=Crun'
12689
case $cc_basename in
12691
# The more standards-conforming stlport4 library is
12692
# incompatible with the Cstd library. Avoid specifying
12693
# it if it's in CXXFLAGS. Ignore libCrun as
12694
# -library=stlport4 depends on it.
12695
case " $CXX $CXXFLAGS " in
12696
*" -library=stlport4 "*)
12697
solaris_use_stlport4=yes
12701
# Adding this requires a known-good setup of shared libraries for
12702
# Sun compiler versions before 5.6, else PIC objects from an old
12703
# archive will be linked into the output, leading to subtle bugs.
12704
if test "$solaris_use_stlport4" != yes; then
12705
postdeps_CXX='-library=Cstd -library=Crun'
12712
case " $postdeps_CXX " in
12713
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12716
lt_prog_compiler_wl_CXX=
12717
lt_prog_compiler_pic_CXX=
12718
lt_prog_compiler_static_CXX=
12720
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12721
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12723
# C++ specific cases for pic, static, wl, etc.
12724
if test "$GXX" = yes; then
12725
lt_prog_compiler_wl_CXX='-Wl,'
12726
lt_prog_compiler_static_CXX='-static'
12730
# All AIX code is PIC.
12731
if test "$host_cpu" = ia64; then
12732
# AIX 5 now supports IA64 processor
12733
lt_prog_compiler_static_CXX='-Bstatic'
12737
# FIXME: we need at least 68020 code to build shared libraries, but
12738
# adding the `-m68020' flag to GCC prevents building anything better,
12740
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12742
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12743
# PIC is the default for these OSes.
12745
mingw* | cygwin* | os2* | pw32*)
12746
# This hack is so that the source file can tell whether it is being
12747
# built for inclusion in a dll (and should export symbols for example).
12748
# Although the cygwin gcc ignores -fPIC, still need this for old-style
12749
# (--disable-auto-import) libraries
12750
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12752
darwin* | rhapsody*)
12753
# PIC is the default on this platform
12754
# Common symbols not allowed in MH_DYLIB files
12755
lt_prog_compiler_pic_CXX='-fno-common'
12758
# DJGPP does not support shared libraries at all
12759
lt_prog_compiler_pic_CXX=
12762
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
12763
# Instead, we relocate shared libraries at runtime.
12766
if test -d /usr/nec; then
12767
lt_prog_compiler_pic_CXX=-Kconform_pic
12771
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12772
# not for PA HP-UX.
12777
lt_prog_compiler_pic_CXX='-fPIC'
12782
lt_prog_compiler_pic_CXX='-fPIC'
12788
# All AIX code is PIC.
12789
if test "$host_cpu" = ia64; then
12790
# AIX 5 now supports IA64 processor
12791
lt_prog_compiler_static_CXX='-Bstatic'
12793
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12797
case $cc_basename in
12799
# Green Hills C++ Compiler
12800
# _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"
12805
# PIC is the default on this platform
12806
# Common symbols not allowed in MH_DYLIB files
12807
case $cc_basename in
12809
lt_prog_compiler_pic_CXX='-qnocommon'
12810
lt_prog_compiler_wl_CXX='-Wl,'
12815
case $cc_basename in
12817
lt_prog_compiler_pic_CXX='-KPIC'
12820
# Green Hills C++ Compiler
12821
lt_prog_compiler_pic_CXX='-pic'
12827
freebsd* | dragonfly*)
12828
# FreeBSD uses GNU C++
12830
hpux9* | hpux10* | hpux11*)
12831
case $cc_basename in
12833
lt_prog_compiler_wl_CXX='-Wl,'
12834
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12835
if test "$host_cpu" != ia64; then
12836
lt_prog_compiler_pic_CXX='+Z'
12840
lt_prog_compiler_wl_CXX='-Wl,'
12841
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12847
lt_prog_compiler_pic_CXX='+Z'
12856
# This is c89, which is MS Visual C++ (no shared libs)
12857
# Anyone wants to do a port?
12859
irix5* | irix6* | nonstopux*)
12860
case $cc_basename in
12862
lt_prog_compiler_wl_CXX='-Wl,'
12863
lt_prog_compiler_static_CXX='-non_shared'
12864
# CC pic flag -KPIC is the default.
12870
linux* | k*bsd*-gnu)
12871
case $cc_basename in
12874
lt_prog_compiler_wl_CXX='--backend -Wl,'
12875
lt_prog_compiler_pic_CXX='-fPIC'
12879
lt_prog_compiler_wl_CXX='-Wl,'
12880
lt_prog_compiler_pic_CXX='-KPIC'
12881
lt_prog_compiler_static_CXX='-static'
12884
# Portland Group C++ compiler.
12885
lt_prog_compiler_wl_CXX='-Wl,'
12886
lt_prog_compiler_pic_CXX='-fpic'
12887
lt_prog_compiler_static_CXX='-Bstatic'
12891
# Make sure the PIC flag is empty. It appears that all Alpha
12892
# Linux and Compaq Tru64 Unix objects are PIC.
12893
lt_prog_compiler_pic_CXX=
12894
lt_prog_compiler_static_CXX='-non_shared'
12897
case `$CC -V 2>&1 | sed 5q` in
12900
lt_prog_compiler_pic_CXX='-KPIC'
12901
lt_prog_compiler_static_CXX='-Bstatic'
12902
lt_prog_compiler_wl_CXX='-Qoption ld '
12913
case $cc_basename in
12915
lt_prog_compiler_pic_CXX='-W c,exportall'
12923
osf3* | osf4* | osf5*)
12924
case $cc_basename in
12926
lt_prog_compiler_wl_CXX='--backend -Wl,'
12929
# Rational C++ 2.4.1
12930
lt_prog_compiler_pic_CXX='-pic'
12933
# Digital/Compaq C++
12934
lt_prog_compiler_wl_CXX='-Wl,'
12935
# Make sure the PIC flag is empty. It appears that all Alpha
12936
# Linux and Compaq Tru64 Unix objects are PIC.
12937
lt_prog_compiler_pic_CXX=
12938
lt_prog_compiler_static_CXX='-non_shared'
12947
case $cc_basename in
12949
# Sun C++ 4.2, 5.x and Centerline C++
12950
lt_prog_compiler_pic_CXX='-KPIC'
12951
lt_prog_compiler_static_CXX='-Bstatic'
12952
lt_prog_compiler_wl_CXX='-Qoption ld '
12955
# Green Hills C++ Compiler
12956
lt_prog_compiler_pic_CXX='-PIC'
12963
case $cc_basename in
12966
lt_prog_compiler_pic_CXX='-pic'
12967
lt_prog_compiler_static_CXX='-Bstatic'
12971
lt_prog_compiler_pic_CXX='-pic'
12978
case $cc_basename in
12980
# NonStop-UX NCC 3.20
12981
lt_prog_compiler_pic_CXX='-KPIC'
12987
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12988
case $cc_basename in
12990
lt_prog_compiler_wl_CXX='-Wl,'
12991
lt_prog_compiler_pic_CXX='-KPIC'
12992
lt_prog_compiler_static_CXX='-Bstatic'
12999
lt_prog_compiler_can_build_shared_CXX=no
13004
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13005
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13008
# Check to make sure the PIC flag actually works.
13010
if test -n "$lt_prog_compiler_pic_CXX"; then
13012
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13013
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13014
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
13015
echo $ECHO_N "(cached) $ECHO_C" >&6
13017
lt_cv_prog_compiler_pic_works_CXX=no
13018
ac_outfile=conftest.$ac_objext
13019
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13020
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13021
# Insert the option either (1) after the last *FLAGS variable, or
13022
# (2) before a word containing "conftest.", or (3) at the end.
13023
# Note that $ac_compile itself does not contain backslashes and begins
13024
# with a dollar sign (not a hyphen), so the echo should work correctly.
13025
# The option is referenced via a variable to avoid confusing sed.
13026
lt_compile=`echo "$ac_compile" | $SED \
13027
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13028
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13029
-e 's:$: $lt_compiler_flag:'`
13030
(eval echo "\"\$as_me:13030: $lt_compile\"" >&5)
13031
(eval "$lt_compile" 2>conftest.err)
13033
cat conftest.err >&5
13034
echo "$as_me:13034: \$? = $ac_status" >&5
13035
if (exit $ac_status) && test -s "$ac_outfile"; then
13036
# The compiler can only warn and ignore the option if not recognized
13037
# So say no if there are warnings other than the usual output.
13038
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13039
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13040
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13041
lt_cv_prog_compiler_pic_works_CXX=yes
13047
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13048
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13050
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13051
case $lt_prog_compiler_pic_CXX in
13053
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13056
lt_prog_compiler_pic_CXX=
13057
lt_prog_compiler_can_build_shared_CXX=no
13062
# For platforms which do not support PIC, -DPIC is meaningless:
13064
lt_prog_compiler_pic_CXX=
13067
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13072
# Check to make sure the static flag actually works.
13074
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13075
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13076
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13077
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13078
echo $ECHO_N "(cached) $ECHO_C" >&6
13080
lt_cv_prog_compiler_static_works_CXX=no
13081
save_LDFLAGS="$LDFLAGS"
13082
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13083
echo "$lt_simple_link_test_code" > conftest.$ac_ext
13084
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13085
# The linker can only warn and ignore the option if not recognized
13086
# So say no if there are warnings
13087
if test -s conftest.err; then
13088
# Append any errors to the config.log.
13089
cat conftest.err 1>&5
13090
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13091
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13092
if diff conftest.exp conftest.er2 >/dev/null; then
13093
lt_cv_prog_compiler_static_works_CXX=yes
13096
lt_cv_prog_compiler_static_works_CXX=yes
13100
LDFLAGS="$save_LDFLAGS"
13103
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13104
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
13106
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13109
lt_prog_compiler_static_CXX=
13113
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13114
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13115
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13116
echo $ECHO_N "(cached) $ECHO_C" >&6
13118
lt_cv_prog_compiler_c_o_CXX=no
13119
$rm -r conftest 2>/dev/null
13123
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13125
lt_compiler_flag="-o out/conftest2.$ac_objext"
13126
# Insert the option either (1) after the last *FLAGS variable, or
13127
# (2) before a word containing "conftest.", or (3) at the end.
13128
# Note that $ac_compile itself does not contain backslashes and begins
13129
# with a dollar sign (not a hyphen), so the echo should work correctly.
13130
lt_compile=`echo "$ac_compile" | $SED \
13131
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13132
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13133
-e 's:$: $lt_compiler_flag:'`
13134
(eval echo "\"\$as_me:13134: $lt_compile\"" >&5)
13135
(eval "$lt_compile" 2>out/conftest.err)
13137
cat out/conftest.err >&5
13138
echo "$as_me:13138: \$? = $ac_status" >&5
13139
if (exit $ac_status) && test -s out/conftest2.$ac_objext
13141
# The compiler can only warn and ignore the option if not recognized
13142
# So say no if there are warnings
13143
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13144
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13145
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13146
lt_cv_prog_compiler_c_o_CXX=yes
13151
# SGI C++ compiler will create directory out/ii_files/ for
13152
# template instantiation
13153
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13154
$rm out/* && rmdir out
13160
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13161
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13164
hard_links="nottested"
13165
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13166
# do not overwrite the value of need_locks provided by the user
13167
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13168
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13171
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13173
ln conftest.a conftest.b 2>&5 || hard_links=no
13174
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13175
{ echo "$as_me:$LINENO: result: $hard_links" >&5
13176
echo "${ECHO_T}$hard_links" >&6; }
13177
if test "$hard_links" = no; then
13178
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13179
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13186
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13187
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13189
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13192
# If we're using GNU nm, then we don't want the "-C" option.
13193
# -C means demangle to AIX nm, but means don't demangle with GNU nm
13194
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13195
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'
13197
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'
13201
export_symbols_cmds_CXX="$ltdll_cmds"
13204
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'
13207
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13210
exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13212
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13213
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13214
test "$ld_shlibs_CXX" = no && can_build_shared=no
13217
# Do we need to explicitly link libc?
13219
case "x$archive_cmds_need_lc_CXX" in
13221
# Assume -lc should be added
13222
archive_cmds_need_lc_CXX=yes
13224
if test "$enable_shared" = yes && test "$GCC" = yes; then
13225
case $archive_cmds_CXX in
13227
# FIXME: we may have to deal with multi-command sequences.
13230
# Test whether the compiler implicitly links with -lc since on some
13231
# systems, -lgcc has to come before -lc. If gcc already passes -lc
13232
# to ld, don't add -lc before -lgcc.
13233
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13234
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13236
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13238
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13239
(eval $ac_compile) 2>&5
13241
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242
(exit $ac_status); } 2>conftest.err; then
13245
libobjs=conftest.$ac_objext
13247
wl=$lt_prog_compiler_wl_CXX
13248
pic_flag=$lt_prog_compiler_pic_CXX
13254
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13255
allow_undefined_flag_CXX=
13256
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13257
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13259
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260
(exit $ac_status); }
13262
archive_cmds_need_lc_CXX=no
13264
archive_cmds_need_lc_CXX=yes
13266
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13268
cat conftest.err 1>&5
13271
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13272
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13279
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13280
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13281
library_names_spec=
13282
libname_spec='lib$name'
13286
postuninstall_cmds=
13290
shlibpath_overrides_runpath=unknown
13292
dynamic_linker="$host_os ld.so"
13293
sys_lib_dlsearch_path_spec="/lib /usr/lib"
13295
need_lib_prefix=unknown
13296
hardcode_into_libs=no
13298
# when you set need_version to no, make sure it does not cause -set_version
13299
# flags to be left without arguments
13300
need_version=unknown
13305
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13306
shlibpath_var=LIBPATH
13308
# AIX 3 has no versioning support, so we append a major version to the name.
13309
soname_spec='${libname}${release}${shared_ext}$major'
13316
hardcode_into_libs=yes
13317
if test "$host_cpu" = ia64; then
13318
# AIX 5 supports IA64
13319
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13320
shlibpath_var=LD_LIBRARY_PATH
13322
# With GCC up to 2.95.x, collect2 would create an import file
13323
# for dependence libraries. The import file would start with
13324
# the line `#! .'. This would cause the generated library to
13325
# depend on `.', always an invalid library. This was fixed in
13326
# development snapshots of GCC prior to 3.0.
13328
aix4 | aix4.[01] | aix4.[01].*)
13329
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13331
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13334
can_build_shared=no
13338
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13339
# soname into executable. Probably we can add versioning support to
13340
# collect2, so additional links can be useful in future.
13341
if test "$aix_use_runtimelinking" = yes; then
13342
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
13343
# instead of lib<name>.a to let people know that these are not
13344
# typical AIX shared libraries.
13345
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13347
# We preserve .a as extension for shared libraries through AIX4.2
13348
# and later when we are not doing run time linking.
13349
library_names_spec='${libname}${release}.a $libname.a'
13350
soname_spec='${libname}${release}${shared_ext}$major'
13352
shlibpath_var=LIBPATH
13357
library_names_spec='$libname.ixlibrary $libname.a'
13358
# Create ${libname}_ixlibrary.a entries in /sys/libs.
13359
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'
13363
library_names_spec='${libname}${shared_ext}'
13364
dynamic_linker="$host_os ld.so"
13365
shlibpath_var=LIBRARY_PATH
13371
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13372
soname_spec='${libname}${release}${shared_ext}$major'
13373
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13374
shlibpath_var=LD_LIBRARY_PATH
13375
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13376
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13377
# the default ld.so.conf also contains /usr/contrib/lib and
13378
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13379
# libtool to hard-code these into programs
13382
cygwin* | mingw* | pw32*)
13383
version_type=windows
13388
case $GCC,$host_os in
13389
yes,cygwin* | yes,mingw* | yes,pw32*)
13390
library_names_spec='$libname.dll.a'
13391
# DLL is installed to $(libdir)/../bin by postinstall_cmds
13392
postinstall_cmds='base_file=`basename \${file}`~
13393
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13394
dldir=$destdir/`dirname \$dlpath`~
13395
test -d \$dldir || mkdir -p \$dldir~
13396
$install_prog $dir/$dlname \$dldir/$dlname~
13397
chmod a+x \$dldir/$dlname'
13398
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13399
dlpath=$dir/\$dldll~
13401
shlibpath_overrides_runpath=yes
13405
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
13406
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13407
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13410
# MinGW DLLs use traditional 'lib' prefix
13411
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13412
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13413
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13414
# It is most probably a Windows format PATH printed by
13415
# mingw gcc, but we are running on Cygwin. Gcc prints its search
13416
# path with ; separators, and with drive letters. We can handle the
13417
# drive letters (cygwin fileutils understands them), so leave them,
13418
# especially as we might pass files found there to a mingw objdump,
13419
# which wouldn't understand a cygwinified path. Ahh.
13420
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13422
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13426
# pw32 DLLs use 'pw' prefix rather than 'lib'
13427
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13433
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13436
dynamic_linker='Win32 ld.exe'
13437
# FIXME: first we should search . and the directory the executable is in
13441
darwin* | rhapsody*)
13442
dynamic_linker="$host_os dyld"
13443
version_type=darwin
13446
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13447
soname_spec='${libname}${release}${major}$shared_ext'
13448
shlibpath_overrides_runpath=yes
13449
shlibpath_var=DYLD_LIBRARY_PATH
13450
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13452
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13459
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13460
soname_spec='${libname}${release}${shared_ext}$major'
13461
shlibpath_var=LD_LIBRARY_PATH
13468
freebsd* | dragonfly*)
13469
# DragonFly does not have aout. When/if they implement a new
13470
# versioning mechanism, adjust this.
13471
if test -x /usr/bin/objformat; then
13472
objformat=`/usr/bin/objformat`
13475
freebsd[123]*) objformat=aout ;;
13476
*) objformat=elf ;;
13479
version_type=freebsd-$objformat
13480
case $version_type in
13482
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13487
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13491
shlibpath_var=LD_LIBRARY_PATH
13494
shlibpath_overrides_runpath=yes
13496
freebsd3.[01]* | freebsdelf3.[01]*)
13497
shlibpath_overrides_runpath=yes
13498
hardcode_into_libs=yes
13500
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13501
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13502
shlibpath_overrides_runpath=no
13503
hardcode_into_libs=yes
13505
*) # from 4.6 on, and DragonFly
13506
shlibpath_overrides_runpath=yes
13507
hardcode_into_libs=yes
13516
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13517
soname_spec='${libname}${release}${shared_ext}$major'
13518
shlibpath_var=LD_LIBRARY_PATH
13519
hardcode_into_libs=yes
13522
hpux9* | hpux10* | hpux11*)
13523
# Give a soname corresponding to the major version so that dld.sl refuses to
13524
# link against other versions.
13531
hardcode_into_libs=yes
13532
dynamic_linker="$host_os dld.so"
13533
shlibpath_var=LD_LIBRARY_PATH
13534
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13535
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13536
soname_spec='${libname}${release}${shared_ext}$major'
13537
if test "X$HPUX_IA64_MODE" = X32; then
13538
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13540
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13542
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13546
hardcode_into_libs=yes
13547
dynamic_linker="$host_os dld.sl"
13548
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13549
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13550
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13551
soname_spec='${libname}${release}${shared_ext}$major'
13552
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13553
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13557
dynamic_linker="$host_os dld.sl"
13558
shlibpath_var=SHLIB_PATH
13559
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13560
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13561
soname_spec='${libname}${release}${shared_ext}$major'
13564
# HP-UX runs *really* slowly unless shared libraries are mode 555.
13565
postinstall_cmds='chmod 555 $lib'
13572
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13573
soname_spec='${libname}${release}${shared_ext}$major'
13574
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13575
shlibpath_var=LD_LIBRARY_PATH
13576
shlibpath_overrides_runpath=no
13577
hardcode_into_libs=yes
13580
irix5* | irix6* | nonstopux*)
13582
nonstopux*) version_type=nonstopux ;;
13584
if test "$lt_cv_prog_gnu_ld" = yes; then
13592
soname_spec='${libname}${release}${shared_ext}$major'
13593
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13595
irix5* | nonstopux*)
13596
libsuff= shlibsuff=
13599
case $LD in # libtool.m4 will add one of these switches to LD
13600
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13601
libsuff= shlibsuff= libmagic=32-bit;;
13602
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13603
libsuff=32 shlibsuff=N32 libmagic=N32;;
13604
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13605
libsuff=64 shlibsuff=64 libmagic=64-bit;;
13606
*) libsuff= shlibsuff= libmagic=never-match;;
13610
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13611
shlibpath_overrides_runpath=no
13612
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13613
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13614
hardcode_into_libs=yes
13617
# No shared lib support for Linux oldld, aout, or coff.
13618
linux*oldld* | linux*aout* | linux*coff*)
13622
# This must be Linux ELF.
13623
linux* | k*bsd*-gnu)
13627
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13628
soname_spec='${libname}${release}${shared_ext}$major'
13629
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13630
shlibpath_var=LD_LIBRARY_PATH
13631
shlibpath_overrides_runpath=no
13632
# This implies no fast_install, which is unacceptable.
13633
# Some rework will be needed to allow for fast_install
13634
# before this can be enabled.
13635
hardcode_into_libs=yes
13637
# Append ld.so.conf contents to the search path
13638
if test -f /etc/ld.so.conf; then
13639
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' ' '`
13640
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13643
# We used to test for /lib/ld.so.1 and disable shared libraries on
13644
# powerpc, because MkLinux only supported shared libraries with the
13645
# GNU dynamic linker. Since this was broken with cross compilers,
13646
# most powerpc-linux boxes support dynamic linking these days and
13647
# people can always --disable-shared, the test was removed, and we
13648
# assume the GNU/Linux dynamic linker is in use.
13649
dynamic_linker='GNU/Linux ld.so'
13656
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13657
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13658
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13659
dynamic_linker='NetBSD (a.out) ld.so'
13661
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13662
soname_spec='${libname}${release}${shared_ext}$major'
13663
dynamic_linker='NetBSD ld.elf_so'
13665
shlibpath_var=LD_LIBRARY_PATH
13666
shlibpath_overrides_runpath=yes
13667
hardcode_into_libs=yes
13672
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13673
shlibpath_var=LD_LIBRARY_PATH
13674
shlibpath_overrides_runpath=yes
13681
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13682
soname_spec='${libname}${release}${shared_ext}$major'
13683
shlibpath_var=LD_LIBRARY_PATH
13684
shlibpath_overrides_runpath=yes
13689
sys_lib_dlsearch_path_spec="/usr/lib"
13691
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13693
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13694
*) need_version=no ;;
13696
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13697
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13698
shlibpath_var=LD_LIBRARY_PATH
13699
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13701
openbsd2.[89] | openbsd2.[89].*)
13702
shlibpath_overrides_runpath=no
13705
shlibpath_overrides_runpath=yes
13709
shlibpath_overrides_runpath=yes
13714
libname_spec='$name'
13717
library_names_spec='$libname${shared_ext} $libname.a'
13718
dynamic_linker='OS/2 ld.exe'
13719
shlibpath_var=LIBPATH
13722
osf3* | osf4* | osf5*)
13726
soname_spec='${libname}${release}${shared_ext}$major'
13727
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13728
shlibpath_var=LD_LIBRARY_PATH
13729
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13730
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13741
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13742
soname_spec='${libname}${release}${shared_ext}$major'
13743
shlibpath_var=LD_LIBRARY_PATH
13744
shlibpath_overrides_runpath=yes
13745
hardcode_into_libs=yes
13746
# ldd complains unless libraries are executable
13747
postinstall_cmds='chmod +x $lib'
13752
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13753
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13754
shlibpath_var=LD_LIBRARY_PATH
13755
shlibpath_overrides_runpath=yes
13756
if test "$with_gnu_ld" = yes; then
13764
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13765
soname_spec='${libname}${release}${shared_ext}$major'
13766
shlibpath_var=LD_LIBRARY_PATH
13767
case $host_vendor in
13769
shlibpath_overrides_runpath=no
13771
export_dynamic_flag_spec='${wl}-Blargedynsym'
13772
runpath_var=LD_RUN_PATH
13780
shlibpath_overrides_runpath=no
13781
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13787
if test -d /usr/nec ;then
13789
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13790
soname_spec='$libname${shared_ext}.$major'
13791
shlibpath_var=LD_LIBRARY_PATH
13795
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13796
version_type=freebsd-elf
13799
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13800
soname_spec='${libname}${release}${shared_ext}$major'
13801
shlibpath_var=LD_LIBRARY_PATH
13802
hardcode_into_libs=yes
13803
if test "$with_gnu_ld" = yes; then
13804
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13805
shlibpath_overrides_runpath=no
13807
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13808
shlibpath_overrides_runpath=yes
13811
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13815
sys_lib_dlsearch_path_spec='/usr/lib'
13820
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13821
soname_spec='${libname}${release}${shared_ext}$major'
13822
shlibpath_var=LD_LIBRARY_PATH
13829
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13830
echo "${ECHO_T}$dynamic_linker" >&6; }
13831
test "$dynamic_linker" = no && can_build_shared=no
13833
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13834
echo $ECHO_N "(cached) $ECHO_C" >&6
13836
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13839
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13840
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13841
echo $ECHO_N "(cached) $ECHO_C" >&6
13843
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13846
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13848
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13849
if test "$GCC" = yes; then
13850
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13853
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13854
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13855
hardcode_action_CXX=
13856
if test -n "$hardcode_libdir_flag_spec_CXX" || \
13857
test -n "$runpath_var_CXX" || \
13858
test "X$hardcode_automatic_CXX" = "Xyes" ; then
13860
# We can hardcode non-existant directories.
13861
if test "$hardcode_direct_CXX" != no &&
13862
# If the only mechanism to avoid hardcoding is shlibpath_var, we
13863
# have to relink, otherwise we might link with an installed library
13864
# when we should be linking with a yet-to-be-installed one
13865
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13866
test "$hardcode_minus_L_CXX" != no; then
13867
# Linking always hardcodes the temporary library directory.
13868
hardcode_action_CXX=relink
13870
# We can link without hardcoding, and we can hardcode nonexisting dirs.
13871
hardcode_action_CXX=immediate
13874
# We cannot hardcode anything, or else we can only hardcode existing
13876
hardcode_action_CXX=unsupported
13878
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13879
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13881
if test "$hardcode_action_CXX" = relink; then
13882
# Fast installation is not supported
13883
enable_fast_install=no
13884
elif test "$shlibpath_overrides_runpath" = yes ||
13885
test "$enable_shared" = no; then
13886
# Fast installation is not necessary
13887
enable_fast_install=needless
13891
# The else clause should only fire when bootstrapping the
13892
# libtool distribution, otherwise you forgot to ship ltmain.sh
13893
# with your package, and you will get complaints that there are
13894
# no rules to generate ltmain.sh.
13895
if test -f "$ltmain"; then
13896
# See if we are running on zsh, and set the options which allow our commands through
13897
# without removal of \ escapes.
13898
if test -n "${ZSH_VERSION+set}" ; then
13899
setopt NO_GLOB_SUBST
13901
# Now quote all the things that may contain metacharacters while being
13902
# careful not to overquote the AC_SUBSTed values. We take copies of the
13903
# variables and quote the copies for generation of the libtool script.
13904
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13906
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13907
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13908
deplibs_check_method reload_flag reload_cmds need_locks \
13909
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13910
lt_cv_sys_global_symbol_to_c_name_address \
13911
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13912
old_postinstall_cmds old_postuninstall_cmds \
13916
lt_prog_compiler_wl_CXX \
13917
lt_prog_compiler_pic_CXX \
13918
lt_prog_compiler_static_CXX \
13919
lt_prog_compiler_no_builtin_flag_CXX \
13920
export_dynamic_flag_spec_CXX \
13921
thread_safe_flag_spec_CXX \
13922
whole_archive_flag_spec_CXX \
13923
enable_shared_with_static_runtimes_CXX \
13924
old_archive_cmds_CXX \
13925
old_archive_from_new_cmds_CXX \
13926
predep_objects_CXX \
13927
postdep_objects_CXX \
13930
compiler_lib_search_path_CXX \
13931
compiler_lib_search_dirs_CXX \
13933
archive_expsym_cmds_CXX \
13934
postinstall_cmds_CXX \
13935
postuninstall_cmds_CXX \
13936
old_archive_from_expsyms_cmds_CXX \
13937
allow_undefined_flag_CXX \
13938
no_undefined_flag_CXX \
13939
export_symbols_cmds_CXX \
13940
hardcode_libdir_flag_spec_CXX \
13941
hardcode_libdir_flag_spec_ld_CXX \
13942
hardcode_libdir_separator_CXX \
13943
hardcode_automatic_CXX \
13945
module_expsym_cmds_CXX \
13946
lt_cv_prog_compiler_c_o_CXX \
13947
fix_srcfile_path_CXX \
13948
exclude_expsyms_CXX \
13949
include_expsyms_CXX; do
13952
old_archive_cmds_CXX | \
13953
old_archive_from_new_cmds_CXX | \
13954
archive_cmds_CXX | \
13955
archive_expsym_cmds_CXX | \
13956
module_cmds_CXX | \
13957
module_expsym_cmds_CXX | \
13958
old_archive_from_expsyms_cmds_CXX | \
13959
export_symbols_cmds_CXX | \
13960
extract_expsyms_cmds | reload_cmds | finish_cmds | \
13961
postinstall_cmds | postuninstall_cmds | \
13962
old_postinstall_cmds | old_postuninstall_cmds | \
13963
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13964
# Double-quote double-evaled strings.
13965
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13968
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13974
*'\$0 --fallback-echo"')
13975
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13981
cat <<__EOF__ >> "$cfgfile"
13982
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13984
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13986
# Shell to use when invoking shell scripts.
13989
# Whether or not to build shared libraries.
13990
build_libtool_libs=$enable_shared
13992
# Whether or not to build static libraries.
13993
build_old_libs=$enable_static
13995
# Whether or not to add -lc for building shared libraries.
13996
build_libtool_need_lc=$archive_cmds_need_lc_CXX
13998
# Whether or not to disallow shared libs when runtime libs are static
13999
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14001
# Whether or not to optimize for fast installation.
14002
fast_install=$enable_fast_install
14005
host_alias=$host_alias
14009
# The build system.
14010
build_alias=$build_alias
14014
# An echo program that does not interpret backslashes.
14019
AR_FLAGS=$lt_AR_FLAGS
14024
# LTCC compiler flags.
14025
LTCFLAGS=$lt_LTCFLAGS
14027
# A language-specific compiler.
14028
CC=$lt_compiler_CXX
14030
# Is the compiler the GNU C compiler?
14036
# The linker used to build libraries.
14039
# Whether we need hard or soft links.
14042
# A BSD-compatible nm program.
14045
# A symbol stripping program
14048
# Used to examine libraries when file_magic_cmd begins "file"
14049
MAGIC_CMD=$MAGIC_CMD
14051
# Used on cygwin: DLL creation program.
14054
# Used on cygwin: object dumper.
14057
# Used on cygwin: assembler.
14060
# The name of the directory that contains temporary libtool files.
14063
# How to create reloadable object files.
14064
reload_flag=$lt_reload_flag
14065
reload_cmds=$lt_reload_cmds
14067
# How to pass a linker flag through the compiler.
14068
wl=$lt_lt_prog_compiler_wl_CXX
14070
# Object file suffix (normally "o").
14071
objext="$ac_objext"
14073
# Old archive suffix (normally "a").
14076
# Shared library suffix (normally ".so").
14077
shrext_cmds='$shrext_cmds'
14079
# Executable file suffix (normally "").
14082
# Additional compiler flags for building library objects.
14083
pic_flag=$lt_lt_prog_compiler_pic_CXX
14086
# What is the maximum length of a command?
14087
max_cmd_len=$lt_cv_sys_max_cmd_len
14089
# Does compiler simultaneously support -c and -o options?
14090
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14092
# Must we lock files when doing compilation?
14093
need_locks=$lt_need_locks
14095
# Do we need the lib prefix for modules?
14096
need_lib_prefix=$need_lib_prefix
14098
# Do we need a version for libraries?
14099
need_version=$need_version
14101
# Whether dlopen is supported.
14102
dlopen_support=$enable_dlopen
14104
# Whether dlopen of programs is supported.
14105
dlopen_self=$enable_dlopen_self
14107
# Whether dlopen of statically linked programs is supported.
14108
dlopen_self_static=$enable_dlopen_self_static
14110
# Compiler flag to prevent dynamic linking.
14111
link_static_flag=$lt_lt_prog_compiler_static_CXX
14113
# Compiler flag to turn off builtin functions.
14114
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14116
# Compiler flag to allow reflexive dlopens.
14117
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14119
# Compiler flag to generate shared objects directly from archives.
14120
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14122
# Compiler flag to generate thread-safe objects.
14123
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14125
# Library versioning type.
14126
version_type=$version_type
14128
# Format of library name prefix.
14129
libname_spec=$lt_libname_spec
14131
# List of archive names. First name is the real one, the rest are links.
14132
# The last name is the one that the linker finds with -lNAME.
14133
library_names_spec=$lt_library_names_spec
14135
# The coded name of the library, if different from the real name.
14136
soname_spec=$lt_soname_spec
14138
# Commands used to build and install an old-style archive.
14140
old_archive_cmds=$lt_old_archive_cmds_CXX
14141
old_postinstall_cmds=$lt_old_postinstall_cmds
14142
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14144
# Create an old-style archive from a shared archive.
14145
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14147
# Create a temporary old-style archive to link instead of a shared archive.
14148
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14150
# Commands used to build and install a shared archive.
14151
archive_cmds=$lt_archive_cmds_CXX
14152
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14153
postinstall_cmds=$lt_postinstall_cmds
14154
postuninstall_cmds=$lt_postuninstall_cmds
14156
# Commands used to build a loadable module (assumed same as above if empty)
14157
module_cmds=$lt_module_cmds_CXX
14158
module_expsym_cmds=$lt_module_expsym_cmds_CXX
14160
# Commands to strip libraries.
14161
old_striplib=$lt_old_striplib
14162
striplib=$lt_striplib
14164
# Dependencies to place before the objects being linked to create a
14166
predep_objects=$lt_predep_objects_CXX
14168
# Dependencies to place after the objects being linked to create a
14170
postdep_objects=$lt_postdep_objects_CXX
14172
# Dependencies to place before the objects being linked to create a
14174
predeps=$lt_predeps_CXX
14176
# Dependencies to place after the objects being linked to create a
14178
postdeps=$lt_postdeps_CXX
14180
# The directories searched by this compiler when creating a shared
14182
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14184
# The library search path used internally by the compiler when linking
14185
# a shared library.
14186
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14188
# Method to check whether dependent libraries are shared objects.
14189
deplibs_check_method=$lt_deplibs_check_method
14191
# Command to use when deplibs_check_method == file_magic.
14192
file_magic_cmd=$lt_file_magic_cmd
14194
# Flag that allows shared libraries with undefined symbols to be built.
14195
allow_undefined_flag=$lt_allow_undefined_flag_CXX
14197
# Flag that forces no undefined symbols.
14198
no_undefined_flag=$lt_no_undefined_flag_CXX
14200
# Commands used to finish a libtool library installation in a directory.
14201
finish_cmds=$lt_finish_cmds
14203
# Same as above, but a single script fragment to be evaled but not shown.
14204
finish_eval=$lt_finish_eval
14206
# Take the output of nm and produce a listing of raw symbols and C names.
14207
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14209
# Transform the output of nm in a proper C declaration
14210
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14212
# Transform the output of nm in a C name address pair
14213
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14215
# This is the shared library runtime path variable.
14216
runpath_var=$runpath_var
14218
# This is the shared library path variable.
14219
shlibpath_var=$shlibpath_var
14221
# Is shlibpath searched before the hard-coded library search path?
14222
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14224
# How to hardcode a shared library path into an executable.
14225
hardcode_action=$hardcode_action_CXX
14227
# Whether we should hardcode library paths into libraries.
14228
hardcode_into_libs=$hardcode_into_libs
14230
# Flag to hardcode \$libdir into a binary during linking.
14231
# This must work even if \$libdir does not exist.
14232
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14234
# If ld is used when linking, flag to hardcode \$libdir into
14235
# a binary during linking. This must work even if \$libdir does
14237
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14239
# Whether we need a single -rpath flag with a separated argument.
14240
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14242
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14243
# resulting binary.
14244
hardcode_direct=$hardcode_direct_CXX
14246
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14247
# resulting binary.
14248
hardcode_minus_L=$hardcode_minus_L_CXX
14250
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14251
# the resulting binary.
14252
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14254
# Set to yes if building a shared library automatically hardcodes DIR into the library
14255
# and all subsequent libraries and executables linked against it.
14256
hardcode_automatic=$hardcode_automatic_CXX
14258
# Variables whose values should be saved in libtool wrapper scripts and
14259
# restored at relink time.
14260
variables_saved_for_relink="$variables_saved_for_relink"
14262
# Whether libtool must link a program against all its dependency libraries.
14263
link_all_deplibs=$link_all_deplibs_CXX
14265
# Compile-time system search path for libraries
14266
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14268
# Run-time system search path for libraries
14269
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14271
# Fix the shell variable \$srcfile for the compiler.
14272
fix_srcfile_path=$lt_fix_srcfile_path
14274
# Set to yes if exported symbols are required.
14275
always_export_symbols=$always_export_symbols_CXX
14277
# The commands to list exported symbols.
14278
export_symbols_cmds=$lt_export_symbols_cmds_CXX
14280
# The commands to extract the exported symbol list from a shared archive.
14281
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14283
# Symbols that should not be listed in the preloaded symbols.
14284
exclude_expsyms=$lt_exclude_expsyms_CXX
14286
# Symbols that must always be exported.
14287
include_expsyms=$lt_include_expsyms_CXX
14289
# ### END LIBTOOL TAG CONFIG: $tagname
14295
# If there is no Makefile yet, we rely on a make rule to execute
14296
# `config.status --recheck' to rerun these tests and create the
14297
# libtool script then.
14298
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14299
if test -f "$ltmain_in"; then
14300
test -f Makefile && make "$ltmain"
14306
ac_cpp='$CPP $CPPFLAGS'
14307
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14308
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14309
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14315
with_gnu_ldcxx=$with_gnu_ld
14316
with_gnu_ld=$lt_save_with_gnu_ld
14317
lt_cv_path_LDCXX=$lt_cv_path_LD
14318
lt_cv_path_LD=$lt_save_path_LD
14319
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14320
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14328
if test -n "$F77" && test "X$F77" != "Xno"; then
14331
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14332
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14333
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14336
archive_cmds_need_lc_F77=no
14337
allow_undefined_flag_F77=
14338
always_export_symbols_F77=no
14339
archive_expsym_cmds_F77=
14340
export_dynamic_flag_spec_F77=
14341
hardcode_direct_F77=no
14342
hardcode_libdir_flag_spec_F77=
14343
hardcode_libdir_flag_spec_ld_F77=
14344
hardcode_libdir_separator_F77=
14345
hardcode_minus_L_F77=no
14346
hardcode_automatic_F77=no
14348
module_expsym_cmds_F77=
14349
link_all_deplibs_F77=unknown
14350
old_archive_cmds_F77=$old_archive_cmds
14351
no_undefined_flag_F77=
14352
whole_archive_flag_spec_F77=
14353
enable_shared_with_static_runtimes_F77=no
14355
# Source file extension for f77 test sources.
14358
# Object file extension for compiled f77 test sources.
14362
# Code to be used in simple compile tests
14363
lt_simple_compile_test_code="\
14369
# Code to be used in simple link tests
14370
lt_simple_link_test_code="\
14375
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14377
# If no C compiler was specified, use CC.
14380
# If no C compiler flags were specified, use CFLAGS.
14381
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14383
# Allow CC to be a program name with arguments.
14387
# save warnings/boilerplate of simple test code
14388
ac_outfile=conftest.$ac_objext
14389
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14390
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14391
_lt_compiler_boilerplate=`cat conftest.err`
14394
ac_outfile=conftest.$ac_objext
14395
echo "$lt_simple_link_test_code" >conftest.$ac_ext
14396
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14397
_lt_linker_boilerplate=`cat conftest.err`
14401
# Allow CC to be a program name with arguments.
14406
for cc_temp in $compiler""; do
14408
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14409
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14414
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14417
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14418
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14419
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14420
echo "${ECHO_T}$can_build_shared" >&6; }
14422
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14423
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14424
test "$can_build_shared" = "no" && enable_shared=no
14426
# On AIX, shared libraries and static libraries use the same namespace, and
14427
# are all built from PIC.
14430
test "$enable_shared" = yes && enable_static=no
14431
if test -n "$RANLIB"; then
14432
archive_cmds="$archive_cmds~\$RANLIB \$lib"
14433
postinstall_cmds='$RANLIB $lib'
14437
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14438
test "$enable_shared" = yes && enable_static=no
14442
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14443
echo "${ECHO_T}$enable_shared" >&6; }
14445
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14446
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14447
# Make sure either enable_shared or enable_static is yes.
14448
test "$enable_shared" = yes || enable_static=yes
14449
{ echo "$as_me:$LINENO: result: $enable_static" >&5
14450
echo "${ECHO_T}$enable_static" >&6; }
14455
lt_prog_compiler_wl_F77=
14456
lt_prog_compiler_pic_F77=
14457
lt_prog_compiler_static_F77=
14459
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14460
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14462
if test "$GCC" = yes; then
14463
lt_prog_compiler_wl_F77='-Wl,'
14464
lt_prog_compiler_static_F77='-static'
14468
# All AIX code is PIC.
14469
if test "$host_cpu" = ia64; then
14470
# AIX 5 now supports IA64 processor
14471
lt_prog_compiler_static_F77='-Bstatic'
14476
# FIXME: we need at least 68020 code to build shared libraries, but
14477
# adding the `-m68020' flag to GCC prevents building anything better,
14479
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14482
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14483
# PIC is the default for these OSes.
14486
mingw* | cygwin* | pw32* | os2*)
14487
# This hack is so that the source file can tell whether it is being
14488
# built for inclusion in a dll (and should export symbols for example).
14489
# Although the cygwin gcc ignores -fPIC, still need this for old-style
14490
# (--disable-auto-import) libraries
14491
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14494
darwin* | rhapsody*)
14495
# PIC is the default on this platform
14496
# Common symbols not allowed in MH_DYLIB files
14497
lt_prog_compiler_pic_F77='-fno-common'
14501
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
14502
# Instead, we relocate shared libraries at runtime.
14506
# Just because we use GCC doesn't mean we suddenly get shared libraries
14507
# on systems that don't support them.
14508
lt_prog_compiler_can_build_shared_F77=no
14513
if test -d /usr/nec; then
14514
lt_prog_compiler_pic_F77=-Kconform_pic
14519
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14520
# not for PA HP-UX.
14526
lt_prog_compiler_pic_F77='-fPIC'
14532
lt_prog_compiler_pic_F77='-fPIC'
14536
# PORTME Check for flag to pass linker flags through the system compiler.
14539
lt_prog_compiler_wl_F77='-Wl,'
14540
if test "$host_cpu" = ia64; then
14541
# AIX 5 now supports IA64 processor
14542
lt_prog_compiler_static_F77='-Bstatic'
14544
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14548
# PIC is the default on this platform
14549
# Common symbols not allowed in MH_DYLIB files
14550
case $cc_basename in
14552
lt_prog_compiler_pic_F77='-qnocommon'
14553
lt_prog_compiler_wl_F77='-Wl,'
14558
mingw* | cygwin* | pw32* | os2*)
14559
# This hack is so that the source file can tell whether it is being
14560
# built for inclusion in a dll (and should export symbols for example).
14561
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14564
hpux9* | hpux10* | hpux11*)
14565
lt_prog_compiler_wl_F77='-Wl,'
14566
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14567
# not for PA HP-UX.
14573
lt_prog_compiler_pic_F77='+Z'
14576
# Is there a better lt_prog_compiler_static that works with the bundled CC?
14577
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14580
irix5* | irix6* | nonstopux*)
14581
lt_prog_compiler_wl_F77='-Wl,'
14582
# PIC (with -KPIC) is the default.
14583
lt_prog_compiler_static_F77='-non_shared'
14587
lt_prog_compiler_pic_F77='-KPIC'
14588
lt_prog_compiler_static_F77='-Bstatic'
14591
linux* | k*bsd*-gnu)
14592
case $cc_basename in
14594
lt_prog_compiler_wl_F77='-Wl,'
14595
lt_prog_compiler_pic_F77='-KPIC'
14596
lt_prog_compiler_static_F77='-static'
14598
pgcc* | pgf77* | pgf90* | pgf95*)
14599
# Portland Group compilers (*not* the Pentium gcc compiler,
14600
# which looks to be a dead project)
14601
lt_prog_compiler_wl_F77='-Wl,'
14602
lt_prog_compiler_pic_F77='-fpic'
14603
lt_prog_compiler_static_F77='-Bstatic'
14606
lt_prog_compiler_wl_F77='-Wl,'
14607
# All Alpha code is PIC.
14608
lt_prog_compiler_static_F77='-non_shared'
14611
case `$CC -V 2>&1 | sed 5q` in
14614
lt_prog_compiler_pic_F77='-KPIC'
14615
lt_prog_compiler_static_F77='-Bstatic'
14616
lt_prog_compiler_wl_F77='-Wl,'
14619
# Sun Fortran 8.3 passes all unrecognized flags to the linker
14620
lt_prog_compiler_pic_F77='-KPIC'
14621
lt_prog_compiler_static_F77='-Bstatic'
14622
lt_prog_compiler_wl_F77=''
14629
osf3* | osf4* | osf5*)
14630
lt_prog_compiler_wl_F77='-Wl,'
14631
# All OSF/1 code is PIC.
14632
lt_prog_compiler_static_F77='-non_shared'
14636
lt_prog_compiler_static_F77='-non_shared'
14640
lt_prog_compiler_pic_F77='-KPIC'
14641
lt_prog_compiler_static_F77='-Bstatic'
14642
case $cc_basename in
14643
f77* | f90* | f95*)
14644
lt_prog_compiler_wl_F77='-Qoption ld ';;
14646
lt_prog_compiler_wl_F77='-Wl,';;
14651
lt_prog_compiler_wl_F77='-Qoption ld '
14652
lt_prog_compiler_pic_F77='-PIC'
14653
lt_prog_compiler_static_F77='-Bstatic'
14656
sysv4 | sysv4.2uw2* | sysv4.3*)
14657
lt_prog_compiler_wl_F77='-Wl,'
14658
lt_prog_compiler_pic_F77='-KPIC'
14659
lt_prog_compiler_static_F77='-Bstatic'
14663
if test -d /usr/nec ;then
14664
lt_prog_compiler_pic_F77='-Kconform_pic'
14665
lt_prog_compiler_static_F77='-Bstatic'
14669
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14670
lt_prog_compiler_wl_F77='-Wl,'
14671
lt_prog_compiler_pic_F77='-KPIC'
14672
lt_prog_compiler_static_F77='-Bstatic'
14676
lt_prog_compiler_wl_F77='-Wl,'
14677
lt_prog_compiler_can_build_shared_F77=no
14681
lt_prog_compiler_pic_F77='-pic'
14682
lt_prog_compiler_static_F77='-Bstatic'
14686
lt_prog_compiler_can_build_shared_F77=no
14691
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14692
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14695
# Check to make sure the PIC flag actually works.
14697
if test -n "$lt_prog_compiler_pic_F77"; then
14699
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14700
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14701
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14702
echo $ECHO_N "(cached) $ECHO_C" >&6
14704
lt_cv_prog_compiler_pic_works_F77=no
14705
ac_outfile=conftest.$ac_objext
14706
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14707
lt_compiler_flag="$lt_prog_compiler_pic_F77"
14708
# Insert the option either (1) after the last *FLAGS variable, or
14709
# (2) before a word containing "conftest.", or (3) at the end.
14710
# Note that $ac_compile itself does not contain backslashes and begins
14711
# with a dollar sign (not a hyphen), so the echo should work correctly.
14712
# The option is referenced via a variable to avoid confusing sed.
14713
lt_compile=`echo "$ac_compile" | $SED \
14714
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14715
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14716
-e 's:$: $lt_compiler_flag:'`
14717
(eval echo "\"\$as_me:14717: $lt_compile\"" >&5)
14718
(eval "$lt_compile" 2>conftest.err)
14720
cat conftest.err >&5
14721
echo "$as_me:14721: \$? = $ac_status" >&5
14722
if (exit $ac_status) && test -s "$ac_outfile"; then
14723
# The compiler can only warn and ignore the option if not recognized
14724
# So say no if there are warnings other than the usual output.
14725
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14726
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14727
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14728
lt_cv_prog_compiler_pic_works_F77=yes
14734
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14735
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14737
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14738
case $lt_prog_compiler_pic_F77 in
14740
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14743
lt_prog_compiler_pic_F77=
14744
lt_prog_compiler_can_build_shared_F77=no
14749
# For platforms which do not support PIC, -DPIC is meaningless:
14751
lt_prog_compiler_pic_F77=
14754
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14759
# Check to make sure the static flag actually works.
14761
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14762
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14763
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14764
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14765
echo $ECHO_N "(cached) $ECHO_C" >&6
14767
lt_cv_prog_compiler_static_works_F77=no
14768
save_LDFLAGS="$LDFLAGS"
14769
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14770
echo "$lt_simple_link_test_code" > conftest.$ac_ext
14771
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14772
# The linker can only warn and ignore the option if not recognized
14773
# So say no if there are warnings
14774
if test -s conftest.err; then
14775
# Append any errors to the config.log.
14776
cat conftest.err 1>&5
14777
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14778
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14779
if diff conftest.exp conftest.er2 >/dev/null; then
14780
lt_cv_prog_compiler_static_works_F77=yes
14783
lt_cv_prog_compiler_static_works_F77=yes
14787
LDFLAGS="$save_LDFLAGS"
14790
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14791
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14793
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14796
lt_prog_compiler_static_F77=
14800
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14801
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14802
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14803
echo $ECHO_N "(cached) $ECHO_C" >&6
14805
lt_cv_prog_compiler_c_o_F77=no
14806
$rm -r conftest 2>/dev/null
14810
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14812
lt_compiler_flag="-o out/conftest2.$ac_objext"
14813
# Insert the option either (1) after the last *FLAGS variable, or
14814
# (2) before a word containing "conftest.", or (3) at the end.
14815
# Note that $ac_compile itself does not contain backslashes and begins
14816
# with a dollar sign (not a hyphen), so the echo should work correctly.
14817
lt_compile=`echo "$ac_compile" | $SED \
14818
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14819
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14820
-e 's:$: $lt_compiler_flag:'`
14821
(eval echo "\"\$as_me:14821: $lt_compile\"" >&5)
14822
(eval "$lt_compile" 2>out/conftest.err)
14824
cat out/conftest.err >&5
14825
echo "$as_me:14825: \$? = $ac_status" >&5
14826
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14828
# The compiler can only warn and ignore the option if not recognized
14829
# So say no if there are warnings
14830
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14831
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14832
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14833
lt_cv_prog_compiler_c_o_F77=yes
14838
# SGI C++ compiler will create directory out/ii_files/ for
14839
# template instantiation
14840
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14841
$rm out/* && rmdir out
14847
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14848
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14851
hard_links="nottested"
14852
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14853
# do not overwrite the value of need_locks provided by the user
14854
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14855
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14858
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14860
ln conftest.a conftest.b 2>&5 || hard_links=no
14861
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14862
{ echo "$as_me:$LINENO: result: $hard_links" >&5
14863
echo "${ECHO_T}$hard_links" >&6; }
14864
if test "$hard_links" = no; then
14865
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14866
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14873
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14874
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14877
allow_undefined_flag_F77=
14878
enable_shared_with_static_runtimes_F77=no
14880
archive_expsym_cmds_F77=
14881
old_archive_From_new_cmds_F77=
14882
old_archive_from_expsyms_cmds_F77=
14883
export_dynamic_flag_spec_F77=
14884
whole_archive_flag_spec_F77=
14885
thread_safe_flag_spec_F77=
14886
hardcode_libdir_flag_spec_F77=
14887
hardcode_libdir_flag_spec_ld_F77=
14888
hardcode_libdir_separator_F77=
14889
hardcode_direct_F77=no
14890
hardcode_minus_L_F77=no
14891
hardcode_shlibpath_var_F77=unsupported
14892
link_all_deplibs_F77=unknown
14893
hardcode_automatic_F77=no
14895
module_expsym_cmds_F77=
14896
always_export_symbols_F77=no
14897
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14898
# include_expsyms should be a list of space-separated symbols to be *always*
14899
# included in the symbol list
14900
include_expsyms_F77=
14901
# exclude_expsyms can be an extended regexp of symbols to exclude
14902
# it will be wrapped by ` (' and `)$', so one must not match beginning or
14903
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14904
# as well as any symbol that contains `d'.
14905
exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14906
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14907
# platforms (ab)use it in PIC code, but their linkers get confused if
14908
# the symbol is explicitly referenced. Since portable code cannot
14909
# rely on this symbol name, it's probably fine to never include it in
14910
# preloaded symbol tables.
14911
# Exclude shared library initialization/finalization symbols.
14912
extract_expsyms_cmds=
14913
# Just being paranoid about ensuring that cc_basename is set.
14914
for cc_temp in $compiler""; do
14916
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14917
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14922
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14925
cygwin* | mingw* | pw32*)
14926
# FIXME: the MSVC++ port hasn't been tested in a loooong time
14927
# When not using gcc, we currently assume that we are using
14928
# Microsoft Visual C++.
14929
if test "$GCC" != yes; then
14934
# we just hope/assume this is gcc and not c89 (= MSVC++)
14943
if test "$with_gnu_ld" = yes; then
14944
# If archive_cmds runs LD, not CC, wlarc should be empty
14947
# Set some defaults for GNU ld with shared library support. These
14948
# are reset later if shared libraries are not supported. Putting them
14949
# here allows them to be overridden if necessary.
14950
runpath_var=LD_RUN_PATH
14951
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14952
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14953
# ancient GNU ld didn't support --whole-archive et. al.
14954
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14955
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14957
whole_archive_flag_spec_F77=
14959
supports_anon_versioning=no
14960
case `$LD -v 2>/dev/null` in
14961
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14962
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14963
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14964
*\ 2.11.*) ;; # other 2.11 versions
14965
*) supports_anon_versioning=yes ;;
14968
# See if GNU ld supports shared libraries.
14971
# On AIX/PPC, the GNU linker is very broken
14972
if test "$host_cpu" != ia64; then
14976
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14977
*** to be unable to reliably create shared libraries on AIX.
14978
*** Therefore, libtool is disabling shared libraries support. If you
14979
*** really care for shared libraries, you may want to modify your PATH
14980
*** so that a non-GNU linker is found, and then restart.
14987
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)'
14988
hardcode_libdir_flag_spec_F77='-L$libdir'
14989
hardcode_minus_L_F77=yes
14991
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14992
# that the semantics of dynamic libraries on AmigaOS, at least up
14993
# to version 4, is to share data among multiple programs linked
14994
# with the same dynamic library. Since this doesn't match the
14995
# behavior of shared libraries on other platforms, we can't use
15001
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15002
allow_undefined_flag_F77=unsupported
15003
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15004
# support --undefined. This deserves some investigation. FIXME
15005
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15011
cygwin* | mingw* | pw32*)
15012
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15013
# as there is no search path for DLLs.
15014
hardcode_libdir_flag_spec_F77='-L$libdir'
15015
allow_undefined_flag_F77=unsupported
15016
always_export_symbols_F77=no
15017
enable_shared_with_static_runtimes_F77=yes
15018
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15020
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15021
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15022
# If the export-symbols file already is a .def file (1st line
15023
# is EXPORTS), use it as is; otherwise, prepend...
15024
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15025
cp $export_symbols $output_objdir/$soname.def;
15027
echo EXPORTS > $output_objdir/$soname.def;
15028
cat $export_symbols >> $output_objdir/$soname.def;
15030
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15037
hardcode_direct_F77=no
15038
hardcode_shlibpath_var_F77=no
15039
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15040
export_dynamic_flag_spec_F77='${wl}-E'
15041
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15042
# Instead, shared libraries are loaded at an image base (0x10000000 by
15043
# default) and relocated if they conflict, which is a slow very memory
15044
# consuming and fragmenting process. To avoid this, we pick a random,
15045
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15046
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
15047
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'
15048
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'
15051
gnu* | linux* | k*bsd*-gnu)
15052
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15054
case $cc_basename,$host_cpu in
15055
pgcc*) # Portland Group C compiler
15056
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'
15057
tmp_addflag=' $pic_flag'
15059
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15060
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'
15061
tmp_addflag=' $pic_flag -Mnomain' ;;
15062
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15063
tmp_addflag=' -i_dynamic' ;;
15064
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15065
tmp_addflag=' -i_dynamic -nofor_main' ;;
15066
ifc* | ifort*) # Intel Fortran compiler
15067
tmp_addflag=' -nofor_main' ;;
15069
case `$CC -V 2>&1 | sed 5q` in
15070
*Sun\ C*) # Sun C 5.9
15071
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'
15072
tmp_sharedflag='-G' ;;
15073
*Sun\ F*) # Sun Fortran 8.3
15074
tmp_sharedflag='-G' ;;
15076
tmp_sharedflag='-shared' ;;
15078
archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15080
if test $supports_anon_versioning = yes; then
15081
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15082
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15083
$echo "local: *; };" >> $output_objdir/$libname.ver~
15084
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15092
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15093
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15096
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15097
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15102
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15106
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15107
*** create shared libraries on Solaris systems. Therefore, libtool
15108
*** is disabling shared libraries support. We urge you to upgrade GNU
15109
*** binutils to release 2.9.1 or newer. Another option is to modify
15110
*** your PATH or compiler configuration so that the native linker is
15111
*** used, and then restart.
15114
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15115
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15116
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15122
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15123
case `$LD -v 2>&1` in
15124
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15128
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15129
*** reliably create shared libraries on SCO systems. Therefore, libtool
15130
*** is disabling shared libraries support. We urge you to upgrade GNU
15131
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15132
*** your PATH or compiler configuration so that the native linker is
15133
*** used, and then restart.
15138
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15139
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15140
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15141
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15150
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15152
hardcode_direct_F77=yes
15153
hardcode_shlibpath_var_F77=no
15157
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15158
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15159
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15166
if test "$ld_shlibs_F77" = no; then
15168
hardcode_libdir_flag_spec_F77=
15169
export_dynamic_flag_spec_F77=
15170
whole_archive_flag_spec_F77=
15173
# PORTME fill in a description of your system's linker (not GNU ld)
15176
allow_undefined_flag_F77=unsupported
15177
always_export_symbols_F77=yes
15178
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'
15179
# Note: this linker hardcodes the directories in LIBPATH if there
15180
# are no directories specified by -L.
15181
hardcode_minus_L_F77=yes
15182
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15183
# Neither direct hardcoding nor static linking is supported with a
15185
hardcode_direct_F77=unsupported
15190
if test "$host_cpu" = ia64; then
15191
# On IA64, the linker does run time linking by default, so we don't
15192
# have to do anything special.
15193
aix_use_runtimelinking=no
15194
exp_sym_flag='-Bexport'
15197
# If we're using GNU nm, then we don't want the "-C" option.
15198
# -C means demangle to AIX nm, but means don't demangle with GNU nm
15199
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15200
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'
15202
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'
15204
aix_use_runtimelinking=no
15206
# Test if we are trying to use run time linking or normal
15207
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15208
# need to do runtime linking.
15209
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15210
for ld_flag in $LDFLAGS; do
15211
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15212
aix_use_runtimelinking=yes
15219
exp_sym_flag='-bexport'
15220
no_entry_flag='-bnoentry'
15223
# When large executables or shared objects are built, AIX ld can
15224
# have problems creating the table of contents. If linking a library
15225
# or program results in "error TOC overflow" add -mminimal-toc to
15226
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15227
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15229
archive_cmds_F77=''
15230
hardcode_direct_F77=yes
15231
hardcode_libdir_separator_F77=':'
15232
link_all_deplibs_F77=yes
15234
if test "$GCC" = yes; then
15235
case $host_os in aix4.[012]|aix4.[012].*)
15236
# We only want to do this on AIX 4.2 and lower, the check
15237
# below for broken collect2 doesn't work under 4.3+
15238
collect2name=`${CC} -print-prog-name=collect2`
15239
if test -f "$collect2name" && \
15240
strings "$collect2name" | grep resolve_lib_name >/dev/null
15242
# We have reworked collect2
15245
# We have old collect2
15246
hardcode_direct_F77=unsupported
15247
# It fails to find uninstalled libraries when the uninstalled
15248
# path is not listed in the libpath. Setting hardcode_minus_L
15249
# to unsupported forces relinking
15250
hardcode_minus_L_F77=yes
15251
hardcode_libdir_flag_spec_F77='-L$libdir'
15252
hardcode_libdir_separator_F77=
15256
shared_flag='-shared'
15257
if test "$aix_use_runtimelinking" = yes; then
15258
shared_flag="$shared_flag "'${wl}-G'
15262
if test "$host_cpu" = ia64; then
15263
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15264
# chokes on -Wl,-G. The following line is correct:
15267
if test "$aix_use_runtimelinking" = yes; then
15268
shared_flag='${wl}-G'
15270
shared_flag='${wl}-bM:SRE'
15275
# It seems that -bexpall does not export symbols beginning with
15276
# underscore (_), so it is better to generate a list of symbols to export.
15277
always_export_symbols_F77=yes
15278
if test "$aix_use_runtimelinking" = yes; then
15279
# Warning - without using the other runtime loading flags (-brtl),
15280
# -berok will link without error, but may produce a broken library.
15281
allow_undefined_flag_F77='-berok'
15282
# Determine the default libpath from the value encoded in an empty executable.
15283
cat >conftest.$ac_ext <<_ACEOF
15288
rm -f conftest.$ac_objext conftest$ac_exeext
15289
if { (ac_try="$ac_link"
15290
case "(($ac_try" in
15291
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15292
*) ac_try_echo=$ac_try;;
15294
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15295
(eval "$ac_link") 2>conftest.er1
15297
grep -v '^ *+' conftest.er1 >conftest.err
15299
cat conftest.err >&5
15300
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301
(exit $ac_status); } && {
15302
test -z "$ac_f77_werror_flag" ||
15303
test ! -s conftest.err
15304
} && test -s conftest$ac_exeext &&
15305
$as_test_x conftest$ac_exeext; then
15307
lt_aix_libpath_sed='
15308
/Import File Strings/,/^$/ {
15314
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15315
# Check for a 64-bit object if we didn't find anything.
15316
if test -z "$aix_libpath"; then
15317
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15320
echo "$as_me: failed program was:" >&5
15321
sed 's/^/| /' conftest.$ac_ext >&5
15326
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15327
conftest$ac_exeext conftest.$ac_ext
15328
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15330
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15331
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"
15333
if test "$host_cpu" = ia64; then
15334
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15335
allow_undefined_flag_F77="-z nodefs"
15336
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"
15338
# Determine the default libpath from the value encoded in an empty executable.
15339
cat >conftest.$ac_ext <<_ACEOF
15344
rm -f conftest.$ac_objext conftest$ac_exeext
15345
if { (ac_try="$ac_link"
15346
case "(($ac_try" in
15347
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15348
*) ac_try_echo=$ac_try;;
15350
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15351
(eval "$ac_link") 2>conftest.er1
15353
grep -v '^ *+' conftest.er1 >conftest.err
15355
cat conftest.err >&5
15356
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357
(exit $ac_status); } && {
15358
test -z "$ac_f77_werror_flag" ||
15359
test ! -s conftest.err
15360
} && test -s conftest$ac_exeext &&
15361
$as_test_x conftest$ac_exeext; then
15363
lt_aix_libpath_sed='
15364
/Import File Strings/,/^$/ {
15370
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15371
# Check for a 64-bit object if we didn't find anything.
15372
if test -z "$aix_libpath"; then
15373
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15376
echo "$as_me: failed program was:" >&5
15377
sed 's/^/| /' conftest.$ac_ext >&5
15382
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15383
conftest$ac_exeext conftest.$ac_ext
15384
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15386
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15387
# Warning - without using the other run time loading flags,
15388
# -berok will link without error, but may produce a broken library.
15389
no_undefined_flag_F77=' ${wl}-bernotok'
15390
allow_undefined_flag_F77=' ${wl}-berok'
15391
# Exported symbols can be pulled into shared objects from archives
15392
whole_archive_flag_spec_F77='$convenience'
15393
archive_cmds_need_lc_F77=yes
15394
# This is similar to how AIX traditionally builds its shared libraries.
15395
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'
15401
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)'
15402
hardcode_libdir_flag_spec_F77='-L$libdir'
15403
hardcode_minus_L_F77=yes
15404
# see comment about different semantics on the GNU ld section
15409
export_dynamic_flag_spec_F77=-rdynamic
15412
cygwin* | mingw* | pw32*)
15413
# When not using gcc, we currently assume that we are using
15414
# Microsoft Visual C++.
15415
# hardcode_libdir_flag_spec is actually meaningless, as there is
15416
# no search path for DLLs.
15417
hardcode_libdir_flag_spec_F77=' '
15418
allow_undefined_flag_F77=unsupported
15419
# Tell ltmain to make .lib files, not .a files.
15421
# Tell ltmain to make .dll files, not .so files.
15423
# FIXME: Setting linknames here is a bad hack.
15424
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15425
# The linker will automatically build a .lib file if we build a DLL.
15426
old_archive_From_new_cmds_F77='true'
15427
# FIXME: Should let the user specify the lib program.
15428
old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15429
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15430
enable_shared_with_static_runtimes_F77=yes
15433
darwin* | rhapsody*)
15435
rhapsody* | darwin1.[012])
15436
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15439
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15440
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15442
case ${MACOSX_DEPLOYMENT_TARGET} in
15444
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15447
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15453
archive_cmds_need_lc_F77=no
15454
hardcode_direct_F77=no
15455
hardcode_automatic_F77=yes
15456
hardcode_shlibpath_var_F77=unsupported
15457
whole_archive_flag_spec_F77=''
15458
link_all_deplibs_F77=yes
15459
if test "$GCC" = yes ; then
15460
output_verbose_link_cmd='echo'
15461
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}"
15462
module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15463
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}"
15464
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}"
15466
case $cc_basename in
15468
output_verbose_link_cmd='echo'
15469
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15470
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15471
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15472
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}'
15473
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}'
15483
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15484
hardcode_libdir_flag_spec_F77='-L$libdir'
15485
hardcode_shlibpath_var_F77=no
15492
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15493
# support. Future versions do this automatically, but an explicit c++rt0.o
15494
# does not break anything, and helps significantly (at the cost of a little
15497
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15498
hardcode_libdir_flag_spec_F77='-R$libdir'
15499
hardcode_direct_F77=yes
15500
hardcode_shlibpath_var_F77=no
15503
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
15505
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15506
hardcode_direct_F77=yes
15507
hardcode_minus_L_F77=yes
15508
hardcode_shlibpath_var_F77=no
15511
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15512
freebsd* | dragonfly*)
15513
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15514
hardcode_libdir_flag_spec_F77='-R$libdir'
15515
hardcode_direct_F77=yes
15516
hardcode_shlibpath_var_F77=no
15520
if test "$GCC" = yes; then
15521
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'
15523
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'
15525
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15526
hardcode_libdir_separator_F77=:
15527
hardcode_direct_F77=yes
15529
# hardcode_minus_L: Not really in the search PATH,
15530
# but as the default location of the library.
15531
hardcode_minus_L_F77=yes
15532
export_dynamic_flag_spec_F77='${wl}-E'
15536
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15537
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15539
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15541
if test "$with_gnu_ld" = no; then
15542
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15543
hardcode_libdir_separator_F77=:
15545
hardcode_direct_F77=yes
15546
export_dynamic_flag_spec_F77='${wl}-E'
15548
# hardcode_minus_L: Not really in the search PATH,
15549
# but as the default location of the library.
15550
hardcode_minus_L_F77=yes
15555
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15558
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15561
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15564
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15570
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15573
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15576
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15580
if test "$with_gnu_ld" = no; then
15581
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15582
hardcode_libdir_separator_F77=:
15586
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15587
hardcode_direct_F77=no
15588
hardcode_shlibpath_var_F77=no
15591
hardcode_direct_F77=yes
15592
export_dynamic_flag_spec_F77='${wl}-E'
15594
# hardcode_minus_L: Not really in the search PATH,
15595
# but as the default location of the library.
15596
hardcode_minus_L_F77=yes
15602
irix5* | irix6* | nonstopux*)
15603
if test "$GCC" = yes; then
15604
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'
15606
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'
15607
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15609
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15610
hardcode_libdir_separator_F77=:
15611
link_all_deplibs_F77=yes
15615
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15616
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15618
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15620
hardcode_libdir_flag_spec_F77='-R$libdir'
15621
hardcode_direct_F77=yes
15622
hardcode_shlibpath_var_F77=no
15626
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15627
hardcode_direct_F77=yes
15628
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15629
hardcode_libdir_separator_F77=:
15630
hardcode_shlibpath_var_F77=no
15634
if test -f /usr/libexec/ld.so; then
15635
hardcode_direct_F77=yes
15636
hardcode_shlibpath_var_F77=no
15637
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15638
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15639
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15640
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15641
export_dynamic_flag_spec_F77='${wl}-E'
15644
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15645
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15646
hardcode_libdir_flag_spec_F77='-R$libdir'
15649
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15650
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15660
hardcode_libdir_flag_spec_F77='-L$libdir'
15661
hardcode_minus_L_F77=yes
15662
allow_undefined_flag_F77=unsupported
15663
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'
15664
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15668
if test "$GCC" = yes; then
15669
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15670
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'
15672
allow_undefined_flag_F77=' -expect_unresolved \*'
15673
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'
15675
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15676
hardcode_libdir_separator_F77=:
15679
osf4* | osf5*) # as osf3* with the addition of -msym flag
15680
if test "$GCC" = yes; then
15681
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15682
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'
15683
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15685
allow_undefined_flag_F77=' -expect_unresolved \*'
15686
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'
15687
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~
15688
$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'
15690
# Both c and cxx compiler support -rpath directly
15691
hardcode_libdir_flag_spec_F77='-rpath $libdir'
15693
hardcode_libdir_separator_F77=:
15697
no_undefined_flag_F77=' -z text'
15698
if test "$GCC" = yes; then
15700
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15701
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15702
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15705
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15706
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15707
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15709
hardcode_libdir_flag_spec_F77='-R$libdir'
15710
hardcode_shlibpath_var_F77=no
15712
solaris2.[0-5] | solaris2.[0-5].*) ;;
15714
# The compiler driver will combine and reorder linker options,
15715
# but understands `-z linker_flag'. GCC discards it without `$wl',
15716
# but is careful enough not to reorder.
15717
# Supported since Solaris 2.6 (maybe 2.5.1?)
15718
if test "$GCC" = yes; then
15719
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15721
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15725
link_all_deplibs_F77=yes
15729
if test "x$host_vendor" = xsequent; then
15730
# Use $CC to link under sequent, because it throws in some extra .o
15731
# files that make .init and .fini sections work.
15732
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15734
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15736
hardcode_libdir_flag_spec_F77='-L$libdir'
15737
hardcode_direct_F77=yes
15738
hardcode_minus_L_F77=yes
15739
hardcode_shlibpath_var_F77=no
15743
case $host_vendor in
15745
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15746
hardcode_direct_F77=yes # is this really true???
15749
## LD is ld it makes a PLAMLIB
15750
## CC just makes a GrossModule.
15751
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15752
reload_cmds_F77='$CC -r -o $output$reload_objs'
15753
hardcode_direct_F77=no
15756
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15757
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15760
runpath_var='LD_RUN_PATH'
15761
hardcode_shlibpath_var_F77=no
15765
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15766
hardcode_shlibpath_var_F77=no
15767
export_dynamic_flag_spec_F77='-Bexport'
15771
if test -d /usr/nec; then
15772
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15773
hardcode_shlibpath_var_F77=no
15774
runpath_var=LD_RUN_PATH
15775
hardcode_runpath_var=yes
15780
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15781
no_undefined_flag_F77='${wl}-z,text'
15782
archive_cmds_need_lc_F77=no
15783
hardcode_shlibpath_var_F77=no
15784
runpath_var='LD_RUN_PATH'
15786
if test "$GCC" = yes; then
15787
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15788
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15790
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15791
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15795
sysv5* | sco3.2v5* | sco5v6*)
15796
# Note: We can NOT use -z defs as we might desire, because we do not
15797
# link with -lc, and that would cause any symbols used from libc to
15798
# always be unresolved, which means just about no library would
15799
# ever link correctly. If we're not using GNU ld we use -z text
15800
# though, which does catch some bad symbols but isn't as heavy-handed
15802
no_undefined_flag_F77='${wl}-z,text'
15803
allow_undefined_flag_F77='${wl}-z,nodefs'
15804
archive_cmds_need_lc_F77=no
15805
hardcode_shlibpath_var_F77=no
15806
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15807
hardcode_libdir_separator_F77=':'
15808
link_all_deplibs_F77=yes
15809
export_dynamic_flag_spec_F77='${wl}-Bexport'
15810
runpath_var='LD_RUN_PATH'
15812
if test "$GCC" = yes; then
15813
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15814
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15816
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15817
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15822
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15823
hardcode_libdir_flag_spec_F77='-L$libdir'
15824
hardcode_shlibpath_var_F77=no
15833
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15834
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15835
test "$ld_shlibs_F77" = no && can_build_shared=no
15838
# Do we need to explicitly link libc?
15840
case "x$archive_cmds_need_lc_F77" in
15842
# Assume -lc should be added
15843
archive_cmds_need_lc_F77=yes
15845
if test "$enable_shared" = yes && test "$GCC" = yes; then
15846
case $archive_cmds_F77 in
15848
# FIXME: we may have to deal with multi-command sequences.
15851
# Test whether the compiler implicitly links with -lc since on some
15852
# systems, -lgcc has to come before -lc. If gcc already passes -lc
15853
# to ld, don't add -lc before -lgcc.
15854
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15855
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15857
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15859
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15860
(eval $ac_compile) 2>&5
15862
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863
(exit $ac_status); } 2>conftest.err; then
15866
libobjs=conftest.$ac_objext
15868
wl=$lt_prog_compiler_wl_F77
15869
pic_flag=$lt_prog_compiler_pic_F77
15875
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15876
allow_undefined_flag_F77=
15877
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15878
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15880
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15881
(exit $ac_status); }
15883
archive_cmds_need_lc_F77=no
15885
archive_cmds_need_lc_F77=yes
15887
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15889
cat conftest.err 1>&5
15892
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15893
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15900
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15901
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15902
library_names_spec=
15903
libname_spec='lib$name'
15907
postuninstall_cmds=
15911
shlibpath_overrides_runpath=unknown
15913
dynamic_linker="$host_os ld.so"
15914
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15916
need_lib_prefix=unknown
15917
hardcode_into_libs=no
15919
# when you set need_version to no, make sure it does not cause -set_version
15920
# flags to be left without arguments
15921
need_version=unknown
15926
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15927
shlibpath_var=LIBPATH
15929
# AIX 3 has no versioning support, so we append a major version to the name.
15930
soname_spec='${libname}${release}${shared_ext}$major'
15937
hardcode_into_libs=yes
15938
if test "$host_cpu" = ia64; then
15939
# AIX 5 supports IA64
15940
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15941
shlibpath_var=LD_LIBRARY_PATH
15943
# With GCC up to 2.95.x, collect2 would create an import file
15944
# for dependence libraries. The import file would start with
15945
# the line `#! .'. This would cause the generated library to
15946
# depend on `.', always an invalid library. This was fixed in
15947
# development snapshots of GCC prior to 3.0.
15949
aix4 | aix4.[01] | aix4.[01].*)
15950
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15952
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15955
can_build_shared=no
15959
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15960
# soname into executable. Probably we can add versioning support to
15961
# collect2, so additional links can be useful in future.
15962
if test "$aix_use_runtimelinking" = yes; then
15963
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
15964
# instead of lib<name>.a to let people know that these are not
15965
# typical AIX shared libraries.
15966
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15968
# We preserve .a as extension for shared libraries through AIX4.2
15969
# and later when we are not doing run time linking.
15970
library_names_spec='${libname}${release}.a $libname.a'
15971
soname_spec='${libname}${release}${shared_ext}$major'
15973
shlibpath_var=LIBPATH
15978
library_names_spec='$libname.ixlibrary $libname.a'
15979
# Create ${libname}_ixlibrary.a entries in /sys/libs.
15980
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'
15984
library_names_spec='${libname}${shared_ext}'
15985
dynamic_linker="$host_os ld.so"
15986
shlibpath_var=LIBRARY_PATH
15992
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15993
soname_spec='${libname}${release}${shared_ext}$major'
15994
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15995
shlibpath_var=LD_LIBRARY_PATH
15996
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15997
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15998
# the default ld.so.conf also contains /usr/contrib/lib and
15999
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16000
# libtool to hard-code these into programs
16003
cygwin* | mingw* | pw32*)
16004
version_type=windows
16009
case $GCC,$host_os in
16010
yes,cygwin* | yes,mingw* | yes,pw32*)
16011
library_names_spec='$libname.dll.a'
16012
# DLL is installed to $(libdir)/../bin by postinstall_cmds
16013
postinstall_cmds='base_file=`basename \${file}`~
16014
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16015
dldir=$destdir/`dirname \$dlpath`~
16016
test -d \$dldir || mkdir -p \$dldir~
16017
$install_prog $dir/$dlname \$dldir/$dlname~
16018
chmod a+x \$dldir/$dlname'
16019
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16020
dlpath=$dir/\$dldll~
16022
shlibpath_overrides_runpath=yes
16026
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
16027
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16028
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16031
# MinGW DLLs use traditional 'lib' prefix
16032
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16033
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16034
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16035
# It is most probably a Windows format PATH printed by
16036
# mingw gcc, but we are running on Cygwin. Gcc prints its search
16037
# path with ; separators, and with drive letters. We can handle the
16038
# drive letters (cygwin fileutils understands them), so leave them,
16039
# especially as we might pass files found there to a mingw objdump,
16040
# which wouldn't understand a cygwinified path. Ahh.
16041
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16043
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16047
# pw32 DLLs use 'pw' prefix rather than 'lib'
16048
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16054
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16057
dynamic_linker='Win32 ld.exe'
16058
# FIXME: first we should search . and the directory the executable is in
16062
darwin* | rhapsody*)
16063
dynamic_linker="$host_os dyld"
16064
version_type=darwin
16067
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16068
soname_spec='${libname}${release}${major}$shared_ext'
16069
shlibpath_overrides_runpath=yes
16070
shlibpath_var=DYLD_LIBRARY_PATH
16071
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16073
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16080
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16081
soname_spec='${libname}${release}${shared_ext}$major'
16082
shlibpath_var=LD_LIBRARY_PATH
16089
freebsd* | dragonfly*)
16090
# DragonFly does not have aout. When/if they implement a new
16091
# versioning mechanism, adjust this.
16092
if test -x /usr/bin/objformat; then
16093
objformat=`/usr/bin/objformat`
16096
freebsd[123]*) objformat=aout ;;
16097
*) objformat=elf ;;
16100
version_type=freebsd-$objformat
16101
case $version_type in
16103
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16108
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16112
shlibpath_var=LD_LIBRARY_PATH
16115
shlibpath_overrides_runpath=yes
16117
freebsd3.[01]* | freebsdelf3.[01]*)
16118
shlibpath_overrides_runpath=yes
16119
hardcode_into_libs=yes
16121
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16122
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16123
shlibpath_overrides_runpath=no
16124
hardcode_into_libs=yes
16126
*) # from 4.6 on, and DragonFly
16127
shlibpath_overrides_runpath=yes
16128
hardcode_into_libs=yes
16137
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16138
soname_spec='${libname}${release}${shared_ext}$major'
16139
shlibpath_var=LD_LIBRARY_PATH
16140
hardcode_into_libs=yes
16143
hpux9* | hpux10* | hpux11*)
16144
# Give a soname corresponding to the major version so that dld.sl refuses to
16145
# link against other versions.
16152
hardcode_into_libs=yes
16153
dynamic_linker="$host_os dld.so"
16154
shlibpath_var=LD_LIBRARY_PATH
16155
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16156
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16157
soname_spec='${libname}${release}${shared_ext}$major'
16158
if test "X$HPUX_IA64_MODE" = X32; then
16159
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16161
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16163
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16167
hardcode_into_libs=yes
16168
dynamic_linker="$host_os dld.sl"
16169
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16170
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16171
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16172
soname_spec='${libname}${release}${shared_ext}$major'
16173
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16174
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16178
dynamic_linker="$host_os dld.sl"
16179
shlibpath_var=SHLIB_PATH
16180
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16181
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16182
soname_spec='${libname}${release}${shared_ext}$major'
16185
# HP-UX runs *really* slowly unless shared libraries are mode 555.
16186
postinstall_cmds='chmod 555 $lib'
16193
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16194
soname_spec='${libname}${release}${shared_ext}$major'
16195
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16196
shlibpath_var=LD_LIBRARY_PATH
16197
shlibpath_overrides_runpath=no
16198
hardcode_into_libs=yes
16201
irix5* | irix6* | nonstopux*)
16203
nonstopux*) version_type=nonstopux ;;
16205
if test "$lt_cv_prog_gnu_ld" = yes; then
16213
soname_spec='${libname}${release}${shared_ext}$major'
16214
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16216
irix5* | nonstopux*)
16217
libsuff= shlibsuff=
16220
case $LD in # libtool.m4 will add one of these switches to LD
16221
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16222
libsuff= shlibsuff= libmagic=32-bit;;
16223
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16224
libsuff=32 shlibsuff=N32 libmagic=N32;;
16225
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16226
libsuff=64 shlibsuff=64 libmagic=64-bit;;
16227
*) libsuff= shlibsuff= libmagic=never-match;;
16231
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16232
shlibpath_overrides_runpath=no
16233
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16234
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16235
hardcode_into_libs=yes
16238
# No shared lib support for Linux oldld, aout, or coff.
16239
linux*oldld* | linux*aout* | linux*coff*)
16243
# This must be Linux ELF.
16244
linux* | k*bsd*-gnu)
16248
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16249
soname_spec='${libname}${release}${shared_ext}$major'
16250
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16251
shlibpath_var=LD_LIBRARY_PATH
16252
shlibpath_overrides_runpath=no
16253
# This implies no fast_install, which is unacceptable.
16254
# Some rework will be needed to allow for fast_install
16255
# before this can be enabled.
16256
hardcode_into_libs=yes
16258
# Append ld.so.conf contents to the search path
16259
if test -f /etc/ld.so.conf; then
16260
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' ' '`
16261
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16264
# We used to test for /lib/ld.so.1 and disable shared libraries on
16265
# powerpc, because MkLinux only supported shared libraries with the
16266
# GNU dynamic linker. Since this was broken with cross compilers,
16267
# most powerpc-linux boxes support dynamic linking these days and
16268
# people can always --disable-shared, the test was removed, and we
16269
# assume the GNU/Linux dynamic linker is in use.
16270
dynamic_linker='GNU/Linux ld.so'
16277
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16278
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16279
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16280
dynamic_linker='NetBSD (a.out) ld.so'
16282
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16283
soname_spec='${libname}${release}${shared_ext}$major'
16284
dynamic_linker='NetBSD ld.elf_so'
16286
shlibpath_var=LD_LIBRARY_PATH
16287
shlibpath_overrides_runpath=yes
16288
hardcode_into_libs=yes
16293
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16294
shlibpath_var=LD_LIBRARY_PATH
16295
shlibpath_overrides_runpath=yes
16302
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16303
soname_spec='${libname}${release}${shared_ext}$major'
16304
shlibpath_var=LD_LIBRARY_PATH
16305
shlibpath_overrides_runpath=yes
16310
sys_lib_dlsearch_path_spec="/usr/lib"
16312
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16314
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16315
*) need_version=no ;;
16317
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16318
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16319
shlibpath_var=LD_LIBRARY_PATH
16320
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16322
openbsd2.[89] | openbsd2.[89].*)
16323
shlibpath_overrides_runpath=no
16326
shlibpath_overrides_runpath=yes
16330
shlibpath_overrides_runpath=yes
16335
libname_spec='$name'
16338
library_names_spec='$libname${shared_ext} $libname.a'
16339
dynamic_linker='OS/2 ld.exe'
16340
shlibpath_var=LIBPATH
16343
osf3* | osf4* | osf5*)
16347
soname_spec='${libname}${release}${shared_ext}$major'
16348
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16349
shlibpath_var=LD_LIBRARY_PATH
16350
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16351
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16362
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16363
soname_spec='${libname}${release}${shared_ext}$major'
16364
shlibpath_var=LD_LIBRARY_PATH
16365
shlibpath_overrides_runpath=yes
16366
hardcode_into_libs=yes
16367
# ldd complains unless libraries are executable
16368
postinstall_cmds='chmod +x $lib'
16373
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16374
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16375
shlibpath_var=LD_LIBRARY_PATH
16376
shlibpath_overrides_runpath=yes
16377
if test "$with_gnu_ld" = yes; then
16385
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16386
soname_spec='${libname}${release}${shared_ext}$major'
16387
shlibpath_var=LD_LIBRARY_PATH
16388
case $host_vendor in
16390
shlibpath_overrides_runpath=no
16392
export_dynamic_flag_spec='${wl}-Blargedynsym'
16393
runpath_var=LD_RUN_PATH
16401
shlibpath_overrides_runpath=no
16402
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16408
if test -d /usr/nec ;then
16410
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16411
soname_spec='$libname${shared_ext}.$major'
16412
shlibpath_var=LD_LIBRARY_PATH
16416
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16417
version_type=freebsd-elf
16420
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16421
soname_spec='${libname}${release}${shared_ext}$major'
16422
shlibpath_var=LD_LIBRARY_PATH
16423
hardcode_into_libs=yes
16424
if test "$with_gnu_ld" = yes; then
16425
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16426
shlibpath_overrides_runpath=no
16428
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16429
shlibpath_overrides_runpath=yes
16432
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16436
sys_lib_dlsearch_path_spec='/usr/lib'
16441
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16442
soname_spec='${libname}${release}${shared_ext}$major'
16443
shlibpath_var=LD_LIBRARY_PATH
16450
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16451
echo "${ECHO_T}$dynamic_linker" >&6; }
16452
test "$dynamic_linker" = no && can_build_shared=no
16454
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16455
echo $ECHO_N "(cached) $ECHO_C" >&6
16457
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16460
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16461
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16462
echo $ECHO_N "(cached) $ECHO_C" >&6
16464
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16467
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16469
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16470
if test "$GCC" = yes; then
16471
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16474
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16475
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16476
hardcode_action_F77=
16477
if test -n "$hardcode_libdir_flag_spec_F77" || \
16478
test -n "$runpath_var_F77" || \
16479
test "X$hardcode_automatic_F77" = "Xyes" ; then
16481
# We can hardcode non-existant directories.
16482
if test "$hardcode_direct_F77" != no &&
16483
# If the only mechanism to avoid hardcoding is shlibpath_var, we
16484
# have to relink, otherwise we might link with an installed library
16485
# when we should be linking with a yet-to-be-installed one
16486
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16487
test "$hardcode_minus_L_F77" != no; then
16488
# Linking always hardcodes the temporary library directory.
16489
hardcode_action_F77=relink
16491
# We can link without hardcoding, and we can hardcode nonexisting dirs.
16492
hardcode_action_F77=immediate
16495
# We cannot hardcode anything, or else we can only hardcode existing
16497
hardcode_action_F77=unsupported
16499
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16500
echo "${ECHO_T}$hardcode_action_F77" >&6; }
16502
if test "$hardcode_action_F77" = relink; then
16503
# Fast installation is not supported
16504
enable_fast_install=no
16505
elif test "$shlibpath_overrides_runpath" = yes ||
16506
test "$enable_shared" = no; then
16507
# Fast installation is not necessary
16508
enable_fast_install=needless
16512
# The else clause should only fire when bootstrapping the
16513
# libtool distribution, otherwise you forgot to ship ltmain.sh
16514
# with your package, and you will get complaints that there are
16515
# no rules to generate ltmain.sh.
16516
if test -f "$ltmain"; then
16517
# See if we are running on zsh, and set the options which allow our commands through
16518
# without removal of \ escapes.
16519
if test -n "${ZSH_VERSION+set}" ; then
16520
setopt NO_GLOB_SUBST
16522
# Now quote all the things that may contain metacharacters while being
16523
# careful not to overquote the AC_SUBSTed values. We take copies of the
16524
# variables and quote the copies for generation of the libtool script.
16525
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16527
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16528
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16529
deplibs_check_method reload_flag reload_cmds need_locks \
16530
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16531
lt_cv_sys_global_symbol_to_c_name_address \
16532
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16533
old_postinstall_cmds old_postuninstall_cmds \
16537
lt_prog_compiler_wl_F77 \
16538
lt_prog_compiler_pic_F77 \
16539
lt_prog_compiler_static_F77 \
16540
lt_prog_compiler_no_builtin_flag_F77 \
16541
export_dynamic_flag_spec_F77 \
16542
thread_safe_flag_spec_F77 \
16543
whole_archive_flag_spec_F77 \
16544
enable_shared_with_static_runtimes_F77 \
16545
old_archive_cmds_F77 \
16546
old_archive_from_new_cmds_F77 \
16547
predep_objects_F77 \
16548
postdep_objects_F77 \
16551
compiler_lib_search_path_F77 \
16552
compiler_lib_search_dirs_F77 \
16554
archive_expsym_cmds_F77 \
16555
postinstall_cmds_F77 \
16556
postuninstall_cmds_F77 \
16557
old_archive_from_expsyms_cmds_F77 \
16558
allow_undefined_flag_F77 \
16559
no_undefined_flag_F77 \
16560
export_symbols_cmds_F77 \
16561
hardcode_libdir_flag_spec_F77 \
16562
hardcode_libdir_flag_spec_ld_F77 \
16563
hardcode_libdir_separator_F77 \
16564
hardcode_automatic_F77 \
16566
module_expsym_cmds_F77 \
16567
lt_cv_prog_compiler_c_o_F77 \
16568
fix_srcfile_path_F77 \
16569
exclude_expsyms_F77 \
16570
include_expsyms_F77; do
16573
old_archive_cmds_F77 | \
16574
old_archive_from_new_cmds_F77 | \
16575
archive_cmds_F77 | \
16576
archive_expsym_cmds_F77 | \
16577
module_cmds_F77 | \
16578
module_expsym_cmds_F77 | \
16579
old_archive_from_expsyms_cmds_F77 | \
16580
export_symbols_cmds_F77 | \
16581
extract_expsyms_cmds | reload_cmds | finish_cmds | \
16582
postinstall_cmds | postuninstall_cmds | \
16583
old_postinstall_cmds | old_postuninstall_cmds | \
16584
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16585
# Double-quote double-evaled strings.
16586
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16589
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16595
*'\$0 --fallback-echo"')
16596
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16602
cat <<__EOF__ >> "$cfgfile"
16603
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16605
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16607
# Shell to use when invoking shell scripts.
16610
# Whether or not to build shared libraries.
16611
build_libtool_libs=$enable_shared
16613
# Whether or not to build static libraries.
16614
build_old_libs=$enable_static
16616
# Whether or not to add -lc for building shared libraries.
16617
build_libtool_need_lc=$archive_cmds_need_lc_F77
16619
# Whether or not to disallow shared libs when runtime libs are static
16620
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16622
# Whether or not to optimize for fast installation.
16623
fast_install=$enable_fast_install
16626
host_alias=$host_alias
16630
# The build system.
16631
build_alias=$build_alias
16635
# An echo program that does not interpret backslashes.
16640
AR_FLAGS=$lt_AR_FLAGS
16645
# LTCC compiler flags.
16646
LTCFLAGS=$lt_LTCFLAGS
16648
# A language-specific compiler.
16649
CC=$lt_compiler_F77
16651
# Is the compiler the GNU C compiler?
16657
# The linker used to build libraries.
16660
# Whether we need hard or soft links.
16663
# A BSD-compatible nm program.
16666
# A symbol stripping program
16669
# Used to examine libraries when file_magic_cmd begins "file"
16670
MAGIC_CMD=$MAGIC_CMD
16672
# Used on cygwin: DLL creation program.
16675
# Used on cygwin: object dumper.
16678
# Used on cygwin: assembler.
16681
# The name of the directory that contains temporary libtool files.
16684
# How to create reloadable object files.
16685
reload_flag=$lt_reload_flag
16686
reload_cmds=$lt_reload_cmds
16688
# How to pass a linker flag through the compiler.
16689
wl=$lt_lt_prog_compiler_wl_F77
16691
# Object file suffix (normally "o").
16692
objext="$ac_objext"
16694
# Old archive suffix (normally "a").
16697
# Shared library suffix (normally ".so").
16698
shrext_cmds='$shrext_cmds'
16700
# Executable file suffix (normally "").
16703
# Additional compiler flags for building library objects.
16704
pic_flag=$lt_lt_prog_compiler_pic_F77
16707
# What is the maximum length of a command?
16708
max_cmd_len=$lt_cv_sys_max_cmd_len
16710
# Does compiler simultaneously support -c and -o options?
16711
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16713
# Must we lock files when doing compilation?
16714
need_locks=$lt_need_locks
16716
# Do we need the lib prefix for modules?
16717
need_lib_prefix=$need_lib_prefix
16719
# Do we need a version for libraries?
16720
need_version=$need_version
16722
# Whether dlopen is supported.
16723
dlopen_support=$enable_dlopen
16725
# Whether dlopen of programs is supported.
16726
dlopen_self=$enable_dlopen_self
16728
# Whether dlopen of statically linked programs is supported.
16729
dlopen_self_static=$enable_dlopen_self_static
16731
# Compiler flag to prevent dynamic linking.
16732
link_static_flag=$lt_lt_prog_compiler_static_F77
16734
# Compiler flag to turn off builtin functions.
16735
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16737
# Compiler flag to allow reflexive dlopens.
16738
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16740
# Compiler flag to generate shared objects directly from archives.
16741
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16743
# Compiler flag to generate thread-safe objects.
16744
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16746
# Library versioning type.
16747
version_type=$version_type
16749
# Format of library name prefix.
16750
libname_spec=$lt_libname_spec
16752
# List of archive names. First name is the real one, the rest are links.
16753
# The last name is the one that the linker finds with -lNAME.
16754
library_names_spec=$lt_library_names_spec
16756
# The coded name of the library, if different from the real name.
16757
soname_spec=$lt_soname_spec
16759
# Commands used to build and install an old-style archive.
16761
old_archive_cmds=$lt_old_archive_cmds_F77
16762
old_postinstall_cmds=$lt_old_postinstall_cmds
16763
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16765
# Create an old-style archive from a shared archive.
16766
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16768
# Create a temporary old-style archive to link instead of a shared archive.
16769
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16771
# Commands used to build and install a shared archive.
16772
archive_cmds=$lt_archive_cmds_F77
16773
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16774
postinstall_cmds=$lt_postinstall_cmds
16775
postuninstall_cmds=$lt_postuninstall_cmds
16777
# Commands used to build a loadable module (assumed same as above if empty)
16778
module_cmds=$lt_module_cmds_F77
16779
module_expsym_cmds=$lt_module_expsym_cmds_F77
16781
# Commands to strip libraries.
16782
old_striplib=$lt_old_striplib
16783
striplib=$lt_striplib
16785
# Dependencies to place before the objects being linked to create a
16787
predep_objects=$lt_predep_objects_F77
16789
# Dependencies to place after the objects being linked to create a
16791
postdep_objects=$lt_postdep_objects_F77
16793
# Dependencies to place before the objects being linked to create a
16795
predeps=$lt_predeps_F77
16797
# Dependencies to place after the objects being linked to create a
16799
postdeps=$lt_postdeps_F77
16801
# The directories searched by this compiler when creating a shared
16803
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16805
# The library search path used internally by the compiler when linking
16806
# a shared library.
16807
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16809
# Method to check whether dependent libraries are shared objects.
16810
deplibs_check_method=$lt_deplibs_check_method
16812
# Command to use when deplibs_check_method == file_magic.
16813
file_magic_cmd=$lt_file_magic_cmd
16815
# Flag that allows shared libraries with undefined symbols to be built.
16816
allow_undefined_flag=$lt_allow_undefined_flag_F77
16818
# Flag that forces no undefined symbols.
16819
no_undefined_flag=$lt_no_undefined_flag_F77
16821
# Commands used to finish a libtool library installation in a directory.
16822
finish_cmds=$lt_finish_cmds
16824
# Same as above, but a single script fragment to be evaled but not shown.
16825
finish_eval=$lt_finish_eval
16827
# Take the output of nm and produce a listing of raw symbols and C names.
16828
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16830
# Transform the output of nm in a proper C declaration
16831
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16833
# Transform the output of nm in a C name address pair
16834
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16836
# This is the shared library runtime path variable.
16837
runpath_var=$runpath_var
16839
# This is the shared library path variable.
16840
shlibpath_var=$shlibpath_var
16842
# Is shlibpath searched before the hard-coded library search path?
16843
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16845
# How to hardcode a shared library path into an executable.
16846
hardcode_action=$hardcode_action_F77
16848
# Whether we should hardcode library paths into libraries.
16849
hardcode_into_libs=$hardcode_into_libs
16851
# Flag to hardcode \$libdir into a binary during linking.
16852
# This must work even if \$libdir does not exist.
16853
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16855
# If ld is used when linking, flag to hardcode \$libdir into
16856
# a binary during linking. This must work even if \$libdir does
16858
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16860
# Whether we need a single -rpath flag with a separated argument.
16861
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16863
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16864
# resulting binary.
16865
hardcode_direct=$hardcode_direct_F77
16867
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16868
# resulting binary.
16869
hardcode_minus_L=$hardcode_minus_L_F77
16871
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16872
# the resulting binary.
16873
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16875
# Set to yes if building a shared library automatically hardcodes DIR into the library
16876
# and all subsequent libraries and executables linked against it.
16877
hardcode_automatic=$hardcode_automatic_F77
16879
# Variables whose values should be saved in libtool wrapper scripts and
16880
# restored at relink time.
16881
variables_saved_for_relink="$variables_saved_for_relink"
16883
# Whether libtool must link a program against all its dependency libraries.
16884
link_all_deplibs=$link_all_deplibs_F77
16886
# Compile-time system search path for libraries
16887
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16889
# Run-time system search path for libraries
16890
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16892
# Fix the shell variable \$srcfile for the compiler.
16893
fix_srcfile_path=$lt_fix_srcfile_path
16895
# Set to yes if exported symbols are required.
16896
always_export_symbols=$always_export_symbols_F77
16898
# The commands to list exported symbols.
16899
export_symbols_cmds=$lt_export_symbols_cmds_F77
16901
# The commands to extract the exported symbol list from a shared archive.
16902
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16904
# Symbols that should not be listed in the preloaded symbols.
16905
exclude_expsyms=$lt_exclude_expsyms_F77
16907
# Symbols that must always be exported.
16908
include_expsyms=$lt_include_expsyms_F77
16910
# ### END LIBTOOL TAG CONFIG: $tagname
16916
# If there is no Makefile yet, we rely on a make rule to execute
16917
# `config.status --recheck' to rerun these tests and create the
16918
# libtool script then.
16919
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16920
if test -f "$ltmain_in"; then
16921
test -f Makefile && make "$ltmain"
16927
ac_cpp='$CPP $CPPFLAGS'
16928
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16929
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16930
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16940
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16943
# Source file extension for Java test sources.
16946
# Object file extension for compiled Java test sources.
16950
# Code to be used in simple compile tests
16951
lt_simple_compile_test_code="class foo {}"
16953
# Code to be used in simple link tests
16954
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16956
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16958
# If no C compiler was specified, use CC.
16961
# If no C compiler flags were specified, use CFLAGS.
16962
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16964
# Allow CC to be a program name with arguments.
16968
# save warnings/boilerplate of simple test code
16969
ac_outfile=conftest.$ac_objext
16970
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16971
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16972
_lt_compiler_boilerplate=`cat conftest.err`
16975
ac_outfile=conftest.$ac_objext
16976
echo "$lt_simple_link_test_code" >conftest.$ac_ext
16977
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16978
_lt_linker_boilerplate=`cat conftest.err`
16982
# Allow CC to be a program name with arguments.
16987
for cc_temp in $compiler""; do
16989
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16990
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16995
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16998
# GCJ did not exist at the time GCC didn't implicitly link libc in.
16999
archive_cmds_need_lc_GCJ=no
17001
old_archive_cmds_GCJ=$old_archive_cmds
17004
lt_prog_compiler_no_builtin_flag_GCJ=
17006
if test "$GCC" = yes; then
17007
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17010
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17011
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17012
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17013
echo $ECHO_N "(cached) $ECHO_C" >&6
17015
lt_cv_prog_compiler_rtti_exceptions=no
17016
ac_outfile=conftest.$ac_objext
17017
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17018
lt_compiler_flag="-fno-rtti -fno-exceptions"
17019
# Insert the option either (1) after the last *FLAGS variable, or
17020
# (2) before a word containing "conftest.", or (3) at the end.
17021
# Note that $ac_compile itself does not contain backslashes and begins
17022
# with a dollar sign (not a hyphen), so the echo should work correctly.
17023
# The option is referenced via a variable to avoid confusing sed.
17024
lt_compile=`echo "$ac_compile" | $SED \
17025
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17026
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17027
-e 's:$: $lt_compiler_flag:'`
17028
(eval echo "\"\$as_me:17028: $lt_compile\"" >&5)
17029
(eval "$lt_compile" 2>conftest.err)
17031
cat conftest.err >&5
17032
echo "$as_me:17032: \$? = $ac_status" >&5
17033
if (exit $ac_status) && test -s "$ac_outfile"; then
17034
# The compiler can only warn and ignore the option if not recognized
17035
# So say no if there are warnings other than the usual output.
17036
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17037
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17038
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17039
lt_cv_prog_compiler_rtti_exceptions=yes
17045
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17046
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17048
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17049
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17056
lt_prog_compiler_wl_GCJ=
17057
lt_prog_compiler_pic_GCJ=
17058
lt_prog_compiler_static_GCJ=
17060
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17061
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17063
if test "$GCC" = yes; then
17064
lt_prog_compiler_wl_GCJ='-Wl,'
17065
lt_prog_compiler_static_GCJ='-static'
17069
# All AIX code is PIC.
17070
if test "$host_cpu" = ia64; then
17071
# AIX 5 now supports IA64 processor
17072
lt_prog_compiler_static_GCJ='-Bstatic'
17077
# FIXME: we need at least 68020 code to build shared libraries, but
17078
# adding the `-m68020' flag to GCC prevents building anything better,
17080
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17083
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17084
# PIC is the default for these OSes.
17087
mingw* | cygwin* | pw32* | os2*)
17088
# This hack is so that the source file can tell whether it is being
17089
# built for inclusion in a dll (and should export symbols for example).
17090
# Although the cygwin gcc ignores -fPIC, still need this for old-style
17091
# (--disable-auto-import) libraries
17095
darwin* | rhapsody*)
17096
# PIC is the default on this platform
17097
# Common symbols not allowed in MH_DYLIB files
17098
lt_prog_compiler_pic_GCJ='-fno-common'
17102
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
17103
# Instead, we relocate shared libraries at runtime.
17107
# Just because we use GCC doesn't mean we suddenly get shared libraries
17108
# on systems that don't support them.
17109
lt_prog_compiler_can_build_shared_GCJ=no
17114
if test -d /usr/nec; then
17115
lt_prog_compiler_pic_GCJ=-Kconform_pic
17120
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17121
# not for PA HP-UX.
17127
lt_prog_compiler_pic_GCJ='-fPIC'
17133
lt_prog_compiler_pic_GCJ='-fPIC'
17137
# PORTME Check for flag to pass linker flags through the system compiler.
17140
lt_prog_compiler_wl_GCJ='-Wl,'
17141
if test "$host_cpu" = ia64; then
17142
# AIX 5 now supports IA64 processor
17143
lt_prog_compiler_static_GCJ='-Bstatic'
17145
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17149
# PIC is the default on this platform
17150
# Common symbols not allowed in MH_DYLIB files
17151
case $cc_basename in
17153
lt_prog_compiler_pic_GCJ='-qnocommon'
17154
lt_prog_compiler_wl_GCJ='-Wl,'
17159
mingw* | cygwin* | pw32* | os2*)
17160
# This hack is so that the source file can tell whether it is being
17161
# built for inclusion in a dll (and should export symbols for example).
17165
hpux9* | hpux10* | hpux11*)
17166
lt_prog_compiler_wl_GCJ='-Wl,'
17167
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17168
# not for PA HP-UX.
17174
lt_prog_compiler_pic_GCJ='+Z'
17177
# Is there a better lt_prog_compiler_static that works with the bundled CC?
17178
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17181
irix5* | irix6* | nonstopux*)
17182
lt_prog_compiler_wl_GCJ='-Wl,'
17183
# PIC (with -KPIC) is the default.
17184
lt_prog_compiler_static_GCJ='-non_shared'
17188
lt_prog_compiler_pic_GCJ='-KPIC'
17189
lt_prog_compiler_static_GCJ='-Bstatic'
17192
linux* | k*bsd*-gnu)
17193
case $cc_basename in
17195
lt_prog_compiler_wl_GCJ='-Wl,'
17196
lt_prog_compiler_pic_GCJ='-KPIC'
17197
lt_prog_compiler_static_GCJ='-static'
17199
pgcc* | pgf77* | pgf90* | pgf95*)
17200
# Portland Group compilers (*not* the Pentium gcc compiler,
17201
# which looks to be a dead project)
17202
lt_prog_compiler_wl_GCJ='-Wl,'
17203
lt_prog_compiler_pic_GCJ='-fpic'
17204
lt_prog_compiler_static_GCJ='-Bstatic'
17207
lt_prog_compiler_wl_GCJ='-Wl,'
17208
# All Alpha code is PIC.
17209
lt_prog_compiler_static_GCJ='-non_shared'
17212
case `$CC -V 2>&1 | sed 5q` in
17215
lt_prog_compiler_pic_GCJ='-KPIC'
17216
lt_prog_compiler_static_GCJ='-Bstatic'
17217
lt_prog_compiler_wl_GCJ='-Wl,'
17220
# Sun Fortran 8.3 passes all unrecognized flags to the linker
17221
lt_prog_compiler_pic_GCJ='-KPIC'
17222
lt_prog_compiler_static_GCJ='-Bstatic'
17223
lt_prog_compiler_wl_GCJ=''
17230
osf3* | osf4* | osf5*)
17231
lt_prog_compiler_wl_GCJ='-Wl,'
17232
# All OSF/1 code is PIC.
17233
lt_prog_compiler_static_GCJ='-non_shared'
17237
lt_prog_compiler_static_GCJ='-non_shared'
17241
lt_prog_compiler_pic_GCJ='-KPIC'
17242
lt_prog_compiler_static_GCJ='-Bstatic'
17243
case $cc_basename in
17244
f77* | f90* | f95*)
17245
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17247
lt_prog_compiler_wl_GCJ='-Wl,';;
17252
lt_prog_compiler_wl_GCJ='-Qoption ld '
17253
lt_prog_compiler_pic_GCJ='-PIC'
17254
lt_prog_compiler_static_GCJ='-Bstatic'
17257
sysv4 | sysv4.2uw2* | sysv4.3*)
17258
lt_prog_compiler_wl_GCJ='-Wl,'
17259
lt_prog_compiler_pic_GCJ='-KPIC'
17260
lt_prog_compiler_static_GCJ='-Bstatic'
17264
if test -d /usr/nec ;then
17265
lt_prog_compiler_pic_GCJ='-Kconform_pic'
17266
lt_prog_compiler_static_GCJ='-Bstatic'
17270
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17271
lt_prog_compiler_wl_GCJ='-Wl,'
17272
lt_prog_compiler_pic_GCJ='-KPIC'
17273
lt_prog_compiler_static_GCJ='-Bstatic'
17277
lt_prog_compiler_wl_GCJ='-Wl,'
17278
lt_prog_compiler_can_build_shared_GCJ=no
17282
lt_prog_compiler_pic_GCJ='-pic'
17283
lt_prog_compiler_static_GCJ='-Bstatic'
17287
lt_prog_compiler_can_build_shared_GCJ=no
17292
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17293
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17296
# Check to make sure the PIC flag actually works.
17298
if test -n "$lt_prog_compiler_pic_GCJ"; then
17300
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17301
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17302
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17303
echo $ECHO_N "(cached) $ECHO_C" >&6
17305
lt_cv_prog_compiler_pic_works_GCJ=no
17306
ac_outfile=conftest.$ac_objext
17307
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17308
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17309
# Insert the option either (1) after the last *FLAGS variable, or
17310
# (2) before a word containing "conftest.", or (3) at the end.
17311
# Note that $ac_compile itself does not contain backslashes and begins
17312
# with a dollar sign (not a hyphen), so the echo should work correctly.
17313
# The option is referenced via a variable to avoid confusing sed.
17314
lt_compile=`echo "$ac_compile" | $SED \
17315
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17316
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17317
-e 's:$: $lt_compiler_flag:'`
17318
(eval echo "\"\$as_me:17318: $lt_compile\"" >&5)
17319
(eval "$lt_compile" 2>conftest.err)
17321
cat conftest.err >&5
17322
echo "$as_me:17322: \$? = $ac_status" >&5
17323
if (exit $ac_status) && test -s "$ac_outfile"; then
17324
# The compiler can only warn and ignore the option if not recognized
17325
# So say no if there are warnings other than the usual output.
17326
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17327
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17328
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17329
lt_cv_prog_compiler_pic_works_GCJ=yes
17335
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17336
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17338
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17339
case $lt_prog_compiler_pic_GCJ in
17341
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17344
lt_prog_compiler_pic_GCJ=
17345
lt_prog_compiler_can_build_shared_GCJ=no
17350
# For platforms which do not support PIC, -DPIC is meaningless:
17352
lt_prog_compiler_pic_GCJ=
17355
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17360
# Check to make sure the static flag actually works.
17362
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17363
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17364
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17365
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17366
echo $ECHO_N "(cached) $ECHO_C" >&6
17368
lt_cv_prog_compiler_static_works_GCJ=no
17369
save_LDFLAGS="$LDFLAGS"
17370
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17371
echo "$lt_simple_link_test_code" > conftest.$ac_ext
17372
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17373
# The linker can only warn and ignore the option if not recognized
17374
# So say no if there are warnings
17375
if test -s conftest.err; then
17376
# Append any errors to the config.log.
17377
cat conftest.err 1>&5
17378
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17379
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17380
if diff conftest.exp conftest.er2 >/dev/null; then
17381
lt_cv_prog_compiler_static_works_GCJ=yes
17384
lt_cv_prog_compiler_static_works_GCJ=yes
17388
LDFLAGS="$save_LDFLAGS"
17391
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17392
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17394
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17397
lt_prog_compiler_static_GCJ=
17401
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17402
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17403
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17404
echo $ECHO_N "(cached) $ECHO_C" >&6
17406
lt_cv_prog_compiler_c_o_GCJ=no
17407
$rm -r conftest 2>/dev/null
17411
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17413
lt_compiler_flag="-o out/conftest2.$ac_objext"
17414
# Insert the option either (1) after the last *FLAGS variable, or
17415
# (2) before a word containing "conftest.", or (3) at the end.
17416
# Note that $ac_compile itself does not contain backslashes and begins
17417
# with a dollar sign (not a hyphen), so the echo should work correctly.
17418
lt_compile=`echo "$ac_compile" | $SED \
17419
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17420
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17421
-e 's:$: $lt_compiler_flag:'`
17422
(eval echo "\"\$as_me:17422: $lt_compile\"" >&5)
17423
(eval "$lt_compile" 2>out/conftest.err)
17425
cat out/conftest.err >&5
17426
echo "$as_me:17426: \$? = $ac_status" >&5
17427
if (exit $ac_status) && test -s out/conftest2.$ac_objext
17429
# The compiler can only warn and ignore the option if not recognized
17430
# So say no if there are warnings
17431
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17432
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17433
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17434
lt_cv_prog_compiler_c_o_GCJ=yes
17439
# SGI C++ compiler will create directory out/ii_files/ for
17440
# template instantiation
17441
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17442
$rm out/* && rmdir out
17448
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17449
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17452
hard_links="nottested"
17453
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17454
# do not overwrite the value of need_locks provided by the user
17455
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17456
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17459
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17461
ln conftest.a conftest.b 2>&5 || hard_links=no
17462
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17463
{ echo "$as_me:$LINENO: result: $hard_links" >&5
17464
echo "${ECHO_T}$hard_links" >&6; }
17465
if test "$hard_links" = no; then
17466
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17467
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17474
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17475
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17478
allow_undefined_flag_GCJ=
17479
enable_shared_with_static_runtimes_GCJ=no
17481
archive_expsym_cmds_GCJ=
17482
old_archive_From_new_cmds_GCJ=
17483
old_archive_from_expsyms_cmds_GCJ=
17484
export_dynamic_flag_spec_GCJ=
17485
whole_archive_flag_spec_GCJ=
17486
thread_safe_flag_spec_GCJ=
17487
hardcode_libdir_flag_spec_GCJ=
17488
hardcode_libdir_flag_spec_ld_GCJ=
17489
hardcode_libdir_separator_GCJ=
17490
hardcode_direct_GCJ=no
17491
hardcode_minus_L_GCJ=no
17492
hardcode_shlibpath_var_GCJ=unsupported
17493
link_all_deplibs_GCJ=unknown
17494
hardcode_automatic_GCJ=no
17496
module_expsym_cmds_GCJ=
17497
always_export_symbols_GCJ=no
17498
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17499
# include_expsyms should be a list of space-separated symbols to be *always*
17500
# included in the symbol list
17501
include_expsyms_GCJ=
17502
# exclude_expsyms can be an extended regexp of symbols to exclude
17503
# it will be wrapped by ` (' and `)$', so one must not match beginning or
17504
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17505
# as well as any symbol that contains `d'.
17506
exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17507
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17508
# platforms (ab)use it in PIC code, but their linkers get confused if
17509
# the symbol is explicitly referenced. Since portable code cannot
17510
# rely on this symbol name, it's probably fine to never include it in
17511
# preloaded symbol tables.
17512
# Exclude shared library initialization/finalization symbols.
17513
extract_expsyms_cmds=
17514
# Just being paranoid about ensuring that cc_basename is set.
17515
for cc_temp in $compiler""; do
17517
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17518
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17523
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17526
cygwin* | mingw* | pw32*)
17527
# FIXME: the MSVC++ port hasn't been tested in a loooong time
17528
# When not using gcc, we currently assume that we are using
17529
# Microsoft Visual C++.
17530
if test "$GCC" != yes; then
17535
# we just hope/assume this is gcc and not c89 (= MSVC++)
17544
if test "$with_gnu_ld" = yes; then
17545
# If archive_cmds runs LD, not CC, wlarc should be empty
17548
# Set some defaults for GNU ld with shared library support. These
17549
# are reset later if shared libraries are not supported. Putting them
17550
# here allows them to be overridden if necessary.
17551
runpath_var=LD_RUN_PATH
17552
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17553
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17554
# ancient GNU ld didn't support --whole-archive et. al.
17555
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17556
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17558
whole_archive_flag_spec_GCJ=
17560
supports_anon_versioning=no
17561
case `$LD -v 2>/dev/null` in
17562
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17563
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17564
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17565
*\ 2.11.*) ;; # other 2.11 versions
17566
*) supports_anon_versioning=yes ;;
17569
# See if GNU ld supports shared libraries.
17572
# On AIX/PPC, the GNU linker is very broken
17573
if test "$host_cpu" != ia64; then
17577
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17578
*** to be unable to reliably create shared libraries on AIX.
17579
*** Therefore, libtool is disabling shared libraries support. If you
17580
*** really care for shared libraries, you may want to modify your PATH
17581
*** so that a non-GNU linker is found, and then restart.
17588
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)'
17589
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17590
hardcode_minus_L_GCJ=yes
17592
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17593
# that the semantics of dynamic libraries on AmigaOS, at least up
17594
# to version 4, is to share data among multiple programs linked
17595
# with the same dynamic library. Since this doesn't match the
17596
# behavior of shared libraries on other platforms, we can't use
17602
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17603
allow_undefined_flag_GCJ=unsupported
17604
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17605
# support --undefined. This deserves some investigation. FIXME
17606
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17612
cygwin* | mingw* | pw32*)
17613
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17614
# as there is no search path for DLLs.
17615
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17616
allow_undefined_flag_GCJ=unsupported
17617
always_export_symbols_GCJ=no
17618
enable_shared_with_static_runtimes_GCJ=yes
17619
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17621
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17622
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17623
# If the export-symbols file already is a .def file (1st line
17624
# is EXPORTS), use it as is; otherwise, prepend...
17625
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17626
cp $export_symbols $output_objdir/$soname.def;
17628
echo EXPORTS > $output_objdir/$soname.def;
17629
cat $export_symbols >> $output_objdir/$soname.def;
17631
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17638
hardcode_direct_GCJ=no
17639
hardcode_shlibpath_var_GCJ=no
17640
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17641
export_dynamic_flag_spec_GCJ='${wl}-E'
17642
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17643
# Instead, shared libraries are loaded at an image base (0x10000000 by
17644
# default) and relocated if they conflict, which is a slow very memory
17645
# consuming and fragmenting process. To avoid this, we pick a random,
17646
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17647
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
17648
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'
17649
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'
17652
gnu* | linux* | k*bsd*-gnu)
17653
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17655
case $cc_basename,$host_cpu in
17656
pgcc*) # Portland Group C compiler
17657
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'
17658
tmp_addflag=' $pic_flag'
17660
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17661
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'
17662
tmp_addflag=' $pic_flag -Mnomain' ;;
17663
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17664
tmp_addflag=' -i_dynamic' ;;
17665
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17666
tmp_addflag=' -i_dynamic -nofor_main' ;;
17667
ifc* | ifort*) # Intel Fortran compiler
17668
tmp_addflag=' -nofor_main' ;;
17670
case `$CC -V 2>&1 | sed 5q` in
17671
*Sun\ C*) # Sun C 5.9
17672
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'
17673
tmp_sharedflag='-G' ;;
17674
*Sun\ F*) # Sun Fortran 8.3
17675
tmp_sharedflag='-G' ;;
17677
tmp_sharedflag='-shared' ;;
17679
archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17681
if test $supports_anon_versioning = yes; then
17682
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17683
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17684
$echo "local: *; };" >> $output_objdir/$libname.ver~
17685
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17693
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17694
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17697
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17698
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17703
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17707
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17708
*** create shared libraries on Solaris systems. Therefore, libtool
17709
*** is disabling shared libraries support. We urge you to upgrade GNU
17710
*** binutils to release 2.9.1 or newer. Another option is to modify
17711
*** your PATH or compiler configuration so that the native linker is
17712
*** used, and then restart.
17715
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17716
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17717
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17723
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17724
case `$LD -v 2>&1` in
17725
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17729
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17730
*** reliably create shared libraries on SCO systems. Therefore, libtool
17731
*** is disabling shared libraries support. We urge you to upgrade GNU
17732
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17733
*** your PATH or compiler configuration so that the native linker is
17734
*** used, and then restart.
17739
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17740
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17741
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17742
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17751
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17753
hardcode_direct_GCJ=yes
17754
hardcode_shlibpath_var_GCJ=no
17758
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17759
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17760
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17767
if test "$ld_shlibs_GCJ" = no; then
17769
hardcode_libdir_flag_spec_GCJ=
17770
export_dynamic_flag_spec_GCJ=
17771
whole_archive_flag_spec_GCJ=
17774
# PORTME fill in a description of your system's linker (not GNU ld)
17777
allow_undefined_flag_GCJ=unsupported
17778
always_export_symbols_GCJ=yes
17779
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'
17780
# Note: this linker hardcodes the directories in LIBPATH if there
17781
# are no directories specified by -L.
17782
hardcode_minus_L_GCJ=yes
17783
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17784
# Neither direct hardcoding nor static linking is supported with a
17786
hardcode_direct_GCJ=unsupported
17791
if test "$host_cpu" = ia64; then
17792
# On IA64, the linker does run time linking by default, so we don't
17793
# have to do anything special.
17794
aix_use_runtimelinking=no
17795
exp_sym_flag='-Bexport'
17798
# If we're using GNU nm, then we don't want the "-C" option.
17799
# -C means demangle to AIX nm, but means don't demangle with GNU nm
17800
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17801
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'
17803
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'
17805
aix_use_runtimelinking=no
17807
# Test if we are trying to use run time linking or normal
17808
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17809
# need to do runtime linking.
17810
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17811
for ld_flag in $LDFLAGS; do
17812
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17813
aix_use_runtimelinking=yes
17820
exp_sym_flag='-bexport'
17821
no_entry_flag='-bnoentry'
17824
# When large executables or shared objects are built, AIX ld can
17825
# have problems creating the table of contents. If linking a library
17826
# or program results in "error TOC overflow" add -mminimal-toc to
17827
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17828
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17830
archive_cmds_GCJ=''
17831
hardcode_direct_GCJ=yes
17832
hardcode_libdir_separator_GCJ=':'
17833
link_all_deplibs_GCJ=yes
17835
if test "$GCC" = yes; then
17836
case $host_os in aix4.[012]|aix4.[012].*)
17837
# We only want to do this on AIX 4.2 and lower, the check
17838
# below for broken collect2 doesn't work under 4.3+
17839
collect2name=`${CC} -print-prog-name=collect2`
17840
if test -f "$collect2name" && \
17841
strings "$collect2name" | grep resolve_lib_name >/dev/null
17843
# We have reworked collect2
17846
# We have old collect2
17847
hardcode_direct_GCJ=unsupported
17848
# It fails to find uninstalled libraries when the uninstalled
17849
# path is not listed in the libpath. Setting hardcode_minus_L
17850
# to unsupported forces relinking
17851
hardcode_minus_L_GCJ=yes
17852
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17853
hardcode_libdir_separator_GCJ=
17857
shared_flag='-shared'
17858
if test "$aix_use_runtimelinking" = yes; then
17859
shared_flag="$shared_flag "'${wl}-G'
17863
if test "$host_cpu" = ia64; then
17864
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17865
# chokes on -Wl,-G. The following line is correct:
17868
if test "$aix_use_runtimelinking" = yes; then
17869
shared_flag='${wl}-G'
17871
shared_flag='${wl}-bM:SRE'
17876
# It seems that -bexpall does not export symbols beginning with
17877
# underscore (_), so it is better to generate a list of symbols to export.
17878
always_export_symbols_GCJ=yes
17879
if test "$aix_use_runtimelinking" = yes; then
17880
# Warning - without using the other runtime loading flags (-brtl),
17881
# -berok will link without error, but may produce a broken library.
17882
allow_undefined_flag_GCJ='-berok'
17883
# Determine the default libpath from the value encoded in an empty executable.
17884
cat >conftest.$ac_ext <<_ACEOF
17887
cat confdefs.h >>conftest.$ac_ext
17888
cat >>conftest.$ac_ext <<_ACEOF
17889
/* end confdefs.h. */
17899
rm -f conftest.$ac_objext conftest$ac_exeext
17900
if { (ac_try="$ac_link"
17901
case "(($ac_try" in
17902
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17903
*) ac_try_echo=$ac_try;;
17905
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17906
(eval "$ac_link") 2>conftest.er1
17908
grep -v '^ *+' conftest.er1 >conftest.err
17910
cat conftest.err >&5
17911
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17912
(exit $ac_status); } && {
17913
test -z "$ac_c_werror_flag" ||
17914
test ! -s conftest.err
17915
} && test -s conftest$ac_exeext &&
17916
$as_test_x conftest$ac_exeext; then
17918
lt_aix_libpath_sed='
17919
/Import File Strings/,/^$/ {
17925
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17926
# Check for a 64-bit object if we didn't find anything.
17927
if test -z "$aix_libpath"; then
17928
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17931
echo "$as_me: failed program was:" >&5
17932
sed 's/^/| /' conftest.$ac_ext >&5
17937
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17938
conftest$ac_exeext conftest.$ac_ext
17939
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17941
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17942
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"
17944
if test "$host_cpu" = ia64; then
17945
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17946
allow_undefined_flag_GCJ="-z nodefs"
17947
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"
17949
# Determine the default libpath from the value encoded in an empty executable.
17950
cat >conftest.$ac_ext <<_ACEOF
17953
cat confdefs.h >>conftest.$ac_ext
17954
cat >>conftest.$ac_ext <<_ACEOF
17955
/* end confdefs.h. */
17965
rm -f conftest.$ac_objext conftest$ac_exeext
17966
if { (ac_try="$ac_link"
17967
case "(($ac_try" in
17968
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17969
*) ac_try_echo=$ac_try;;
17971
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17972
(eval "$ac_link") 2>conftest.er1
17974
grep -v '^ *+' conftest.er1 >conftest.err
17976
cat conftest.err >&5
17977
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978
(exit $ac_status); } && {
17979
test -z "$ac_c_werror_flag" ||
17980
test ! -s conftest.err
17981
} && test -s conftest$ac_exeext &&
17982
$as_test_x conftest$ac_exeext; then
17984
lt_aix_libpath_sed='
17985
/Import File Strings/,/^$/ {
17991
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17992
# Check for a 64-bit object if we didn't find anything.
17993
if test -z "$aix_libpath"; then
17994
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17997
echo "$as_me: failed program was:" >&5
17998
sed 's/^/| /' conftest.$ac_ext >&5
18003
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18004
conftest$ac_exeext conftest.$ac_ext
18005
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18007
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18008
# Warning - without using the other run time loading flags,
18009
# -berok will link without error, but may produce a broken library.
18010
no_undefined_flag_GCJ=' ${wl}-bernotok'
18011
allow_undefined_flag_GCJ=' ${wl}-berok'
18012
# Exported symbols can be pulled into shared objects from archives
18013
whole_archive_flag_spec_GCJ='$convenience'
18014
archive_cmds_need_lc_GCJ=yes
18015
# This is similar to how AIX traditionally builds its shared libraries.
18016
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'
18022
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)'
18023
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18024
hardcode_minus_L_GCJ=yes
18025
# see comment about different semantics on the GNU ld section
18030
export_dynamic_flag_spec_GCJ=-rdynamic
18033
cygwin* | mingw* | pw32*)
18034
# When not using gcc, we currently assume that we are using
18035
# Microsoft Visual C++.
18036
# hardcode_libdir_flag_spec is actually meaningless, as there is
18037
# no search path for DLLs.
18038
hardcode_libdir_flag_spec_GCJ=' '
18039
allow_undefined_flag_GCJ=unsupported
18040
# Tell ltmain to make .lib files, not .a files.
18042
# Tell ltmain to make .dll files, not .so files.
18044
# FIXME: Setting linknames here is a bad hack.
18045
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18046
# The linker will automatically build a .lib file if we build a DLL.
18047
old_archive_From_new_cmds_GCJ='true'
18048
# FIXME: Should let the user specify the lib program.
18049
old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18050
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18051
enable_shared_with_static_runtimes_GCJ=yes
18054
darwin* | rhapsody*)
18056
rhapsody* | darwin1.[012])
18057
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18060
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18061
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18063
case ${MACOSX_DEPLOYMENT_TARGET} in
18065
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18068
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18074
archive_cmds_need_lc_GCJ=no
18075
hardcode_direct_GCJ=no
18076
hardcode_automatic_GCJ=yes
18077
hardcode_shlibpath_var_GCJ=unsupported
18078
whole_archive_flag_spec_GCJ=''
18079
link_all_deplibs_GCJ=yes
18080
if test "$GCC" = yes ; then
18081
output_verbose_link_cmd='echo'
18082
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}"
18083
module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18084
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}"
18085
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}"
18087
case $cc_basename in
18089
output_verbose_link_cmd='echo'
18090
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18091
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18092
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18093
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}'
18094
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}'
18104
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18105
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18106
hardcode_shlibpath_var_GCJ=no
18113
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18114
# support. Future versions do this automatically, but an explicit c++rt0.o
18115
# does not break anything, and helps significantly (at the cost of a little
18118
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18119
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18120
hardcode_direct_GCJ=yes
18121
hardcode_shlibpath_var_GCJ=no
18124
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
18126
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18127
hardcode_direct_GCJ=yes
18128
hardcode_minus_L_GCJ=yes
18129
hardcode_shlibpath_var_GCJ=no
18132
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18133
freebsd* | dragonfly*)
18134
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18135
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18136
hardcode_direct_GCJ=yes
18137
hardcode_shlibpath_var_GCJ=no
18141
if test "$GCC" = yes; then
18142
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'
18144
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'
18146
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18147
hardcode_libdir_separator_GCJ=:
18148
hardcode_direct_GCJ=yes
18150
# hardcode_minus_L: Not really in the search PATH,
18151
# but as the default location of the library.
18152
hardcode_minus_L_GCJ=yes
18153
export_dynamic_flag_spec_GCJ='${wl}-E'
18157
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18158
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18160
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18162
if test "$with_gnu_ld" = no; then
18163
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18164
hardcode_libdir_separator_GCJ=:
18166
hardcode_direct_GCJ=yes
18167
export_dynamic_flag_spec_GCJ='${wl}-E'
18169
# hardcode_minus_L: Not really in the search PATH,
18170
# but as the default location of the library.
18171
hardcode_minus_L_GCJ=yes
18176
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18179
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18182
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18185
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18191
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18194
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18197
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18201
if test "$with_gnu_ld" = no; then
18202
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18203
hardcode_libdir_separator_GCJ=:
18207
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18208
hardcode_direct_GCJ=no
18209
hardcode_shlibpath_var_GCJ=no
18212
hardcode_direct_GCJ=yes
18213
export_dynamic_flag_spec_GCJ='${wl}-E'
18215
# hardcode_minus_L: Not really in the search PATH,
18216
# but as the default location of the library.
18217
hardcode_minus_L_GCJ=yes
18223
irix5* | irix6* | nonstopux*)
18224
if test "$GCC" = yes; then
18225
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'
18227
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'
18228
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18230
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18231
hardcode_libdir_separator_GCJ=:
18232
link_all_deplibs_GCJ=yes
18236
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18237
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18239
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18241
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18242
hardcode_direct_GCJ=yes
18243
hardcode_shlibpath_var_GCJ=no
18247
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18248
hardcode_direct_GCJ=yes
18249
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18250
hardcode_libdir_separator_GCJ=:
18251
hardcode_shlibpath_var_GCJ=no
18255
if test -f /usr/libexec/ld.so; then
18256
hardcode_direct_GCJ=yes
18257
hardcode_shlibpath_var_GCJ=no
18258
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18259
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18260
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18261
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18262
export_dynamic_flag_spec_GCJ='${wl}-E'
18265
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18266
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18267
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18270
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18271
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18281
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18282
hardcode_minus_L_GCJ=yes
18283
allow_undefined_flag_GCJ=unsupported
18284
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'
18285
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18289
if test "$GCC" = yes; then
18290
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18291
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'
18293
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18294
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'
18296
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18297
hardcode_libdir_separator_GCJ=:
18300
osf4* | osf5*) # as osf3* with the addition of -msym flag
18301
if test "$GCC" = yes; then
18302
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18303
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'
18304
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18306
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18307
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'
18308
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~
18309
$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'
18311
# Both c and cxx compiler support -rpath directly
18312
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18314
hardcode_libdir_separator_GCJ=:
18318
no_undefined_flag_GCJ=' -z text'
18319
if test "$GCC" = yes; then
18321
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18322
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18323
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18326
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18327
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18328
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18330
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18331
hardcode_shlibpath_var_GCJ=no
18333
solaris2.[0-5] | solaris2.[0-5].*) ;;
18335
# The compiler driver will combine and reorder linker options,
18336
# but understands `-z linker_flag'. GCC discards it without `$wl',
18337
# but is careful enough not to reorder.
18338
# Supported since Solaris 2.6 (maybe 2.5.1?)
18339
if test "$GCC" = yes; then
18340
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18342
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18346
link_all_deplibs_GCJ=yes
18350
if test "x$host_vendor" = xsequent; then
18351
# Use $CC to link under sequent, because it throws in some extra .o
18352
# files that make .init and .fini sections work.
18353
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18355
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18357
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18358
hardcode_direct_GCJ=yes
18359
hardcode_minus_L_GCJ=yes
18360
hardcode_shlibpath_var_GCJ=no
18364
case $host_vendor in
18366
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18367
hardcode_direct_GCJ=yes # is this really true???
18370
## LD is ld it makes a PLAMLIB
18371
## CC just makes a GrossModule.
18372
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18373
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18374
hardcode_direct_GCJ=no
18377
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18378
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18381
runpath_var='LD_RUN_PATH'
18382
hardcode_shlibpath_var_GCJ=no
18386
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18387
hardcode_shlibpath_var_GCJ=no
18388
export_dynamic_flag_spec_GCJ='-Bexport'
18392
if test -d /usr/nec; then
18393
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18394
hardcode_shlibpath_var_GCJ=no
18395
runpath_var=LD_RUN_PATH
18396
hardcode_runpath_var=yes
18401
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18402
no_undefined_flag_GCJ='${wl}-z,text'
18403
archive_cmds_need_lc_GCJ=no
18404
hardcode_shlibpath_var_GCJ=no
18405
runpath_var='LD_RUN_PATH'
18407
if test "$GCC" = yes; then
18408
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18409
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18411
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18412
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18416
sysv5* | sco3.2v5* | sco5v6*)
18417
# Note: We can NOT use -z defs as we might desire, because we do not
18418
# link with -lc, and that would cause any symbols used from libc to
18419
# always be unresolved, which means just about no library would
18420
# ever link correctly. If we're not using GNU ld we use -z text
18421
# though, which does catch some bad symbols but isn't as heavy-handed
18423
no_undefined_flag_GCJ='${wl}-z,text'
18424
allow_undefined_flag_GCJ='${wl}-z,nodefs'
18425
archive_cmds_need_lc_GCJ=no
18426
hardcode_shlibpath_var_GCJ=no
18427
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18428
hardcode_libdir_separator_GCJ=':'
18429
link_all_deplibs_GCJ=yes
18430
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18431
runpath_var='LD_RUN_PATH'
18433
if test "$GCC" = yes; then
18434
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18435
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18437
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18438
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18443
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18444
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18445
hardcode_shlibpath_var_GCJ=no
18454
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18455
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18456
test "$ld_shlibs_GCJ" = no && can_build_shared=no
18459
# Do we need to explicitly link libc?
18461
case "x$archive_cmds_need_lc_GCJ" in
18463
# Assume -lc should be added
18464
archive_cmds_need_lc_GCJ=yes
18466
if test "$enable_shared" = yes && test "$GCC" = yes; then
18467
case $archive_cmds_GCJ in
18469
# FIXME: we may have to deal with multi-command sequences.
18472
# Test whether the compiler implicitly links with -lc since on some
18473
# systems, -lgcc has to come before -lc. If gcc already passes -lc
18474
# to ld, don't add -lc before -lgcc.
18475
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18476
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18478
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18480
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18481
(eval $ac_compile) 2>&5
18483
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18484
(exit $ac_status); } 2>conftest.err; then
18487
libobjs=conftest.$ac_objext
18489
wl=$lt_prog_compiler_wl_GCJ
18490
pic_flag=$lt_prog_compiler_pic_GCJ
18496
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18497
allow_undefined_flag_GCJ=
18498
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18499
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18501
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18502
(exit $ac_status); }
18504
archive_cmds_need_lc_GCJ=no
18506
archive_cmds_need_lc_GCJ=yes
18508
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18510
cat conftest.err 1>&5
18513
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18514
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18521
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18522
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18523
library_names_spec=
18524
libname_spec='lib$name'
18528
postuninstall_cmds=
18532
shlibpath_overrides_runpath=unknown
18534
dynamic_linker="$host_os ld.so"
18535
sys_lib_dlsearch_path_spec="/lib /usr/lib"
18537
need_lib_prefix=unknown
18538
hardcode_into_libs=no
18540
# when you set need_version to no, make sure it does not cause -set_version
18541
# flags to be left without arguments
18542
need_version=unknown
18547
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18548
shlibpath_var=LIBPATH
18550
# AIX 3 has no versioning support, so we append a major version to the name.
18551
soname_spec='${libname}${release}${shared_ext}$major'
18558
hardcode_into_libs=yes
18559
if test "$host_cpu" = ia64; then
18560
# AIX 5 supports IA64
18561
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18562
shlibpath_var=LD_LIBRARY_PATH
18564
# With GCC up to 2.95.x, collect2 would create an import file
18565
# for dependence libraries. The import file would start with
18566
# the line `#! .'. This would cause the generated library to
18567
# depend on `.', always an invalid library. This was fixed in
18568
# development snapshots of GCC prior to 3.0.
18570
aix4 | aix4.[01] | aix4.[01].*)
18571
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18573
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18576
can_build_shared=no
18580
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18581
# soname into executable. Probably we can add versioning support to
18582
# collect2, so additional links can be useful in future.
18583
if test "$aix_use_runtimelinking" = yes; then
18584
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
18585
# instead of lib<name>.a to let people know that these are not
18586
# typical AIX shared libraries.
18587
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18589
# We preserve .a as extension for shared libraries through AIX4.2
18590
# and later when we are not doing run time linking.
18591
library_names_spec='${libname}${release}.a $libname.a'
18592
soname_spec='${libname}${release}${shared_ext}$major'
18594
shlibpath_var=LIBPATH
18599
library_names_spec='$libname.ixlibrary $libname.a'
18600
# Create ${libname}_ixlibrary.a entries in /sys/libs.
18601
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'
18605
library_names_spec='${libname}${shared_ext}'
18606
dynamic_linker="$host_os ld.so"
18607
shlibpath_var=LIBRARY_PATH
18613
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18614
soname_spec='${libname}${release}${shared_ext}$major'
18615
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18616
shlibpath_var=LD_LIBRARY_PATH
18617
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18618
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18619
# the default ld.so.conf also contains /usr/contrib/lib and
18620
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18621
# libtool to hard-code these into programs
18624
cygwin* | mingw* | pw32*)
18625
version_type=windows
18630
case $GCC,$host_os in
18631
yes,cygwin* | yes,mingw* | yes,pw32*)
18632
library_names_spec='$libname.dll.a'
18633
# DLL is installed to $(libdir)/../bin by postinstall_cmds
18634
postinstall_cmds='base_file=`basename \${file}`~
18635
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18636
dldir=$destdir/`dirname \$dlpath`~
18637
test -d \$dldir || mkdir -p \$dldir~
18638
$install_prog $dir/$dlname \$dldir/$dlname~
18639
chmod a+x \$dldir/$dlname'
18640
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18641
dlpath=$dir/\$dldll~
18643
shlibpath_overrides_runpath=yes
18647
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
18648
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18649
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18652
# MinGW DLLs use traditional 'lib' prefix
18653
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18654
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18655
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18656
# It is most probably a Windows format PATH printed by
18657
# mingw gcc, but we are running on Cygwin. Gcc prints its search
18658
# path with ; separators, and with drive letters. We can handle the
18659
# drive letters (cygwin fileutils understands them), so leave them,
18660
# especially as we might pass files found there to a mingw objdump,
18661
# which wouldn't understand a cygwinified path. Ahh.
18662
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18664
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18668
# pw32 DLLs use 'pw' prefix rather than 'lib'
18669
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18675
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18678
dynamic_linker='Win32 ld.exe'
18679
# FIXME: first we should search . and the directory the executable is in
18683
darwin* | rhapsody*)
18684
dynamic_linker="$host_os dyld"
18685
version_type=darwin
18688
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18689
soname_spec='${libname}${release}${major}$shared_ext'
18690
shlibpath_overrides_runpath=yes
18691
shlibpath_var=DYLD_LIBRARY_PATH
18692
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18694
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18701
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18702
soname_spec='${libname}${release}${shared_ext}$major'
18703
shlibpath_var=LD_LIBRARY_PATH
18710
freebsd* | dragonfly*)
18711
# DragonFly does not have aout. When/if they implement a new
18712
# versioning mechanism, adjust this.
18713
if test -x /usr/bin/objformat; then
18714
objformat=`/usr/bin/objformat`
18717
freebsd[123]*) objformat=aout ;;
18718
*) objformat=elf ;;
18721
version_type=freebsd-$objformat
18722
case $version_type in
18724
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18729
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18733
shlibpath_var=LD_LIBRARY_PATH
18736
shlibpath_overrides_runpath=yes
18738
freebsd3.[01]* | freebsdelf3.[01]*)
18739
shlibpath_overrides_runpath=yes
18740
hardcode_into_libs=yes
18742
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18743
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18744
shlibpath_overrides_runpath=no
18745
hardcode_into_libs=yes
18747
*) # from 4.6 on, and DragonFly
18748
shlibpath_overrides_runpath=yes
18749
hardcode_into_libs=yes
18758
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18759
soname_spec='${libname}${release}${shared_ext}$major'
18760
shlibpath_var=LD_LIBRARY_PATH
18761
hardcode_into_libs=yes
18764
hpux9* | hpux10* | hpux11*)
18765
# Give a soname corresponding to the major version so that dld.sl refuses to
18766
# link against other versions.
18773
hardcode_into_libs=yes
18774
dynamic_linker="$host_os dld.so"
18775
shlibpath_var=LD_LIBRARY_PATH
18776
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18777
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18778
soname_spec='${libname}${release}${shared_ext}$major'
18779
if test "X$HPUX_IA64_MODE" = X32; then
18780
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18782
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18784
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18788
hardcode_into_libs=yes
18789
dynamic_linker="$host_os dld.sl"
18790
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18791
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18792
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18793
soname_spec='${libname}${release}${shared_ext}$major'
18794
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18795
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18799
dynamic_linker="$host_os dld.sl"
18800
shlibpath_var=SHLIB_PATH
18801
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18802
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18803
soname_spec='${libname}${release}${shared_ext}$major'
18806
# HP-UX runs *really* slowly unless shared libraries are mode 555.
18807
postinstall_cmds='chmod 555 $lib'
18814
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18815
soname_spec='${libname}${release}${shared_ext}$major'
18816
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18817
shlibpath_var=LD_LIBRARY_PATH
18818
shlibpath_overrides_runpath=no
18819
hardcode_into_libs=yes
18822
irix5* | irix6* | nonstopux*)
18824
nonstopux*) version_type=nonstopux ;;
18826
if test "$lt_cv_prog_gnu_ld" = yes; then
18834
soname_spec='${libname}${release}${shared_ext}$major'
18835
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18837
irix5* | nonstopux*)
18838
libsuff= shlibsuff=
18841
case $LD in # libtool.m4 will add one of these switches to LD
18842
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18843
libsuff= shlibsuff= libmagic=32-bit;;
18844
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18845
libsuff=32 shlibsuff=N32 libmagic=N32;;
18846
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18847
libsuff=64 shlibsuff=64 libmagic=64-bit;;
18848
*) libsuff= shlibsuff= libmagic=never-match;;
18852
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18853
shlibpath_overrides_runpath=no
18854
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18855
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18856
hardcode_into_libs=yes
18859
# No shared lib support for Linux oldld, aout, or coff.
18860
linux*oldld* | linux*aout* | linux*coff*)
18864
# This must be Linux ELF.
18865
linux* | k*bsd*-gnu)
18869
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18870
soname_spec='${libname}${release}${shared_ext}$major'
18871
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18872
shlibpath_var=LD_LIBRARY_PATH
18873
shlibpath_overrides_runpath=no
18874
# This implies no fast_install, which is unacceptable.
18875
# Some rework will be needed to allow for fast_install
18876
# before this can be enabled.
18877
hardcode_into_libs=yes
18879
# Append ld.so.conf contents to the search path
18880
if test -f /etc/ld.so.conf; then
18881
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' ' '`
18882
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18885
# We used to test for /lib/ld.so.1 and disable shared libraries on
18886
# powerpc, because MkLinux only supported shared libraries with the
18887
# GNU dynamic linker. Since this was broken with cross compilers,
18888
# most powerpc-linux boxes support dynamic linking these days and
18889
# people can always --disable-shared, the test was removed, and we
18890
# assume the GNU/Linux dynamic linker is in use.
18891
dynamic_linker='GNU/Linux ld.so'
18898
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18899
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18900
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18901
dynamic_linker='NetBSD (a.out) ld.so'
18903
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18904
soname_spec='${libname}${release}${shared_ext}$major'
18905
dynamic_linker='NetBSD ld.elf_so'
18907
shlibpath_var=LD_LIBRARY_PATH
18908
shlibpath_overrides_runpath=yes
18909
hardcode_into_libs=yes
18914
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18915
shlibpath_var=LD_LIBRARY_PATH
18916
shlibpath_overrides_runpath=yes
18923
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18924
soname_spec='${libname}${release}${shared_ext}$major'
18925
shlibpath_var=LD_LIBRARY_PATH
18926
shlibpath_overrides_runpath=yes
18931
sys_lib_dlsearch_path_spec="/usr/lib"
18933
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18935
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18936
*) need_version=no ;;
18938
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18939
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18940
shlibpath_var=LD_LIBRARY_PATH
18941
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18943
openbsd2.[89] | openbsd2.[89].*)
18944
shlibpath_overrides_runpath=no
18947
shlibpath_overrides_runpath=yes
18951
shlibpath_overrides_runpath=yes
18956
libname_spec='$name'
18959
library_names_spec='$libname${shared_ext} $libname.a'
18960
dynamic_linker='OS/2 ld.exe'
18961
shlibpath_var=LIBPATH
18964
osf3* | osf4* | osf5*)
18968
soname_spec='${libname}${release}${shared_ext}$major'
18969
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18970
shlibpath_var=LD_LIBRARY_PATH
18971
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18972
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18983
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18984
soname_spec='${libname}${release}${shared_ext}$major'
18985
shlibpath_var=LD_LIBRARY_PATH
18986
shlibpath_overrides_runpath=yes
18987
hardcode_into_libs=yes
18988
# ldd complains unless libraries are executable
18989
postinstall_cmds='chmod +x $lib'
18994
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18995
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18996
shlibpath_var=LD_LIBRARY_PATH
18997
shlibpath_overrides_runpath=yes
18998
if test "$with_gnu_ld" = yes; then
19006
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19007
soname_spec='${libname}${release}${shared_ext}$major'
19008
shlibpath_var=LD_LIBRARY_PATH
19009
case $host_vendor in
19011
shlibpath_overrides_runpath=no
19013
export_dynamic_flag_spec='${wl}-Blargedynsym'
19014
runpath_var=LD_RUN_PATH
19022
shlibpath_overrides_runpath=no
19023
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19029
if test -d /usr/nec ;then
19031
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19032
soname_spec='$libname${shared_ext}.$major'
19033
shlibpath_var=LD_LIBRARY_PATH
19037
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19038
version_type=freebsd-elf
19041
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19042
soname_spec='${libname}${release}${shared_ext}$major'
19043
shlibpath_var=LD_LIBRARY_PATH
19044
hardcode_into_libs=yes
19045
if test "$with_gnu_ld" = yes; then
19046
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19047
shlibpath_overrides_runpath=no
19049
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19050
shlibpath_overrides_runpath=yes
19053
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19057
sys_lib_dlsearch_path_spec='/usr/lib'
19062
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19063
soname_spec='${libname}${release}${shared_ext}$major'
19064
shlibpath_var=LD_LIBRARY_PATH
19071
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19072
echo "${ECHO_T}$dynamic_linker" >&6; }
19073
test "$dynamic_linker" = no && can_build_shared=no
19075
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19076
echo $ECHO_N "(cached) $ECHO_C" >&6
19078
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19081
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19082
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19083
echo $ECHO_N "(cached) $ECHO_C" >&6
19085
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19088
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19090
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19091
if test "$GCC" = yes; then
19092
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19095
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19096
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19097
hardcode_action_GCJ=
19098
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19099
test -n "$runpath_var_GCJ" || \
19100
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19102
# We can hardcode non-existant directories.
19103
if test "$hardcode_direct_GCJ" != no &&
19104
# If the only mechanism to avoid hardcoding is shlibpath_var, we
19105
# have to relink, otherwise we might link with an installed library
19106
# when we should be linking with a yet-to-be-installed one
19107
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19108
test "$hardcode_minus_L_GCJ" != no; then
19109
# Linking always hardcodes the temporary library directory.
19110
hardcode_action_GCJ=relink
19112
# We can link without hardcoding, and we can hardcode nonexisting dirs.
19113
hardcode_action_GCJ=immediate
19116
# We cannot hardcode anything, or else we can only hardcode existing
19118
hardcode_action_GCJ=unsupported
19120
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19121
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19123
if test "$hardcode_action_GCJ" = relink; then
19124
# Fast installation is not supported
19125
enable_fast_install=no
19126
elif test "$shlibpath_overrides_runpath" = yes ||
19127
test "$enable_shared" = no; then
19128
# Fast installation is not necessary
19129
enable_fast_install=needless
19133
# The else clause should only fire when bootstrapping the
19134
# libtool distribution, otherwise you forgot to ship ltmain.sh
19135
# with your package, and you will get complaints that there are
19136
# no rules to generate ltmain.sh.
19137
if test -f "$ltmain"; then
19138
# See if we are running on zsh, and set the options which allow our commands through
19139
# without removal of \ escapes.
19140
if test -n "${ZSH_VERSION+set}" ; then
19141
setopt NO_GLOB_SUBST
19143
# Now quote all the things that may contain metacharacters while being
19144
# careful not to overquote the AC_SUBSTed values. We take copies of the
19145
# variables and quote the copies for generation of the libtool script.
19146
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19148
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19149
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19150
deplibs_check_method reload_flag reload_cmds need_locks \
19151
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19152
lt_cv_sys_global_symbol_to_c_name_address \
19153
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19154
old_postinstall_cmds old_postuninstall_cmds \
19158
lt_prog_compiler_wl_GCJ \
19159
lt_prog_compiler_pic_GCJ \
19160
lt_prog_compiler_static_GCJ \
19161
lt_prog_compiler_no_builtin_flag_GCJ \
19162
export_dynamic_flag_spec_GCJ \
19163
thread_safe_flag_spec_GCJ \
19164
whole_archive_flag_spec_GCJ \
19165
enable_shared_with_static_runtimes_GCJ \
19166
old_archive_cmds_GCJ \
19167
old_archive_from_new_cmds_GCJ \
19168
predep_objects_GCJ \
19169
postdep_objects_GCJ \
19172
compiler_lib_search_path_GCJ \
19173
compiler_lib_search_dirs_GCJ \
19175
archive_expsym_cmds_GCJ \
19176
postinstall_cmds_GCJ \
19177
postuninstall_cmds_GCJ \
19178
old_archive_from_expsyms_cmds_GCJ \
19179
allow_undefined_flag_GCJ \
19180
no_undefined_flag_GCJ \
19181
export_symbols_cmds_GCJ \
19182
hardcode_libdir_flag_spec_GCJ \
19183
hardcode_libdir_flag_spec_ld_GCJ \
19184
hardcode_libdir_separator_GCJ \
19185
hardcode_automatic_GCJ \
19187
module_expsym_cmds_GCJ \
19188
lt_cv_prog_compiler_c_o_GCJ \
19189
fix_srcfile_path_GCJ \
19190
exclude_expsyms_GCJ \
19191
include_expsyms_GCJ; do
19194
old_archive_cmds_GCJ | \
19195
old_archive_from_new_cmds_GCJ | \
19196
archive_cmds_GCJ | \
19197
archive_expsym_cmds_GCJ | \
19198
module_cmds_GCJ | \
19199
module_expsym_cmds_GCJ | \
19200
old_archive_from_expsyms_cmds_GCJ | \
19201
export_symbols_cmds_GCJ | \
19202
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19203
postinstall_cmds | postuninstall_cmds | \
19204
old_postinstall_cmds | old_postuninstall_cmds | \
19205
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19206
# Double-quote double-evaled strings.
19207
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19210
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19216
*'\$0 --fallback-echo"')
19217
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19223
cat <<__EOF__ >> "$cfgfile"
19224
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19226
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19228
# Shell to use when invoking shell scripts.
19231
# Whether or not to build shared libraries.
19232
build_libtool_libs=$enable_shared
19234
# Whether or not to build static libraries.
19235
build_old_libs=$enable_static
19237
# Whether or not to add -lc for building shared libraries.
19238
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19240
# Whether or not to disallow shared libs when runtime libs are static
19241
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19243
# Whether or not to optimize for fast installation.
19244
fast_install=$enable_fast_install
19247
host_alias=$host_alias
19251
# The build system.
19252
build_alias=$build_alias
19256
# An echo program that does not interpret backslashes.
19261
AR_FLAGS=$lt_AR_FLAGS
19266
# LTCC compiler flags.
19267
LTCFLAGS=$lt_LTCFLAGS
19269
# A language-specific compiler.
19270
CC=$lt_compiler_GCJ
19272
# Is the compiler the GNU C compiler?
19278
# The linker used to build libraries.
19281
# Whether we need hard or soft links.
19284
# A BSD-compatible nm program.
19287
# A symbol stripping program
19290
# Used to examine libraries when file_magic_cmd begins "file"
19291
MAGIC_CMD=$MAGIC_CMD
19293
# Used on cygwin: DLL creation program.
19296
# Used on cygwin: object dumper.
19299
# Used on cygwin: assembler.
19302
# The name of the directory that contains temporary libtool files.
19305
# How to create reloadable object files.
19306
reload_flag=$lt_reload_flag
19307
reload_cmds=$lt_reload_cmds
19309
# How to pass a linker flag through the compiler.
19310
wl=$lt_lt_prog_compiler_wl_GCJ
19312
# Object file suffix (normally "o").
19313
objext="$ac_objext"
19315
# Old archive suffix (normally "a").
19318
# Shared library suffix (normally ".so").
19319
shrext_cmds='$shrext_cmds'
19321
# Executable file suffix (normally "").
19324
# Additional compiler flags for building library objects.
19325
pic_flag=$lt_lt_prog_compiler_pic_GCJ
19328
# What is the maximum length of a command?
19329
max_cmd_len=$lt_cv_sys_max_cmd_len
19331
# Does compiler simultaneously support -c and -o options?
19332
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19334
# Must we lock files when doing compilation?
19335
need_locks=$lt_need_locks
19337
# Do we need the lib prefix for modules?
19338
need_lib_prefix=$need_lib_prefix
19340
# Do we need a version for libraries?
19341
need_version=$need_version
19343
# Whether dlopen is supported.
19344
dlopen_support=$enable_dlopen
19346
# Whether dlopen of programs is supported.
19347
dlopen_self=$enable_dlopen_self
19349
# Whether dlopen of statically linked programs is supported.
19350
dlopen_self_static=$enable_dlopen_self_static
19352
# Compiler flag to prevent dynamic linking.
19353
link_static_flag=$lt_lt_prog_compiler_static_GCJ
19355
# Compiler flag to turn off builtin functions.
19356
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19358
# Compiler flag to allow reflexive dlopens.
19359
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19361
# Compiler flag to generate shared objects directly from archives.
19362
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19364
# Compiler flag to generate thread-safe objects.
19365
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19367
# Library versioning type.
19368
version_type=$version_type
19370
# Format of library name prefix.
19371
libname_spec=$lt_libname_spec
19373
# List of archive names. First name is the real one, the rest are links.
19374
# The last name is the one that the linker finds with -lNAME.
19375
library_names_spec=$lt_library_names_spec
19377
# The coded name of the library, if different from the real name.
19378
soname_spec=$lt_soname_spec
19380
# Commands used to build and install an old-style archive.
19382
old_archive_cmds=$lt_old_archive_cmds_GCJ
19383
old_postinstall_cmds=$lt_old_postinstall_cmds
19384
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19386
# Create an old-style archive from a shared archive.
19387
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19389
# Create a temporary old-style archive to link instead of a shared archive.
19390
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19392
# Commands used to build and install a shared archive.
19393
archive_cmds=$lt_archive_cmds_GCJ
19394
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19395
postinstall_cmds=$lt_postinstall_cmds
19396
postuninstall_cmds=$lt_postuninstall_cmds
19398
# Commands used to build a loadable module (assumed same as above if empty)
19399
module_cmds=$lt_module_cmds_GCJ
19400
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19402
# Commands to strip libraries.
19403
old_striplib=$lt_old_striplib
19404
striplib=$lt_striplib
19406
# Dependencies to place before the objects being linked to create a
19408
predep_objects=$lt_predep_objects_GCJ
19410
# Dependencies to place after the objects being linked to create a
19412
postdep_objects=$lt_postdep_objects_GCJ
19414
# Dependencies to place before the objects being linked to create a
19416
predeps=$lt_predeps_GCJ
19418
# Dependencies to place after the objects being linked to create a
19420
postdeps=$lt_postdeps_GCJ
19422
# The directories searched by this compiler when creating a shared
19424
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19426
# The library search path used internally by the compiler when linking
19427
# a shared library.
19428
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19430
# Method to check whether dependent libraries are shared objects.
19431
deplibs_check_method=$lt_deplibs_check_method
19433
# Command to use when deplibs_check_method == file_magic.
19434
file_magic_cmd=$lt_file_magic_cmd
19436
# Flag that allows shared libraries with undefined symbols to be built.
19437
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19439
# Flag that forces no undefined symbols.
19440
no_undefined_flag=$lt_no_undefined_flag_GCJ
19442
# Commands used to finish a libtool library installation in a directory.
19443
finish_cmds=$lt_finish_cmds
19445
# Same as above, but a single script fragment to be evaled but not shown.
19446
finish_eval=$lt_finish_eval
19448
# Take the output of nm and produce a listing of raw symbols and C names.
19449
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19451
# Transform the output of nm in a proper C declaration
19452
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19454
# Transform the output of nm in a C name address pair
19455
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19457
# This is the shared library runtime path variable.
19458
runpath_var=$runpath_var
19460
# This is the shared library path variable.
19461
shlibpath_var=$shlibpath_var
19463
# Is shlibpath searched before the hard-coded library search path?
19464
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19466
# How to hardcode a shared library path into an executable.
19467
hardcode_action=$hardcode_action_GCJ
19469
# Whether we should hardcode library paths into libraries.
19470
hardcode_into_libs=$hardcode_into_libs
19472
# Flag to hardcode \$libdir into a binary during linking.
19473
# This must work even if \$libdir does not exist.
19474
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19476
# If ld is used when linking, flag to hardcode \$libdir into
19477
# a binary during linking. This must work even if \$libdir does
19479
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19481
# Whether we need a single -rpath flag with a separated argument.
19482
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19484
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19485
# resulting binary.
19486
hardcode_direct=$hardcode_direct_GCJ
19488
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19489
# resulting binary.
19490
hardcode_minus_L=$hardcode_minus_L_GCJ
19492
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19493
# the resulting binary.
19494
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19496
# Set to yes if building a shared library automatically hardcodes DIR into the library
19497
# and all subsequent libraries and executables linked against it.
19498
hardcode_automatic=$hardcode_automatic_GCJ
19500
# Variables whose values should be saved in libtool wrapper scripts and
19501
# restored at relink time.
19502
variables_saved_for_relink="$variables_saved_for_relink"
19504
# Whether libtool must link a program against all its dependency libraries.
19505
link_all_deplibs=$link_all_deplibs_GCJ
19507
# Compile-time system search path for libraries
19508
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19510
# Run-time system search path for libraries
19511
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19513
# Fix the shell variable \$srcfile for the compiler.
19514
fix_srcfile_path=$lt_fix_srcfile_path
19516
# Set to yes if exported symbols are required.
19517
always_export_symbols=$always_export_symbols_GCJ
19519
# The commands to list exported symbols.
19520
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19522
# The commands to extract the exported symbol list from a shared archive.
19523
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19525
# Symbols that should not be listed in the preloaded symbols.
19526
exclude_expsyms=$lt_exclude_expsyms_GCJ
19528
# Symbols that must always be exported.
19529
include_expsyms=$lt_include_expsyms_GCJ
19531
# ### END LIBTOOL TAG CONFIG: $tagname
19537
# If there is no Makefile yet, we rely on a make rule to execute
19538
# `config.status --recheck' to rerun these tests and create the
19539
# libtool script then.
19540
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19541
if test -f "$ltmain_in"; then
19542
test -f Makefile && make "$ltmain"
19548
ac_cpp='$CPP $CPPFLAGS'
19549
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19550
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19551
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19563
# Source file extension for RC test sources.
19566
# Object file extension for compiled RC test sources.
19570
# Code to be used in simple compile tests
19571
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19573
# Code to be used in simple link tests
19574
lt_simple_link_test_code="$lt_simple_compile_test_code"
19576
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19578
# If no C compiler was specified, use CC.
19581
# If no C compiler flags were specified, use CFLAGS.
19582
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19584
# Allow CC to be a program name with arguments.
19588
# save warnings/boilerplate of simple test code
19589
ac_outfile=conftest.$ac_objext
19590
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19591
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19592
_lt_compiler_boilerplate=`cat conftest.err`
19595
ac_outfile=conftest.$ac_objext
19596
echo "$lt_simple_link_test_code" >conftest.$ac_ext
19597
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19598
_lt_linker_boilerplate=`cat conftest.err`
19602
# Allow CC to be a program name with arguments.
19607
for cc_temp in $compiler""; do
19609
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19610
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19615
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19617
lt_cv_prog_compiler_c_o_RC=yes
19619
# The else clause should only fire when bootstrapping the
19620
# libtool distribution, otherwise you forgot to ship ltmain.sh
19621
# with your package, and you will get complaints that there are
19622
# no rules to generate ltmain.sh.
19623
if test -f "$ltmain"; then
19624
# See if we are running on zsh, and set the options which allow our commands through
19625
# without removal of \ escapes.
19626
if test -n "${ZSH_VERSION+set}" ; then
19627
setopt NO_GLOB_SUBST
19629
# Now quote all the things that may contain metacharacters while being
19630
# careful not to overquote the AC_SUBSTed values. We take copies of the
19631
# variables and quote the copies for generation of the libtool script.
19632
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19634
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19635
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19636
deplibs_check_method reload_flag reload_cmds need_locks \
19637
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19638
lt_cv_sys_global_symbol_to_c_name_address \
19639
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19640
old_postinstall_cmds old_postuninstall_cmds \
19644
lt_prog_compiler_wl_RC \
19645
lt_prog_compiler_pic_RC \
19646
lt_prog_compiler_static_RC \
19647
lt_prog_compiler_no_builtin_flag_RC \
19648
export_dynamic_flag_spec_RC \
19649
thread_safe_flag_spec_RC \
19650
whole_archive_flag_spec_RC \
19651
enable_shared_with_static_runtimes_RC \
19652
old_archive_cmds_RC \
19653
old_archive_from_new_cmds_RC \
19654
predep_objects_RC \
19655
postdep_objects_RC \
19658
compiler_lib_search_path_RC \
19659
compiler_lib_search_dirs_RC \
19661
archive_expsym_cmds_RC \
19662
postinstall_cmds_RC \
19663
postuninstall_cmds_RC \
19664
old_archive_from_expsyms_cmds_RC \
19665
allow_undefined_flag_RC \
19666
no_undefined_flag_RC \
19667
export_symbols_cmds_RC \
19668
hardcode_libdir_flag_spec_RC \
19669
hardcode_libdir_flag_spec_ld_RC \
19670
hardcode_libdir_separator_RC \
19671
hardcode_automatic_RC \
19673
module_expsym_cmds_RC \
19674
lt_cv_prog_compiler_c_o_RC \
19675
fix_srcfile_path_RC \
19676
exclude_expsyms_RC \
19677
include_expsyms_RC; do
19680
old_archive_cmds_RC | \
19681
old_archive_from_new_cmds_RC | \
19682
archive_cmds_RC | \
19683
archive_expsym_cmds_RC | \
19685
module_expsym_cmds_RC | \
19686
old_archive_from_expsyms_cmds_RC | \
19687
export_symbols_cmds_RC | \
19688
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19689
postinstall_cmds | postuninstall_cmds | \
19690
old_postinstall_cmds | old_postuninstall_cmds | \
19691
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19692
# Double-quote double-evaled strings.
19693
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19696
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19702
*'\$0 --fallback-echo"')
19703
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19709
cat <<__EOF__ >> "$cfgfile"
19710
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19712
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19714
# Shell to use when invoking shell scripts.
19717
# Whether or not to build shared libraries.
19718
build_libtool_libs=$enable_shared
19720
# Whether or not to build static libraries.
19721
build_old_libs=$enable_static
19723
# Whether or not to add -lc for building shared libraries.
19724
build_libtool_need_lc=$archive_cmds_need_lc_RC
19726
# Whether or not to disallow shared libs when runtime libs are static
19727
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19729
# Whether or not to optimize for fast installation.
19730
fast_install=$enable_fast_install
19733
host_alias=$host_alias
19737
# The build system.
19738
build_alias=$build_alias
19742
# An echo program that does not interpret backslashes.
19747
AR_FLAGS=$lt_AR_FLAGS
19752
# LTCC compiler flags.
19753
LTCFLAGS=$lt_LTCFLAGS
19755
# A language-specific compiler.
19758
# Is the compiler the GNU C compiler?
19764
# The linker used to build libraries.
19767
# Whether we need hard or soft links.
19770
# A BSD-compatible nm program.
19773
# A symbol stripping program
19776
# Used to examine libraries when file_magic_cmd begins "file"
19777
MAGIC_CMD=$MAGIC_CMD
19779
# Used on cygwin: DLL creation program.
19782
# Used on cygwin: object dumper.
19785
# Used on cygwin: assembler.
19788
# The name of the directory that contains temporary libtool files.
19791
# How to create reloadable object files.
19792
reload_flag=$lt_reload_flag
19793
reload_cmds=$lt_reload_cmds
19795
# How to pass a linker flag through the compiler.
19796
wl=$lt_lt_prog_compiler_wl_RC
19798
# Object file suffix (normally "o").
19799
objext="$ac_objext"
19801
# Old archive suffix (normally "a").
19804
# Shared library suffix (normally ".so").
19805
shrext_cmds='$shrext_cmds'
19807
# Executable file suffix (normally "").
19810
# Additional compiler flags for building library objects.
19811
pic_flag=$lt_lt_prog_compiler_pic_RC
19814
# What is the maximum length of a command?
19815
max_cmd_len=$lt_cv_sys_max_cmd_len
19817
# Does compiler simultaneously support -c and -o options?
19818
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19820
# Must we lock files when doing compilation?
19821
need_locks=$lt_need_locks
19823
# Do we need the lib prefix for modules?
19824
need_lib_prefix=$need_lib_prefix
19826
# Do we need a version for libraries?
19827
need_version=$need_version
19829
# Whether dlopen is supported.
19830
dlopen_support=$enable_dlopen
19832
# Whether dlopen of programs is supported.
19833
dlopen_self=$enable_dlopen_self
19835
# Whether dlopen of statically linked programs is supported.
19836
dlopen_self_static=$enable_dlopen_self_static
19838
# Compiler flag to prevent dynamic linking.
19839
link_static_flag=$lt_lt_prog_compiler_static_RC
19841
# Compiler flag to turn off builtin functions.
19842
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19844
# Compiler flag to allow reflexive dlopens.
19845
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19847
# Compiler flag to generate shared objects directly from archives.
19848
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19850
# Compiler flag to generate thread-safe objects.
19851
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19853
# Library versioning type.
19854
version_type=$version_type
19856
# Format of library name prefix.
19857
libname_spec=$lt_libname_spec
19859
# List of archive names. First name is the real one, the rest are links.
19860
# The last name is the one that the linker finds with -lNAME.
19861
library_names_spec=$lt_library_names_spec
19863
# The coded name of the library, if different from the real name.
19864
soname_spec=$lt_soname_spec
19866
# Commands used to build and install an old-style archive.
19868
old_archive_cmds=$lt_old_archive_cmds_RC
19869
old_postinstall_cmds=$lt_old_postinstall_cmds
19870
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19872
# Create an old-style archive from a shared archive.
19873
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19875
# Create a temporary old-style archive to link instead of a shared archive.
19876
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19878
# Commands used to build and install a shared archive.
19879
archive_cmds=$lt_archive_cmds_RC
19880
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19881
postinstall_cmds=$lt_postinstall_cmds
19882
postuninstall_cmds=$lt_postuninstall_cmds
19884
# Commands used to build a loadable module (assumed same as above if empty)
19885
module_cmds=$lt_module_cmds_RC
19886
module_expsym_cmds=$lt_module_expsym_cmds_RC
19888
# Commands to strip libraries.
19889
old_striplib=$lt_old_striplib
19890
striplib=$lt_striplib
19892
# Dependencies to place before the objects being linked to create a
19894
predep_objects=$lt_predep_objects_RC
19896
# Dependencies to place after the objects being linked to create a
19898
postdep_objects=$lt_postdep_objects_RC
19900
# Dependencies to place before the objects being linked to create a
19902
predeps=$lt_predeps_RC
19904
# Dependencies to place after the objects being linked to create a
19906
postdeps=$lt_postdeps_RC
19908
# The directories searched by this compiler when creating a shared
19910
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19912
# The library search path used internally by the compiler when linking
19913
# a shared library.
19914
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19916
# Method to check whether dependent libraries are shared objects.
19917
deplibs_check_method=$lt_deplibs_check_method
19919
# Command to use when deplibs_check_method == file_magic.
19920
file_magic_cmd=$lt_file_magic_cmd
19922
# Flag that allows shared libraries with undefined symbols to be built.
19923
allow_undefined_flag=$lt_allow_undefined_flag_RC
19925
# Flag that forces no undefined symbols.
19926
no_undefined_flag=$lt_no_undefined_flag_RC
19928
# Commands used to finish a libtool library installation in a directory.
19929
finish_cmds=$lt_finish_cmds
19931
# Same as above, but a single script fragment to be evaled but not shown.
19932
finish_eval=$lt_finish_eval
19934
# Take the output of nm and produce a listing of raw symbols and C names.
19935
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19937
# Transform the output of nm in a proper C declaration
19938
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19940
# Transform the output of nm in a C name address pair
19941
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19943
# This is the shared library runtime path variable.
19944
runpath_var=$runpath_var
19946
# This is the shared library path variable.
19947
shlibpath_var=$shlibpath_var
19949
# Is shlibpath searched before the hard-coded library search path?
19950
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19952
# How to hardcode a shared library path into an executable.
19953
hardcode_action=$hardcode_action_RC
19955
# Whether we should hardcode library paths into libraries.
19956
hardcode_into_libs=$hardcode_into_libs
19958
# Flag to hardcode \$libdir into a binary during linking.
19959
# This must work even if \$libdir does not exist.
19960
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19962
# If ld is used when linking, flag to hardcode \$libdir into
19963
# a binary during linking. This must work even if \$libdir does
19965
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19967
# Whether we need a single -rpath flag with a separated argument.
19968
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19970
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19971
# resulting binary.
19972
hardcode_direct=$hardcode_direct_RC
19974
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19975
# resulting binary.
19976
hardcode_minus_L=$hardcode_minus_L_RC
19978
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19979
# the resulting binary.
19980
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19982
# Set to yes if building a shared library automatically hardcodes DIR into the library
19983
# and all subsequent libraries and executables linked against it.
19984
hardcode_automatic=$hardcode_automatic_RC
19986
# Variables whose values should be saved in libtool wrapper scripts and
19987
# restored at relink time.
19988
variables_saved_for_relink="$variables_saved_for_relink"
19990
# Whether libtool must link a program against all its dependency libraries.
19991
link_all_deplibs=$link_all_deplibs_RC
19993
# Compile-time system search path for libraries
19994
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19996
# Run-time system search path for libraries
19997
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19999
# Fix the shell variable \$srcfile for the compiler.
20000
fix_srcfile_path=$lt_fix_srcfile_path
20002
# Set to yes if exported symbols are required.
20003
always_export_symbols=$always_export_symbols_RC
20005
# The commands to list exported symbols.
20006
export_symbols_cmds=$lt_export_symbols_cmds_RC
20008
# The commands to extract the exported symbol list from a shared archive.
20009
extract_expsyms_cmds=$lt_extract_expsyms_cmds
20011
# Symbols that should not be listed in the preloaded symbols.
20012
exclude_expsyms=$lt_exclude_expsyms_RC
20014
# Symbols that must always be exported.
20015
include_expsyms=$lt_include_expsyms_RC
20017
# ### END LIBTOOL TAG CONFIG: $tagname
20023
# If there is no Makefile yet, we rely on a make rule to execute
20024
# `config.status --recheck' to rerun these tests and create the
20025
# libtool script then.
20026
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20027
if test -f "$ltmain_in"; then
20028
test -f Makefile && make "$ltmain"
20034
ac_cpp='$CPP $CPPFLAGS'
20035
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20036
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20037
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20044
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20045
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20046
{ (exit 1); exit 1; }; }
20050
# Append the new tag name to the list of available tags.
20051
if test -n "$tagname" ; then
20052
available_tags="$available_tags $tagname"
20058
# Now substitute the updated list of available tags.
20059
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20060
mv "${ofile}T" "$ofile"
20064
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20065
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20066
{ (exit 1); exit 1; }; }
20072
# This can be used to rebuild libtool when needed
20073
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20075
# Always use our own libtool.
20076
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20078
# Prevent multiple expansion
11328
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11329
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11330
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11331
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11332
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11333
{ $as_echo "$as_me:$LINENO: result: yes" >&5
11334
$as_echo "yes" >&6; }
11336
# FIXME - insert some real tests, host_os isn't really good enough
11339
if test -n "$STRIP" ; then
11340
striplib="$STRIP -x"
11341
old_striplib="$STRIP -S"
11342
{ $as_echo "$as_me:$LINENO: result: yes" >&5
11343
$as_echo "yes" >&6; }
11345
{ $as_echo "$as_me:$LINENO: result: no" >&5
11346
$as_echo "no" >&6; }
11350
{ $as_echo "$as_me:$LINENO: result: no" >&5
11351
$as_echo "no" >&6; }
11367
# Report which library types will actually be built
11368
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11369
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11370
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11371
$as_echo "$can_build_shared" >&6; }
11373
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11374
$as_echo_n "checking whether to build shared libraries... " >&6; }
11375
test "$can_build_shared" = "no" && enable_shared=no
11377
# On AIX, shared libraries and static libraries use the same namespace, and
11378
# are all built from PIC.
11381
test "$enable_shared" = yes && enable_static=no
11382
if test -n "$RANLIB"; then
11383
archive_cmds="$archive_cmds~\$RANLIB \$lib"
11384
postinstall_cmds='$RANLIB $lib'
11389
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11390
test "$enable_shared" = yes && enable_static=no
11394
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11395
$as_echo "$enable_shared" >&6; }
11397
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11398
$as_echo_n "checking whether to build static libraries... " >&6; }
11399
# Make sure either enable_shared or enable_static is yes.
11400
test "$enable_shared" = yes || enable_static=yes
11401
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11402
$as_echo "$enable_static" >&6; }
11409
ac_cpp='$CPP $CPPFLAGS'
11410
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11411
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11412
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11428
ac_config_commands="$ac_config_commands libtool"
11433
# Only expand once:
20100
11437
if test "$ac_cv_prog_gnu_ld" = "yes" ; then
20102
11439
cat >>confdefs.h <<\_ACEOF
20103
#define HAVE_GNU_LD
11440
#define HAVE_GNU_LD /**/
20108
{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
20109
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
11445
{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11446
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
20110
11447
# Check whether --enable-maintainer-mode was given.
20111
11448
if test "${enable_maintainer_mode+set}" = set; then
20112
11449
enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval