11863
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11864
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11865
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11866
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11867
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11868
{ $as_echo "$as_me:$LINENO: result: yes" >&5
11869
$as_echo "yes" >&6; }
11871
# FIXME - insert some real tests, host_os isn't really good enough
11874
if test -n "$STRIP" ; then
11875
striplib="$STRIP -x"
11876
old_striplib="$STRIP -S"
11877
{ $as_echo "$as_me:$LINENO: result: yes" >&5
11878
$as_echo "yes" >&6; }
11880
{ $as_echo "$as_me:$LINENO: result: no" >&5
11881
$as_echo "no" >&6; }
11885
{ $as_echo "$as_me:$LINENO: result: no" >&5
11886
$as_echo "no" >&6; }
11902
# Report which library types will actually be built
11903
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11904
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11905
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11906
$as_echo "$can_build_shared" >&6; }
11908
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11909
$as_echo_n "checking whether to build shared libraries... " >&6; }
11910
test "$can_build_shared" = "no" && enable_shared=no
11912
# On AIX, shared libraries and static libraries use the same namespace, and
11913
# are all built from PIC.
11916
test "$enable_shared" = yes && enable_static=no
11917
if test -n "$RANLIB"; then
11918
archive_cmds="$archive_cmds~\$RANLIB \$lib"
11919
postinstall_cmds='$RANLIB $lib'
11924
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11925
test "$enable_shared" = yes && enable_static=no
11929
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11930
$as_echo "$enable_shared" >&6; }
11932
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11933
$as_echo_n "checking whether to build static libraries... " >&6; }
11934
# Make sure either enable_shared or enable_static is yes.
11935
test "$enable_shared" = yes || enable_static=yes
11936
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11937
$as_echo "$enable_static" >&6; }
11944
ac_cpp='$CPP $CPPFLAGS'
11945
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11946
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11947
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11963
ac_config_commands="$ac_config_commands libtool"
11968
# Only expand once:
11891
# Report which library types will actually be built
11892
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11893
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11894
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11895
$as_echo "$can_build_shared" >&6; }
11897
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11898
$as_echo_n "checking whether to build shared libraries... " >&6; }
11899
test "$can_build_shared" = "no" && enable_shared=no
11901
# On AIX, shared libraries and static libraries use the same namespace, and
11902
# are all built from PIC.
11905
test "$enable_shared" = yes && enable_static=no
11906
if test -n "$RANLIB"; then
11907
archive_cmds="$archive_cmds~\$RANLIB \$lib"
11908
postinstall_cmds='$RANLIB $lib'
11913
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11914
test "$enable_shared" = yes && enable_static=no
11918
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11919
$as_echo "$enable_shared" >&6; }
11921
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11922
$as_echo_n "checking whether to build static libraries... " >&6; }
11923
# Make sure either enable_shared or enable_static is yes.
11924
test "$enable_shared" = yes || enable_static=yes
11925
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11926
$as_echo "$enable_static" >&6; }
11928
# The else clause should only fire when bootstrapping the
11929
# libtool distribution, otherwise you forgot to ship ltmain.sh
11930
# with your package, and you will get complaints that there are
11931
# no rules to generate ltmain.sh.
11932
if test -f "$ltmain"; then
11933
# See if we are running on zsh, and set the options which allow our commands through
11934
# without removal of \ escapes.
11935
if test -n "${ZSH_VERSION+set}" ; then
11936
setopt NO_GLOB_SUBST
11938
# Now quote all the things that may contain metacharacters while being
11939
# careful not to overquote the AC_SUBSTed values. We take copies of the
11940
# variables and quote the copies for generation of the libtool script.
11941
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11943
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11944
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11945
deplibs_check_method reload_flag reload_cmds need_locks \
11946
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11947
lt_cv_sys_global_symbol_to_c_name_address \
11948
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11949
old_postinstall_cmds old_postuninstall_cmds \
11953
lt_prog_compiler_wl \
11954
lt_prog_compiler_pic \
11955
lt_prog_compiler_static \
11956
lt_prog_compiler_no_builtin_flag \
11957
export_dynamic_flag_spec \
11958
thread_safe_flag_spec \
11959
whole_archive_flag_spec \
11960
enable_shared_with_static_runtimes \
11962
old_archive_from_new_cmds \
11967
compiler_lib_search_path \
11968
compiler_lib_search_dirs \
11970
archive_expsym_cmds \
11972
postuninstall_cmds \
11973
old_archive_from_expsyms_cmds \
11974
allow_undefined_flag \
11975
no_undefined_flag \
11976
export_symbols_cmds \
11977
hardcode_libdir_flag_spec \
11978
hardcode_libdir_flag_spec_ld \
11979
hardcode_libdir_separator \
11980
hardcode_automatic \
11982
module_expsym_cmds \
11983
lt_cv_prog_compiler_c_o \
11986
include_expsyms; do
11989
old_archive_cmds | \
11990
old_archive_from_new_cmds | \
11992
archive_expsym_cmds | \
11994
module_expsym_cmds | \
11995
old_archive_from_expsyms_cmds | \
11996
export_symbols_cmds | \
11997
extract_expsyms_cmds | reload_cmds | finish_cmds | \
11998
postinstall_cmds | postuninstall_cmds | \
11999
old_postinstall_cmds | old_postuninstall_cmds | \
12000
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12001
# Double-quote double-evaled strings.
12002
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12005
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12011
*'\$0 --fallback-echo"')
12012
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12016
cfgfile="${ofile}T"
12017
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
12019
{ $as_echo "$as_me:$LINENO: creating $ofile" >&5
12020
$as_echo "$as_me: creating $ofile" >&6;}
12022
cat <<__EOF__ >> "$cfgfile"
12025
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12026
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
12027
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
12029
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
12030
# Free Software Foundation, Inc.
12032
# This file is part of GNU Libtool:
12033
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
12035
# This program is free software; you can redistribute it and/or modify
12036
# it under the terms of the GNU General Public License as published by
12037
# the Free Software Foundation; either version 2 of the License, or
12038
# (at your option) any later version.
12040
# This program is distributed in the hope that it will be useful, but
12041
# WITHOUT ANY WARRANTY; without even the implied warranty of
12042
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12043
# General Public License for more details.
12045
# You should have received a copy of the GNU General Public License
12046
# along with this program; if not, write to the Free Software
12047
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12049
# As a special exception to the GNU General Public License, if you
12050
# distribute this file as part of a program that contains a
12051
# configuration script generated by Autoconf, you may include it under
12052
# the same distribution terms that you use for the rest of that program.
12054
# A sed program that does not truncate output.
12057
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
12058
Xsed="$SED -e 1s/^X//"
12060
# The HP-UX ksh and POSIX shell print the target directory to stdout
12061
# if CDPATH is set.
12062
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12064
# The names of the tagged configurations supported by this script.
12067
# ### BEGIN LIBTOOL CONFIG
12069
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12071
# Shell to use when invoking shell scripts.
12074
# Whether or not to build shared libraries.
12075
build_libtool_libs=$enable_shared
12077
# Whether or not to build static libraries.
12078
build_old_libs=$enable_static
12080
# Whether or not to add -lc for building shared libraries.
12081
build_libtool_need_lc=$archive_cmds_need_lc
12083
# Whether or not to disallow shared libs when runtime libs are static
12084
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12086
# Whether or not to optimize for fast installation.
12087
fast_install=$enable_fast_install
12090
host_alias=$host_alias
12094
# The build system.
12095
build_alias=$build_alias
12099
# An echo program that does not interpret backslashes.
12104
AR_FLAGS=$lt_AR_FLAGS
12109
# LTCC compiler flags.
12110
LTCFLAGS=$lt_LTCFLAGS
12112
# A language-specific compiler.
12115
# Is the compiler the GNU C compiler?
12121
# The linker used to build libraries.
12124
# Whether we need hard or soft links.
12127
# A BSD-compatible nm program.
12130
# A symbol stripping program
12133
# Used to examine libraries when file_magic_cmd begins "file"
12134
MAGIC_CMD=$MAGIC_CMD
12136
# Used on cygwin: DLL creation program.
12139
# Used on cygwin: object dumper.
12142
# Used on cygwin: assembler.
12145
# The name of the directory that contains temporary libtool files.
12148
# How to create reloadable object files.
12149
reload_flag=$lt_reload_flag
12150
reload_cmds=$lt_reload_cmds
12152
# How to pass a linker flag through the compiler.
12153
wl=$lt_lt_prog_compiler_wl
12155
# Object file suffix (normally "o").
12156
objext="$ac_objext"
12158
# Old archive suffix (normally "a").
12161
# Shared library suffix (normally ".so").
12162
shrext_cmds='$shrext_cmds'
12164
# Executable file suffix (normally "").
12167
# Additional compiler flags for building library objects.
12168
pic_flag=$lt_lt_prog_compiler_pic
12171
# What is the maximum length of a command?
12172
max_cmd_len=$lt_cv_sys_max_cmd_len
12174
# Does compiler simultaneously support -c and -o options?
12175
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12177
# Must we lock files when doing compilation?
12178
need_locks=$lt_need_locks
12180
# Do we need the lib prefix for modules?
12181
need_lib_prefix=$need_lib_prefix
12183
# Do we need a version for libraries?
12184
need_version=$need_version
12186
# Whether dlopen is supported.
12187
dlopen_support=$enable_dlopen
12189
# Whether dlopen of programs is supported.
12190
dlopen_self=$enable_dlopen_self
12192
# Whether dlopen of statically linked programs is supported.
12193
dlopen_self_static=$enable_dlopen_self_static
12195
# Compiler flag to prevent dynamic linking.
12196
link_static_flag=$lt_lt_prog_compiler_static
12198
# Compiler flag to turn off builtin functions.
12199
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12201
# Compiler flag to allow reflexive dlopens.
12202
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12204
# Compiler flag to generate shared objects directly from archives.
12205
whole_archive_flag_spec=$lt_whole_archive_flag_spec
12207
# Compiler flag to generate thread-safe objects.
12208
thread_safe_flag_spec=$lt_thread_safe_flag_spec
12210
# Library versioning type.
12211
version_type=$version_type
12213
# Format of library name prefix.
12214
libname_spec=$lt_libname_spec
12216
# List of archive names. First name is the real one, the rest are links.
12217
# The last name is the one that the linker finds with -lNAME.
12218
library_names_spec=$lt_library_names_spec
12220
# The coded name of the library, if different from the real name.
12221
soname_spec=$lt_soname_spec
12223
# Commands used to build and install an old-style archive.
12225
old_archive_cmds=$lt_old_archive_cmds
12226
old_postinstall_cmds=$lt_old_postinstall_cmds
12227
old_postuninstall_cmds=$lt_old_postuninstall_cmds
12229
# Create an old-style archive from a shared archive.
12230
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12232
# Create a temporary old-style archive to link instead of a shared archive.
12233
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12235
# Commands used to build and install a shared archive.
12236
archive_cmds=$lt_archive_cmds
12237
archive_expsym_cmds=$lt_archive_expsym_cmds
12238
postinstall_cmds=$lt_postinstall_cmds
12239
postuninstall_cmds=$lt_postuninstall_cmds
12241
# Commands used to build a loadable module (assumed same as above if empty)
12242
module_cmds=$lt_module_cmds
12243
module_expsym_cmds=$lt_module_expsym_cmds
12245
# Commands to strip libraries.
12246
old_striplib=$lt_old_striplib
12247
striplib=$lt_striplib
12249
# Dependencies to place before the objects being linked to create a
12251
predep_objects=$lt_predep_objects
12253
# Dependencies to place after the objects being linked to create a
12255
postdep_objects=$lt_postdep_objects
12257
# Dependencies to place before the objects being linked to create a
12259
predeps=$lt_predeps
12261
# Dependencies to place after the objects being linked to create a
12263
postdeps=$lt_postdeps
12265
# The directories searched by this compiler when creating a shared
12267
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
12269
# The library search path used internally by the compiler when linking
12270
# a shared library.
12271
compiler_lib_search_path=$lt_compiler_lib_search_path
12273
# Method to check whether dependent libraries are shared objects.
12274
deplibs_check_method=$lt_deplibs_check_method
12276
# Command to use when deplibs_check_method == file_magic.
12277
file_magic_cmd=$lt_file_magic_cmd
12279
# Flag that allows shared libraries with undefined symbols to be built.
12280
allow_undefined_flag=$lt_allow_undefined_flag
12282
# Flag that forces no undefined symbols.
12283
no_undefined_flag=$lt_no_undefined_flag
12285
# Commands used to finish a libtool library installation in a directory.
12286
finish_cmds=$lt_finish_cmds
12288
# Same as above, but a single script fragment to be evaled but not shown.
12289
finish_eval=$lt_finish_eval
12291
# Take the output of nm and produce a listing of raw symbols and C names.
12292
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12294
# Transform the output of nm in a proper C declaration
12295
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12297
# Transform the output of nm in a C name address pair
12298
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12300
# This is the shared library runtime path variable.
12301
runpath_var=$runpath_var
12303
# This is the shared library path variable.
12304
shlibpath_var=$shlibpath_var
12306
# Is shlibpath searched before the hard-coded library search path?
12307
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12309
# How to hardcode a shared library path into an executable.
12310
hardcode_action=$hardcode_action
12312
# Whether we should hardcode library paths into libraries.
12313
hardcode_into_libs=$hardcode_into_libs
12315
# Flag to hardcode \$libdir into a binary during linking.
12316
# This must work even if \$libdir does not exist.
12317
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12319
# If ld is used when linking, flag to hardcode \$libdir into
12320
# a binary during linking. This must work even if \$libdir does
12322
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12324
# Whether we need a single -rpath flag with a separated argument.
12325
hardcode_libdir_separator=$lt_hardcode_libdir_separator
12327
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12328
# resulting binary.
12329
hardcode_direct=$hardcode_direct
12331
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12332
# resulting binary.
12333
hardcode_minus_L=$hardcode_minus_L
12335
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12336
# the resulting binary.
12337
hardcode_shlibpath_var=$hardcode_shlibpath_var
12339
# Set to yes if building a shared library automatically hardcodes DIR into the library
12340
# and all subsequent libraries and executables linked against it.
12341
hardcode_automatic=$hardcode_automatic
12343
# Variables whose values should be saved in libtool wrapper scripts and
12344
# restored at relink time.
12345
variables_saved_for_relink="$variables_saved_for_relink"
12347
# Whether libtool must link a program against all its dependency libraries.
12348
link_all_deplibs=$link_all_deplibs
12350
# Compile-time system search path for libraries
12351
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12353
# Run-time system search path for libraries
12354
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12356
# Fix the shell variable \$srcfile for the compiler.
12357
fix_srcfile_path=$lt_fix_srcfile_path
12359
# Set to yes if exported symbols are required.
12360
always_export_symbols=$always_export_symbols
12362
# The commands to list exported symbols.
12363
export_symbols_cmds=$lt_export_symbols_cmds
12365
# The commands to extract the exported symbol list from a shared archive.
12366
extract_expsyms_cmds=$lt_extract_expsyms_cmds
12368
# Symbols that should not be listed in the preloaded symbols.
12369
exclude_expsyms=$lt_exclude_expsyms
12371
# Symbols that must always be exported.
12372
include_expsyms=$lt_include_expsyms
12374
# ### END LIBTOOL CONFIG
12381
cat <<\EOF >> "$cfgfile"
12383
# AIX sometimes has problems with the GCC collect2 program. For some
12384
# reason, if we set the COLLECT_NAMES environment variable, the problems
12385
# vanish in a puff of smoke.
12386
if test "X${COLLECT_NAMES+set}" != Xset; then
12388
export COLLECT_NAMES
12394
# We use sed instead of cat because bash on DJGPP gets confused if
12395
# if finds mixed CR/LF and LF-only lines. Since sed operates in
12396
# text mode, it properly converts lines to CR/LF. This bash problem
12397
# is reportedly fixed, but why not run on old versions too?
12398
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12400
mv -f "$cfgfile" "$ofile" || \
12401
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12405
# If there is no Makefile yet, we rely on a make rule to execute
12406
# `config.status --recheck' to rerun these tests and create the
12407
# libtool script then.
12408
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12409
if test -f "$ltmain_in"; then
12410
test -f Makefile && make "$ltmain"
12416
ac_cpp='$CPP $CPPFLAGS'
12417
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12418
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12419
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12424
# Check whether --with-tags was given.
12425
if test "${with_tags+set}" = set; then
12426
withval=$with_tags; tagnames="$withval"
12430
if test -f "$ltmain" && test -n "$tagnames"; then
12431
if test ! -f "${ofile}"; then
12432
{ $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12433
$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12436
if test -z "$LTCC"; then
12437
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12438
if test -z "$LTCC"; then
12439
{ $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12440
$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12442
{ $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12443
$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12446
if test -z "$LTCFLAGS"; then
12447
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12450
# Extract list of available tagged configurations in $ofile.
12451
# Note that this assumes the entire list is on one line.
12452
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12454
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12455
for tagname in $tagnames; do
12457
# Check whether tagname contains only valid characters
12458
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12460
*) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12461
$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
12462
{ (exit 1); exit 1; }; }
12466
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12468
{ { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12469
$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12470
{ (exit 1); exit 1; }; }
12473
# Update the list of available tags.
12474
if test -n "$tagname"; then
12475
echo appending configuration tag \"$tagname\" to $ofile
12479
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12480
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12481
(test "X$CXX" != "Xg++"))) ; then
12483
ac_cpp='$CXXCPP $CPPFLAGS'
12484
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12485
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12486
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12491
archive_cmds_need_lc_CXX=no
12492
allow_undefined_flag_CXX=
12493
always_export_symbols_CXX=no
12494
archive_expsym_cmds_CXX=
12495
export_dynamic_flag_spec_CXX=
12496
hardcode_direct_CXX=no
12497
hardcode_libdir_flag_spec_CXX=
12498
hardcode_libdir_flag_spec_ld_CXX=
12499
hardcode_libdir_separator_CXX=
12500
hardcode_minus_L_CXX=no
12501
hardcode_shlibpath_var_CXX=unsupported
12502
hardcode_automatic_CXX=no
12504
module_expsym_cmds_CXX=
12505
link_all_deplibs_CXX=unknown
12506
old_archive_cmds_CXX=$old_archive_cmds
12507
no_undefined_flag_CXX=
12508
whole_archive_flag_spec_CXX=
12509
enable_shared_with_static_runtimes_CXX=no
12511
# Dependencies to place before and after the object being linked:
12512
predep_objects_CXX=
12513
postdep_objects_CXX=
12516
compiler_lib_search_path_CXX=
12517
compiler_lib_search_dirs_CXX=
12519
# Source file extension for C++ test sources.
12522
# Object file extension for compiled C++ test sources.
12526
# Code to be used in simple compile tests
12527
lt_simple_compile_test_code="int some_variable = 0;"
12529
# Code to be used in simple link tests
12530
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12532
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12534
# If no C compiler was specified, use CC.
12537
# If no C compiler flags were specified, use CFLAGS.
12538
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12540
# Allow CC to be a program name with arguments.
12544
# save warnings/boilerplate of simple test code
12545
ac_outfile=conftest.$ac_objext
12546
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12547
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12548
_lt_compiler_boilerplate=`cat conftest.err`
12551
ac_outfile=conftest.$ac_objext
12552
echo "$lt_simple_link_test_code" >conftest.$ac_ext
12553
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12554
_lt_linker_boilerplate=`cat conftest.err`
12558
# Allow CC to be a program name with arguments.
12563
lt_save_with_gnu_ld=$with_gnu_ld
12564
lt_save_path_LD=$lt_cv_path_LD
12565
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12566
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12568
$as_unset lt_cv_prog_gnu_ld
12570
if test -n "${lt_cv_path_LDCXX+set}"; then
12571
lt_cv_path_LD=$lt_cv_path_LDCXX
12573
$as_unset lt_cv_path_LD
12575
test -z "${LDCXX+set}" || LD=$LDCXX
12579
for cc_temp in $compiler""; do
12581
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12582
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12587
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12590
# We don't want -fno-exception wen compiling C++ code, so set the
12591
# no_builtin_flag separately
12592
if test "$GXX" = yes; then
12593
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12595
lt_prog_compiler_no_builtin_flag_CXX=
12598
if test "$GXX" = yes; then
12599
# Set up default GNU C++ configuration
12602
# Check whether --with-gnu-ld was given.
12603
if test "${with_gnu_ld+set}" = set; then
12604
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12610
if test "$GCC" = yes; then
12611
# Check if gcc -print-prog-name=ld gives a path.
12612
{ $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12613
$as_echo_n "checking for ld used by $CC... " >&6; }
12616
# gcc leaves a trailing carriage return which upsets mingw
12617
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12619
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12622
# Accept absolute paths.
12624
re_direlt='/[^/][^/]*/\.\./'
12625
# Canonicalize the pathname of ld
12626
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12627
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12628
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12630
test -z "$LD" && LD="$ac_prog"
12633
# If it fails, then pretend we aren't using GCC.
12637
# If it is relative, then search for the first ld in PATH.
12638
with_gnu_ld=unknown
12641
elif test "$with_gnu_ld" = yes; then
12642
{ $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
12643
$as_echo_n "checking for GNU ld... " >&6; }
12645
{ $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12646
$as_echo_n "checking for non-GNU ld... " >&6; }
12648
if test "${lt_cv_path_LD+set}" = set; then
12649
$as_echo_n "(cached) " >&6
12651
if test -z "$LD"; then
12652
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12653
for ac_dir in $PATH; do
12655
test -z "$ac_dir" && ac_dir=.
12656
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12657
lt_cv_path_LD="$ac_dir/$ac_prog"
12658
# Check to see if the program is GNU ld. I'd rather use --version,
12659
# but apparently some variants of GNU ld only accept -v.
12660
# Break only if it was the GNU/non-GNU ld that we prefer.
12661
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12662
*GNU* | *'with BFD'*)
12663
test "$with_gnu_ld" != no && break
12666
test "$with_gnu_ld" != yes && break
12673
lt_cv_path_LD="$LD" # Let the user override the test with a path.
12677
LD="$lt_cv_path_LD"
12678
if test -n "$LD"; then
12679
{ $as_echo "$as_me:$LINENO: result: $LD" >&5
12680
$as_echo "$LD" >&6; }
12682
{ $as_echo "$as_me:$LINENO: result: no" >&5
12683
$as_echo "no" >&6; }
12685
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12686
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12687
{ (exit 1); exit 1; }; }
12688
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12689
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12690
if test "${lt_cv_prog_gnu_ld+set}" = set; then
12691
$as_echo_n "(cached) " >&6
12693
# I'd rather use --version here, but apparently some GNU lds only accept -v.
12694
case `$LD -v 2>&1 </dev/null` in
12695
*GNU* | *'with BFD'*)
12696
lt_cv_prog_gnu_ld=yes
12699
lt_cv_prog_gnu_ld=no
12703
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12704
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12705
with_gnu_ld=$lt_cv_prog_gnu_ld
12709
# Check if GNU C++ uses GNU ld as the underlying linker, since the
12710
# archiving commands below assume that GNU ld is being used.
12711
if test "$with_gnu_ld" = yes; then
12712
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12713
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'
12715
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12716
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12718
# If archive_cmds runs LD, not CC, wlarc should be empty
12719
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12720
# investigate it a little bit more. (MM)
12723
# ancient GNU ld didn't support --whole-archive et. al.
12724
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12725
grep 'no-whole-archive' > /dev/null; then
12726
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12728
whole_archive_flag_spec_CXX=
12734
# A generic and very simple default shared library creation
12735
# command for GNU C++ for the case where it uses the native
12736
# linker, instead of GNU ld. If possible, this setting should
12737
# overridden to take advantage of the native linker features on
12738
# the platform it is being used on.
12739
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12742
# Commands to make compiler produce verbose output that lists
12743
# what "hidden" libraries, object files and flags are used when
12744
# linking a shared library.
12745
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12753
# PORTME: fill in a description of your system's C++ link characteristics
12754
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12755
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12759
# FIXME: insert proper C++ library support
12763
if test "$host_cpu" = ia64; then
12764
# On IA64, the linker does run time linking by default, so we don't
12765
# have to do anything special.
12766
aix_use_runtimelinking=no
12767
exp_sym_flag='-Bexport'
12770
aix_use_runtimelinking=no
12772
# Test if we are trying to use run time linking or normal
12773
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
12774
# need to do runtime linking.
12775
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12776
for ld_flag in $LDFLAGS; do
12779
aix_use_runtimelinking=yes
12787
exp_sym_flag='-bexport'
12788
no_entry_flag='-bnoentry'
12791
# When large executables or shared objects are built, AIX ld can
12792
# have problems creating the table of contents. If linking a library
12793
# or program results in "error TOC overflow" add -mminimal-toc to
12794
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12795
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12797
archive_cmds_CXX=''
12798
hardcode_direct_CXX=yes
12799
hardcode_libdir_separator_CXX=':'
12800
link_all_deplibs_CXX=yes
12802
if test "$GXX" = yes; then
12803
case $host_os in aix4.[012]|aix4.[012].*)
12804
# We only want to do this on AIX 4.2 and lower, the check
12805
# below for broken collect2 doesn't work under 4.3+
12806
collect2name=`${CC} -print-prog-name=collect2`
12807
if test -f "$collect2name" && \
12808
strings "$collect2name" | grep resolve_lib_name >/dev/null
12810
# We have reworked collect2
12813
# We have old collect2
12814
hardcode_direct_CXX=unsupported
12815
# It fails to find uninstalled libraries when the uninstalled
12816
# path is not listed in the libpath. Setting hardcode_minus_L
12817
# to unsupported forces relinking
12818
hardcode_minus_L_CXX=yes
12819
hardcode_libdir_flag_spec_CXX='-L$libdir'
12820
hardcode_libdir_separator_CXX=
12824
shared_flag='-shared'
12825
if test "$aix_use_runtimelinking" = yes; then
12826
shared_flag="$shared_flag "'${wl}-G'
12830
if test "$host_cpu" = ia64; then
12831
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12832
# chokes on -Wl,-G. The following line is correct:
12835
if test "$aix_use_runtimelinking" = yes; then
12836
shared_flag='${wl}-G'
12838
shared_flag='${wl}-bM:SRE'
12843
# It seems that -bexpall does not export symbols beginning with
12844
# underscore (_), so it is better to generate a list of symbols to export.
12845
always_export_symbols_CXX=yes
12846
if test "$aix_use_runtimelinking" = yes; then
12847
# Warning - without using the other runtime loading flags (-brtl),
12848
# -berok will link without error, but may produce a broken library.
12849
allow_undefined_flag_CXX='-berok'
12850
# Determine the default libpath from the value encoded in an empty executable.
12851
cat >conftest.$ac_ext <<_ACEOF
12854
cat confdefs.h >>conftest.$ac_ext
12855
cat >>conftest.$ac_ext <<_ACEOF
12856
/* end confdefs.h. */
12866
rm -f conftest.$ac_objext conftest$ac_exeext
12867
if { (ac_try="$ac_link"
12868
case "(($ac_try" in
12869
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12870
*) ac_try_echo=$ac_try;;
12872
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12873
$as_echo "$ac_try_echo") >&5
12874
(eval "$ac_link") 2>conftest.er1
12876
grep -v '^ *+' conftest.er1 >conftest.err
12878
cat conftest.err >&5
12879
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880
(exit $ac_status); } && {
12881
test -z "$ac_cxx_werror_flag" ||
12882
test ! -s conftest.err
12883
} && test -s conftest$ac_exeext && {
12884
test "$cross_compiling" = yes ||
12885
$as_test_x conftest$ac_exeext
12888
lt_aix_libpath_sed='
12889
/Import File Strings/,/^$/ {
12895
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12896
# Check for a 64-bit object if we didn't find anything.
12897
if test -z "$aix_libpath"; then
12898
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12901
$as_echo "$as_me: failed program was:" >&5
12902
sed 's/^/| /' conftest.$ac_ext >&5
12907
rm -rf conftest.dSYM
12908
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12909
conftest$ac_exeext conftest.$ac_ext
12910
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12912
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12914
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"
12916
if test "$host_cpu" = ia64; then
12917
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12918
allow_undefined_flag_CXX="-z nodefs"
12919
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"
12921
# Determine the default libpath from the value encoded in an empty executable.
12922
cat >conftest.$ac_ext <<_ACEOF
12925
cat confdefs.h >>conftest.$ac_ext
12926
cat >>conftest.$ac_ext <<_ACEOF
12927
/* end confdefs.h. */
12937
rm -f conftest.$ac_objext conftest$ac_exeext
12938
if { (ac_try="$ac_link"
12939
case "(($ac_try" in
12940
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12941
*) ac_try_echo=$ac_try;;
12943
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12944
$as_echo "$ac_try_echo") >&5
12945
(eval "$ac_link") 2>conftest.er1
12947
grep -v '^ *+' conftest.er1 >conftest.err
12949
cat conftest.err >&5
12950
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951
(exit $ac_status); } && {
12952
test -z "$ac_cxx_werror_flag" ||
12953
test ! -s conftest.err
12954
} && test -s conftest$ac_exeext && {
12955
test "$cross_compiling" = yes ||
12956
$as_test_x conftest$ac_exeext
12959
lt_aix_libpath_sed='
12960
/Import File Strings/,/^$/ {
12966
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12967
# Check for a 64-bit object if we didn't find anything.
12968
if test -z "$aix_libpath"; then
12969
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12972
$as_echo "$as_me: failed program was:" >&5
12973
sed 's/^/| /' conftest.$ac_ext >&5
12978
rm -rf conftest.dSYM
12979
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12980
conftest$ac_exeext conftest.$ac_ext
12981
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12983
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12984
# Warning - without using the other run time loading flags,
12985
# -berok will link without error, but may produce a broken library.
12986
no_undefined_flag_CXX=' ${wl}-bernotok'
12987
allow_undefined_flag_CXX=' ${wl}-berok'
12988
# Exported symbols can be pulled into shared objects from archives
12989
whole_archive_flag_spec_CXX='$convenience'
12990
archive_cmds_need_lc_CXX=yes
12991
# This is similar to how AIX traditionally builds its shared libraries.
12992
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'
12998
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12999
allow_undefined_flag_CXX=unsupported
13000
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13001
# support --undefined. This deserves some investigation. FIXME
13002
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13009
case $cc_basename in
13011
# FIXME: insert proper C++ library support
13017
cygwin* | mingw* | pw32*)
13018
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13019
# as there is no search path for DLLs.
13020
hardcode_libdir_flag_spec_CXX='-L$libdir'
13021
allow_undefined_flag_CXX=unsupported
13022
always_export_symbols_CXX=no
13023
enable_shared_with_static_runtimes_CXX=yes
13025
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13026
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'
13027
# If the export-symbols file already is a .def file (1st line
13028
# is EXPORTS), use it as is; otherwise, prepend...
13029
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13030
cp $export_symbols $output_objdir/$soname.def;
13032
echo EXPORTS > $output_objdir/$soname.def;
13033
cat $export_symbols >> $output_objdir/$soname.def;
13035
$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'
13040
darwin* | rhapsody*)
13041
archive_cmds_need_lc_CXX=no
13042
hardcode_direct_CXX=no
13043
hardcode_automatic_CXX=yes
13044
hardcode_shlibpath_var_CXX=unsupported
13045
whole_archive_flag_spec_CXX=''
13046
link_all_deplibs_CXX=yes
13047
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13048
if test "$GXX" = yes ; then
13049
output_verbose_link_cmd='echo'
13050
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}"
13051
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13052
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}"
13053
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}"
13054
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13055
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}"
13056
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}"
13059
case $cc_basename in
13061
output_verbose_link_cmd='echo'
13062
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'
13063
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13064
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13065
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}'
13066
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}'
13076
case $cc_basename in
13078
# FIXME: insert proper C++ library support
13082
# Green Hills C++ Compiler
13083
# FIXME: insert proper C++ library support
13087
# FIXME: insert proper C++ library support
13093
# C++ shared libraries reported to be fairly broken before switch to ELF
13097
archive_cmds_need_lc_CXX=no
13099
freebsd* | dragonfly*)
13100
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13107
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13108
hardcode_libdir_separator_CXX=:
13109
export_dynamic_flag_spec_CXX='${wl}-E'
13110
hardcode_direct_CXX=yes
13111
hardcode_minus_L_CXX=yes # Not in the search PATH,
13112
# but as the default
13113
# location of the library.
13115
case $cc_basename in
13117
# FIXME: insert proper C++ library support
13121
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'
13122
# Commands to make compiler produce verbose output that lists
13123
# what "hidden" libraries, object files and flags are used when
13124
# linking a shared library.
13126
# There doesn't appear to be a way to prevent this compiler from
13127
# explicitly linking system object files so we need to strip them
13128
# from the output so that they don't get included in the library
13130
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'
13133
if test "$GXX" = yes; then
13134
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'
13136
# FIXME: insert proper C++ library support
13143
if test $with_gnu_ld = no; then
13144
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13145
hardcode_libdir_separator_CXX=:
13150
export_dynamic_flag_spec_CXX='${wl}-E'
13156
hardcode_direct_CXX=no
13157
hardcode_shlibpath_var_CXX=no
13160
hardcode_direct_CXX=yes
13161
hardcode_minus_L_CXX=yes # Not in the search PATH,
13162
# but as the default
13163
# location of the library.
13167
case $cc_basename in
13169
# FIXME: insert proper C++ library support
13175
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13178
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13181
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13184
# Commands to make compiler produce verbose output that lists
13185
# what "hidden" libraries, object files and flags are used when
13186
# linking a shared library.
13188
# There doesn't appear to be a way to prevent this compiler from
13189
# explicitly linking system object files so we need to strip them
13190
# from the output so that they don't get included in the library
13192
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'
13195
if test "$GXX" = yes; then
13196
if test $with_gnu_ld = no; then
13199
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13202
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13205
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'
13210
# FIXME: insert proper C++ library support
13217
hardcode_direct_CXX=no
13218
hardcode_shlibpath_var_CXX=no
13219
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13220
export_dynamic_flag_spec_CXX='${wl}-E'
13221
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13222
# Instead, shared libraries are loaded at an image base (0x10000000 by
13223
# default) and relocated if they conflict, which is a slow very memory
13224
# consuming and fragmenting process. To avoid this, we pick a random,
13225
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13226
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
13227
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'
13228
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'
13231
case $cc_basename in
13234
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'
13236
# Archives containing C++ object files must be created using
13237
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
13238
# necessary to make sure instantiated templates are included
13240
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13243
if test "$GXX" = yes; then
13244
if test "$with_gnu_ld" = no; then
13245
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'
13247
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'
13250
link_all_deplibs_CXX=yes
13253
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13254
hardcode_libdir_separator_CXX=:
13256
linux* | k*bsd*-gnu)
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'
13265
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'
13266
# Commands to make compiler produce verbose output that lists
13267
# what "hidden" libraries, object files and flags are used when
13268
# linking a shared library.
13270
# There doesn't appear to be a way to prevent this compiler from
13271
# explicitly linking system object files so we need to strip them
13272
# from the output so that they don't get included in the library
13274
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'
13276
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13277
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13279
# Archives containing C++ object files must be created using
13280
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
13281
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13286
# version 8.0 and above of icpc choke on multiply defined symbols
13287
# if we add $predep_objects and $postdep_objects, however 7.1 and
13288
# earlier do not add the objects themselves.
13289
case `$CC -V 2>&1` in
13291
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13292
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'
13294
*) # Version 8.0 or newer
13297
ia64*) tmp_idyn=' -i_dynamic';;
13299
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13300
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'
13303
archive_cmds_need_lc_CXX=no
13304
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13305
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13306
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13309
# Portland Group C++ compiler
13310
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13311
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'
13313
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13314
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13315
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'
13319
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13320
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'
13322
runpath_var=LD_RUN_PATH
13323
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13324
hardcode_libdir_separator_CXX=:
13326
# Commands to make compiler produce verbose output that lists
13327
# what "hidden" libraries, object files and flags are used when
13328
# linking a shared library.
13330
# There doesn't appear to be a way to prevent this compiler from
13331
# explicitly linking system object files so we need to strip them
13332
# from the output so that they don't get included in the library
13334
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'
13337
case `$CC -V 2>&1 | sed 5q` in
13340
no_undefined_flag_CXX=' -zdefs'
13341
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13342
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'
13343
hardcode_libdir_flag_spec_CXX='-R$libdir'
13344
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'
13346
# Not sure whether something based on
13347
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13349
output_verbose_link_cmd='echo'
13351
# Archives containing C++ object files must be created using
13352
# "CC -xar", where "CC" is the Sun C++ compiler. This is
13353
# necessary to make sure instantiated templates are included
13355
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13362
# FIXME: insert proper C++ library support
13366
# FIXME: insert proper C++ library support
13370
case $cc_basename in
13372
# FIXME: insert proper C++ library support
13376
# FIXME: insert proper C++ library support
13381
netbsd* | netbsdelf*-gnu)
13382
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13383
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13385
hardcode_libdir_flag_spec_CXX='-R$libdir'
13386
hardcode_direct_CXX=yes
13387
hardcode_shlibpath_var_CXX=no
13389
# Workaround some broken pre-1.5 toolchains
13390
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13393
# C++ shared libraries are fairly broken
13397
if test -f /usr/libexec/ld.so; then
13398
hardcode_direct_CXX=yes
13399
hardcode_shlibpath_var_CXX=no
13400
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13401
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13402
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13403
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13404
export_dynamic_flag_spec_CXX='${wl}-E'
13405
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13407
output_verbose_link_cmd='echo'
13413
case $cc_basename in
13415
# Kuck and Associates, Inc. (KAI) C++ Compiler
13417
# KCC will only create a shared library if the output file
13418
# ends with ".so" (or ".sl" for HP-UX), so rename the library
13419
# to its proper name (with version) after linking.
13420
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'
13422
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13423
hardcode_libdir_separator_CXX=:
13425
# Archives containing C++ object files must be created using
13426
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
13427
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13431
# Rational C++ 2.4.1
13432
# FIXME: insert proper C++ library support
13436
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13437
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'
13439
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13440
hardcode_libdir_separator_CXX=:
13442
# Commands to make compiler produce verbose output that lists
13443
# what "hidden" libraries, object files and flags are used when
13444
# linking a shared library.
13446
# There doesn't appear to be a way to prevent this compiler from
13447
# explicitly linking system object files so we need to strip them
13448
# from the output so that they don't get included in the library
13450
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'
13453
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13454
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13455
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'
13457
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13458
hardcode_libdir_separator_CXX=:
13460
# Commands to make compiler produce verbose output that lists
13461
# what "hidden" libraries, object files and flags are used when
13462
# linking a shared library.
13463
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13466
# FIXME: insert proper C++ library support
13473
case $cc_basename in
13475
# Kuck and Associates, Inc. (KAI) C++ Compiler
13477
# KCC will only create a shared library if the output file
13478
# ends with ".so" (or ".sl" for HP-UX), so rename the library
13479
# to its proper name (with version) after linking.
13480
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'
13482
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13483
hardcode_libdir_separator_CXX=:
13485
# Archives containing C++ object files must be created using
13486
# the KAI C++ compiler.
13487
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13490
# Rational C++ 2.4.1
13491
# FIXME: insert proper C++ library support
13495
allow_undefined_flag_CXX=' -expect_unresolved \*'
13496
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'
13497
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13498
echo "-hidden">> $lib.exp~
13499
$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~
13502
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13503
hardcode_libdir_separator_CXX=:
13505
# Commands to make compiler produce verbose output that lists
13506
# what "hidden" libraries, object files and flags are used when
13507
# linking a shared library.
13509
# There doesn't appear to be a way to prevent this compiler from
13510
# explicitly linking system object files so we need to strip them
13511
# from the output so that they don't get included in the library
13513
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'
13516
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13517
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13518
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'
13520
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13521
hardcode_libdir_separator_CXX=:
13523
# Commands to make compiler produce verbose output that lists
13524
# what "hidden" libraries, object files and flags are used when
13525
# linking a shared library.
13526
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13529
# FIXME: insert proper C++ library support
13536
# FIXME: insert proper C++ library support
13540
case $cc_basename in
13543
# FIXME: insert proper C++ library support
13548
# FIXME: insert proper C++ library support
13552
# FIXME: insert proper C++ library support
13558
case $cc_basename in
13560
# Sun C++ 4.2, 5.x and Centerline C++
13561
archive_cmds_need_lc_CXX=yes
13562
no_undefined_flag_CXX=' -zdefs'
13563
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13564
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13565
$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'
13567
hardcode_libdir_flag_spec_CXX='-R$libdir'
13568
hardcode_shlibpath_var_CXX=no
13570
solaris2.[0-5] | solaris2.[0-5].*) ;;
13572
# The compiler driver will combine and reorder linker options,
13573
# but understands `-z linker_flag'.
13574
# Supported since Solaris 2.6 (maybe 2.5.1?)
13575
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13578
link_all_deplibs_CXX=yes
13580
output_verbose_link_cmd='echo'
13582
# Archives containing C++ object files must be created using
13583
# "CC -xar", where "CC" is the Sun C++ compiler. This is
13584
# necessary to make sure instantiated templates are included
13586
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13589
# Green Hills C++ Compiler
13590
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13592
# The C++ compiler must be used to create the archive.
13593
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13596
# GNU C++ compiler with Solaris linker
13597
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13598
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13599
if $CC --version | grep -v '^2\.7' > /dev/null; then
13600
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13601
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13602
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13604
# Commands to make compiler produce verbose output that lists
13605
# what "hidden" libraries, object files and flags are used when
13606
# linking a shared library.
13607
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13609
# g++ 2.7 appears to require `-G' NOT `-shared' on this
13611
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13612
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13613
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13615
# Commands to make compiler produce verbose output that lists
13616
# what "hidden" libraries, object files and flags are used when
13617
# linking a shared library.
13618
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13621
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13623
solaris2.[0-5] | solaris2.[0-5].*) ;;
13625
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13632
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13633
no_undefined_flag_CXX='${wl}-z,text'
13634
archive_cmds_need_lc_CXX=no
13635
hardcode_shlibpath_var_CXX=no
13636
runpath_var='LD_RUN_PATH'
13638
case $cc_basename in
13640
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13641
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13644
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13645
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13649
sysv5* | sco3.2v5* | sco5v6*)
13650
# Note: We can NOT use -z defs as we might desire, because we do not
13651
# link with -lc, and that would cause any symbols used from libc to
13652
# always be unresolved, which means just about no library would
13653
# ever link correctly. If we're not using GNU ld we use -z text
13654
# though, which does catch some bad symbols but isn't as heavy-handed
13656
# For security reasons, it is highly recommended that you always
13657
# use absolute paths for naming shared libraries, and exclude the
13658
# DT_RUNPATH tag from executables and libraries. But doing so
13659
# requires that you compile everything twice, which is a pain.
13660
# So that behaviour is only enabled if SCOABSPATH is set to a
13661
# non-empty value in the environment. Most likely only useful for
13662
# creating official distributions of packages.
13663
# This is a hack until libtool officially supports absolute path
13664
# names for shared libraries.
13665
no_undefined_flag_CXX='${wl}-z,text'
13666
allow_undefined_flag_CXX='${wl}-z,nodefs'
13667
archive_cmds_need_lc_CXX=no
13668
hardcode_shlibpath_var_CXX=no
13669
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13670
hardcode_libdir_separator_CXX=':'
13671
link_all_deplibs_CXX=yes
13672
export_dynamic_flag_spec_CXX='${wl}-Bexport'
13673
runpath_var='LD_RUN_PATH'
13675
case $cc_basename in
13677
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13678
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13681
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13682
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13687
case $cc_basename in
13689
# NonStop-UX NCC 3.20
13690
# FIXME: insert proper C++ library support
13694
# FIXME: insert proper C++ library support
13700
# FIXME: insert proper C++ library support
13704
# FIXME: insert proper C++ library support
13708
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13709
$as_echo "$ld_shlibs_CXX" >&6; }
13710
test "$ld_shlibs_CXX" = no && can_build_shared=no
13715
cat > conftest.$ac_ext <<EOF
13719
Foo (void) { a = 0; }
13725
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13726
(eval $ac_compile) 2>&5
13728
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729
(exit $ac_status); }; then
13730
# Parse the compiler output and extract the necessary
13731
# objects, libraries and library flags.
13733
# Sentinel used to keep track of whether or not we are before
13734
# the conftest object file.
13735
pre_test_object_deps_done=no
13737
# The `*' in the case matches for architectures that use `case' in
13738
# $output_verbose_cmd can trigger glob expansion during the loop
13739
# eval without this substitution.
13740
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13742
for p in `eval $output_verbose_link_cmd`; do
13746
# Some compilers place space between "-{L,R}" and the path.
13747
# Remove the space.
13748
if test $p = "-L" \
13749
|| test $p = "-R"; then
13756
if test "$pre_test_object_deps_done" = no; then
13759
# Internal compiler library paths should come after those
13760
# provided the user. The postdeps already come after the
13761
# user supplied libs so there is no need to process them.
13762
if test -z "$compiler_lib_search_path_CXX"; then
13763
compiler_lib_search_path_CXX="${prev}${p}"
13765
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13768
# The "-l" case would never come before the object being
13769
# linked, so don't bother handling this case.
13772
if test -z "$postdeps_CXX"; then
13773
postdeps_CXX="${prev}${p}"
13775
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13781
# This assumes that the test object file only shows up
13782
# once in the compiler output.
13783
if test "$p" = "conftest.$objext"; then
13784
pre_test_object_deps_done=yes
13788
if test "$pre_test_object_deps_done" = no; then
13789
if test -z "$predep_objects_CXX"; then
13790
predep_objects_CXX="$p"
13792
predep_objects_CXX="$predep_objects_CXX $p"
13795
if test -z "$postdep_objects_CXX"; then
13796
postdep_objects_CXX="$p"
13798
postdep_objects_CXX="$postdep_objects_CXX $p"
13803
*) ;; # Ignore the rest.
13811
echo "libtool.m4: error: problem compiling CXX test program"
13814
$rm -f confest.$objext
13816
compiler_lib_search_dirs_CXX=
13817
if test -n "$compiler_lib_search_path_CXX"; then
13818
compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13821
# PORTME: override above test on systems where it is broken
13824
# Interix 3.5 installs completely hosed .la files for C++, so rather than
13825
# hack all around it, let's just trust "g++" to DTRT.
13826
predep_objects_CXX=
13827
postdep_objects_CXX=
13832
case `$CC -V 2>&1 | sed 5q` in
13836
# The more standards-conforming stlport4 library is
13837
# incompatible with the Cstd library. Avoid specifying
13838
# it if it's in CXXFLAGS. Ignore libCrun as
13839
# -library=stlport4 depends on it.
13840
case " $CXX $CXXFLAGS " in
13841
*" -library=stlport4 "*)
13842
solaris_use_stlport4=yes
13845
if test "$solaris_use_stlport4" != yes; then
13846
postdeps_CXX='-library=Cstd -library=Crun'
13853
case $cc_basename in
13855
# The more standards-conforming stlport4 library is
13856
# incompatible with the Cstd library. Avoid specifying
13857
# it if it's in CXXFLAGS. Ignore libCrun as
13858
# -library=stlport4 depends on it.
13859
case " $CXX $CXXFLAGS " in
13860
*" -library=stlport4 "*)
13861
solaris_use_stlport4=yes
13865
# Adding this requires a known-good setup of shared libraries for
13866
# Sun compiler versions before 5.6, else PIC objects from an old
13867
# archive will be linked into the output, leading to subtle bugs.
13868
if test "$solaris_use_stlport4" != yes; then
13869
postdeps_CXX='-library=Cstd -library=Crun'
13876
case " $postdeps_CXX " in
13877
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13880
lt_prog_compiler_wl_CXX=
13881
lt_prog_compiler_pic_CXX=
13882
lt_prog_compiler_static_CXX=
13884
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13885
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13887
# C++ specific cases for pic, static, wl, etc.
13888
if test "$GXX" = yes; then
13889
lt_prog_compiler_wl_CXX='-Wl,'
13890
lt_prog_compiler_static_CXX='-static'
13894
# All AIX code is PIC.
13895
if test "$host_cpu" = ia64; then
13896
# AIX 5 now supports IA64 processor
13897
lt_prog_compiler_static_CXX='-Bstatic'
13901
# FIXME: we need at least 68020 code to build shared libraries, but
13902
# adding the `-m68020' flag to GCC prevents building anything better,
13904
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13906
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13907
# PIC is the default for these OSes.
13909
mingw* | cygwin* | os2* | pw32*)
13910
# This hack is so that the source file can tell whether it is being
13911
# built for inclusion in a dll (and should export symbols for example).
13912
# Although the cygwin gcc ignores -fPIC, still need this for old-style
13913
# (--disable-auto-import) libraries
13914
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13916
darwin* | rhapsody*)
13917
# PIC is the default on this platform
13918
# Common symbols not allowed in MH_DYLIB files
13919
lt_prog_compiler_pic_CXX='-fno-common'
13922
# DJGPP does not support shared libraries at all
13923
lt_prog_compiler_pic_CXX=
13926
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
13927
# Instead, we relocate shared libraries at runtime.
13930
if test -d /usr/nec; then
13931
lt_prog_compiler_pic_CXX=-Kconform_pic
13935
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13936
# not for PA HP-UX.
13941
lt_prog_compiler_pic_CXX='-fPIC'
13946
lt_prog_compiler_pic_CXX='-fPIC'
13952
# All AIX code is PIC.
13953
if test "$host_cpu" = ia64; then
13954
# AIX 5 now supports IA64 processor
13955
lt_prog_compiler_static_CXX='-Bstatic'
13957
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13961
case $cc_basename in
13963
# Green Hills C++ Compiler
13964
# _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"
13969
# PIC is the default on this platform
13970
# Common symbols not allowed in MH_DYLIB files
13971
case $cc_basename in
13973
lt_prog_compiler_pic_CXX='-qnocommon'
13974
lt_prog_compiler_wl_CXX='-Wl,'
13979
case $cc_basename in
13981
lt_prog_compiler_pic_CXX='-KPIC'
13984
# Green Hills C++ Compiler
13985
lt_prog_compiler_pic_CXX='-pic'
13991
freebsd* | dragonfly*)
13992
# FreeBSD uses GNU C++
13994
hpux9* | hpux10* | hpux11*)
13995
case $cc_basename in
13997
lt_prog_compiler_wl_CXX='-Wl,'
13998
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13999
if test "$host_cpu" != ia64; then
14000
lt_prog_compiler_pic_CXX='+Z'
14004
lt_prog_compiler_wl_CXX='-Wl,'
14005
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14011
lt_prog_compiler_pic_CXX='+Z'
14020
# This is c89, which is MS Visual C++ (no shared libs)
14021
# Anyone wants to do a port?
14023
irix5* | irix6* | nonstopux*)
14024
case $cc_basename in
14026
lt_prog_compiler_wl_CXX='-Wl,'
14027
lt_prog_compiler_static_CXX='-non_shared'
14028
# CC pic flag -KPIC is the default.
14034
linux* | k*bsd*-gnu)
14035
case $cc_basename in
14038
lt_prog_compiler_wl_CXX='--backend -Wl,'
14039
lt_prog_compiler_pic_CXX='-fPIC'
14043
lt_prog_compiler_wl_CXX='-Wl,'
14044
lt_prog_compiler_pic_CXX='-KPIC'
14045
lt_prog_compiler_static_CXX='-static'
14048
# Portland Group C++ compiler.
14049
lt_prog_compiler_wl_CXX='-Wl,'
14050
lt_prog_compiler_pic_CXX='-fpic'
14051
lt_prog_compiler_static_CXX='-Bstatic'
14055
# Make sure the PIC flag is empty. It appears that all Alpha
14056
# Linux and Compaq Tru64 Unix objects are PIC.
14057
lt_prog_compiler_pic_CXX=
14058
lt_prog_compiler_static_CXX='-non_shared'
14061
case `$CC -V 2>&1 | sed 5q` in
14064
lt_prog_compiler_pic_CXX='-KPIC'
14065
lt_prog_compiler_static_CXX='-Bstatic'
14066
lt_prog_compiler_wl_CXX='-Qoption ld '
14077
case $cc_basename in
14079
lt_prog_compiler_pic_CXX='-W c,exportall'
14085
netbsd* | netbsdelf*-gnu)
14087
osf3* | osf4* | osf5*)
14088
case $cc_basename in
14090
lt_prog_compiler_wl_CXX='--backend -Wl,'
14093
# Rational C++ 2.4.1
14094
lt_prog_compiler_pic_CXX='-pic'
14097
# Digital/Compaq C++
14098
lt_prog_compiler_wl_CXX='-Wl,'
14099
# Make sure the PIC flag is empty. It appears that all Alpha
14100
# Linux and Compaq Tru64 Unix objects are PIC.
14101
lt_prog_compiler_pic_CXX=
14102
lt_prog_compiler_static_CXX='-non_shared'
14111
case $cc_basename in
14113
# Sun C++ 4.2, 5.x and Centerline C++
14114
lt_prog_compiler_pic_CXX='-KPIC'
14115
lt_prog_compiler_static_CXX='-Bstatic'
14116
lt_prog_compiler_wl_CXX='-Qoption ld '
14119
# Green Hills C++ Compiler
14120
lt_prog_compiler_pic_CXX='-PIC'
14127
case $cc_basename in
14130
lt_prog_compiler_pic_CXX='-pic'
14131
lt_prog_compiler_static_CXX='-Bstatic'
14135
lt_prog_compiler_pic_CXX='-pic'
14142
case $cc_basename in
14144
# NonStop-UX NCC 3.20
14145
lt_prog_compiler_pic_CXX='-KPIC'
14151
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14152
case $cc_basename in
14154
lt_prog_compiler_wl_CXX='-Wl,'
14155
lt_prog_compiler_pic_CXX='-KPIC'
14156
lt_prog_compiler_static_CXX='-Bstatic'
14163
lt_prog_compiler_can_build_shared_CXX=no
14168
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14169
$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14172
# Check to make sure the PIC flag actually works.
14174
if test -n "$lt_prog_compiler_pic_CXX"; then
14176
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14177
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14178
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14179
$as_echo_n "(cached) " >&6
14181
lt_cv_prog_compiler_pic_works_CXX=no
14182
ac_outfile=conftest.$ac_objext
14183
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14184
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14185
# Insert the option either (1) after the last *FLAGS variable, or
14186
# (2) before a word containing "conftest.", or (3) at the end.
14187
# Note that $ac_compile itself does not contain backslashes and begins
14188
# with a dollar sign (not a hyphen), so the echo should work correctly.
14189
# The option is referenced via a variable to avoid confusing sed.
14190
lt_compile=`echo "$ac_compile" | $SED \
14191
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14192
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14193
-e 's:$: $lt_compiler_flag:'`
14194
(eval echo "\"\$as_me:14194: $lt_compile\"" >&5)
14195
(eval "$lt_compile" 2>conftest.err)
14197
cat conftest.err >&5
14198
echo "$as_me:14198: \$? = $ac_status" >&5
14199
if (exit $ac_status) && test -s "$ac_outfile"; then
14200
# The compiler can only warn and ignore the option if not recognized
14201
# So say no if there are warnings other than the usual output.
14202
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14203
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14204
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14205
lt_cv_prog_compiler_pic_works_CXX=yes
14211
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14212
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14214
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14215
case $lt_prog_compiler_pic_CXX in
14217
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14220
lt_prog_compiler_pic_CXX=
14221
lt_prog_compiler_can_build_shared_CXX=no
14226
# For platforms which do not support PIC, -DPIC is meaningless:
14228
lt_prog_compiler_pic_CXX=
14231
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14236
# Check to make sure the static flag actually works.
14238
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14239
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14240
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14241
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14242
$as_echo_n "(cached) " >&6
14244
lt_cv_prog_compiler_static_works_CXX=no
14245
save_LDFLAGS="$LDFLAGS"
14246
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14247
echo "$lt_simple_link_test_code" > conftest.$ac_ext
14248
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14249
# The linker can only warn and ignore the option if not recognized
14250
# So say no if there are warnings
14251
if test -s conftest.err; then
14252
# Append any errors to the config.log.
14253
cat conftest.err 1>&5
14254
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14255
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14256
if diff conftest.exp conftest.er2 >/dev/null; then
14257
lt_cv_prog_compiler_static_works_CXX=yes
14260
lt_cv_prog_compiler_static_works_CXX=yes
14264
LDFLAGS="$save_LDFLAGS"
14267
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14268
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14270
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14273
lt_prog_compiler_static_CXX=
14277
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14278
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14279
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14280
$as_echo_n "(cached) " >&6
14282
lt_cv_prog_compiler_c_o_CXX=no
14283
$rm -r conftest 2>/dev/null
14287
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14289
lt_compiler_flag="-o out/conftest2.$ac_objext"
14290
# Insert the option either (1) after the last *FLAGS variable, or
14291
# (2) before a word containing "conftest.", or (3) at the end.
14292
# Note that $ac_compile itself does not contain backslashes and begins
14293
# with a dollar sign (not a hyphen), so the echo should work correctly.
14294
lt_compile=`echo "$ac_compile" | $SED \
14295
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14296
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14297
-e 's:$: $lt_compiler_flag:'`
14298
(eval echo "\"\$as_me:14298: $lt_compile\"" >&5)
14299
(eval "$lt_compile" 2>out/conftest.err)
14301
cat out/conftest.err >&5
14302
echo "$as_me:14302: \$? = $ac_status" >&5
14303
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14305
# The compiler can only warn and ignore the option if not recognized
14306
# So say no if there are warnings
14307
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14308
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14309
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14310
lt_cv_prog_compiler_c_o_CXX=yes
14315
# SGI C++ compiler will create directory out/ii_files/ for
14316
# template instantiation
14317
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14318
$rm out/* && rmdir out
14324
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14325
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14328
hard_links="nottested"
14329
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14330
# do not overwrite the value of need_locks provided by the user
14331
{ $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14332
$as_echo_n "checking if we can lock with hard links... " >&6; }
14335
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14337
ln conftest.a conftest.b 2>&5 || hard_links=no
14338
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14339
{ $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14340
$as_echo "$hard_links" >&6; }
14341
if test "$hard_links" = no; then
14342
{ $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14343
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14350
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14351
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14353
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14356
# If we're using GNU nm, then we don't want the "-C" option.
14357
# -C means demangle to AIX nm, but means don't demangle with GNU nm
14358
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14359
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'
14361
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'
14365
export_symbols_cmds_CXX="$ltdll_cmds"
14368
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'
14370
linux* | k*bsd*-gnu)
14371
link_all_deplibs_CXX=no
14374
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14377
exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14379
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14380
$as_echo "$ld_shlibs_CXX" >&6; }
14381
test "$ld_shlibs_CXX" = no && can_build_shared=no
14384
# Do we need to explicitly link libc?
14386
case "x$archive_cmds_need_lc_CXX" in
14388
# Assume -lc should be added
14389
archive_cmds_need_lc_CXX=yes
14391
if test "$enable_shared" = yes && test "$GCC" = yes; then
14392
case $archive_cmds_CXX in
14394
# FIXME: we may have to deal with multi-command sequences.
14397
# Test whether the compiler implicitly links with -lc since on some
14398
# systems, -lgcc has to come before -lc. If gcc already passes -lc
14399
# to ld, don't add -lc before -lgcc.
14400
{ $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14401
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14403
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14405
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14406
(eval $ac_compile) 2>&5
14408
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409
(exit $ac_status); } 2>conftest.err; then
14412
libobjs=conftest.$ac_objext
14414
wl=$lt_prog_compiler_wl_CXX
14415
pic_flag=$lt_prog_compiler_pic_CXX
14421
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14422
allow_undefined_flag_CXX=
14423
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14424
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14426
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427
(exit $ac_status); }
14429
archive_cmds_need_lc_CXX=no
14431
archive_cmds_need_lc_CXX=yes
14433
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14435
cat conftest.err 1>&5
14438
{ $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14439
$as_echo "$archive_cmds_need_lc_CXX" >&6; }
14446
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14447
$as_echo_n "checking dynamic linker characteristics... " >&6; }
14448
library_names_spec=
14449
libname_spec='lib$name'
14453
postuninstall_cmds=
14457
shlibpath_overrides_runpath=unknown
14459
dynamic_linker="$host_os ld.so"
14460
sys_lib_dlsearch_path_spec="/lib /usr/lib"
14462
need_lib_prefix=unknown
14463
hardcode_into_libs=no
14465
# when you set need_version to no, make sure it does not cause -set_version
14466
# flags to be left without arguments
14467
need_version=unknown
14472
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14473
shlibpath_var=LIBPATH
14475
# AIX 3 has no versioning support, so we append a major version to the name.
14476
soname_spec='${libname}${release}${shared_ext}$major'
14483
hardcode_into_libs=yes
14484
if test "$host_cpu" = ia64; then
14485
# AIX 5 supports IA64
14486
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14487
shlibpath_var=LD_LIBRARY_PATH
14489
# With GCC up to 2.95.x, collect2 would create an import file
14490
# for dependence libraries. The import file would start with
14491
# the line `#! .'. This would cause the generated library to
14492
# depend on `.', always an invalid library. This was fixed in
14493
# development snapshots of GCC prior to 3.0.
14495
aix4 | aix4.[01] | aix4.[01].*)
14496
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14498
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14501
can_build_shared=no
14505
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14506
# soname into executable. Probably we can add versioning support to
14507
# collect2, so additional links can be useful in future.
14508
if test "$aix_use_runtimelinking" = yes; then
14509
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
14510
# instead of lib<name>.a to let people know that these are not
14511
# typical AIX shared libraries.
14512
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14514
# We preserve .a as extension for shared libraries through AIX4.2
14515
# and later when we are not doing run time linking.
14516
library_names_spec='${libname}${release}.a $libname.a'
14517
soname_spec='${libname}${release}${shared_ext}$major'
14519
shlibpath_var=LIBPATH
14524
library_names_spec='$libname.ixlibrary $libname.a'
14525
# Create ${libname}_ixlibrary.a entries in /sys/libs.
14526
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'
14530
library_names_spec='${libname}${shared_ext}'
14531
dynamic_linker="$host_os ld.so"
14532
shlibpath_var=LIBRARY_PATH
14538
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14539
soname_spec='${libname}${release}${shared_ext}$major'
14540
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14541
shlibpath_var=LD_LIBRARY_PATH
14542
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14543
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14544
# the default ld.so.conf also contains /usr/contrib/lib and
14545
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14546
# libtool to hard-code these into programs
14549
cygwin* | mingw* | pw32*)
14550
version_type=windows
14555
case $GCC,$host_os in
14556
yes,cygwin* | yes,mingw* | yes,pw32*)
14557
library_names_spec='$libname.dll.a'
14558
# DLL is installed to $(libdir)/../bin by postinstall_cmds
14559
postinstall_cmds='base_file=`basename \${file}`~
14560
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14561
dldir=$destdir/`dirname \$dlpath`~
14562
test -d \$dldir || mkdir -p \$dldir~
14563
$install_prog $dir/$dlname \$dldir/$dlname~
14564
chmod a+x \$dldir/$dlname'
14565
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14566
dlpath=$dir/\$dldll~
14568
shlibpath_overrides_runpath=yes
14572
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
14573
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14574
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14577
# MinGW DLLs use traditional 'lib' prefix
14578
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14579
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14580
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14581
# It is most probably a Windows format PATH printed by
14582
# mingw gcc, but we are running on Cygwin. Gcc prints its search
14583
# path with ; separators, and with drive letters. We can handle the
14584
# drive letters (cygwin fileutils understands them), so leave them,
14585
# especially as we might pass files found there to a mingw objdump,
14586
# which wouldn't understand a cygwinified path. Ahh.
14587
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14589
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14593
# pw32 DLLs use 'pw' prefix rather than 'lib'
14594
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14600
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14603
dynamic_linker='Win32 ld.exe'
14604
# FIXME: first we should search . and the directory the executable is in
14608
darwin* | rhapsody*)
14609
dynamic_linker="$host_os dyld"
14610
version_type=darwin
14613
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14614
soname_spec='${libname}${release}${major}$shared_ext'
14615
shlibpath_overrides_runpath=yes
14616
shlibpath_var=DYLD_LIBRARY_PATH
14617
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14619
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14626
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14627
soname_spec='${libname}${release}${shared_ext}$major'
14628
shlibpath_var=LD_LIBRARY_PATH
14635
freebsd* | dragonfly*)
14636
# DragonFly does not have aout. When/if they implement a new
14637
# versioning mechanism, adjust this.
14638
if test -x /usr/bin/objformat; then
14639
objformat=`/usr/bin/objformat`
14642
freebsd[123]*) objformat=aout ;;
14643
*) objformat=elf ;;
14646
version_type=freebsd-$objformat
14647
case $version_type in
14649
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14654
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14658
shlibpath_var=LD_LIBRARY_PATH
14661
shlibpath_overrides_runpath=yes
14663
freebsd3.[01]* | freebsdelf3.[01]*)
14664
shlibpath_overrides_runpath=yes
14665
hardcode_into_libs=yes
14667
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14668
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14669
shlibpath_overrides_runpath=no
14670
hardcode_into_libs=yes
14672
*) # from 4.6 on, and DragonFly
14673
shlibpath_overrides_runpath=yes
14674
hardcode_into_libs=yes
14683
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14684
soname_spec='${libname}${release}${shared_ext}$major'
14685
shlibpath_var=LD_LIBRARY_PATH
14686
hardcode_into_libs=yes
14689
hpux9* | hpux10* | hpux11*)
14690
# Give a soname corresponding to the major version so that dld.sl refuses to
14691
# link against other versions.
14698
hardcode_into_libs=yes
14699
dynamic_linker="$host_os dld.so"
14700
shlibpath_var=LD_LIBRARY_PATH
14701
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14702
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14703
soname_spec='${libname}${release}${shared_ext}$major'
14704
if test "X$HPUX_IA64_MODE" = X32; then
14705
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14707
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14709
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14713
hardcode_into_libs=yes
14714
dynamic_linker="$host_os dld.sl"
14715
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14716
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14717
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14718
soname_spec='${libname}${release}${shared_ext}$major'
14719
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14720
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14724
dynamic_linker="$host_os dld.sl"
14725
shlibpath_var=SHLIB_PATH
14726
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14727
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14728
soname_spec='${libname}${release}${shared_ext}$major'
14731
# HP-UX runs *really* slowly unless shared libraries are mode 555.
14732
postinstall_cmds='chmod 555 $lib'
14739
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14740
soname_spec='${libname}${release}${shared_ext}$major'
14741
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14742
shlibpath_var=LD_LIBRARY_PATH
14743
shlibpath_overrides_runpath=no
14744
hardcode_into_libs=yes
14747
irix5* | irix6* | nonstopux*)
14749
nonstopux*) version_type=nonstopux ;;
14751
if test "$lt_cv_prog_gnu_ld" = yes; then
14759
soname_spec='${libname}${release}${shared_ext}$major'
14760
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14762
irix5* | nonstopux*)
14763
libsuff= shlibsuff=
14766
case $LD in # libtool.m4 will add one of these switches to LD
14767
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14768
libsuff= shlibsuff= libmagic=32-bit;;
14769
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14770
libsuff=32 shlibsuff=N32 libmagic=N32;;
14771
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14772
libsuff=64 shlibsuff=64 libmagic=64-bit;;
14773
*) libsuff= shlibsuff= libmagic=never-match;;
14777
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14778
shlibpath_overrides_runpath=no
14779
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14780
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14781
hardcode_into_libs=yes
14784
# No shared lib support for Linux oldld, aout, or coff.
14785
linux*oldld* | linux*aout* | linux*coff*)
14789
# This must be Linux ELF.
14790
linux* | k*bsd*-gnu)
14794
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14795
soname_spec='${libname}${release}${shared_ext}$major'
14796
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14797
shlibpath_var=LD_LIBRARY_PATH
14798
shlibpath_overrides_runpath=no
14799
# This implies no fast_install, which is unacceptable.
14800
# Some rework will be needed to allow for fast_install
14801
# before this can be enabled.
14802
hardcode_into_libs=yes
14804
# Append ld.so.conf contents to the search path
14805
if test -f /etc/ld.so.conf; then
14806
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' ' '`
14807
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14810
# We used to test for /lib/ld.so.1 and disable shared libraries on
14811
# powerpc, because MkLinux only supported shared libraries with the
14812
# GNU dynamic linker. Since this was broken with cross compilers,
14813
# most powerpc-linux boxes support dynamic linking these days and
14814
# people can always --disable-shared, the test was removed, and we
14815
# assume the GNU/Linux dynamic linker is in use.
14816
dynamic_linker='GNU/Linux ld.so'
14823
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14824
soname_spec='${libname}${release}${shared_ext}$major'
14825
shlibpath_var=LD_LIBRARY_PATH
14826
shlibpath_overrides_runpath=no
14827
hardcode_into_libs=yes
14828
dynamic_linker='NetBSD ld.elf_so'
14835
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14836
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14837
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14838
dynamic_linker='NetBSD (a.out) ld.so'
14840
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14841
soname_spec='${libname}${release}${shared_ext}$major'
14842
dynamic_linker='NetBSD ld.elf_so'
14844
shlibpath_var=LD_LIBRARY_PATH
14845
shlibpath_overrides_runpath=yes
14846
hardcode_into_libs=yes
14851
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14852
shlibpath_var=LD_LIBRARY_PATH
14853
shlibpath_overrides_runpath=yes
14860
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14861
soname_spec='${libname}${release}${shared_ext}$major'
14862
shlibpath_var=LD_LIBRARY_PATH
14863
shlibpath_overrides_runpath=yes
14868
sys_lib_dlsearch_path_spec="/usr/lib"
14870
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14872
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14873
*) need_version=no ;;
14875
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14876
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14877
shlibpath_var=LD_LIBRARY_PATH
14878
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14880
openbsd2.[89] | openbsd2.[89].*)
14881
shlibpath_overrides_runpath=no
14884
shlibpath_overrides_runpath=yes
14888
shlibpath_overrides_runpath=yes
14893
libname_spec='$name'
14896
library_names_spec='$libname${shared_ext} $libname.a'
14897
dynamic_linker='OS/2 ld.exe'
14898
shlibpath_var=LIBPATH
14901
osf3* | osf4* | osf5*)
14905
soname_spec='${libname}${release}${shared_ext}$major'
14906
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14907
shlibpath_var=LD_LIBRARY_PATH
14908
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14909
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14920
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14921
soname_spec='${libname}${release}${shared_ext}$major'
14922
shlibpath_var=LD_LIBRARY_PATH
14923
shlibpath_overrides_runpath=yes
14924
hardcode_into_libs=yes
14925
# ldd complains unless libraries are executable
14926
postinstall_cmds='chmod +x $lib'
14931
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14932
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14933
shlibpath_var=LD_LIBRARY_PATH
14934
shlibpath_overrides_runpath=yes
14935
if test "$with_gnu_ld" = yes; then
14943
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14944
soname_spec='${libname}${release}${shared_ext}$major'
14945
shlibpath_var=LD_LIBRARY_PATH
14946
case $host_vendor in
14948
shlibpath_overrides_runpath=no
14950
export_dynamic_flag_spec='${wl}-Blargedynsym'
14951
runpath_var=LD_RUN_PATH
14959
shlibpath_overrides_runpath=no
14960
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14966
if test -d /usr/nec ;then
14968
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14969
soname_spec='$libname${shared_ext}.$major'
14970
shlibpath_var=LD_LIBRARY_PATH
14974
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14975
version_type=freebsd-elf
14978
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14979
soname_spec='${libname}${release}${shared_ext}$major'
14980
shlibpath_var=LD_LIBRARY_PATH
14981
hardcode_into_libs=yes
14982
if test "$with_gnu_ld" = yes; then
14983
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14984
shlibpath_overrides_runpath=no
14986
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14987
shlibpath_overrides_runpath=yes
14990
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14994
sys_lib_dlsearch_path_spec='/usr/lib'
14999
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15000
soname_spec='${libname}${release}${shared_ext}$major'
15001
shlibpath_var=LD_LIBRARY_PATH
15008
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15009
$as_echo "$dynamic_linker" >&6; }
15010
test "$dynamic_linker" = no && can_build_shared=no
15012
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15013
$as_echo_n "(cached) " >&6
15015
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
15018
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15019
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15020
$as_echo_n "(cached) " >&6
15022
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
15025
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15027
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15028
if test "$GCC" = yes; then
15029
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15032
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15033
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15034
hardcode_action_CXX=
15035
if test -n "$hardcode_libdir_flag_spec_CXX" || \
15036
test -n "$runpath_var_CXX" || \
15037
test "X$hardcode_automatic_CXX" = "Xyes" ; then
15039
# We can hardcode non-existant directories.
15040
if test "$hardcode_direct_CXX" != no &&
15041
# If the only mechanism to avoid hardcoding is shlibpath_var, we
15042
# have to relink, otherwise we might link with an installed library
15043
# when we should be linking with a yet-to-be-installed one
15044
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15045
test "$hardcode_minus_L_CXX" != no; then
15046
# Linking always hardcodes the temporary library directory.
15047
hardcode_action_CXX=relink
15049
# We can link without hardcoding, and we can hardcode nonexisting dirs.
15050
hardcode_action_CXX=immediate
15053
# We cannot hardcode anything, or else we can only hardcode existing
15055
hardcode_action_CXX=unsupported
15057
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15058
$as_echo "$hardcode_action_CXX" >&6; }
15060
if test "$hardcode_action_CXX" = relink; then
15061
# Fast installation is not supported
15062
enable_fast_install=no
15063
elif test "$shlibpath_overrides_runpath" = yes ||
15064
test "$enable_shared" = no; then
15065
# Fast installation is not necessary
15066
enable_fast_install=needless
15070
# The else clause should only fire when bootstrapping the
15071
# libtool distribution, otherwise you forgot to ship ltmain.sh
15072
# with your package, and you will get complaints that there are
15073
# no rules to generate ltmain.sh.
15074
if test -f "$ltmain"; then
15075
# See if we are running on zsh, and set the options which allow our commands through
15076
# without removal of \ escapes.
15077
if test -n "${ZSH_VERSION+set}" ; then
15078
setopt NO_GLOB_SUBST
15080
# Now quote all the things that may contain metacharacters while being
15081
# careful not to overquote the AC_SUBSTed values. We take copies of the
15082
# variables and quote the copies for generation of the libtool script.
15083
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15085
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15086
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15087
deplibs_check_method reload_flag reload_cmds need_locks \
15088
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15089
lt_cv_sys_global_symbol_to_c_name_address \
15090
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15091
old_postinstall_cmds old_postuninstall_cmds \
15095
lt_prog_compiler_wl_CXX \
15096
lt_prog_compiler_pic_CXX \
15097
lt_prog_compiler_static_CXX \
15098
lt_prog_compiler_no_builtin_flag_CXX \
15099
export_dynamic_flag_spec_CXX \
15100
thread_safe_flag_spec_CXX \
15101
whole_archive_flag_spec_CXX \
15102
enable_shared_with_static_runtimes_CXX \
15103
old_archive_cmds_CXX \
15104
old_archive_from_new_cmds_CXX \
15105
predep_objects_CXX \
15106
postdep_objects_CXX \
15109
compiler_lib_search_path_CXX \
15110
compiler_lib_search_dirs_CXX \
15112
archive_expsym_cmds_CXX \
15113
postinstall_cmds_CXX \
15114
postuninstall_cmds_CXX \
15115
old_archive_from_expsyms_cmds_CXX \
15116
allow_undefined_flag_CXX \
15117
no_undefined_flag_CXX \
15118
export_symbols_cmds_CXX \
15119
hardcode_libdir_flag_spec_CXX \
15120
hardcode_libdir_flag_spec_ld_CXX \
15121
hardcode_libdir_separator_CXX \
15122
hardcode_automatic_CXX \
15124
module_expsym_cmds_CXX \
15125
lt_cv_prog_compiler_c_o_CXX \
15126
fix_srcfile_path_CXX \
15127
exclude_expsyms_CXX \
15128
include_expsyms_CXX; do
15131
old_archive_cmds_CXX | \
15132
old_archive_from_new_cmds_CXX | \
15133
archive_cmds_CXX | \
15134
archive_expsym_cmds_CXX | \
15135
module_cmds_CXX | \
15136
module_expsym_cmds_CXX | \
15137
old_archive_from_expsyms_cmds_CXX | \
15138
export_symbols_cmds_CXX | \
15139
extract_expsyms_cmds | reload_cmds | finish_cmds | \
15140
postinstall_cmds | postuninstall_cmds | \
15141
old_postinstall_cmds | old_postuninstall_cmds | \
15142
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15143
# Double-quote double-evaled strings.
15144
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15147
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15153
*'\$0 --fallback-echo"')
15154
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15160
cat <<__EOF__ >> "$cfgfile"
15161
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15163
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15165
# Shell to use when invoking shell scripts.
15168
# Whether or not to build shared libraries.
15169
build_libtool_libs=$enable_shared
15171
# Whether or not to build static libraries.
15172
build_old_libs=$enable_static
15174
# Whether or not to add -lc for building shared libraries.
15175
build_libtool_need_lc=$archive_cmds_need_lc_CXX
15177
# Whether or not to disallow shared libs when runtime libs are static
15178
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15180
# Whether or not to optimize for fast installation.
15181
fast_install=$enable_fast_install
15184
host_alias=$host_alias
15188
# The build system.
15189
build_alias=$build_alias
15193
# An echo program that does not interpret backslashes.
15198
AR_FLAGS=$lt_AR_FLAGS
15203
# LTCC compiler flags.
15204
LTCFLAGS=$lt_LTCFLAGS
15206
# A language-specific compiler.
15207
CC=$lt_compiler_CXX
15209
# Is the compiler the GNU C compiler?
15215
# The linker used to build libraries.
15218
# Whether we need hard or soft links.
15221
# A BSD-compatible nm program.
15224
# A symbol stripping program
15227
# Used to examine libraries when file_magic_cmd begins "file"
15228
MAGIC_CMD=$MAGIC_CMD
15230
# Used on cygwin: DLL creation program.
15233
# Used on cygwin: object dumper.
15236
# Used on cygwin: assembler.
15239
# The name of the directory that contains temporary libtool files.
15242
# How to create reloadable object files.
15243
reload_flag=$lt_reload_flag
15244
reload_cmds=$lt_reload_cmds
15246
# How to pass a linker flag through the compiler.
15247
wl=$lt_lt_prog_compiler_wl_CXX
15249
# Object file suffix (normally "o").
15250
objext="$ac_objext"
15252
# Old archive suffix (normally "a").
15255
# Shared library suffix (normally ".so").
15256
shrext_cmds='$shrext_cmds'
15258
# Executable file suffix (normally "").
15261
# Additional compiler flags for building library objects.
15262
pic_flag=$lt_lt_prog_compiler_pic_CXX
15265
# What is the maximum length of a command?
15266
max_cmd_len=$lt_cv_sys_max_cmd_len
15268
# Does compiler simultaneously support -c and -o options?
15269
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15271
# Must we lock files when doing compilation?
15272
need_locks=$lt_need_locks
15274
# Do we need the lib prefix for modules?
15275
need_lib_prefix=$need_lib_prefix
15277
# Do we need a version for libraries?
15278
need_version=$need_version
15280
# Whether dlopen is supported.
15281
dlopen_support=$enable_dlopen
15283
# Whether dlopen of programs is supported.
15284
dlopen_self=$enable_dlopen_self
15286
# Whether dlopen of statically linked programs is supported.
15287
dlopen_self_static=$enable_dlopen_self_static
15289
# Compiler flag to prevent dynamic linking.
15290
link_static_flag=$lt_lt_prog_compiler_static_CXX
15292
# Compiler flag to turn off builtin functions.
15293
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15295
# Compiler flag to allow reflexive dlopens.
15296
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15298
# Compiler flag to generate shared objects directly from archives.
15299
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15301
# Compiler flag to generate thread-safe objects.
15302
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15304
# Library versioning type.
15305
version_type=$version_type
15307
# Format of library name prefix.
15308
libname_spec=$lt_libname_spec
15310
# List of archive names. First name is the real one, the rest are links.
15311
# The last name is the one that the linker finds with -lNAME.
15312
library_names_spec=$lt_library_names_spec
15314
# The coded name of the library, if different from the real name.
15315
soname_spec=$lt_soname_spec
15317
# Commands used to build and install an old-style archive.
15319
old_archive_cmds=$lt_old_archive_cmds_CXX
15320
old_postinstall_cmds=$lt_old_postinstall_cmds
15321
old_postuninstall_cmds=$lt_old_postuninstall_cmds
15323
# Create an old-style archive from a shared archive.
15324
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15326
# Create a temporary old-style archive to link instead of a shared archive.
15327
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15329
# Commands used to build and install a shared archive.
15330
archive_cmds=$lt_archive_cmds_CXX
15331
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15332
postinstall_cmds=$lt_postinstall_cmds
15333
postuninstall_cmds=$lt_postuninstall_cmds
15335
# Commands used to build a loadable module (assumed same as above if empty)
15336
module_cmds=$lt_module_cmds_CXX
15337
module_expsym_cmds=$lt_module_expsym_cmds_CXX
15339
# Commands to strip libraries.
15340
old_striplib=$lt_old_striplib
15341
striplib=$lt_striplib
15343
# Dependencies to place before the objects being linked to create a
15345
predep_objects=$lt_predep_objects_CXX
15347
# Dependencies to place after the objects being linked to create a
15349
postdep_objects=$lt_postdep_objects_CXX
15351
# Dependencies to place before the objects being linked to create a
15353
predeps=$lt_predeps_CXX
15355
# Dependencies to place after the objects being linked to create a
15357
postdeps=$lt_postdeps_CXX
15359
# The directories searched by this compiler when creating a shared
15361
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
15363
# The library search path used internally by the compiler when linking
15364
# a shared library.
15365
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15367
# Method to check whether dependent libraries are shared objects.
15368
deplibs_check_method=$lt_deplibs_check_method
15370
# Command to use when deplibs_check_method == file_magic.
15371
file_magic_cmd=$lt_file_magic_cmd
15373
# Flag that allows shared libraries with undefined symbols to be built.
15374
allow_undefined_flag=$lt_allow_undefined_flag_CXX
15376
# Flag that forces no undefined symbols.
15377
no_undefined_flag=$lt_no_undefined_flag_CXX
15379
# Commands used to finish a libtool library installation in a directory.
15380
finish_cmds=$lt_finish_cmds
15382
# Same as above, but a single script fragment to be evaled but not shown.
15383
finish_eval=$lt_finish_eval
15385
# Take the output of nm and produce a listing of raw symbols and C names.
15386
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15388
# Transform the output of nm in a proper C declaration
15389
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15391
# Transform the output of nm in a C name address pair
15392
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15394
# This is the shared library runtime path variable.
15395
runpath_var=$runpath_var
15397
# This is the shared library path variable.
15398
shlibpath_var=$shlibpath_var
15400
# Is shlibpath searched before the hard-coded library search path?
15401
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15403
# How to hardcode a shared library path into an executable.
15404
hardcode_action=$hardcode_action_CXX
15406
# Whether we should hardcode library paths into libraries.
15407
hardcode_into_libs=$hardcode_into_libs
15409
# Flag to hardcode \$libdir into a binary during linking.
15410
# This must work even if \$libdir does not exist.
15411
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15413
# If ld is used when linking, flag to hardcode \$libdir into
15414
# a binary during linking. This must work even if \$libdir does
15416
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15418
# Whether we need a single -rpath flag with a separated argument.
15419
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15421
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15422
# resulting binary.
15423
hardcode_direct=$hardcode_direct_CXX
15425
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15426
# resulting binary.
15427
hardcode_minus_L=$hardcode_minus_L_CXX
15429
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15430
# the resulting binary.
15431
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15433
# Set to yes if building a shared library automatically hardcodes DIR into the library
15434
# and all subsequent libraries and executables linked against it.
15435
hardcode_automatic=$hardcode_automatic_CXX
15437
# Variables whose values should be saved in libtool wrapper scripts and
15438
# restored at relink time.
15439
variables_saved_for_relink="$variables_saved_for_relink"
15441
# Whether libtool must link a program against all its dependency libraries.
15442
link_all_deplibs=$link_all_deplibs_CXX
15444
# Compile-time system search path for libraries
15445
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15447
# Run-time system search path for libraries
15448
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15450
# Fix the shell variable \$srcfile for the compiler.
15451
fix_srcfile_path=$lt_fix_srcfile_path
15453
# Set to yes if exported symbols are required.
15454
always_export_symbols=$always_export_symbols_CXX
15456
# The commands to list exported symbols.
15457
export_symbols_cmds=$lt_export_symbols_cmds_CXX
15459
# The commands to extract the exported symbol list from a shared archive.
15460
extract_expsyms_cmds=$lt_extract_expsyms_cmds
15462
# Symbols that should not be listed in the preloaded symbols.
15463
exclude_expsyms=$lt_exclude_expsyms_CXX
15465
# Symbols that must always be exported.
15466
include_expsyms=$lt_include_expsyms_CXX
15468
# ### END LIBTOOL TAG CONFIG: $tagname
15474
# If there is no Makefile yet, we rely on a make rule to execute
15475
# `config.status --recheck' to rerun these tests and create the
15476
# libtool script then.
15477
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15478
if test -f "$ltmain_in"; then
15479
test -f Makefile && make "$ltmain"
15485
ac_cpp='$CPP $CPPFLAGS'
15486
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15487
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15488
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15494
with_gnu_ldcxx=$with_gnu_ld
15495
with_gnu_ld=$lt_save_with_gnu_ld
15496
lt_cv_path_LDCXX=$lt_cv_path_LD
15497
lt_cv_path_LD=$lt_save_path_LD
15498
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15499
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15507
if test -n "$F77" && test "X$F77" != "Xno"; then
15510
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15511
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15512
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15515
archive_cmds_need_lc_F77=no
15516
allow_undefined_flag_F77=
15517
always_export_symbols_F77=no
15518
archive_expsym_cmds_F77=
15519
export_dynamic_flag_spec_F77=
15520
hardcode_direct_F77=no
15521
hardcode_libdir_flag_spec_F77=
15522
hardcode_libdir_flag_spec_ld_F77=
15523
hardcode_libdir_separator_F77=
15524
hardcode_minus_L_F77=no
15525
hardcode_automatic_F77=no
15527
module_expsym_cmds_F77=
15528
link_all_deplibs_F77=unknown
15529
old_archive_cmds_F77=$old_archive_cmds
15530
no_undefined_flag_F77=
15531
whole_archive_flag_spec_F77=
15532
enable_shared_with_static_runtimes_F77=no
15534
# Source file extension for f77 test sources.
15537
# Object file extension for compiled f77 test sources.
15541
# Code to be used in simple compile tests
15542
lt_simple_compile_test_code="\
15548
# Code to be used in simple link tests
15549
lt_simple_link_test_code="\
15554
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15556
# If no C compiler was specified, use CC.
15559
# If no C compiler flags were specified, use CFLAGS.
15560
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15562
# Allow CC to be a program name with arguments.
15566
# save warnings/boilerplate of simple test code
15567
ac_outfile=conftest.$ac_objext
15568
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15569
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15570
_lt_compiler_boilerplate=`cat conftest.err`
15573
ac_outfile=conftest.$ac_objext
15574
echo "$lt_simple_link_test_code" >conftest.$ac_ext
15575
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15576
_lt_linker_boilerplate=`cat conftest.err`
15580
# Allow CC to be a program name with arguments.
15585
for cc_temp in $compiler""; do
15587
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15588
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15593
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15596
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15597
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
15598
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
15599
$as_echo "$can_build_shared" >&6; }
15601
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15602
$as_echo_n "checking whether to build shared libraries... " >&6; }
15603
test "$can_build_shared" = "no" && enable_shared=no
15605
# On AIX, shared libraries and static libraries use the same namespace, and
15606
# are all built from PIC.
15609
test "$enable_shared" = yes && enable_static=no
15610
if test -n "$RANLIB"; then
15611
archive_cmds="$archive_cmds~\$RANLIB \$lib"
15612
postinstall_cmds='$RANLIB $lib'
15616
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15617
test "$enable_shared" = yes && enable_static=no
15621
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
15622
$as_echo "$enable_shared" >&6; }
15624
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15625
$as_echo_n "checking whether to build static libraries... " >&6; }
15626
# Make sure either enable_shared or enable_static is yes.
15627
test "$enable_shared" = yes || enable_static=yes
15628
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
15629
$as_echo "$enable_static" >&6; }
15634
lt_prog_compiler_wl_F77=
15635
lt_prog_compiler_pic_F77=
15636
lt_prog_compiler_static_F77=
15638
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15639
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15641
if test "$GCC" = yes; then
15642
lt_prog_compiler_wl_F77='-Wl,'
15643
lt_prog_compiler_static_F77='-static'
15647
# All AIX code is PIC.
15648
if test "$host_cpu" = ia64; then
15649
# AIX 5 now supports IA64 processor
15650
lt_prog_compiler_static_F77='-Bstatic'
15655
# FIXME: we need at least 68020 code to build shared libraries, but
15656
# adding the `-m68020' flag to GCC prevents building anything better,
15658
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15661
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15662
# PIC is the default for these OSes.
15665
mingw* | cygwin* | pw32* | os2*)
15666
# This hack is so that the source file can tell whether it is being
15667
# built for inclusion in a dll (and should export symbols for example).
15668
# Although the cygwin gcc ignores -fPIC, still need this for old-style
15669
# (--disable-auto-import) libraries
15670
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15673
darwin* | rhapsody*)
15674
# PIC is the default on this platform
15675
# Common symbols not allowed in MH_DYLIB files
15676
lt_prog_compiler_pic_F77='-fno-common'
15680
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
15681
# Instead, we relocate shared libraries at runtime.
15685
# Just because we use GCC doesn't mean we suddenly get shared libraries
15686
# on systems that don't support them.
15687
lt_prog_compiler_can_build_shared_F77=no
15692
if test -d /usr/nec; then
15693
lt_prog_compiler_pic_F77=-Kconform_pic
15698
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15699
# not for PA HP-UX.
15705
lt_prog_compiler_pic_F77='-fPIC'
15711
lt_prog_compiler_pic_F77='-fPIC'
15715
# PORTME Check for flag to pass linker flags through the system compiler.
15718
lt_prog_compiler_wl_F77='-Wl,'
15719
if test "$host_cpu" = ia64; then
15720
# AIX 5 now supports IA64 processor
15721
lt_prog_compiler_static_F77='-Bstatic'
15723
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15727
# PIC is the default on this platform
15728
# Common symbols not allowed in MH_DYLIB files
15729
case $cc_basename in
15731
lt_prog_compiler_pic_F77='-qnocommon'
15732
lt_prog_compiler_wl_F77='-Wl,'
15737
mingw* | cygwin* | pw32* | os2*)
15738
# This hack is so that the source file can tell whether it is being
15739
# built for inclusion in a dll (and should export symbols for example).
15740
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15743
hpux9* | hpux10* | hpux11*)
15744
lt_prog_compiler_wl_F77='-Wl,'
15745
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15746
# not for PA HP-UX.
15752
lt_prog_compiler_pic_F77='+Z'
15755
# Is there a better lt_prog_compiler_static that works with the bundled CC?
15756
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15759
irix5* | irix6* | nonstopux*)
15760
lt_prog_compiler_wl_F77='-Wl,'
15761
# PIC (with -KPIC) is the default.
15762
lt_prog_compiler_static_F77='-non_shared'
15766
lt_prog_compiler_pic_F77='-KPIC'
15767
lt_prog_compiler_static_F77='-Bstatic'
15770
linux* | k*bsd*-gnu)
15771
case $cc_basename in
15773
lt_prog_compiler_wl_F77='-Wl,'
15774
lt_prog_compiler_pic_F77='-KPIC'
15775
lt_prog_compiler_static_F77='-static'
15777
pgcc* | pgf77* | pgf90* | pgf95*)
15778
# Portland Group compilers (*not* the Pentium gcc compiler,
15779
# which looks to be a dead project)
15780
lt_prog_compiler_wl_F77='-Wl,'
15781
lt_prog_compiler_pic_F77='-fpic'
15782
lt_prog_compiler_static_F77='-Bstatic'
15785
lt_prog_compiler_wl_F77='-Wl,'
15786
# All Alpha code is PIC.
15787
lt_prog_compiler_static_F77='-non_shared'
15790
case `$CC -V 2>&1 | sed 5q` in
15793
lt_prog_compiler_pic_F77='-KPIC'
15794
lt_prog_compiler_static_F77='-Bstatic'
15795
lt_prog_compiler_wl_F77='-Wl,'
15798
# Sun Fortran 8.3 passes all unrecognized flags to the linker
15799
lt_prog_compiler_pic_F77='-KPIC'
15800
lt_prog_compiler_static_F77='-Bstatic'
15801
lt_prog_compiler_wl_F77=''
15808
osf3* | osf4* | osf5*)
15809
lt_prog_compiler_wl_F77='-Wl,'
15810
# All OSF/1 code is PIC.
15811
lt_prog_compiler_static_F77='-non_shared'
15815
lt_prog_compiler_static_F77='-non_shared'
15819
lt_prog_compiler_pic_F77='-KPIC'
15820
lt_prog_compiler_static_F77='-Bstatic'
15821
case $cc_basename in
15822
f77* | f90* | f95*)
15823
lt_prog_compiler_wl_F77='-Qoption ld ';;
15825
lt_prog_compiler_wl_F77='-Wl,';;
15830
lt_prog_compiler_wl_F77='-Qoption ld '
15831
lt_prog_compiler_pic_F77='-PIC'
15832
lt_prog_compiler_static_F77='-Bstatic'
15835
sysv4 | sysv4.2uw2* | sysv4.3*)
15836
lt_prog_compiler_wl_F77='-Wl,'
15837
lt_prog_compiler_pic_F77='-KPIC'
15838
lt_prog_compiler_static_F77='-Bstatic'
15842
if test -d /usr/nec ;then
15843
lt_prog_compiler_pic_F77='-Kconform_pic'
15844
lt_prog_compiler_static_F77='-Bstatic'
15848
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15849
lt_prog_compiler_wl_F77='-Wl,'
15850
lt_prog_compiler_pic_F77='-KPIC'
15851
lt_prog_compiler_static_F77='-Bstatic'
15855
lt_prog_compiler_wl_F77='-Wl,'
15856
lt_prog_compiler_can_build_shared_F77=no
15860
lt_prog_compiler_pic_F77='-pic'
15861
lt_prog_compiler_static_F77='-Bstatic'
15865
lt_prog_compiler_can_build_shared_F77=no
15870
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15871
$as_echo "$lt_prog_compiler_pic_F77" >&6; }
15874
# Check to make sure the PIC flag actually works.
15876
if test -n "$lt_prog_compiler_pic_F77"; then
15878
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15879
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
15880
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
15881
$as_echo_n "(cached) " >&6
15883
lt_cv_prog_compiler_pic_works_F77=no
15884
ac_outfile=conftest.$ac_objext
15885
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15886
lt_compiler_flag="$lt_prog_compiler_pic_F77"
15887
# Insert the option either (1) after the last *FLAGS variable, or
15888
# (2) before a word containing "conftest.", or (3) at the end.
15889
# Note that $ac_compile itself does not contain backslashes and begins
15890
# with a dollar sign (not a hyphen), so the echo should work correctly.
15891
# The option is referenced via a variable to avoid confusing sed.
15892
lt_compile=`echo "$ac_compile" | $SED \
15893
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15894
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15895
-e 's:$: $lt_compiler_flag:'`
15896
(eval echo "\"\$as_me:15896: $lt_compile\"" >&5)
15897
(eval "$lt_compile" 2>conftest.err)
15899
cat conftest.err >&5
15900
echo "$as_me:15900: \$? = $ac_status" >&5
15901
if (exit $ac_status) && test -s "$ac_outfile"; then
15902
# The compiler can only warn and ignore the option if not recognized
15903
# So say no if there are warnings other than the usual output.
15904
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15905
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15906
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15907
lt_cv_prog_compiler_pic_works_F77=yes
15913
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
15914
$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
15916
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
15917
case $lt_prog_compiler_pic_F77 in
15919
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15922
lt_prog_compiler_pic_F77=
15923
lt_prog_compiler_can_build_shared_F77=no
15928
# For platforms which do not support PIC, -DPIC is meaningless:
15930
lt_prog_compiler_pic_F77=
15933
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15938
# Check to make sure the static flag actually works.
15940
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15941
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15942
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15943
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
15944
$as_echo_n "(cached) " >&6
15946
lt_cv_prog_compiler_static_works_F77=no
15947
save_LDFLAGS="$LDFLAGS"
15948
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15949
echo "$lt_simple_link_test_code" > conftest.$ac_ext
15950
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15951
# The linker can only warn and ignore the option if not recognized
15952
# So say no if there are warnings
15953
if test -s conftest.err; then
15954
# Append any errors to the config.log.
15955
cat conftest.err 1>&5
15956
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15957
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15958
if diff conftest.exp conftest.er2 >/dev/null; then
15959
lt_cv_prog_compiler_static_works_F77=yes
15962
lt_cv_prog_compiler_static_works_F77=yes
15966
LDFLAGS="$save_LDFLAGS"
15969
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
15970
$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
15972
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
15975
lt_prog_compiler_static_F77=
15979
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15980
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15981
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15982
$as_echo_n "(cached) " >&6
15984
lt_cv_prog_compiler_c_o_F77=no
15985
$rm -r conftest 2>/dev/null
15989
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15991
lt_compiler_flag="-o out/conftest2.$ac_objext"
15992
# Insert the option either (1) after the last *FLAGS variable, or
15993
# (2) before a word containing "conftest.", or (3) at the end.
15994
# Note that $ac_compile itself does not contain backslashes and begins
15995
# with a dollar sign (not a hyphen), so the echo should work correctly.
15996
lt_compile=`echo "$ac_compile" | $SED \
15997
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15998
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15999
-e 's:$: $lt_compiler_flag:'`
16000
(eval echo "\"\$as_me:16000: $lt_compile\"" >&5)
16001
(eval "$lt_compile" 2>out/conftest.err)
16003
cat out/conftest.err >&5
16004
echo "$as_me:16004: \$? = $ac_status" >&5
16005
if (exit $ac_status) && test -s out/conftest2.$ac_objext
16007
# The compiler can only warn and ignore the option if not recognized
16008
# So say no if there are warnings
16009
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16010
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16011
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16012
lt_cv_prog_compiler_c_o_F77=yes
16017
# SGI C++ compiler will create directory out/ii_files/ for
16018
# template instantiation
16019
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16020
$rm out/* && rmdir out
16026
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
16027
$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
16030
hard_links="nottested"
16031
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
16032
# do not overwrite the value of need_locks provided by the user
16033
{ $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16034
$as_echo_n "checking if we can lock with hard links... " >&6; }
16037
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16039
ln conftest.a conftest.b 2>&5 || hard_links=no
16040
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16041
{ $as_echo "$as_me:$LINENO: result: $hard_links" >&5
16042
$as_echo "$hard_links" >&6; }
16043
if test "$hard_links" = no; then
16044
{ $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16045
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16052
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16053
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16056
allow_undefined_flag_F77=
16057
enable_shared_with_static_runtimes_F77=no
16059
archive_expsym_cmds_F77=
16060
old_archive_From_new_cmds_F77=
16061
old_archive_from_expsyms_cmds_F77=
16062
export_dynamic_flag_spec_F77=
16063
whole_archive_flag_spec_F77=
16064
thread_safe_flag_spec_F77=
16065
hardcode_libdir_flag_spec_F77=
16066
hardcode_libdir_flag_spec_ld_F77=
16067
hardcode_libdir_separator_F77=
16068
hardcode_direct_F77=no
16069
hardcode_minus_L_F77=no
16070
hardcode_shlibpath_var_F77=unsupported
16071
link_all_deplibs_F77=unknown
16072
hardcode_automatic_F77=no
16074
module_expsym_cmds_F77=
16075
always_export_symbols_F77=no
16076
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16077
# include_expsyms should be a list of space-separated symbols to be *always*
16078
# included in the symbol list
16079
include_expsyms_F77=
16080
# exclude_expsyms can be an extended regexp of symbols to exclude
16081
# it will be wrapped by ` (' and `)$', so one must not match beginning or
16082
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16083
# as well as any symbol that contains `d'.
16084
exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16085
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16086
# platforms (ab)use it in PIC code, but their linkers get confused if
16087
# the symbol is explicitly referenced. Since portable code cannot
16088
# rely on this symbol name, it's probably fine to never include it in
16089
# preloaded symbol tables.
16090
# Exclude shared library initialization/finalization symbols.
16091
extract_expsyms_cmds=
16092
# Just being paranoid about ensuring that cc_basename is set.
16093
for cc_temp in $compiler""; do
16095
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16096
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16101
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16104
cygwin* | mingw* | pw32*)
16105
# FIXME: the MSVC++ port hasn't been tested in a loooong time
16106
# When not using gcc, we currently assume that we are using
16107
# Microsoft Visual C++.
16108
if test "$GCC" != yes; then
16113
# we just hope/assume this is gcc and not c89 (= MSVC++)
16122
if test "$with_gnu_ld" = yes; then
16123
# If archive_cmds runs LD, not CC, wlarc should be empty
16126
# Set some defaults for GNU ld with shared library support. These
16127
# are reset later if shared libraries are not supported. Putting them
16128
# here allows them to be overridden if necessary.
16129
runpath_var=LD_RUN_PATH
16130
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
16131
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
16132
# ancient GNU ld didn't support --whole-archive et. al.
16133
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16134
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16136
whole_archive_flag_spec_F77=
16138
supports_anon_versioning=no
16139
case `$LD -v 2>/dev/null` in
16140
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16141
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16142
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16143
*\ 2.11.*) ;; # other 2.11 versions
16144
*) supports_anon_versioning=yes ;;
16147
# See if GNU ld supports shared libraries.
16150
# On AIX/PPC, the GNU linker is very broken
16151
if test "$host_cpu" != ia64; then
16155
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16156
*** to be unable to reliably create shared libraries on AIX.
16157
*** Therefore, libtool is disabling shared libraries support. If you
16158
*** really care for shared libraries, you may want to modify your PATH
16159
*** so that a non-GNU linker is found, and then restart.
16166
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)'
16167
hardcode_libdir_flag_spec_F77='-L$libdir'
16168
hardcode_minus_L_F77=yes
16170
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16171
# that the semantics of dynamic libraries on AmigaOS, at least up
16172
# to version 4, is to share data among multiple programs linked
16173
# with the same dynamic library. Since this doesn't match the
16174
# behavior of shared libraries on other platforms, we can't use
16180
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16181
allow_undefined_flag_F77=unsupported
16182
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16183
# support --undefined. This deserves some investigation. FIXME
16184
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16190
cygwin* | mingw* | pw32*)
16191
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16192
# as there is no search path for DLLs.
16193
hardcode_libdir_flag_spec_F77='-L$libdir'
16194
allow_undefined_flag_F77=unsupported
16195
always_export_symbols_F77=no
16196
enable_shared_with_static_runtimes_F77=yes
16197
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16199
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16200
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16201
# If the export-symbols file already is a .def file (1st line
16202
# is EXPORTS), use it as is; otherwise, prepend...
16203
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16204
cp $export_symbols $output_objdir/$soname.def;
16206
echo EXPORTS > $output_objdir/$soname.def;
16207
cat $export_symbols >> $output_objdir/$soname.def;
16209
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16216
hardcode_direct_F77=no
16217
hardcode_shlibpath_var_F77=no
16218
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16219
export_dynamic_flag_spec_F77='${wl}-E'
16220
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16221
# Instead, shared libraries are loaded at an image base (0x10000000 by
16222
# default) and relocated if they conflict, which is a slow very memory
16223
# consuming and fragmenting process. To avoid this, we pick a random,
16224
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16225
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
16226
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'
16227
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'
16230
gnu* | linux* | k*bsd*-gnu)
16231
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16233
case $cc_basename,$host_cpu in
16234
pgcc*) # Portland Group C compiler
16235
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'
16236
tmp_addflag=' $pic_flag'
16238
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16239
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'
16240
tmp_addflag=' $pic_flag -Mnomain' ;;
16241
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16242
tmp_addflag=' -i_dynamic' ;;
16243
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16244
tmp_addflag=' -i_dynamic -nofor_main' ;;
16245
ifc* | ifort*) # Intel Fortran compiler
16246
tmp_addflag=' -nofor_main' ;;
16248
case `$CC -V 2>&1 | sed 5q` in
16249
*Sun\ C*) # Sun C 5.9
16250
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'
16251
tmp_sharedflag='-G' ;;
16252
*Sun\ F*) # Sun Fortran 8.3
16253
tmp_sharedflag='-G' ;;
16255
tmp_sharedflag='-shared' ;;
16257
archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16259
if test $supports_anon_versioning = yes; then
16260
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16261
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16262
$echo "local: *; };" >> $output_objdir/$libname.ver~
16263
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16265
link_all_deplibs_F77=no
16271
netbsd* | netbsdelf*-gnu)
16272
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16273
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16276
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16277
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16282
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16286
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16287
*** create shared libraries on Solaris systems. Therefore, libtool
16288
*** is disabling shared libraries support. We urge you to upgrade GNU
16289
*** binutils to release 2.9.1 or newer. Another option is to modify
16290
*** your PATH or compiler configuration so that the native linker is
16291
*** used, and then restart.
16294
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16295
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16296
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16302
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16303
case `$LD -v 2>&1` in
16304
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16308
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16309
*** reliably create shared libraries on SCO systems. Therefore, libtool
16310
*** is disabling shared libraries support. We urge you to upgrade GNU
16311
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16312
*** your PATH or compiler configuration so that the native linker is
16313
*** used, and then restart.
16318
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16319
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16320
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16321
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16330
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16332
hardcode_direct_F77=yes
16333
hardcode_shlibpath_var_F77=no
16337
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16338
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16339
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16346
if test "$ld_shlibs_F77" = no; then
16348
hardcode_libdir_flag_spec_F77=
16349
export_dynamic_flag_spec_F77=
16350
whole_archive_flag_spec_F77=
16353
# PORTME fill in a description of your system's linker (not GNU ld)
16356
allow_undefined_flag_F77=unsupported
16357
always_export_symbols_F77=yes
16358
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'
16359
# Note: this linker hardcodes the directories in LIBPATH if there
16360
# are no directories specified by -L.
16361
hardcode_minus_L_F77=yes
16362
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16363
# Neither direct hardcoding nor static linking is supported with a
16365
hardcode_direct_F77=unsupported
16370
if test "$host_cpu" = ia64; then
16371
# On IA64, the linker does run time linking by default, so we don't
16372
# have to do anything special.
16373
aix_use_runtimelinking=no
16374
exp_sym_flag='-Bexport'
16377
# If we're using GNU nm, then we don't want the "-C" option.
16378
# -C means demangle to AIX nm, but means don't demangle with GNU nm
16379
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16380
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'
16382
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'
16384
aix_use_runtimelinking=no
16386
# Test if we are trying to use run time linking or normal
16387
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16388
# need to do runtime linking.
16389
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16390
for ld_flag in $LDFLAGS; do
16391
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16392
aix_use_runtimelinking=yes
16399
exp_sym_flag='-bexport'
16400
no_entry_flag='-bnoentry'
16403
# When large executables or shared objects are built, AIX ld can
16404
# have problems creating the table of contents. If linking a library
16405
# or program results in "error TOC overflow" add -mminimal-toc to
16406
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16407
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16409
archive_cmds_F77=''
16410
hardcode_direct_F77=yes
16411
hardcode_libdir_separator_F77=':'
16412
link_all_deplibs_F77=yes
16414
if test "$GCC" = yes; then
16415
case $host_os in aix4.[012]|aix4.[012].*)
16416
# We only want to do this on AIX 4.2 and lower, the check
16417
# below for broken collect2 doesn't work under 4.3+
16418
collect2name=`${CC} -print-prog-name=collect2`
16419
if test -f "$collect2name" && \
16420
strings "$collect2name" | grep resolve_lib_name >/dev/null
16422
# We have reworked collect2
16425
# We have old collect2
16426
hardcode_direct_F77=unsupported
16427
# It fails to find uninstalled libraries when the uninstalled
16428
# path is not listed in the libpath. Setting hardcode_minus_L
16429
# to unsupported forces relinking
16430
hardcode_minus_L_F77=yes
16431
hardcode_libdir_flag_spec_F77='-L$libdir'
16432
hardcode_libdir_separator_F77=
16436
shared_flag='-shared'
16437
if test "$aix_use_runtimelinking" = yes; then
16438
shared_flag="$shared_flag "'${wl}-G'
16442
if test "$host_cpu" = ia64; then
16443
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16444
# chokes on -Wl,-G. The following line is correct:
16447
if test "$aix_use_runtimelinking" = yes; then
16448
shared_flag='${wl}-G'
16450
shared_flag='${wl}-bM:SRE'
16455
# It seems that -bexpall does not export symbols beginning with
16456
# underscore (_), so it is better to generate a list of symbols to export.
16457
always_export_symbols_F77=yes
16458
if test "$aix_use_runtimelinking" = yes; then
16459
# Warning - without using the other runtime loading flags (-brtl),
16460
# -berok will link without error, but may produce a broken library.
16461
allow_undefined_flag_F77='-berok'
16462
# Determine the default libpath from the value encoded in an empty executable.
16463
cat >conftest.$ac_ext <<_ACEOF
16468
rm -f conftest.$ac_objext conftest$ac_exeext
16469
if { (ac_try="$ac_link"
16470
case "(($ac_try" in
16471
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16472
*) ac_try_echo=$ac_try;;
16474
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16475
$as_echo "$ac_try_echo") >&5
16476
(eval "$ac_link") 2>conftest.er1
16478
grep -v '^ *+' conftest.er1 >conftest.err
16480
cat conftest.err >&5
16481
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16482
(exit $ac_status); } && {
16483
test -z "$ac_f77_werror_flag" ||
16484
test ! -s conftest.err
16485
} && test -s conftest$ac_exeext && {
16486
test "$cross_compiling" = yes ||
16487
$as_test_x conftest$ac_exeext
16490
lt_aix_libpath_sed='
16491
/Import File Strings/,/^$/ {
16497
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16498
# Check for a 64-bit object if we didn't find anything.
16499
if test -z "$aix_libpath"; then
16500
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16503
$as_echo "$as_me: failed program was:" >&5
16504
sed 's/^/| /' conftest.$ac_ext >&5
16509
rm -rf conftest.dSYM
16510
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16511
conftest$ac_exeext conftest.$ac_ext
16512
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16514
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16515
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"
16517
if test "$host_cpu" = ia64; then
16518
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16519
allow_undefined_flag_F77="-z nodefs"
16520
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"
16522
# Determine the default libpath from the value encoded in an empty executable.
16523
cat >conftest.$ac_ext <<_ACEOF
16528
rm -f conftest.$ac_objext conftest$ac_exeext
16529
if { (ac_try="$ac_link"
16530
case "(($ac_try" in
16531
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16532
*) ac_try_echo=$ac_try;;
16534
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16535
$as_echo "$ac_try_echo") >&5
16536
(eval "$ac_link") 2>conftest.er1
16538
grep -v '^ *+' conftest.er1 >conftest.err
16540
cat conftest.err >&5
16541
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542
(exit $ac_status); } && {
16543
test -z "$ac_f77_werror_flag" ||
16544
test ! -s conftest.err
16545
} && test -s conftest$ac_exeext && {
16546
test "$cross_compiling" = yes ||
16547
$as_test_x conftest$ac_exeext
16550
lt_aix_libpath_sed='
16551
/Import File Strings/,/^$/ {
16557
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16558
# Check for a 64-bit object if we didn't find anything.
16559
if test -z "$aix_libpath"; then
16560
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16563
$as_echo "$as_me: failed program was:" >&5
16564
sed 's/^/| /' conftest.$ac_ext >&5
16569
rm -rf conftest.dSYM
16570
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16571
conftest$ac_exeext conftest.$ac_ext
16572
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16574
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16575
# Warning - without using the other run time loading flags,
16576
# -berok will link without error, but may produce a broken library.
16577
no_undefined_flag_F77=' ${wl}-bernotok'
16578
allow_undefined_flag_F77=' ${wl}-berok'
16579
# Exported symbols can be pulled into shared objects from archives
16580
whole_archive_flag_spec_F77='$convenience'
16581
archive_cmds_need_lc_F77=yes
16582
# This is similar to how AIX traditionally builds its shared libraries.
16583
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'
16589
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)'
16590
hardcode_libdir_flag_spec_F77='-L$libdir'
16591
hardcode_minus_L_F77=yes
16592
# see comment about different semantics on the GNU ld section
16597
export_dynamic_flag_spec_F77=-rdynamic
16600
cygwin* | mingw* | pw32*)
16601
# When not using gcc, we currently assume that we are using
16602
# Microsoft Visual C++.
16603
# hardcode_libdir_flag_spec is actually meaningless, as there is
16604
# no search path for DLLs.
16605
hardcode_libdir_flag_spec_F77=' '
16606
allow_undefined_flag_F77=unsupported
16607
# Tell ltmain to make .lib files, not .a files.
16609
# Tell ltmain to make .dll files, not .so files.
16611
# FIXME: Setting linknames here is a bad hack.
16612
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16613
# The linker will automatically build a .lib file if we build a DLL.
16614
old_archive_From_new_cmds_F77='true'
16615
# FIXME: Should let the user specify the lib program.
16616
old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
16617
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16618
enable_shared_with_static_runtimes_F77=yes
16621
darwin* | rhapsody*)
16623
rhapsody* | darwin1.[012])
16624
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16627
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16628
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16630
case ${MACOSX_DEPLOYMENT_TARGET} in
16632
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16635
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16641
archive_cmds_need_lc_F77=no
16642
hardcode_direct_F77=no
16643
hardcode_automatic_F77=yes
16644
hardcode_shlibpath_var_F77=unsupported
16645
whole_archive_flag_spec_F77=''
16646
link_all_deplibs_F77=yes
16647
if test "$GCC" = yes ; then
16648
output_verbose_link_cmd='echo'
16649
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}"
16650
module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16651
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}"
16652
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}"
16654
case $cc_basename in
16656
output_verbose_link_cmd='echo'
16657
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16658
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16659
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16660
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}'
16661
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}'
16671
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16672
hardcode_libdir_flag_spec_F77='-L$libdir'
16673
hardcode_shlibpath_var_F77=no
16680
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16681
# support. Future versions do this automatically, but an explicit c++rt0.o
16682
# does not break anything, and helps significantly (at the cost of a little
16685
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16686
hardcode_libdir_flag_spec_F77='-R$libdir'
16687
hardcode_direct_F77=yes
16688
hardcode_shlibpath_var_F77=no
16691
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
16693
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16694
hardcode_direct_F77=yes
16695
hardcode_minus_L_F77=yes
16696
hardcode_shlibpath_var_F77=no
16699
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16700
freebsd* | dragonfly*)
16701
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16702
hardcode_libdir_flag_spec_F77='-R$libdir'
16703
hardcode_direct_F77=yes
16704
hardcode_shlibpath_var_F77=no
16708
if test "$GCC" = yes; then
16709
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'
16711
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'
16713
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16714
hardcode_libdir_separator_F77=:
16715
hardcode_direct_F77=yes
16717
# hardcode_minus_L: Not really in the search PATH,
16718
# but as the default location of the library.
16719
hardcode_minus_L_F77=yes
16720
export_dynamic_flag_spec_F77='${wl}-E'
16724
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16725
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16727
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16729
if test "$with_gnu_ld" = no; then
16730
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16731
hardcode_libdir_separator_F77=:
16733
hardcode_direct_F77=yes
16734
export_dynamic_flag_spec_F77='${wl}-E'
16736
# hardcode_minus_L: Not really in the search PATH,
16737
# but as the default location of the library.
16738
hardcode_minus_L_F77=yes
16743
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16746
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16749
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16752
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16758
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16761
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16764
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16768
if test "$with_gnu_ld" = no; then
16769
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16770
hardcode_libdir_separator_F77=:
16774
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16775
hardcode_direct_F77=no
16776
hardcode_shlibpath_var_F77=no
16779
hardcode_direct_F77=yes
16780
export_dynamic_flag_spec_F77='${wl}-E'
16782
# hardcode_minus_L: Not really in the search PATH,
16783
# but as the default location of the library.
16784
hardcode_minus_L_F77=yes
16790
irix5* | irix6* | nonstopux*)
16791
if test "$GCC" = yes; then
16792
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'
16794
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'
16795
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16797
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16798
hardcode_libdir_separator_F77=:
16799
link_all_deplibs_F77=yes
16802
netbsd* | netbsdelf*-gnu)
16803
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16804
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16806
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16808
hardcode_libdir_flag_spec_F77='-R$libdir'
16809
hardcode_direct_F77=yes
16810
hardcode_shlibpath_var_F77=no
16814
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16815
hardcode_direct_F77=yes
16816
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16817
hardcode_libdir_separator_F77=:
16818
hardcode_shlibpath_var_F77=no
16822
if test -f /usr/libexec/ld.so; then
16823
hardcode_direct_F77=yes
16824
hardcode_shlibpath_var_F77=no
16825
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16826
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16827
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16828
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16829
export_dynamic_flag_spec_F77='${wl}-E'
16832
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16833
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16834
hardcode_libdir_flag_spec_F77='-R$libdir'
16837
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16838
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16848
hardcode_libdir_flag_spec_F77='-L$libdir'
16849
hardcode_minus_L_F77=yes
16850
allow_undefined_flag_F77=unsupported
16851
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'
16852
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16856
if test "$GCC" = yes; then
16857
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16858
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'
16860
allow_undefined_flag_F77=' -expect_unresolved \*'
16861
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'
16863
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16864
hardcode_libdir_separator_F77=:
16867
osf4* | osf5*) # as osf3* with the addition of -msym flag
16868
if test "$GCC" = yes; then
16869
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16870
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'
16871
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16873
allow_undefined_flag_F77=' -expect_unresolved \*'
16874
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'
16875
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~
16876
$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'
16878
# Both c and cxx compiler support -rpath directly
16879
hardcode_libdir_flag_spec_F77='-rpath $libdir'
16881
hardcode_libdir_separator_F77=:
16885
no_undefined_flag_F77=' -z text'
16886
if test "$GCC" = yes; then
16888
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16889
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16890
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16893
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16894
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16895
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16897
hardcode_libdir_flag_spec_F77='-R$libdir'
16898
hardcode_shlibpath_var_F77=no
16900
solaris2.[0-5] | solaris2.[0-5].*) ;;
16902
# The compiler driver will combine and reorder linker options,
16903
# but understands `-z linker_flag'. GCC discards it without `$wl',
16904
# but is careful enough not to reorder.
16905
# Supported since Solaris 2.6 (maybe 2.5.1?)
16906
if test "$GCC" = yes; then
16907
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16909
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
16913
link_all_deplibs_F77=yes
16917
if test "x$host_vendor" = xsequent; then
16918
# Use $CC to link under sequent, because it throws in some extra .o
16919
# files that make .init and .fini sections work.
16920
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16922
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16924
hardcode_libdir_flag_spec_F77='-L$libdir'
16925
hardcode_direct_F77=yes
16926
hardcode_minus_L_F77=yes
16927
hardcode_shlibpath_var_F77=no
16931
case $host_vendor in
16933
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16934
hardcode_direct_F77=yes # is this really true???
16937
## LD is ld it makes a PLAMLIB
16938
## CC just makes a GrossModule.
16939
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16940
reload_cmds_F77='$CC -r -o $output$reload_objs'
16941
hardcode_direct_F77=no
16944
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16945
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16948
runpath_var='LD_RUN_PATH'
16949
hardcode_shlibpath_var_F77=no
16953
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16954
hardcode_shlibpath_var_F77=no
16955
export_dynamic_flag_spec_F77='-Bexport'
16959
if test -d /usr/nec; then
16960
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16961
hardcode_shlibpath_var_F77=no
16962
runpath_var=LD_RUN_PATH
16963
hardcode_runpath_var=yes
16968
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16969
no_undefined_flag_F77='${wl}-z,text'
16970
archive_cmds_need_lc_F77=no
16971
hardcode_shlibpath_var_F77=no
16972
runpath_var='LD_RUN_PATH'
16974
if test "$GCC" = yes; then
16975
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16976
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16978
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16979
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16983
sysv5* | sco3.2v5* | sco5v6*)
16984
# Note: We can NOT use -z defs as we might desire, because we do not
16985
# link with -lc, and that would cause any symbols used from libc to
16986
# always be unresolved, which means just about no library would
16987
# ever link correctly. If we're not using GNU ld we use -z text
16988
# though, which does catch some bad symbols but isn't as heavy-handed
16990
no_undefined_flag_F77='${wl}-z,text'
16991
allow_undefined_flag_F77='${wl}-z,nodefs'
16992
archive_cmds_need_lc_F77=no
16993
hardcode_shlibpath_var_F77=no
16994
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16995
hardcode_libdir_separator_F77=':'
16996
link_all_deplibs_F77=yes
16997
export_dynamic_flag_spec_F77='${wl}-Bexport'
16998
runpath_var='LD_RUN_PATH'
17000
if test "$GCC" = yes; then
17001
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17002
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17004
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17005
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17010
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17011
hardcode_libdir_flag_spec_F77='-L$libdir'
17012
hardcode_shlibpath_var_F77=no
17021
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
17022
$as_echo "$ld_shlibs_F77" >&6; }
17023
test "$ld_shlibs_F77" = no && can_build_shared=no
17026
# Do we need to explicitly link libc?
17028
case "x$archive_cmds_need_lc_F77" in
17030
# Assume -lc should be added
17031
archive_cmds_need_lc_F77=yes
17033
if test "$enable_shared" = yes && test "$GCC" = yes; then
17034
case $archive_cmds_F77 in
17036
# FIXME: we may have to deal with multi-command sequences.
17039
# Test whether the compiler implicitly links with -lc since on some
17040
# systems, -lgcc has to come before -lc. If gcc already passes -lc
17041
# to ld, don't add -lc before -lgcc.
17042
{ $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17043
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17045
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17047
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17048
(eval $ac_compile) 2>&5
17050
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17051
(exit $ac_status); } 2>conftest.err; then
17054
libobjs=conftest.$ac_objext
17056
wl=$lt_prog_compiler_wl_F77
17057
pic_flag=$lt_prog_compiler_pic_F77
17063
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
17064
allow_undefined_flag_F77=
17065
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17066
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17068
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069
(exit $ac_status); }
17071
archive_cmds_need_lc_F77=no
17073
archive_cmds_need_lc_F77=yes
17075
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
17077
cat conftest.err 1>&5
17080
{ $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
17081
$as_echo "$archive_cmds_need_lc_F77" >&6; }
17088
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17089
$as_echo_n "checking dynamic linker characteristics... " >&6; }
17090
library_names_spec=
17091
libname_spec='lib$name'
17095
postuninstall_cmds=
17099
shlibpath_overrides_runpath=unknown
17101
dynamic_linker="$host_os ld.so"
17102
sys_lib_dlsearch_path_spec="/lib /usr/lib"
17104
need_lib_prefix=unknown
17105
hardcode_into_libs=no
17107
# when you set need_version to no, make sure it does not cause -set_version
17108
# flags to be left without arguments
17109
need_version=unknown
17114
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17115
shlibpath_var=LIBPATH
17117
# AIX 3 has no versioning support, so we append a major version to the name.
17118
soname_spec='${libname}${release}${shared_ext}$major'
17125
hardcode_into_libs=yes
17126
if test "$host_cpu" = ia64; then
17127
# AIX 5 supports IA64
17128
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17129
shlibpath_var=LD_LIBRARY_PATH
17131
# With GCC up to 2.95.x, collect2 would create an import file
17132
# for dependence libraries. The import file would start with
17133
# the line `#! .'. This would cause the generated library to
17134
# depend on `.', always an invalid library. This was fixed in
17135
# development snapshots of GCC prior to 3.0.
17137
aix4 | aix4.[01] | aix4.[01].*)
17138
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17140
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17143
can_build_shared=no
17147
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17148
# soname into executable. Probably we can add versioning support to
17149
# collect2, so additional links can be useful in future.
17150
if test "$aix_use_runtimelinking" = yes; then
17151
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
17152
# instead of lib<name>.a to let people know that these are not
17153
# typical AIX shared libraries.
17154
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17156
# We preserve .a as extension for shared libraries through AIX4.2
17157
# and later when we are not doing run time linking.
17158
library_names_spec='${libname}${release}.a $libname.a'
17159
soname_spec='${libname}${release}${shared_ext}$major'
17161
shlibpath_var=LIBPATH
17166
library_names_spec='$libname.ixlibrary $libname.a'
17167
# Create ${libname}_ixlibrary.a entries in /sys/libs.
17168
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'
17172
library_names_spec='${libname}${shared_ext}'
17173
dynamic_linker="$host_os ld.so"
17174
shlibpath_var=LIBRARY_PATH
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
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17183
shlibpath_var=LD_LIBRARY_PATH
17184
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17185
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17186
# the default ld.so.conf also contains /usr/contrib/lib and
17187
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17188
# libtool to hard-code these into programs
17191
cygwin* | mingw* | pw32*)
17192
version_type=windows
17197
case $GCC,$host_os in
17198
yes,cygwin* | yes,mingw* | yes,pw32*)
17199
library_names_spec='$libname.dll.a'
17200
# DLL is installed to $(libdir)/../bin by postinstall_cmds
17201
postinstall_cmds='base_file=`basename \${file}`~
17202
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17203
dldir=$destdir/`dirname \$dlpath`~
17204
test -d \$dldir || mkdir -p \$dldir~
17205
$install_prog $dir/$dlname \$dldir/$dlname~
17206
chmod a+x \$dldir/$dlname'
17207
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17208
dlpath=$dir/\$dldll~
17210
shlibpath_overrides_runpath=yes
17214
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
17215
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17216
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17219
# MinGW DLLs use traditional 'lib' prefix
17220
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17221
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17222
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17223
# It is most probably a Windows format PATH printed by
17224
# mingw gcc, but we are running on Cygwin. Gcc prints its search
17225
# path with ; separators, and with drive letters. We can handle the
17226
# drive letters (cygwin fileutils understands them), so leave them,
17227
# especially as we might pass files found there to a mingw objdump,
17228
# which wouldn't understand a cygwinified path. Ahh.
17229
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17231
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17235
# pw32 DLLs use 'pw' prefix rather than 'lib'
17236
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17242
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17245
dynamic_linker='Win32 ld.exe'
17246
# FIXME: first we should search . and the directory the executable is in
17250
darwin* | rhapsody*)
17251
dynamic_linker="$host_os dyld"
17252
version_type=darwin
17255
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17256
soname_spec='${libname}${release}${major}$shared_ext'
17257
shlibpath_overrides_runpath=yes
17258
shlibpath_var=DYLD_LIBRARY_PATH
17259
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17261
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17268
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17269
soname_spec='${libname}${release}${shared_ext}$major'
17270
shlibpath_var=LD_LIBRARY_PATH
17277
freebsd* | dragonfly*)
17278
# DragonFly does not have aout. When/if they implement a new
17279
# versioning mechanism, adjust this.
17280
if test -x /usr/bin/objformat; then
17281
objformat=`/usr/bin/objformat`
17284
freebsd[123]*) objformat=aout ;;
17285
*) objformat=elf ;;
17288
version_type=freebsd-$objformat
17289
case $version_type in
17291
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17296
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17300
shlibpath_var=LD_LIBRARY_PATH
17303
shlibpath_overrides_runpath=yes
17305
freebsd3.[01]* | freebsdelf3.[01]*)
17306
shlibpath_overrides_runpath=yes
17307
hardcode_into_libs=yes
17309
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17310
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17311
shlibpath_overrides_runpath=no
17312
hardcode_into_libs=yes
17314
*) # from 4.6 on, and DragonFly
17315
shlibpath_overrides_runpath=yes
17316
hardcode_into_libs=yes
17325
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17326
soname_spec='${libname}${release}${shared_ext}$major'
17327
shlibpath_var=LD_LIBRARY_PATH
17328
hardcode_into_libs=yes
17331
hpux9* | hpux10* | hpux11*)
17332
# Give a soname corresponding to the major version so that dld.sl refuses to
17333
# link against other versions.
17340
hardcode_into_libs=yes
17341
dynamic_linker="$host_os dld.so"
17342
shlibpath_var=LD_LIBRARY_PATH
17343
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17344
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17345
soname_spec='${libname}${release}${shared_ext}$major'
17346
if test "X$HPUX_IA64_MODE" = X32; then
17347
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17349
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17351
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17355
hardcode_into_libs=yes
17356
dynamic_linker="$host_os dld.sl"
17357
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17358
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17359
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17360
soname_spec='${libname}${release}${shared_ext}$major'
17361
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17362
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17366
dynamic_linker="$host_os dld.sl"
17367
shlibpath_var=SHLIB_PATH
17368
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17369
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17370
soname_spec='${libname}${release}${shared_ext}$major'
17373
# HP-UX runs *really* slowly unless shared libraries are mode 555.
17374
postinstall_cmds='chmod 555 $lib'
17381
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17382
soname_spec='${libname}${release}${shared_ext}$major'
17383
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17384
shlibpath_var=LD_LIBRARY_PATH
17385
shlibpath_overrides_runpath=no
17386
hardcode_into_libs=yes
17389
irix5* | irix6* | nonstopux*)
17391
nonstopux*) version_type=nonstopux ;;
17393
if test "$lt_cv_prog_gnu_ld" = yes; then
17401
soname_spec='${libname}${release}${shared_ext}$major'
17402
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17404
irix5* | nonstopux*)
17405
libsuff= shlibsuff=
17408
case $LD in # libtool.m4 will add one of these switches to LD
17409
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17410
libsuff= shlibsuff= libmagic=32-bit;;
17411
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17412
libsuff=32 shlibsuff=N32 libmagic=N32;;
17413
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17414
libsuff=64 shlibsuff=64 libmagic=64-bit;;
17415
*) libsuff= shlibsuff= libmagic=never-match;;
17419
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17420
shlibpath_overrides_runpath=no
17421
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17422
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17423
hardcode_into_libs=yes
17426
# No shared lib support for Linux oldld, aout, or coff.
17427
linux*oldld* | linux*aout* | linux*coff*)
17431
# This must be Linux ELF.
17432
linux* | k*bsd*-gnu)
17436
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17437
soname_spec='${libname}${release}${shared_ext}$major'
17438
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17439
shlibpath_var=LD_LIBRARY_PATH
17440
shlibpath_overrides_runpath=no
17441
# This implies no fast_install, which is unacceptable.
17442
# Some rework will be needed to allow for fast_install
17443
# before this can be enabled.
17444
hardcode_into_libs=yes
17446
# Append ld.so.conf contents to the search path
17447
if test -f /etc/ld.so.conf; then
17448
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' ' '`
17449
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17452
# We used to test for /lib/ld.so.1 and disable shared libraries on
17453
# powerpc, because MkLinux only supported shared libraries with the
17454
# GNU dynamic linker. Since this was broken with cross compilers,
17455
# most powerpc-linux boxes support dynamic linking these days and
17456
# people can always --disable-shared, the test was removed, and we
17457
# assume the GNU/Linux dynamic linker is in use.
17458
dynamic_linker='GNU/Linux ld.so'
17465
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17466
soname_spec='${libname}${release}${shared_ext}$major'
17467
shlibpath_var=LD_LIBRARY_PATH
17468
shlibpath_overrides_runpath=no
17469
hardcode_into_libs=yes
17470
dynamic_linker='NetBSD ld.elf_so'
17477
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17478
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17479
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17480
dynamic_linker='NetBSD (a.out) ld.so'
17482
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17483
soname_spec='${libname}${release}${shared_ext}$major'
17484
dynamic_linker='NetBSD ld.elf_so'
17486
shlibpath_var=LD_LIBRARY_PATH
17487
shlibpath_overrides_runpath=yes
17488
hardcode_into_libs=yes
17493
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17494
shlibpath_var=LD_LIBRARY_PATH
17495
shlibpath_overrides_runpath=yes
17502
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17503
soname_spec='${libname}${release}${shared_ext}$major'
17504
shlibpath_var=LD_LIBRARY_PATH
17505
shlibpath_overrides_runpath=yes
17510
sys_lib_dlsearch_path_spec="/usr/lib"
17512
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17514
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17515
*) need_version=no ;;
17517
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17518
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17519
shlibpath_var=LD_LIBRARY_PATH
17520
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17522
openbsd2.[89] | openbsd2.[89].*)
17523
shlibpath_overrides_runpath=no
17526
shlibpath_overrides_runpath=yes
17530
shlibpath_overrides_runpath=yes
17535
libname_spec='$name'
17538
library_names_spec='$libname${shared_ext} $libname.a'
17539
dynamic_linker='OS/2 ld.exe'
17540
shlibpath_var=LIBPATH
17543
osf3* | osf4* | osf5*)
17547
soname_spec='${libname}${release}${shared_ext}$major'
17548
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17549
shlibpath_var=LD_LIBRARY_PATH
17550
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17551
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17562
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17563
soname_spec='${libname}${release}${shared_ext}$major'
17564
shlibpath_var=LD_LIBRARY_PATH
17565
shlibpath_overrides_runpath=yes
17566
hardcode_into_libs=yes
17567
# ldd complains unless libraries are executable
17568
postinstall_cmds='chmod +x $lib'
17573
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17574
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17575
shlibpath_var=LD_LIBRARY_PATH
17576
shlibpath_overrides_runpath=yes
17577
if test "$with_gnu_ld" = yes; then
17585
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17586
soname_spec='${libname}${release}${shared_ext}$major'
17587
shlibpath_var=LD_LIBRARY_PATH
17588
case $host_vendor in
17590
shlibpath_overrides_runpath=no
17592
export_dynamic_flag_spec='${wl}-Blargedynsym'
17593
runpath_var=LD_RUN_PATH
17601
shlibpath_overrides_runpath=no
17602
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17608
if test -d /usr/nec ;then
17610
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17611
soname_spec='$libname${shared_ext}.$major'
17612
shlibpath_var=LD_LIBRARY_PATH
17616
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17617
version_type=freebsd-elf
17620
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17621
soname_spec='${libname}${release}${shared_ext}$major'
17622
shlibpath_var=LD_LIBRARY_PATH
17623
hardcode_into_libs=yes
17624
if test "$with_gnu_ld" = yes; then
17625
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17626
shlibpath_overrides_runpath=no
17628
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17629
shlibpath_overrides_runpath=yes
17632
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17636
sys_lib_dlsearch_path_spec='/usr/lib'
17641
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17642
soname_spec='${libname}${release}${shared_ext}$major'
17643
shlibpath_var=LD_LIBRARY_PATH
17650
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17651
$as_echo "$dynamic_linker" >&6; }
17652
test "$dynamic_linker" = no && can_build_shared=no
17654
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17655
$as_echo_n "(cached) " >&6
17657
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
17660
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17661
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17662
$as_echo_n "(cached) " >&6
17664
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
17667
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17669
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17670
if test "$GCC" = yes; then
17671
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17674
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17675
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17676
hardcode_action_F77=
17677
if test -n "$hardcode_libdir_flag_spec_F77" || \
17678
test -n "$runpath_var_F77" || \
17679
test "X$hardcode_automatic_F77" = "Xyes" ; then
17681
# We can hardcode non-existant directories.
17682
if test "$hardcode_direct_F77" != no &&
17683
# If the only mechanism to avoid hardcoding is shlibpath_var, we
17684
# have to relink, otherwise we might link with an installed library
17685
# when we should be linking with a yet-to-be-installed one
17686
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17687
test "$hardcode_minus_L_F77" != no; then
17688
# Linking always hardcodes the temporary library directory.
17689
hardcode_action_F77=relink
17691
# We can link without hardcoding, and we can hardcode nonexisting dirs.
17692
hardcode_action_F77=immediate
17695
# We cannot hardcode anything, or else we can only hardcode existing
17697
hardcode_action_F77=unsupported
17699
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17700
$as_echo "$hardcode_action_F77" >&6; }
17702
if test "$hardcode_action_F77" = relink; then
17703
# Fast installation is not supported
17704
enable_fast_install=no
17705
elif test "$shlibpath_overrides_runpath" = yes ||
17706
test "$enable_shared" = no; then
17707
# Fast installation is not necessary
17708
enable_fast_install=needless
17712
# The else clause should only fire when bootstrapping the
17713
# libtool distribution, otherwise you forgot to ship ltmain.sh
17714
# with your package, and you will get complaints that there are
17715
# no rules to generate ltmain.sh.
17716
if test -f "$ltmain"; then
17717
# See if we are running on zsh, and set the options which allow our commands through
17718
# without removal of \ escapes.
17719
if test -n "${ZSH_VERSION+set}" ; then
17720
setopt NO_GLOB_SUBST
17722
# Now quote all the things that may contain metacharacters while being
17723
# careful not to overquote the AC_SUBSTed values. We take copies of the
17724
# variables and quote the copies for generation of the libtool script.
17725
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17727
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17728
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17729
deplibs_check_method reload_flag reload_cmds need_locks \
17730
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17731
lt_cv_sys_global_symbol_to_c_name_address \
17732
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17733
old_postinstall_cmds old_postuninstall_cmds \
17737
lt_prog_compiler_wl_F77 \
17738
lt_prog_compiler_pic_F77 \
17739
lt_prog_compiler_static_F77 \
17740
lt_prog_compiler_no_builtin_flag_F77 \
17741
export_dynamic_flag_spec_F77 \
17742
thread_safe_flag_spec_F77 \
17743
whole_archive_flag_spec_F77 \
17744
enable_shared_with_static_runtimes_F77 \
17745
old_archive_cmds_F77 \
17746
old_archive_from_new_cmds_F77 \
17747
predep_objects_F77 \
17748
postdep_objects_F77 \
17751
compiler_lib_search_path_F77 \
17752
compiler_lib_search_dirs_F77 \
17754
archive_expsym_cmds_F77 \
17755
postinstall_cmds_F77 \
17756
postuninstall_cmds_F77 \
17757
old_archive_from_expsyms_cmds_F77 \
17758
allow_undefined_flag_F77 \
17759
no_undefined_flag_F77 \
17760
export_symbols_cmds_F77 \
17761
hardcode_libdir_flag_spec_F77 \
17762
hardcode_libdir_flag_spec_ld_F77 \
17763
hardcode_libdir_separator_F77 \
17764
hardcode_automatic_F77 \
17766
module_expsym_cmds_F77 \
17767
lt_cv_prog_compiler_c_o_F77 \
17768
fix_srcfile_path_F77 \
17769
exclude_expsyms_F77 \
17770
include_expsyms_F77; do
17773
old_archive_cmds_F77 | \
17774
old_archive_from_new_cmds_F77 | \
17775
archive_cmds_F77 | \
17776
archive_expsym_cmds_F77 | \
17777
module_cmds_F77 | \
17778
module_expsym_cmds_F77 | \
17779
old_archive_from_expsyms_cmds_F77 | \
17780
export_symbols_cmds_F77 | \
17781
extract_expsyms_cmds | reload_cmds | finish_cmds | \
17782
postinstall_cmds | postuninstall_cmds | \
17783
old_postinstall_cmds | old_postuninstall_cmds | \
17784
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17785
# Double-quote double-evaled strings.
17786
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17789
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17795
*'\$0 --fallback-echo"')
17796
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17802
cat <<__EOF__ >> "$cfgfile"
17803
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17805
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17807
# Shell to use when invoking shell scripts.
17810
# Whether or not to build shared libraries.
17811
build_libtool_libs=$enable_shared
17813
# Whether or not to build static libraries.
17814
build_old_libs=$enable_static
17816
# Whether or not to add -lc for building shared libraries.
17817
build_libtool_need_lc=$archive_cmds_need_lc_F77
17819
# Whether or not to disallow shared libs when runtime libs are static
17820
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17822
# Whether or not to optimize for fast installation.
17823
fast_install=$enable_fast_install
17826
host_alias=$host_alias
17830
# The build system.
17831
build_alias=$build_alias
17835
# An echo program that does not interpret backslashes.
17840
AR_FLAGS=$lt_AR_FLAGS
17845
# LTCC compiler flags.
17846
LTCFLAGS=$lt_LTCFLAGS
17848
# A language-specific compiler.
17849
CC=$lt_compiler_F77
17851
# Is the compiler the GNU C compiler?
17857
# The linker used to build libraries.
17860
# Whether we need hard or soft links.
17863
# A BSD-compatible nm program.
17866
# A symbol stripping program
17869
# Used to examine libraries when file_magic_cmd begins "file"
17870
MAGIC_CMD=$MAGIC_CMD
17872
# Used on cygwin: DLL creation program.
17875
# Used on cygwin: object dumper.
17878
# Used on cygwin: assembler.
17881
# The name of the directory that contains temporary libtool files.
17884
# How to create reloadable object files.
17885
reload_flag=$lt_reload_flag
17886
reload_cmds=$lt_reload_cmds
17888
# How to pass a linker flag through the compiler.
17889
wl=$lt_lt_prog_compiler_wl_F77
17891
# Object file suffix (normally "o").
17892
objext="$ac_objext"
17894
# Old archive suffix (normally "a").
17897
# Shared library suffix (normally ".so").
17898
shrext_cmds='$shrext_cmds'
17900
# Executable file suffix (normally "").
17903
# Additional compiler flags for building library objects.
17904
pic_flag=$lt_lt_prog_compiler_pic_F77
17907
# What is the maximum length of a command?
17908
max_cmd_len=$lt_cv_sys_max_cmd_len
17910
# Does compiler simultaneously support -c and -o options?
17911
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17913
# Must we lock files when doing compilation?
17914
need_locks=$lt_need_locks
17916
# Do we need the lib prefix for modules?
17917
need_lib_prefix=$need_lib_prefix
17919
# Do we need a version for libraries?
17920
need_version=$need_version
17922
# Whether dlopen is supported.
17923
dlopen_support=$enable_dlopen
17925
# Whether dlopen of programs is supported.
17926
dlopen_self=$enable_dlopen_self
17928
# Whether dlopen of statically linked programs is supported.
17929
dlopen_self_static=$enable_dlopen_self_static
17931
# Compiler flag to prevent dynamic linking.
17932
link_static_flag=$lt_lt_prog_compiler_static_F77
17934
# Compiler flag to turn off builtin functions.
17935
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17937
# Compiler flag to allow reflexive dlopens.
17938
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17940
# Compiler flag to generate shared objects directly from archives.
17941
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17943
# Compiler flag to generate thread-safe objects.
17944
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17946
# Library versioning type.
17947
version_type=$version_type
17949
# Format of library name prefix.
17950
libname_spec=$lt_libname_spec
17952
# List of archive names. First name is the real one, the rest are links.
17953
# The last name is the one that the linker finds with -lNAME.
17954
library_names_spec=$lt_library_names_spec
17956
# The coded name of the library, if different from the real name.
17957
soname_spec=$lt_soname_spec
17959
# Commands used to build and install an old-style archive.
17961
old_archive_cmds=$lt_old_archive_cmds_F77
17962
old_postinstall_cmds=$lt_old_postinstall_cmds
17963
old_postuninstall_cmds=$lt_old_postuninstall_cmds
17965
# Create an old-style archive from a shared archive.
17966
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17968
# Create a temporary old-style archive to link instead of a shared archive.
17969
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17971
# Commands used to build and install a shared archive.
17972
archive_cmds=$lt_archive_cmds_F77
17973
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17974
postinstall_cmds=$lt_postinstall_cmds
17975
postuninstall_cmds=$lt_postuninstall_cmds
17977
# Commands used to build a loadable module (assumed same as above if empty)
17978
module_cmds=$lt_module_cmds_F77
17979
module_expsym_cmds=$lt_module_expsym_cmds_F77
17981
# Commands to strip libraries.
17982
old_striplib=$lt_old_striplib
17983
striplib=$lt_striplib
17985
# Dependencies to place before the objects being linked to create a
17987
predep_objects=$lt_predep_objects_F77
17989
# Dependencies to place after the objects being linked to create a
17991
postdep_objects=$lt_postdep_objects_F77
17993
# Dependencies to place before the objects being linked to create a
17995
predeps=$lt_predeps_F77
17997
# Dependencies to place after the objects being linked to create a
17999
postdeps=$lt_postdeps_F77
18001
# The directories searched by this compiler when creating a shared
18003
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
18005
# The library search path used internally by the compiler when linking
18006
# a shared library.
18007
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
18009
# Method to check whether dependent libraries are shared objects.
18010
deplibs_check_method=$lt_deplibs_check_method
18012
# Command to use when deplibs_check_method == file_magic.
18013
file_magic_cmd=$lt_file_magic_cmd
18015
# Flag that allows shared libraries with undefined symbols to be built.
18016
allow_undefined_flag=$lt_allow_undefined_flag_F77
18018
# Flag that forces no undefined symbols.
18019
no_undefined_flag=$lt_no_undefined_flag_F77
18021
# Commands used to finish a libtool library installation in a directory.
18022
finish_cmds=$lt_finish_cmds
18024
# Same as above, but a single script fragment to be evaled but not shown.
18025
finish_eval=$lt_finish_eval
18027
# Take the output of nm and produce a listing of raw symbols and C names.
18028
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18030
# Transform the output of nm in a proper C declaration
18031
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18033
# Transform the output of nm in a C name address pair
18034
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18036
# This is the shared library runtime path variable.
18037
runpath_var=$runpath_var
18039
# This is the shared library path variable.
18040
shlibpath_var=$shlibpath_var
18042
# Is shlibpath searched before the hard-coded library search path?
18043
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18045
# How to hardcode a shared library path into an executable.
18046
hardcode_action=$hardcode_action_F77
18048
# Whether we should hardcode library paths into libraries.
18049
hardcode_into_libs=$hardcode_into_libs
18051
# Flag to hardcode \$libdir into a binary during linking.
18052
# This must work even if \$libdir does not exist.
18053
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
18055
# If ld is used when linking, flag to hardcode \$libdir into
18056
# a binary during linking. This must work even if \$libdir does
18058
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
18060
# Whether we need a single -rpath flag with a separated argument.
18061
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
18063
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18064
# resulting binary.
18065
hardcode_direct=$hardcode_direct_F77
18067
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18068
# resulting binary.
18069
hardcode_minus_L=$hardcode_minus_L_F77
18071
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18072
# the resulting binary.
18073
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
18075
# Set to yes if building a shared library automatically hardcodes DIR into the library
18076
# and all subsequent libraries and executables linked against it.
18077
hardcode_automatic=$hardcode_automatic_F77
18079
# Variables whose values should be saved in libtool wrapper scripts and
18080
# restored at relink time.
18081
variables_saved_for_relink="$variables_saved_for_relink"
18083
# Whether libtool must link a program against all its dependency libraries.
18084
link_all_deplibs=$link_all_deplibs_F77
18086
# Compile-time system search path for libraries
18087
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18089
# Run-time system search path for libraries
18090
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18092
# Fix the shell variable \$srcfile for the compiler.
18093
fix_srcfile_path=$lt_fix_srcfile_path
18095
# Set to yes if exported symbols are required.
18096
always_export_symbols=$always_export_symbols_F77
18098
# The commands to list exported symbols.
18099
export_symbols_cmds=$lt_export_symbols_cmds_F77
18101
# The commands to extract the exported symbol list from a shared archive.
18102
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18104
# Symbols that should not be listed in the preloaded symbols.
18105
exclude_expsyms=$lt_exclude_expsyms_F77
18107
# Symbols that must always be exported.
18108
include_expsyms=$lt_include_expsyms_F77
18110
# ### END LIBTOOL TAG CONFIG: $tagname
18116
# If there is no Makefile yet, we rely on a make rule to execute
18117
# `config.status --recheck' to rerun these tests and create the
18118
# libtool script then.
18119
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18120
if test -f "$ltmain_in"; then
18121
test -f Makefile && make "$ltmain"
18127
ac_cpp='$CPP $CPPFLAGS'
18128
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18129
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18130
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18140
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
18143
# Source file extension for Java test sources.
18146
# Object file extension for compiled Java test sources.
18150
# Code to be used in simple compile tests
18151
lt_simple_compile_test_code="class foo {}"
18153
# Code to be used in simple link tests
18154
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
18156
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18158
# If no C compiler was specified, use CC.
18161
# If no C compiler flags were specified, use CFLAGS.
18162
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18164
# Allow CC to be a program name with arguments.
18168
# save warnings/boilerplate of simple test code
18169
ac_outfile=conftest.$ac_objext
18170
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18171
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18172
_lt_compiler_boilerplate=`cat conftest.err`
18175
ac_outfile=conftest.$ac_objext
18176
echo "$lt_simple_link_test_code" >conftest.$ac_ext
18177
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18178
_lt_linker_boilerplate=`cat conftest.err`
18182
# Allow CC to be a program name with arguments.
18187
for cc_temp in $compiler""; do
18189
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18190
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18195
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18198
# GCJ did not exist at the time GCC didn't implicitly link libc in.
18199
archive_cmds_need_lc_GCJ=no
18201
old_archive_cmds_GCJ=$old_archive_cmds
18204
lt_prog_compiler_no_builtin_flag_GCJ=
18206
if test "$GCC" = yes; then
18207
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
18210
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18211
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
18212
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
18213
$as_echo_n "(cached) " >&6
18215
lt_cv_prog_compiler_rtti_exceptions=no
18216
ac_outfile=conftest.$ac_objext
18217
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18218
lt_compiler_flag="-fno-rtti -fno-exceptions"
18219
# Insert the option either (1) after the last *FLAGS variable, or
18220
# (2) before a word containing "conftest.", or (3) at the end.
18221
# Note that $ac_compile itself does not contain backslashes and begins
18222
# with a dollar sign (not a hyphen), so the echo should work correctly.
18223
# The option is referenced via a variable to avoid confusing sed.
18224
lt_compile=`echo "$ac_compile" | $SED \
18225
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18226
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18227
-e 's:$: $lt_compiler_flag:'`
18228
(eval echo "\"\$as_me:18228: $lt_compile\"" >&5)
18229
(eval "$lt_compile" 2>conftest.err)
18231
cat conftest.err >&5
18232
echo "$as_me:18232: \$? = $ac_status" >&5
18233
if (exit $ac_status) && test -s "$ac_outfile"; then
18234
# The compiler can only warn and ignore the option if not recognized
18235
# So say no if there are warnings other than the usual output.
18236
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18237
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18238
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18239
lt_cv_prog_compiler_rtti_exceptions=yes
18245
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18246
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18248
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18249
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18256
lt_prog_compiler_wl_GCJ=
18257
lt_prog_compiler_pic_GCJ=
18258
lt_prog_compiler_static_GCJ=
18260
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18261
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18263
if test "$GCC" = yes; then
18264
lt_prog_compiler_wl_GCJ='-Wl,'
18265
lt_prog_compiler_static_GCJ='-static'
18269
# All AIX code is PIC.
18270
if test "$host_cpu" = ia64; then
18271
# AIX 5 now supports IA64 processor
18272
lt_prog_compiler_static_GCJ='-Bstatic'
18277
# FIXME: we need at least 68020 code to build shared libraries, but
18278
# adding the `-m68020' flag to GCC prevents building anything better,
18280
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18283
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18284
# PIC is the default for these OSes.
18287
mingw* | cygwin* | pw32* | os2*)
18288
# This hack is so that the source file can tell whether it is being
18289
# built for inclusion in a dll (and should export symbols for example).
18290
# Although the cygwin gcc ignores -fPIC, still need this for old-style
18291
# (--disable-auto-import) libraries
18295
darwin* | rhapsody*)
18296
# PIC is the default on this platform
18297
# Common symbols not allowed in MH_DYLIB files
18298
lt_prog_compiler_pic_GCJ='-fno-common'
18302
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
18303
# Instead, we relocate shared libraries at runtime.
18307
# Just because we use GCC doesn't mean we suddenly get shared libraries
18308
# on systems that don't support them.
18309
lt_prog_compiler_can_build_shared_GCJ=no
18314
if test -d /usr/nec; then
18315
lt_prog_compiler_pic_GCJ=-Kconform_pic
18320
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18321
# not for PA HP-UX.
18327
lt_prog_compiler_pic_GCJ='-fPIC'
18333
lt_prog_compiler_pic_GCJ='-fPIC'
18337
# PORTME Check for flag to pass linker flags through the system compiler.
18340
lt_prog_compiler_wl_GCJ='-Wl,'
18341
if test "$host_cpu" = ia64; then
18342
# AIX 5 now supports IA64 processor
18343
lt_prog_compiler_static_GCJ='-Bstatic'
18345
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18349
# PIC is the default on this platform
18350
# Common symbols not allowed in MH_DYLIB files
18351
case $cc_basename in
18353
lt_prog_compiler_pic_GCJ='-qnocommon'
18354
lt_prog_compiler_wl_GCJ='-Wl,'
18359
mingw* | cygwin* | pw32* | os2*)
18360
# This hack is so that the source file can tell whether it is being
18361
# built for inclusion in a dll (and should export symbols for example).
18365
hpux9* | hpux10* | hpux11*)
18366
lt_prog_compiler_wl_GCJ='-Wl,'
18367
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18368
# not for PA HP-UX.
18374
lt_prog_compiler_pic_GCJ='+Z'
18377
# Is there a better lt_prog_compiler_static that works with the bundled CC?
18378
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18381
irix5* | irix6* | nonstopux*)
18382
lt_prog_compiler_wl_GCJ='-Wl,'
18383
# PIC (with -KPIC) is the default.
18384
lt_prog_compiler_static_GCJ='-non_shared'
18388
lt_prog_compiler_pic_GCJ='-KPIC'
18389
lt_prog_compiler_static_GCJ='-Bstatic'
18392
linux* | k*bsd*-gnu)
18393
case $cc_basename in
18395
lt_prog_compiler_wl_GCJ='-Wl,'
18396
lt_prog_compiler_pic_GCJ='-KPIC'
18397
lt_prog_compiler_static_GCJ='-static'
18399
pgcc* | pgf77* | pgf90* | pgf95*)
18400
# Portland Group compilers (*not* the Pentium gcc compiler,
18401
# which looks to be a dead project)
18402
lt_prog_compiler_wl_GCJ='-Wl,'
18403
lt_prog_compiler_pic_GCJ='-fpic'
18404
lt_prog_compiler_static_GCJ='-Bstatic'
18407
lt_prog_compiler_wl_GCJ='-Wl,'
18408
# All Alpha code is PIC.
18409
lt_prog_compiler_static_GCJ='-non_shared'
18412
case `$CC -V 2>&1 | sed 5q` in
18415
lt_prog_compiler_pic_GCJ='-KPIC'
18416
lt_prog_compiler_static_GCJ='-Bstatic'
18417
lt_prog_compiler_wl_GCJ='-Wl,'
18420
# Sun Fortran 8.3 passes all unrecognized flags to the linker
18421
lt_prog_compiler_pic_GCJ='-KPIC'
18422
lt_prog_compiler_static_GCJ='-Bstatic'
18423
lt_prog_compiler_wl_GCJ=''
18430
osf3* | osf4* | osf5*)
18431
lt_prog_compiler_wl_GCJ='-Wl,'
18432
# All OSF/1 code is PIC.
18433
lt_prog_compiler_static_GCJ='-non_shared'
18437
lt_prog_compiler_static_GCJ='-non_shared'
18441
lt_prog_compiler_pic_GCJ='-KPIC'
18442
lt_prog_compiler_static_GCJ='-Bstatic'
18443
case $cc_basename in
18444
f77* | f90* | f95*)
18445
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18447
lt_prog_compiler_wl_GCJ='-Wl,';;
18452
lt_prog_compiler_wl_GCJ='-Qoption ld '
18453
lt_prog_compiler_pic_GCJ='-PIC'
18454
lt_prog_compiler_static_GCJ='-Bstatic'
18457
sysv4 | sysv4.2uw2* | sysv4.3*)
18458
lt_prog_compiler_wl_GCJ='-Wl,'
18459
lt_prog_compiler_pic_GCJ='-KPIC'
18460
lt_prog_compiler_static_GCJ='-Bstatic'
18464
if test -d /usr/nec ;then
18465
lt_prog_compiler_pic_GCJ='-Kconform_pic'
18466
lt_prog_compiler_static_GCJ='-Bstatic'
18470
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18471
lt_prog_compiler_wl_GCJ='-Wl,'
18472
lt_prog_compiler_pic_GCJ='-KPIC'
18473
lt_prog_compiler_static_GCJ='-Bstatic'
18477
lt_prog_compiler_wl_GCJ='-Wl,'
18478
lt_prog_compiler_can_build_shared_GCJ=no
18482
lt_prog_compiler_pic_GCJ='-pic'
18483
lt_prog_compiler_static_GCJ='-Bstatic'
18487
lt_prog_compiler_can_build_shared_GCJ=no
18492
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18493
$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
18496
# Check to make sure the PIC flag actually works.
18498
if test -n "$lt_prog_compiler_pic_GCJ"; then
18500
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18501
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
18502
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
18503
$as_echo_n "(cached) " >&6
18505
lt_cv_prog_compiler_pic_works_GCJ=no
18506
ac_outfile=conftest.$ac_objext
18507
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18508
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18509
# Insert the option either (1) after the last *FLAGS variable, or
18510
# (2) before a word containing "conftest.", or (3) at the end.
18511
# Note that $ac_compile itself does not contain backslashes and begins
18512
# with a dollar sign (not a hyphen), so the echo should work correctly.
18513
# The option is referenced via a variable to avoid confusing sed.
18514
lt_compile=`echo "$ac_compile" | $SED \
18515
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18516
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18517
-e 's:$: $lt_compiler_flag:'`
18518
(eval echo "\"\$as_me:18518: $lt_compile\"" >&5)
18519
(eval "$lt_compile" 2>conftest.err)
18521
cat conftest.err >&5
18522
echo "$as_me:18522: \$? = $ac_status" >&5
18523
if (exit $ac_status) && test -s "$ac_outfile"; then
18524
# The compiler can only warn and ignore the option if not recognized
18525
# So say no if there are warnings other than the usual output.
18526
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18527
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18528
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18529
lt_cv_prog_compiler_pic_works_GCJ=yes
18535
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
18536
$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
18538
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
18539
case $lt_prog_compiler_pic_GCJ in
18541
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18544
lt_prog_compiler_pic_GCJ=
18545
lt_prog_compiler_can_build_shared_GCJ=no
18550
# For platforms which do not support PIC, -DPIC is meaningless:
18552
lt_prog_compiler_pic_GCJ=
18555
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18560
# Check to make sure the static flag actually works.
18562
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18563
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18564
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18565
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
18566
$as_echo_n "(cached) " >&6
18568
lt_cv_prog_compiler_static_works_GCJ=no
18569
save_LDFLAGS="$LDFLAGS"
18570
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18571
echo "$lt_simple_link_test_code" > conftest.$ac_ext
18572
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18573
# The linker can only warn and ignore the option if not recognized
18574
# So say no if there are warnings
18575
if test -s conftest.err; then
18576
# Append any errors to the config.log.
18577
cat conftest.err 1>&5
18578
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18579
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18580
if diff conftest.exp conftest.er2 >/dev/null; then
18581
lt_cv_prog_compiler_static_works_GCJ=yes
18584
lt_cv_prog_compiler_static_works_GCJ=yes
18588
LDFLAGS="$save_LDFLAGS"
18591
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
18592
$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
18594
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
18597
lt_prog_compiler_static_GCJ=
18601
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18602
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18603
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18604
$as_echo_n "(cached) " >&6
18606
lt_cv_prog_compiler_c_o_GCJ=no
18607
$rm -r conftest 2>/dev/null
18611
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18613
lt_compiler_flag="-o out/conftest2.$ac_objext"
18614
# Insert the option either (1) after the last *FLAGS variable, or
18615
# (2) before a word containing "conftest.", or (3) at the end.
18616
# Note that $ac_compile itself does not contain backslashes and begins
18617
# with a dollar sign (not a hyphen), so the echo should work correctly.
18618
lt_compile=`echo "$ac_compile" | $SED \
18619
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18620
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18621
-e 's:$: $lt_compiler_flag:'`
18622
(eval echo "\"\$as_me:18622: $lt_compile\"" >&5)
18623
(eval "$lt_compile" 2>out/conftest.err)
18625
cat out/conftest.err >&5
18626
echo "$as_me:18626: \$? = $ac_status" >&5
18627
if (exit $ac_status) && test -s out/conftest2.$ac_objext
18629
# The compiler can only warn and ignore the option if not recognized
18630
# So say no if there are warnings
18631
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18632
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18633
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18634
lt_cv_prog_compiler_c_o_GCJ=yes
18639
# SGI C++ compiler will create directory out/ii_files/ for
18640
# template instantiation
18641
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18642
$rm out/* && rmdir out
18648
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18649
$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18652
hard_links="nottested"
18653
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18654
# do not overwrite the value of need_locks provided by the user
18655
{ $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18656
$as_echo_n "checking if we can lock with hard links... " >&6; }
18659
ln conftest.a conftest.b 2>/dev/null && hard_links=no
18661
ln conftest.a conftest.b 2>&5 || hard_links=no
18662
ln conftest.a conftest.b 2>/dev/null && hard_links=no
18663
{ $as_echo "$as_me:$LINENO: result: $hard_links" >&5
18664
$as_echo "$hard_links" >&6; }
18665
if test "$hard_links" = no; then
18666
{ $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18667
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18674
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18675
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18678
allow_undefined_flag_GCJ=
18679
enable_shared_with_static_runtimes_GCJ=no
18681
archive_expsym_cmds_GCJ=
18682
old_archive_From_new_cmds_GCJ=
18683
old_archive_from_expsyms_cmds_GCJ=
18684
export_dynamic_flag_spec_GCJ=
18685
whole_archive_flag_spec_GCJ=
18686
thread_safe_flag_spec_GCJ=
18687
hardcode_libdir_flag_spec_GCJ=
18688
hardcode_libdir_flag_spec_ld_GCJ=
18689
hardcode_libdir_separator_GCJ=
18690
hardcode_direct_GCJ=no
18691
hardcode_minus_L_GCJ=no
18692
hardcode_shlibpath_var_GCJ=unsupported
18693
link_all_deplibs_GCJ=unknown
18694
hardcode_automatic_GCJ=no
18696
module_expsym_cmds_GCJ=
18697
always_export_symbols_GCJ=no
18698
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18699
# include_expsyms should be a list of space-separated symbols to be *always*
18700
# included in the symbol list
18701
include_expsyms_GCJ=
18702
# exclude_expsyms can be an extended regexp of symbols to exclude
18703
# it will be wrapped by ` (' and `)$', so one must not match beginning or
18704
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18705
# as well as any symbol that contains `d'.
18706
exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18707
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18708
# platforms (ab)use it in PIC code, but their linkers get confused if
18709
# the symbol is explicitly referenced. Since portable code cannot
18710
# rely on this symbol name, it's probably fine to never include it in
18711
# preloaded symbol tables.
18712
# Exclude shared library initialization/finalization symbols.
18713
extract_expsyms_cmds=
18714
# Just being paranoid about ensuring that cc_basename is set.
18715
for cc_temp in $compiler""; do
18717
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18718
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18723
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18726
cygwin* | mingw* | pw32*)
18727
# FIXME: the MSVC++ port hasn't been tested in a loooong time
18728
# When not using gcc, we currently assume that we are using
18729
# Microsoft Visual C++.
18730
if test "$GCC" != yes; then
18735
# we just hope/assume this is gcc and not c89 (= MSVC++)
18744
if test "$with_gnu_ld" = yes; then
18745
# If archive_cmds runs LD, not CC, wlarc should be empty
18748
# Set some defaults for GNU ld with shared library support. These
18749
# are reset later if shared libraries are not supported. Putting them
18750
# here allows them to be overridden if necessary.
18751
runpath_var=LD_RUN_PATH
18752
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18753
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18754
# ancient GNU ld didn't support --whole-archive et. al.
18755
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18756
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18758
whole_archive_flag_spec_GCJ=
18760
supports_anon_versioning=no
18761
case `$LD -v 2>/dev/null` in
18762
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18763
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18764
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18765
*\ 2.11.*) ;; # other 2.11 versions
18766
*) supports_anon_versioning=yes ;;
18769
# See if GNU ld supports shared libraries.
18772
# On AIX/PPC, the GNU linker is very broken
18773
if test "$host_cpu" != ia64; then
18777
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
18778
*** to be unable to reliably create shared libraries on AIX.
18779
*** Therefore, libtool is disabling shared libraries support. If you
18780
*** really care for shared libraries, you may want to modify your PATH
18781
*** so that a non-GNU linker is found, and then restart.
18788
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)'
18789
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18790
hardcode_minus_L_GCJ=yes
18792
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18793
# that the semantics of dynamic libraries on AmigaOS, at least up
18794
# to version 4, is to share data among multiple programs linked
18795
# with the same dynamic library. Since this doesn't match the
18796
# behavior of shared libraries on other platforms, we can't use
18802
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18803
allow_undefined_flag_GCJ=unsupported
18804
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18805
# support --undefined. This deserves some investigation. FIXME
18806
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18812
cygwin* | mingw* | pw32*)
18813
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18814
# as there is no search path for DLLs.
18815
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18816
allow_undefined_flag_GCJ=unsupported
18817
always_export_symbols_GCJ=no
18818
enable_shared_with_static_runtimes_GCJ=yes
18819
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18821
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18822
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18823
# If the export-symbols file already is a .def file (1st line
18824
# is EXPORTS), use it as is; otherwise, prepend...
18825
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18826
cp $export_symbols $output_objdir/$soname.def;
18828
echo EXPORTS > $output_objdir/$soname.def;
18829
cat $export_symbols >> $output_objdir/$soname.def;
18831
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18838
hardcode_direct_GCJ=no
18839
hardcode_shlibpath_var_GCJ=no
18840
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18841
export_dynamic_flag_spec_GCJ='${wl}-E'
18842
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18843
# Instead, shared libraries are loaded at an image base (0x10000000 by
18844
# default) and relocated if they conflict, which is a slow very memory
18845
# consuming and fragmenting process. To avoid this, we pick a random,
18846
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18847
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
18848
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'
18849
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'
18852
gnu* | linux* | k*bsd*-gnu)
18853
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18855
case $cc_basename,$host_cpu in
18856
pgcc*) # Portland Group C compiler
18857
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'
18858
tmp_addflag=' $pic_flag'
18860
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18861
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'
18862
tmp_addflag=' $pic_flag -Mnomain' ;;
18863
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18864
tmp_addflag=' -i_dynamic' ;;
18865
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18866
tmp_addflag=' -i_dynamic -nofor_main' ;;
18867
ifc* | ifort*) # Intel Fortran compiler
18868
tmp_addflag=' -nofor_main' ;;
18870
case `$CC -V 2>&1 | sed 5q` in
18871
*Sun\ C*) # Sun C 5.9
18872
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'
18873
tmp_sharedflag='-G' ;;
18874
*Sun\ F*) # Sun Fortran 8.3
18875
tmp_sharedflag='-G' ;;
18877
tmp_sharedflag='-shared' ;;
18879
archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18881
if test $supports_anon_versioning = yes; then
18882
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18883
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18884
$echo "local: *; };" >> $output_objdir/$libname.ver~
18885
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18887
link_all_deplibs_GCJ=no
18893
netbsd* | netbsdelf*-gnu)
18894
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18895
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18898
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18899
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18904
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18908
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
18909
*** create shared libraries on Solaris systems. Therefore, libtool
18910
*** is disabling shared libraries support. We urge you to upgrade GNU
18911
*** binutils to release 2.9.1 or newer. Another option is to modify
18912
*** your PATH or compiler configuration so that the native linker is
18913
*** used, and then restart.
18916
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18917
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18918
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18924
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18925
case `$LD -v 2>&1` in
18926
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18930
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18931
*** reliably create shared libraries on SCO systems. Therefore, libtool
18932
*** is disabling shared libraries support. We urge you to upgrade GNU
18933
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18934
*** your PATH or compiler configuration so that the native linker is
18935
*** used, and then restart.
18940
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18941
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18942
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18943
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18952
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18954
hardcode_direct_GCJ=yes
18955
hardcode_shlibpath_var_GCJ=no
18959
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18960
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18961
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18968
if test "$ld_shlibs_GCJ" = no; then
18970
hardcode_libdir_flag_spec_GCJ=
18971
export_dynamic_flag_spec_GCJ=
18972
whole_archive_flag_spec_GCJ=
18975
# PORTME fill in a description of your system's linker (not GNU ld)
18978
allow_undefined_flag_GCJ=unsupported
18979
always_export_symbols_GCJ=yes
18980
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'
18981
# Note: this linker hardcodes the directories in LIBPATH if there
18982
# are no directories specified by -L.
18983
hardcode_minus_L_GCJ=yes
18984
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18985
# Neither direct hardcoding nor static linking is supported with a
18987
hardcode_direct_GCJ=unsupported
18992
if test "$host_cpu" = ia64; then
18993
# On IA64, the linker does run time linking by default, so we don't
18994
# have to do anything special.
18995
aix_use_runtimelinking=no
18996
exp_sym_flag='-Bexport'
18999
# If we're using GNU nm, then we don't want the "-C" option.
19000
# -C means demangle to AIX nm, but means don't demangle with GNU nm
19001
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19002
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'
19004
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'
19006
aix_use_runtimelinking=no
19008
# Test if we are trying to use run time linking or normal
19009
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
19010
# need to do runtime linking.
19011
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19012
for ld_flag in $LDFLAGS; do
19013
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19014
aix_use_runtimelinking=yes
19021
exp_sym_flag='-bexport'
19022
no_entry_flag='-bnoentry'
19025
# When large executables or shared objects are built, AIX ld can
19026
# have problems creating the table of contents. If linking a library
19027
# or program results in "error TOC overflow" add -mminimal-toc to
19028
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19029
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19031
archive_cmds_GCJ=''
19032
hardcode_direct_GCJ=yes
19033
hardcode_libdir_separator_GCJ=':'
19034
link_all_deplibs_GCJ=yes
19036
if test "$GCC" = yes; then
19037
case $host_os in aix4.[012]|aix4.[012].*)
19038
# We only want to do this on AIX 4.2 and lower, the check
19039
# below for broken collect2 doesn't work under 4.3+
19040
collect2name=`${CC} -print-prog-name=collect2`
19041
if test -f "$collect2name" && \
19042
strings "$collect2name" | grep resolve_lib_name >/dev/null
19044
# We have reworked collect2
19047
# We have old collect2
19048
hardcode_direct_GCJ=unsupported
19049
# It fails to find uninstalled libraries when the uninstalled
19050
# path is not listed in the libpath. Setting hardcode_minus_L
19051
# to unsupported forces relinking
19052
hardcode_minus_L_GCJ=yes
19053
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19054
hardcode_libdir_separator_GCJ=
19058
shared_flag='-shared'
19059
if test "$aix_use_runtimelinking" = yes; then
19060
shared_flag="$shared_flag "'${wl}-G'
19064
if test "$host_cpu" = ia64; then
19065
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19066
# chokes on -Wl,-G. The following line is correct:
19069
if test "$aix_use_runtimelinking" = yes; then
19070
shared_flag='${wl}-G'
19072
shared_flag='${wl}-bM:SRE'
19077
# It seems that -bexpall does not export symbols beginning with
19078
# underscore (_), so it is better to generate a list of symbols to export.
19079
always_export_symbols_GCJ=yes
19080
if test "$aix_use_runtimelinking" = yes; then
19081
# Warning - without using the other runtime loading flags (-brtl),
19082
# -berok will link without error, but may produce a broken library.
19083
allow_undefined_flag_GCJ='-berok'
19084
# Determine the default libpath from the value encoded in an empty executable.
19085
cat >conftest.$ac_ext <<_ACEOF
19088
cat confdefs.h >>conftest.$ac_ext
19089
cat >>conftest.$ac_ext <<_ACEOF
19090
/* end confdefs.h. */
19100
rm -f conftest.$ac_objext conftest$ac_exeext
19101
if { (ac_try="$ac_link"
19102
case "(($ac_try" in
19103
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19104
*) ac_try_echo=$ac_try;;
19106
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19107
$as_echo "$ac_try_echo") >&5
19108
(eval "$ac_link") 2>conftest.er1
19110
grep -v '^ *+' conftest.er1 >conftest.err
19112
cat conftest.err >&5
19113
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19114
(exit $ac_status); } && {
19115
test -z "$ac_c_werror_flag" ||
19116
test ! -s conftest.err
19117
} && test -s conftest$ac_exeext && {
19118
test "$cross_compiling" = yes ||
19119
$as_test_x conftest$ac_exeext
19122
lt_aix_libpath_sed='
19123
/Import File Strings/,/^$/ {
19129
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19130
# Check for a 64-bit object if we didn't find anything.
19131
if test -z "$aix_libpath"; then
19132
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19135
$as_echo "$as_me: failed program was:" >&5
19136
sed 's/^/| /' conftest.$ac_ext >&5
19141
rm -rf conftest.dSYM
19142
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19143
conftest$ac_exeext conftest.$ac_ext
19144
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19146
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19147
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"
19149
if test "$host_cpu" = ia64; then
19150
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
19151
allow_undefined_flag_GCJ="-z nodefs"
19152
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"
19154
# Determine the default libpath from the value encoded in an empty executable.
19155
cat >conftest.$ac_ext <<_ACEOF
19158
cat confdefs.h >>conftest.$ac_ext
19159
cat >>conftest.$ac_ext <<_ACEOF
19160
/* end confdefs.h. */
19170
rm -f conftest.$ac_objext conftest$ac_exeext
19171
if { (ac_try="$ac_link"
19172
case "(($ac_try" in
19173
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19174
*) ac_try_echo=$ac_try;;
19176
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19177
$as_echo "$ac_try_echo") >&5
19178
(eval "$ac_link") 2>conftest.er1
19180
grep -v '^ *+' conftest.er1 >conftest.err
19182
cat conftest.err >&5
19183
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19184
(exit $ac_status); } && {
19185
test -z "$ac_c_werror_flag" ||
19186
test ! -s conftest.err
19187
} && test -s conftest$ac_exeext && {
19188
test "$cross_compiling" = yes ||
19189
$as_test_x conftest$ac_exeext
19192
lt_aix_libpath_sed='
19193
/Import File Strings/,/^$/ {
19199
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19200
# Check for a 64-bit object if we didn't find anything.
19201
if test -z "$aix_libpath"; then
19202
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19205
$as_echo "$as_me: failed program was:" >&5
19206
sed 's/^/| /' conftest.$ac_ext >&5
19211
rm -rf conftest.dSYM
19212
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19213
conftest$ac_exeext conftest.$ac_ext
19214
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19216
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19217
# Warning - without using the other run time loading flags,
19218
# -berok will link without error, but may produce a broken library.
19219
no_undefined_flag_GCJ=' ${wl}-bernotok'
19220
allow_undefined_flag_GCJ=' ${wl}-berok'
19221
# Exported symbols can be pulled into shared objects from archives
19222
whole_archive_flag_spec_GCJ='$convenience'
19223
archive_cmds_need_lc_GCJ=yes
19224
# This is similar to how AIX traditionally builds its shared libraries.
19225
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'
19231
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)'
19232
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19233
hardcode_minus_L_GCJ=yes
19234
# see comment about different semantics on the GNU ld section
19239
export_dynamic_flag_spec_GCJ=-rdynamic
19242
cygwin* | mingw* | pw32*)
19243
# When not using gcc, we currently assume that we are using
19244
# Microsoft Visual C++.
19245
# hardcode_libdir_flag_spec is actually meaningless, as there is
19246
# no search path for DLLs.
19247
hardcode_libdir_flag_spec_GCJ=' '
19248
allow_undefined_flag_GCJ=unsupported
19249
# Tell ltmain to make .lib files, not .a files.
19251
# Tell ltmain to make .dll files, not .so files.
19253
# FIXME: Setting linknames here is a bad hack.
19254
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19255
# The linker will automatically build a .lib file if we build a DLL.
19256
old_archive_From_new_cmds_GCJ='true'
19257
# FIXME: Should let the user specify the lib program.
19258
old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
19259
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
19260
enable_shared_with_static_runtimes_GCJ=yes
19263
darwin* | rhapsody*)
19265
rhapsody* | darwin1.[012])
19266
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
19269
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19270
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19272
case ${MACOSX_DEPLOYMENT_TARGET} in
19274
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19277
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19283
archive_cmds_need_lc_GCJ=no
19284
hardcode_direct_GCJ=no
19285
hardcode_automatic_GCJ=yes
19286
hardcode_shlibpath_var_GCJ=unsupported
19287
whole_archive_flag_spec_GCJ=''
19288
link_all_deplibs_GCJ=yes
19289
if test "$GCC" = yes ; then
19290
output_verbose_link_cmd='echo'
19291
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}"
19292
module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19293
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}"
19294
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}"
19296
case $cc_basename in
19298
output_verbose_link_cmd='echo'
19299
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
19300
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19301
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19302
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}'
19303
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}'
19313
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19314
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19315
hardcode_shlibpath_var_GCJ=no
19322
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19323
# support. Future versions do this automatically, but an explicit c++rt0.o
19324
# does not break anything, and helps significantly (at the cost of a little
19327
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19328
hardcode_libdir_flag_spec_GCJ='-R$libdir'
19329
hardcode_direct_GCJ=yes
19330
hardcode_shlibpath_var_GCJ=no
19333
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
19335
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19336
hardcode_direct_GCJ=yes
19337
hardcode_minus_L_GCJ=yes
19338
hardcode_shlibpath_var_GCJ=no
19341
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19342
freebsd* | dragonfly*)
19343
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19344
hardcode_libdir_flag_spec_GCJ='-R$libdir'
19345
hardcode_direct_GCJ=yes
19346
hardcode_shlibpath_var_GCJ=no
19350
if test "$GCC" = yes; then
19351
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'
19353
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'
19355
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19356
hardcode_libdir_separator_GCJ=:
19357
hardcode_direct_GCJ=yes
19359
# hardcode_minus_L: Not really in the search PATH,
19360
# but as the default location of the library.
19361
hardcode_minus_L_GCJ=yes
19362
export_dynamic_flag_spec_GCJ='${wl}-E'
19366
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19367
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19369
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19371
if test "$with_gnu_ld" = no; then
19372
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19373
hardcode_libdir_separator_GCJ=:
19375
hardcode_direct_GCJ=yes
19376
export_dynamic_flag_spec_GCJ='${wl}-E'
19378
# hardcode_minus_L: Not really in the search PATH,
19379
# but as the default location of the library.
19380
hardcode_minus_L_GCJ=yes
19385
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19388
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19391
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19394
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19400
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19403
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19406
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19410
if test "$with_gnu_ld" = no; then
19411
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19412
hardcode_libdir_separator_GCJ=:
19416
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19417
hardcode_direct_GCJ=no
19418
hardcode_shlibpath_var_GCJ=no
19421
hardcode_direct_GCJ=yes
19422
export_dynamic_flag_spec_GCJ='${wl}-E'
19424
# hardcode_minus_L: Not really in the search PATH,
19425
# but as the default location of the library.
19426
hardcode_minus_L_GCJ=yes
19432
irix5* | irix6* | nonstopux*)
19433
if test "$GCC" = yes; then
19434
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'
19436
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'
19437
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19439
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19440
hardcode_libdir_separator_GCJ=:
19441
link_all_deplibs_GCJ=yes
19444
netbsd* | netbsdelf*-gnu)
19445
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19446
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19448
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19450
hardcode_libdir_flag_spec_GCJ='-R$libdir'
19451
hardcode_direct_GCJ=yes
19452
hardcode_shlibpath_var_GCJ=no
19456
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19457
hardcode_direct_GCJ=yes
19458
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19459
hardcode_libdir_separator_GCJ=:
19460
hardcode_shlibpath_var_GCJ=no
19464
if test -f /usr/libexec/ld.so; then
19465
hardcode_direct_GCJ=yes
19466
hardcode_shlibpath_var_GCJ=no
19467
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19468
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19469
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19470
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19471
export_dynamic_flag_spec_GCJ='${wl}-E'
19474
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19475
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19476
hardcode_libdir_flag_spec_GCJ='-R$libdir'
19479
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19480
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19490
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19491
hardcode_minus_L_GCJ=yes
19492
allow_undefined_flag_GCJ=unsupported
19493
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'
19494
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19498
if test "$GCC" = yes; then
19499
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19500
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'
19502
allow_undefined_flag_GCJ=' -expect_unresolved \*'
19503
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'
19505
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19506
hardcode_libdir_separator_GCJ=:
19509
osf4* | osf5*) # as osf3* with the addition of -msym flag
19510
if test "$GCC" = yes; then
19511
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19512
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'
19513
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19515
allow_undefined_flag_GCJ=' -expect_unresolved \*'
19516
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'
19517
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~
19518
$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'
19520
# Both c and cxx compiler support -rpath directly
19521
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19523
hardcode_libdir_separator_GCJ=:
19527
no_undefined_flag_GCJ=' -z text'
19528
if test "$GCC" = yes; then
19530
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19531
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19532
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19535
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19536
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19537
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19539
hardcode_libdir_flag_spec_GCJ='-R$libdir'
19540
hardcode_shlibpath_var_GCJ=no
19542
solaris2.[0-5] | solaris2.[0-5].*) ;;
19544
# The compiler driver will combine and reorder linker options,
19545
# but understands `-z linker_flag'. GCC discards it without `$wl',
19546
# but is careful enough not to reorder.
19547
# Supported since Solaris 2.6 (maybe 2.5.1?)
19548
if test "$GCC" = yes; then
19549
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19551
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
19555
link_all_deplibs_GCJ=yes
19559
if test "x$host_vendor" = xsequent; then
19560
# Use $CC to link under sequent, because it throws in some extra .o
19561
# files that make .init and .fini sections work.
19562
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19564
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19566
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19567
hardcode_direct_GCJ=yes
19568
hardcode_minus_L_GCJ=yes
19569
hardcode_shlibpath_var_GCJ=no
19573
case $host_vendor in
19575
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19576
hardcode_direct_GCJ=yes # is this really true???
19579
## LD is ld it makes a PLAMLIB
19580
## CC just makes a GrossModule.
19581
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19582
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19583
hardcode_direct_GCJ=no
19586
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19587
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19590
runpath_var='LD_RUN_PATH'
19591
hardcode_shlibpath_var_GCJ=no
19595
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19596
hardcode_shlibpath_var_GCJ=no
19597
export_dynamic_flag_spec_GCJ='-Bexport'
19601
if test -d /usr/nec; then
19602
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19603
hardcode_shlibpath_var_GCJ=no
19604
runpath_var=LD_RUN_PATH
19605
hardcode_runpath_var=yes
19610
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19611
no_undefined_flag_GCJ='${wl}-z,text'
19612
archive_cmds_need_lc_GCJ=no
19613
hardcode_shlibpath_var_GCJ=no
19614
runpath_var='LD_RUN_PATH'
19616
if test "$GCC" = yes; then
19617
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19618
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19620
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19621
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19625
sysv5* | sco3.2v5* | sco5v6*)
19626
# Note: We can NOT use -z defs as we might desire, because we do not
19627
# link with -lc, and that would cause any symbols used from libc to
19628
# always be unresolved, which means just about no library would
19629
# ever link correctly. If we're not using GNU ld we use -z text
19630
# though, which does catch some bad symbols but isn't as heavy-handed
19632
no_undefined_flag_GCJ='${wl}-z,text'
19633
allow_undefined_flag_GCJ='${wl}-z,nodefs'
19634
archive_cmds_need_lc_GCJ=no
19635
hardcode_shlibpath_var_GCJ=no
19636
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19637
hardcode_libdir_separator_GCJ=':'
19638
link_all_deplibs_GCJ=yes
19639
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19640
runpath_var='LD_RUN_PATH'
19642
if test "$GCC" = yes; then
19643
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19644
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19646
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19647
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19652
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19653
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19654
hardcode_shlibpath_var_GCJ=no
19663
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19664
$as_echo "$ld_shlibs_GCJ" >&6; }
19665
test "$ld_shlibs_GCJ" = no && can_build_shared=no
19668
# Do we need to explicitly link libc?
19670
case "x$archive_cmds_need_lc_GCJ" in
19672
# Assume -lc should be added
19673
archive_cmds_need_lc_GCJ=yes
19675
if test "$enable_shared" = yes && test "$GCC" = yes; then
19676
case $archive_cmds_GCJ in
19678
# FIXME: we may have to deal with multi-command sequences.
19681
# Test whether the compiler implicitly links with -lc since on some
19682
# systems, -lgcc has to come before -lc. If gcc already passes -lc
19683
# to ld, don't add -lc before -lgcc.
19684
{ $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19685
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
19687
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19689
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19690
(eval $ac_compile) 2>&5
19692
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19693
(exit $ac_status); } 2>conftest.err; then
19696
libobjs=conftest.$ac_objext
19698
wl=$lt_prog_compiler_wl_GCJ
19699
pic_flag=$lt_prog_compiler_pic_GCJ
19705
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19706
allow_undefined_flag_GCJ=
19707
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19708
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19710
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19711
(exit $ac_status); }
19713
archive_cmds_need_lc_GCJ=no
19715
archive_cmds_need_lc_GCJ=yes
19717
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19719
cat conftest.err 1>&5
19722
{ $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19723
$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
19730
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19731
$as_echo_n "checking dynamic linker characteristics... " >&6; }
19732
library_names_spec=
19733
libname_spec='lib$name'
19737
postuninstall_cmds=
19741
shlibpath_overrides_runpath=unknown
19743
dynamic_linker="$host_os ld.so"
19744
sys_lib_dlsearch_path_spec="/lib /usr/lib"
19746
need_lib_prefix=unknown
19747
hardcode_into_libs=no
19749
# when you set need_version to no, make sure it does not cause -set_version
19750
# flags to be left without arguments
19751
need_version=unknown
19756
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19757
shlibpath_var=LIBPATH
19759
# AIX 3 has no versioning support, so we append a major version to the name.
19760
soname_spec='${libname}${release}${shared_ext}$major'
19767
hardcode_into_libs=yes
19768
if test "$host_cpu" = ia64; then
19769
# AIX 5 supports IA64
19770
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19771
shlibpath_var=LD_LIBRARY_PATH
19773
# With GCC up to 2.95.x, collect2 would create an import file
19774
# for dependence libraries. The import file would start with
19775
# the line `#! .'. This would cause the generated library to
19776
# depend on `.', always an invalid library. This was fixed in
19777
# development snapshots of GCC prior to 3.0.
19779
aix4 | aix4.[01] | aix4.[01].*)
19780
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19782
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19785
can_build_shared=no
19789
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19790
# soname into executable. Probably we can add versioning support to
19791
# collect2, so additional links can be useful in future.
19792
if test "$aix_use_runtimelinking" = yes; then
19793
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
19794
# instead of lib<name>.a to let people know that these are not
19795
# typical AIX shared libraries.
19796
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19798
# We preserve .a as extension for shared libraries through AIX4.2
19799
# and later when we are not doing run time linking.
19800
library_names_spec='${libname}${release}.a $libname.a'
19801
soname_spec='${libname}${release}${shared_ext}$major'
19803
shlibpath_var=LIBPATH
19808
library_names_spec='$libname.ixlibrary $libname.a'
19809
# Create ${libname}_ixlibrary.a entries in /sys/libs.
19810
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'
19814
library_names_spec='${libname}${shared_ext}'
19815
dynamic_linker="$host_os ld.so"
19816
shlibpath_var=LIBRARY_PATH
19822
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19823
soname_spec='${libname}${release}${shared_ext}$major'
19824
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19825
shlibpath_var=LD_LIBRARY_PATH
19826
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19827
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19828
# the default ld.so.conf also contains /usr/contrib/lib and
19829
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19830
# libtool to hard-code these into programs
19833
cygwin* | mingw* | pw32*)
19834
version_type=windows
19839
case $GCC,$host_os in
19840
yes,cygwin* | yes,mingw* | yes,pw32*)
19841
library_names_spec='$libname.dll.a'
19842
# DLL is installed to $(libdir)/../bin by postinstall_cmds
19843
postinstall_cmds='base_file=`basename \${file}`~
19844
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19845
dldir=$destdir/`dirname \$dlpath`~
19846
test -d \$dldir || mkdir -p \$dldir~
19847
$install_prog $dir/$dlname \$dldir/$dlname~
19848
chmod a+x \$dldir/$dlname'
19849
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19850
dlpath=$dir/\$dldll~
19852
shlibpath_overrides_runpath=yes
19856
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
19857
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19858
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19861
# MinGW DLLs use traditional 'lib' prefix
19862
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19863
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19864
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19865
# It is most probably a Windows format PATH printed by
19866
# mingw gcc, but we are running on Cygwin. Gcc prints its search
19867
# path with ; separators, and with drive letters. We can handle the
19868
# drive letters (cygwin fileutils understands them), so leave them,
19869
# especially as we might pass files found there to a mingw objdump,
19870
# which wouldn't understand a cygwinified path. Ahh.
19871
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19873
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19877
# pw32 DLLs use 'pw' prefix rather than 'lib'
19878
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19884
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19887
dynamic_linker='Win32 ld.exe'
19888
# FIXME: first we should search . and the directory the executable is in
19892
darwin* | rhapsody*)
19893
dynamic_linker="$host_os dyld"
19894
version_type=darwin
19897
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19898
soname_spec='${libname}${release}${major}$shared_ext'
19899
shlibpath_overrides_runpath=yes
19900
shlibpath_var=DYLD_LIBRARY_PATH
19901
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19903
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19910
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19911
soname_spec='${libname}${release}${shared_ext}$major'
19912
shlibpath_var=LD_LIBRARY_PATH
19919
freebsd* | dragonfly*)
19920
# DragonFly does not have aout. When/if they implement a new
19921
# versioning mechanism, adjust this.
19922
if test -x /usr/bin/objformat; then
19923
objformat=`/usr/bin/objformat`
19926
freebsd[123]*) objformat=aout ;;
19927
*) objformat=elf ;;
19930
version_type=freebsd-$objformat
19931
case $version_type in
19933
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19938
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19942
shlibpath_var=LD_LIBRARY_PATH
19945
shlibpath_overrides_runpath=yes
19947
freebsd3.[01]* | freebsdelf3.[01]*)
19948
shlibpath_overrides_runpath=yes
19949
hardcode_into_libs=yes
19951
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19952
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19953
shlibpath_overrides_runpath=no
19954
hardcode_into_libs=yes
19956
*) # from 4.6 on, and DragonFly
19957
shlibpath_overrides_runpath=yes
19958
hardcode_into_libs=yes
19967
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19968
soname_spec='${libname}${release}${shared_ext}$major'
19969
shlibpath_var=LD_LIBRARY_PATH
19970
hardcode_into_libs=yes
19973
hpux9* | hpux10* | hpux11*)
19974
# Give a soname corresponding to the major version so that dld.sl refuses to
19975
# link against other versions.
19982
hardcode_into_libs=yes
19983
dynamic_linker="$host_os dld.so"
19984
shlibpath_var=LD_LIBRARY_PATH
19985
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19986
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19987
soname_spec='${libname}${release}${shared_ext}$major'
19988
if test "X$HPUX_IA64_MODE" = X32; then
19989
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19991
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19993
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19997
hardcode_into_libs=yes
19998
dynamic_linker="$host_os dld.sl"
19999
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20000
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20001
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20002
soname_spec='${libname}${release}${shared_ext}$major'
20003
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20004
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20008
dynamic_linker="$host_os dld.sl"
20009
shlibpath_var=SHLIB_PATH
20010
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20011
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20012
soname_spec='${libname}${release}${shared_ext}$major'
20015
# HP-UX runs *really* slowly unless shared libraries are mode 555.
20016
postinstall_cmds='chmod 555 $lib'
20023
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20024
soname_spec='${libname}${release}${shared_ext}$major'
20025
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20026
shlibpath_var=LD_LIBRARY_PATH
20027
shlibpath_overrides_runpath=no
20028
hardcode_into_libs=yes
20031
irix5* | irix6* | nonstopux*)
20033
nonstopux*) version_type=nonstopux ;;
20035
if test "$lt_cv_prog_gnu_ld" = yes; then
20043
soname_spec='${libname}${release}${shared_ext}$major'
20044
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20046
irix5* | nonstopux*)
20047
libsuff= shlibsuff=
20050
case $LD in # libtool.m4 will add one of these switches to LD
20051
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20052
libsuff= shlibsuff= libmagic=32-bit;;
20053
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20054
libsuff=32 shlibsuff=N32 libmagic=N32;;
20055
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20056
libsuff=64 shlibsuff=64 libmagic=64-bit;;
20057
*) libsuff= shlibsuff= libmagic=never-match;;
20061
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20062
shlibpath_overrides_runpath=no
20063
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20064
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20065
hardcode_into_libs=yes
20068
# No shared lib support for Linux oldld, aout, or coff.
20069
linux*oldld* | linux*aout* | linux*coff*)
20073
# This must be Linux ELF.
20074
linux* | k*bsd*-gnu)
20078
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20079
soname_spec='${libname}${release}${shared_ext}$major'
20080
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20081
shlibpath_var=LD_LIBRARY_PATH
20082
shlibpath_overrides_runpath=no
20083
# This implies no fast_install, which is unacceptable.
20084
# Some rework will be needed to allow for fast_install
20085
# before this can be enabled.
20086
hardcode_into_libs=yes
20088
# Append ld.so.conf contents to the search path
20089
if test -f /etc/ld.so.conf; then
20090
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' ' '`
20091
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20094
# We used to test for /lib/ld.so.1 and disable shared libraries on
20095
# powerpc, because MkLinux only supported shared libraries with the
20096
# GNU dynamic linker. Since this was broken with cross compilers,
20097
# most powerpc-linux boxes support dynamic linking these days and
20098
# people can always --disable-shared, the test was removed, and we
20099
# assume the GNU/Linux dynamic linker is in use.
20100
dynamic_linker='GNU/Linux ld.so'
20107
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20108
soname_spec='${libname}${release}${shared_ext}$major'
20109
shlibpath_var=LD_LIBRARY_PATH
20110
shlibpath_overrides_runpath=no
20111
hardcode_into_libs=yes
20112
dynamic_linker='NetBSD ld.elf_so'
20119
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20120
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20121
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20122
dynamic_linker='NetBSD (a.out) ld.so'
20124
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20125
soname_spec='${libname}${release}${shared_ext}$major'
20126
dynamic_linker='NetBSD ld.elf_so'
20128
shlibpath_var=LD_LIBRARY_PATH
20129
shlibpath_overrides_runpath=yes
20130
hardcode_into_libs=yes
20135
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20136
shlibpath_var=LD_LIBRARY_PATH
20137
shlibpath_overrides_runpath=yes
20144
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20145
soname_spec='${libname}${release}${shared_ext}$major'
20146
shlibpath_var=LD_LIBRARY_PATH
20147
shlibpath_overrides_runpath=yes
20152
sys_lib_dlsearch_path_spec="/usr/lib"
20154
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20156
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20157
*) need_version=no ;;
20159
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20160
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20161
shlibpath_var=LD_LIBRARY_PATH
20162
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20164
openbsd2.[89] | openbsd2.[89].*)
20165
shlibpath_overrides_runpath=no
20168
shlibpath_overrides_runpath=yes
20172
shlibpath_overrides_runpath=yes
20177
libname_spec='$name'
20180
library_names_spec='$libname${shared_ext} $libname.a'
20181
dynamic_linker='OS/2 ld.exe'
20182
shlibpath_var=LIBPATH
20185
osf3* | osf4* | osf5*)
20189
soname_spec='${libname}${release}${shared_ext}$major'
20190
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20191
shlibpath_var=LD_LIBRARY_PATH
20192
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20193
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20204
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20205
soname_spec='${libname}${release}${shared_ext}$major'
20206
shlibpath_var=LD_LIBRARY_PATH
20207
shlibpath_overrides_runpath=yes
20208
hardcode_into_libs=yes
20209
# ldd complains unless libraries are executable
20210
postinstall_cmds='chmod +x $lib'
20215
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20216
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20217
shlibpath_var=LD_LIBRARY_PATH
20218
shlibpath_overrides_runpath=yes
20219
if test "$with_gnu_ld" = yes; then
20227
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20228
soname_spec='${libname}${release}${shared_ext}$major'
20229
shlibpath_var=LD_LIBRARY_PATH
20230
case $host_vendor in
20232
shlibpath_overrides_runpath=no
20234
export_dynamic_flag_spec='${wl}-Blargedynsym'
20235
runpath_var=LD_RUN_PATH
20243
shlibpath_overrides_runpath=no
20244
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20250
if test -d /usr/nec ;then
20252
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20253
soname_spec='$libname${shared_ext}.$major'
20254
shlibpath_var=LD_LIBRARY_PATH
20258
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20259
version_type=freebsd-elf
20262
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20263
soname_spec='${libname}${release}${shared_ext}$major'
20264
shlibpath_var=LD_LIBRARY_PATH
20265
hardcode_into_libs=yes
20266
if test "$with_gnu_ld" = yes; then
20267
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20268
shlibpath_overrides_runpath=no
20270
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20271
shlibpath_overrides_runpath=yes
20274
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20278
sys_lib_dlsearch_path_spec='/usr/lib'
20283
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20284
soname_spec='${libname}${release}${shared_ext}$major'
20285
shlibpath_var=LD_LIBRARY_PATH
20292
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20293
$as_echo "$dynamic_linker" >&6; }
20294
test "$dynamic_linker" = no && can_build_shared=no
20296
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20297
$as_echo_n "(cached) " >&6
20299
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
20302
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20303
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20304
$as_echo_n "(cached) " >&6
20306
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
20309
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20311
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20312
if test "$GCC" = yes; then
20313
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20316
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20317
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20318
hardcode_action_GCJ=
20319
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20320
test -n "$runpath_var_GCJ" || \
20321
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20323
# We can hardcode non-existant directories.
20324
if test "$hardcode_direct_GCJ" != no &&
20325
# If the only mechanism to avoid hardcoding is shlibpath_var, we
20326
# have to relink, otherwise we might link with an installed library
20327
# when we should be linking with a yet-to-be-installed one
20328
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20329
test "$hardcode_minus_L_GCJ" != no; then
20330
# Linking always hardcodes the temporary library directory.
20331
hardcode_action_GCJ=relink
20333
# We can link without hardcoding, and we can hardcode nonexisting dirs.
20334
hardcode_action_GCJ=immediate
20337
# We cannot hardcode anything, or else we can only hardcode existing
20339
hardcode_action_GCJ=unsupported
20341
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20342
$as_echo "$hardcode_action_GCJ" >&6; }
20344
if test "$hardcode_action_GCJ" = relink; then
20345
# Fast installation is not supported
20346
enable_fast_install=no
20347
elif test "$shlibpath_overrides_runpath" = yes ||
20348
test "$enable_shared" = no; then
20349
# Fast installation is not necessary
20350
enable_fast_install=needless
20354
# The else clause should only fire when bootstrapping the
20355
# libtool distribution, otherwise you forgot to ship ltmain.sh
20356
# with your package, and you will get complaints that there are
20357
# no rules to generate ltmain.sh.
20358
if test -f "$ltmain"; then
20359
# See if we are running on zsh, and set the options which allow our commands through
20360
# without removal of \ escapes.
20361
if test -n "${ZSH_VERSION+set}" ; then
20362
setopt NO_GLOB_SUBST
20364
# Now quote all the things that may contain metacharacters while being
20365
# careful not to overquote the AC_SUBSTed values. We take copies of the
20366
# variables and quote the copies for generation of the libtool script.
20367
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20369
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20370
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20371
deplibs_check_method reload_flag reload_cmds need_locks \
20372
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20373
lt_cv_sys_global_symbol_to_c_name_address \
20374
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20375
old_postinstall_cmds old_postuninstall_cmds \
20379
lt_prog_compiler_wl_GCJ \
20380
lt_prog_compiler_pic_GCJ \
20381
lt_prog_compiler_static_GCJ \
20382
lt_prog_compiler_no_builtin_flag_GCJ \
20383
export_dynamic_flag_spec_GCJ \
20384
thread_safe_flag_spec_GCJ \
20385
whole_archive_flag_spec_GCJ \
20386
enable_shared_with_static_runtimes_GCJ \
20387
old_archive_cmds_GCJ \
20388
old_archive_from_new_cmds_GCJ \
20389
predep_objects_GCJ \
20390
postdep_objects_GCJ \
20393
compiler_lib_search_path_GCJ \
20394
compiler_lib_search_dirs_GCJ \
20396
archive_expsym_cmds_GCJ \
20397
postinstall_cmds_GCJ \
20398
postuninstall_cmds_GCJ \
20399
old_archive_from_expsyms_cmds_GCJ \
20400
allow_undefined_flag_GCJ \
20401
no_undefined_flag_GCJ \
20402
export_symbols_cmds_GCJ \
20403
hardcode_libdir_flag_spec_GCJ \
20404
hardcode_libdir_flag_spec_ld_GCJ \
20405
hardcode_libdir_separator_GCJ \
20406
hardcode_automatic_GCJ \
20408
module_expsym_cmds_GCJ \
20409
lt_cv_prog_compiler_c_o_GCJ \
20410
fix_srcfile_path_GCJ \
20411
exclude_expsyms_GCJ \
20412
include_expsyms_GCJ; do
20415
old_archive_cmds_GCJ | \
20416
old_archive_from_new_cmds_GCJ | \
20417
archive_cmds_GCJ | \
20418
archive_expsym_cmds_GCJ | \
20419
module_cmds_GCJ | \
20420
module_expsym_cmds_GCJ | \
20421
old_archive_from_expsyms_cmds_GCJ | \
20422
export_symbols_cmds_GCJ | \
20423
extract_expsyms_cmds | reload_cmds | finish_cmds | \
20424
postinstall_cmds | postuninstall_cmds | \
20425
old_postinstall_cmds | old_postuninstall_cmds | \
20426
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20427
# Double-quote double-evaled strings.
20428
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20431
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20437
*'\$0 --fallback-echo"')
20438
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20444
cat <<__EOF__ >> "$cfgfile"
20445
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20447
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20449
# Shell to use when invoking shell scripts.
20452
# Whether or not to build shared libraries.
20453
build_libtool_libs=$enable_shared
20455
# Whether or not to build static libraries.
20456
build_old_libs=$enable_static
20458
# Whether or not to add -lc for building shared libraries.
20459
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20461
# Whether or not to disallow shared libs when runtime libs are static
20462
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20464
# Whether or not to optimize for fast installation.
20465
fast_install=$enable_fast_install
20468
host_alias=$host_alias
20472
# The build system.
20473
build_alias=$build_alias
20477
# An echo program that does not interpret backslashes.
20482
AR_FLAGS=$lt_AR_FLAGS
20487
# LTCC compiler flags.
20488
LTCFLAGS=$lt_LTCFLAGS
20490
# A language-specific compiler.
20491
CC=$lt_compiler_GCJ
20493
# Is the compiler the GNU C compiler?
20499
# The linker used to build libraries.
20502
# Whether we need hard or soft links.
20505
# A BSD-compatible nm program.
20508
# A symbol stripping program
20511
# Used to examine libraries when file_magic_cmd begins "file"
20512
MAGIC_CMD=$MAGIC_CMD
20514
# Used on cygwin: DLL creation program.
20517
# Used on cygwin: object dumper.
20520
# Used on cygwin: assembler.
20523
# The name of the directory that contains temporary libtool files.
20526
# How to create reloadable object files.
20527
reload_flag=$lt_reload_flag
20528
reload_cmds=$lt_reload_cmds
20530
# How to pass a linker flag through the compiler.
20531
wl=$lt_lt_prog_compiler_wl_GCJ
20533
# Object file suffix (normally "o").
20534
objext="$ac_objext"
20536
# Old archive suffix (normally "a").
20539
# Shared library suffix (normally ".so").
20540
shrext_cmds='$shrext_cmds'
20542
# Executable file suffix (normally "").
20545
# Additional compiler flags for building library objects.
20546
pic_flag=$lt_lt_prog_compiler_pic_GCJ
20549
# What is the maximum length of a command?
20550
max_cmd_len=$lt_cv_sys_max_cmd_len
20552
# Does compiler simultaneously support -c and -o options?
20553
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20555
# Must we lock files when doing compilation?
20556
need_locks=$lt_need_locks
20558
# Do we need the lib prefix for modules?
20559
need_lib_prefix=$need_lib_prefix
20561
# Do we need a version for libraries?
20562
need_version=$need_version
20564
# Whether dlopen is supported.
20565
dlopen_support=$enable_dlopen
20567
# Whether dlopen of programs is supported.
20568
dlopen_self=$enable_dlopen_self
20570
# Whether dlopen of statically linked programs is supported.
20571
dlopen_self_static=$enable_dlopen_self_static
20573
# Compiler flag to prevent dynamic linking.
20574
link_static_flag=$lt_lt_prog_compiler_static_GCJ
20576
# Compiler flag to turn off builtin functions.
20577
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20579
# Compiler flag to allow reflexive dlopens.
20580
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20582
# Compiler flag to generate shared objects directly from archives.
20583
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20585
# Compiler flag to generate thread-safe objects.
20586
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20588
# Library versioning type.
20589
version_type=$version_type
20591
# Format of library name prefix.
20592
libname_spec=$lt_libname_spec
20594
# List of archive names. First name is the real one, the rest are links.
20595
# The last name is the one that the linker finds with -lNAME.
20596
library_names_spec=$lt_library_names_spec
20598
# The coded name of the library, if different from the real name.
20599
soname_spec=$lt_soname_spec
20601
# Commands used to build and install an old-style archive.
20603
old_archive_cmds=$lt_old_archive_cmds_GCJ
20604
old_postinstall_cmds=$lt_old_postinstall_cmds
20605
old_postuninstall_cmds=$lt_old_postuninstall_cmds
20607
# Create an old-style archive from a shared archive.
20608
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20610
# Create a temporary old-style archive to link instead of a shared archive.
20611
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20613
# Commands used to build and install a shared archive.
20614
archive_cmds=$lt_archive_cmds_GCJ
20615
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20616
postinstall_cmds=$lt_postinstall_cmds
20617
postuninstall_cmds=$lt_postuninstall_cmds
20619
# Commands used to build a loadable module (assumed same as above if empty)
20620
module_cmds=$lt_module_cmds_GCJ
20621
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20623
# Commands to strip libraries.
20624
old_striplib=$lt_old_striplib
20625
striplib=$lt_striplib
20627
# Dependencies to place before the objects being linked to create a
20629
predep_objects=$lt_predep_objects_GCJ
20631
# Dependencies to place after the objects being linked to create a
20633
postdep_objects=$lt_postdep_objects_GCJ
20635
# Dependencies to place before the objects being linked to create a
20637
predeps=$lt_predeps_GCJ
20639
# Dependencies to place after the objects being linked to create a
20641
postdeps=$lt_postdeps_GCJ
20643
# The directories searched by this compiler when creating a shared
20645
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
20647
# The library search path used internally by the compiler when linking
20648
# a shared library.
20649
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20651
# Method to check whether dependent libraries are shared objects.
20652
deplibs_check_method=$lt_deplibs_check_method
20654
# Command to use when deplibs_check_method == file_magic.
20655
file_magic_cmd=$lt_file_magic_cmd
20657
# Flag that allows shared libraries with undefined symbols to be built.
20658
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20660
# Flag that forces no undefined symbols.
20661
no_undefined_flag=$lt_no_undefined_flag_GCJ
20663
# Commands used to finish a libtool library installation in a directory.
20664
finish_cmds=$lt_finish_cmds
20666
# Same as above, but a single script fragment to be evaled but not shown.
20667
finish_eval=$lt_finish_eval
20669
# Take the output of nm and produce a listing of raw symbols and C names.
20670
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20672
# Transform the output of nm in a proper C declaration
20673
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20675
# Transform the output of nm in a C name address pair
20676
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20678
# This is the shared library runtime path variable.
20679
runpath_var=$runpath_var
20681
# This is the shared library path variable.
20682
shlibpath_var=$shlibpath_var
20684
# Is shlibpath searched before the hard-coded library search path?
20685
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20687
# How to hardcode a shared library path into an executable.
20688
hardcode_action=$hardcode_action_GCJ
20690
# Whether we should hardcode library paths into libraries.
20691
hardcode_into_libs=$hardcode_into_libs
20693
# Flag to hardcode \$libdir into a binary during linking.
20694
# This must work even if \$libdir does not exist.
20695
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20697
# If ld is used when linking, flag to hardcode \$libdir into
20698
# a binary during linking. This must work even if \$libdir does
20700
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20702
# Whether we need a single -rpath flag with a separated argument.
20703
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20705
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20706
# resulting binary.
20707
hardcode_direct=$hardcode_direct_GCJ
20709
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20710
# resulting binary.
20711
hardcode_minus_L=$hardcode_minus_L_GCJ
20713
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20714
# the resulting binary.
20715
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20717
# Set to yes if building a shared library automatically hardcodes DIR into the library
20718
# and all subsequent libraries and executables linked against it.
20719
hardcode_automatic=$hardcode_automatic_GCJ
20721
# Variables whose values should be saved in libtool wrapper scripts and
20722
# restored at relink time.
20723
variables_saved_for_relink="$variables_saved_for_relink"
20725
# Whether libtool must link a program against all its dependency libraries.
20726
link_all_deplibs=$link_all_deplibs_GCJ
20728
# Compile-time system search path for libraries
20729
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20731
# Run-time system search path for libraries
20732
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20734
# Fix the shell variable \$srcfile for the compiler.
20735
fix_srcfile_path=$lt_fix_srcfile_path
20737
# Set to yes if exported symbols are required.
20738
always_export_symbols=$always_export_symbols_GCJ
20740
# The commands to list exported symbols.
20741
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20743
# The commands to extract the exported symbol list from a shared archive.
20744
extract_expsyms_cmds=$lt_extract_expsyms_cmds
20746
# Symbols that should not be listed in the preloaded symbols.
20747
exclude_expsyms=$lt_exclude_expsyms_GCJ
20749
# Symbols that must always be exported.
20750
include_expsyms=$lt_include_expsyms_GCJ
20752
# ### END LIBTOOL TAG CONFIG: $tagname
20758
# If there is no Makefile yet, we rely on a make rule to execute
20759
# `config.status --recheck' to rerun these tests and create the
20760
# libtool script then.
20761
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20762
if test -f "$ltmain_in"; then
20763
test -f Makefile && make "$ltmain"
20769
ac_cpp='$CPP $CPPFLAGS'
20770
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20771
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20772
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20784
# Source file extension for RC test sources.
20787
# Object file extension for compiled RC test sources.
20791
# Code to be used in simple compile tests
20792
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
20794
# Code to be used in simple link tests
20795
lt_simple_link_test_code="$lt_simple_compile_test_code"
20797
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20799
# If no C compiler was specified, use CC.
20802
# If no C compiler flags were specified, use CFLAGS.
20803
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20805
# Allow CC to be a program name with arguments.
20809
# save warnings/boilerplate of simple test code
20810
ac_outfile=conftest.$ac_objext
20811
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20812
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20813
_lt_compiler_boilerplate=`cat conftest.err`
20816
ac_outfile=conftest.$ac_objext
20817
echo "$lt_simple_link_test_code" >conftest.$ac_ext
20818
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20819
_lt_linker_boilerplate=`cat conftest.err`
20823
# Allow CC to be a program name with arguments.
20828
for cc_temp in $compiler""; do
20830
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20831
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20836
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20838
lt_cv_prog_compiler_c_o_RC=yes
20840
# The else clause should only fire when bootstrapping the
20841
# libtool distribution, otherwise you forgot to ship ltmain.sh
20842
# with your package, and you will get complaints that there are
20843
# no rules to generate ltmain.sh.
20844
if test -f "$ltmain"; then
20845
# See if we are running on zsh, and set the options which allow our commands through
20846
# without removal of \ escapes.
20847
if test -n "${ZSH_VERSION+set}" ; then
20848
setopt NO_GLOB_SUBST
20850
# Now quote all the things that may contain metacharacters while being
20851
# careful not to overquote the AC_SUBSTed values. We take copies of the
20852
# variables and quote the copies for generation of the libtool script.
20853
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20855
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20856
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20857
deplibs_check_method reload_flag reload_cmds need_locks \
20858
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20859
lt_cv_sys_global_symbol_to_c_name_address \
20860
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20861
old_postinstall_cmds old_postuninstall_cmds \
20865
lt_prog_compiler_wl_RC \
20866
lt_prog_compiler_pic_RC \
20867
lt_prog_compiler_static_RC \
20868
lt_prog_compiler_no_builtin_flag_RC \
20869
export_dynamic_flag_spec_RC \
20870
thread_safe_flag_spec_RC \
20871
whole_archive_flag_spec_RC \
20872
enable_shared_with_static_runtimes_RC \
20873
old_archive_cmds_RC \
20874
old_archive_from_new_cmds_RC \
20875
predep_objects_RC \
20876
postdep_objects_RC \
20879
compiler_lib_search_path_RC \
20880
compiler_lib_search_dirs_RC \
20882
archive_expsym_cmds_RC \
20883
postinstall_cmds_RC \
20884
postuninstall_cmds_RC \
20885
old_archive_from_expsyms_cmds_RC \
20886
allow_undefined_flag_RC \
20887
no_undefined_flag_RC \
20888
export_symbols_cmds_RC \
20889
hardcode_libdir_flag_spec_RC \
20890
hardcode_libdir_flag_spec_ld_RC \
20891
hardcode_libdir_separator_RC \
20892
hardcode_automatic_RC \
20894
module_expsym_cmds_RC \
20895
lt_cv_prog_compiler_c_o_RC \
20896
fix_srcfile_path_RC \
20897
exclude_expsyms_RC \
20898
include_expsyms_RC; do
20901
old_archive_cmds_RC | \
20902
old_archive_from_new_cmds_RC | \
20903
archive_cmds_RC | \
20904
archive_expsym_cmds_RC | \
20906
module_expsym_cmds_RC | \
20907
old_archive_from_expsyms_cmds_RC | \
20908
export_symbols_cmds_RC | \
20909
extract_expsyms_cmds | reload_cmds | finish_cmds | \
20910
postinstall_cmds | postuninstall_cmds | \
20911
old_postinstall_cmds | old_postuninstall_cmds | \
20912
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20913
# Double-quote double-evaled strings.
20914
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20917
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20923
*'\$0 --fallback-echo"')
20924
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20930
cat <<__EOF__ >> "$cfgfile"
20931
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20933
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20935
# Shell to use when invoking shell scripts.
20938
# Whether or not to build shared libraries.
20939
build_libtool_libs=$enable_shared
20941
# Whether or not to build static libraries.
20942
build_old_libs=$enable_static
20944
# Whether or not to add -lc for building shared libraries.
20945
build_libtool_need_lc=$archive_cmds_need_lc_RC
20947
# Whether or not to disallow shared libs when runtime libs are static
20948
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20950
# Whether or not to optimize for fast installation.
20951
fast_install=$enable_fast_install
20954
host_alias=$host_alias
20958
# The build system.
20959
build_alias=$build_alias
20963
# An echo program that does not interpret backslashes.
20968
AR_FLAGS=$lt_AR_FLAGS
20973
# LTCC compiler flags.
20974
LTCFLAGS=$lt_LTCFLAGS
20976
# A language-specific compiler.
20979
# Is the compiler the GNU C compiler?
20985
# The linker used to build libraries.
20988
# Whether we need hard or soft links.
20991
# A BSD-compatible nm program.
20994
# A symbol stripping program
20997
# Used to examine libraries when file_magic_cmd begins "file"
20998
MAGIC_CMD=$MAGIC_CMD
21000
# Used on cygwin: DLL creation program.
21003
# Used on cygwin: object dumper.
21006
# Used on cygwin: assembler.
21009
# The name of the directory that contains temporary libtool files.
21012
# How to create reloadable object files.
21013
reload_flag=$lt_reload_flag
21014
reload_cmds=$lt_reload_cmds
21016
# How to pass a linker flag through the compiler.
21017
wl=$lt_lt_prog_compiler_wl_RC
21019
# Object file suffix (normally "o").
21020
objext="$ac_objext"
21022
# Old archive suffix (normally "a").
21025
# Shared library suffix (normally ".so").
21026
shrext_cmds='$shrext_cmds'
21028
# Executable file suffix (normally "").
21031
# Additional compiler flags for building library objects.
21032
pic_flag=$lt_lt_prog_compiler_pic_RC
21035
# What is the maximum length of a command?
21036
max_cmd_len=$lt_cv_sys_max_cmd_len
21038
# Does compiler simultaneously support -c and -o options?
21039
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21041
# Must we lock files when doing compilation?
21042
need_locks=$lt_need_locks
21044
# Do we need the lib prefix for modules?
21045
need_lib_prefix=$need_lib_prefix
21047
# Do we need a version for libraries?
21048
need_version=$need_version
21050
# Whether dlopen is supported.
21051
dlopen_support=$enable_dlopen
21053
# Whether dlopen of programs is supported.
21054
dlopen_self=$enable_dlopen_self
21056
# Whether dlopen of statically linked programs is supported.
21057
dlopen_self_static=$enable_dlopen_self_static
21059
# Compiler flag to prevent dynamic linking.
21060
link_static_flag=$lt_lt_prog_compiler_static_RC
21062
# Compiler flag to turn off builtin functions.
21063
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21065
# Compiler flag to allow reflexive dlopens.
21066
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21068
# Compiler flag to generate shared objects directly from archives.
21069
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21071
# Compiler flag to generate thread-safe objects.
21072
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21074
# Library versioning type.
21075
version_type=$version_type
21077
# Format of library name prefix.
21078
libname_spec=$lt_libname_spec
21080
# List of archive names. First name is the real one, the rest are links.
21081
# The last name is the one that the linker finds with -lNAME.
21082
library_names_spec=$lt_library_names_spec
21084
# The coded name of the library, if different from the real name.
21085
soname_spec=$lt_soname_spec
21087
# Commands used to build and install an old-style archive.
21089
old_archive_cmds=$lt_old_archive_cmds_RC
21090
old_postinstall_cmds=$lt_old_postinstall_cmds
21091
old_postuninstall_cmds=$lt_old_postuninstall_cmds
21093
# Create an old-style archive from a shared archive.
21094
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21096
# Create a temporary old-style archive to link instead of a shared archive.
21097
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21099
# Commands used to build and install a shared archive.
21100
archive_cmds=$lt_archive_cmds_RC
21101
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21102
postinstall_cmds=$lt_postinstall_cmds
21103
postuninstall_cmds=$lt_postuninstall_cmds
21105
# Commands used to build a loadable module (assumed same as above if empty)
21106
module_cmds=$lt_module_cmds_RC
21107
module_expsym_cmds=$lt_module_expsym_cmds_RC
21109
# Commands to strip libraries.
21110
old_striplib=$lt_old_striplib
21111
striplib=$lt_striplib
21113
# Dependencies to place before the objects being linked to create a
21115
predep_objects=$lt_predep_objects_RC
21117
# Dependencies to place after the objects being linked to create a
21119
postdep_objects=$lt_postdep_objects_RC
21121
# Dependencies to place before the objects being linked to create a
21123
predeps=$lt_predeps_RC
21125
# Dependencies to place after the objects being linked to create a
21127
postdeps=$lt_postdeps_RC
21129
# The directories searched by this compiler when creating a shared
21131
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
21133
# The library search path used internally by the compiler when linking
21134
# a shared library.
21135
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21137
# Method to check whether dependent libraries are shared objects.
21138
deplibs_check_method=$lt_deplibs_check_method
21140
# Command to use when deplibs_check_method == file_magic.
21141
file_magic_cmd=$lt_file_magic_cmd
21143
# Flag that allows shared libraries with undefined symbols to be built.
21144
allow_undefined_flag=$lt_allow_undefined_flag_RC
21146
# Flag that forces no undefined symbols.
21147
no_undefined_flag=$lt_no_undefined_flag_RC
21149
# Commands used to finish a libtool library installation in a directory.
21150
finish_cmds=$lt_finish_cmds
21152
# Same as above, but a single script fragment to be evaled but not shown.
21153
finish_eval=$lt_finish_eval
21155
# Take the output of nm and produce a listing of raw symbols and C names.
21156
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21158
# Transform the output of nm in a proper C declaration
21159
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21161
# Transform the output of nm in a C name address pair
21162
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21164
# This is the shared library runtime path variable.
21165
runpath_var=$runpath_var
21167
# This is the shared library path variable.
21168
shlibpath_var=$shlibpath_var
21170
# Is shlibpath searched before the hard-coded library search path?
21171
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21173
# How to hardcode a shared library path into an executable.
21174
hardcode_action=$hardcode_action_RC
21176
# Whether we should hardcode library paths into libraries.
21177
hardcode_into_libs=$hardcode_into_libs
21179
# Flag to hardcode \$libdir into a binary during linking.
21180
# This must work even if \$libdir does not exist.
21181
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21183
# If ld is used when linking, flag to hardcode \$libdir into
21184
# a binary during linking. This must work even if \$libdir does
21186
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21188
# Whether we need a single -rpath flag with a separated argument.
21189
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21191
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21192
# resulting binary.
21193
hardcode_direct=$hardcode_direct_RC
21195
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21196
# resulting binary.
21197
hardcode_minus_L=$hardcode_minus_L_RC
21199
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21200
# the resulting binary.
21201
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21203
# Set to yes if building a shared library automatically hardcodes DIR into the library
21204
# and all subsequent libraries and executables linked against it.
21205
hardcode_automatic=$hardcode_automatic_RC
21207
# Variables whose values should be saved in libtool wrapper scripts and
21208
# restored at relink time.
21209
variables_saved_for_relink="$variables_saved_for_relink"
21211
# Whether libtool must link a program against all its dependency libraries.
21212
link_all_deplibs=$link_all_deplibs_RC
21214
# Compile-time system search path for libraries
21215
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21217
# Run-time system search path for libraries
21218
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21220
# Fix the shell variable \$srcfile for the compiler.
21221
fix_srcfile_path=$lt_fix_srcfile_path
21223
# Set to yes if exported symbols are required.
21224
always_export_symbols=$always_export_symbols_RC
21226
# The commands to list exported symbols.
21227
export_symbols_cmds=$lt_export_symbols_cmds_RC
21229
# The commands to extract the exported symbol list from a shared archive.
21230
extract_expsyms_cmds=$lt_extract_expsyms_cmds
21232
# Symbols that should not be listed in the preloaded symbols.
21233
exclude_expsyms=$lt_exclude_expsyms_RC
21235
# Symbols that must always be exported.
21236
include_expsyms=$lt_include_expsyms_RC
21238
# ### END LIBTOOL TAG CONFIG: $tagname
21244
# If there is no Makefile yet, we rely on a make rule to execute
21245
# `config.status --recheck' to rerun these tests and create the
21246
# libtool script then.
21247
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21248
if test -f "$ltmain_in"; then
21249
test -f Makefile && make "$ltmain"
21255
ac_cpp='$CPP $CPPFLAGS'
21256
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21257
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21258
ac_compiler_gnu=$ac_cv_c_compiler_gnu
21265
{ { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21266
$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21267
{ (exit 1); exit 1; }; }
21271
# Append the new tag name to the list of available tags.
21272
if test -n "$tagname" ; then
21273
available_tags="$available_tags $tagname"
21279
# Now substitute the updated list of available tags.
21280
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21281
mv "${ofile}T" "$ofile"
21285
{ { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21286
$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21287
{ (exit 1); exit 1; }; }
21293
# This can be used to rebuild libtool when needed
21294
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21296
# Always use our own libtool.
21297
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21299
# Prevent multiple expansion