11743
# Report which library types will actually be built
11744
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11745
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11746
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
11747
echo "${ECHO_T}$can_build_shared" >&6; }
11749
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11750
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11751
test "$can_build_shared" = "no" && enable_shared=no
11753
# On AIX, shared libraries and static libraries use the same namespace, and
11754
# are all built from PIC.
11757
test "$enable_shared" = yes && enable_static=no
11758
if test -n "$RANLIB"; then
11759
archive_cmds="$archive_cmds~\$RANLIB \$lib"
11760
postinstall_cmds='$RANLIB $lib'
11765
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11766
test "$enable_shared" = yes && enable_static=no
11770
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
11771
echo "${ECHO_T}$enable_shared" >&6; }
11773
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11774
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11775
# Make sure either enable_shared or enable_static is yes.
11776
test "$enable_shared" = yes || enable_static=yes
11777
{ echo "$as_me:$LINENO: result: $enable_static" >&5
11778
echo "${ECHO_T}$enable_static" >&6; }
11780
# The else clause should only fire when bootstrapping the
11781
# libtool distribution, otherwise you forgot to ship ltmain.sh
11782
# with your package, and you will get complaints that there are
11783
# no rules to generate ltmain.sh.
11784
if test -f "$ltmain"; then
11785
# See if we are running on zsh, and set the options which allow our commands through
11786
# without removal of \ escapes.
11787
if test -n "${ZSH_VERSION+set}" ; then
11788
setopt NO_GLOB_SUBST
11790
# Now quote all the things that may contain metacharacters while being
11791
# careful not to overquote the AC_SUBSTed values. We take copies of the
11792
# variables and quote the copies for generation of the libtool script.
11793
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11795
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11796
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11797
deplibs_check_method reload_flag reload_cmds need_locks \
11798
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11799
lt_cv_sys_global_symbol_to_c_name_address \
11800
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11801
old_postinstall_cmds old_postuninstall_cmds \
11805
lt_prog_compiler_wl \
11806
lt_prog_compiler_pic \
11807
lt_prog_compiler_static \
11808
lt_prog_compiler_no_builtin_flag \
11809
export_dynamic_flag_spec \
11810
thread_safe_flag_spec \
11811
whole_archive_flag_spec \
11812
enable_shared_with_static_runtimes \
11814
old_archive_from_new_cmds \
11819
compiler_lib_search_path \
11820
compiler_lib_search_dirs \
11822
archive_expsym_cmds \
11824
postuninstall_cmds \
11825
old_archive_from_expsyms_cmds \
11826
allow_undefined_flag \
11827
no_undefined_flag \
11828
export_symbols_cmds \
11829
hardcode_libdir_flag_spec \
11830
hardcode_libdir_flag_spec_ld \
11831
hardcode_libdir_separator \
11832
hardcode_automatic \
11834
module_expsym_cmds \
11835
lt_cv_prog_compiler_c_o \
11838
include_expsyms; do
11841
old_archive_cmds | \
11842
old_archive_from_new_cmds | \
11844
archive_expsym_cmds | \
11846
module_expsym_cmds | \
11847
old_archive_from_expsyms_cmds | \
11848
export_symbols_cmds | \
11849
extract_expsyms_cmds | reload_cmds | finish_cmds | \
11850
postinstall_cmds | postuninstall_cmds | \
11851
old_postinstall_cmds | old_postuninstall_cmds | \
11852
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11853
# Double-quote double-evaled strings.
11854
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11857
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11863
*'\$0 --fallback-echo"')
11864
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11868
cfgfile="${ofile}T"
11869
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11871
{ echo "$as_me:$LINENO: creating $ofile" >&5
11872
echo "$as_me: creating $ofile" >&6;}
11874
cat <<__EOF__ >> "$cfgfile"
11877
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11878
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11879
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
11881
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
11882
# Free Software Foundation, Inc.
11884
# This file is part of GNU Libtool:
11885
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11887
# This program is free software; you can redistribute it and/or modify
11888
# it under the terms of the GNU General Public License as published by
11889
# the Free Software Foundation; either version 2 of the License, or
11890
# (at your option) any later version.
11892
# This program is distributed in the hope that it will be useful, but
11893
# WITHOUT ANY WARRANTY; without even the implied warranty of
11894
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11895
# General Public License for more details.
11897
# You should have received a copy of the GNU General Public License
11898
# along with this program; if not, write to the Free Software
11899
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11901
# As a special exception to the GNU General Public License, if you
11902
# distribute this file as part of a program that contains a
11903
# configuration script generated by Autoconf, you may include it under
11904
# the same distribution terms that you use for the rest of that program.
11906
# A sed program that does not truncate output.
11909
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
11910
Xsed="$SED -e 1s/^X//"
11912
# The HP-UX ksh and POSIX shell print the target directory to stdout
11913
# if CDPATH is set.
11914
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11916
# The names of the tagged configurations supported by this script.
11919
# ### BEGIN LIBTOOL CONFIG
11921
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11923
# Shell to use when invoking shell scripts.
11926
# Whether or not to build shared libraries.
11927
build_libtool_libs=$enable_shared
11929
# Whether or not to build static libraries.
11930
build_old_libs=$enable_static
11932
# Whether or not to add -lc for building shared libraries.
11933
build_libtool_need_lc=$archive_cmds_need_lc
11935
# Whether or not to disallow shared libs when runtime libs are static
11936
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11938
# Whether or not to optimize for fast installation.
11939
fast_install=$enable_fast_install
11942
host_alias=$host_alias
11946
# The build system.
11947
build_alias=$build_alias
11951
# An echo program that does not interpret backslashes.
11956
AR_FLAGS=$lt_AR_FLAGS
11961
# LTCC compiler flags.
11962
LTCFLAGS=$lt_LTCFLAGS
11964
# A language-specific compiler.
11967
# Is the compiler the GNU C compiler?
11973
# The linker used to build libraries.
11976
# Whether we need hard or soft links.
11979
# A BSD-compatible nm program.
11982
# A symbol stripping program
11985
# Used to examine libraries when file_magic_cmd begins "file"
11986
MAGIC_CMD=$MAGIC_CMD
11988
# Used on cygwin: DLL creation program.
11991
# Used on cygwin: object dumper.
11994
# Used on cygwin: assembler.
11997
# The name of the directory that contains temporary libtool files.
12000
# How to create reloadable object files.
12001
reload_flag=$lt_reload_flag
12002
reload_cmds=$lt_reload_cmds
12004
# How to pass a linker flag through the compiler.
12005
wl=$lt_lt_prog_compiler_wl
12007
# Object file suffix (normally "o").
12008
objext="$ac_objext"
12010
# Old archive suffix (normally "a").
12013
# Shared library suffix (normally ".so").
12014
shrext_cmds='$shrext_cmds'
12016
# Executable file suffix (normally "").
12019
# Additional compiler flags for building library objects.
12020
pic_flag=$lt_lt_prog_compiler_pic
12023
# What is the maximum length of a command?
12024
max_cmd_len=$lt_cv_sys_max_cmd_len
12026
# Does compiler simultaneously support -c and -o options?
12027
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12029
# Must we lock files when doing compilation?
12030
need_locks=$lt_need_locks
12032
# Do we need the lib prefix for modules?
12033
need_lib_prefix=$need_lib_prefix
12035
# Do we need a version for libraries?
12036
need_version=$need_version
12038
# Whether dlopen is supported.
12039
dlopen_support=$enable_dlopen
12041
# Whether dlopen of programs is supported.
12042
dlopen_self=$enable_dlopen_self
12044
# Whether dlopen of statically linked programs is supported.
12045
dlopen_self_static=$enable_dlopen_self_static
12047
# Compiler flag to prevent dynamic linking.
12048
link_static_flag=$lt_lt_prog_compiler_static
12050
# Compiler flag to turn off builtin functions.
12051
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12053
# Compiler flag to allow reflexive dlopens.
12054
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12056
# Compiler flag to generate shared objects directly from archives.
12057
whole_archive_flag_spec=$lt_whole_archive_flag_spec
12059
# Compiler flag to generate thread-safe objects.
12060
thread_safe_flag_spec=$lt_thread_safe_flag_spec
12062
# Library versioning type.
12063
version_type=$version_type
12065
# Format of library name prefix.
12066
libname_spec=$lt_libname_spec
12068
# List of archive names. First name is the real one, the rest are links.
12069
# The last name is the one that the linker finds with -lNAME.
12070
library_names_spec=$lt_library_names_spec
12072
# The coded name of the library, if different from the real name.
12073
soname_spec=$lt_soname_spec
12075
# Commands used to build and install an old-style archive.
12077
old_archive_cmds=$lt_old_archive_cmds
12078
old_postinstall_cmds=$lt_old_postinstall_cmds
12079
old_postuninstall_cmds=$lt_old_postuninstall_cmds
12081
# Create an old-style archive from a shared archive.
12082
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12084
# Create a temporary old-style archive to link instead of a shared archive.
12085
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12087
# Commands used to build and install a shared archive.
12088
archive_cmds=$lt_archive_cmds
12089
archive_expsym_cmds=$lt_archive_expsym_cmds
12090
postinstall_cmds=$lt_postinstall_cmds
12091
postuninstall_cmds=$lt_postuninstall_cmds
12093
# Commands used to build a loadable module (assumed same as above if empty)
12094
module_cmds=$lt_module_cmds
12095
module_expsym_cmds=$lt_module_expsym_cmds
12097
# Commands to strip libraries.
12098
old_striplib=$lt_old_striplib
12099
striplib=$lt_striplib
12101
# Dependencies to place before the objects being linked to create a
12103
predep_objects=$lt_predep_objects
12105
# Dependencies to place after the objects being linked to create a
12107
postdep_objects=$lt_postdep_objects
12109
# Dependencies to place before the objects being linked to create a
12111
predeps=$lt_predeps
12113
# Dependencies to place after the objects being linked to create a
12115
postdeps=$lt_postdeps
12117
# The directories searched by this compiler when creating a shared
12119
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
12121
# The library search path used internally by the compiler when linking
12122
# a shared library.
12123
compiler_lib_search_path=$lt_compiler_lib_search_path
12125
# Method to check whether dependent libraries are shared objects.
12126
deplibs_check_method=$lt_deplibs_check_method
12128
# Command to use when deplibs_check_method == file_magic.
12129
file_magic_cmd=$lt_file_magic_cmd
12131
# Flag that allows shared libraries with undefined symbols to be built.
12132
allow_undefined_flag=$lt_allow_undefined_flag
12134
# Flag that forces no undefined symbols.
12135
no_undefined_flag=$lt_no_undefined_flag
12137
# Commands used to finish a libtool library installation in a directory.
12138
finish_cmds=$lt_finish_cmds
12140
# Same as above, but a single script fragment to be evaled but not shown.
12141
finish_eval=$lt_finish_eval
12143
# Take the output of nm and produce a listing of raw symbols and C names.
12144
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12146
# Transform the output of nm in a proper C declaration
12147
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12149
# Transform the output of nm in a C name address pair
12150
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12152
# This is the shared library runtime path variable.
12153
runpath_var=$runpath_var
12155
# This is the shared library path variable.
12156
shlibpath_var=$shlibpath_var
12158
# Is shlibpath searched before the hard-coded library search path?
12159
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12161
# How to hardcode a shared library path into an executable.
12162
hardcode_action=$hardcode_action
12164
# Whether we should hardcode library paths into libraries.
12165
hardcode_into_libs=$hardcode_into_libs
12167
# Flag to hardcode \$libdir into a binary during linking.
12168
# This must work even if \$libdir does not exist.
12169
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12171
# If ld is used when linking, flag to hardcode \$libdir into
12172
# a binary during linking. This must work even if \$libdir does
12174
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12176
# Whether we need a single -rpath flag with a separated argument.
12177
hardcode_libdir_separator=$lt_hardcode_libdir_separator
12179
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12180
# resulting binary.
12181
hardcode_direct=$hardcode_direct
12183
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12184
# resulting binary.
12185
hardcode_minus_L=$hardcode_minus_L
12187
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12188
# the resulting binary.
12189
hardcode_shlibpath_var=$hardcode_shlibpath_var
12191
# Set to yes if building a shared library automatically hardcodes DIR into the library
12192
# and all subsequent libraries and executables linked against it.
12193
hardcode_automatic=$hardcode_automatic
12195
# Variables whose values should be saved in libtool wrapper scripts and
12196
# restored at relink time.
12197
variables_saved_for_relink="$variables_saved_for_relink"
12199
# Whether libtool must link a program against all its dependency libraries.
12200
link_all_deplibs=$link_all_deplibs
12202
# Compile-time system search path for libraries
12203
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12205
# Run-time system search path for libraries
12206
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12208
# Fix the shell variable \$srcfile for the compiler.
12209
fix_srcfile_path=$lt_fix_srcfile_path
12211
# Set to yes if exported symbols are required.
12212
always_export_symbols=$always_export_symbols
12214
# The commands to list exported symbols.
12215
export_symbols_cmds=$lt_export_symbols_cmds
12217
# The commands to extract the exported symbol list from a shared archive.
12218
extract_expsyms_cmds=$lt_extract_expsyms_cmds
12220
# Symbols that should not be listed in the preloaded symbols.
12221
exclude_expsyms=$lt_exclude_expsyms
12223
# Symbols that must always be exported.
12224
include_expsyms=$lt_include_expsyms
12226
# ### END LIBTOOL CONFIG
12233
cat <<\EOF >> "$cfgfile"
12235
# AIX sometimes has problems with the GCC collect2 program. For some
12236
# reason, if we set the COLLECT_NAMES environment variable, the problems
12237
# vanish in a puff of smoke.
12238
if test "X${COLLECT_NAMES+set}" != Xset; then
12240
export COLLECT_NAMES
12246
# We use sed instead of cat because bash on DJGPP gets confused if
12247
# if finds mixed CR/LF and LF-only lines. Since sed operates in
12248
# text mode, it properly converts lines to CR/LF. This bash problem
12249
# is reportedly fixed, but why not run on old versions too?
12250
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12252
mv -f "$cfgfile" "$ofile" || \
12253
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12257
# If there is no Makefile yet, we rely on a make rule to execute
12258
# `config.status --recheck' to rerun these tests and create the
12259
# libtool script then.
12260
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12261
if test -f "$ltmain_in"; then
12262
test -f Makefile && make "$ltmain"
12268
ac_cpp='$CPP $CPPFLAGS'
12269
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12270
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12271
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12276
# Check whether --with-tags was given.
12277
if test "${with_tags+set}" = set; then
12278
withval=$with_tags; tagnames="$withval"
12282
if test -f "$ltmain" && test -n "$tagnames"; then
12283
if test ! -f "${ofile}"; then
12284
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12285
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12288
if test -z "$LTCC"; then
12289
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12290
if test -z "$LTCC"; then
12291
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12292
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12294
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12295
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12298
if test -z "$LTCFLAGS"; then
12299
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12302
# Extract list of available tagged configurations in $ofile.
12303
# Note that this assumes the entire list is on one line.
12304
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12306
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12307
for tagname in $tagnames; do
12309
# Check whether tagname contains only valid characters
12310
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12312
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12313
echo "$as_me: error: invalid tag name: $tagname" >&2;}
12314
{ (exit 1); exit 1; }; }
12318
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12320
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12321
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12322
{ (exit 1); exit 1; }; }
12325
# Update the list of available tags.
12326
if test -n "$tagname"; then
12327
echo appending configuration tag \"$tagname\" to $ofile
12331
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12332
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12333
(test "X$CXX" != "Xg++"))) ; then
12335
ac_cpp='$CXXCPP $CPPFLAGS'
12336
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12337
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12338
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12343
archive_cmds_need_lc_CXX=no
12344
allow_undefined_flag_CXX=
12345
always_export_symbols_CXX=no
12346
archive_expsym_cmds_CXX=
12347
export_dynamic_flag_spec_CXX=
12348
hardcode_direct_CXX=no
12349
hardcode_libdir_flag_spec_CXX=
12350
hardcode_libdir_flag_spec_ld_CXX=
12351
hardcode_libdir_separator_CXX=
12352
hardcode_minus_L_CXX=no
12353
hardcode_shlibpath_var_CXX=unsupported
12354
hardcode_automatic_CXX=no
12356
module_expsym_cmds_CXX=
12357
link_all_deplibs_CXX=unknown
12358
old_archive_cmds_CXX=$old_archive_cmds
12359
no_undefined_flag_CXX=
12360
whole_archive_flag_spec_CXX=
12361
enable_shared_with_static_runtimes_CXX=no
12363
# Dependencies to place before and after the object being linked:
12364
predep_objects_CXX=
12365
postdep_objects_CXX=
12368
compiler_lib_search_path_CXX=
12369
compiler_lib_search_dirs_CXX=
12371
# Source file extension for C++ test sources.
12374
# Object file extension for compiled C++ test sources.
12378
# Code to be used in simple compile tests
12379
lt_simple_compile_test_code="int some_variable = 0;"
12381
# Code to be used in simple link tests
12382
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12384
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12386
# If no C compiler was specified, use CC.
12389
# If no C compiler flags were specified, use CFLAGS.
12390
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12392
# Allow CC to be a program name with arguments.
12396
# save warnings/boilerplate of simple test code
12397
ac_outfile=conftest.$ac_objext
12398
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12399
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12400
_lt_compiler_boilerplate=`cat conftest.err`
12403
ac_outfile=conftest.$ac_objext
12404
echo "$lt_simple_link_test_code" >conftest.$ac_ext
12405
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12406
_lt_linker_boilerplate=`cat conftest.err`
12410
# Allow CC to be a program name with arguments.
12415
lt_save_with_gnu_ld=$with_gnu_ld
12416
lt_save_path_LD=$lt_cv_path_LD
12417
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12418
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12420
$as_unset lt_cv_prog_gnu_ld
12422
if test -n "${lt_cv_path_LDCXX+set}"; then
12423
lt_cv_path_LD=$lt_cv_path_LDCXX
12425
$as_unset lt_cv_path_LD
12427
test -z "${LDCXX+set}" || LD=$LDCXX
12431
for cc_temp in $compiler""; do
12433
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12434
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12439
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12442
# We don't want -fno-exception wen compiling C++ code, so set the
12443
# no_builtin_flag separately
12444
if test "$GXX" = yes; then
12445
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12447
lt_prog_compiler_no_builtin_flag_CXX=
12450
if test "$GXX" = yes; then
12451
# Set up default GNU C++ configuration
12454
# Check whether --with-gnu-ld was given.
12455
if test "${with_gnu_ld+set}" = set; then
12456
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12462
if test "$GCC" = yes; then
12463
# Check if gcc -print-prog-name=ld gives a path.
12464
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12465
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12468
# gcc leaves a trailing carriage return which upsets mingw
12469
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12471
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12474
# Accept absolute paths.
12476
re_direlt='/[^/][^/]*/\.\./'
12477
# Canonicalize the pathname of ld
12478
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12479
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12480
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12482
test -z "$LD" && LD="$ac_prog"
12485
# If it fails, then pretend we aren't using GCC.
12489
# If it is relative, then search for the first ld in PATH.
12490
with_gnu_ld=unknown
12493
elif test "$with_gnu_ld" = yes; then
12494
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
12495
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12497
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12498
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12500
if test "${lt_cv_path_LD+set}" = set; then
12501
echo $ECHO_N "(cached) $ECHO_C" >&6
12503
if test -z "$LD"; then
12504
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12505
for ac_dir in $PATH; do
12507
test -z "$ac_dir" && ac_dir=.
12508
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12509
lt_cv_path_LD="$ac_dir/$ac_prog"
12510
# Check to see if the program is GNU ld. I'd rather use --version,
12511
# but apparently some variants of GNU ld only accept -v.
12512
# Break only if it was the GNU/non-GNU ld that we prefer.
12513
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12514
*GNU* | *'with BFD'*)
12515
test "$with_gnu_ld" != no && break
12518
test "$with_gnu_ld" != yes && break
12525
lt_cv_path_LD="$LD" # Let the user override the test with a path.
12529
LD="$lt_cv_path_LD"
12530
if test -n "$LD"; then
12531
{ echo "$as_me:$LINENO: result: $LD" >&5
12532
echo "${ECHO_T}$LD" >&6; }
12534
{ echo "$as_me:$LINENO: result: no" >&5
12535
echo "${ECHO_T}no" >&6; }
12537
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12538
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12539
{ (exit 1); exit 1; }; }
12540
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12541
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12542
if test "${lt_cv_prog_gnu_ld+set}" = set; then
12543
echo $ECHO_N "(cached) $ECHO_C" >&6
12545
# I'd rather use --version here, but apparently some GNU lds only accept -v.
12546
case `$LD -v 2>&1 </dev/null` in
12547
*GNU* | *'with BFD'*)
12548
lt_cv_prog_gnu_ld=yes
12551
lt_cv_prog_gnu_ld=no
12555
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12556
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12557
with_gnu_ld=$lt_cv_prog_gnu_ld
12561
# Check if GNU C++ uses GNU ld as the underlying linker, since the
12562
# archiving commands below assume that GNU ld is being used.
12563
if test "$with_gnu_ld" = yes; then
12564
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12565
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'
12567
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12568
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12570
# If archive_cmds runs LD, not CC, wlarc should be empty
12571
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12572
# investigate it a little bit more. (MM)
12575
# ancient GNU ld didn't support --whole-archive et. al.
12576
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12577
grep 'no-whole-archive' > /dev/null; then
12578
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12580
whole_archive_flag_spec_CXX=
12586
# A generic and very simple default shared library creation
12587
# command for GNU C++ for the case where it uses the native
12588
# linker, instead of GNU ld. If possible, this setting should
12589
# overridden to take advantage of the native linker features on
12590
# the platform it is being used on.
12591
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12594
# Commands to make compiler produce verbose output that lists
12595
# what "hidden" libraries, object files and flags are used when
12596
# linking a shared library.
12597
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12605
# PORTME: fill in a description of your system's C++ link characteristics
12606
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12607
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12611
# FIXME: insert proper C++ library support
12615
if test "$host_cpu" = ia64; then
12616
# On IA64, the linker does run time linking by default, so we don't
12617
# have to do anything special.
12618
aix_use_runtimelinking=no
12619
exp_sym_flag='-Bexport'
12622
aix_use_runtimelinking=no
12624
# Test if we are trying to use run time linking or normal
12625
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
12626
# need to do runtime linking.
12627
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12628
for ld_flag in $LDFLAGS; do
12631
aix_use_runtimelinking=yes
12639
exp_sym_flag='-bexport'
12640
no_entry_flag='-bnoentry'
12643
# When large executables or shared objects are built, AIX ld can
12644
# have problems creating the table of contents. If linking a library
12645
# or program results in "error TOC overflow" add -mminimal-toc to
12646
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12647
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12649
archive_cmds_CXX=''
12650
hardcode_direct_CXX=yes
12651
hardcode_libdir_separator_CXX=':'
12652
link_all_deplibs_CXX=yes
12654
if test "$GXX" = yes; then
12655
case $host_os in aix4.[012]|aix4.[012].*)
12656
# We only want to do this on AIX 4.2 and lower, the check
12657
# below for broken collect2 doesn't work under 4.3+
12658
collect2name=`${CC} -print-prog-name=collect2`
12659
if test -f "$collect2name" && \
12660
strings "$collect2name" | grep resolve_lib_name >/dev/null
12662
# We have reworked collect2
12665
# We have old collect2
12666
hardcode_direct_CXX=unsupported
12667
# It fails to find uninstalled libraries when the uninstalled
12668
# path is not listed in the libpath. Setting hardcode_minus_L
12669
# to unsupported forces relinking
12670
hardcode_minus_L_CXX=yes
12671
hardcode_libdir_flag_spec_CXX='-L$libdir'
12672
hardcode_libdir_separator_CXX=
12676
shared_flag='-shared'
12677
if test "$aix_use_runtimelinking" = yes; then
12678
shared_flag="$shared_flag "'${wl}-G'
12682
if test "$host_cpu" = ia64; then
12683
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12684
# chokes on -Wl,-G. The following line is correct:
12687
if test "$aix_use_runtimelinking" = yes; then
12688
shared_flag='${wl}-G'
12690
shared_flag='${wl}-bM:SRE'
12695
# It seems that -bexpall does not export symbols beginning with
12696
# underscore (_), so it is better to generate a list of symbols to export.
12697
always_export_symbols_CXX=yes
12698
if test "$aix_use_runtimelinking" = yes; then
12699
# Warning - without using the other runtime loading flags (-brtl),
12700
# -berok will link without error, but may produce a broken library.
12701
allow_undefined_flag_CXX='-berok'
12702
# Determine the default libpath from the value encoded in an empty executable.
12703
cat >conftest.$ac_ext <<_ACEOF
12706
cat confdefs.h >>conftest.$ac_ext
12707
cat >>conftest.$ac_ext <<_ACEOF
12708
/* end confdefs.h. */
12718
rm -f conftest.$ac_objext conftest$ac_exeext
12719
if { (ac_try="$ac_link"
12720
case "(($ac_try" in
12721
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12722
*) ac_try_echo=$ac_try;;
12724
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12725
(eval "$ac_link") 2>conftest.er1
12727
grep -v '^ *+' conftest.er1 >conftest.err
12729
cat conftest.err >&5
12730
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731
(exit $ac_status); } && {
12732
test -z "$ac_cxx_werror_flag" ||
12733
test ! -s conftest.err
12734
} && test -s conftest$ac_exeext &&
12735
$as_test_x conftest$ac_exeext; then
12737
lt_aix_libpath_sed='
12738
/Import File Strings/,/^$/ {
12744
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12745
# Check for a 64-bit object if we didn't find anything.
12746
if test -z "$aix_libpath"; then
12747
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12750
echo "$as_me: failed program was:" >&5
12751
sed 's/^/| /' conftest.$ac_ext >&5
12756
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12757
conftest$ac_exeext conftest.$ac_ext
12758
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12760
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12762
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"
12764
if test "$host_cpu" = ia64; then
12765
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12766
allow_undefined_flag_CXX="-z nodefs"
12767
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"
12769
# Determine the default libpath from the value encoded in an empty executable.
12770
cat >conftest.$ac_ext <<_ACEOF
12773
cat confdefs.h >>conftest.$ac_ext
12774
cat >>conftest.$ac_ext <<_ACEOF
12775
/* end confdefs.h. */
12785
rm -f conftest.$ac_objext conftest$ac_exeext
12786
if { (ac_try="$ac_link"
12787
case "(($ac_try" in
12788
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12789
*) ac_try_echo=$ac_try;;
12791
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12792
(eval "$ac_link") 2>conftest.er1
12794
grep -v '^ *+' conftest.er1 >conftest.err
12796
cat conftest.err >&5
12797
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798
(exit $ac_status); } && {
12799
test -z "$ac_cxx_werror_flag" ||
12800
test ! -s conftest.err
12801
} && test -s conftest$ac_exeext &&
12802
$as_test_x conftest$ac_exeext; then
12804
lt_aix_libpath_sed='
12805
/Import File Strings/,/^$/ {
12811
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12812
# Check for a 64-bit object if we didn't find anything.
12813
if test -z "$aix_libpath"; then
12814
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12817
echo "$as_me: failed program was:" >&5
12818
sed 's/^/| /' conftest.$ac_ext >&5
12823
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12824
conftest$ac_exeext conftest.$ac_ext
12825
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12827
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12828
# Warning - without using the other run time loading flags,
12829
# -berok will link without error, but may produce a broken library.
12830
no_undefined_flag_CXX=' ${wl}-bernotok'
12831
allow_undefined_flag_CXX=' ${wl}-berok'
12832
# Exported symbols can be pulled into shared objects from archives
12833
whole_archive_flag_spec_CXX='$convenience'
12834
archive_cmds_need_lc_CXX=yes
12835
# This is similar to how AIX traditionally builds its shared libraries.
12836
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'
12842
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12843
allow_undefined_flag_CXX=unsupported
12844
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12845
# support --undefined. This deserves some investigation. FIXME
12846
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12853
case $cc_basename in
12855
# FIXME: insert proper C++ library support
12861
cygwin* | mingw* | pw32*)
12862
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12863
# as there is no search path for DLLs.
12864
hardcode_libdir_flag_spec_CXX='-L$libdir'
12865
allow_undefined_flag_CXX=unsupported
12866
always_export_symbols_CXX=no
12867
enable_shared_with_static_runtimes_CXX=yes
12869
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12870
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'
12871
# If the export-symbols file already is a .def file (1st line
12872
# is EXPORTS), use it as is; otherwise, prepend...
12873
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12874
cp $export_symbols $output_objdir/$soname.def;
12876
echo EXPORTS > $output_objdir/$soname.def;
12877
cat $export_symbols >> $output_objdir/$soname.def;
12879
$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'
12884
darwin* | rhapsody*)
12885
archive_cmds_need_lc_CXX=no
12886
hardcode_direct_CXX=no
12887
hardcode_automatic_CXX=yes
12888
hardcode_shlibpath_var_CXX=unsupported
12889
whole_archive_flag_spec_CXX=''
12890
link_all_deplibs_CXX=yes
12891
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12892
if test "$GXX" = yes ; then
12893
output_verbose_link_cmd='echo'
12894
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}"
12895
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12896
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}"
12897
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}"
12898
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12899
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}"
12900
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}"
12903
case $cc_basename in
12905
output_verbose_link_cmd='echo'
12906
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'
12907
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12908
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12909
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}'
12910
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}'
12920
case $cc_basename in
12922
# FIXME: insert proper C++ library support
12926
# Green Hills C++ Compiler
12927
# FIXME: insert proper C++ library support
12931
# FIXME: insert proper C++ library support
12937
# C++ shared libraries reported to be fairly broken before switch to ELF
12941
archive_cmds_need_lc_CXX=no
12943
freebsd* | dragonfly*)
12944
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12951
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12952
hardcode_libdir_separator_CXX=:
12953
export_dynamic_flag_spec_CXX='${wl}-E'
12954
hardcode_direct_CXX=yes
12955
hardcode_minus_L_CXX=yes # Not in the search PATH,
12956
# but as the default
12957
# location of the library.
12959
case $cc_basename in
12961
# FIXME: insert proper C++ library support
12965
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'
12966
# Commands to make compiler produce verbose output that lists
12967
# what "hidden" libraries, object files and flags are used when
12968
# linking a shared library.
12970
# There doesn't appear to be a way to prevent this compiler from
12971
# explicitly linking system object files so we need to strip them
12972
# from the output so that they don't get included in the library
12974
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'
12977
if test "$GXX" = yes; then
12978
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'
12980
# FIXME: insert proper C++ library support
12987
if test $with_gnu_ld = no; then
12988
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12989
hardcode_libdir_separator_CXX=:
12994
export_dynamic_flag_spec_CXX='${wl}-E'
13000
hardcode_direct_CXX=no
13001
hardcode_shlibpath_var_CXX=no
13004
hardcode_direct_CXX=yes
13005
hardcode_minus_L_CXX=yes # Not in the search PATH,
13006
# but as the default
13007
# location of the library.
13011
case $cc_basename in
13013
# FIXME: insert proper C++ library support
13019
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13022
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13025
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13028
# Commands to make compiler produce verbose output that lists
13029
# what "hidden" libraries, object files and flags are used when
13030
# linking a shared library.
13032
# There doesn't appear to be a way to prevent this compiler from
13033
# explicitly linking system object files so we need to strip them
13034
# from the output so that they don't get included in the library
13036
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'
13039
if test "$GXX" = yes; then
13040
if test $with_gnu_ld = no; then
13043
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13046
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13049
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'
13054
# FIXME: insert proper C++ library support
13061
hardcode_direct_CXX=no
13062
hardcode_shlibpath_var_CXX=no
13063
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13064
export_dynamic_flag_spec_CXX='${wl}-E'
13065
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13066
# Instead, shared libraries are loaded at an image base (0x10000000 by
13067
# default) and relocated if they conflict, which is a slow very memory
13068
# consuming and fragmenting process. To avoid this, we pick a random,
13069
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13070
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
13071
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'
13072
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'
13075
case $cc_basename in
13078
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'
13080
# Archives containing C++ object files must be created using
13081
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
13082
# necessary to make sure instantiated templates are included
13084
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13087
if test "$GXX" = yes; then
13088
if test "$with_gnu_ld" = no; then
13089
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'
13091
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'
13094
link_all_deplibs_CXX=yes
13097
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13098
hardcode_libdir_separator_CXX=:
13100
linux* | k*bsd*-gnu)
13101
case $cc_basename in
13103
# Kuck and Associates, Inc. (KAI) C++ Compiler
13105
# KCC will only create a shared library if the output file
13106
# ends with ".so" (or ".sl" for HP-UX), so rename the library
13107
# to its proper name (with version) after linking.
13108
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'
13109
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'
13110
# Commands to make compiler produce verbose output that lists
13111
# what "hidden" libraries, object files and flags are used when
13112
# linking a shared library.
13114
# There doesn't appear to be a way to prevent this compiler from
13115
# explicitly linking system object files so we need to strip them
13116
# from the output so that they don't get included in the library
13118
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'
13120
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13121
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13123
# Archives containing C++ object files must be created using
13124
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
13125
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13130
# version 8.0 and above of icpc choke on multiply defined symbols
13131
# if we add $predep_objects and $postdep_objects, however 7.1 and
13132
# earlier do not add the objects themselves.
13133
case `$CC -V 2>&1` in
13135
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13136
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'
13138
*) # Version 8.0 or newer
13141
ia64*) tmp_idyn=' -i_dynamic';;
13143
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13144
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'
13147
archive_cmds_need_lc_CXX=no
13148
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13149
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13150
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13153
# Portland Group C++ compiler
13154
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13155
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'
13157
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13158
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13159
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'
13163
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13164
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'
13166
runpath_var=LD_RUN_PATH
13167
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13168
hardcode_libdir_separator_CXX=:
13170
# Commands to make compiler produce verbose output that lists
13171
# what "hidden" libraries, object files and flags are used when
13172
# linking a shared library.
13174
# There doesn't appear to be a way to prevent this compiler from
13175
# explicitly linking system object files so we need to strip them
13176
# from the output so that they don't get included in the library
13178
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'
13181
case `$CC -V 2>&1 | sed 5q` in
13184
no_undefined_flag_CXX=' -zdefs'
13185
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13186
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'
13187
hardcode_libdir_flag_spec_CXX='-R$libdir'
13188
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'
13190
# Not sure whether something based on
13191
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13193
output_verbose_link_cmd='echo'
13195
# Archives containing C++ object files must be created using
13196
# "CC -xar", where "CC" is the Sun C++ compiler. This is
13197
# necessary to make sure instantiated templates are included
13199
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13206
# FIXME: insert proper C++ library support
13210
# FIXME: insert proper C++ library support
13214
case $cc_basename in
13216
# FIXME: insert proper C++ library support
13220
# FIXME: insert proper C++ library support
13225
netbsd* | netbsdelf*-gnu)
13226
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13227
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13229
hardcode_libdir_flag_spec_CXX='-R$libdir'
13230
hardcode_direct_CXX=yes
13231
hardcode_shlibpath_var_CXX=no
13233
# Workaround some broken pre-1.5 toolchains
13234
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13237
# C++ shared libraries are fairly broken
13241
if test -f /usr/libexec/ld.so; then
13242
hardcode_direct_CXX=yes
13243
hardcode_shlibpath_var_CXX=no
13244
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13245
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13246
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13247
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13248
export_dynamic_flag_spec_CXX='${wl}-E'
13249
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13251
output_verbose_link_cmd='echo'
13257
case $cc_basename in
13259
# Kuck and Associates, Inc. (KAI) C++ Compiler
13261
# KCC will only create a shared library if the output file
13262
# ends with ".so" (or ".sl" for HP-UX), so rename the library
13263
# to its proper name (with version) after linking.
13264
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'
13266
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13267
hardcode_libdir_separator_CXX=:
13269
# Archives containing C++ object files must be created using
13270
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
13271
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13275
# Rational C++ 2.4.1
13276
# FIXME: insert proper C++ library support
13280
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13281
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'
13283
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13284
hardcode_libdir_separator_CXX=:
13286
# Commands to make compiler produce verbose output that lists
13287
# what "hidden" libraries, object files and flags are used when
13288
# linking a shared library.
13290
# There doesn't appear to be a way to prevent this compiler from
13291
# explicitly linking system object files so we need to strip them
13292
# from the output so that they don't get included in the library
13294
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'
13297
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13298
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13299
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'
13301
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13302
hardcode_libdir_separator_CXX=:
13304
# Commands to make compiler produce verbose output that lists
13305
# what "hidden" libraries, object files and flags are used when
13306
# linking a shared library.
13307
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13310
# FIXME: insert proper C++ library support
13317
case $cc_basename in
13319
# Kuck and Associates, Inc. (KAI) C++ Compiler
13321
# KCC will only create a shared library if the output file
13322
# ends with ".so" (or ".sl" for HP-UX), so rename the library
13323
# to its proper name (with version) after linking.
13324
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'
13326
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13327
hardcode_libdir_separator_CXX=:
13329
# Archives containing C++ object files must be created using
13330
# the KAI C++ compiler.
13331
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13334
# Rational C++ 2.4.1
13335
# FIXME: insert proper C++ library support
13339
allow_undefined_flag_CXX=' -expect_unresolved \*'
13340
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'
13341
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13342
echo "-hidden">> $lib.exp~
13343
$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~
13346
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13347
hardcode_libdir_separator_CXX=:
13349
# Commands to make compiler produce verbose output that lists
13350
# what "hidden" libraries, object files and flags are used when
13351
# linking a shared library.
13353
# There doesn't appear to be a way to prevent this compiler from
13354
# explicitly linking system object files so we need to strip them
13355
# from the output so that they don't get included in the library
13357
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'
13360
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13361
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13362
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'
13364
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13365
hardcode_libdir_separator_CXX=:
13367
# Commands to make compiler produce verbose output that lists
13368
# what "hidden" libraries, object files and flags are used when
13369
# linking a shared library.
13370
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13373
# FIXME: insert proper C++ library support
13380
# FIXME: insert proper C++ library support
13384
case $cc_basename in
13387
# FIXME: insert proper C++ library support
13392
# FIXME: insert proper C++ library support
13396
# FIXME: insert proper C++ library support
13402
case $cc_basename in
13404
# Sun C++ 4.2, 5.x and Centerline C++
13405
archive_cmds_need_lc_CXX=yes
13406
no_undefined_flag_CXX=' -zdefs'
13407
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13408
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13409
$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'
13411
hardcode_libdir_flag_spec_CXX='-R$libdir'
13412
hardcode_shlibpath_var_CXX=no
13414
solaris2.[0-5] | solaris2.[0-5].*) ;;
13416
# The compiler driver will combine and reorder linker options,
13417
# but understands `-z linker_flag'.
13418
# Supported since Solaris 2.6 (maybe 2.5.1?)
13419
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13422
link_all_deplibs_CXX=yes
13424
output_verbose_link_cmd='echo'
13426
# Archives containing C++ object files must be created using
13427
# "CC -xar", where "CC" is the Sun C++ compiler. This is
13428
# necessary to make sure instantiated templates are included
13430
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13433
# Green Hills C++ Compiler
13434
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13436
# The C++ compiler must be used to create the archive.
13437
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13440
# GNU C++ compiler with Solaris linker
13441
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13442
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13443
if $CC --version | grep -v '^2\.7' > /dev/null; then
13444
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13445
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13446
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13448
# Commands to make compiler produce verbose output that lists
13449
# what "hidden" libraries, object files and flags are used when
13450
# linking a shared library.
13451
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13453
# g++ 2.7 appears to require `-G' NOT `-shared' on this
13455
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13456
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13457
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13459
# Commands to make compiler produce verbose output that lists
13460
# what "hidden" libraries, object files and flags are used when
13461
# linking a shared library.
13462
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13465
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13467
solaris2.[0-5] | solaris2.[0-5].*) ;;
13469
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13476
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13477
no_undefined_flag_CXX='${wl}-z,text'
13478
archive_cmds_need_lc_CXX=no
13479
hardcode_shlibpath_var_CXX=no
13480
runpath_var='LD_RUN_PATH'
13482
case $cc_basename in
13484
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13485
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13488
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13489
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13493
sysv5* | sco3.2v5* | sco5v6*)
13494
# Note: We can NOT use -z defs as we might desire, because we do not
13495
# link with -lc, and that would cause any symbols used from libc to
13496
# always be unresolved, which means just about no library would
13497
# ever link correctly. If we're not using GNU ld we use -z text
13498
# though, which does catch some bad symbols but isn't as heavy-handed
13500
# For security reasons, it is highly recommended that you always
13501
# use absolute paths for naming shared libraries, and exclude the
13502
# DT_RUNPATH tag from executables and libraries. But doing so
13503
# requires that you compile everything twice, which is a pain.
13504
# So that behaviour is only enabled if SCOABSPATH is set to a
13505
# non-empty value in the environment. Most likely only useful for
13506
# creating official distributions of packages.
13507
# This is a hack until libtool officially supports absolute path
13508
# names for shared libraries.
13509
no_undefined_flag_CXX='${wl}-z,text'
13510
allow_undefined_flag_CXX='${wl}-z,nodefs'
13511
archive_cmds_need_lc_CXX=no
13512
hardcode_shlibpath_var_CXX=no
13513
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13514
hardcode_libdir_separator_CXX=':'
13515
link_all_deplibs_CXX=yes
13516
export_dynamic_flag_spec_CXX='${wl}-Bexport'
13517
runpath_var='LD_RUN_PATH'
13519
case $cc_basename in
13521
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13522
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13525
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13526
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13531
case $cc_basename in
13533
# NonStop-UX NCC 3.20
13534
# FIXME: insert proper C++ library support
13538
# FIXME: insert proper C++ library support
13544
# FIXME: insert proper C++ library support
13548
# FIXME: insert proper C++ library support
13552
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13553
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13554
test "$ld_shlibs_CXX" = no && can_build_shared=no
13559
cat > conftest.$ac_ext <<EOF
13563
Foo (void) { a = 0; }
13569
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13570
(eval $ac_compile) 2>&5
13572
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573
(exit $ac_status); }; then
13574
# Parse the compiler output and extract the necessary
13575
# objects, libraries and library flags.
13577
# Sentinel used to keep track of whether or not we are before
13578
# the conftest object file.
13579
pre_test_object_deps_done=no
13581
# The `*' in the case matches for architectures that use `case' in
13582
# $output_verbose_cmd can trigger glob expansion during the loop
13583
# eval without this substitution.
13584
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13586
for p in `eval $output_verbose_link_cmd`; do
13590
# Some compilers place space between "-{L,R}" and the path.
13591
# Remove the space.
13592
if test $p = "-L" \
13593
|| test $p = "-R"; then
13600
if test "$pre_test_object_deps_done" = no; then
13603
# Internal compiler library paths should come after those
13604
# provided the user. The postdeps already come after the
13605
# user supplied libs so there is no need to process them.
13606
if test -z "$compiler_lib_search_path_CXX"; then
13607
compiler_lib_search_path_CXX="${prev}${p}"
13609
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13612
# The "-l" case would never come before the object being
13613
# linked, so don't bother handling this case.
13616
if test -z "$postdeps_CXX"; then
13617
postdeps_CXX="${prev}${p}"
13619
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13625
# This assumes that the test object file only shows up
13626
# once in the compiler output.
13627
if test "$p" = "conftest.$objext"; then
13628
pre_test_object_deps_done=yes
13632
if test "$pre_test_object_deps_done" = no; then
13633
if test -z "$predep_objects_CXX"; then
13634
predep_objects_CXX="$p"
13636
predep_objects_CXX="$predep_objects_CXX $p"
13639
if test -z "$postdep_objects_CXX"; then
13640
postdep_objects_CXX="$p"
13642
postdep_objects_CXX="$postdep_objects_CXX $p"
13647
*) ;; # Ignore the rest.
13655
echo "libtool.m4: error: problem compiling CXX test program"
13658
$rm -f confest.$objext
13660
compiler_lib_search_dirs_CXX=
13661
if test -n "$compiler_lib_search_path_CXX"; then
13662
compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13665
# PORTME: override above test on systems where it is broken
13668
# Interix 3.5 installs completely hosed .la files for C++, so rather than
13669
# hack all around it, let's just trust "g++" to DTRT.
13670
predep_objects_CXX=
13671
postdep_objects_CXX=
13676
case `$CC -V 2>&1 | sed 5q` in
13680
# The more standards-conforming stlport4 library is
13681
# incompatible with the Cstd library. Avoid specifying
13682
# it if it's in CXXFLAGS. Ignore libCrun as
13683
# -library=stlport4 depends on it.
13684
case " $CXX $CXXFLAGS " in
13685
*" -library=stlport4 "*)
13686
solaris_use_stlport4=yes
13689
if test "$solaris_use_stlport4" != yes; then
13690
postdeps_CXX='-library=Cstd -library=Crun'
13697
case $cc_basename in
13699
# The more standards-conforming stlport4 library is
13700
# incompatible with the Cstd library. Avoid specifying
13701
# it if it's in CXXFLAGS. Ignore libCrun as
13702
# -library=stlport4 depends on it.
13703
case " $CXX $CXXFLAGS " in
13704
*" -library=stlport4 "*)
13705
solaris_use_stlport4=yes
13709
# Adding this requires a known-good setup of shared libraries for
13710
# Sun compiler versions before 5.6, else PIC objects from an old
13711
# archive will be linked into the output, leading to subtle bugs.
13712
if test "$solaris_use_stlport4" != yes; then
13713
postdeps_CXX='-library=Cstd -library=Crun'
13720
case " $postdeps_CXX " in
13721
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13724
lt_prog_compiler_wl_CXX=
13725
lt_prog_compiler_pic_CXX=
13726
lt_prog_compiler_static_CXX=
13728
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13729
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13731
# C++ specific cases for pic, static, wl, etc.
13732
if test "$GXX" = yes; then
13733
lt_prog_compiler_wl_CXX='-Wl,'
13734
lt_prog_compiler_static_CXX='-static'
13738
# All AIX code is PIC.
13739
if test "$host_cpu" = ia64; then
13740
# AIX 5 now supports IA64 processor
13741
lt_prog_compiler_static_CXX='-Bstatic'
13745
# FIXME: we need at least 68020 code to build shared libraries, but
13746
# adding the `-m68020' flag to GCC prevents building anything better,
13748
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13750
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13751
# PIC is the default for these OSes.
13753
mingw* | cygwin* | os2* | pw32*)
13754
# This hack is so that the source file can tell whether it is being
13755
# built for inclusion in a dll (and should export symbols for example).
13756
# Although the cygwin gcc ignores -fPIC, still need this for old-style
13757
# (--disable-auto-import) libraries
13758
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13760
darwin* | rhapsody*)
13761
# PIC is the default on this platform
13762
# Common symbols not allowed in MH_DYLIB files
13763
lt_prog_compiler_pic_CXX='-fno-common'
13766
# DJGPP does not support shared libraries at all
13767
lt_prog_compiler_pic_CXX=
13770
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
13771
# Instead, we relocate shared libraries at runtime.
13774
if test -d /usr/nec; then
13775
lt_prog_compiler_pic_CXX=-Kconform_pic
13779
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13780
# not for PA HP-UX.
13785
lt_prog_compiler_pic_CXX='-fPIC'
13790
lt_prog_compiler_pic_CXX='-fPIC'
13796
# All AIX code is PIC.
13797
if test "$host_cpu" = ia64; then
13798
# AIX 5 now supports IA64 processor
13799
lt_prog_compiler_static_CXX='-Bstatic'
13801
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13805
case $cc_basename in
13807
# Green Hills C++ Compiler
13808
# _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"
13813
# PIC is the default on this platform
13814
# Common symbols not allowed in MH_DYLIB files
13815
case $cc_basename in
13817
lt_prog_compiler_pic_CXX='-qnocommon'
13818
lt_prog_compiler_wl_CXX='-Wl,'
13823
case $cc_basename in
13825
lt_prog_compiler_pic_CXX='-KPIC'
13828
# Green Hills C++ Compiler
13829
lt_prog_compiler_pic_CXX='-pic'
13835
freebsd* | dragonfly*)
13836
# FreeBSD uses GNU C++
13838
hpux9* | hpux10* | hpux11*)
13839
case $cc_basename in
13841
lt_prog_compiler_wl_CXX='-Wl,'
13842
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13843
if test "$host_cpu" != ia64; then
13844
lt_prog_compiler_pic_CXX='+Z'
13848
lt_prog_compiler_wl_CXX='-Wl,'
13849
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13855
lt_prog_compiler_pic_CXX='+Z'
13864
# This is c89, which is MS Visual C++ (no shared libs)
13865
# Anyone wants to do a port?
13867
irix5* | irix6* | nonstopux*)
13868
case $cc_basename in
13870
lt_prog_compiler_wl_CXX='-Wl,'
13871
lt_prog_compiler_static_CXX='-non_shared'
13872
# CC pic flag -KPIC is the default.
13878
linux* | k*bsd*-gnu)
13879
case $cc_basename in
13882
lt_prog_compiler_wl_CXX='--backend -Wl,'
13883
lt_prog_compiler_pic_CXX='-fPIC'
13887
lt_prog_compiler_wl_CXX='-Wl,'
13888
lt_prog_compiler_pic_CXX='-KPIC'
13889
lt_prog_compiler_static_CXX='-static'
13892
# Portland Group C++ compiler.
13893
lt_prog_compiler_wl_CXX='-Wl,'
13894
lt_prog_compiler_pic_CXX='-fpic'
13895
lt_prog_compiler_static_CXX='-Bstatic'
13899
# Make sure the PIC flag is empty. It appears that all Alpha
13900
# Linux and Compaq Tru64 Unix objects are PIC.
13901
lt_prog_compiler_pic_CXX=
13902
lt_prog_compiler_static_CXX='-non_shared'
13905
case `$CC -V 2>&1 | sed 5q` in
13908
lt_prog_compiler_pic_CXX='-KPIC'
13909
lt_prog_compiler_static_CXX='-Bstatic'
13910
lt_prog_compiler_wl_CXX='-Qoption ld '
13921
case $cc_basename in
13923
lt_prog_compiler_pic_CXX='-W c,exportall'
13929
netbsd* | netbsdelf*-gnu)
13931
osf3* | osf4* | osf5*)
13932
case $cc_basename in
13934
lt_prog_compiler_wl_CXX='--backend -Wl,'
13937
# Rational C++ 2.4.1
13938
lt_prog_compiler_pic_CXX='-pic'
13941
# Digital/Compaq C++
13942
lt_prog_compiler_wl_CXX='-Wl,'
13943
# Make sure the PIC flag is empty. It appears that all Alpha
13944
# Linux and Compaq Tru64 Unix objects are PIC.
13945
lt_prog_compiler_pic_CXX=
13946
lt_prog_compiler_static_CXX='-non_shared'
13955
case $cc_basename in
13957
# Sun C++ 4.2, 5.x and Centerline C++
13958
lt_prog_compiler_pic_CXX='-KPIC'
13959
lt_prog_compiler_static_CXX='-Bstatic'
13960
lt_prog_compiler_wl_CXX='-Qoption ld '
13963
# Green Hills C++ Compiler
13964
lt_prog_compiler_pic_CXX='-PIC'
13971
case $cc_basename in
13974
lt_prog_compiler_pic_CXX='-pic'
13975
lt_prog_compiler_static_CXX='-Bstatic'
13979
lt_prog_compiler_pic_CXX='-pic'
13986
case $cc_basename in
13988
# NonStop-UX NCC 3.20
13989
lt_prog_compiler_pic_CXX='-KPIC'
13995
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13996
case $cc_basename in
13998
lt_prog_compiler_wl_CXX='-Wl,'
13999
lt_prog_compiler_pic_CXX='-KPIC'
14000
lt_prog_compiler_static_CXX='-Bstatic'
14007
lt_prog_compiler_can_build_shared_CXX=no
14012
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14013
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14016
# Check to make sure the PIC flag actually works.
14018
if test -n "$lt_prog_compiler_pic_CXX"; then
14020
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14021
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14022
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14023
echo $ECHO_N "(cached) $ECHO_C" >&6
14025
lt_cv_prog_compiler_pic_works_CXX=no
14026
ac_outfile=conftest.$ac_objext
14027
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14028
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14029
# Insert the option either (1) after the last *FLAGS variable, or
14030
# (2) before a word containing "conftest.", or (3) at the end.
14031
# Note that $ac_compile itself does not contain backslashes and begins
14032
# with a dollar sign (not a hyphen), so the echo should work correctly.
14033
# The option is referenced via a variable to avoid confusing sed.
14034
lt_compile=`echo "$ac_compile" | $SED \
14035
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14036
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14037
-e 's:$: $lt_compiler_flag:'`
14038
(eval echo "\"\$as_me:14038: $lt_compile\"" >&5)
14039
(eval "$lt_compile" 2>conftest.err)
14041
cat conftest.err >&5
14042
echo "$as_me:14042: \$? = $ac_status" >&5
14043
if (exit $ac_status) && test -s "$ac_outfile"; then
14044
# The compiler can only warn and ignore the option if not recognized
14045
# So say no if there are warnings other than the usual output.
14046
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14047
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14048
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14049
lt_cv_prog_compiler_pic_works_CXX=yes
14055
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14056
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14058
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14059
case $lt_prog_compiler_pic_CXX in
14061
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14064
lt_prog_compiler_pic_CXX=
14065
lt_prog_compiler_can_build_shared_CXX=no
14070
# For platforms which do not support PIC, -DPIC is meaningless:
14072
lt_prog_compiler_pic_CXX=
14075
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14080
# Check to make sure the static flag actually works.
14082
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14083
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14084
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14085
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14086
echo $ECHO_N "(cached) $ECHO_C" >&6
14088
lt_cv_prog_compiler_static_works_CXX=no
14089
save_LDFLAGS="$LDFLAGS"
14090
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14091
echo "$lt_simple_link_test_code" > conftest.$ac_ext
14092
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14093
# The linker can only warn and ignore the option if not recognized
14094
# So say no if there are warnings
14095
if test -s conftest.err; then
14096
# Append any errors to the config.log.
14097
cat conftest.err 1>&5
14098
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14099
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14100
if diff conftest.exp conftest.er2 >/dev/null; then
14101
lt_cv_prog_compiler_static_works_CXX=yes
14104
lt_cv_prog_compiler_static_works_CXX=yes
14108
LDFLAGS="$save_LDFLAGS"
14111
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14112
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14114
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14117
lt_prog_compiler_static_CXX=
14121
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14122
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14123
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14124
echo $ECHO_N "(cached) $ECHO_C" >&6
14126
lt_cv_prog_compiler_c_o_CXX=no
14127
$rm -r conftest 2>/dev/null
14131
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14133
lt_compiler_flag="-o out/conftest2.$ac_objext"
14134
# Insert the option either (1) after the last *FLAGS variable, or
14135
# (2) before a word containing "conftest.", or (3) at the end.
14136
# Note that $ac_compile itself does not contain backslashes and begins
14137
# with a dollar sign (not a hyphen), so the echo should work correctly.
14138
lt_compile=`echo "$ac_compile" | $SED \
14139
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14140
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14141
-e 's:$: $lt_compiler_flag:'`
14142
(eval echo "\"\$as_me:14142: $lt_compile\"" >&5)
14143
(eval "$lt_compile" 2>out/conftest.err)
14145
cat out/conftest.err >&5
14146
echo "$as_me:14146: \$? = $ac_status" >&5
14147
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14149
# The compiler can only warn and ignore the option if not recognized
14150
# So say no if there are warnings
14151
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14152
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14153
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14154
lt_cv_prog_compiler_c_o_CXX=yes
14159
# SGI C++ compiler will create directory out/ii_files/ for
14160
# template instantiation
14161
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14162
$rm out/* && rmdir out
14168
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14169
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14172
hard_links="nottested"
14173
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14174
# do not overwrite the value of need_locks provided by the user
14175
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14176
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14179
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14181
ln conftest.a conftest.b 2>&5 || hard_links=no
14182
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14183
{ echo "$as_me:$LINENO: result: $hard_links" >&5
14184
echo "${ECHO_T}$hard_links" >&6; }
14185
if test "$hard_links" = no; then
14186
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14187
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14194
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14195
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14197
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14200
# If we're using GNU nm, then we don't want the "-C" option.
14201
# -C means demangle to AIX nm, but means don't demangle with GNU nm
14202
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14203
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'
14205
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'
14209
export_symbols_cmds_CXX="$ltdll_cmds"
14212
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'
14214
linux* | k*bsd*-gnu)
14215
link_all_deplibs_CXX=no
14218
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14221
exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14223
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14224
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14225
test "$ld_shlibs_CXX" = no && can_build_shared=no
14228
# Do we need to explicitly link libc?
14230
case "x$archive_cmds_need_lc_CXX" in
14232
# Assume -lc should be added
14233
archive_cmds_need_lc_CXX=yes
14235
if test "$enable_shared" = yes && test "$GCC" = yes; then
14236
case $archive_cmds_CXX in
14238
# FIXME: we may have to deal with multi-command sequences.
14241
# Test whether the compiler implicitly links with -lc since on some
14242
# systems, -lgcc has to come before -lc. If gcc already passes -lc
14243
# to ld, don't add -lc before -lgcc.
14244
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14245
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14247
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14249
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14250
(eval $ac_compile) 2>&5
14252
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253
(exit $ac_status); } 2>conftest.err; then
14256
libobjs=conftest.$ac_objext
14258
wl=$lt_prog_compiler_wl_CXX
14259
pic_flag=$lt_prog_compiler_pic_CXX
14265
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14266
allow_undefined_flag_CXX=
14267
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14268
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14270
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271
(exit $ac_status); }
14273
archive_cmds_need_lc_CXX=no
14275
archive_cmds_need_lc_CXX=yes
14277
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14279
cat conftest.err 1>&5
14282
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14283
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14290
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14291
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14292
library_names_spec=
14293
libname_spec='lib$name'
14297
postuninstall_cmds=
14301
shlibpath_overrides_runpath=unknown
14303
dynamic_linker="$host_os ld.so"
14304
sys_lib_dlsearch_path_spec="/lib /usr/lib"
14306
need_lib_prefix=unknown
14307
hardcode_into_libs=no
14309
# when you set need_version to no, make sure it does not cause -set_version
14310
# flags to be left without arguments
14311
need_version=unknown
14316
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14317
shlibpath_var=LIBPATH
14319
# AIX 3 has no versioning support, so we append a major version to the name.
14320
soname_spec='${libname}${release}${shared_ext}$major'
14327
hardcode_into_libs=yes
14328
if test "$host_cpu" = ia64; then
14329
# AIX 5 supports IA64
14330
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14331
shlibpath_var=LD_LIBRARY_PATH
14333
# With GCC up to 2.95.x, collect2 would create an import file
14334
# for dependence libraries. The import file would start with
14335
# the line `#! .'. This would cause the generated library to
14336
# depend on `.', always an invalid library. This was fixed in
14337
# development snapshots of GCC prior to 3.0.
14339
aix4 | aix4.[01] | aix4.[01].*)
14340
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14342
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14345
can_build_shared=no
14349
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14350
# soname into executable. Probably we can add versioning support to
14351
# collect2, so additional links can be useful in future.
14352
if test "$aix_use_runtimelinking" = yes; then
14353
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
14354
# instead of lib<name>.a to let people know that these are not
14355
# typical AIX shared libraries.
14356
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14358
# We preserve .a as extension for shared libraries through AIX4.2
14359
# and later when we are not doing run time linking.
14360
library_names_spec='${libname}${release}.a $libname.a'
14361
soname_spec='${libname}${release}${shared_ext}$major'
14363
shlibpath_var=LIBPATH
14368
library_names_spec='$libname.ixlibrary $libname.a'
14369
# Create ${libname}_ixlibrary.a entries in /sys/libs.
14370
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'
14374
library_names_spec='${libname}${shared_ext}'
14375
dynamic_linker="$host_os ld.so"
14376
shlibpath_var=LIBRARY_PATH
14382
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14383
soname_spec='${libname}${release}${shared_ext}$major'
14384
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14385
shlibpath_var=LD_LIBRARY_PATH
14386
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14387
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14388
# the default ld.so.conf also contains /usr/contrib/lib and
14389
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14390
# libtool to hard-code these into programs
14393
cygwin* | mingw* | pw32*)
14394
version_type=windows
14399
case $GCC,$host_os in
14400
yes,cygwin* | yes,mingw* | yes,pw32*)
14401
library_names_spec='$libname.dll.a'
14402
# DLL is installed to $(libdir)/../bin by postinstall_cmds
14403
postinstall_cmds='base_file=`basename \${file}`~
14404
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14405
dldir=$destdir/`dirname \$dlpath`~
14406
test -d \$dldir || mkdir -p \$dldir~
14407
$install_prog $dir/$dlname \$dldir/$dlname~
14408
chmod a+x \$dldir/$dlname'
14409
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14410
dlpath=$dir/\$dldll~
14412
shlibpath_overrides_runpath=yes
14416
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
14417
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14418
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14421
# MinGW DLLs use traditional 'lib' prefix
14422
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14423
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14424
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14425
# It is most probably a Windows format PATH printed by
14426
# mingw gcc, but we are running on Cygwin. Gcc prints its search
14427
# path with ; separators, and with drive letters. We can handle the
14428
# drive letters (cygwin fileutils understands them), so leave them,
14429
# especially as we might pass files found there to a mingw objdump,
14430
# which wouldn't understand a cygwinified path. Ahh.
14431
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14433
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14437
# pw32 DLLs use 'pw' prefix rather than 'lib'
14438
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14444
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14447
dynamic_linker='Win32 ld.exe'
14448
# FIXME: first we should search . and the directory the executable is in
14452
darwin* | rhapsody*)
14453
dynamic_linker="$host_os dyld"
14454
version_type=darwin
14457
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14458
soname_spec='${libname}${release}${major}$shared_ext'
14459
shlibpath_overrides_runpath=yes
14460
shlibpath_var=DYLD_LIBRARY_PATH
14461
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14463
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14470
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14471
soname_spec='${libname}${release}${shared_ext}$major'
14472
shlibpath_var=LD_LIBRARY_PATH
14479
freebsd* | dragonfly*)
14480
# DragonFly does not have aout. When/if they implement a new
14481
# versioning mechanism, adjust this.
14482
if test -x /usr/bin/objformat; then
14483
objformat=`/usr/bin/objformat`
14486
freebsd[123]*) objformat=aout ;;
14487
*) objformat=elf ;;
14490
version_type=freebsd-$objformat
14491
case $version_type in
14493
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14498
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14502
shlibpath_var=LD_LIBRARY_PATH
14505
shlibpath_overrides_runpath=yes
14507
freebsd3.[01]* | freebsdelf3.[01]*)
14508
shlibpath_overrides_runpath=yes
14509
hardcode_into_libs=yes
14511
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14512
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14513
shlibpath_overrides_runpath=no
14514
hardcode_into_libs=yes
14516
*) # from 4.6 on, and DragonFly
14517
shlibpath_overrides_runpath=yes
14518
hardcode_into_libs=yes
14527
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14528
soname_spec='${libname}${release}${shared_ext}$major'
14529
shlibpath_var=LD_LIBRARY_PATH
14530
hardcode_into_libs=yes
14533
hpux9* | hpux10* | hpux11*)
14534
# Give a soname corresponding to the major version so that dld.sl refuses to
14535
# link against other versions.
14542
hardcode_into_libs=yes
14543
dynamic_linker="$host_os dld.so"
14544
shlibpath_var=LD_LIBRARY_PATH
14545
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14546
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14547
soname_spec='${libname}${release}${shared_ext}$major'
14548
if test "X$HPUX_IA64_MODE" = X32; then
14549
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14551
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14553
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14557
hardcode_into_libs=yes
14558
dynamic_linker="$host_os dld.sl"
14559
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14560
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14561
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14562
soname_spec='${libname}${release}${shared_ext}$major'
14563
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14564
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14568
dynamic_linker="$host_os dld.sl"
14569
shlibpath_var=SHLIB_PATH
14570
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14571
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14572
soname_spec='${libname}${release}${shared_ext}$major'
14575
# HP-UX runs *really* slowly unless shared libraries are mode 555.
14576
postinstall_cmds='chmod 555 $lib'
14583
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14584
soname_spec='${libname}${release}${shared_ext}$major'
14585
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14586
shlibpath_var=LD_LIBRARY_PATH
14587
shlibpath_overrides_runpath=no
14588
hardcode_into_libs=yes
14591
irix5* | irix6* | nonstopux*)
14593
nonstopux*) version_type=nonstopux ;;
14595
if test "$lt_cv_prog_gnu_ld" = yes; then
14603
soname_spec='${libname}${release}${shared_ext}$major'
14604
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14606
irix5* | nonstopux*)
14607
libsuff= shlibsuff=
14610
case $LD in # libtool.m4 will add one of these switches to LD
14611
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14612
libsuff= shlibsuff= libmagic=32-bit;;
14613
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14614
libsuff=32 shlibsuff=N32 libmagic=N32;;
14615
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14616
libsuff=64 shlibsuff=64 libmagic=64-bit;;
14617
*) libsuff= shlibsuff= libmagic=never-match;;
14621
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14622
shlibpath_overrides_runpath=no
14623
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14624
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14625
hardcode_into_libs=yes
14628
# No shared lib support for Linux oldld, aout, or coff.
14629
linux*oldld* | linux*aout* | linux*coff*)
14633
# This must be Linux ELF.
14634
linux* | k*bsd*-gnu)
14638
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14639
soname_spec='${libname}${release}${shared_ext}$major'
14640
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14641
shlibpath_var=LD_LIBRARY_PATH
14642
shlibpath_overrides_runpath=no
14643
# This implies no fast_install, which is unacceptable.
14644
# Some rework will be needed to allow for fast_install
14645
# before this can be enabled.
14646
hardcode_into_libs=yes
14648
# Append ld.so.conf contents to the search path
14649
if test -f /etc/ld.so.conf; then
14650
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' ' '`
14651
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14654
# We used to test for /lib/ld.so.1 and disable shared libraries on
14655
# powerpc, because MkLinux only supported shared libraries with the
14656
# GNU dynamic linker. Since this was broken with cross compilers,
14657
# most powerpc-linux boxes support dynamic linking these days and
14658
# people can always --disable-shared, the test was removed, and we
14659
# assume the GNU/Linux dynamic linker is in use.
14660
dynamic_linker='GNU/Linux ld.so'
14667
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14668
soname_spec='${libname}${release}${shared_ext}$major'
14669
shlibpath_var=LD_LIBRARY_PATH
14670
shlibpath_overrides_runpath=no
14671
hardcode_into_libs=yes
14672
dynamic_linker='NetBSD ld.elf_so'
14679
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14680
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14681
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14682
dynamic_linker='NetBSD (a.out) ld.so'
14684
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14685
soname_spec='${libname}${release}${shared_ext}$major'
14686
dynamic_linker='NetBSD ld.elf_so'
14688
shlibpath_var=LD_LIBRARY_PATH
14689
shlibpath_overrides_runpath=yes
14690
hardcode_into_libs=yes
14695
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14696
shlibpath_var=LD_LIBRARY_PATH
14697
shlibpath_overrides_runpath=yes
14704
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14705
soname_spec='${libname}${release}${shared_ext}$major'
14706
shlibpath_var=LD_LIBRARY_PATH
14707
shlibpath_overrides_runpath=yes
14712
sys_lib_dlsearch_path_spec="/usr/lib"
14714
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14716
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14717
*) need_version=no ;;
14719
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14720
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14721
shlibpath_var=LD_LIBRARY_PATH
14722
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14724
openbsd2.[89] | openbsd2.[89].*)
14725
shlibpath_overrides_runpath=no
14728
shlibpath_overrides_runpath=yes
14732
shlibpath_overrides_runpath=yes
14737
libname_spec='$name'
14740
library_names_spec='$libname${shared_ext} $libname.a'
14741
dynamic_linker='OS/2 ld.exe'
14742
shlibpath_var=LIBPATH
14745
osf3* | osf4* | osf5*)
14749
soname_spec='${libname}${release}${shared_ext}$major'
14750
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14751
shlibpath_var=LD_LIBRARY_PATH
14752
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14753
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14764
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14765
soname_spec='${libname}${release}${shared_ext}$major'
14766
shlibpath_var=LD_LIBRARY_PATH
14767
shlibpath_overrides_runpath=yes
14768
hardcode_into_libs=yes
14769
# ldd complains unless libraries are executable
14770
postinstall_cmds='chmod +x $lib'
14775
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14776
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14777
shlibpath_var=LD_LIBRARY_PATH
14778
shlibpath_overrides_runpath=yes
14779
if test "$with_gnu_ld" = yes; then
14787
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14788
soname_spec='${libname}${release}${shared_ext}$major'
14789
shlibpath_var=LD_LIBRARY_PATH
14790
case $host_vendor in
14792
shlibpath_overrides_runpath=no
14794
export_dynamic_flag_spec='${wl}-Blargedynsym'
14795
runpath_var=LD_RUN_PATH
14803
shlibpath_overrides_runpath=no
14804
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14810
if test -d /usr/nec ;then
14812
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14813
soname_spec='$libname${shared_ext}.$major'
14814
shlibpath_var=LD_LIBRARY_PATH
14818
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14819
version_type=freebsd-elf
14822
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14823
soname_spec='${libname}${release}${shared_ext}$major'
14824
shlibpath_var=LD_LIBRARY_PATH
14825
hardcode_into_libs=yes
14826
if test "$with_gnu_ld" = yes; then
14827
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14828
shlibpath_overrides_runpath=no
14830
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14831
shlibpath_overrides_runpath=yes
14834
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14838
sys_lib_dlsearch_path_spec='/usr/lib'
14843
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14844
soname_spec='${libname}${release}${shared_ext}$major'
14845
shlibpath_var=LD_LIBRARY_PATH
14852
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14853
echo "${ECHO_T}$dynamic_linker" >&6; }
14854
test "$dynamic_linker" = no && can_build_shared=no
14856
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14857
echo $ECHO_N "(cached) $ECHO_C" >&6
14859
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
14862
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14863
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14864
echo $ECHO_N "(cached) $ECHO_C" >&6
14866
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
14869
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14871
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14872
if test "$GCC" = yes; then
14873
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14876
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14877
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14878
hardcode_action_CXX=
14879
if test -n "$hardcode_libdir_flag_spec_CXX" || \
14880
test -n "$runpath_var_CXX" || \
14881
test "X$hardcode_automatic_CXX" = "Xyes" ; then
14883
# We can hardcode non-existant directories.
14884
if test "$hardcode_direct_CXX" != no &&
14885
# If the only mechanism to avoid hardcoding is shlibpath_var, we
14886
# have to relink, otherwise we might link with an installed library
14887
# when we should be linking with a yet-to-be-installed one
14888
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14889
test "$hardcode_minus_L_CXX" != no; then
14890
# Linking always hardcodes the temporary library directory.
14891
hardcode_action_CXX=relink
14893
# We can link without hardcoding, and we can hardcode nonexisting dirs.
14894
hardcode_action_CXX=immediate
14897
# We cannot hardcode anything, or else we can only hardcode existing
14899
hardcode_action_CXX=unsupported
14901
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14902
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14904
if test "$hardcode_action_CXX" = relink; then
14905
# Fast installation is not supported
14906
enable_fast_install=no
14907
elif test "$shlibpath_overrides_runpath" = yes ||
14908
test "$enable_shared" = no; then
14909
# Fast installation is not necessary
14910
enable_fast_install=needless
14914
# The else clause should only fire when bootstrapping the
14915
# libtool distribution, otherwise you forgot to ship ltmain.sh
14916
# with your package, and you will get complaints that there are
14917
# no rules to generate ltmain.sh.
14918
if test -f "$ltmain"; then
14919
# See if we are running on zsh, and set the options which allow our commands through
14920
# without removal of \ escapes.
14921
if test -n "${ZSH_VERSION+set}" ; then
14922
setopt NO_GLOB_SUBST
14924
# Now quote all the things that may contain metacharacters while being
14925
# careful not to overquote the AC_SUBSTed values. We take copies of the
14926
# variables and quote the copies for generation of the libtool script.
14927
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14929
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14930
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14931
deplibs_check_method reload_flag reload_cmds need_locks \
14932
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14933
lt_cv_sys_global_symbol_to_c_name_address \
14934
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14935
old_postinstall_cmds old_postuninstall_cmds \
14939
lt_prog_compiler_wl_CXX \
14940
lt_prog_compiler_pic_CXX \
14941
lt_prog_compiler_static_CXX \
14942
lt_prog_compiler_no_builtin_flag_CXX \
14943
export_dynamic_flag_spec_CXX \
14944
thread_safe_flag_spec_CXX \
14945
whole_archive_flag_spec_CXX \
14946
enable_shared_with_static_runtimes_CXX \
14947
old_archive_cmds_CXX \
14948
old_archive_from_new_cmds_CXX \
14949
predep_objects_CXX \
14950
postdep_objects_CXX \
14953
compiler_lib_search_path_CXX \
14954
compiler_lib_search_dirs_CXX \
14956
archive_expsym_cmds_CXX \
14957
postinstall_cmds_CXX \
14958
postuninstall_cmds_CXX \
14959
old_archive_from_expsyms_cmds_CXX \
14960
allow_undefined_flag_CXX \
14961
no_undefined_flag_CXX \
14962
export_symbols_cmds_CXX \
14963
hardcode_libdir_flag_spec_CXX \
14964
hardcode_libdir_flag_spec_ld_CXX \
14965
hardcode_libdir_separator_CXX \
14966
hardcode_automatic_CXX \
14968
module_expsym_cmds_CXX \
14969
lt_cv_prog_compiler_c_o_CXX \
14970
fix_srcfile_path_CXX \
14971
exclude_expsyms_CXX \
14972
include_expsyms_CXX; do
14975
old_archive_cmds_CXX | \
14976
old_archive_from_new_cmds_CXX | \
14977
archive_cmds_CXX | \
14978
archive_expsym_cmds_CXX | \
14979
module_cmds_CXX | \
14980
module_expsym_cmds_CXX | \
14981
old_archive_from_expsyms_cmds_CXX | \
14982
export_symbols_cmds_CXX | \
14983
extract_expsyms_cmds | reload_cmds | finish_cmds | \
14984
postinstall_cmds | postuninstall_cmds | \
14985
old_postinstall_cmds | old_postuninstall_cmds | \
14986
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14987
# Double-quote double-evaled strings.
14988
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14991
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14997
*'\$0 --fallback-echo"')
14998
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15004
cat <<__EOF__ >> "$cfgfile"
15005
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15007
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15009
# Shell to use when invoking shell scripts.
15012
# Whether or not to build shared libraries.
15013
build_libtool_libs=$enable_shared
15015
# Whether or not to build static libraries.
15016
build_old_libs=$enable_static
15018
# Whether or not to add -lc for building shared libraries.
15019
build_libtool_need_lc=$archive_cmds_need_lc_CXX
15021
# Whether or not to disallow shared libs when runtime libs are static
15022
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15024
# Whether or not to optimize for fast installation.
15025
fast_install=$enable_fast_install
15028
host_alias=$host_alias
15032
# The build system.
15033
build_alias=$build_alias
15037
# An echo program that does not interpret backslashes.
15042
AR_FLAGS=$lt_AR_FLAGS
15047
# LTCC compiler flags.
15048
LTCFLAGS=$lt_LTCFLAGS
15050
# A language-specific compiler.
15051
CC=$lt_compiler_CXX
15053
# Is the compiler the GNU C compiler?
15059
# The linker used to build libraries.
15062
# Whether we need hard or soft links.
15065
# A BSD-compatible nm program.
15068
# A symbol stripping program
15071
# Used to examine libraries when file_magic_cmd begins "file"
15072
MAGIC_CMD=$MAGIC_CMD
15074
# Used on cygwin: DLL creation program.
15077
# Used on cygwin: object dumper.
15080
# Used on cygwin: assembler.
15083
# The name of the directory that contains temporary libtool files.
15086
# How to create reloadable object files.
15087
reload_flag=$lt_reload_flag
15088
reload_cmds=$lt_reload_cmds
15090
# How to pass a linker flag through the compiler.
15091
wl=$lt_lt_prog_compiler_wl_CXX
15093
# Object file suffix (normally "o").
15094
objext="$ac_objext"
15096
# Old archive suffix (normally "a").
15099
# Shared library suffix (normally ".so").
15100
shrext_cmds='$shrext_cmds'
15102
# Executable file suffix (normally "").
15105
# Additional compiler flags for building library objects.
15106
pic_flag=$lt_lt_prog_compiler_pic_CXX
15109
# What is the maximum length of a command?
15110
max_cmd_len=$lt_cv_sys_max_cmd_len
15112
# Does compiler simultaneously support -c and -o options?
15113
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15115
# Must we lock files when doing compilation?
15116
need_locks=$lt_need_locks
15118
# Do we need the lib prefix for modules?
15119
need_lib_prefix=$need_lib_prefix
15121
# Do we need a version for libraries?
15122
need_version=$need_version
15124
# Whether dlopen is supported.
15125
dlopen_support=$enable_dlopen
15127
# Whether dlopen of programs is supported.
15128
dlopen_self=$enable_dlopen_self
15130
# Whether dlopen of statically linked programs is supported.
15131
dlopen_self_static=$enable_dlopen_self_static
15133
# Compiler flag to prevent dynamic linking.
15134
link_static_flag=$lt_lt_prog_compiler_static_CXX
15136
# Compiler flag to turn off builtin functions.
15137
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15139
# Compiler flag to allow reflexive dlopens.
15140
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15142
# Compiler flag to generate shared objects directly from archives.
15143
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15145
# Compiler flag to generate thread-safe objects.
15146
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15148
# Library versioning type.
15149
version_type=$version_type
15151
# Format of library name prefix.
15152
libname_spec=$lt_libname_spec
15154
# List of archive names. First name is the real one, the rest are links.
15155
# The last name is the one that the linker finds with -lNAME.
15156
library_names_spec=$lt_library_names_spec
15158
# The coded name of the library, if different from the real name.
15159
soname_spec=$lt_soname_spec
15161
# Commands used to build and install an old-style archive.
15163
old_archive_cmds=$lt_old_archive_cmds_CXX
15164
old_postinstall_cmds=$lt_old_postinstall_cmds
15165
old_postuninstall_cmds=$lt_old_postuninstall_cmds
15167
# Create an old-style archive from a shared archive.
15168
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15170
# Create a temporary old-style archive to link instead of a shared archive.
15171
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15173
# Commands used to build and install a shared archive.
15174
archive_cmds=$lt_archive_cmds_CXX
15175
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15176
postinstall_cmds=$lt_postinstall_cmds
15177
postuninstall_cmds=$lt_postuninstall_cmds
15179
# Commands used to build a loadable module (assumed same as above if empty)
15180
module_cmds=$lt_module_cmds_CXX
15181
module_expsym_cmds=$lt_module_expsym_cmds_CXX
15183
# Commands to strip libraries.
15184
old_striplib=$lt_old_striplib
15185
striplib=$lt_striplib
15187
# Dependencies to place before the objects being linked to create a
15189
predep_objects=$lt_predep_objects_CXX
15191
# Dependencies to place after the objects being linked to create a
15193
postdep_objects=$lt_postdep_objects_CXX
15195
# Dependencies to place before the objects being linked to create a
15197
predeps=$lt_predeps_CXX
15199
# Dependencies to place after the objects being linked to create a
15201
postdeps=$lt_postdeps_CXX
15203
# The directories searched by this compiler when creating a shared
15205
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
15207
# The library search path used internally by the compiler when linking
15208
# a shared library.
15209
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15211
# Method to check whether dependent libraries are shared objects.
15212
deplibs_check_method=$lt_deplibs_check_method
15214
# Command to use when deplibs_check_method == file_magic.
15215
file_magic_cmd=$lt_file_magic_cmd
15217
# Flag that allows shared libraries with undefined symbols to be built.
15218
allow_undefined_flag=$lt_allow_undefined_flag_CXX
15220
# Flag that forces no undefined symbols.
15221
no_undefined_flag=$lt_no_undefined_flag_CXX
15223
# Commands used to finish a libtool library installation in a directory.
15224
finish_cmds=$lt_finish_cmds
15226
# Same as above, but a single script fragment to be evaled but not shown.
15227
finish_eval=$lt_finish_eval
15229
# Take the output of nm and produce a listing of raw symbols and C names.
15230
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15232
# Transform the output of nm in a proper C declaration
15233
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15235
# Transform the output of nm in a C name address pair
15236
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15238
# This is the shared library runtime path variable.
15239
runpath_var=$runpath_var
15241
# This is the shared library path variable.
15242
shlibpath_var=$shlibpath_var
15244
# Is shlibpath searched before the hard-coded library search path?
15245
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15247
# How to hardcode a shared library path into an executable.
15248
hardcode_action=$hardcode_action_CXX
15250
# Whether we should hardcode library paths into libraries.
15251
hardcode_into_libs=$hardcode_into_libs
15253
# Flag to hardcode \$libdir into a binary during linking.
15254
# This must work even if \$libdir does not exist.
15255
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15257
# If ld is used when linking, flag to hardcode \$libdir into
15258
# a binary during linking. This must work even if \$libdir does
15260
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15262
# Whether we need a single -rpath flag with a separated argument.
15263
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15265
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15266
# resulting binary.
15267
hardcode_direct=$hardcode_direct_CXX
15269
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15270
# resulting binary.
15271
hardcode_minus_L=$hardcode_minus_L_CXX
15273
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15274
# the resulting binary.
15275
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15277
# Set to yes if building a shared library automatically hardcodes DIR into the library
15278
# and all subsequent libraries and executables linked against it.
15279
hardcode_automatic=$hardcode_automatic_CXX
15281
# Variables whose values should be saved in libtool wrapper scripts and
15282
# restored at relink time.
15283
variables_saved_for_relink="$variables_saved_for_relink"
15285
# Whether libtool must link a program against all its dependency libraries.
15286
link_all_deplibs=$link_all_deplibs_CXX
15288
# Compile-time system search path for libraries
15289
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15291
# Run-time system search path for libraries
15292
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15294
# Fix the shell variable \$srcfile for the compiler.
15295
fix_srcfile_path=$lt_fix_srcfile_path
15297
# Set to yes if exported symbols are required.
15298
always_export_symbols=$always_export_symbols_CXX
15300
# The commands to list exported symbols.
15301
export_symbols_cmds=$lt_export_symbols_cmds_CXX
15303
# The commands to extract the exported symbol list from a shared archive.
15304
extract_expsyms_cmds=$lt_extract_expsyms_cmds
15306
# Symbols that should not be listed in the preloaded symbols.
15307
exclude_expsyms=$lt_exclude_expsyms_CXX
15309
# Symbols that must always be exported.
15310
include_expsyms=$lt_include_expsyms_CXX
15312
# ### END LIBTOOL TAG CONFIG: $tagname
15318
# If there is no Makefile yet, we rely on a make rule to execute
15319
# `config.status --recheck' to rerun these tests and create the
15320
# libtool script then.
15321
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15322
if test -f "$ltmain_in"; then
15323
test -f Makefile && make "$ltmain"
15329
ac_cpp='$CPP $CPPFLAGS'
15330
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15331
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15332
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15338
with_gnu_ldcxx=$with_gnu_ld
15339
with_gnu_ld=$lt_save_with_gnu_ld
15340
lt_cv_path_LDCXX=$lt_cv_path_LD
15341
lt_cv_path_LD=$lt_save_path_LD
15342
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15343
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15351
if test -n "$F77" && test "X$F77" != "Xno"; then
15354
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15355
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15356
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15359
archive_cmds_need_lc_F77=no
15360
allow_undefined_flag_F77=
15361
always_export_symbols_F77=no
15362
archive_expsym_cmds_F77=
15363
export_dynamic_flag_spec_F77=
15364
hardcode_direct_F77=no
15365
hardcode_libdir_flag_spec_F77=
15366
hardcode_libdir_flag_spec_ld_F77=
15367
hardcode_libdir_separator_F77=
15368
hardcode_minus_L_F77=no
15369
hardcode_automatic_F77=no
15371
module_expsym_cmds_F77=
15372
link_all_deplibs_F77=unknown
15373
old_archive_cmds_F77=$old_archive_cmds
15374
no_undefined_flag_F77=
15375
whole_archive_flag_spec_F77=
15376
enable_shared_with_static_runtimes_F77=no
15378
# Source file extension for f77 test sources.
15381
# Object file extension for compiled f77 test sources.
15385
# Code to be used in simple compile tests
15386
lt_simple_compile_test_code="\
15392
# Code to be used in simple link tests
15393
lt_simple_link_test_code="\
15398
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15400
# If no C compiler was specified, use CC.
15403
# If no C compiler flags were specified, use CFLAGS.
15404
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15406
# Allow CC to be a program name with arguments.
15410
# save warnings/boilerplate of simple test code
15411
ac_outfile=conftest.$ac_objext
15412
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15413
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15414
_lt_compiler_boilerplate=`cat conftest.err`
15417
ac_outfile=conftest.$ac_objext
15418
echo "$lt_simple_link_test_code" >conftest.$ac_ext
15419
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15420
_lt_linker_boilerplate=`cat conftest.err`
15424
# Allow CC to be a program name with arguments.
15429
for cc_temp in $compiler""; do
15431
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15432
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15437
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15440
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15441
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15442
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
15443
echo "${ECHO_T}$can_build_shared" >&6; }
15445
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15446
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15447
test "$can_build_shared" = "no" && enable_shared=no
15449
# On AIX, shared libraries and static libraries use the same namespace, and
15450
# are all built from PIC.
15453
test "$enable_shared" = yes && enable_static=no
15454
if test -n "$RANLIB"; then
15455
archive_cmds="$archive_cmds~\$RANLIB \$lib"
15456
postinstall_cmds='$RANLIB $lib'
15460
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15461
test "$enable_shared" = yes && enable_static=no
15465
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
15466
echo "${ECHO_T}$enable_shared" >&6; }
15468
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15469
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15470
# Make sure either enable_shared or enable_static is yes.
15471
test "$enable_shared" = yes || enable_static=yes
15472
{ echo "$as_me:$LINENO: result: $enable_static" >&5
15473
echo "${ECHO_T}$enable_static" >&6; }
15478
lt_prog_compiler_wl_F77=
15479
lt_prog_compiler_pic_F77=
15480
lt_prog_compiler_static_F77=
15482
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15483
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15485
if test "$GCC" = yes; then
15486
lt_prog_compiler_wl_F77='-Wl,'
15487
lt_prog_compiler_static_F77='-static'
15491
# All AIX code is PIC.
15492
if test "$host_cpu" = ia64; then
15493
# AIX 5 now supports IA64 processor
15494
lt_prog_compiler_static_F77='-Bstatic'
15499
# FIXME: we need at least 68020 code to build shared libraries, but
15500
# adding the `-m68020' flag to GCC prevents building anything better,
15502
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15505
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15506
# PIC is the default for these OSes.
15509
mingw* | cygwin* | pw32* | os2*)
15510
# This hack is so that the source file can tell whether it is being
15511
# built for inclusion in a dll (and should export symbols for example).
15512
# Although the cygwin gcc ignores -fPIC, still need this for old-style
15513
# (--disable-auto-import) libraries
15514
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15517
darwin* | rhapsody*)
15518
# PIC is the default on this platform
15519
# Common symbols not allowed in MH_DYLIB files
15520
lt_prog_compiler_pic_F77='-fno-common'
15524
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
15525
# Instead, we relocate shared libraries at runtime.
15529
# Just because we use GCC doesn't mean we suddenly get shared libraries
15530
# on systems that don't support them.
15531
lt_prog_compiler_can_build_shared_F77=no
15536
if test -d /usr/nec; then
15537
lt_prog_compiler_pic_F77=-Kconform_pic
15542
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15543
# not for PA HP-UX.
15549
lt_prog_compiler_pic_F77='-fPIC'
15555
lt_prog_compiler_pic_F77='-fPIC'
15559
# PORTME Check for flag to pass linker flags through the system compiler.
15562
lt_prog_compiler_wl_F77='-Wl,'
15563
if test "$host_cpu" = ia64; then
15564
# AIX 5 now supports IA64 processor
15565
lt_prog_compiler_static_F77='-Bstatic'
15567
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15571
# PIC is the default on this platform
15572
# Common symbols not allowed in MH_DYLIB files
15573
case $cc_basename in
15575
lt_prog_compiler_pic_F77='-qnocommon'
15576
lt_prog_compiler_wl_F77='-Wl,'
15581
mingw* | cygwin* | pw32* | os2*)
15582
# This hack is so that the source file can tell whether it is being
15583
# built for inclusion in a dll (and should export symbols for example).
15584
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15587
hpux9* | hpux10* | hpux11*)
15588
lt_prog_compiler_wl_F77='-Wl,'
15589
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15590
# not for PA HP-UX.
15596
lt_prog_compiler_pic_F77='+Z'
15599
# Is there a better lt_prog_compiler_static that works with the bundled CC?
15600
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15603
irix5* | irix6* | nonstopux*)
15604
lt_prog_compiler_wl_F77='-Wl,'
15605
# PIC (with -KPIC) is the default.
15606
lt_prog_compiler_static_F77='-non_shared'
15610
lt_prog_compiler_pic_F77='-KPIC'
15611
lt_prog_compiler_static_F77='-Bstatic'
15614
linux* | k*bsd*-gnu)
15615
case $cc_basename in
15617
lt_prog_compiler_wl_F77='-Wl,'
15618
lt_prog_compiler_pic_F77='-KPIC'
15619
lt_prog_compiler_static_F77='-static'
15621
pgcc* | pgf77* | pgf90* | pgf95*)
15622
# Portland Group compilers (*not* the Pentium gcc compiler,
15623
# which looks to be a dead project)
15624
lt_prog_compiler_wl_F77='-Wl,'
15625
lt_prog_compiler_pic_F77='-fpic'
15626
lt_prog_compiler_static_F77='-Bstatic'
15629
lt_prog_compiler_wl_F77='-Wl,'
15630
# All Alpha code is PIC.
15631
lt_prog_compiler_static_F77='-non_shared'
15634
case `$CC -V 2>&1 | sed 5q` in
15637
lt_prog_compiler_pic_F77='-KPIC'
15638
lt_prog_compiler_static_F77='-Bstatic'
15639
lt_prog_compiler_wl_F77='-Wl,'
15642
# Sun Fortran 8.3 passes all unrecognized flags to the linker
15643
lt_prog_compiler_pic_F77='-KPIC'
15644
lt_prog_compiler_static_F77='-Bstatic'
15645
lt_prog_compiler_wl_F77=''
15652
osf3* | osf4* | osf5*)
15653
lt_prog_compiler_wl_F77='-Wl,'
15654
# All OSF/1 code is PIC.
15655
lt_prog_compiler_static_F77='-non_shared'
15659
lt_prog_compiler_static_F77='-non_shared'
15663
lt_prog_compiler_pic_F77='-KPIC'
15664
lt_prog_compiler_static_F77='-Bstatic'
15665
case $cc_basename in
15666
f77* | f90* | f95*)
15667
lt_prog_compiler_wl_F77='-Qoption ld ';;
15669
lt_prog_compiler_wl_F77='-Wl,';;
15674
lt_prog_compiler_wl_F77='-Qoption ld '
15675
lt_prog_compiler_pic_F77='-PIC'
15676
lt_prog_compiler_static_F77='-Bstatic'
15679
sysv4 | sysv4.2uw2* | sysv4.3*)
15680
lt_prog_compiler_wl_F77='-Wl,'
15681
lt_prog_compiler_pic_F77='-KPIC'
15682
lt_prog_compiler_static_F77='-Bstatic'
15686
if test -d /usr/nec ;then
15687
lt_prog_compiler_pic_F77='-Kconform_pic'
15688
lt_prog_compiler_static_F77='-Bstatic'
15692
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15693
lt_prog_compiler_wl_F77='-Wl,'
15694
lt_prog_compiler_pic_F77='-KPIC'
15695
lt_prog_compiler_static_F77='-Bstatic'
15699
lt_prog_compiler_wl_F77='-Wl,'
15700
lt_prog_compiler_can_build_shared_F77=no
15704
lt_prog_compiler_pic_F77='-pic'
15705
lt_prog_compiler_static_F77='-Bstatic'
15709
lt_prog_compiler_can_build_shared_F77=no
15714
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15715
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15718
# Check to make sure the PIC flag actually works.
15720
if test -n "$lt_prog_compiler_pic_F77"; then
15722
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15723
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15724
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
15725
echo $ECHO_N "(cached) $ECHO_C" >&6
15727
lt_cv_prog_compiler_pic_works_F77=no
15728
ac_outfile=conftest.$ac_objext
15729
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15730
lt_compiler_flag="$lt_prog_compiler_pic_F77"
15731
# Insert the option either (1) after the last *FLAGS variable, or
15732
# (2) before a word containing "conftest.", or (3) at the end.
15733
# Note that $ac_compile itself does not contain backslashes and begins
15734
# with a dollar sign (not a hyphen), so the echo should work correctly.
15735
# The option is referenced via a variable to avoid confusing sed.
15736
lt_compile=`echo "$ac_compile" | $SED \
15737
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15738
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15739
-e 's:$: $lt_compiler_flag:'`
15740
(eval echo "\"\$as_me:15740: $lt_compile\"" >&5)
15741
(eval "$lt_compile" 2>conftest.err)
15743
cat conftest.err >&5
15744
echo "$as_me:15744: \$? = $ac_status" >&5
15745
if (exit $ac_status) && test -s "$ac_outfile"; then
15746
# The compiler can only warn and ignore the option if not recognized
15747
# So say no if there are warnings other than the usual output.
15748
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15749
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15750
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15751
lt_cv_prog_compiler_pic_works_F77=yes
15757
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
15758
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
15760
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
15761
case $lt_prog_compiler_pic_F77 in
15763
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15766
lt_prog_compiler_pic_F77=
15767
lt_prog_compiler_can_build_shared_F77=no
15772
# For platforms which do not support PIC, -DPIC is meaningless:
15774
lt_prog_compiler_pic_F77=
15777
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15782
# Check to make sure the static flag actually works.
15784
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15785
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15786
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15787
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
15788
echo $ECHO_N "(cached) $ECHO_C" >&6
15790
lt_cv_prog_compiler_static_works_F77=no
15791
save_LDFLAGS="$LDFLAGS"
15792
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15793
echo "$lt_simple_link_test_code" > conftest.$ac_ext
15794
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15795
# The linker can only warn and ignore the option if not recognized
15796
# So say no if there are warnings
15797
if test -s conftest.err; then
15798
# Append any errors to the config.log.
15799
cat conftest.err 1>&5
15800
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15801
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15802
if diff conftest.exp conftest.er2 >/dev/null; then
15803
lt_cv_prog_compiler_static_works_F77=yes
15806
lt_cv_prog_compiler_static_works_F77=yes
15810
LDFLAGS="$save_LDFLAGS"
15813
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
15814
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
15816
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
15819
lt_prog_compiler_static_F77=
15823
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15824
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15825
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15826
echo $ECHO_N "(cached) $ECHO_C" >&6
15828
lt_cv_prog_compiler_c_o_F77=no
15829
$rm -r conftest 2>/dev/null
15833
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15835
lt_compiler_flag="-o out/conftest2.$ac_objext"
15836
# Insert the option either (1) after the last *FLAGS variable, or
15837
# (2) before a word containing "conftest.", or (3) at the end.
15838
# Note that $ac_compile itself does not contain backslashes and begins
15839
# with a dollar sign (not a hyphen), so the echo should work correctly.
15840
lt_compile=`echo "$ac_compile" | $SED \
15841
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15842
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15843
-e 's:$: $lt_compiler_flag:'`
15844
(eval echo "\"\$as_me:15844: $lt_compile\"" >&5)
15845
(eval "$lt_compile" 2>out/conftest.err)
15847
cat out/conftest.err >&5
15848
echo "$as_me:15848: \$? = $ac_status" >&5
15849
if (exit $ac_status) && test -s out/conftest2.$ac_objext
15851
# The compiler can only warn and ignore the option if not recognized
15852
# So say no if there are warnings
15853
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15854
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15855
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15856
lt_cv_prog_compiler_c_o_F77=yes
15861
# SGI C++ compiler will create directory out/ii_files/ for
15862
# template instantiation
15863
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15864
$rm out/* && rmdir out
15870
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15871
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15874
hard_links="nottested"
15875
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15876
# do not overwrite the value of need_locks provided by the user
15877
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15878
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15881
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15883
ln conftest.a conftest.b 2>&5 || hard_links=no
15884
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15885
{ echo "$as_me:$LINENO: result: $hard_links" >&5
15886
echo "${ECHO_T}$hard_links" >&6; }
15887
if test "$hard_links" = no; then
15888
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15889
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15896
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15897
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15900
allow_undefined_flag_F77=
15901
enable_shared_with_static_runtimes_F77=no
15903
archive_expsym_cmds_F77=
15904
old_archive_From_new_cmds_F77=
15905
old_archive_from_expsyms_cmds_F77=
15906
export_dynamic_flag_spec_F77=
15907
whole_archive_flag_spec_F77=
15908
thread_safe_flag_spec_F77=
15909
hardcode_libdir_flag_spec_F77=
15910
hardcode_libdir_flag_spec_ld_F77=
15911
hardcode_libdir_separator_F77=
15912
hardcode_direct_F77=no
15913
hardcode_minus_L_F77=no
15914
hardcode_shlibpath_var_F77=unsupported
15915
link_all_deplibs_F77=unknown
15916
hardcode_automatic_F77=no
15918
module_expsym_cmds_F77=
15919
always_export_symbols_F77=no
15920
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15921
# include_expsyms should be a list of space-separated symbols to be *always*
15922
# included in the symbol list
15923
include_expsyms_F77=
15924
# exclude_expsyms can be an extended regexp of symbols to exclude
15925
# it will be wrapped by ` (' and `)$', so one must not match beginning or
15926
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15927
# as well as any symbol that contains `d'.
15928
exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15929
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15930
# platforms (ab)use it in PIC code, but their linkers get confused if
15931
# the symbol is explicitly referenced. Since portable code cannot
15932
# rely on this symbol name, it's probably fine to never include it in
15933
# preloaded symbol tables.
15934
# Exclude shared library initialization/finalization symbols.
15935
extract_expsyms_cmds=
15936
# Just being paranoid about ensuring that cc_basename is set.
15937
for cc_temp in $compiler""; do
15939
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15940
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15945
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15948
cygwin* | mingw* | pw32*)
15949
# FIXME: the MSVC++ port hasn't been tested in a loooong time
15950
# When not using gcc, we currently assume that we are using
15951
# Microsoft Visual C++.
15952
if test "$GCC" != yes; then
15957
# we just hope/assume this is gcc and not c89 (= MSVC++)
15966
if test "$with_gnu_ld" = yes; then
15967
# If archive_cmds runs LD, not CC, wlarc should be empty
15970
# Set some defaults for GNU ld with shared library support. These
15971
# are reset later if shared libraries are not supported. Putting them
15972
# here allows them to be overridden if necessary.
15973
runpath_var=LD_RUN_PATH
15974
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15975
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15976
# ancient GNU ld didn't support --whole-archive et. al.
15977
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15978
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15980
whole_archive_flag_spec_F77=
15982
supports_anon_versioning=no
15983
case `$LD -v 2>/dev/null` in
15984
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15985
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15986
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15987
*\ 2.11.*) ;; # other 2.11 versions
15988
*) supports_anon_versioning=yes ;;
15991
# See if GNU ld supports shared libraries.
15994
# On AIX/PPC, the GNU linker is very broken
15995
if test "$host_cpu" != ia64; then
15999
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16000
*** to be unable to reliably create shared libraries on AIX.
16001
*** Therefore, libtool is disabling shared libraries support. If you
16002
*** really care for shared libraries, you may want to modify your PATH
16003
*** so that a non-GNU linker is found, and then restart.
16010
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)'
16011
hardcode_libdir_flag_spec_F77='-L$libdir'
16012
hardcode_minus_L_F77=yes
16014
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16015
# that the semantics of dynamic libraries on AmigaOS, at least up
16016
# to version 4, is to share data among multiple programs linked
16017
# with the same dynamic library. Since this doesn't match the
16018
# behavior of shared libraries on other platforms, we can't use
16024
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16025
allow_undefined_flag_F77=unsupported
16026
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16027
# support --undefined. This deserves some investigation. FIXME
16028
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16034
cygwin* | mingw* | pw32*)
16035
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16036
# as there is no search path for DLLs.
16037
hardcode_libdir_flag_spec_F77='-L$libdir'
16038
allow_undefined_flag_F77=unsupported
16039
always_export_symbols_F77=no
16040
enable_shared_with_static_runtimes_F77=yes
16041
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16043
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16044
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16045
# If the export-symbols file already is a .def file (1st line
16046
# is EXPORTS), use it as is; otherwise, prepend...
16047
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16048
cp $export_symbols $output_objdir/$soname.def;
16050
echo EXPORTS > $output_objdir/$soname.def;
16051
cat $export_symbols >> $output_objdir/$soname.def;
16053
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16060
hardcode_direct_F77=no
16061
hardcode_shlibpath_var_F77=no
16062
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16063
export_dynamic_flag_spec_F77='${wl}-E'
16064
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16065
# Instead, shared libraries are loaded at an image base (0x10000000 by
16066
# default) and relocated if they conflict, which is a slow very memory
16067
# consuming and fragmenting process. To avoid this, we pick a random,
16068
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16069
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
16070
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'
16071
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'
16074
gnu* | linux* | k*bsd*-gnu)
16075
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16077
case $cc_basename,$host_cpu in
16078
pgcc*) # Portland Group C compiler
16079
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'
16080
tmp_addflag=' $pic_flag'
16082
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16083
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'
16084
tmp_addflag=' $pic_flag -Mnomain' ;;
16085
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16086
tmp_addflag=' -i_dynamic' ;;
16087
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16088
tmp_addflag=' -i_dynamic -nofor_main' ;;
16089
ifc* | ifort*) # Intel Fortran compiler
16090
tmp_addflag=' -nofor_main' ;;
16092
case `$CC -V 2>&1 | sed 5q` in
16093
*Sun\ C*) # Sun C 5.9
16094
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'
16095
tmp_sharedflag='-G' ;;
16096
*Sun\ F*) # Sun Fortran 8.3
16097
tmp_sharedflag='-G' ;;
16099
tmp_sharedflag='-shared' ;;
16101
archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16103
if test $supports_anon_versioning = yes; then
16104
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16105
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16106
$echo "local: *; };" >> $output_objdir/$libname.ver~
16107
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16109
link_all_deplibs_F77=no
16115
netbsd* | netbsdelf*-gnu)
16116
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16117
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16120
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16121
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16126
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16130
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16131
*** create shared libraries on Solaris systems. Therefore, libtool
16132
*** is disabling shared libraries support. We urge you to upgrade GNU
16133
*** binutils to release 2.9.1 or newer. Another option is to modify
16134
*** your PATH or compiler configuration so that the native linker is
16135
*** used, and then restart.
16138
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16139
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16140
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16146
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16147
case `$LD -v 2>&1` in
16148
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16152
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16153
*** reliably create shared libraries on SCO systems. Therefore, libtool
16154
*** is disabling shared libraries support. We urge you to upgrade GNU
16155
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16156
*** your PATH or compiler configuration so that the native linker is
16157
*** used, and then restart.
16162
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16163
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16164
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16165
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16174
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16176
hardcode_direct_F77=yes
16177
hardcode_shlibpath_var_F77=no
16181
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16182
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16183
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16190
if test "$ld_shlibs_F77" = no; then
16192
hardcode_libdir_flag_spec_F77=
16193
export_dynamic_flag_spec_F77=
16194
whole_archive_flag_spec_F77=
16197
# PORTME fill in a description of your system's linker (not GNU ld)
16200
allow_undefined_flag_F77=unsupported
16201
always_export_symbols_F77=yes
16202
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'
16203
# Note: this linker hardcodes the directories in LIBPATH if there
16204
# are no directories specified by -L.
16205
hardcode_minus_L_F77=yes
16206
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16207
# Neither direct hardcoding nor static linking is supported with a
16209
hardcode_direct_F77=unsupported
16214
if test "$host_cpu" = ia64; then
16215
# On IA64, the linker does run time linking by default, so we don't
16216
# have to do anything special.
16217
aix_use_runtimelinking=no
16218
exp_sym_flag='-Bexport'
16221
# If we're using GNU nm, then we don't want the "-C" option.
16222
# -C means demangle to AIX nm, but means don't demangle with GNU nm
16223
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16224
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'
16226
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'
16228
aix_use_runtimelinking=no
16230
# Test if we are trying to use run time linking or normal
16231
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16232
# need to do runtime linking.
16233
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16234
for ld_flag in $LDFLAGS; do
16235
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16236
aix_use_runtimelinking=yes
16243
exp_sym_flag='-bexport'
16244
no_entry_flag='-bnoentry'
16247
# When large executables or shared objects are built, AIX ld can
16248
# have problems creating the table of contents. If linking a library
16249
# or program results in "error TOC overflow" add -mminimal-toc to
16250
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16251
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16253
archive_cmds_F77=''
16254
hardcode_direct_F77=yes
16255
hardcode_libdir_separator_F77=':'
16256
link_all_deplibs_F77=yes
16258
if test "$GCC" = yes; then
16259
case $host_os in aix4.[012]|aix4.[012].*)
16260
# We only want to do this on AIX 4.2 and lower, the check
16261
# below for broken collect2 doesn't work under 4.3+
16262
collect2name=`${CC} -print-prog-name=collect2`
16263
if test -f "$collect2name" && \
16264
strings "$collect2name" | grep resolve_lib_name >/dev/null
16266
# We have reworked collect2
16269
# We have old collect2
16270
hardcode_direct_F77=unsupported
16271
# It fails to find uninstalled libraries when the uninstalled
16272
# path is not listed in the libpath. Setting hardcode_minus_L
16273
# to unsupported forces relinking
16274
hardcode_minus_L_F77=yes
16275
hardcode_libdir_flag_spec_F77='-L$libdir'
16276
hardcode_libdir_separator_F77=
16280
shared_flag='-shared'
16281
if test "$aix_use_runtimelinking" = yes; then
16282
shared_flag="$shared_flag "'${wl}-G'
16286
if test "$host_cpu" = ia64; then
16287
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16288
# chokes on -Wl,-G. The following line is correct:
16291
if test "$aix_use_runtimelinking" = yes; then
16292
shared_flag='${wl}-G'
16294
shared_flag='${wl}-bM:SRE'
16299
# It seems that -bexpall does not export symbols beginning with
16300
# underscore (_), so it is better to generate a list of symbols to export.
16301
always_export_symbols_F77=yes
16302
if test "$aix_use_runtimelinking" = yes; then
16303
# Warning - without using the other runtime loading flags (-brtl),
16304
# -berok will link without error, but may produce a broken library.
16305
allow_undefined_flag_F77='-berok'
16306
# Determine the default libpath from the value encoded in an empty executable.
16307
cat >conftest.$ac_ext <<_ACEOF
16312
rm -f conftest.$ac_objext conftest$ac_exeext
16313
if { (ac_try="$ac_link"
16314
case "(($ac_try" in
16315
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16316
*) ac_try_echo=$ac_try;;
16318
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16319
(eval "$ac_link") 2>conftest.er1
16321
grep -v '^ *+' conftest.er1 >conftest.err
16323
cat conftest.err >&5
16324
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325
(exit $ac_status); } && {
16326
test -z "$ac_f77_werror_flag" ||
16327
test ! -s conftest.err
16328
} && test -s conftest$ac_exeext &&
16329
$as_test_x conftest$ac_exeext; then
16331
lt_aix_libpath_sed='
16332
/Import File Strings/,/^$/ {
16338
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16339
# Check for a 64-bit object if we didn't find anything.
16340
if test -z "$aix_libpath"; then
16341
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16344
echo "$as_me: failed program was:" >&5
16345
sed 's/^/| /' conftest.$ac_ext >&5
16350
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16351
conftest$ac_exeext conftest.$ac_ext
16352
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16354
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16355
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"
16357
if test "$host_cpu" = ia64; then
16358
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16359
allow_undefined_flag_F77="-z nodefs"
16360
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"
16362
# Determine the default libpath from the value encoded in an empty executable.
16363
cat >conftest.$ac_ext <<_ACEOF
16368
rm -f conftest.$ac_objext conftest$ac_exeext
16369
if { (ac_try="$ac_link"
16370
case "(($ac_try" in
16371
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16372
*) ac_try_echo=$ac_try;;
16374
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16375
(eval "$ac_link") 2>conftest.er1
16377
grep -v '^ *+' conftest.er1 >conftest.err
16379
cat conftest.err >&5
16380
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381
(exit $ac_status); } && {
16382
test -z "$ac_f77_werror_flag" ||
16383
test ! -s conftest.err
16384
} && test -s conftest$ac_exeext &&
16385
$as_test_x conftest$ac_exeext; then
16387
lt_aix_libpath_sed='
16388
/Import File Strings/,/^$/ {
16394
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16395
# Check for a 64-bit object if we didn't find anything.
16396
if test -z "$aix_libpath"; then
16397
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16400
echo "$as_me: failed program was:" >&5
16401
sed 's/^/| /' conftest.$ac_ext >&5
16406
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16407
conftest$ac_exeext conftest.$ac_ext
16408
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16410
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16411
# Warning - without using the other run time loading flags,
16412
# -berok will link without error, but may produce a broken library.
16413
no_undefined_flag_F77=' ${wl}-bernotok'
16414
allow_undefined_flag_F77=' ${wl}-berok'
16415
# Exported symbols can be pulled into shared objects from archives
16416
whole_archive_flag_spec_F77='$convenience'
16417
archive_cmds_need_lc_F77=yes
16418
# This is similar to how AIX traditionally builds its shared libraries.
16419
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'
16425
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)'
16426
hardcode_libdir_flag_spec_F77='-L$libdir'
16427
hardcode_minus_L_F77=yes
16428
# see comment about different semantics on the GNU ld section
16433
export_dynamic_flag_spec_F77=-rdynamic
16436
cygwin* | mingw* | pw32*)
16437
# When not using gcc, we currently assume that we are using
16438
# Microsoft Visual C++.
16439
# hardcode_libdir_flag_spec is actually meaningless, as there is
16440
# no search path for DLLs.
16441
hardcode_libdir_flag_spec_F77=' '
16442
allow_undefined_flag_F77=unsupported
16443
# Tell ltmain to make .lib files, not .a files.
16445
# Tell ltmain to make .dll files, not .so files.
16447
# FIXME: Setting linknames here is a bad hack.
16448
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16449
# The linker will automatically build a .lib file if we build a DLL.
16450
old_archive_From_new_cmds_F77='true'
16451
# FIXME: Should let the user specify the lib program.
16452
old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
16453
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16454
enable_shared_with_static_runtimes_F77=yes
16457
darwin* | rhapsody*)
16459
rhapsody* | darwin1.[012])
16460
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16463
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16464
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16466
case ${MACOSX_DEPLOYMENT_TARGET} in
16468
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16471
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16477
archive_cmds_need_lc_F77=no
16478
hardcode_direct_F77=no
16479
hardcode_automatic_F77=yes
16480
hardcode_shlibpath_var_F77=unsupported
16481
whole_archive_flag_spec_F77=''
16482
link_all_deplibs_F77=yes
16483
if test "$GCC" = yes ; then
16484
output_verbose_link_cmd='echo'
16485
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}"
16486
module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16487
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}"
16488
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}"
16490
case $cc_basename in
16492
output_verbose_link_cmd='echo'
16493
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16494
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16495
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16496
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}'
16497
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}'
16507
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16508
hardcode_libdir_flag_spec_F77='-L$libdir'
16509
hardcode_shlibpath_var_F77=no
16516
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16517
# support. Future versions do this automatically, but an explicit c++rt0.o
16518
# does not break anything, and helps significantly (at the cost of a little
16521
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16522
hardcode_libdir_flag_spec_F77='-R$libdir'
16523
hardcode_direct_F77=yes
16524
hardcode_shlibpath_var_F77=no
16527
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
16529
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16530
hardcode_direct_F77=yes
16531
hardcode_minus_L_F77=yes
16532
hardcode_shlibpath_var_F77=no
16535
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16536
freebsd* | dragonfly*)
16537
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16538
hardcode_libdir_flag_spec_F77='-R$libdir'
16539
hardcode_direct_F77=yes
16540
hardcode_shlibpath_var_F77=no
16544
if test "$GCC" = yes; then
16545
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'
16547
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'
16549
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16550
hardcode_libdir_separator_F77=:
16551
hardcode_direct_F77=yes
16553
# hardcode_minus_L: Not really in the search PATH,
16554
# but as the default location of the library.
16555
hardcode_minus_L_F77=yes
16556
export_dynamic_flag_spec_F77='${wl}-E'
16560
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16561
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16563
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16565
if test "$with_gnu_ld" = no; then
16566
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16567
hardcode_libdir_separator_F77=:
16569
hardcode_direct_F77=yes
16570
export_dynamic_flag_spec_F77='${wl}-E'
16572
# hardcode_minus_L: Not really in the search PATH,
16573
# but as the default location of the library.
16574
hardcode_minus_L_F77=yes
16579
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16582
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16585
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16588
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16594
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16597
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16600
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16604
if test "$with_gnu_ld" = no; then
16605
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16606
hardcode_libdir_separator_F77=:
16610
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16611
hardcode_direct_F77=no
16612
hardcode_shlibpath_var_F77=no
16615
hardcode_direct_F77=yes
16616
export_dynamic_flag_spec_F77='${wl}-E'
16618
# hardcode_minus_L: Not really in the search PATH,
16619
# but as the default location of the library.
16620
hardcode_minus_L_F77=yes
16626
irix5* | irix6* | nonstopux*)
16627
if test "$GCC" = yes; then
16628
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'
16630
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'
16631
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16633
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16634
hardcode_libdir_separator_F77=:
16635
link_all_deplibs_F77=yes
16638
netbsd* | netbsdelf*-gnu)
16639
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16640
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16642
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16644
hardcode_libdir_flag_spec_F77='-R$libdir'
16645
hardcode_direct_F77=yes
16646
hardcode_shlibpath_var_F77=no
16650
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16651
hardcode_direct_F77=yes
16652
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16653
hardcode_libdir_separator_F77=:
16654
hardcode_shlibpath_var_F77=no
16658
if test -f /usr/libexec/ld.so; then
16659
hardcode_direct_F77=yes
16660
hardcode_shlibpath_var_F77=no
16661
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16662
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16663
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16664
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16665
export_dynamic_flag_spec_F77='${wl}-E'
16668
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16669
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16670
hardcode_libdir_flag_spec_F77='-R$libdir'
16673
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16674
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16684
hardcode_libdir_flag_spec_F77='-L$libdir'
16685
hardcode_minus_L_F77=yes
16686
allow_undefined_flag_F77=unsupported
16687
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'
16688
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16692
if test "$GCC" = yes; then
16693
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16694
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'
16696
allow_undefined_flag_F77=' -expect_unresolved \*'
16697
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'
16699
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16700
hardcode_libdir_separator_F77=:
16703
osf4* | osf5*) # as osf3* with the addition of -msym flag
16704
if test "$GCC" = yes; then
16705
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16706
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'
16707
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16709
allow_undefined_flag_F77=' -expect_unresolved \*'
16710
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'
16711
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~
16712
$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'
16714
# Both c and cxx compiler support -rpath directly
16715
hardcode_libdir_flag_spec_F77='-rpath $libdir'
16717
hardcode_libdir_separator_F77=:
16721
no_undefined_flag_F77=' -z text'
16722
if test "$GCC" = yes; then
16724
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16725
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16726
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16729
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16730
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16731
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16733
hardcode_libdir_flag_spec_F77='-R$libdir'
16734
hardcode_shlibpath_var_F77=no
16736
solaris2.[0-5] | solaris2.[0-5].*) ;;
16738
# The compiler driver will combine and reorder linker options,
16739
# but understands `-z linker_flag'. GCC discards it without `$wl',
16740
# but is careful enough not to reorder.
16741
# Supported since Solaris 2.6 (maybe 2.5.1?)
16742
if test "$GCC" = yes; then
16743
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16745
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
16749
link_all_deplibs_F77=yes
16753
if test "x$host_vendor" = xsequent; then
16754
# Use $CC to link under sequent, because it throws in some extra .o
16755
# files that make .init and .fini sections work.
16756
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16758
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16760
hardcode_libdir_flag_spec_F77='-L$libdir'
16761
hardcode_direct_F77=yes
16762
hardcode_minus_L_F77=yes
16763
hardcode_shlibpath_var_F77=no
16767
case $host_vendor in
16769
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16770
hardcode_direct_F77=yes # is this really true???
16773
## LD is ld it makes a PLAMLIB
16774
## CC just makes a GrossModule.
16775
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16776
reload_cmds_F77='$CC -r -o $output$reload_objs'
16777
hardcode_direct_F77=no
16780
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16781
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16784
runpath_var='LD_RUN_PATH'
16785
hardcode_shlibpath_var_F77=no
16789
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16790
hardcode_shlibpath_var_F77=no
16791
export_dynamic_flag_spec_F77='-Bexport'
16795
if test -d /usr/nec; then
16796
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16797
hardcode_shlibpath_var_F77=no
16798
runpath_var=LD_RUN_PATH
16799
hardcode_runpath_var=yes
16804
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16805
no_undefined_flag_F77='${wl}-z,text'
16806
archive_cmds_need_lc_F77=no
16807
hardcode_shlibpath_var_F77=no
16808
runpath_var='LD_RUN_PATH'
16810
if test "$GCC" = yes; then
16811
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16812
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16814
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16815
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16819
sysv5* | sco3.2v5* | sco5v6*)
16820
# Note: We can NOT use -z defs as we might desire, because we do not
16821
# link with -lc, and that would cause any symbols used from libc to
16822
# always be unresolved, which means just about no library would
16823
# ever link correctly. If we're not using GNU ld we use -z text
16824
# though, which does catch some bad symbols but isn't as heavy-handed
16826
no_undefined_flag_F77='${wl}-z,text'
16827
allow_undefined_flag_F77='${wl}-z,nodefs'
16828
archive_cmds_need_lc_F77=no
16829
hardcode_shlibpath_var_F77=no
16830
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16831
hardcode_libdir_separator_F77=':'
16832
link_all_deplibs_F77=yes
16833
export_dynamic_flag_spec_F77='${wl}-Bexport'
16834
runpath_var='LD_RUN_PATH'
16836
if test "$GCC" = yes; then
16837
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16838
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16840
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16841
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16846
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16847
hardcode_libdir_flag_spec_F77='-L$libdir'
16848
hardcode_shlibpath_var_F77=no
16857
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16858
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16859
test "$ld_shlibs_F77" = no && can_build_shared=no
16862
# Do we need to explicitly link libc?
16864
case "x$archive_cmds_need_lc_F77" in
16866
# Assume -lc should be added
16867
archive_cmds_need_lc_F77=yes
16869
if test "$enable_shared" = yes && test "$GCC" = yes; then
16870
case $archive_cmds_F77 in
16872
# FIXME: we may have to deal with multi-command sequences.
16875
# Test whether the compiler implicitly links with -lc since on some
16876
# systems, -lgcc has to come before -lc. If gcc already passes -lc
16877
# to ld, don't add -lc before -lgcc.
16878
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16879
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16881
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16883
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16884
(eval $ac_compile) 2>&5
16886
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16887
(exit $ac_status); } 2>conftest.err; then
16890
libobjs=conftest.$ac_objext
16892
wl=$lt_prog_compiler_wl_F77
16893
pic_flag=$lt_prog_compiler_pic_F77
16899
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16900
allow_undefined_flag_F77=
16901
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16902
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16904
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905
(exit $ac_status); }
16907
archive_cmds_need_lc_F77=no
16909
archive_cmds_need_lc_F77=yes
16911
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16913
cat conftest.err 1>&5
16916
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16917
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16924
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16925
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16926
library_names_spec=
16927
libname_spec='lib$name'
16931
postuninstall_cmds=
16935
shlibpath_overrides_runpath=unknown
16937
dynamic_linker="$host_os ld.so"
16938
sys_lib_dlsearch_path_spec="/lib /usr/lib"
16940
need_lib_prefix=unknown
16941
hardcode_into_libs=no
16943
# when you set need_version to no, make sure it does not cause -set_version
16944
# flags to be left without arguments
16945
need_version=unknown
16950
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16951
shlibpath_var=LIBPATH
16953
# AIX 3 has no versioning support, so we append a major version to the name.
16954
soname_spec='${libname}${release}${shared_ext}$major'
16961
hardcode_into_libs=yes
16962
if test "$host_cpu" = ia64; then
16963
# AIX 5 supports IA64
16964
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16965
shlibpath_var=LD_LIBRARY_PATH
16967
# With GCC up to 2.95.x, collect2 would create an import file
16968
# for dependence libraries. The import file would start with
16969
# the line `#! .'. This would cause the generated library to
16970
# depend on `.', always an invalid library. This was fixed in
16971
# development snapshots of GCC prior to 3.0.
16973
aix4 | aix4.[01] | aix4.[01].*)
16974
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16976
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16979
can_build_shared=no
16983
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16984
# soname into executable. Probably we can add versioning support to
16985
# collect2, so additional links can be useful in future.
16986
if test "$aix_use_runtimelinking" = yes; then
16987
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
16988
# instead of lib<name>.a to let people know that these are not
16989
# typical AIX shared libraries.
16990
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16992
# We preserve .a as extension for shared libraries through AIX4.2
16993
# and later when we are not doing run time linking.
16994
library_names_spec='${libname}${release}.a $libname.a'
16995
soname_spec='${libname}${release}${shared_ext}$major'
16997
shlibpath_var=LIBPATH
17002
library_names_spec='$libname.ixlibrary $libname.a'
17003
# Create ${libname}_ixlibrary.a entries in /sys/libs.
17004
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'
17008
library_names_spec='${libname}${shared_ext}'
17009
dynamic_linker="$host_os ld.so"
17010
shlibpath_var=LIBRARY_PATH
17016
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17017
soname_spec='${libname}${release}${shared_ext}$major'
17018
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17019
shlibpath_var=LD_LIBRARY_PATH
17020
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17021
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17022
# the default ld.so.conf also contains /usr/contrib/lib and
17023
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17024
# libtool to hard-code these into programs
17027
cygwin* | mingw* | pw32*)
17028
version_type=windows
17033
case $GCC,$host_os in
17034
yes,cygwin* | yes,mingw* | yes,pw32*)
17035
library_names_spec='$libname.dll.a'
17036
# DLL is installed to $(libdir)/../bin by postinstall_cmds
17037
postinstall_cmds='base_file=`basename \${file}`~
17038
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17039
dldir=$destdir/`dirname \$dlpath`~
17040
test -d \$dldir || mkdir -p \$dldir~
17041
$install_prog $dir/$dlname \$dldir/$dlname~
17042
chmod a+x \$dldir/$dlname'
17043
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17044
dlpath=$dir/\$dldll~
17046
shlibpath_overrides_runpath=yes
17050
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
17051
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17052
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17055
# MinGW DLLs use traditional 'lib' prefix
17056
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17057
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17058
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17059
# It is most probably a Windows format PATH printed by
17060
# mingw gcc, but we are running on Cygwin. Gcc prints its search
17061
# path with ; separators, and with drive letters. We can handle the
17062
# drive letters (cygwin fileutils understands them), so leave them,
17063
# especially as we might pass files found there to a mingw objdump,
17064
# which wouldn't understand a cygwinified path. Ahh.
17065
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17067
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17071
# pw32 DLLs use 'pw' prefix rather than 'lib'
17072
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17078
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17081
dynamic_linker='Win32 ld.exe'
17082
# FIXME: first we should search . and the directory the executable is in
17086
darwin* | rhapsody*)
17087
dynamic_linker="$host_os dyld"
17088
version_type=darwin
17091
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17092
soname_spec='${libname}${release}${major}$shared_ext'
17093
shlibpath_overrides_runpath=yes
17094
shlibpath_var=DYLD_LIBRARY_PATH
17095
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17097
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17104
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17105
soname_spec='${libname}${release}${shared_ext}$major'
17106
shlibpath_var=LD_LIBRARY_PATH
17113
freebsd* | dragonfly*)
17114
# DragonFly does not have aout. When/if they implement a new
17115
# versioning mechanism, adjust this.
17116
if test -x /usr/bin/objformat; then
17117
objformat=`/usr/bin/objformat`
17120
freebsd[123]*) objformat=aout ;;
17121
*) objformat=elf ;;
17124
version_type=freebsd-$objformat
17125
case $version_type in
17127
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17132
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17136
shlibpath_var=LD_LIBRARY_PATH
17139
shlibpath_overrides_runpath=yes
17141
freebsd3.[01]* | freebsdelf3.[01]*)
17142
shlibpath_overrides_runpath=yes
17143
hardcode_into_libs=yes
17145
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17146
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17147
shlibpath_overrides_runpath=no
17148
hardcode_into_libs=yes
17150
*) # from 4.6 on, and DragonFly
17151
shlibpath_overrides_runpath=yes
17152
hardcode_into_libs=yes
17161
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17162
soname_spec='${libname}${release}${shared_ext}$major'
17163
shlibpath_var=LD_LIBRARY_PATH
17164
hardcode_into_libs=yes
17167
hpux9* | hpux10* | hpux11*)
17168
# Give a soname corresponding to the major version so that dld.sl refuses to
17169
# link against other versions.
17176
hardcode_into_libs=yes
17177
dynamic_linker="$host_os dld.so"
17178
shlibpath_var=LD_LIBRARY_PATH
17179
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17180
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17181
soname_spec='${libname}${release}${shared_ext}$major'
17182
if test "X$HPUX_IA64_MODE" = X32; then
17183
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17185
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17187
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17191
hardcode_into_libs=yes
17192
dynamic_linker="$host_os dld.sl"
17193
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17194
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17195
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17196
soname_spec='${libname}${release}${shared_ext}$major'
17197
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17198
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17202
dynamic_linker="$host_os dld.sl"
17203
shlibpath_var=SHLIB_PATH
17204
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17205
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17206
soname_spec='${libname}${release}${shared_ext}$major'
17209
# HP-UX runs *really* slowly unless shared libraries are mode 555.
17210
postinstall_cmds='chmod 555 $lib'
17217
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17218
soname_spec='${libname}${release}${shared_ext}$major'
17219
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17220
shlibpath_var=LD_LIBRARY_PATH
17221
shlibpath_overrides_runpath=no
17222
hardcode_into_libs=yes
17225
irix5* | irix6* | nonstopux*)
17227
nonstopux*) version_type=nonstopux ;;
17229
if test "$lt_cv_prog_gnu_ld" = yes; then
17237
soname_spec='${libname}${release}${shared_ext}$major'
17238
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17240
irix5* | nonstopux*)
17241
libsuff= shlibsuff=
17244
case $LD in # libtool.m4 will add one of these switches to LD
17245
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17246
libsuff= shlibsuff= libmagic=32-bit;;
17247
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17248
libsuff=32 shlibsuff=N32 libmagic=N32;;
17249
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17250
libsuff=64 shlibsuff=64 libmagic=64-bit;;
17251
*) libsuff= shlibsuff= libmagic=never-match;;
17255
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17256
shlibpath_overrides_runpath=no
17257
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17258
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17259
hardcode_into_libs=yes
17262
# No shared lib support for Linux oldld, aout, or coff.
17263
linux*oldld* | linux*aout* | linux*coff*)
17267
# This must be Linux ELF.
17268
linux* | k*bsd*-gnu)
17272
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17273
soname_spec='${libname}${release}${shared_ext}$major'
17274
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17275
shlibpath_var=LD_LIBRARY_PATH
17276
shlibpath_overrides_runpath=no
17277
# This implies no fast_install, which is unacceptable.
17278
# Some rework will be needed to allow for fast_install
17279
# before this can be enabled.
17280
hardcode_into_libs=yes
17282
# Append ld.so.conf contents to the search path
17283
if test -f /etc/ld.so.conf; then
17284
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' ' '`
17285
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17288
# We used to test for /lib/ld.so.1 and disable shared libraries on
17289
# powerpc, because MkLinux only supported shared libraries with the
17290
# GNU dynamic linker. Since this was broken with cross compilers,
17291
# most powerpc-linux boxes support dynamic linking these days and
17292
# people can always --disable-shared, the test was removed, and we
17293
# assume the GNU/Linux dynamic linker is in use.
17294
dynamic_linker='GNU/Linux ld.so'
17301
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17302
soname_spec='${libname}${release}${shared_ext}$major'
17303
shlibpath_var=LD_LIBRARY_PATH
17304
shlibpath_overrides_runpath=no
17305
hardcode_into_libs=yes
17306
dynamic_linker='NetBSD ld.elf_so'
17313
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17314
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17315
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17316
dynamic_linker='NetBSD (a.out) ld.so'
17318
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17319
soname_spec='${libname}${release}${shared_ext}$major'
17320
dynamic_linker='NetBSD ld.elf_so'
17322
shlibpath_var=LD_LIBRARY_PATH
17323
shlibpath_overrides_runpath=yes
17324
hardcode_into_libs=yes
17329
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17330
shlibpath_var=LD_LIBRARY_PATH
17331
shlibpath_overrides_runpath=yes
17338
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17339
soname_spec='${libname}${release}${shared_ext}$major'
17340
shlibpath_var=LD_LIBRARY_PATH
17341
shlibpath_overrides_runpath=yes
17346
sys_lib_dlsearch_path_spec="/usr/lib"
17348
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17350
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17351
*) need_version=no ;;
17353
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17354
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17355
shlibpath_var=LD_LIBRARY_PATH
17356
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17358
openbsd2.[89] | openbsd2.[89].*)
17359
shlibpath_overrides_runpath=no
17362
shlibpath_overrides_runpath=yes
17366
shlibpath_overrides_runpath=yes
17371
libname_spec='$name'
17374
library_names_spec='$libname${shared_ext} $libname.a'
17375
dynamic_linker='OS/2 ld.exe'
17376
shlibpath_var=LIBPATH
17379
osf3* | osf4* | osf5*)
17383
soname_spec='${libname}${release}${shared_ext}$major'
17384
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17385
shlibpath_var=LD_LIBRARY_PATH
17386
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17387
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17398
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17399
soname_spec='${libname}${release}${shared_ext}$major'
17400
shlibpath_var=LD_LIBRARY_PATH
17401
shlibpath_overrides_runpath=yes
17402
hardcode_into_libs=yes
17403
# ldd complains unless libraries are executable
17404
postinstall_cmds='chmod +x $lib'
17409
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17410
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17411
shlibpath_var=LD_LIBRARY_PATH
17412
shlibpath_overrides_runpath=yes
17413
if test "$with_gnu_ld" = yes; then
17421
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17422
soname_spec='${libname}${release}${shared_ext}$major'
17423
shlibpath_var=LD_LIBRARY_PATH
17424
case $host_vendor in
17426
shlibpath_overrides_runpath=no
17428
export_dynamic_flag_spec='${wl}-Blargedynsym'
17429
runpath_var=LD_RUN_PATH
17437
shlibpath_overrides_runpath=no
17438
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17444
if test -d /usr/nec ;then
17446
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17447
soname_spec='$libname${shared_ext}.$major'
17448
shlibpath_var=LD_LIBRARY_PATH
17452
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17453
version_type=freebsd-elf
17456
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17457
soname_spec='${libname}${release}${shared_ext}$major'
17458
shlibpath_var=LD_LIBRARY_PATH
17459
hardcode_into_libs=yes
17460
if test "$with_gnu_ld" = yes; then
17461
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17462
shlibpath_overrides_runpath=no
17464
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17465
shlibpath_overrides_runpath=yes
17468
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17472
sys_lib_dlsearch_path_spec='/usr/lib'
17477
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17478
soname_spec='${libname}${release}${shared_ext}$major'
17479
shlibpath_var=LD_LIBRARY_PATH
17486
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17487
echo "${ECHO_T}$dynamic_linker" >&6; }
17488
test "$dynamic_linker" = no && can_build_shared=no
17490
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17491
echo $ECHO_N "(cached) $ECHO_C" >&6
17493
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
17496
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17497
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17498
echo $ECHO_N "(cached) $ECHO_C" >&6
17500
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
17503
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17505
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17506
if test "$GCC" = yes; then
17507
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17510
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17511
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17512
hardcode_action_F77=
17513
if test -n "$hardcode_libdir_flag_spec_F77" || \
17514
test -n "$runpath_var_F77" || \
17515
test "X$hardcode_automatic_F77" = "Xyes" ; then
17517
# We can hardcode non-existant directories.
17518
if test "$hardcode_direct_F77" != no &&
17519
# If the only mechanism to avoid hardcoding is shlibpath_var, we
17520
# have to relink, otherwise we might link with an installed library
17521
# when we should be linking with a yet-to-be-installed one
17522
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17523
test "$hardcode_minus_L_F77" != no; then
17524
# Linking always hardcodes the temporary library directory.
17525
hardcode_action_F77=relink
17527
# We can link without hardcoding, and we can hardcode nonexisting dirs.
17528
hardcode_action_F77=immediate
17531
# We cannot hardcode anything, or else we can only hardcode existing
17533
hardcode_action_F77=unsupported
17535
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17536
echo "${ECHO_T}$hardcode_action_F77" >&6; }
17538
if test "$hardcode_action_F77" = relink; then
17539
# Fast installation is not supported
17540
enable_fast_install=no
17541
elif test "$shlibpath_overrides_runpath" = yes ||
17542
test "$enable_shared" = no; then
17543
# Fast installation is not necessary
17544
enable_fast_install=needless
17548
# The else clause should only fire when bootstrapping the
17549
# libtool distribution, otherwise you forgot to ship ltmain.sh
17550
# with your package, and you will get complaints that there are
17551
# no rules to generate ltmain.sh.
17552
if test -f "$ltmain"; then
17553
# See if we are running on zsh, and set the options which allow our commands through
17554
# without removal of \ escapes.
17555
if test -n "${ZSH_VERSION+set}" ; then
17556
setopt NO_GLOB_SUBST
17558
# Now quote all the things that may contain metacharacters while being
17559
# careful not to overquote the AC_SUBSTed values. We take copies of the
17560
# variables and quote the copies for generation of the libtool script.
17561
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17563
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17564
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17565
deplibs_check_method reload_flag reload_cmds need_locks \
17566
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17567
lt_cv_sys_global_symbol_to_c_name_address \
17568
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17569
old_postinstall_cmds old_postuninstall_cmds \
17573
lt_prog_compiler_wl_F77 \
17574
lt_prog_compiler_pic_F77 \
17575
lt_prog_compiler_static_F77 \
17576
lt_prog_compiler_no_builtin_flag_F77 \
17577
export_dynamic_flag_spec_F77 \
17578
thread_safe_flag_spec_F77 \
17579
whole_archive_flag_spec_F77 \
17580
enable_shared_with_static_runtimes_F77 \
17581
old_archive_cmds_F77 \
17582
old_archive_from_new_cmds_F77 \
17583
predep_objects_F77 \
17584
postdep_objects_F77 \
17587
compiler_lib_search_path_F77 \
17588
compiler_lib_search_dirs_F77 \
17590
archive_expsym_cmds_F77 \
17591
postinstall_cmds_F77 \
17592
postuninstall_cmds_F77 \
17593
old_archive_from_expsyms_cmds_F77 \
17594
allow_undefined_flag_F77 \
17595
no_undefined_flag_F77 \
17596
export_symbols_cmds_F77 \
17597
hardcode_libdir_flag_spec_F77 \
17598
hardcode_libdir_flag_spec_ld_F77 \
17599
hardcode_libdir_separator_F77 \
17600
hardcode_automatic_F77 \
17602
module_expsym_cmds_F77 \
17603
lt_cv_prog_compiler_c_o_F77 \
17604
fix_srcfile_path_F77 \
17605
exclude_expsyms_F77 \
17606
include_expsyms_F77; do
17609
old_archive_cmds_F77 | \
17610
old_archive_from_new_cmds_F77 | \
17611
archive_cmds_F77 | \
17612
archive_expsym_cmds_F77 | \
17613
module_cmds_F77 | \
17614
module_expsym_cmds_F77 | \
17615
old_archive_from_expsyms_cmds_F77 | \
17616
export_symbols_cmds_F77 | \
17617
extract_expsyms_cmds | reload_cmds | finish_cmds | \
17618
postinstall_cmds | postuninstall_cmds | \
17619
old_postinstall_cmds | old_postuninstall_cmds | \
17620
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17621
# Double-quote double-evaled strings.
17622
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17625
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17631
*'\$0 --fallback-echo"')
17632
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17638
cat <<__EOF__ >> "$cfgfile"
17639
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17641
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17643
# Shell to use when invoking shell scripts.
17646
# Whether or not to build shared libraries.
17647
build_libtool_libs=$enable_shared
17649
# Whether or not to build static libraries.
17650
build_old_libs=$enable_static
17652
# Whether or not to add -lc for building shared libraries.
17653
build_libtool_need_lc=$archive_cmds_need_lc_F77
17655
# Whether or not to disallow shared libs when runtime libs are static
17656
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17658
# Whether or not to optimize for fast installation.
17659
fast_install=$enable_fast_install
17662
host_alias=$host_alias
17666
# The build system.
17667
build_alias=$build_alias
17671
# An echo program that does not interpret backslashes.
17676
AR_FLAGS=$lt_AR_FLAGS
17681
# LTCC compiler flags.
17682
LTCFLAGS=$lt_LTCFLAGS
17684
# A language-specific compiler.
17685
CC=$lt_compiler_F77
17687
# Is the compiler the GNU C compiler?
17693
# The linker used to build libraries.
17696
# Whether we need hard or soft links.
17699
# A BSD-compatible nm program.
17702
# A symbol stripping program
17705
# Used to examine libraries when file_magic_cmd begins "file"
17706
MAGIC_CMD=$MAGIC_CMD
17708
# Used on cygwin: DLL creation program.
17711
# Used on cygwin: object dumper.
17714
# Used on cygwin: assembler.
17717
# The name of the directory that contains temporary libtool files.
17720
# How to create reloadable object files.
17721
reload_flag=$lt_reload_flag
17722
reload_cmds=$lt_reload_cmds
17724
# How to pass a linker flag through the compiler.
17725
wl=$lt_lt_prog_compiler_wl_F77
17727
# Object file suffix (normally "o").
17728
objext="$ac_objext"
17730
# Old archive suffix (normally "a").
17733
# Shared library suffix (normally ".so").
17734
shrext_cmds='$shrext_cmds'
17736
# Executable file suffix (normally "").
17739
# Additional compiler flags for building library objects.
17740
pic_flag=$lt_lt_prog_compiler_pic_F77
17743
# What is the maximum length of a command?
17744
max_cmd_len=$lt_cv_sys_max_cmd_len
17746
# Does compiler simultaneously support -c and -o options?
17747
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17749
# Must we lock files when doing compilation?
17750
need_locks=$lt_need_locks
17752
# Do we need the lib prefix for modules?
17753
need_lib_prefix=$need_lib_prefix
17755
# Do we need a version for libraries?
17756
need_version=$need_version
17758
# Whether dlopen is supported.
17759
dlopen_support=$enable_dlopen
17761
# Whether dlopen of programs is supported.
17762
dlopen_self=$enable_dlopen_self
17764
# Whether dlopen of statically linked programs is supported.
17765
dlopen_self_static=$enable_dlopen_self_static
17767
# Compiler flag to prevent dynamic linking.
17768
link_static_flag=$lt_lt_prog_compiler_static_F77
17770
# Compiler flag to turn off builtin functions.
17771
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17773
# Compiler flag to allow reflexive dlopens.
17774
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17776
# Compiler flag to generate shared objects directly from archives.
17777
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17779
# Compiler flag to generate thread-safe objects.
17780
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17782
# Library versioning type.
17783
version_type=$version_type
17785
# Format of library name prefix.
17786
libname_spec=$lt_libname_spec
17788
# List of archive names. First name is the real one, the rest are links.
17789
# The last name is the one that the linker finds with -lNAME.
17790
library_names_spec=$lt_library_names_spec
17792
# The coded name of the library, if different from the real name.
17793
soname_spec=$lt_soname_spec
17795
# Commands used to build and install an old-style archive.
17797
old_archive_cmds=$lt_old_archive_cmds_F77
17798
old_postinstall_cmds=$lt_old_postinstall_cmds
17799
old_postuninstall_cmds=$lt_old_postuninstall_cmds
17801
# Create an old-style archive from a shared archive.
17802
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17804
# Create a temporary old-style archive to link instead of a shared archive.
17805
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17807
# Commands used to build and install a shared archive.
17808
archive_cmds=$lt_archive_cmds_F77
17809
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17810
postinstall_cmds=$lt_postinstall_cmds
17811
postuninstall_cmds=$lt_postuninstall_cmds
17813
# Commands used to build a loadable module (assumed same as above if empty)
17814
module_cmds=$lt_module_cmds_F77
17815
module_expsym_cmds=$lt_module_expsym_cmds_F77
17817
# Commands to strip libraries.
17818
old_striplib=$lt_old_striplib
17819
striplib=$lt_striplib
17821
# Dependencies to place before the objects being linked to create a
17823
predep_objects=$lt_predep_objects_F77
17825
# Dependencies to place after the objects being linked to create a
17827
postdep_objects=$lt_postdep_objects_F77
17829
# Dependencies to place before the objects being linked to create a
17831
predeps=$lt_predeps_F77
17833
# Dependencies to place after the objects being linked to create a
17835
postdeps=$lt_postdeps_F77
17837
# The directories searched by this compiler when creating a shared
17839
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
17841
# The library search path used internally by the compiler when linking
17842
# a shared library.
17843
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17845
# Method to check whether dependent libraries are shared objects.
17846
deplibs_check_method=$lt_deplibs_check_method
17848
# Command to use when deplibs_check_method == file_magic.
17849
file_magic_cmd=$lt_file_magic_cmd
17851
# Flag that allows shared libraries with undefined symbols to be built.
17852
allow_undefined_flag=$lt_allow_undefined_flag_F77
17854
# Flag that forces no undefined symbols.
17855
no_undefined_flag=$lt_no_undefined_flag_F77
17857
# Commands used to finish a libtool library installation in a directory.
17858
finish_cmds=$lt_finish_cmds
17860
# Same as above, but a single script fragment to be evaled but not shown.
17861
finish_eval=$lt_finish_eval
17863
# Take the output of nm and produce a listing of raw symbols and C names.
17864
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17866
# Transform the output of nm in a proper C declaration
17867
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17869
# Transform the output of nm in a C name address pair
17870
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17872
# This is the shared library runtime path variable.
17873
runpath_var=$runpath_var
17875
# This is the shared library path variable.
17876
shlibpath_var=$shlibpath_var
17878
# Is shlibpath searched before the hard-coded library search path?
17879
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17881
# How to hardcode a shared library path into an executable.
17882
hardcode_action=$hardcode_action_F77
17884
# Whether we should hardcode library paths into libraries.
17885
hardcode_into_libs=$hardcode_into_libs
17887
# Flag to hardcode \$libdir into a binary during linking.
17888
# This must work even if \$libdir does not exist.
17889
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17891
# If ld is used when linking, flag to hardcode \$libdir into
17892
# a binary during linking. This must work even if \$libdir does
17894
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17896
# Whether we need a single -rpath flag with a separated argument.
17897
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17899
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17900
# resulting binary.
17901
hardcode_direct=$hardcode_direct_F77
17903
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17904
# resulting binary.
17905
hardcode_minus_L=$hardcode_minus_L_F77
17907
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17908
# the resulting binary.
17909
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17911
# Set to yes if building a shared library automatically hardcodes DIR into the library
17912
# and all subsequent libraries and executables linked against it.
17913
hardcode_automatic=$hardcode_automatic_F77
17915
# Variables whose values should be saved in libtool wrapper scripts and
17916
# restored at relink time.
17917
variables_saved_for_relink="$variables_saved_for_relink"
17919
# Whether libtool must link a program against all its dependency libraries.
17920
link_all_deplibs=$link_all_deplibs_F77
17922
# Compile-time system search path for libraries
17923
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17925
# Run-time system search path for libraries
17926
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17928
# Fix the shell variable \$srcfile for the compiler.
17929
fix_srcfile_path=$lt_fix_srcfile_path
17931
# Set to yes if exported symbols are required.
17932
always_export_symbols=$always_export_symbols_F77
17934
# The commands to list exported symbols.
17935
export_symbols_cmds=$lt_export_symbols_cmds_F77
17937
# The commands to extract the exported symbol list from a shared archive.
17938
extract_expsyms_cmds=$lt_extract_expsyms_cmds
17940
# Symbols that should not be listed in the preloaded symbols.
17941
exclude_expsyms=$lt_exclude_expsyms_F77
17943
# Symbols that must always be exported.
17944
include_expsyms=$lt_include_expsyms_F77
17946
# ### END LIBTOOL TAG CONFIG: $tagname
17952
# If there is no Makefile yet, we rely on a make rule to execute
17953
# `config.status --recheck' to rerun these tests and create the
17954
# libtool script then.
17955
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17956
if test -f "$ltmain_in"; then
17957
test -f Makefile && make "$ltmain"
17963
ac_cpp='$CPP $CPPFLAGS'
17964
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17965
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17966
ac_compiler_gnu=$ac_cv_c_compiler_gnu
17976
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17979
# Source file extension for Java test sources.
17982
# Object file extension for compiled Java test sources.
17986
# Code to be used in simple compile tests
17987
lt_simple_compile_test_code="class foo {}"
17989
# Code to be used in simple link tests
17990
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
17992
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17994
# If no C compiler was specified, use CC.
17997
# If no C compiler flags were specified, use CFLAGS.
17998
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18000
# Allow CC to be a program name with arguments.
18004
# save warnings/boilerplate of simple test code
18005
ac_outfile=conftest.$ac_objext
18006
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18007
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18008
_lt_compiler_boilerplate=`cat conftest.err`
18011
ac_outfile=conftest.$ac_objext
18012
echo "$lt_simple_link_test_code" >conftest.$ac_ext
18013
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18014
_lt_linker_boilerplate=`cat conftest.err`
18018
# Allow CC to be a program name with arguments.
18023
for cc_temp in $compiler""; do
18025
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18026
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18031
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18034
# GCJ did not exist at the time GCC didn't implicitly link libc in.
18035
archive_cmds_need_lc_GCJ=no
18037
old_archive_cmds_GCJ=$old_archive_cmds
18040
lt_prog_compiler_no_builtin_flag_GCJ=
18042
if test "$GCC" = yes; then
18043
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
18046
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18047
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
18048
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
18049
echo $ECHO_N "(cached) $ECHO_C" >&6
18051
lt_cv_prog_compiler_rtti_exceptions=no
18052
ac_outfile=conftest.$ac_objext
18053
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18054
lt_compiler_flag="-fno-rtti -fno-exceptions"
18055
# Insert the option either (1) after the last *FLAGS variable, or
18056
# (2) before a word containing "conftest.", or (3) at the end.
18057
# Note that $ac_compile itself does not contain backslashes and begins
18058
# with a dollar sign (not a hyphen), so the echo should work correctly.
18059
# The option is referenced via a variable to avoid confusing sed.
18060
lt_compile=`echo "$ac_compile" | $SED \
18061
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18062
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18063
-e 's:$: $lt_compiler_flag:'`
18064
(eval echo "\"\$as_me:18064: $lt_compile\"" >&5)
18065
(eval "$lt_compile" 2>conftest.err)
18067
cat conftest.err >&5
18068
echo "$as_me:18068: \$? = $ac_status" >&5
18069
if (exit $ac_status) && test -s "$ac_outfile"; then
18070
# The compiler can only warn and ignore the option if not recognized
18071
# So say no if there are warnings other than the usual output.
18072
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18073
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18074
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18075
lt_cv_prog_compiler_rtti_exceptions=yes
18081
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18082
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18084
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18085
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18092
lt_prog_compiler_wl_GCJ=
18093
lt_prog_compiler_pic_GCJ=
18094
lt_prog_compiler_static_GCJ=
18096
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18097
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18099
if test "$GCC" = yes; then
18100
lt_prog_compiler_wl_GCJ='-Wl,'
18101
lt_prog_compiler_static_GCJ='-static'
18105
# All AIX code is PIC.
18106
if test "$host_cpu" = ia64; then
18107
# AIX 5 now supports IA64 processor
18108
lt_prog_compiler_static_GCJ='-Bstatic'
18113
# FIXME: we need at least 68020 code to build shared libraries, but
18114
# adding the `-m68020' flag to GCC prevents building anything better,
18116
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18119
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18120
# PIC is the default for these OSes.
18123
mingw* | cygwin* | pw32* | os2*)
18124
# This hack is so that the source file can tell whether it is being
18125
# built for inclusion in a dll (and should export symbols for example).
18126
# Although the cygwin gcc ignores -fPIC, still need this for old-style
18127
# (--disable-auto-import) libraries
18131
darwin* | rhapsody*)
18132
# PIC is the default on this platform
18133
# Common symbols not allowed in MH_DYLIB files
18134
lt_prog_compiler_pic_GCJ='-fno-common'
18138
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
18139
# Instead, we relocate shared libraries at runtime.
18143
# Just because we use GCC doesn't mean we suddenly get shared libraries
18144
# on systems that don't support them.
18145
lt_prog_compiler_can_build_shared_GCJ=no
18150
if test -d /usr/nec; then
18151
lt_prog_compiler_pic_GCJ=-Kconform_pic
18156
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18157
# not for PA HP-UX.
18163
lt_prog_compiler_pic_GCJ='-fPIC'
18169
lt_prog_compiler_pic_GCJ='-fPIC'
18173
# PORTME Check for flag to pass linker flags through the system compiler.
18176
lt_prog_compiler_wl_GCJ='-Wl,'
18177
if test "$host_cpu" = ia64; then
18178
# AIX 5 now supports IA64 processor
18179
lt_prog_compiler_static_GCJ='-Bstatic'
18181
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18185
# PIC is the default on this platform
18186
# Common symbols not allowed in MH_DYLIB files
18187
case $cc_basename in
18189
lt_prog_compiler_pic_GCJ='-qnocommon'
18190
lt_prog_compiler_wl_GCJ='-Wl,'
18195
mingw* | cygwin* | pw32* | os2*)
18196
# This hack is so that the source file can tell whether it is being
18197
# built for inclusion in a dll (and should export symbols for example).
18201
hpux9* | hpux10* | hpux11*)
18202
lt_prog_compiler_wl_GCJ='-Wl,'
18203
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18204
# not for PA HP-UX.
18210
lt_prog_compiler_pic_GCJ='+Z'
18213
# Is there a better lt_prog_compiler_static that works with the bundled CC?
18214
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18217
irix5* | irix6* | nonstopux*)
18218
lt_prog_compiler_wl_GCJ='-Wl,'
18219
# PIC (with -KPIC) is the default.
18220
lt_prog_compiler_static_GCJ='-non_shared'
18224
lt_prog_compiler_pic_GCJ='-KPIC'
18225
lt_prog_compiler_static_GCJ='-Bstatic'
18228
linux* | k*bsd*-gnu)
18229
case $cc_basename in
18231
lt_prog_compiler_wl_GCJ='-Wl,'
18232
lt_prog_compiler_pic_GCJ='-KPIC'
18233
lt_prog_compiler_static_GCJ='-static'
18235
pgcc* | pgf77* | pgf90* | pgf95*)
18236
# Portland Group compilers (*not* the Pentium gcc compiler,
18237
# which looks to be a dead project)
18238
lt_prog_compiler_wl_GCJ='-Wl,'
18239
lt_prog_compiler_pic_GCJ='-fpic'
18240
lt_prog_compiler_static_GCJ='-Bstatic'
18243
lt_prog_compiler_wl_GCJ='-Wl,'
18244
# All Alpha code is PIC.
18245
lt_prog_compiler_static_GCJ='-non_shared'
18248
case `$CC -V 2>&1 | sed 5q` in
18251
lt_prog_compiler_pic_GCJ='-KPIC'
18252
lt_prog_compiler_static_GCJ='-Bstatic'
18253
lt_prog_compiler_wl_GCJ='-Wl,'
18256
# Sun Fortran 8.3 passes all unrecognized flags to the linker
18257
lt_prog_compiler_pic_GCJ='-KPIC'
18258
lt_prog_compiler_static_GCJ='-Bstatic'
18259
lt_prog_compiler_wl_GCJ=''
18266
osf3* | osf4* | osf5*)
18267
lt_prog_compiler_wl_GCJ='-Wl,'
18268
# All OSF/1 code is PIC.
18269
lt_prog_compiler_static_GCJ='-non_shared'
18273
lt_prog_compiler_static_GCJ='-non_shared'
18277
lt_prog_compiler_pic_GCJ='-KPIC'
18278
lt_prog_compiler_static_GCJ='-Bstatic'
18279
case $cc_basename in
18280
f77* | f90* | f95*)
18281
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18283
lt_prog_compiler_wl_GCJ='-Wl,';;
18288
lt_prog_compiler_wl_GCJ='-Qoption ld '
18289
lt_prog_compiler_pic_GCJ='-PIC'
18290
lt_prog_compiler_static_GCJ='-Bstatic'
18293
sysv4 | sysv4.2uw2* | sysv4.3*)
18294
lt_prog_compiler_wl_GCJ='-Wl,'
18295
lt_prog_compiler_pic_GCJ='-KPIC'
18296
lt_prog_compiler_static_GCJ='-Bstatic'
18300
if test -d /usr/nec ;then
18301
lt_prog_compiler_pic_GCJ='-Kconform_pic'
18302
lt_prog_compiler_static_GCJ='-Bstatic'
18306
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18307
lt_prog_compiler_wl_GCJ='-Wl,'
18308
lt_prog_compiler_pic_GCJ='-KPIC'
18309
lt_prog_compiler_static_GCJ='-Bstatic'
18313
lt_prog_compiler_wl_GCJ='-Wl,'
18314
lt_prog_compiler_can_build_shared_GCJ=no
18318
lt_prog_compiler_pic_GCJ='-pic'
18319
lt_prog_compiler_static_GCJ='-Bstatic'
18323
lt_prog_compiler_can_build_shared_GCJ=no
18328
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18329
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18332
# Check to make sure the PIC flag actually works.
18334
if test -n "$lt_prog_compiler_pic_GCJ"; then
18336
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18337
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
18338
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
18339
echo $ECHO_N "(cached) $ECHO_C" >&6
18341
lt_cv_prog_compiler_pic_works_GCJ=no
18342
ac_outfile=conftest.$ac_objext
18343
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18344
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18345
# Insert the option either (1) after the last *FLAGS variable, or
18346
# (2) before a word containing "conftest.", or (3) at the end.
18347
# Note that $ac_compile itself does not contain backslashes and begins
18348
# with a dollar sign (not a hyphen), so the echo should work correctly.
18349
# The option is referenced via a variable to avoid confusing sed.
18350
lt_compile=`echo "$ac_compile" | $SED \
18351
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18352
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18353
-e 's:$: $lt_compiler_flag:'`
18354
(eval echo "\"\$as_me:18354: $lt_compile\"" >&5)
18355
(eval "$lt_compile" 2>conftest.err)
18357
cat conftest.err >&5
18358
echo "$as_me:18358: \$? = $ac_status" >&5
18359
if (exit $ac_status) && test -s "$ac_outfile"; then
18360
# The compiler can only warn and ignore the option if not recognized
18361
# So say no if there are warnings other than the usual output.
18362
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18363
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18364
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18365
lt_cv_prog_compiler_pic_works_GCJ=yes
18371
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
18372
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
18374
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
18375
case $lt_prog_compiler_pic_GCJ in
18377
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18380
lt_prog_compiler_pic_GCJ=
18381
lt_prog_compiler_can_build_shared_GCJ=no
18386
# For platforms which do not support PIC, -DPIC is meaningless:
18388
lt_prog_compiler_pic_GCJ=
18391
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18396
# Check to make sure the static flag actually works.
18398
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18399
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18400
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18401
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
18402
echo $ECHO_N "(cached) $ECHO_C" >&6
18404
lt_cv_prog_compiler_static_works_GCJ=no
18405
save_LDFLAGS="$LDFLAGS"
18406
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18407
echo "$lt_simple_link_test_code" > conftest.$ac_ext
18408
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18409
# The linker can only warn and ignore the option if not recognized
18410
# So say no if there are warnings
18411
if test -s conftest.err; then
18412
# Append any errors to the config.log.
18413
cat conftest.err 1>&5
18414
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18415
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18416
if diff conftest.exp conftest.er2 >/dev/null; then
18417
lt_cv_prog_compiler_static_works_GCJ=yes
18420
lt_cv_prog_compiler_static_works_GCJ=yes
18424
LDFLAGS="$save_LDFLAGS"
18427
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
18428
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
18430
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
18433
lt_prog_compiler_static_GCJ=
18437
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18438
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18439
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18440
echo $ECHO_N "(cached) $ECHO_C" >&6
18442
lt_cv_prog_compiler_c_o_GCJ=no
18443
$rm -r conftest 2>/dev/null
18447
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18449
lt_compiler_flag="-o out/conftest2.$ac_objext"
18450
# Insert the option either (1) after the last *FLAGS variable, or
18451
# (2) before a word containing "conftest.", or (3) at the end.
18452
# Note that $ac_compile itself does not contain backslashes and begins
18453
# with a dollar sign (not a hyphen), so the echo should work correctly.
18454
lt_compile=`echo "$ac_compile" | $SED \
18455
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18456
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18457
-e 's:$: $lt_compiler_flag:'`
18458
(eval echo "\"\$as_me:18458: $lt_compile\"" >&5)
18459
(eval "$lt_compile" 2>out/conftest.err)
18461
cat out/conftest.err >&5
18462
echo "$as_me:18462: \$? = $ac_status" >&5
18463
if (exit $ac_status) && test -s out/conftest2.$ac_objext
18465
# The compiler can only warn and ignore the option if not recognized
18466
# So say no if there are warnings
18467
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18468
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18469
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18470
lt_cv_prog_compiler_c_o_GCJ=yes
18475
# SGI C++ compiler will create directory out/ii_files/ for
18476
# template instantiation
18477
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18478
$rm out/* && rmdir out
18484
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18485
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18488
hard_links="nottested"
18489
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18490
# do not overwrite the value of need_locks provided by the user
18491
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18492
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18495
ln conftest.a conftest.b 2>/dev/null && hard_links=no
18497
ln conftest.a conftest.b 2>&5 || hard_links=no
18498
ln conftest.a conftest.b 2>/dev/null && hard_links=no
18499
{ echo "$as_me:$LINENO: result: $hard_links" >&5
18500
echo "${ECHO_T}$hard_links" >&6; }
18501
if test "$hard_links" = no; then
18502
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18503
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18510
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18511
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18514
allow_undefined_flag_GCJ=
18515
enable_shared_with_static_runtimes_GCJ=no
18517
archive_expsym_cmds_GCJ=
18518
old_archive_From_new_cmds_GCJ=
18519
old_archive_from_expsyms_cmds_GCJ=
18520
export_dynamic_flag_spec_GCJ=
18521
whole_archive_flag_spec_GCJ=
18522
thread_safe_flag_spec_GCJ=
18523
hardcode_libdir_flag_spec_GCJ=
18524
hardcode_libdir_flag_spec_ld_GCJ=
18525
hardcode_libdir_separator_GCJ=
18526
hardcode_direct_GCJ=no
18527
hardcode_minus_L_GCJ=no
18528
hardcode_shlibpath_var_GCJ=unsupported
18529
link_all_deplibs_GCJ=unknown
18530
hardcode_automatic_GCJ=no
18532
module_expsym_cmds_GCJ=
18533
always_export_symbols_GCJ=no
18534
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18535
# include_expsyms should be a list of space-separated symbols to be *always*
18536
# included in the symbol list
18537
include_expsyms_GCJ=
18538
# exclude_expsyms can be an extended regexp of symbols to exclude
18539
# it will be wrapped by ` (' and `)$', so one must not match beginning or
18540
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18541
# as well as any symbol that contains `d'.
18542
exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18543
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18544
# platforms (ab)use it in PIC code, but their linkers get confused if
18545
# the symbol is explicitly referenced. Since portable code cannot
18546
# rely on this symbol name, it's probably fine to never include it in
18547
# preloaded symbol tables.
18548
# Exclude shared library initialization/finalization symbols.
18549
extract_expsyms_cmds=
18550
# Just being paranoid about ensuring that cc_basename is set.
18551
for cc_temp in $compiler""; do
18553
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18554
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18559
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18562
cygwin* | mingw* | pw32*)
18563
# FIXME: the MSVC++ port hasn't been tested in a loooong time
18564
# When not using gcc, we currently assume that we are using
18565
# Microsoft Visual C++.
18566
if test "$GCC" != yes; then
18571
# we just hope/assume this is gcc and not c89 (= MSVC++)
18580
if test "$with_gnu_ld" = yes; then
18581
# If archive_cmds runs LD, not CC, wlarc should be empty
18584
# Set some defaults for GNU ld with shared library support. These
18585
# are reset later if shared libraries are not supported. Putting them
18586
# here allows them to be overridden if necessary.
18587
runpath_var=LD_RUN_PATH
18588
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18589
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18590
# ancient GNU ld didn't support --whole-archive et. al.
18591
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18592
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18594
whole_archive_flag_spec_GCJ=
18596
supports_anon_versioning=no
18597
case `$LD -v 2>/dev/null` in
18598
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18599
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18600
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18601
*\ 2.11.*) ;; # other 2.11 versions
18602
*) supports_anon_versioning=yes ;;
18605
# See if GNU ld supports shared libraries.
18608
# On AIX/PPC, the GNU linker is very broken
18609
if test "$host_cpu" != ia64; then
18613
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
18614
*** to be unable to reliably create shared libraries on AIX.
18615
*** Therefore, libtool is disabling shared libraries support. If you
18616
*** really care for shared libraries, you may want to modify your PATH
18617
*** so that a non-GNU linker is found, and then restart.
18624
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)'
18625
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18626
hardcode_minus_L_GCJ=yes
18628
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18629
# that the semantics of dynamic libraries on AmigaOS, at least up
18630
# to version 4, is to share data among multiple programs linked
18631
# with the same dynamic library. Since this doesn't match the
18632
# behavior of shared libraries on other platforms, we can't use
18638
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18639
allow_undefined_flag_GCJ=unsupported
18640
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18641
# support --undefined. This deserves some investigation. FIXME
18642
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18648
cygwin* | mingw* | pw32*)
18649
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18650
# as there is no search path for DLLs.
18651
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18652
allow_undefined_flag_GCJ=unsupported
18653
always_export_symbols_GCJ=no
18654
enable_shared_with_static_runtimes_GCJ=yes
18655
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18657
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18658
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18659
# If the export-symbols file already is a .def file (1st line
18660
# is EXPORTS), use it as is; otherwise, prepend...
18661
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18662
cp $export_symbols $output_objdir/$soname.def;
18664
echo EXPORTS > $output_objdir/$soname.def;
18665
cat $export_symbols >> $output_objdir/$soname.def;
18667
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18674
hardcode_direct_GCJ=no
18675
hardcode_shlibpath_var_GCJ=no
18676
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18677
export_dynamic_flag_spec_GCJ='${wl}-E'
18678
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18679
# Instead, shared libraries are loaded at an image base (0x10000000 by
18680
# default) and relocated if they conflict, which is a slow very memory
18681
# consuming and fragmenting process. To avoid this, we pick a random,
18682
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18683
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
18684
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'
18685
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'
18688
gnu* | linux* | k*bsd*-gnu)
18689
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18691
case $cc_basename,$host_cpu in
18692
pgcc*) # Portland Group C compiler
18693
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'
18694
tmp_addflag=' $pic_flag'
18696
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18697
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'
18698
tmp_addflag=' $pic_flag -Mnomain' ;;
18699
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18700
tmp_addflag=' -i_dynamic' ;;
18701
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18702
tmp_addflag=' -i_dynamic -nofor_main' ;;
18703
ifc* | ifort*) # Intel Fortran compiler
18704
tmp_addflag=' -nofor_main' ;;
18706
case `$CC -V 2>&1 | sed 5q` in
18707
*Sun\ C*) # Sun C 5.9
18708
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'
18709
tmp_sharedflag='-G' ;;
18710
*Sun\ F*) # Sun Fortran 8.3
18711
tmp_sharedflag='-G' ;;
18713
tmp_sharedflag='-shared' ;;
18715
archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18717
if test $supports_anon_versioning = yes; then
18718
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18719
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18720
$echo "local: *; };" >> $output_objdir/$libname.ver~
18721
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18723
link_all_deplibs_GCJ=no
18729
netbsd* | netbsdelf*-gnu)
18730
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18731
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18734
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18735
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18740
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18744
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
18745
*** create shared libraries on Solaris systems. Therefore, libtool
18746
*** is disabling shared libraries support. We urge you to upgrade GNU
18747
*** binutils to release 2.9.1 or newer. Another option is to modify
18748
*** your PATH or compiler configuration so that the native linker is
18749
*** used, and then restart.
18752
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18753
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18754
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18760
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18761
case `$LD -v 2>&1` in
18762
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18766
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18767
*** reliably create shared libraries on SCO systems. Therefore, libtool
18768
*** is disabling shared libraries support. We urge you to upgrade GNU
18769
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18770
*** your PATH or compiler configuration so that the native linker is
18771
*** used, and then restart.
18776
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18777
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18778
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18779
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18788
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18790
hardcode_direct_GCJ=yes
18791
hardcode_shlibpath_var_GCJ=no
18795
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18796
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18797
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18804
if test "$ld_shlibs_GCJ" = no; then
18806
hardcode_libdir_flag_spec_GCJ=
18807
export_dynamic_flag_spec_GCJ=
18808
whole_archive_flag_spec_GCJ=
18811
# PORTME fill in a description of your system's linker (not GNU ld)
18814
allow_undefined_flag_GCJ=unsupported
18815
always_export_symbols_GCJ=yes
18816
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'
18817
# Note: this linker hardcodes the directories in LIBPATH if there
18818
# are no directories specified by -L.
18819
hardcode_minus_L_GCJ=yes
18820
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18821
# Neither direct hardcoding nor static linking is supported with a
18823
hardcode_direct_GCJ=unsupported
18828
if test "$host_cpu" = ia64; then
18829
# On IA64, the linker does run time linking by default, so we don't
18830
# have to do anything special.
18831
aix_use_runtimelinking=no
18832
exp_sym_flag='-Bexport'
18835
# If we're using GNU nm, then we don't want the "-C" option.
18836
# -C means demangle to AIX nm, but means don't demangle with GNU nm
18837
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18838
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'
18840
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'
18842
aix_use_runtimelinking=no
18844
# Test if we are trying to use run time linking or normal
18845
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
18846
# need to do runtime linking.
18847
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18848
for ld_flag in $LDFLAGS; do
18849
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18850
aix_use_runtimelinking=yes
18857
exp_sym_flag='-bexport'
18858
no_entry_flag='-bnoentry'
18861
# When large executables or shared objects are built, AIX ld can
18862
# have problems creating the table of contents. If linking a library
18863
# or program results in "error TOC overflow" add -mminimal-toc to
18864
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18865
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18867
archive_cmds_GCJ=''
18868
hardcode_direct_GCJ=yes
18869
hardcode_libdir_separator_GCJ=':'
18870
link_all_deplibs_GCJ=yes
18872
if test "$GCC" = yes; then
18873
case $host_os in aix4.[012]|aix4.[012].*)
18874
# We only want to do this on AIX 4.2 and lower, the check
18875
# below for broken collect2 doesn't work under 4.3+
18876
collect2name=`${CC} -print-prog-name=collect2`
18877
if test -f "$collect2name" && \
18878
strings "$collect2name" | grep resolve_lib_name >/dev/null
18880
# We have reworked collect2
18883
# We have old collect2
18884
hardcode_direct_GCJ=unsupported
18885
# It fails to find uninstalled libraries when the uninstalled
18886
# path is not listed in the libpath. Setting hardcode_minus_L
18887
# to unsupported forces relinking
18888
hardcode_minus_L_GCJ=yes
18889
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18890
hardcode_libdir_separator_GCJ=
18894
shared_flag='-shared'
18895
if test "$aix_use_runtimelinking" = yes; then
18896
shared_flag="$shared_flag "'${wl}-G'
18900
if test "$host_cpu" = ia64; then
18901
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18902
# chokes on -Wl,-G. The following line is correct:
18905
if test "$aix_use_runtimelinking" = yes; then
18906
shared_flag='${wl}-G'
18908
shared_flag='${wl}-bM:SRE'
18913
# It seems that -bexpall does not export symbols beginning with
18914
# underscore (_), so it is better to generate a list of symbols to export.
18915
always_export_symbols_GCJ=yes
18916
if test "$aix_use_runtimelinking" = yes; then
18917
# Warning - without using the other runtime loading flags (-brtl),
18918
# -berok will link without error, but may produce a broken library.
18919
allow_undefined_flag_GCJ='-berok'
18920
# Determine the default libpath from the value encoded in an empty executable.
18921
cat >conftest.$ac_ext <<_ACEOF
18924
cat confdefs.h >>conftest.$ac_ext
18925
cat >>conftest.$ac_ext <<_ACEOF
18926
/* end confdefs.h. */
18936
rm -f conftest.$ac_objext conftest$ac_exeext
18937
if { (ac_try="$ac_link"
18938
case "(($ac_try" in
18939
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18940
*) ac_try_echo=$ac_try;;
18942
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18943
(eval "$ac_link") 2>conftest.er1
18945
grep -v '^ *+' conftest.er1 >conftest.err
18947
cat conftest.err >&5
18948
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18949
(exit $ac_status); } && {
18950
test -z "$ac_c_werror_flag" ||
18951
test ! -s conftest.err
18952
} && test -s conftest$ac_exeext &&
18953
$as_test_x conftest$ac_exeext; then
18955
lt_aix_libpath_sed='
18956
/Import File Strings/,/^$/ {
18962
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18963
# Check for a 64-bit object if we didn't find anything.
18964
if test -z "$aix_libpath"; then
18965
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18968
echo "$as_me: failed program was:" >&5
18969
sed 's/^/| /' conftest.$ac_ext >&5
18974
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18975
conftest$ac_exeext conftest.$ac_ext
18976
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18978
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18979
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"
18981
if test "$host_cpu" = ia64; then
18982
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18983
allow_undefined_flag_GCJ="-z nodefs"
18984
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"
18986
# Determine the default libpath from the value encoded in an empty executable.
18987
cat >conftest.$ac_ext <<_ACEOF
18990
cat confdefs.h >>conftest.$ac_ext
18991
cat >>conftest.$ac_ext <<_ACEOF
18992
/* end confdefs.h. */
19002
rm -f conftest.$ac_objext conftest$ac_exeext
19003
if { (ac_try="$ac_link"
19004
case "(($ac_try" in
19005
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19006
*) ac_try_echo=$ac_try;;
19008
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19009
(eval "$ac_link") 2>conftest.er1
19011
grep -v '^ *+' conftest.er1 >conftest.err
19013
cat conftest.err >&5
19014
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19015
(exit $ac_status); } && {
19016
test -z "$ac_c_werror_flag" ||
19017
test ! -s conftest.err
19018
} && test -s conftest$ac_exeext &&
19019
$as_test_x conftest$ac_exeext; then
19021
lt_aix_libpath_sed='
19022
/Import File Strings/,/^$/ {
19028
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19029
# Check for a 64-bit object if we didn't find anything.
19030
if test -z "$aix_libpath"; then
19031
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19034
echo "$as_me: failed program was:" >&5
19035
sed 's/^/| /' conftest.$ac_ext >&5
19040
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19041
conftest$ac_exeext conftest.$ac_ext
19042
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19044
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19045
# Warning - without using the other run time loading flags,
19046
# -berok will link without error, but may produce a broken library.
19047
no_undefined_flag_GCJ=' ${wl}-bernotok'
19048
allow_undefined_flag_GCJ=' ${wl}-berok'
19049
# Exported symbols can be pulled into shared objects from archives
19050
whole_archive_flag_spec_GCJ='$convenience'
19051
archive_cmds_need_lc_GCJ=yes
19052
# This is similar to how AIX traditionally builds its shared libraries.
19053
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'
19059
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)'
19060
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19061
hardcode_minus_L_GCJ=yes
19062
# see comment about different semantics on the GNU ld section
19067
export_dynamic_flag_spec_GCJ=-rdynamic
19070
cygwin* | mingw* | pw32*)
19071
# When not using gcc, we currently assume that we are using
19072
# Microsoft Visual C++.
19073
# hardcode_libdir_flag_spec is actually meaningless, as there is
19074
# no search path for DLLs.
19075
hardcode_libdir_flag_spec_GCJ=' '
19076
allow_undefined_flag_GCJ=unsupported
19077
# Tell ltmain to make .lib files, not .a files.
19079
# Tell ltmain to make .dll files, not .so files.
19081
# FIXME: Setting linknames here is a bad hack.
19082
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19083
# The linker will automatically build a .lib file if we build a DLL.
19084
old_archive_From_new_cmds_GCJ='true'
19085
# FIXME: Should let the user specify the lib program.
19086
old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
19087
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
19088
enable_shared_with_static_runtimes_GCJ=yes
19091
darwin* | rhapsody*)
19093
rhapsody* | darwin1.[012])
19094
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
19097
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19098
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19100
case ${MACOSX_DEPLOYMENT_TARGET} in
19102
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19105
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19111
archive_cmds_need_lc_GCJ=no
19112
hardcode_direct_GCJ=no
19113
hardcode_automatic_GCJ=yes
19114
hardcode_shlibpath_var_GCJ=unsupported
19115
whole_archive_flag_spec_GCJ=''
19116
link_all_deplibs_GCJ=yes
19117
if test "$GCC" = yes ; then
19118
output_verbose_link_cmd='echo'
19119
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}"
19120
module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19121
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}"
19122
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}"
19124
case $cc_basename in
19126
output_verbose_link_cmd='echo'
19127
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
19128
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19129
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19130
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}'
19131
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}'
19141
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19142
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19143
hardcode_shlibpath_var_GCJ=no
19150
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19151
# support. Future versions do this automatically, but an explicit c++rt0.o
19152
# does not break anything, and helps significantly (at the cost of a little
19155
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19156
hardcode_libdir_flag_spec_GCJ='-R$libdir'
19157
hardcode_direct_GCJ=yes
19158
hardcode_shlibpath_var_GCJ=no
19161
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
19163
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19164
hardcode_direct_GCJ=yes
19165
hardcode_minus_L_GCJ=yes
19166
hardcode_shlibpath_var_GCJ=no
19169
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19170
freebsd* | dragonfly*)
19171
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19172
hardcode_libdir_flag_spec_GCJ='-R$libdir'
19173
hardcode_direct_GCJ=yes
19174
hardcode_shlibpath_var_GCJ=no
19178
if test "$GCC" = yes; then
19179
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'
19181
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'
19183
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19184
hardcode_libdir_separator_GCJ=:
19185
hardcode_direct_GCJ=yes
19187
# hardcode_minus_L: Not really in the search PATH,
19188
# but as the default location of the library.
19189
hardcode_minus_L_GCJ=yes
19190
export_dynamic_flag_spec_GCJ='${wl}-E'
19194
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19195
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19197
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19199
if test "$with_gnu_ld" = no; then
19200
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19201
hardcode_libdir_separator_GCJ=:
19203
hardcode_direct_GCJ=yes
19204
export_dynamic_flag_spec_GCJ='${wl}-E'
19206
# hardcode_minus_L: Not really in the search PATH,
19207
# but as the default location of the library.
19208
hardcode_minus_L_GCJ=yes
19213
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19216
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19219
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19222
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19228
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19231
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19234
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19238
if test "$with_gnu_ld" = no; then
19239
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19240
hardcode_libdir_separator_GCJ=:
19244
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19245
hardcode_direct_GCJ=no
19246
hardcode_shlibpath_var_GCJ=no
19249
hardcode_direct_GCJ=yes
19250
export_dynamic_flag_spec_GCJ='${wl}-E'
19252
# hardcode_minus_L: Not really in the search PATH,
19253
# but as the default location of the library.
19254
hardcode_minus_L_GCJ=yes
19260
irix5* | irix6* | nonstopux*)
19261
if test "$GCC" = yes; then
19262
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'
19264
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'
19265
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19267
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19268
hardcode_libdir_separator_GCJ=:
19269
link_all_deplibs_GCJ=yes
19272
netbsd* | netbsdelf*-gnu)
19273
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19274
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19276
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19278
hardcode_libdir_flag_spec_GCJ='-R$libdir'
19279
hardcode_direct_GCJ=yes
19280
hardcode_shlibpath_var_GCJ=no
19284
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19285
hardcode_direct_GCJ=yes
19286
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19287
hardcode_libdir_separator_GCJ=:
19288
hardcode_shlibpath_var_GCJ=no
19292
if test -f /usr/libexec/ld.so; then
19293
hardcode_direct_GCJ=yes
19294
hardcode_shlibpath_var_GCJ=no
19295
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19296
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19297
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19298
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19299
export_dynamic_flag_spec_GCJ='${wl}-E'
19302
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19303
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19304
hardcode_libdir_flag_spec_GCJ='-R$libdir'
19307
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19308
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19318
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19319
hardcode_minus_L_GCJ=yes
19320
allow_undefined_flag_GCJ=unsupported
19321
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'
19322
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19326
if test "$GCC" = yes; then
19327
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19328
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'
19330
allow_undefined_flag_GCJ=' -expect_unresolved \*'
19331
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'
19333
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19334
hardcode_libdir_separator_GCJ=:
19337
osf4* | osf5*) # as osf3* with the addition of -msym flag
19338
if test "$GCC" = yes; then
19339
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19340
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'
19341
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19343
allow_undefined_flag_GCJ=' -expect_unresolved \*'
19344
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'
19345
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~
19346
$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'
19348
# Both c and cxx compiler support -rpath directly
19349
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19351
hardcode_libdir_separator_GCJ=:
19355
no_undefined_flag_GCJ=' -z text'
19356
if test "$GCC" = yes; then
19358
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19359
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19360
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19363
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19364
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19365
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19367
hardcode_libdir_flag_spec_GCJ='-R$libdir'
19368
hardcode_shlibpath_var_GCJ=no
19370
solaris2.[0-5] | solaris2.[0-5].*) ;;
19372
# The compiler driver will combine and reorder linker options,
19373
# but understands `-z linker_flag'. GCC discards it without `$wl',
19374
# but is careful enough not to reorder.
19375
# Supported since Solaris 2.6 (maybe 2.5.1?)
19376
if test "$GCC" = yes; then
19377
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19379
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
19383
link_all_deplibs_GCJ=yes
19387
if test "x$host_vendor" = xsequent; then
19388
# Use $CC to link under sequent, because it throws in some extra .o
19389
# files that make .init and .fini sections work.
19390
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19392
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19394
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19395
hardcode_direct_GCJ=yes
19396
hardcode_minus_L_GCJ=yes
19397
hardcode_shlibpath_var_GCJ=no
19401
case $host_vendor in
19403
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19404
hardcode_direct_GCJ=yes # is this really true???
19407
## LD is ld it makes a PLAMLIB
19408
## CC just makes a GrossModule.
19409
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19410
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19411
hardcode_direct_GCJ=no
19414
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19415
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19418
runpath_var='LD_RUN_PATH'
19419
hardcode_shlibpath_var_GCJ=no
19423
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19424
hardcode_shlibpath_var_GCJ=no
19425
export_dynamic_flag_spec_GCJ='-Bexport'
19429
if test -d /usr/nec; then
19430
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19431
hardcode_shlibpath_var_GCJ=no
19432
runpath_var=LD_RUN_PATH
19433
hardcode_runpath_var=yes
19438
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19439
no_undefined_flag_GCJ='${wl}-z,text'
19440
archive_cmds_need_lc_GCJ=no
19441
hardcode_shlibpath_var_GCJ=no
19442
runpath_var='LD_RUN_PATH'
19444
if test "$GCC" = yes; then
19445
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19446
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19448
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19449
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19453
sysv5* | sco3.2v5* | sco5v6*)
19454
# Note: We can NOT use -z defs as we might desire, because we do not
19455
# link with -lc, and that would cause any symbols used from libc to
19456
# always be unresolved, which means just about no library would
19457
# ever link correctly. If we're not using GNU ld we use -z text
19458
# though, which does catch some bad symbols but isn't as heavy-handed
19460
no_undefined_flag_GCJ='${wl}-z,text'
19461
allow_undefined_flag_GCJ='${wl}-z,nodefs'
19462
archive_cmds_need_lc_GCJ=no
19463
hardcode_shlibpath_var_GCJ=no
19464
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19465
hardcode_libdir_separator_GCJ=':'
19466
link_all_deplibs_GCJ=yes
19467
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19468
runpath_var='LD_RUN_PATH'
19470
if test "$GCC" = yes; then
19471
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19472
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19474
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19475
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19480
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19481
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19482
hardcode_shlibpath_var_GCJ=no
19491
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19492
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19493
test "$ld_shlibs_GCJ" = no && can_build_shared=no
19496
# Do we need to explicitly link libc?
19498
case "x$archive_cmds_need_lc_GCJ" in
19500
# Assume -lc should be added
19501
archive_cmds_need_lc_GCJ=yes
19503
if test "$enable_shared" = yes && test "$GCC" = yes; then
19504
case $archive_cmds_GCJ in
19506
# FIXME: we may have to deal with multi-command sequences.
19509
# Test whether the compiler implicitly links with -lc since on some
19510
# systems, -lgcc has to come before -lc. If gcc already passes -lc
19511
# to ld, don't add -lc before -lgcc.
19512
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19513
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19515
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19517
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19518
(eval $ac_compile) 2>&5
19520
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521
(exit $ac_status); } 2>conftest.err; then
19524
libobjs=conftest.$ac_objext
19526
wl=$lt_prog_compiler_wl_GCJ
19527
pic_flag=$lt_prog_compiler_pic_GCJ
19533
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19534
allow_undefined_flag_GCJ=
19535
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19536
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19538
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19539
(exit $ac_status); }
19541
archive_cmds_need_lc_GCJ=no
19543
archive_cmds_need_lc_GCJ=yes
19545
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19547
cat conftest.err 1>&5
19550
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19551
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19558
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19559
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19560
library_names_spec=
19561
libname_spec='lib$name'
19565
postuninstall_cmds=
19569
shlibpath_overrides_runpath=unknown
19571
dynamic_linker="$host_os ld.so"
19572
sys_lib_dlsearch_path_spec="/lib /usr/lib"
19574
need_lib_prefix=unknown
19575
hardcode_into_libs=no
19577
# when you set need_version to no, make sure it does not cause -set_version
19578
# flags to be left without arguments
19579
need_version=unknown
19584
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19585
shlibpath_var=LIBPATH
19587
# AIX 3 has no versioning support, so we append a major version to the name.
19588
soname_spec='${libname}${release}${shared_ext}$major'
19595
hardcode_into_libs=yes
19596
if test "$host_cpu" = ia64; then
19597
# AIX 5 supports IA64
19598
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19599
shlibpath_var=LD_LIBRARY_PATH
19601
# With GCC up to 2.95.x, collect2 would create an import file
19602
# for dependence libraries. The import file would start with
19603
# the line `#! .'. This would cause the generated library to
19604
# depend on `.', always an invalid library. This was fixed in
19605
# development snapshots of GCC prior to 3.0.
19607
aix4 | aix4.[01] | aix4.[01].*)
19608
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19610
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19613
can_build_shared=no
19617
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19618
# soname into executable. Probably we can add versioning support to
19619
# collect2, so additional links can be useful in future.
19620
if test "$aix_use_runtimelinking" = yes; then
19621
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
19622
# instead of lib<name>.a to let people know that these are not
19623
# typical AIX shared libraries.
19624
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19626
# We preserve .a as extension for shared libraries through AIX4.2
19627
# and later when we are not doing run time linking.
19628
library_names_spec='${libname}${release}.a $libname.a'
19629
soname_spec='${libname}${release}${shared_ext}$major'
19631
shlibpath_var=LIBPATH
19636
library_names_spec='$libname.ixlibrary $libname.a'
19637
# Create ${libname}_ixlibrary.a entries in /sys/libs.
19638
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'
19642
library_names_spec='${libname}${shared_ext}'
19643
dynamic_linker="$host_os ld.so"
19644
shlibpath_var=LIBRARY_PATH
19650
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19651
soname_spec='${libname}${release}${shared_ext}$major'
19652
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19653
shlibpath_var=LD_LIBRARY_PATH
19654
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19655
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19656
# the default ld.so.conf also contains /usr/contrib/lib and
19657
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19658
# libtool to hard-code these into programs
19661
cygwin* | mingw* | pw32*)
19662
version_type=windows
19667
case $GCC,$host_os in
19668
yes,cygwin* | yes,mingw* | yes,pw32*)
19669
library_names_spec='$libname.dll.a'
19670
# DLL is installed to $(libdir)/../bin by postinstall_cmds
19671
postinstall_cmds='base_file=`basename \${file}`~
19672
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19673
dldir=$destdir/`dirname \$dlpath`~
19674
test -d \$dldir || mkdir -p \$dldir~
19675
$install_prog $dir/$dlname \$dldir/$dlname~
19676
chmod a+x \$dldir/$dlname'
19677
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19678
dlpath=$dir/\$dldll~
19680
shlibpath_overrides_runpath=yes
19684
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
19685
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19686
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19689
# MinGW DLLs use traditional 'lib' prefix
19690
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19691
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19692
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19693
# It is most probably a Windows format PATH printed by
19694
# mingw gcc, but we are running on Cygwin. Gcc prints its search
19695
# path with ; separators, and with drive letters. We can handle the
19696
# drive letters (cygwin fileutils understands them), so leave them,
19697
# especially as we might pass files found there to a mingw objdump,
19698
# which wouldn't understand a cygwinified path. Ahh.
19699
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19701
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19705
# pw32 DLLs use 'pw' prefix rather than 'lib'
19706
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19712
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19715
dynamic_linker='Win32 ld.exe'
19716
# FIXME: first we should search . and the directory the executable is in
19720
darwin* | rhapsody*)
19721
dynamic_linker="$host_os dyld"
19722
version_type=darwin
19725
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19726
soname_spec='${libname}${release}${major}$shared_ext'
19727
shlibpath_overrides_runpath=yes
19728
shlibpath_var=DYLD_LIBRARY_PATH
19729
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19731
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19738
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19739
soname_spec='${libname}${release}${shared_ext}$major'
19740
shlibpath_var=LD_LIBRARY_PATH
19747
freebsd* | dragonfly*)
19748
# DragonFly does not have aout. When/if they implement a new
19749
# versioning mechanism, adjust this.
19750
if test -x /usr/bin/objformat; then
19751
objformat=`/usr/bin/objformat`
19754
freebsd[123]*) objformat=aout ;;
19755
*) objformat=elf ;;
19758
version_type=freebsd-$objformat
19759
case $version_type in
19761
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19766
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19770
shlibpath_var=LD_LIBRARY_PATH
19773
shlibpath_overrides_runpath=yes
19775
freebsd3.[01]* | freebsdelf3.[01]*)
19776
shlibpath_overrides_runpath=yes
19777
hardcode_into_libs=yes
19779
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19780
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19781
shlibpath_overrides_runpath=no
19782
hardcode_into_libs=yes
19784
*) # from 4.6 on, and DragonFly
19785
shlibpath_overrides_runpath=yes
19786
hardcode_into_libs=yes
19795
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19796
soname_spec='${libname}${release}${shared_ext}$major'
19797
shlibpath_var=LD_LIBRARY_PATH
19798
hardcode_into_libs=yes
19801
hpux9* | hpux10* | hpux11*)
19802
# Give a soname corresponding to the major version so that dld.sl refuses to
19803
# link against other versions.
19810
hardcode_into_libs=yes
19811
dynamic_linker="$host_os dld.so"
19812
shlibpath_var=LD_LIBRARY_PATH
19813
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19814
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19815
soname_spec='${libname}${release}${shared_ext}$major'
19816
if test "X$HPUX_IA64_MODE" = X32; then
19817
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19819
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19821
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19825
hardcode_into_libs=yes
19826
dynamic_linker="$host_os dld.sl"
19827
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19828
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19829
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19830
soname_spec='${libname}${release}${shared_ext}$major'
19831
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19832
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19836
dynamic_linker="$host_os dld.sl"
19837
shlibpath_var=SHLIB_PATH
19838
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19839
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19840
soname_spec='${libname}${release}${shared_ext}$major'
19843
# HP-UX runs *really* slowly unless shared libraries are mode 555.
19844
postinstall_cmds='chmod 555 $lib'
19851
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19852
soname_spec='${libname}${release}${shared_ext}$major'
19853
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19854
shlibpath_var=LD_LIBRARY_PATH
19855
shlibpath_overrides_runpath=no
19856
hardcode_into_libs=yes
19859
irix5* | irix6* | nonstopux*)
19861
nonstopux*) version_type=nonstopux ;;
19863
if test "$lt_cv_prog_gnu_ld" = yes; then
19871
soname_spec='${libname}${release}${shared_ext}$major'
19872
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19874
irix5* | nonstopux*)
19875
libsuff= shlibsuff=
19878
case $LD in # libtool.m4 will add one of these switches to LD
19879
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19880
libsuff= shlibsuff= libmagic=32-bit;;
19881
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19882
libsuff=32 shlibsuff=N32 libmagic=N32;;
19883
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19884
libsuff=64 shlibsuff=64 libmagic=64-bit;;
19885
*) libsuff= shlibsuff= libmagic=never-match;;
19889
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19890
shlibpath_overrides_runpath=no
19891
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19892
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19893
hardcode_into_libs=yes
19896
# No shared lib support for Linux oldld, aout, or coff.
19897
linux*oldld* | linux*aout* | linux*coff*)
19901
# This must be Linux ELF.
19902
linux* | k*bsd*-gnu)
19906
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19907
soname_spec='${libname}${release}${shared_ext}$major'
19908
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19909
shlibpath_var=LD_LIBRARY_PATH
19910
shlibpath_overrides_runpath=no
19911
# This implies no fast_install, which is unacceptable.
19912
# Some rework will be needed to allow for fast_install
19913
# before this can be enabled.
19914
hardcode_into_libs=yes
19916
# Append ld.so.conf contents to the search path
19917
if test -f /etc/ld.so.conf; then
19918
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' ' '`
19919
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19922
# We used to test for /lib/ld.so.1 and disable shared libraries on
19923
# powerpc, because MkLinux only supported shared libraries with the
19924
# GNU dynamic linker. Since this was broken with cross compilers,
19925
# most powerpc-linux boxes support dynamic linking these days and
19926
# people can always --disable-shared, the test was removed, and we
19927
# assume the GNU/Linux dynamic linker is in use.
19928
dynamic_linker='GNU/Linux ld.so'
19935
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19936
soname_spec='${libname}${release}${shared_ext}$major'
19937
shlibpath_var=LD_LIBRARY_PATH
19938
shlibpath_overrides_runpath=no
19939
hardcode_into_libs=yes
19940
dynamic_linker='NetBSD ld.elf_so'
19947
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19948
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19949
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19950
dynamic_linker='NetBSD (a.out) ld.so'
19952
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19953
soname_spec='${libname}${release}${shared_ext}$major'
19954
dynamic_linker='NetBSD ld.elf_so'
19956
shlibpath_var=LD_LIBRARY_PATH
19957
shlibpath_overrides_runpath=yes
19958
hardcode_into_libs=yes
19963
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19964
shlibpath_var=LD_LIBRARY_PATH
19965
shlibpath_overrides_runpath=yes
19972
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19973
soname_spec='${libname}${release}${shared_ext}$major'
19974
shlibpath_var=LD_LIBRARY_PATH
19975
shlibpath_overrides_runpath=yes
19980
sys_lib_dlsearch_path_spec="/usr/lib"
19982
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19984
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19985
*) need_version=no ;;
19987
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19988
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19989
shlibpath_var=LD_LIBRARY_PATH
19990
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19992
openbsd2.[89] | openbsd2.[89].*)
19993
shlibpath_overrides_runpath=no
19996
shlibpath_overrides_runpath=yes
20000
shlibpath_overrides_runpath=yes
20005
libname_spec='$name'
20008
library_names_spec='$libname${shared_ext} $libname.a'
20009
dynamic_linker='OS/2 ld.exe'
20010
shlibpath_var=LIBPATH
20013
osf3* | osf4* | osf5*)
20017
soname_spec='${libname}${release}${shared_ext}$major'
20018
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20019
shlibpath_var=LD_LIBRARY_PATH
20020
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20021
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20032
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20033
soname_spec='${libname}${release}${shared_ext}$major'
20034
shlibpath_var=LD_LIBRARY_PATH
20035
shlibpath_overrides_runpath=yes
20036
hardcode_into_libs=yes
20037
# ldd complains unless libraries are executable
20038
postinstall_cmds='chmod +x $lib'
20043
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20044
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20045
shlibpath_var=LD_LIBRARY_PATH
20046
shlibpath_overrides_runpath=yes
20047
if test "$with_gnu_ld" = yes; then
20055
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20056
soname_spec='${libname}${release}${shared_ext}$major'
20057
shlibpath_var=LD_LIBRARY_PATH
20058
case $host_vendor in
20060
shlibpath_overrides_runpath=no
20062
export_dynamic_flag_spec='${wl}-Blargedynsym'
20063
runpath_var=LD_RUN_PATH
20071
shlibpath_overrides_runpath=no
20072
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20078
if test -d /usr/nec ;then
20080
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20081
soname_spec='$libname${shared_ext}.$major'
20082
shlibpath_var=LD_LIBRARY_PATH
20086
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20087
version_type=freebsd-elf
20090
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20091
soname_spec='${libname}${release}${shared_ext}$major'
20092
shlibpath_var=LD_LIBRARY_PATH
20093
hardcode_into_libs=yes
20094
if test "$with_gnu_ld" = yes; then
20095
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20096
shlibpath_overrides_runpath=no
20098
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20099
shlibpath_overrides_runpath=yes
20102
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20106
sys_lib_dlsearch_path_spec='/usr/lib'
20111
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20112
soname_spec='${libname}${release}${shared_ext}$major'
20113
shlibpath_var=LD_LIBRARY_PATH
20120
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20121
echo "${ECHO_T}$dynamic_linker" >&6; }
20122
test "$dynamic_linker" = no && can_build_shared=no
20124
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20125
echo $ECHO_N "(cached) $ECHO_C" >&6
20127
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
20130
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20131
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20132
echo $ECHO_N "(cached) $ECHO_C" >&6
20134
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
20137
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20139
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20140
if test "$GCC" = yes; then
20141
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20144
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20145
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20146
hardcode_action_GCJ=
20147
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20148
test -n "$runpath_var_GCJ" || \
20149
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20151
# We can hardcode non-existant directories.
20152
if test "$hardcode_direct_GCJ" != no &&
20153
# If the only mechanism to avoid hardcoding is shlibpath_var, we
20154
# have to relink, otherwise we might link with an installed library
20155
# when we should be linking with a yet-to-be-installed one
20156
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20157
test "$hardcode_minus_L_GCJ" != no; then
20158
# Linking always hardcodes the temporary library directory.
20159
hardcode_action_GCJ=relink
20161
# We can link without hardcoding, and we can hardcode nonexisting dirs.
20162
hardcode_action_GCJ=immediate
20165
# We cannot hardcode anything, or else we can only hardcode existing
20167
hardcode_action_GCJ=unsupported
20169
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20170
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
20172
if test "$hardcode_action_GCJ" = relink; then
20173
# Fast installation is not supported
20174
enable_fast_install=no
20175
elif test "$shlibpath_overrides_runpath" = yes ||
20176
test "$enable_shared" = no; then
20177
# Fast installation is not necessary
20178
enable_fast_install=needless
20182
# The else clause should only fire when bootstrapping the
20183
# libtool distribution, otherwise you forgot to ship ltmain.sh
20184
# with your package, and you will get complaints that there are
20185
# no rules to generate ltmain.sh.
20186
if test -f "$ltmain"; then
20187
# See if we are running on zsh, and set the options which allow our commands through
20188
# without removal of \ escapes.
20189
if test -n "${ZSH_VERSION+set}" ; then
20190
setopt NO_GLOB_SUBST
20192
# Now quote all the things that may contain metacharacters while being
20193
# careful not to overquote the AC_SUBSTed values. We take copies of the
20194
# variables and quote the copies for generation of the libtool script.
20195
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20197
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20198
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20199
deplibs_check_method reload_flag reload_cmds need_locks \
20200
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20201
lt_cv_sys_global_symbol_to_c_name_address \
20202
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20203
old_postinstall_cmds old_postuninstall_cmds \
20207
lt_prog_compiler_wl_GCJ \
20208
lt_prog_compiler_pic_GCJ \
20209
lt_prog_compiler_static_GCJ \
20210
lt_prog_compiler_no_builtin_flag_GCJ \
20211
export_dynamic_flag_spec_GCJ \
20212
thread_safe_flag_spec_GCJ \
20213
whole_archive_flag_spec_GCJ \
20214
enable_shared_with_static_runtimes_GCJ \
20215
old_archive_cmds_GCJ \
20216
old_archive_from_new_cmds_GCJ \
20217
predep_objects_GCJ \
20218
postdep_objects_GCJ \
20221
compiler_lib_search_path_GCJ \
20222
compiler_lib_search_dirs_GCJ \
20224
archive_expsym_cmds_GCJ \
20225
postinstall_cmds_GCJ \
20226
postuninstall_cmds_GCJ \
20227
old_archive_from_expsyms_cmds_GCJ \
20228
allow_undefined_flag_GCJ \
20229
no_undefined_flag_GCJ \
20230
export_symbols_cmds_GCJ \
20231
hardcode_libdir_flag_spec_GCJ \
20232
hardcode_libdir_flag_spec_ld_GCJ \
20233
hardcode_libdir_separator_GCJ \
20234
hardcode_automatic_GCJ \
20236
module_expsym_cmds_GCJ \
20237
lt_cv_prog_compiler_c_o_GCJ \
20238
fix_srcfile_path_GCJ \
20239
exclude_expsyms_GCJ \
20240
include_expsyms_GCJ; do
20243
old_archive_cmds_GCJ | \
20244
old_archive_from_new_cmds_GCJ | \
20245
archive_cmds_GCJ | \
20246
archive_expsym_cmds_GCJ | \
20247
module_cmds_GCJ | \
20248
module_expsym_cmds_GCJ | \
20249
old_archive_from_expsyms_cmds_GCJ | \
20250
export_symbols_cmds_GCJ | \
20251
extract_expsyms_cmds | reload_cmds | finish_cmds | \
20252
postinstall_cmds | postuninstall_cmds | \
20253
old_postinstall_cmds | old_postuninstall_cmds | \
20254
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20255
# Double-quote double-evaled strings.
20256
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20259
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20265
*'\$0 --fallback-echo"')
20266
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20272
cat <<__EOF__ >> "$cfgfile"
20273
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20275
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20277
# Shell to use when invoking shell scripts.
20280
# Whether or not to build shared libraries.
20281
build_libtool_libs=$enable_shared
20283
# Whether or not to build static libraries.
20284
build_old_libs=$enable_static
20286
# Whether or not to add -lc for building shared libraries.
20287
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20289
# Whether or not to disallow shared libs when runtime libs are static
20290
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20292
# Whether or not to optimize for fast installation.
20293
fast_install=$enable_fast_install
20296
host_alias=$host_alias
20300
# The build system.
20301
build_alias=$build_alias
20305
# An echo program that does not interpret backslashes.
20310
AR_FLAGS=$lt_AR_FLAGS
20315
# LTCC compiler flags.
20316
LTCFLAGS=$lt_LTCFLAGS
20318
# A language-specific compiler.
20319
CC=$lt_compiler_GCJ
20321
# Is the compiler the GNU C compiler?
20327
# The linker used to build libraries.
20330
# Whether we need hard or soft links.
20333
# A BSD-compatible nm program.
20336
# A symbol stripping program
20339
# Used to examine libraries when file_magic_cmd begins "file"
20340
MAGIC_CMD=$MAGIC_CMD
20342
# Used on cygwin: DLL creation program.
20345
# Used on cygwin: object dumper.
20348
# Used on cygwin: assembler.
20351
# The name of the directory that contains temporary libtool files.
20354
# How to create reloadable object files.
20355
reload_flag=$lt_reload_flag
20356
reload_cmds=$lt_reload_cmds
20358
# How to pass a linker flag through the compiler.
20359
wl=$lt_lt_prog_compiler_wl_GCJ
20361
# Object file suffix (normally "o").
20362
objext="$ac_objext"
20364
# Old archive suffix (normally "a").
20367
# Shared library suffix (normally ".so").
20368
shrext_cmds='$shrext_cmds'
20370
# Executable file suffix (normally "").
20373
# Additional compiler flags for building library objects.
20374
pic_flag=$lt_lt_prog_compiler_pic_GCJ
20377
# What is the maximum length of a command?
20378
max_cmd_len=$lt_cv_sys_max_cmd_len
20380
# Does compiler simultaneously support -c and -o options?
20381
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20383
# Must we lock files when doing compilation?
20384
need_locks=$lt_need_locks
20386
# Do we need the lib prefix for modules?
20387
need_lib_prefix=$need_lib_prefix
20389
# Do we need a version for libraries?
20390
need_version=$need_version
20392
# Whether dlopen is supported.
20393
dlopen_support=$enable_dlopen
20395
# Whether dlopen of programs is supported.
20396
dlopen_self=$enable_dlopen_self
20398
# Whether dlopen of statically linked programs is supported.
20399
dlopen_self_static=$enable_dlopen_self_static
20401
# Compiler flag to prevent dynamic linking.
20402
link_static_flag=$lt_lt_prog_compiler_static_GCJ
20404
# Compiler flag to turn off builtin functions.
20405
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20407
# Compiler flag to allow reflexive dlopens.
20408
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20410
# Compiler flag to generate shared objects directly from archives.
20411
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20413
# Compiler flag to generate thread-safe objects.
20414
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20416
# Library versioning type.
20417
version_type=$version_type
20419
# Format of library name prefix.
20420
libname_spec=$lt_libname_spec
20422
# List of archive names. First name is the real one, the rest are links.
20423
# The last name is the one that the linker finds with -lNAME.
20424
library_names_spec=$lt_library_names_spec
20426
# The coded name of the library, if different from the real name.
20427
soname_spec=$lt_soname_spec
20429
# Commands used to build and install an old-style archive.
20431
old_archive_cmds=$lt_old_archive_cmds_GCJ
20432
old_postinstall_cmds=$lt_old_postinstall_cmds
20433
old_postuninstall_cmds=$lt_old_postuninstall_cmds
20435
# Create an old-style archive from a shared archive.
20436
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20438
# Create a temporary old-style archive to link instead of a shared archive.
20439
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20441
# Commands used to build and install a shared archive.
20442
archive_cmds=$lt_archive_cmds_GCJ
20443
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20444
postinstall_cmds=$lt_postinstall_cmds
20445
postuninstall_cmds=$lt_postuninstall_cmds
20447
# Commands used to build a loadable module (assumed same as above if empty)
20448
module_cmds=$lt_module_cmds_GCJ
20449
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20451
# Commands to strip libraries.
20452
old_striplib=$lt_old_striplib
20453
striplib=$lt_striplib
20455
# Dependencies to place before the objects being linked to create a
20457
predep_objects=$lt_predep_objects_GCJ
20459
# Dependencies to place after the objects being linked to create a
20461
postdep_objects=$lt_postdep_objects_GCJ
20463
# Dependencies to place before the objects being linked to create a
20465
predeps=$lt_predeps_GCJ
20467
# Dependencies to place after the objects being linked to create a
20469
postdeps=$lt_postdeps_GCJ
20471
# The directories searched by this compiler when creating a shared
20473
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
20475
# The library search path used internally by the compiler when linking
20476
# a shared library.
20477
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20479
# Method to check whether dependent libraries are shared objects.
20480
deplibs_check_method=$lt_deplibs_check_method
20482
# Command to use when deplibs_check_method == file_magic.
20483
file_magic_cmd=$lt_file_magic_cmd
20485
# Flag that allows shared libraries with undefined symbols to be built.
20486
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20488
# Flag that forces no undefined symbols.
20489
no_undefined_flag=$lt_no_undefined_flag_GCJ
20491
# Commands used to finish a libtool library installation in a directory.
20492
finish_cmds=$lt_finish_cmds
20494
# Same as above, but a single script fragment to be evaled but not shown.
20495
finish_eval=$lt_finish_eval
20497
# Take the output of nm and produce a listing of raw symbols and C names.
20498
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20500
# Transform the output of nm in a proper C declaration
20501
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20503
# Transform the output of nm in a C name address pair
20504
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20506
# This is the shared library runtime path variable.
20507
runpath_var=$runpath_var
20509
# This is the shared library path variable.
20510
shlibpath_var=$shlibpath_var
20512
# Is shlibpath searched before the hard-coded library search path?
20513
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20515
# How to hardcode a shared library path into an executable.
20516
hardcode_action=$hardcode_action_GCJ
20518
# Whether we should hardcode library paths into libraries.
20519
hardcode_into_libs=$hardcode_into_libs
20521
# Flag to hardcode \$libdir into a binary during linking.
20522
# This must work even if \$libdir does not exist.
20523
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20525
# If ld is used when linking, flag to hardcode \$libdir into
20526
# a binary during linking. This must work even if \$libdir does
20528
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20530
# Whether we need a single -rpath flag with a separated argument.
20531
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20533
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20534
# resulting binary.
20535
hardcode_direct=$hardcode_direct_GCJ
20537
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20538
# resulting binary.
20539
hardcode_minus_L=$hardcode_minus_L_GCJ
20541
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20542
# the resulting binary.
20543
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20545
# Set to yes if building a shared library automatically hardcodes DIR into the library
20546
# and all subsequent libraries and executables linked against it.
20547
hardcode_automatic=$hardcode_automatic_GCJ
20549
# Variables whose values should be saved in libtool wrapper scripts and
20550
# restored at relink time.
20551
variables_saved_for_relink="$variables_saved_for_relink"
20553
# Whether libtool must link a program against all its dependency libraries.
20554
link_all_deplibs=$link_all_deplibs_GCJ
20556
# Compile-time system search path for libraries
20557
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20559
# Run-time system search path for libraries
20560
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20562
# Fix the shell variable \$srcfile for the compiler.
20563
fix_srcfile_path=$lt_fix_srcfile_path
20565
# Set to yes if exported symbols are required.
20566
always_export_symbols=$always_export_symbols_GCJ
20568
# The commands to list exported symbols.
20569
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20571
# The commands to extract the exported symbol list from a shared archive.
20572
extract_expsyms_cmds=$lt_extract_expsyms_cmds
20574
# Symbols that should not be listed in the preloaded symbols.
20575
exclude_expsyms=$lt_exclude_expsyms_GCJ
20577
# Symbols that must always be exported.
20578
include_expsyms=$lt_include_expsyms_GCJ
20580
# ### END LIBTOOL TAG CONFIG: $tagname
20586
# If there is no Makefile yet, we rely on a make rule to execute
20587
# `config.status --recheck' to rerun these tests and create the
20588
# libtool script then.
20589
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20590
if test -f "$ltmain_in"; then
20591
test -f Makefile && make "$ltmain"
20597
ac_cpp='$CPP $CPPFLAGS'
20598
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20599
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20600
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12386
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12387
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12388
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12389
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12390
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12391
{ $as_echo "$as_me:$LINENO: result: yes" >&5
12392
$as_echo "yes" >&6; }
12394
# FIXME - insert some real tests, host_os isn't really good enough
12397
if test -n "$STRIP" ; then
12398
striplib="$STRIP -x"
12399
old_striplib="$STRIP -S"
12400
{ $as_echo "$as_me:$LINENO: result: yes" >&5
12401
$as_echo "yes" >&6; }
12403
{ $as_echo "$as_me:$LINENO: result: no" >&5
12404
$as_echo "no" >&6; }
12408
{ $as_echo "$as_me:$LINENO: result: no" >&5
12409
$as_echo "no" >&6; }
12425
# Report which library types will actually be built
12426
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12427
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12428
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
12429
$as_echo "$can_build_shared" >&6; }
12431
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12432
$as_echo_n "checking whether to build shared libraries... " >&6; }
12433
test "$can_build_shared" = "no" && enable_shared=no
12435
# On AIX, shared libraries and static libraries use the same namespace, and
12436
# are all built from PIC.
12439
test "$enable_shared" = yes && enable_static=no
12440
if test -n "$RANLIB"; then
12441
archive_cmds="$archive_cmds~\$RANLIB \$lib"
12442
postinstall_cmds='$RANLIB $lib'
12447
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12448
test "$enable_shared" = yes && enable_static=no
12452
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
12453
$as_echo "$enable_shared" >&6; }
12455
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12456
$as_echo_n "checking whether to build static libraries... " >&6; }
12457
# Make sure either enable_shared or enable_static is yes.
12458
test "$enable_shared" = yes || enable_static=yes
12459
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
12460
$as_echo "$enable_static" >&6; }
12467
ac_cpp='$CPP $CPPFLAGS'
12468
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12469
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12470
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12486
ac_config_commands="$ac_config_commands libtool"
12491
# Only expand once:
12494
if test -n "$ac_tool_prefix"; then
12495
# Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
12496
set dummy ${ac_tool_prefix}windres; ac_word=$2
12497
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12498
$as_echo_n "checking for $ac_word... " >&6; }
12499
if test "${ac_cv_prog_RC+set}" = set; then
12500
$as_echo_n "(cached) " >&6
12502
if test -n "$RC"; then
12503
ac_cv_prog_RC="$RC" # Let the user override the test.
12505
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12506
for as_dir in $PATH
12509
test -z "$as_dir" && as_dir=.
12510
for ac_exec_ext in '' $ac_executable_extensions; do
12511
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12512
ac_cv_prog_RC="${ac_tool_prefix}windres"
12513
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12523
if test -n "$RC"; then
12524
{ $as_echo "$as_me:$LINENO: result: $RC" >&5
12525
$as_echo "$RC" >&6; }
12527
{ $as_echo "$as_me:$LINENO: result: no" >&5
12528
$as_echo "no" >&6; }
12533
if test -z "$ac_cv_prog_RC"; then
12535
# Extract the first word of "windres", so it can be a program name with args.
12536
set dummy windres; ac_word=$2
12537
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12538
$as_echo_n "checking for $ac_word... " >&6; }
12539
if test "${ac_cv_prog_ac_ct_RC+set}" = set; then
12540
$as_echo_n "(cached) " >&6
12542
if test -n "$ac_ct_RC"; then
12543
ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
12545
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12546
for as_dir in $PATH
12549
test -z "$as_dir" && as_dir=.
12550
for ac_exec_ext in '' $ac_executable_extensions; do
12551
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12552
ac_cv_prog_ac_ct_RC="windres"
12553
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12562
ac_ct_RC=$ac_cv_prog_ac_ct_RC
12563
if test -n "$ac_ct_RC"; then
12564
{ $as_echo "$as_me:$LINENO: result: $ac_ct_RC" >&5
12565
$as_echo "$ac_ct_RC" >&6; }
12567
{ $as_echo "$as_me:$LINENO: result: no" >&5
12568
$as_echo "no" >&6; }
12571
if test "x$ac_ct_RC" = x; then
12574
case $cross_compiling:$ac_tool_warned in
12576
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12577
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12578
ac_tool_warned=yes ;;
12583
RC="$ac_cv_prog_RC"
20612
12589
# Source file extension for RC test sources.