11976
# Report which library types will actually be built
11977
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11978
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11979
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
11980
echo "${ECHO_T}$can_build_shared" >&6; }
11982
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11983
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11984
test "$can_build_shared" = "no" && enable_shared=no
11986
# On AIX, shared libraries and static libraries use the same namespace, and
11987
# are all built from PIC.
11990
test "$enable_shared" = yes && enable_static=no
11991
if test -n "$RANLIB"; then
11992
archive_cmds="$archive_cmds~\$RANLIB \$lib"
11993
postinstall_cmds='$RANLIB $lib'
11998
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11999
test "$enable_shared" = yes && enable_static=no
12003
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
12004
echo "${ECHO_T}$enable_shared" >&6; }
12006
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12007
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12008
# Make sure either enable_shared or enable_static is yes.
12009
test "$enable_shared" = yes || enable_static=yes
12010
{ echo "$as_me:$LINENO: result: $enable_static" >&5
12011
echo "${ECHO_T}$enable_static" >&6; }
12013
# The else clause should only fire when bootstrapping the
12014
# libtool distribution, otherwise you forgot to ship ltmain.sh
12015
# with your package, and you will get complaints that there are
12016
# no rules to generate ltmain.sh.
12017
if test -f "$ltmain"; then
12018
# See if we are running on zsh, and set the options which allow our commands through
12019
# without removal of \ escapes.
12020
if test -n "${ZSH_VERSION+set}" ; then
12021
setopt NO_GLOB_SUBST
12023
# Now quote all the things that may contain metacharacters while being
12024
# careful not to overquote the AC_SUBSTed values. We take copies of the
12025
# variables and quote the copies for generation of the libtool script.
12026
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12028
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12029
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12030
deplibs_check_method reload_flag reload_cmds need_locks \
12031
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12032
lt_cv_sys_global_symbol_to_c_name_address \
12033
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12034
old_postinstall_cmds old_postuninstall_cmds \
12038
lt_prog_compiler_wl \
12039
lt_prog_compiler_pic \
12040
lt_prog_compiler_static \
12041
lt_prog_compiler_no_builtin_flag \
12042
export_dynamic_flag_spec \
12043
thread_safe_flag_spec \
12044
whole_archive_flag_spec \
12045
enable_shared_with_static_runtimes \
12047
old_archive_from_new_cmds \
12052
compiler_lib_search_path \
12053
compiler_lib_search_dirs \
12055
archive_expsym_cmds \
12057
postuninstall_cmds \
12058
old_archive_from_expsyms_cmds \
12059
allow_undefined_flag \
12060
no_undefined_flag \
12061
export_symbols_cmds \
12062
hardcode_libdir_flag_spec \
12063
hardcode_libdir_flag_spec_ld \
12064
hardcode_libdir_separator \
12065
hardcode_automatic \
12067
module_expsym_cmds \
12068
lt_cv_prog_compiler_c_o \
12071
include_expsyms; do
12074
old_archive_cmds | \
12075
old_archive_from_new_cmds | \
12077
archive_expsym_cmds | \
12079
module_expsym_cmds | \
12080
old_archive_from_expsyms_cmds | \
12081
export_symbols_cmds | \
12082
extract_expsyms_cmds | reload_cmds | finish_cmds | \
12083
postinstall_cmds | postuninstall_cmds | \
12084
old_postinstall_cmds | old_postuninstall_cmds | \
12085
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12086
# Double-quote double-evaled strings.
12087
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12090
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12096
*'\$0 --fallback-echo"')
12097
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12101
cfgfile="${ofile}T"
12102
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
12104
{ echo "$as_me:$LINENO: creating $ofile" >&5
12105
echo "$as_me: creating $ofile" >&6;}
12107
cat <<__EOF__ >> "$cfgfile"
12110
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12111
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
12112
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
12114
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
12115
# Free Software Foundation, Inc.
12117
# This file is part of GNU Libtool:
12118
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
12120
# This program is free software; you can redistribute it and/or modify
12121
# it under the terms of the GNU General Public License as published by
12122
# the Free Software Foundation; either version 2 of the License, or
12123
# (at your option) any later version.
12125
# This program is distributed in the hope that it will be useful, but
12126
# WITHOUT ANY WARRANTY; without even the implied warranty of
12127
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12128
# General Public License for more details.
12130
# You should have received a copy of the GNU General Public License
12131
# along with this program; if not, write to the Free Software
12132
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12134
# As a special exception to the GNU General Public License, if you
12135
# distribute this file as part of a program that contains a
12136
# configuration script generated by Autoconf, you may include it under
12137
# the same distribution terms that you use for the rest of that program.
12139
# A sed program that does not truncate output.
12142
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
12143
Xsed="$SED -e 1s/^X//"
12145
# The HP-UX ksh and POSIX shell print the target directory to stdout
12146
# if CDPATH is set.
12147
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12149
# The names of the tagged configurations supported by this script.
12152
# ### BEGIN LIBTOOL CONFIG
12154
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12156
# Shell to use when invoking shell scripts.
12159
# Whether or not to build shared libraries.
12160
build_libtool_libs=$enable_shared
12162
# Whether or not to build static libraries.
12163
build_old_libs=$enable_static
12165
# Whether or not to add -lc for building shared libraries.
12166
build_libtool_need_lc=$archive_cmds_need_lc
12168
# Whether or not to disallow shared libs when runtime libs are static
12169
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12171
# Whether or not to optimize for fast installation.
12172
fast_install=$enable_fast_install
12175
host_alias=$host_alias
12179
# The build system.
12180
build_alias=$build_alias
12184
# An echo program that does not interpret backslashes.
12189
AR_FLAGS=$lt_AR_FLAGS
12194
# LTCC compiler flags.
12195
LTCFLAGS=$lt_LTCFLAGS
12197
# A language-specific compiler.
12200
# Is the compiler the GNU C compiler?
12206
# The linker used to build libraries.
12209
# Whether we need hard or soft links.
12212
# A BSD-compatible nm program.
12215
# A symbol stripping program
12218
# Used to examine libraries when file_magic_cmd begins "file"
12219
MAGIC_CMD=$MAGIC_CMD
12221
# Used on cygwin: DLL creation program.
12224
# Used on cygwin: object dumper.
12227
# Used on cygwin: assembler.
12230
# The name of the directory that contains temporary libtool files.
12233
# How to create reloadable object files.
12234
reload_flag=$lt_reload_flag
12235
reload_cmds=$lt_reload_cmds
12237
# How to pass a linker flag through the compiler.
12238
wl=$lt_lt_prog_compiler_wl
12240
# Object file suffix (normally "o").
12241
objext="$ac_objext"
12243
# Old archive suffix (normally "a").
12246
# Shared library suffix (normally ".so").
12247
shrext_cmds='$shrext_cmds'
12249
# Executable file suffix (normally "").
12252
# Additional compiler flags for building library objects.
12253
pic_flag=$lt_lt_prog_compiler_pic
12256
# What is the maximum length of a command?
12257
max_cmd_len=$lt_cv_sys_max_cmd_len
12259
# Does compiler simultaneously support -c and -o options?
12260
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12262
# Must we lock files when doing compilation?
12263
need_locks=$lt_need_locks
12265
# Do we need the lib prefix for modules?
12266
need_lib_prefix=$need_lib_prefix
12268
# Do we need a version for libraries?
12269
need_version=$need_version
12271
# Whether dlopen is supported.
12272
dlopen_support=$enable_dlopen
12274
# Whether dlopen of programs is supported.
12275
dlopen_self=$enable_dlopen_self
12277
# Whether dlopen of statically linked programs is supported.
12278
dlopen_self_static=$enable_dlopen_self_static
12280
# Compiler flag to prevent dynamic linking.
12281
link_static_flag=$lt_lt_prog_compiler_static
12283
# Compiler flag to turn off builtin functions.
12284
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12286
# Compiler flag to allow reflexive dlopens.
12287
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12289
# Compiler flag to generate shared objects directly from archives.
12290
whole_archive_flag_spec=$lt_whole_archive_flag_spec
12292
# Compiler flag to generate thread-safe objects.
12293
thread_safe_flag_spec=$lt_thread_safe_flag_spec
12295
# Library versioning type.
12296
version_type=$version_type
12298
# Format of library name prefix.
12299
libname_spec=$lt_libname_spec
12301
# List of archive names. First name is the real one, the rest are links.
12302
# The last name is the one that the linker finds with -lNAME.
12303
library_names_spec=$lt_library_names_spec
12305
# The coded name of the library, if different from the real name.
12306
soname_spec=$lt_soname_spec
12308
# Commands used to build and install an old-style archive.
12310
old_archive_cmds=$lt_old_archive_cmds
12311
old_postinstall_cmds=$lt_old_postinstall_cmds
12312
old_postuninstall_cmds=$lt_old_postuninstall_cmds
12314
# Create an old-style archive from a shared archive.
12315
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12317
# Create a temporary old-style archive to link instead of a shared archive.
12318
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12320
# Commands used to build and install a shared archive.
12321
archive_cmds=$lt_archive_cmds
12322
archive_expsym_cmds=$lt_archive_expsym_cmds
12323
postinstall_cmds=$lt_postinstall_cmds
12324
postuninstall_cmds=$lt_postuninstall_cmds
12326
# Commands used to build a loadable module (assumed same as above if empty)
12327
module_cmds=$lt_module_cmds
12328
module_expsym_cmds=$lt_module_expsym_cmds
12330
# Commands to strip libraries.
12331
old_striplib=$lt_old_striplib
12332
striplib=$lt_striplib
12334
# Dependencies to place before the objects being linked to create a
12336
predep_objects=$lt_predep_objects
12338
# Dependencies to place after the objects being linked to create a
12340
postdep_objects=$lt_postdep_objects
12342
# Dependencies to place before the objects being linked to create a
12344
predeps=$lt_predeps
12346
# Dependencies to place after the objects being linked to create a
12348
postdeps=$lt_postdeps
12350
# The directories searched by this compiler when creating a shared
12352
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
12354
# The library search path used internally by the compiler when linking
12355
# a shared library.
12356
compiler_lib_search_path=$lt_compiler_lib_search_path
12358
# Method to check whether dependent libraries are shared objects.
12359
deplibs_check_method=$lt_deplibs_check_method
12361
# Command to use when deplibs_check_method == file_magic.
12362
file_magic_cmd=$lt_file_magic_cmd
12364
# Flag that allows shared libraries with undefined symbols to be built.
12365
allow_undefined_flag=$lt_allow_undefined_flag
12367
# Flag that forces no undefined symbols.
12368
no_undefined_flag=$lt_no_undefined_flag
12370
# Commands used to finish a libtool library installation in a directory.
12371
finish_cmds=$lt_finish_cmds
12373
# Same as above, but a single script fragment to be evaled but not shown.
12374
finish_eval=$lt_finish_eval
12376
# Take the output of nm and produce a listing of raw symbols and C names.
12377
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12379
# Transform the output of nm in a proper C declaration
12380
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12382
# Transform the output of nm in a C name address pair
12383
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12385
# This is the shared library runtime path variable.
12386
runpath_var=$runpath_var
12388
# This is the shared library path variable.
12389
shlibpath_var=$shlibpath_var
12391
# Is shlibpath searched before the hard-coded library search path?
12392
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12394
# How to hardcode a shared library path into an executable.
12395
hardcode_action=$hardcode_action
12397
# Whether we should hardcode library paths into libraries.
12398
hardcode_into_libs=$hardcode_into_libs
12400
# Flag to hardcode \$libdir into a binary during linking.
12401
# This must work even if \$libdir does not exist.
12402
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12404
# If ld is used when linking, flag to hardcode \$libdir into
12405
# a binary during linking. This must work even if \$libdir does
12407
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12409
# Whether we need a single -rpath flag with a separated argument.
12410
hardcode_libdir_separator=$lt_hardcode_libdir_separator
12412
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12413
# resulting binary.
12414
hardcode_direct=$hardcode_direct
12416
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12417
# resulting binary.
12418
hardcode_minus_L=$hardcode_minus_L
12420
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12421
# the resulting binary.
12422
hardcode_shlibpath_var=$hardcode_shlibpath_var
12424
# Set to yes if building a shared library automatically hardcodes DIR into the library
12425
# and all subsequent libraries and executables linked against it.
12426
hardcode_automatic=$hardcode_automatic
12428
# Variables whose values should be saved in libtool wrapper scripts and
12429
# restored at relink time.
12430
variables_saved_for_relink="$variables_saved_for_relink"
12432
# Whether libtool must link a program against all its dependency libraries.
12433
link_all_deplibs=$link_all_deplibs
12435
# Compile-time system search path for libraries
12436
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12438
# Run-time system search path for libraries
12439
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12441
# Fix the shell variable \$srcfile for the compiler.
12442
fix_srcfile_path=$lt_fix_srcfile_path
12444
# Set to yes if exported symbols are required.
12445
always_export_symbols=$always_export_symbols
12447
# The commands to list exported symbols.
12448
export_symbols_cmds=$lt_export_symbols_cmds
12450
# The commands to extract the exported symbol list from a shared archive.
12451
extract_expsyms_cmds=$lt_extract_expsyms_cmds
12453
# Symbols that should not be listed in the preloaded symbols.
12454
exclude_expsyms=$lt_exclude_expsyms
12456
# Symbols that must always be exported.
12457
include_expsyms=$lt_include_expsyms
12459
# ### END LIBTOOL CONFIG
12466
cat <<\EOF >> "$cfgfile"
12468
# AIX sometimes has problems with the GCC collect2 program. For some
12469
# reason, if we set the COLLECT_NAMES environment variable, the problems
12470
# vanish in a puff of smoke.
12471
if test "X${COLLECT_NAMES+set}" != Xset; then
12473
export COLLECT_NAMES
12479
# We use sed instead of cat because bash on DJGPP gets confused if
12480
# if finds mixed CR/LF and LF-only lines. Since sed operates in
12481
# text mode, it properly converts lines to CR/LF. This bash problem
12482
# is reportedly fixed, but why not run on old versions too?
12483
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12485
mv -f "$cfgfile" "$ofile" || \
12486
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12490
# If there is no Makefile yet, we rely on a make rule to execute
12491
# `config.status --recheck' to rerun these tests and create the
12492
# libtool script then.
12493
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12494
if test -f "$ltmain_in"; then
12495
test -f Makefile && make "$ltmain"
12501
ac_cpp='$CPP $CPPFLAGS'
12502
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12503
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12504
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12509
# Check whether --with-tags was given.
12510
if test "${with_tags+set}" = set; then
12511
withval=$with_tags; tagnames="$withval"
12515
if test -f "$ltmain" && test -n "$tagnames"; then
12516
if test ! -f "${ofile}"; then
12517
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12518
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12521
if test -z "$LTCC"; then
12522
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12523
if test -z "$LTCC"; then
12524
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12525
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12527
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12528
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12531
if test -z "$LTCFLAGS"; then
12532
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12535
# Extract list of available tagged configurations in $ofile.
12536
# Note that this assumes the entire list is on one line.
12537
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12539
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12540
for tagname in $tagnames; do
12542
# Check whether tagname contains only valid characters
12543
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12545
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12546
echo "$as_me: error: invalid tag name: $tagname" >&2;}
12547
{ (exit 1); exit 1; }; }
12551
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12553
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12554
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12555
{ (exit 1); exit 1; }; }
12558
# Update the list of available tags.
12559
if test -n "$tagname"; then
12560
echo appending configuration tag \"$tagname\" to $ofile
12564
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12565
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12566
(test "X$CXX" != "Xg++"))) ; then
12568
ac_cpp='$CXXCPP $CPPFLAGS'
12569
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12570
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12571
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12576
archive_cmds_need_lc_CXX=no
12577
allow_undefined_flag_CXX=
12578
always_export_symbols_CXX=no
12579
archive_expsym_cmds_CXX=
12580
export_dynamic_flag_spec_CXX=
12581
hardcode_direct_CXX=no
12582
hardcode_libdir_flag_spec_CXX=
12583
hardcode_libdir_flag_spec_ld_CXX=
12584
hardcode_libdir_separator_CXX=
12585
hardcode_minus_L_CXX=no
12586
hardcode_shlibpath_var_CXX=unsupported
12587
hardcode_automatic_CXX=no
12589
module_expsym_cmds_CXX=
12590
link_all_deplibs_CXX=unknown
12591
old_archive_cmds_CXX=$old_archive_cmds
12592
no_undefined_flag_CXX=
12593
whole_archive_flag_spec_CXX=
12594
enable_shared_with_static_runtimes_CXX=no
12596
# Dependencies to place before and after the object being linked:
12597
predep_objects_CXX=
12598
postdep_objects_CXX=
12601
compiler_lib_search_path_CXX=
12602
compiler_lib_search_dirs_CXX=
12604
# Source file extension for C++ test sources.
12607
# Object file extension for compiled C++ test sources.
12611
# Code to be used in simple compile tests
12612
lt_simple_compile_test_code="int some_variable = 0;"
12614
# Code to be used in simple link tests
12615
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12617
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12619
# If no C compiler was specified, use CC.
12622
# If no C compiler flags were specified, use CFLAGS.
12623
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12625
# Allow CC to be a program name with arguments.
12629
# save warnings/boilerplate of simple test code
12630
ac_outfile=conftest.$ac_objext
12631
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12632
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12633
_lt_compiler_boilerplate=`cat conftest.err`
12636
ac_outfile=conftest.$ac_objext
12637
echo "$lt_simple_link_test_code" >conftest.$ac_ext
12638
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12639
_lt_linker_boilerplate=`cat conftest.err`
12643
# Allow CC to be a program name with arguments.
12648
lt_save_with_gnu_ld=$with_gnu_ld
12649
lt_save_path_LD=$lt_cv_path_LD
12650
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12651
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12653
$as_unset lt_cv_prog_gnu_ld
12655
if test -n "${lt_cv_path_LDCXX+set}"; then
12656
lt_cv_path_LD=$lt_cv_path_LDCXX
12658
$as_unset lt_cv_path_LD
12660
test -z "${LDCXX+set}" || LD=$LDCXX
12664
for cc_temp in $compiler""; do
12666
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12667
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12672
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12675
# We don't want -fno-exception wen compiling C++ code, so set the
12676
# no_builtin_flag separately
12677
if test "$GXX" = yes; then
12678
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12680
lt_prog_compiler_no_builtin_flag_CXX=
12683
if test "$GXX" = yes; then
12684
# Set up default GNU C++ configuration
12687
# Check whether --with-gnu-ld was given.
12688
if test "${with_gnu_ld+set}" = set; then
12689
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12695
if test "$GCC" = yes; then
12696
# Check if gcc -print-prog-name=ld gives a path.
12697
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12698
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12701
# gcc leaves a trailing carriage return which upsets mingw
12702
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12704
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12707
# Accept absolute paths.
12709
re_direlt='/[^/][^/]*/\.\./'
12710
# Canonicalize the pathname of ld
12711
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12712
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12713
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12715
test -z "$LD" && LD="$ac_prog"
12718
# If it fails, then pretend we aren't using GCC.
12722
# If it is relative, then search for the first ld in PATH.
12723
with_gnu_ld=unknown
12726
elif test "$with_gnu_ld" = yes; then
12727
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
12728
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12730
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12731
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12733
if test "${lt_cv_path_LD+set}" = set; then
12734
echo $ECHO_N "(cached) $ECHO_C" >&6
12736
if test -z "$LD"; then
12737
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12738
for ac_dir in $PATH; do
12740
test -z "$ac_dir" && ac_dir=.
12741
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12742
lt_cv_path_LD="$ac_dir/$ac_prog"
12743
# Check to see if the program is GNU ld. I'd rather use --version,
12744
# but apparently some variants of GNU ld only accept -v.
12745
# Break only if it was the GNU/non-GNU ld that we prefer.
12746
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12747
*GNU* | *'with BFD'*)
12748
test "$with_gnu_ld" != no && break
12751
test "$with_gnu_ld" != yes && break
12758
lt_cv_path_LD="$LD" # Let the user override the test with a path.
12762
LD="$lt_cv_path_LD"
12763
if test -n "$LD"; then
12764
{ echo "$as_me:$LINENO: result: $LD" >&5
12765
echo "${ECHO_T}$LD" >&6; }
12767
{ echo "$as_me:$LINENO: result: no" >&5
12768
echo "${ECHO_T}no" >&6; }
12770
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12771
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12772
{ (exit 1); exit 1; }; }
12773
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12774
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12775
if test "${lt_cv_prog_gnu_ld+set}" = set; then
12776
echo $ECHO_N "(cached) $ECHO_C" >&6
12778
# I'd rather use --version here, but apparently some GNU lds only accept -v.
12779
case `$LD -v 2>&1 </dev/null` in
12780
*GNU* | *'with BFD'*)
12781
lt_cv_prog_gnu_ld=yes
12784
lt_cv_prog_gnu_ld=no
12788
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12789
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12790
with_gnu_ld=$lt_cv_prog_gnu_ld
12794
# Check if GNU C++ uses GNU ld as the underlying linker, since the
12795
# archiving commands below assume that GNU ld is being used.
12796
if test "$with_gnu_ld" = yes; then
12797
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12798
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'
12800
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12801
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12803
# If archive_cmds runs LD, not CC, wlarc should be empty
12804
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12805
# investigate it a little bit more. (MM)
12808
# ancient GNU ld didn't support --whole-archive et. al.
12809
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12810
grep 'no-whole-archive' > /dev/null; then
12811
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12813
whole_archive_flag_spec_CXX=
12819
# A generic and very simple default shared library creation
12820
# command for GNU C++ for the case where it uses the native
12821
# linker, instead of GNU ld. If possible, this setting should
12822
# overridden to take advantage of the native linker features on
12823
# the platform it is being used on.
12824
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12827
# Commands to make compiler produce verbose output that lists
12828
# what "hidden" libraries, object files and flags are used when
12829
# linking a shared library.
12830
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12838
# PORTME: fill in a description of your system's C++ link characteristics
12839
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12840
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12844
# FIXME: insert proper C++ library support
12848
if test "$host_cpu" = ia64; then
12849
# On IA64, the linker does run time linking by default, so we don't
12850
# have to do anything special.
12851
aix_use_runtimelinking=no
12852
exp_sym_flag='-Bexport'
12855
aix_use_runtimelinking=no
12857
# Test if we are trying to use run time linking or normal
12858
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
12859
# need to do runtime linking.
12860
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12861
for ld_flag in $LDFLAGS; do
12864
aix_use_runtimelinking=yes
12872
exp_sym_flag='-bexport'
12873
no_entry_flag='-bnoentry'
12876
# When large executables or shared objects are built, AIX ld can
12877
# have problems creating the table of contents. If linking a library
12878
# or program results in "error TOC overflow" add -mminimal-toc to
12879
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12880
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12882
archive_cmds_CXX=''
12883
hardcode_direct_CXX=yes
12884
hardcode_libdir_separator_CXX=':'
12885
link_all_deplibs_CXX=yes
12887
if test "$GXX" = yes; then
12888
case $host_os in aix4.[012]|aix4.[012].*)
12889
# We only want to do this on AIX 4.2 and lower, the check
12890
# below for broken collect2 doesn't work under 4.3+
12891
collect2name=`${CC} -print-prog-name=collect2`
12892
if test -f "$collect2name" && \
12893
strings "$collect2name" | grep resolve_lib_name >/dev/null
12895
# We have reworked collect2
12898
# We have old collect2
12899
hardcode_direct_CXX=unsupported
12900
# It fails to find uninstalled libraries when the uninstalled
12901
# path is not listed in the libpath. Setting hardcode_minus_L
12902
# to unsupported forces relinking
12903
hardcode_minus_L_CXX=yes
12904
hardcode_libdir_flag_spec_CXX='-L$libdir'
12905
hardcode_libdir_separator_CXX=
12909
shared_flag='-shared'
12910
if test "$aix_use_runtimelinking" = yes; then
12911
shared_flag="$shared_flag "'${wl}-G'
12915
if test "$host_cpu" = ia64; then
12916
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12917
# chokes on -Wl,-G. The following line is correct:
12920
if test "$aix_use_runtimelinking" = yes; then
12921
shared_flag='${wl}-G'
12923
shared_flag='${wl}-bM:SRE'
12928
# It seems that -bexpall does not export symbols beginning with
12929
# underscore (_), so it is better to generate a list of symbols to export.
12930
always_export_symbols_CXX=yes
12931
if test "$aix_use_runtimelinking" = yes; then
12932
# Warning - without using the other runtime loading flags (-brtl),
12933
# -berok will link without error, but may produce a broken library.
12934
allow_undefined_flag_CXX='-berok'
12935
# Determine the default libpath from the value encoded in an empty executable.
12936
cat >conftest.$ac_ext <<_ACEOF
12939
cat confdefs.h >>conftest.$ac_ext
12940
cat >>conftest.$ac_ext <<_ACEOF
12941
/* end confdefs.h. */
12951
rm -f conftest.$ac_objext conftest$ac_exeext
12952
if { (ac_try="$ac_link"
12953
case "(($ac_try" in
12954
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12955
*) ac_try_echo=$ac_try;;
12957
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12958
(eval "$ac_link") 2>conftest.er1
12960
grep -v '^ *+' conftest.er1 >conftest.err
12962
cat conftest.err >&5
12963
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964
(exit $ac_status); } && {
12965
test -z "$ac_cxx_werror_flag" ||
12966
test ! -s conftest.err
12967
} && test -s conftest$ac_exeext &&
12968
$as_test_x conftest$ac_exeext; then
12970
lt_aix_libpath_sed='
12971
/Import File Strings/,/^$/ {
12977
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12978
# Check for a 64-bit object if we didn't find anything.
12979
if test -z "$aix_libpath"; then
12980
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12983
echo "$as_me: failed program was:" >&5
12984
sed 's/^/| /' conftest.$ac_ext >&5
12989
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12990
conftest$ac_exeext conftest.$ac_ext
12991
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12993
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12995
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"
12997
if test "$host_cpu" = ia64; then
12998
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12999
allow_undefined_flag_CXX="-z nodefs"
13000
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"
13002
# Determine the default libpath from the value encoded in an empty executable.
13003
cat >conftest.$ac_ext <<_ACEOF
13006
cat confdefs.h >>conftest.$ac_ext
13007
cat >>conftest.$ac_ext <<_ACEOF
13008
/* end confdefs.h. */
13018
rm -f conftest.$ac_objext conftest$ac_exeext
13019
if { (ac_try="$ac_link"
13020
case "(($ac_try" in
13021
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13022
*) ac_try_echo=$ac_try;;
13024
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13025
(eval "$ac_link") 2>conftest.er1
13027
grep -v '^ *+' conftest.er1 >conftest.err
13029
cat conftest.err >&5
13030
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031
(exit $ac_status); } && {
13032
test -z "$ac_cxx_werror_flag" ||
13033
test ! -s conftest.err
13034
} && test -s conftest$ac_exeext &&
13035
$as_test_x conftest$ac_exeext; then
13037
lt_aix_libpath_sed='
13038
/Import File Strings/,/^$/ {
13044
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13045
# Check for a 64-bit object if we didn't find anything.
13046
if test -z "$aix_libpath"; then
13047
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13050
echo "$as_me: failed program was:" >&5
13051
sed 's/^/| /' conftest.$ac_ext >&5
13056
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13057
conftest$ac_exeext conftest.$ac_ext
13058
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13060
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13061
# Warning - without using the other run time loading flags,
13062
# -berok will link without error, but may produce a broken library.
13063
no_undefined_flag_CXX=' ${wl}-bernotok'
13064
allow_undefined_flag_CXX=' ${wl}-berok'
13065
# Exported symbols can be pulled into shared objects from archives
13066
whole_archive_flag_spec_CXX='$convenience'
13067
archive_cmds_need_lc_CXX=yes
13068
# This is similar to how AIX traditionally builds its shared libraries.
13069
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'
13075
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13076
allow_undefined_flag_CXX=unsupported
13077
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13078
# support --undefined. This deserves some investigation. FIXME
13079
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13086
case $cc_basename in
13088
# FIXME: insert proper C++ library support
13094
cygwin* | mingw* | pw32*)
13095
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13096
# as there is no search path for DLLs.
13097
hardcode_libdir_flag_spec_CXX='-L$libdir'
13098
allow_undefined_flag_CXX=unsupported
13099
always_export_symbols_CXX=no
13100
enable_shared_with_static_runtimes_CXX=yes
13102
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13103
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'
13104
# If the export-symbols file already is a .def file (1st line
13105
# is EXPORTS), use it as is; otherwise, prepend...
13106
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13107
cp $export_symbols $output_objdir/$soname.def;
13109
echo EXPORTS > $output_objdir/$soname.def;
13110
cat $export_symbols >> $output_objdir/$soname.def;
13112
$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'
13117
darwin* | rhapsody*)
13118
archive_cmds_need_lc_CXX=no
13119
hardcode_direct_CXX=no
13120
hardcode_automatic_CXX=yes
13121
hardcode_shlibpath_var_CXX=unsupported
13122
whole_archive_flag_spec_CXX=''
13123
link_all_deplibs_CXX=yes
13124
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13125
if test "$GXX" = yes ; then
13126
output_verbose_link_cmd='echo'
13127
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}"
13128
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13129
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}"
13130
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}"
13131
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13132
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}"
13133
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}"
13136
case $cc_basename in
13138
output_verbose_link_cmd='echo'
13139
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'
13140
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13141
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13142
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}'
13143
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}'
13153
case $cc_basename in
13155
# FIXME: insert proper C++ library support
13159
# Green Hills C++ Compiler
13160
# FIXME: insert proper C++ library support
13164
# FIXME: insert proper C++ library support
13170
# C++ shared libraries reported to be fairly broken before switch to ELF
13174
archive_cmds_need_lc_CXX=no
13176
freebsd* | dragonfly*)
13177
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13184
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13185
hardcode_libdir_separator_CXX=:
13186
export_dynamic_flag_spec_CXX='${wl}-E'
13187
hardcode_direct_CXX=yes
13188
hardcode_minus_L_CXX=yes # Not in the search PATH,
13189
# but as the default
13190
# location of the library.
13192
case $cc_basename in
13194
# FIXME: insert proper C++ library support
13198
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'
13199
# Commands to make compiler produce verbose output that lists
13200
# what "hidden" libraries, object files and flags are used when
13201
# linking a shared library.
13203
# There doesn't appear to be a way to prevent this compiler from
13204
# explicitly linking system object files so we need to strip them
13205
# from the output so that they don't get included in the library
13207
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'
13210
if test "$GXX" = yes; then
13211
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'
13213
# FIXME: insert proper C++ library support
13220
if test $with_gnu_ld = no; then
13221
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13222
hardcode_libdir_separator_CXX=:
13227
export_dynamic_flag_spec_CXX='${wl}-E'
13233
hardcode_direct_CXX=no
13234
hardcode_shlibpath_var_CXX=no
13237
hardcode_direct_CXX=yes
13238
hardcode_minus_L_CXX=yes # Not in the search PATH,
13239
# but as the default
13240
# location of the library.
13244
case $cc_basename in
13246
# FIXME: insert proper C++ library support
13252
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13255
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13258
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13261
# Commands to make compiler produce verbose output that lists
13262
# what "hidden" libraries, object files and flags are used when
13263
# linking a shared library.
13265
# There doesn't appear to be a way to prevent this compiler from
13266
# explicitly linking system object files so we need to strip them
13267
# from the output so that they don't get included in the library
13269
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'
13272
if test "$GXX" = yes; then
13273
if test $with_gnu_ld = no; then
13276
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13279
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13282
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'
13287
# FIXME: insert proper C++ library support
13294
hardcode_direct_CXX=no
13295
hardcode_shlibpath_var_CXX=no
13296
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13297
export_dynamic_flag_spec_CXX='${wl}-E'
13298
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13299
# Instead, shared libraries are loaded at an image base (0x10000000 by
13300
# default) and relocated if they conflict, which is a slow very memory
13301
# consuming and fragmenting process. To avoid this, we pick a random,
13302
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13303
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
13304
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'
13305
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'
13308
case $cc_basename in
13311
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'
13313
# Archives containing C++ object files must be created using
13314
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
13315
# necessary to make sure instantiated templates are included
13317
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13320
if test "$GXX" = yes; then
13321
if test "$with_gnu_ld" = no; then
13322
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'
13324
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'
13327
link_all_deplibs_CXX=yes
13330
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13331
hardcode_libdir_separator_CXX=:
13333
linux* | k*bsd*-gnu)
13334
case $cc_basename in
13336
# Kuck and Associates, Inc. (KAI) C++ Compiler
13338
# KCC will only create a shared library if the output file
13339
# ends with ".so" (or ".sl" for HP-UX), so rename the library
13340
# to its proper name (with version) after linking.
13341
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'
13342
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'
13343
# Commands to make compiler produce verbose output that lists
13344
# what "hidden" libraries, object files and flags are used when
13345
# linking a shared library.
13347
# There doesn't appear to be a way to prevent this compiler from
13348
# explicitly linking system object files so we need to strip them
13349
# from the output so that they don't get included in the library
13351
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'
13353
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13354
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13356
# Archives containing C++ object files must be created using
13357
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
13358
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13363
# version 8.0 and above of icpc choke on multiply defined symbols
13364
# if we add $predep_objects and $postdep_objects, however 7.1 and
13365
# earlier do not add the objects themselves.
13366
case `$CC -V 2>&1` in
13368
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13369
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'
13371
*) # Version 8.0 or newer
13374
ia64*) tmp_idyn=' -i_dynamic';;
13376
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13377
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'
13380
archive_cmds_need_lc_CXX=no
13381
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13382
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13383
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13386
# Portland Group C++ compiler
13387
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13388
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'
13390
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13391
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13392
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'
13396
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13397
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'
13399
runpath_var=LD_RUN_PATH
13400
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13401
hardcode_libdir_separator_CXX=:
13403
# Commands to make compiler produce verbose output that lists
13404
# what "hidden" libraries, object files and flags are used when
13405
# linking a shared library.
13407
# There doesn't appear to be a way to prevent this compiler from
13408
# explicitly linking system object files so we need to strip them
13409
# from the output so that they don't get included in the library
13411
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'
13414
case `$CC -V 2>&1 | sed 5q` in
13417
no_undefined_flag_CXX=' -zdefs'
13418
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13419
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'
13420
hardcode_libdir_flag_spec_CXX='-R$libdir'
13421
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'
13423
# Not sure whether something based on
13424
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13426
output_verbose_link_cmd='echo'
13428
# Archives containing C++ object files must be created using
13429
# "CC -xar", where "CC" is the Sun C++ compiler. This is
13430
# necessary to make sure instantiated templates are included
13432
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13439
# FIXME: insert proper C++ library support
13443
# FIXME: insert proper C++ library support
13447
case $cc_basename in
13449
# FIXME: insert proper C++ library support
13453
# FIXME: insert proper C++ library support
13458
netbsd* | netbsdelf*-gnu)
13459
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13460
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13462
hardcode_libdir_flag_spec_CXX='-R$libdir'
13463
hardcode_direct_CXX=yes
13464
hardcode_shlibpath_var_CXX=no
13466
# Workaround some broken pre-1.5 toolchains
13467
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13470
# C++ shared libraries are fairly broken
13474
if test -f /usr/libexec/ld.so; then
13475
hardcode_direct_CXX=yes
13476
hardcode_shlibpath_var_CXX=no
13477
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13478
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13479
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13480
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13481
export_dynamic_flag_spec_CXX='${wl}-E'
13482
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13484
output_verbose_link_cmd='echo'
13490
case $cc_basename in
13492
# Kuck and Associates, Inc. (KAI) C++ Compiler
13494
# KCC will only create a shared library if the output file
13495
# ends with ".so" (or ".sl" for HP-UX), so rename the library
13496
# to its proper name (with version) after linking.
13497
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'
13499
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13500
hardcode_libdir_separator_CXX=:
13502
# Archives containing C++ object files must be created using
13503
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
13504
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13508
# Rational C++ 2.4.1
13509
# FIXME: insert proper C++ library support
13513
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13514
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'
13516
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13517
hardcode_libdir_separator_CXX=:
13519
# Commands to make compiler produce verbose output that lists
13520
# what "hidden" libraries, object files and flags are used when
13521
# linking a shared library.
13523
# There doesn't appear to be a way to prevent this compiler from
13524
# explicitly linking system object files so we need to strip them
13525
# from the output so that they don't get included in the library
13527
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'
13530
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13531
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13532
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'
13534
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13535
hardcode_libdir_separator_CXX=:
13537
# Commands to make compiler produce verbose output that lists
13538
# what "hidden" libraries, object files and flags are used when
13539
# linking a shared library.
13540
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13543
# FIXME: insert proper C++ library support
13550
case $cc_basename in
13552
# Kuck and Associates, Inc. (KAI) C++ Compiler
13554
# KCC will only create a shared library if the output file
13555
# ends with ".so" (or ".sl" for HP-UX), so rename the library
13556
# to its proper name (with version) after linking.
13557
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'
13559
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13560
hardcode_libdir_separator_CXX=:
13562
# Archives containing C++ object files must be created using
13563
# the KAI C++ compiler.
13564
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13567
# Rational C++ 2.4.1
13568
# FIXME: insert proper C++ library support
13572
allow_undefined_flag_CXX=' -expect_unresolved \*'
13573
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'
13574
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13575
echo "-hidden">> $lib.exp~
13576
$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~
13579
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13580
hardcode_libdir_separator_CXX=:
13582
# Commands to make compiler produce verbose output that lists
13583
# what "hidden" libraries, object files and flags are used when
13584
# linking a shared library.
13586
# There doesn't appear to be a way to prevent this compiler from
13587
# explicitly linking system object files so we need to strip them
13588
# from the output so that they don't get included in the library
13590
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'
13593
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13594
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13595
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'
13597
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13598
hardcode_libdir_separator_CXX=:
13600
# Commands to make compiler produce verbose output that lists
13601
# what "hidden" libraries, object files and flags are used when
13602
# linking a shared library.
13603
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13606
# FIXME: insert proper C++ library support
13613
# FIXME: insert proper C++ library support
13617
case $cc_basename in
13620
# FIXME: insert proper C++ library support
13625
# FIXME: insert proper C++ library support
13629
# FIXME: insert proper C++ library support
13635
case $cc_basename in
13637
# Sun C++ 4.2, 5.x and Centerline C++
13638
archive_cmds_need_lc_CXX=yes
13639
no_undefined_flag_CXX=' -zdefs'
13640
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13641
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13642
$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'
13644
hardcode_libdir_flag_spec_CXX='-R$libdir'
13645
hardcode_shlibpath_var_CXX=no
13647
solaris2.[0-5] | solaris2.[0-5].*) ;;
13649
# The compiler driver will combine and reorder linker options,
13650
# but understands `-z linker_flag'.
13651
# Supported since Solaris 2.6 (maybe 2.5.1?)
13652
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13655
link_all_deplibs_CXX=yes
13657
output_verbose_link_cmd='echo'
13659
# Archives containing C++ object files must be created using
13660
# "CC -xar", where "CC" is the Sun C++ compiler. This is
13661
# necessary to make sure instantiated templates are included
13663
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13666
# Green Hills C++ Compiler
13667
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13669
# The C++ compiler must be used to create the archive.
13670
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13673
# GNU C++ compiler with Solaris linker
13674
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13675
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13676
if $CC --version | grep -v '^2\.7' > /dev/null; then
13677
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13678
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13679
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13681
# Commands to make compiler produce verbose output that lists
13682
# what "hidden" libraries, object files and flags are used when
13683
# linking a shared library.
13684
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13686
# g++ 2.7 appears to require `-G' NOT `-shared' on this
13688
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13689
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13690
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13692
# Commands to make compiler produce verbose output that lists
13693
# what "hidden" libraries, object files and flags are used when
13694
# linking a shared library.
13695
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13698
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13700
solaris2.[0-5] | solaris2.[0-5].*) ;;
13702
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13709
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13710
no_undefined_flag_CXX='${wl}-z,text'
13711
archive_cmds_need_lc_CXX=no
13712
hardcode_shlibpath_var_CXX=no
13713
runpath_var='LD_RUN_PATH'
13715
case $cc_basename in
13717
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13718
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13721
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13722
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13726
sysv5* | sco3.2v5* | sco5v6*)
13727
# Note: We can NOT use -z defs as we might desire, because we do not
13728
# link with -lc, and that would cause any symbols used from libc to
13729
# always be unresolved, which means just about no library would
13730
# ever link correctly. If we're not using GNU ld we use -z text
13731
# though, which does catch some bad symbols but isn't as heavy-handed
13733
# For security reasons, it is highly recommended that you always
13734
# use absolute paths for naming shared libraries, and exclude the
13735
# DT_RUNPATH tag from executables and libraries. But doing so
13736
# requires that you compile everything twice, which is a pain.
13737
# So that behaviour is only enabled if SCOABSPATH is set to a
13738
# non-empty value in the environment. Most likely only useful for
13739
# creating official distributions of packages.
13740
# This is a hack until libtool officially supports absolute path
13741
# names for shared libraries.
13742
no_undefined_flag_CXX='${wl}-z,text'
13743
allow_undefined_flag_CXX='${wl}-z,nodefs'
13744
archive_cmds_need_lc_CXX=no
13745
hardcode_shlibpath_var_CXX=no
13746
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13747
hardcode_libdir_separator_CXX=':'
13748
link_all_deplibs_CXX=yes
13749
export_dynamic_flag_spec_CXX='${wl}-Bexport'
13750
runpath_var='LD_RUN_PATH'
13752
case $cc_basename in
13754
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13755
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13758
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13759
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13764
case $cc_basename in
13766
# NonStop-UX NCC 3.20
13767
# FIXME: insert proper C++ library support
13771
# FIXME: insert proper C++ library support
13777
# FIXME: insert proper C++ library support
13781
# FIXME: insert proper C++ library support
13785
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13786
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13787
test "$ld_shlibs_CXX" = no && can_build_shared=no
13792
cat > conftest.$ac_ext <<EOF
13796
Foo (void) { a = 0; }
13802
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13803
(eval $ac_compile) 2>&5
13805
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806
(exit $ac_status); }; then
13807
# Parse the compiler output and extract the necessary
13808
# objects, libraries and library flags.
13810
# Sentinel used to keep track of whether or not we are before
13811
# the conftest object file.
13812
pre_test_object_deps_done=no
13814
# The `*' in the case matches for architectures that use `case' in
13815
# $output_verbose_cmd can trigger glob expansion during the loop
13816
# eval without this substitution.
13817
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13819
for p in `eval $output_verbose_link_cmd`; do
13823
# Some compilers place space between "-{L,R}" and the path.
13824
# Remove the space.
13825
if test $p = "-L" \
13826
|| test $p = "-R"; then
13833
if test "$pre_test_object_deps_done" = no; then
13836
# Internal compiler library paths should come after those
13837
# provided the user. The postdeps already come after the
13838
# user supplied libs so there is no need to process them.
13839
if test -z "$compiler_lib_search_path_CXX"; then
13840
compiler_lib_search_path_CXX="${prev}${p}"
13842
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13845
# The "-l" case would never come before the object being
13846
# linked, so don't bother handling this case.
13849
if test -z "$postdeps_CXX"; then
13850
postdeps_CXX="${prev}${p}"
13852
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13858
# This assumes that the test object file only shows up
13859
# once in the compiler output.
13860
if test "$p" = "conftest.$objext"; then
13861
pre_test_object_deps_done=yes
13865
if test "$pre_test_object_deps_done" = no; then
13866
if test -z "$predep_objects_CXX"; then
13867
predep_objects_CXX="$p"
13869
predep_objects_CXX="$predep_objects_CXX $p"
13872
if test -z "$postdep_objects_CXX"; then
13873
postdep_objects_CXX="$p"
13875
postdep_objects_CXX="$postdep_objects_CXX $p"
13880
*) ;; # Ignore the rest.
13888
echo "libtool.m4: error: problem compiling CXX test program"
13891
$rm -f confest.$objext
13893
compiler_lib_search_dirs_CXX=
13894
if test -n "$compiler_lib_search_path_CXX"; then
13895
compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13898
# PORTME: override above test on systems where it is broken
13901
# Interix 3.5 installs completely hosed .la files for C++, so rather than
13902
# hack all around it, let's just trust "g++" to DTRT.
13903
predep_objects_CXX=
13904
postdep_objects_CXX=
13909
case `$CC -V 2>&1 | sed 5q` in
13913
# The more standards-conforming stlport4 library is
13914
# incompatible with the Cstd library. Avoid specifying
13915
# it if it's in CXXFLAGS. Ignore libCrun as
13916
# -library=stlport4 depends on it.
13917
case " $CXX $CXXFLAGS " in
13918
*" -library=stlport4 "*)
13919
solaris_use_stlport4=yes
13922
if test "$solaris_use_stlport4" != yes; then
13923
postdeps_CXX='-library=Cstd -library=Crun'
13930
case $cc_basename in
13932
# The more standards-conforming stlport4 library is
13933
# incompatible with the Cstd library. Avoid specifying
13934
# it if it's in CXXFLAGS. Ignore libCrun as
13935
# -library=stlport4 depends on it.
13936
case " $CXX $CXXFLAGS " in
13937
*" -library=stlport4 "*)
13938
solaris_use_stlport4=yes
13942
# Adding this requires a known-good setup of shared libraries for
13943
# Sun compiler versions before 5.6, else PIC objects from an old
13944
# archive will be linked into the output, leading to subtle bugs.
13945
if test "$solaris_use_stlport4" != yes; then
13946
postdeps_CXX='-library=Cstd -library=Crun'
13953
case " $postdeps_CXX " in
13954
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13957
lt_prog_compiler_wl_CXX=
13958
lt_prog_compiler_pic_CXX=
13959
lt_prog_compiler_static_CXX=
13961
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13962
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13964
# C++ specific cases for pic, static, wl, etc.
13965
if test "$GXX" = yes; then
13966
lt_prog_compiler_wl_CXX='-Wl,'
13967
lt_prog_compiler_static_CXX='-static'
13971
# All AIX code is PIC.
13972
if test "$host_cpu" = ia64; then
13973
# AIX 5 now supports IA64 processor
13974
lt_prog_compiler_static_CXX='-Bstatic'
13978
# FIXME: we need at least 68020 code to build shared libraries, but
13979
# adding the `-m68020' flag to GCC prevents building anything better,
13981
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13983
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13984
# PIC is the default for these OSes.
13986
mingw* | cygwin* | os2* | pw32*)
13987
# This hack is so that the source file can tell whether it is being
13988
# built for inclusion in a dll (and should export symbols for example).
13989
# Although the cygwin gcc ignores -fPIC, still need this for old-style
13990
# (--disable-auto-import) libraries
13991
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13993
darwin* | rhapsody*)
13994
# PIC is the default on this platform
13995
# Common symbols not allowed in MH_DYLIB files
13996
lt_prog_compiler_pic_CXX='-fno-common'
13999
# DJGPP does not support shared libraries at all
14000
lt_prog_compiler_pic_CXX=
14003
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
14004
# Instead, we relocate shared libraries at runtime.
14007
if test -d /usr/nec; then
14008
lt_prog_compiler_pic_CXX=-Kconform_pic
14012
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14013
# not for PA HP-UX.
14018
lt_prog_compiler_pic_CXX='-fPIC'
14023
lt_prog_compiler_pic_CXX='-fPIC'
14029
# All AIX code is PIC.
14030
if test "$host_cpu" = ia64; then
14031
# AIX 5 now supports IA64 processor
14032
lt_prog_compiler_static_CXX='-Bstatic'
14034
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14038
case $cc_basename in
14040
# Green Hills C++ Compiler
14041
# _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"
14046
# PIC is the default on this platform
14047
# Common symbols not allowed in MH_DYLIB files
14048
case $cc_basename in
14050
lt_prog_compiler_pic_CXX='-qnocommon'
14051
lt_prog_compiler_wl_CXX='-Wl,'
14056
case $cc_basename in
14058
lt_prog_compiler_pic_CXX='-KPIC'
14061
# Green Hills C++ Compiler
14062
lt_prog_compiler_pic_CXX='-pic'
14068
freebsd* | dragonfly*)
14069
# FreeBSD uses GNU C++
14071
hpux9* | hpux10* | hpux11*)
14072
case $cc_basename in
14074
lt_prog_compiler_wl_CXX='-Wl,'
14075
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14076
if test "$host_cpu" != ia64; then
14077
lt_prog_compiler_pic_CXX='+Z'
14081
lt_prog_compiler_wl_CXX='-Wl,'
14082
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14088
lt_prog_compiler_pic_CXX='+Z'
14097
# This is c89, which is MS Visual C++ (no shared libs)
14098
# Anyone wants to do a port?
14100
irix5* | irix6* | nonstopux*)
14101
case $cc_basename in
14103
lt_prog_compiler_wl_CXX='-Wl,'
14104
lt_prog_compiler_static_CXX='-non_shared'
14105
# CC pic flag -KPIC is the default.
14111
linux* | k*bsd*-gnu)
14112
case $cc_basename in
14115
lt_prog_compiler_wl_CXX='--backend -Wl,'
14116
lt_prog_compiler_pic_CXX='-fPIC'
14120
lt_prog_compiler_wl_CXX='-Wl,'
14121
lt_prog_compiler_pic_CXX='-KPIC'
14122
lt_prog_compiler_static_CXX='-static'
14125
# Portland Group C++ compiler.
14126
lt_prog_compiler_wl_CXX='-Wl,'
14127
lt_prog_compiler_pic_CXX='-fpic'
14128
lt_prog_compiler_static_CXX='-Bstatic'
14132
# Make sure the PIC flag is empty. It appears that all Alpha
14133
# Linux and Compaq Tru64 Unix objects are PIC.
14134
lt_prog_compiler_pic_CXX=
14135
lt_prog_compiler_static_CXX='-non_shared'
14138
case `$CC -V 2>&1 | sed 5q` in
14141
lt_prog_compiler_pic_CXX='-KPIC'
14142
lt_prog_compiler_static_CXX='-Bstatic'
14143
lt_prog_compiler_wl_CXX='-Qoption ld '
14154
case $cc_basename in
14156
lt_prog_compiler_pic_CXX='-W c,exportall'
14162
netbsd* | netbsdelf*-gnu)
14164
osf3* | osf4* | osf5*)
14165
case $cc_basename in
14167
lt_prog_compiler_wl_CXX='--backend -Wl,'
14170
# Rational C++ 2.4.1
14171
lt_prog_compiler_pic_CXX='-pic'
14174
# Digital/Compaq C++
14175
lt_prog_compiler_wl_CXX='-Wl,'
14176
# Make sure the PIC flag is empty. It appears that all Alpha
14177
# Linux and Compaq Tru64 Unix objects are PIC.
14178
lt_prog_compiler_pic_CXX=
14179
lt_prog_compiler_static_CXX='-non_shared'
14188
case $cc_basename in
14190
# Sun C++ 4.2, 5.x and Centerline C++
14191
lt_prog_compiler_pic_CXX='-KPIC'
14192
lt_prog_compiler_static_CXX='-Bstatic'
14193
lt_prog_compiler_wl_CXX='-Qoption ld '
14196
# Green Hills C++ Compiler
14197
lt_prog_compiler_pic_CXX='-PIC'
14204
case $cc_basename in
14207
lt_prog_compiler_pic_CXX='-pic'
14208
lt_prog_compiler_static_CXX='-Bstatic'
14212
lt_prog_compiler_pic_CXX='-pic'
14219
case $cc_basename in
14221
# NonStop-UX NCC 3.20
14222
lt_prog_compiler_pic_CXX='-KPIC'
14228
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14229
case $cc_basename in
14231
lt_prog_compiler_wl_CXX='-Wl,'
14232
lt_prog_compiler_pic_CXX='-KPIC'
14233
lt_prog_compiler_static_CXX='-Bstatic'
14240
lt_prog_compiler_can_build_shared_CXX=no
14245
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14246
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14249
# Check to make sure the PIC flag actually works.
14251
if test -n "$lt_prog_compiler_pic_CXX"; then
14253
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14254
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14255
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14256
echo $ECHO_N "(cached) $ECHO_C" >&6
14258
lt_cv_prog_compiler_pic_works_CXX=no
14259
ac_outfile=conftest.$ac_objext
14260
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14261
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14262
# Insert the option either (1) after the last *FLAGS variable, or
14263
# (2) before a word containing "conftest.", or (3) at the end.
14264
# Note that $ac_compile itself does not contain backslashes and begins
14265
# with a dollar sign (not a hyphen), so the echo should work correctly.
14266
# The option is referenced via a variable to avoid confusing sed.
14267
lt_compile=`echo "$ac_compile" | $SED \
14268
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14269
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14270
-e 's:$: $lt_compiler_flag:'`
14271
(eval echo "\"\$as_me:14271: $lt_compile\"" >&5)
14272
(eval "$lt_compile" 2>conftest.err)
14274
cat conftest.err >&5
14275
echo "$as_me:14275: \$? = $ac_status" >&5
14276
if (exit $ac_status) && test -s "$ac_outfile"; then
14277
# The compiler can only warn and ignore the option if not recognized
14278
# So say no if there are warnings other than the usual output.
14279
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14280
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14281
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14282
lt_cv_prog_compiler_pic_works_CXX=yes
14288
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14289
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14291
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14292
case $lt_prog_compiler_pic_CXX in
14294
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14297
lt_prog_compiler_pic_CXX=
14298
lt_prog_compiler_can_build_shared_CXX=no
14303
# For platforms which do not support PIC, -DPIC is meaningless:
14305
lt_prog_compiler_pic_CXX=
14308
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14313
# Check to make sure the static flag actually works.
14315
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14316
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14317
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14318
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14319
echo $ECHO_N "(cached) $ECHO_C" >&6
14321
lt_cv_prog_compiler_static_works_CXX=no
14322
save_LDFLAGS="$LDFLAGS"
14323
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14324
echo "$lt_simple_link_test_code" > conftest.$ac_ext
14325
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14326
# The linker can only warn and ignore the option if not recognized
14327
# So say no if there are warnings
14328
if test -s conftest.err; then
14329
# Append any errors to the config.log.
14330
cat conftest.err 1>&5
14331
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14332
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14333
if diff conftest.exp conftest.er2 >/dev/null; then
14334
lt_cv_prog_compiler_static_works_CXX=yes
14337
lt_cv_prog_compiler_static_works_CXX=yes
14341
LDFLAGS="$save_LDFLAGS"
14344
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14345
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14347
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14350
lt_prog_compiler_static_CXX=
14354
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14355
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14356
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14357
echo $ECHO_N "(cached) $ECHO_C" >&6
14359
lt_cv_prog_compiler_c_o_CXX=no
14360
$rm -r conftest 2>/dev/null
14364
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14366
lt_compiler_flag="-o out/conftest2.$ac_objext"
14367
# Insert the option either (1) after the last *FLAGS variable, or
14368
# (2) before a word containing "conftest.", or (3) at the end.
14369
# Note that $ac_compile itself does not contain backslashes and begins
14370
# with a dollar sign (not a hyphen), so the echo should work correctly.
14371
lt_compile=`echo "$ac_compile" | $SED \
14372
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14373
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14374
-e 's:$: $lt_compiler_flag:'`
14375
(eval echo "\"\$as_me:14375: $lt_compile\"" >&5)
14376
(eval "$lt_compile" 2>out/conftest.err)
14378
cat out/conftest.err >&5
14379
echo "$as_me:14379: \$? = $ac_status" >&5
14380
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14382
# The compiler can only warn and ignore the option if not recognized
14383
# So say no if there are warnings
14384
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14385
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14386
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14387
lt_cv_prog_compiler_c_o_CXX=yes
14392
# SGI C++ compiler will create directory out/ii_files/ for
14393
# template instantiation
14394
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14395
$rm out/* && rmdir out
14401
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14402
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14405
hard_links="nottested"
14406
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14407
# do not overwrite the value of need_locks provided by the user
14408
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14409
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14412
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14414
ln conftest.a conftest.b 2>&5 || hard_links=no
14415
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14416
{ echo "$as_me:$LINENO: result: $hard_links" >&5
14417
echo "${ECHO_T}$hard_links" >&6; }
14418
if test "$hard_links" = no; then
14419
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14420
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14427
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14428
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14430
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14433
# If we're using GNU nm, then we don't want the "-C" option.
14434
# -C means demangle to AIX nm, but means don't demangle with GNU nm
14435
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14436
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'
14438
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'
14442
export_symbols_cmds_CXX="$ltdll_cmds"
14445
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'
14447
linux* | k*bsd*-gnu)
14448
link_all_deplibs_CXX=no
14451
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14454
exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14456
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14457
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14458
test "$ld_shlibs_CXX" = no && can_build_shared=no
14461
# Do we need to explicitly link libc?
14463
case "x$archive_cmds_need_lc_CXX" in
14465
# Assume -lc should be added
14466
archive_cmds_need_lc_CXX=yes
14468
if test "$enable_shared" = yes && test "$GCC" = yes; then
14469
case $archive_cmds_CXX in
14471
# FIXME: we may have to deal with multi-command sequences.
14474
# Test whether the compiler implicitly links with -lc since on some
14475
# systems, -lgcc has to come before -lc. If gcc already passes -lc
14476
# to ld, don't add -lc before -lgcc.
14477
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14478
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14480
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14482
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14483
(eval $ac_compile) 2>&5
14485
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486
(exit $ac_status); } 2>conftest.err; then
14489
libobjs=conftest.$ac_objext
14491
wl=$lt_prog_compiler_wl_CXX
14492
pic_flag=$lt_prog_compiler_pic_CXX
14498
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14499
allow_undefined_flag_CXX=
14500
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14501
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14503
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14504
(exit $ac_status); }
14506
archive_cmds_need_lc_CXX=no
14508
archive_cmds_need_lc_CXX=yes
14510
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14512
cat conftest.err 1>&5
14515
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14516
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14523
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14524
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14525
library_names_spec=
14526
libname_spec='lib$name'
14530
postuninstall_cmds=
14534
shlibpath_overrides_runpath=unknown
14536
dynamic_linker="$host_os ld.so"
14537
sys_lib_dlsearch_path_spec="/lib /usr/lib"
14539
need_lib_prefix=unknown
14540
hardcode_into_libs=no
14542
# when you set need_version to no, make sure it does not cause -set_version
14543
# flags to be left without arguments
14544
need_version=unknown
14549
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14550
shlibpath_var=LIBPATH
14552
# AIX 3 has no versioning support, so we append a major version to the name.
14553
soname_spec='${libname}${release}${shared_ext}$major'
14560
hardcode_into_libs=yes
14561
if test "$host_cpu" = ia64; then
14562
# AIX 5 supports IA64
14563
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14564
shlibpath_var=LD_LIBRARY_PATH
14566
# With GCC up to 2.95.x, collect2 would create an import file
14567
# for dependence libraries. The import file would start with
14568
# the line `#! .'. This would cause the generated library to
14569
# depend on `.', always an invalid library. This was fixed in
14570
# development snapshots of GCC prior to 3.0.
14572
aix4 | aix4.[01] | aix4.[01].*)
14573
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14575
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14578
can_build_shared=no
14582
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14583
# soname into executable. Probably we can add versioning support to
14584
# collect2, so additional links can be useful in future.
14585
if test "$aix_use_runtimelinking" = yes; then
14586
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
14587
# instead of lib<name>.a to let people know that these are not
14588
# typical AIX shared libraries.
14589
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14591
# We preserve .a as extension for shared libraries through AIX4.2
14592
# and later when we are not doing run time linking.
14593
library_names_spec='${libname}${release}.a $libname.a'
14594
soname_spec='${libname}${release}${shared_ext}$major'
14596
shlibpath_var=LIBPATH
14601
library_names_spec='$libname.ixlibrary $libname.a'
14602
# Create ${libname}_ixlibrary.a entries in /sys/libs.
14603
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'
14607
library_names_spec='${libname}${shared_ext}'
14608
dynamic_linker="$host_os ld.so"
14609
shlibpath_var=LIBRARY_PATH
14615
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14616
soname_spec='${libname}${release}${shared_ext}$major'
14617
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14618
shlibpath_var=LD_LIBRARY_PATH
14619
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14620
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14621
# the default ld.so.conf also contains /usr/contrib/lib and
14622
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14623
# libtool to hard-code these into programs
14626
cygwin* | mingw* | pw32*)
14627
version_type=windows
14632
case $GCC,$host_os in
14633
yes,cygwin* | yes,mingw* | yes,pw32*)
14634
library_names_spec='$libname.dll.a'
14635
# DLL is installed to $(libdir)/../bin by postinstall_cmds
14636
postinstall_cmds='base_file=`basename \${file}`~
14637
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14638
dldir=$destdir/`dirname \$dlpath`~
14639
test -d \$dldir || mkdir -p \$dldir~
14640
$install_prog $dir/$dlname \$dldir/$dlname~
14641
chmod a+x \$dldir/$dlname'
14642
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14643
dlpath=$dir/\$dldll~
14645
shlibpath_overrides_runpath=yes
14649
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
14650
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14651
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14654
# MinGW DLLs use traditional 'lib' prefix
14655
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14656
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14657
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14658
# It is most probably a Windows format PATH printed by
14659
# mingw gcc, but we are running on Cygwin. Gcc prints its search
14660
# path with ; separators, and with drive letters. We can handle the
14661
# drive letters (cygwin fileutils understands them), so leave them,
14662
# especially as we might pass files found there to a mingw objdump,
14663
# which wouldn't understand a cygwinified path. Ahh.
14664
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14666
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14670
# pw32 DLLs use 'pw' prefix rather than 'lib'
14671
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14677
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14680
dynamic_linker='Win32 ld.exe'
14681
# FIXME: first we should search . and the directory the executable is in
14685
darwin* | rhapsody*)
14686
dynamic_linker="$host_os dyld"
14687
version_type=darwin
14690
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14691
soname_spec='${libname}${release}${major}$shared_ext'
14692
shlibpath_overrides_runpath=yes
14693
shlibpath_var=DYLD_LIBRARY_PATH
14694
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14696
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14703
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14704
soname_spec='${libname}${release}${shared_ext}$major'
14705
shlibpath_var=LD_LIBRARY_PATH
14712
freebsd* | dragonfly*)
14713
# DragonFly does not have aout. When/if they implement a new
14714
# versioning mechanism, adjust this.
14715
if test -x /usr/bin/objformat; then
14716
objformat=`/usr/bin/objformat`
14719
freebsd[123]*) objformat=aout ;;
14720
*) objformat=elf ;;
14723
version_type=freebsd-$objformat
14724
case $version_type in
14726
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14731
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14735
shlibpath_var=LD_LIBRARY_PATH
14738
shlibpath_overrides_runpath=yes
14740
freebsd3.[01]* | freebsdelf3.[01]*)
14741
shlibpath_overrides_runpath=yes
14742
hardcode_into_libs=yes
14744
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14745
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14746
shlibpath_overrides_runpath=no
14747
hardcode_into_libs=yes
14749
*) # from 4.6 on, and DragonFly
14750
shlibpath_overrides_runpath=yes
14751
hardcode_into_libs=yes
14760
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14761
soname_spec='${libname}${release}${shared_ext}$major'
14762
shlibpath_var=LD_LIBRARY_PATH
14763
hardcode_into_libs=yes
14766
hpux9* | hpux10* | hpux11*)
14767
# Give a soname corresponding to the major version so that dld.sl refuses to
14768
# link against other versions.
14775
hardcode_into_libs=yes
14776
dynamic_linker="$host_os dld.so"
14777
shlibpath_var=LD_LIBRARY_PATH
14778
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14779
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14780
soname_spec='${libname}${release}${shared_ext}$major'
14781
if test "X$HPUX_IA64_MODE" = X32; then
14782
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14784
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14786
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14790
hardcode_into_libs=yes
14791
dynamic_linker="$host_os dld.sl"
14792
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14793
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14797
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14801
dynamic_linker="$host_os dld.sl"
14802
shlibpath_var=SHLIB_PATH
14803
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14804
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14805
soname_spec='${libname}${release}${shared_ext}$major'
14808
# HP-UX runs *really* slowly unless shared libraries are mode 555.
14809
postinstall_cmds='chmod 555 $lib'
14816
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14817
soname_spec='${libname}${release}${shared_ext}$major'
14818
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14819
shlibpath_var=LD_LIBRARY_PATH
14820
shlibpath_overrides_runpath=no
14821
hardcode_into_libs=yes
14824
irix5* | irix6* | nonstopux*)
14826
nonstopux*) version_type=nonstopux ;;
14828
if test "$lt_cv_prog_gnu_ld" = yes; then
14836
soname_spec='${libname}${release}${shared_ext}$major'
14837
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14839
irix5* | nonstopux*)
14840
libsuff= shlibsuff=
14843
case $LD in # libtool.m4 will add one of these switches to LD
14844
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14845
libsuff= shlibsuff= libmagic=32-bit;;
14846
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14847
libsuff=32 shlibsuff=N32 libmagic=N32;;
14848
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14849
libsuff=64 shlibsuff=64 libmagic=64-bit;;
14850
*) libsuff= shlibsuff= libmagic=never-match;;
14854
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14855
shlibpath_overrides_runpath=no
14856
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14857
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14858
hardcode_into_libs=yes
14861
# No shared lib support for Linux oldld, aout, or coff.
14862
linux*oldld* | linux*aout* | linux*coff*)
14866
# This must be Linux ELF.
14867
linux* | k*bsd*-gnu)
14871
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14872
soname_spec='${libname}${release}${shared_ext}$major'
14873
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14874
shlibpath_var=LD_LIBRARY_PATH
14875
shlibpath_overrides_runpath=no
14876
# This implies no fast_install, which is unacceptable.
14877
# Some rework will be needed to allow for fast_install
14878
# before this can be enabled.
14879
hardcode_into_libs=yes
14881
# Append ld.so.conf contents to the search path
14882
if test -f /etc/ld.so.conf; then
14883
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' ' '`
14884
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14887
# We used to test for /lib/ld.so.1 and disable shared libraries on
14888
# powerpc, because MkLinux only supported shared libraries with the
14889
# GNU dynamic linker. Since this was broken with cross compilers,
14890
# most powerpc-linux boxes support dynamic linking these days and
14891
# people can always --disable-shared, the test was removed, and we
14892
# assume the GNU/Linux dynamic linker is in use.
14893
dynamic_linker='GNU/Linux ld.so'
14900
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14901
soname_spec='${libname}${release}${shared_ext}$major'
14902
shlibpath_var=LD_LIBRARY_PATH
14903
shlibpath_overrides_runpath=no
14904
hardcode_into_libs=yes
14905
dynamic_linker='NetBSD ld.elf_so'
14912
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14913
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14914
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14915
dynamic_linker='NetBSD (a.out) ld.so'
14917
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14918
soname_spec='${libname}${release}${shared_ext}$major'
14919
dynamic_linker='NetBSD ld.elf_so'
14921
shlibpath_var=LD_LIBRARY_PATH
14922
shlibpath_overrides_runpath=yes
14923
hardcode_into_libs=yes
14928
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14929
shlibpath_var=LD_LIBRARY_PATH
14930
shlibpath_overrides_runpath=yes
14937
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14938
soname_spec='${libname}${release}${shared_ext}$major'
14939
shlibpath_var=LD_LIBRARY_PATH
14940
shlibpath_overrides_runpath=yes
14945
sys_lib_dlsearch_path_spec="/usr/lib"
14947
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14949
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14950
*) need_version=no ;;
14952
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14953
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14954
shlibpath_var=LD_LIBRARY_PATH
14955
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14957
openbsd2.[89] | openbsd2.[89].*)
14958
shlibpath_overrides_runpath=no
14961
shlibpath_overrides_runpath=yes
14965
shlibpath_overrides_runpath=yes
14970
libname_spec='$name'
14973
library_names_spec='$libname${shared_ext} $libname.a'
14974
dynamic_linker='OS/2 ld.exe'
14975
shlibpath_var=LIBPATH
14978
osf3* | osf4* | osf5*)
14982
soname_spec='${libname}${release}${shared_ext}$major'
14983
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14984
shlibpath_var=LD_LIBRARY_PATH
14985
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14986
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14997
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14998
soname_spec='${libname}${release}${shared_ext}$major'
14999
shlibpath_var=LD_LIBRARY_PATH
15000
shlibpath_overrides_runpath=yes
15001
hardcode_into_libs=yes
15002
# ldd complains unless libraries are executable
15003
postinstall_cmds='chmod +x $lib'
15008
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15009
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15010
shlibpath_var=LD_LIBRARY_PATH
15011
shlibpath_overrides_runpath=yes
15012
if test "$with_gnu_ld" = yes; then
15020
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15021
soname_spec='${libname}${release}${shared_ext}$major'
15022
shlibpath_var=LD_LIBRARY_PATH
15023
case $host_vendor in
15025
shlibpath_overrides_runpath=no
15027
export_dynamic_flag_spec='${wl}-Blargedynsym'
15028
runpath_var=LD_RUN_PATH
15036
shlibpath_overrides_runpath=no
15037
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15043
if test -d /usr/nec ;then
15045
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15046
soname_spec='$libname${shared_ext}.$major'
15047
shlibpath_var=LD_LIBRARY_PATH
15051
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15052
version_type=freebsd-elf
15055
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15056
soname_spec='${libname}${release}${shared_ext}$major'
15057
shlibpath_var=LD_LIBRARY_PATH
15058
hardcode_into_libs=yes
15059
if test "$with_gnu_ld" = yes; then
15060
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15061
shlibpath_overrides_runpath=no
15063
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15064
shlibpath_overrides_runpath=yes
15067
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15071
sys_lib_dlsearch_path_spec='/usr/lib'
15076
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15077
soname_spec='${libname}${release}${shared_ext}$major'
15078
shlibpath_var=LD_LIBRARY_PATH
15085
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15086
echo "${ECHO_T}$dynamic_linker" >&6; }
15087
test "$dynamic_linker" = no && can_build_shared=no
15089
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15090
echo $ECHO_N "(cached) $ECHO_C" >&6
15092
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
15095
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15096
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15097
echo $ECHO_N "(cached) $ECHO_C" >&6
15099
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
15102
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15104
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15105
if test "$GCC" = yes; then
15106
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15109
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15110
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15111
hardcode_action_CXX=
15112
if test -n "$hardcode_libdir_flag_spec_CXX" || \
15113
test -n "$runpath_var_CXX" || \
15114
test "X$hardcode_automatic_CXX" = "Xyes" ; then
15116
# We can hardcode non-existant directories.
15117
if test "$hardcode_direct_CXX" != no &&
15118
# If the only mechanism to avoid hardcoding is shlibpath_var, we
15119
# have to relink, otherwise we might link with an installed library
15120
# when we should be linking with a yet-to-be-installed one
15121
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15122
test "$hardcode_minus_L_CXX" != no; then
15123
# Linking always hardcodes the temporary library directory.
15124
hardcode_action_CXX=relink
15126
# We can link without hardcoding, and we can hardcode nonexisting dirs.
15127
hardcode_action_CXX=immediate
15130
# We cannot hardcode anything, or else we can only hardcode existing
15132
hardcode_action_CXX=unsupported
15134
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15135
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15137
if test "$hardcode_action_CXX" = relink; then
15138
# Fast installation is not supported
15139
enable_fast_install=no
15140
elif test "$shlibpath_overrides_runpath" = yes ||
15141
test "$enable_shared" = no; then
15142
# Fast installation is not necessary
15143
enable_fast_install=needless
15147
# The else clause should only fire when bootstrapping the
15148
# libtool distribution, otherwise you forgot to ship ltmain.sh
15149
# with your package, and you will get complaints that there are
15150
# no rules to generate ltmain.sh.
15151
if test -f "$ltmain"; then
15152
# See if we are running on zsh, and set the options which allow our commands through
15153
# without removal of \ escapes.
15154
if test -n "${ZSH_VERSION+set}" ; then
15155
setopt NO_GLOB_SUBST
15157
# Now quote all the things that may contain metacharacters while being
15158
# careful not to overquote the AC_SUBSTed values. We take copies of the
15159
# variables and quote the copies for generation of the libtool script.
15160
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15162
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15163
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15164
deplibs_check_method reload_flag reload_cmds need_locks \
15165
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15166
lt_cv_sys_global_symbol_to_c_name_address \
15167
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15168
old_postinstall_cmds old_postuninstall_cmds \
15172
lt_prog_compiler_wl_CXX \
15173
lt_prog_compiler_pic_CXX \
15174
lt_prog_compiler_static_CXX \
15175
lt_prog_compiler_no_builtin_flag_CXX \
15176
export_dynamic_flag_spec_CXX \
15177
thread_safe_flag_spec_CXX \
15178
whole_archive_flag_spec_CXX \
15179
enable_shared_with_static_runtimes_CXX \
15180
old_archive_cmds_CXX \
15181
old_archive_from_new_cmds_CXX \
15182
predep_objects_CXX \
15183
postdep_objects_CXX \
15186
compiler_lib_search_path_CXX \
15187
compiler_lib_search_dirs_CXX \
15189
archive_expsym_cmds_CXX \
15190
postinstall_cmds_CXX \
15191
postuninstall_cmds_CXX \
15192
old_archive_from_expsyms_cmds_CXX \
15193
allow_undefined_flag_CXX \
15194
no_undefined_flag_CXX \
15195
export_symbols_cmds_CXX \
15196
hardcode_libdir_flag_spec_CXX \
15197
hardcode_libdir_flag_spec_ld_CXX \
15198
hardcode_libdir_separator_CXX \
15199
hardcode_automatic_CXX \
15201
module_expsym_cmds_CXX \
15202
lt_cv_prog_compiler_c_o_CXX \
15203
fix_srcfile_path_CXX \
15204
exclude_expsyms_CXX \
15205
include_expsyms_CXX; do
15208
old_archive_cmds_CXX | \
15209
old_archive_from_new_cmds_CXX | \
15210
archive_cmds_CXX | \
15211
archive_expsym_cmds_CXX | \
15212
module_cmds_CXX | \
15213
module_expsym_cmds_CXX | \
15214
old_archive_from_expsyms_cmds_CXX | \
15215
export_symbols_cmds_CXX | \
15216
extract_expsyms_cmds | reload_cmds | finish_cmds | \
15217
postinstall_cmds | postuninstall_cmds | \
15218
old_postinstall_cmds | old_postuninstall_cmds | \
15219
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15220
# Double-quote double-evaled strings.
15221
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15224
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15230
*'\$0 --fallback-echo"')
15231
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15237
cat <<__EOF__ >> "$cfgfile"
15238
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15240
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15242
# Shell to use when invoking shell scripts.
15245
# Whether or not to build shared libraries.
15246
build_libtool_libs=$enable_shared
15248
# Whether or not to build static libraries.
15249
build_old_libs=$enable_static
15251
# Whether or not to add -lc for building shared libraries.
15252
build_libtool_need_lc=$archive_cmds_need_lc_CXX
15254
# Whether or not to disallow shared libs when runtime libs are static
15255
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15257
# Whether or not to optimize for fast installation.
15258
fast_install=$enable_fast_install
15261
host_alias=$host_alias
15265
# The build system.
15266
build_alias=$build_alias
15270
# An echo program that does not interpret backslashes.
15275
AR_FLAGS=$lt_AR_FLAGS
15280
# LTCC compiler flags.
15281
LTCFLAGS=$lt_LTCFLAGS
15283
# A language-specific compiler.
15284
CC=$lt_compiler_CXX
15286
# Is the compiler the GNU C compiler?
15292
# The linker used to build libraries.
15295
# Whether we need hard or soft links.
15298
# A BSD-compatible nm program.
15301
# A symbol stripping program
15304
# Used to examine libraries when file_magic_cmd begins "file"
15305
MAGIC_CMD=$MAGIC_CMD
15307
# Used on cygwin: DLL creation program.
15310
# Used on cygwin: object dumper.
15313
# Used on cygwin: assembler.
15316
# The name of the directory that contains temporary libtool files.
15319
# How to create reloadable object files.
15320
reload_flag=$lt_reload_flag
15321
reload_cmds=$lt_reload_cmds
15323
# How to pass a linker flag through the compiler.
15324
wl=$lt_lt_prog_compiler_wl_CXX
15326
# Object file suffix (normally "o").
15327
objext="$ac_objext"
15329
# Old archive suffix (normally "a").
15332
# Shared library suffix (normally ".so").
15333
shrext_cmds='$shrext_cmds'
15335
# Executable file suffix (normally "").
15338
# Additional compiler flags for building library objects.
15339
pic_flag=$lt_lt_prog_compiler_pic_CXX
15342
# What is the maximum length of a command?
15343
max_cmd_len=$lt_cv_sys_max_cmd_len
15345
# Does compiler simultaneously support -c and -o options?
15346
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15348
# Must we lock files when doing compilation?
15349
need_locks=$lt_need_locks
15351
# Do we need the lib prefix for modules?
15352
need_lib_prefix=$need_lib_prefix
15354
# Do we need a version for libraries?
15355
need_version=$need_version
15357
# Whether dlopen is supported.
15358
dlopen_support=$enable_dlopen
15360
# Whether dlopen of programs is supported.
15361
dlopen_self=$enable_dlopen_self
15363
# Whether dlopen of statically linked programs is supported.
15364
dlopen_self_static=$enable_dlopen_self_static
15366
# Compiler flag to prevent dynamic linking.
15367
link_static_flag=$lt_lt_prog_compiler_static_CXX
15369
# Compiler flag to turn off builtin functions.
15370
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15372
# Compiler flag to allow reflexive dlopens.
15373
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15375
# Compiler flag to generate shared objects directly from archives.
15376
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15378
# Compiler flag to generate thread-safe objects.
15379
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15381
# Library versioning type.
15382
version_type=$version_type
15384
# Format of library name prefix.
15385
libname_spec=$lt_libname_spec
15387
# List of archive names. First name is the real one, the rest are links.
15388
# The last name is the one that the linker finds with -lNAME.
15389
library_names_spec=$lt_library_names_spec
15391
# The coded name of the library, if different from the real name.
15392
soname_spec=$lt_soname_spec
15394
# Commands used to build and install an old-style archive.
15396
old_archive_cmds=$lt_old_archive_cmds_CXX
15397
old_postinstall_cmds=$lt_old_postinstall_cmds
15398
old_postuninstall_cmds=$lt_old_postuninstall_cmds
15400
# Create an old-style archive from a shared archive.
15401
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15403
# Create a temporary old-style archive to link instead of a shared archive.
15404
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15406
# Commands used to build and install a shared archive.
15407
archive_cmds=$lt_archive_cmds_CXX
15408
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15409
postinstall_cmds=$lt_postinstall_cmds
15410
postuninstall_cmds=$lt_postuninstall_cmds
15412
# Commands used to build a loadable module (assumed same as above if empty)
15413
module_cmds=$lt_module_cmds_CXX
15414
module_expsym_cmds=$lt_module_expsym_cmds_CXX
15416
# Commands to strip libraries.
15417
old_striplib=$lt_old_striplib
15418
striplib=$lt_striplib
15420
# Dependencies to place before the objects being linked to create a
15422
predep_objects=$lt_predep_objects_CXX
15424
# Dependencies to place after the objects being linked to create a
15426
postdep_objects=$lt_postdep_objects_CXX
15428
# Dependencies to place before the objects being linked to create a
15430
predeps=$lt_predeps_CXX
15432
# Dependencies to place after the objects being linked to create a
15434
postdeps=$lt_postdeps_CXX
15436
# The directories searched by this compiler when creating a shared
15438
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
15440
# The library search path used internally by the compiler when linking
15441
# a shared library.
15442
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15444
# Method to check whether dependent libraries are shared objects.
15445
deplibs_check_method=$lt_deplibs_check_method
15447
# Command to use when deplibs_check_method == file_magic.
15448
file_magic_cmd=$lt_file_magic_cmd
15450
# Flag that allows shared libraries with undefined symbols to be built.
15451
allow_undefined_flag=$lt_allow_undefined_flag_CXX
15453
# Flag that forces no undefined symbols.
15454
no_undefined_flag=$lt_no_undefined_flag_CXX
15456
# Commands used to finish a libtool library installation in a directory.
15457
finish_cmds=$lt_finish_cmds
15459
# Same as above, but a single script fragment to be evaled but not shown.
15460
finish_eval=$lt_finish_eval
15462
# Take the output of nm and produce a listing of raw symbols and C names.
15463
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15465
# Transform the output of nm in a proper C declaration
15466
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15468
# Transform the output of nm in a C name address pair
15469
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15471
# This is the shared library runtime path variable.
15472
runpath_var=$runpath_var
15474
# This is the shared library path variable.
15475
shlibpath_var=$shlibpath_var
15477
# Is shlibpath searched before the hard-coded library search path?
15478
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15480
# How to hardcode a shared library path into an executable.
15481
hardcode_action=$hardcode_action_CXX
15483
# Whether we should hardcode library paths into libraries.
15484
hardcode_into_libs=$hardcode_into_libs
15486
# Flag to hardcode \$libdir into a binary during linking.
15487
# This must work even if \$libdir does not exist.
15488
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15490
# If ld is used when linking, flag to hardcode \$libdir into
15491
# a binary during linking. This must work even if \$libdir does
15493
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15495
# Whether we need a single -rpath flag with a separated argument.
15496
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15498
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15499
# resulting binary.
15500
hardcode_direct=$hardcode_direct_CXX
15502
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15503
# resulting binary.
15504
hardcode_minus_L=$hardcode_minus_L_CXX
15506
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15507
# the resulting binary.
15508
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15510
# Set to yes if building a shared library automatically hardcodes DIR into the library
15511
# and all subsequent libraries and executables linked against it.
15512
hardcode_automatic=$hardcode_automatic_CXX
15514
# Variables whose values should be saved in libtool wrapper scripts and
15515
# restored at relink time.
15516
variables_saved_for_relink="$variables_saved_for_relink"
15518
# Whether libtool must link a program against all its dependency libraries.
15519
link_all_deplibs=$link_all_deplibs_CXX
15521
# Compile-time system search path for libraries
15522
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15524
# Run-time system search path for libraries
15525
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15527
# Fix the shell variable \$srcfile for the compiler.
15528
fix_srcfile_path=$lt_fix_srcfile_path
15530
# Set to yes if exported symbols are required.
15531
always_export_symbols=$always_export_symbols_CXX
15533
# The commands to list exported symbols.
15534
export_symbols_cmds=$lt_export_symbols_cmds_CXX
15536
# The commands to extract the exported symbol list from a shared archive.
15537
extract_expsyms_cmds=$lt_extract_expsyms_cmds
15539
# Symbols that should not be listed in the preloaded symbols.
15540
exclude_expsyms=$lt_exclude_expsyms_CXX
15542
# Symbols that must always be exported.
15543
include_expsyms=$lt_include_expsyms_CXX
15545
# ### END LIBTOOL TAG CONFIG: $tagname
15551
# If there is no Makefile yet, we rely on a make rule to execute
15552
# `config.status --recheck' to rerun these tests and create the
15553
# libtool script then.
15554
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15555
if test -f "$ltmain_in"; then
15556
test -f Makefile && make "$ltmain"
15562
ac_cpp='$CPP $CPPFLAGS'
15563
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15564
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15565
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15571
with_gnu_ldcxx=$with_gnu_ld
15572
with_gnu_ld=$lt_save_with_gnu_ld
15573
lt_cv_path_LDCXX=$lt_cv_path_LD
15574
lt_cv_path_LD=$lt_save_path_LD
15575
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15576
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15584
if test -n "$F77" && test "X$F77" != "Xno"; then
15587
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15588
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15589
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15592
archive_cmds_need_lc_F77=no
15593
allow_undefined_flag_F77=
15594
always_export_symbols_F77=no
15595
archive_expsym_cmds_F77=
15596
export_dynamic_flag_spec_F77=
15597
hardcode_direct_F77=no
15598
hardcode_libdir_flag_spec_F77=
15599
hardcode_libdir_flag_spec_ld_F77=
15600
hardcode_libdir_separator_F77=
15601
hardcode_minus_L_F77=no
15602
hardcode_automatic_F77=no
15604
module_expsym_cmds_F77=
15605
link_all_deplibs_F77=unknown
15606
old_archive_cmds_F77=$old_archive_cmds
15607
no_undefined_flag_F77=
15608
whole_archive_flag_spec_F77=
15609
enable_shared_with_static_runtimes_F77=no
15611
# Source file extension for f77 test sources.
15614
# Object file extension for compiled f77 test sources.
15618
# Code to be used in simple compile tests
15619
lt_simple_compile_test_code="\
15625
# Code to be used in simple link tests
15626
lt_simple_link_test_code="\
15631
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15633
# If no C compiler was specified, use CC.
15636
# If no C compiler flags were specified, use CFLAGS.
15637
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15639
# Allow CC to be a program name with arguments.
15643
# save warnings/boilerplate of simple test code
15644
ac_outfile=conftest.$ac_objext
15645
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15646
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15647
_lt_compiler_boilerplate=`cat conftest.err`
15650
ac_outfile=conftest.$ac_objext
15651
echo "$lt_simple_link_test_code" >conftest.$ac_ext
15652
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15653
_lt_linker_boilerplate=`cat conftest.err`
15657
# Allow CC to be a program name with arguments.
15662
for cc_temp in $compiler""; do
15664
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15665
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15670
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15673
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15674
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15675
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
15676
echo "${ECHO_T}$can_build_shared" >&6; }
15678
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15679
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15680
test "$can_build_shared" = "no" && enable_shared=no
15682
# On AIX, shared libraries and static libraries use the same namespace, and
15683
# are all built from PIC.
15686
test "$enable_shared" = yes && enable_static=no
15687
if test -n "$RANLIB"; then
15688
archive_cmds="$archive_cmds~\$RANLIB \$lib"
15689
postinstall_cmds='$RANLIB $lib'
15693
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15694
test "$enable_shared" = yes && enable_static=no
15698
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
15699
echo "${ECHO_T}$enable_shared" >&6; }
15701
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15702
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15703
# Make sure either enable_shared or enable_static is yes.
15704
test "$enable_shared" = yes || enable_static=yes
15705
{ echo "$as_me:$LINENO: result: $enable_static" >&5
15706
echo "${ECHO_T}$enable_static" >&6; }
15711
lt_prog_compiler_wl_F77=
15712
lt_prog_compiler_pic_F77=
15713
lt_prog_compiler_static_F77=
15715
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15716
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15718
if test "$GCC" = yes; then
15719
lt_prog_compiler_wl_F77='-Wl,'
15720
lt_prog_compiler_static_F77='-static'
15724
# All AIX code is PIC.
15725
if test "$host_cpu" = ia64; then
15726
# AIX 5 now supports IA64 processor
15727
lt_prog_compiler_static_F77='-Bstatic'
15732
# FIXME: we need at least 68020 code to build shared libraries, but
15733
# adding the `-m68020' flag to GCC prevents building anything better,
15735
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15738
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15739
# PIC is the default for these OSes.
15742
mingw* | cygwin* | pw32* | os2*)
15743
# This hack is so that the source file can tell whether it is being
15744
# built for inclusion in a dll (and should export symbols for example).
15745
# Although the cygwin gcc ignores -fPIC, still need this for old-style
15746
# (--disable-auto-import) libraries
15747
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15750
darwin* | rhapsody*)
15751
# PIC is the default on this platform
15752
# Common symbols not allowed in MH_DYLIB files
15753
lt_prog_compiler_pic_F77='-fno-common'
15757
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
15758
# Instead, we relocate shared libraries at runtime.
15762
# Just because we use GCC doesn't mean we suddenly get shared libraries
15763
# on systems that don't support them.
15764
lt_prog_compiler_can_build_shared_F77=no
15769
if test -d /usr/nec; then
15770
lt_prog_compiler_pic_F77=-Kconform_pic
15775
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15776
# not for PA HP-UX.
15782
lt_prog_compiler_pic_F77='-fPIC'
15788
lt_prog_compiler_pic_F77='-fPIC'
15792
# PORTME Check for flag to pass linker flags through the system compiler.
15795
lt_prog_compiler_wl_F77='-Wl,'
15796
if test "$host_cpu" = ia64; then
15797
# AIX 5 now supports IA64 processor
15798
lt_prog_compiler_static_F77='-Bstatic'
15800
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15804
# PIC is the default on this platform
15805
# Common symbols not allowed in MH_DYLIB files
15806
case $cc_basename in
15808
lt_prog_compiler_pic_F77='-qnocommon'
15809
lt_prog_compiler_wl_F77='-Wl,'
15814
mingw* | cygwin* | pw32* | os2*)
15815
# This hack is so that the source file can tell whether it is being
15816
# built for inclusion in a dll (and should export symbols for example).
15817
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15820
hpux9* | hpux10* | hpux11*)
15821
lt_prog_compiler_wl_F77='-Wl,'
15822
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15823
# not for PA HP-UX.
15829
lt_prog_compiler_pic_F77='+Z'
15832
# Is there a better lt_prog_compiler_static that works with the bundled CC?
15833
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15836
irix5* | irix6* | nonstopux*)
15837
lt_prog_compiler_wl_F77='-Wl,'
15838
# PIC (with -KPIC) is the default.
15839
lt_prog_compiler_static_F77='-non_shared'
15843
lt_prog_compiler_pic_F77='-KPIC'
15844
lt_prog_compiler_static_F77='-Bstatic'
15847
linux* | k*bsd*-gnu)
15848
case $cc_basename in
15850
lt_prog_compiler_wl_F77='-Wl,'
15851
lt_prog_compiler_pic_F77='-KPIC'
15852
lt_prog_compiler_static_F77='-static'
15854
pgcc* | pgf77* | pgf90* | pgf95*)
15855
# Portland Group compilers (*not* the Pentium gcc compiler,
15856
# which looks to be a dead project)
15857
lt_prog_compiler_wl_F77='-Wl,'
15858
lt_prog_compiler_pic_F77='-fpic'
15859
lt_prog_compiler_static_F77='-Bstatic'
15862
lt_prog_compiler_wl_F77='-Wl,'
15863
# All Alpha code is PIC.
15864
lt_prog_compiler_static_F77='-non_shared'
15867
case `$CC -V 2>&1 | sed 5q` in
15870
lt_prog_compiler_pic_F77='-KPIC'
15871
lt_prog_compiler_static_F77='-Bstatic'
15872
lt_prog_compiler_wl_F77='-Wl,'
15875
# Sun Fortran 8.3 passes all unrecognized flags to the linker
15876
lt_prog_compiler_pic_F77='-KPIC'
15877
lt_prog_compiler_static_F77='-Bstatic'
15878
lt_prog_compiler_wl_F77=''
15885
osf3* | osf4* | osf5*)
15886
lt_prog_compiler_wl_F77='-Wl,'
15887
# All OSF/1 code is PIC.
15888
lt_prog_compiler_static_F77='-non_shared'
15892
lt_prog_compiler_static_F77='-non_shared'
15896
lt_prog_compiler_pic_F77='-KPIC'
15897
lt_prog_compiler_static_F77='-Bstatic'
15898
case $cc_basename in
15899
f77* | f90* | f95*)
15900
lt_prog_compiler_wl_F77='-Qoption ld ';;
15902
lt_prog_compiler_wl_F77='-Wl,';;
15907
lt_prog_compiler_wl_F77='-Qoption ld '
15908
lt_prog_compiler_pic_F77='-PIC'
15909
lt_prog_compiler_static_F77='-Bstatic'
15912
sysv4 | sysv4.2uw2* | sysv4.3*)
15913
lt_prog_compiler_wl_F77='-Wl,'
15914
lt_prog_compiler_pic_F77='-KPIC'
15915
lt_prog_compiler_static_F77='-Bstatic'
15919
if test -d /usr/nec ;then
15920
lt_prog_compiler_pic_F77='-Kconform_pic'
15921
lt_prog_compiler_static_F77='-Bstatic'
15925
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15926
lt_prog_compiler_wl_F77='-Wl,'
15927
lt_prog_compiler_pic_F77='-KPIC'
15928
lt_prog_compiler_static_F77='-Bstatic'
15932
lt_prog_compiler_wl_F77='-Wl,'
15933
lt_prog_compiler_can_build_shared_F77=no
15937
lt_prog_compiler_pic_F77='-pic'
15938
lt_prog_compiler_static_F77='-Bstatic'
15942
lt_prog_compiler_can_build_shared_F77=no
15947
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15948
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15951
# Check to make sure the PIC flag actually works.
15953
if test -n "$lt_prog_compiler_pic_F77"; then
15955
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15956
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15957
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
15958
echo $ECHO_N "(cached) $ECHO_C" >&6
15960
lt_cv_prog_compiler_pic_works_F77=no
15961
ac_outfile=conftest.$ac_objext
15962
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15963
lt_compiler_flag="$lt_prog_compiler_pic_F77"
15964
# Insert the option either (1) after the last *FLAGS variable, or
15965
# (2) before a word containing "conftest.", or (3) at the end.
15966
# Note that $ac_compile itself does not contain backslashes and begins
15967
# with a dollar sign (not a hyphen), so the echo should work correctly.
15968
# The option is referenced via a variable to avoid confusing sed.
15969
lt_compile=`echo "$ac_compile" | $SED \
15970
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15971
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15972
-e 's:$: $lt_compiler_flag:'`
15973
(eval echo "\"\$as_me:15973: $lt_compile\"" >&5)
15974
(eval "$lt_compile" 2>conftest.err)
15976
cat conftest.err >&5
15977
echo "$as_me:15977: \$? = $ac_status" >&5
15978
if (exit $ac_status) && test -s "$ac_outfile"; then
15979
# The compiler can only warn and ignore the option if not recognized
15980
# So say no if there are warnings other than the usual output.
15981
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15982
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15983
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15984
lt_cv_prog_compiler_pic_works_F77=yes
15990
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
15991
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
15993
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
15994
case $lt_prog_compiler_pic_F77 in
15996
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15999
lt_prog_compiler_pic_F77=
16000
lt_prog_compiler_can_build_shared_F77=no
16005
# For platforms which do not support PIC, -DPIC is meaningless:
16007
lt_prog_compiler_pic_F77=
16010
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
16015
# Check to make sure the static flag actually works.
16017
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
16018
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16019
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16020
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
16021
echo $ECHO_N "(cached) $ECHO_C" >&6
16023
lt_cv_prog_compiler_static_works_F77=no
16024
save_LDFLAGS="$LDFLAGS"
16025
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16026
echo "$lt_simple_link_test_code" > conftest.$ac_ext
16027
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16028
# The linker can only warn and ignore the option if not recognized
16029
# So say no if there are warnings
16030
if test -s conftest.err; then
16031
# Append any errors to the config.log.
16032
cat conftest.err 1>&5
16033
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16034
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16035
if diff conftest.exp conftest.er2 >/dev/null; then
16036
lt_cv_prog_compiler_static_works_F77=yes
16039
lt_cv_prog_compiler_static_works_F77=yes
16043
LDFLAGS="$save_LDFLAGS"
16046
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
16047
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
16049
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
16052
lt_prog_compiler_static_F77=
16056
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16057
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16058
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
16059
echo $ECHO_N "(cached) $ECHO_C" >&6
16061
lt_cv_prog_compiler_c_o_F77=no
16062
$rm -r conftest 2>/dev/null
16066
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16068
lt_compiler_flag="-o out/conftest2.$ac_objext"
16069
# Insert the option either (1) after the last *FLAGS variable, or
16070
# (2) before a word containing "conftest.", or (3) at the end.
16071
# Note that $ac_compile itself does not contain backslashes and begins
16072
# with a dollar sign (not a hyphen), so the echo should work correctly.
16073
lt_compile=`echo "$ac_compile" | $SED \
16074
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16075
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16076
-e 's:$: $lt_compiler_flag:'`
16077
(eval echo "\"\$as_me:16077: $lt_compile\"" >&5)
16078
(eval "$lt_compile" 2>out/conftest.err)
16080
cat out/conftest.err >&5
16081
echo "$as_me:16081: \$? = $ac_status" >&5
16082
if (exit $ac_status) && test -s out/conftest2.$ac_objext
16084
# The compiler can only warn and ignore the option if not recognized
16085
# So say no if there are warnings
16086
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16087
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16088
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16089
lt_cv_prog_compiler_c_o_F77=yes
16094
# SGI C++ compiler will create directory out/ii_files/ for
16095
# template instantiation
16096
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16097
$rm out/* && rmdir out
16103
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
16104
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
16107
hard_links="nottested"
16108
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
16109
# do not overwrite the value of need_locks provided by the user
16110
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16111
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16114
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16116
ln conftest.a conftest.b 2>&5 || hard_links=no
16117
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16118
{ echo "$as_me:$LINENO: result: $hard_links" >&5
16119
echo "${ECHO_T}$hard_links" >&6; }
16120
if test "$hard_links" = no; then
16121
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16122
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16129
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16130
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16133
allow_undefined_flag_F77=
16134
enable_shared_with_static_runtimes_F77=no
16136
archive_expsym_cmds_F77=
16137
old_archive_From_new_cmds_F77=
16138
old_archive_from_expsyms_cmds_F77=
16139
export_dynamic_flag_spec_F77=
16140
whole_archive_flag_spec_F77=
16141
thread_safe_flag_spec_F77=
16142
hardcode_libdir_flag_spec_F77=
16143
hardcode_libdir_flag_spec_ld_F77=
16144
hardcode_libdir_separator_F77=
16145
hardcode_direct_F77=no
16146
hardcode_minus_L_F77=no
16147
hardcode_shlibpath_var_F77=unsupported
16148
link_all_deplibs_F77=unknown
16149
hardcode_automatic_F77=no
16151
module_expsym_cmds_F77=
16152
always_export_symbols_F77=no
16153
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16154
# include_expsyms should be a list of space-separated symbols to be *always*
16155
# included in the symbol list
16156
include_expsyms_F77=
16157
# exclude_expsyms can be an extended regexp of symbols to exclude
16158
# it will be wrapped by ` (' and `)$', so one must not match beginning or
16159
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16160
# as well as any symbol that contains `d'.
16161
exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16162
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16163
# platforms (ab)use it in PIC code, but their linkers get confused if
16164
# the symbol is explicitly referenced. Since portable code cannot
16165
# rely on this symbol name, it's probably fine to never include it in
16166
# preloaded symbol tables.
16167
# Exclude shared library initialization/finalization symbols.
16168
extract_expsyms_cmds=
16169
# Just being paranoid about ensuring that cc_basename is set.
16170
for cc_temp in $compiler""; do
16172
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16173
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16178
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16181
cygwin* | mingw* | pw32*)
16182
# FIXME: the MSVC++ port hasn't been tested in a loooong time
16183
# When not using gcc, we currently assume that we are using
16184
# Microsoft Visual C++.
16185
if test "$GCC" != yes; then
16190
# we just hope/assume this is gcc and not c89 (= MSVC++)
16199
if test "$with_gnu_ld" = yes; then
16200
# If archive_cmds runs LD, not CC, wlarc should be empty
16203
# Set some defaults for GNU ld with shared library support. These
16204
# are reset later if shared libraries are not supported. Putting them
16205
# here allows them to be overridden if necessary.
16206
runpath_var=LD_RUN_PATH
16207
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
16208
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
16209
# ancient GNU ld didn't support --whole-archive et. al.
16210
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16211
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16213
whole_archive_flag_spec_F77=
16215
supports_anon_versioning=no
16216
case `$LD -v 2>/dev/null` in
16217
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16218
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16219
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16220
*\ 2.11.*) ;; # other 2.11 versions
16221
*) supports_anon_versioning=yes ;;
16224
# See if GNU ld supports shared libraries.
16227
# On AIX/PPC, the GNU linker is very broken
16228
if test "$host_cpu" != ia64; then
16232
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16233
*** to be unable to reliably create shared libraries on AIX.
16234
*** Therefore, libtool is disabling shared libraries support. If you
16235
*** really care for shared libraries, you may want to modify your PATH
16236
*** so that a non-GNU linker is found, and then restart.
16243
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)'
16244
hardcode_libdir_flag_spec_F77='-L$libdir'
16245
hardcode_minus_L_F77=yes
16247
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16248
# that the semantics of dynamic libraries on AmigaOS, at least up
16249
# to version 4, is to share data among multiple programs linked
16250
# with the same dynamic library. Since this doesn't match the
16251
# behavior of shared libraries on other platforms, we can't use
16257
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16258
allow_undefined_flag_F77=unsupported
16259
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16260
# support --undefined. This deserves some investigation. FIXME
16261
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16267
cygwin* | mingw* | pw32*)
16268
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16269
# as there is no search path for DLLs.
16270
hardcode_libdir_flag_spec_F77='-L$libdir'
16271
allow_undefined_flag_F77=unsupported
16272
always_export_symbols_F77=no
16273
enable_shared_with_static_runtimes_F77=yes
16274
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16276
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16277
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16278
# If the export-symbols file already is a .def file (1st line
16279
# is EXPORTS), use it as is; otherwise, prepend...
16280
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16281
cp $export_symbols $output_objdir/$soname.def;
16283
echo EXPORTS > $output_objdir/$soname.def;
16284
cat $export_symbols >> $output_objdir/$soname.def;
16286
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16293
hardcode_direct_F77=no
16294
hardcode_shlibpath_var_F77=no
16295
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16296
export_dynamic_flag_spec_F77='${wl}-E'
16297
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16298
# Instead, shared libraries are loaded at an image base (0x10000000 by
16299
# default) and relocated if they conflict, which is a slow very memory
16300
# consuming and fragmenting process. To avoid this, we pick a random,
16301
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16302
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
16303
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'
16304
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'
16307
gnu* | linux* | k*bsd*-gnu)
16308
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16310
case $cc_basename,$host_cpu in
16311
pgcc*) # Portland Group C compiler
16312
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'
16313
tmp_addflag=' $pic_flag'
16315
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16316
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'
16317
tmp_addflag=' $pic_flag -Mnomain' ;;
16318
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16319
tmp_addflag=' -i_dynamic' ;;
16320
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16321
tmp_addflag=' -i_dynamic -nofor_main' ;;
16322
ifc* | ifort*) # Intel Fortran compiler
16323
tmp_addflag=' -nofor_main' ;;
16325
case `$CC -V 2>&1 | sed 5q` in
16326
*Sun\ C*) # Sun C 5.9
16327
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'
16328
tmp_sharedflag='-G' ;;
16329
*Sun\ F*) # Sun Fortran 8.3
16330
tmp_sharedflag='-G' ;;
16332
tmp_sharedflag='-shared' ;;
16334
archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16336
if test $supports_anon_versioning = yes; then
16337
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16338
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16339
$echo "local: *; };" >> $output_objdir/$libname.ver~
16340
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16342
link_all_deplibs_F77=no
16348
netbsd* | netbsdelf*-gnu)
16349
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16350
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16353
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16354
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16359
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16363
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16364
*** create shared libraries on Solaris systems. Therefore, libtool
16365
*** is disabling shared libraries support. We urge you to upgrade GNU
16366
*** binutils to release 2.9.1 or newer. Another option is to modify
16367
*** your PATH or compiler configuration so that the native linker is
16368
*** used, and then restart.
16371
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16372
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16373
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16379
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16380
case `$LD -v 2>&1` in
16381
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16385
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16386
*** reliably create shared libraries on SCO systems. Therefore, libtool
16387
*** is disabling shared libraries support. We urge you to upgrade GNU
16388
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16389
*** your PATH or compiler configuration so that the native linker is
16390
*** used, and then restart.
16395
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16396
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16397
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16398
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16407
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16409
hardcode_direct_F77=yes
16410
hardcode_shlibpath_var_F77=no
16414
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16415
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16416
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16423
if test "$ld_shlibs_F77" = no; then
16425
hardcode_libdir_flag_spec_F77=
16426
export_dynamic_flag_spec_F77=
16427
whole_archive_flag_spec_F77=
16430
# PORTME fill in a description of your system's linker (not GNU ld)
16433
allow_undefined_flag_F77=unsupported
16434
always_export_symbols_F77=yes
16435
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'
16436
# Note: this linker hardcodes the directories in LIBPATH if there
16437
# are no directories specified by -L.
16438
hardcode_minus_L_F77=yes
16439
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16440
# Neither direct hardcoding nor static linking is supported with a
16442
hardcode_direct_F77=unsupported
16447
if test "$host_cpu" = ia64; then
16448
# On IA64, the linker does run time linking by default, so we don't
16449
# have to do anything special.
16450
aix_use_runtimelinking=no
16451
exp_sym_flag='-Bexport'
16454
# If we're using GNU nm, then we don't want the "-C" option.
16455
# -C means demangle to AIX nm, but means don't demangle with GNU nm
16456
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16457
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'
16459
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'
16461
aix_use_runtimelinking=no
16463
# Test if we are trying to use run time linking or normal
16464
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16465
# need to do runtime linking.
16466
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16467
for ld_flag in $LDFLAGS; do
16468
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16469
aix_use_runtimelinking=yes
16476
exp_sym_flag='-bexport'
16477
no_entry_flag='-bnoentry'
16480
# When large executables or shared objects are built, AIX ld can
16481
# have problems creating the table of contents. If linking a library
16482
# or program results in "error TOC overflow" add -mminimal-toc to
16483
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16484
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16486
archive_cmds_F77=''
16487
hardcode_direct_F77=yes
16488
hardcode_libdir_separator_F77=':'
16489
link_all_deplibs_F77=yes
16491
if test "$GCC" = yes; then
16492
case $host_os in aix4.[012]|aix4.[012].*)
16493
# We only want to do this on AIX 4.2 and lower, the check
16494
# below for broken collect2 doesn't work under 4.3+
16495
collect2name=`${CC} -print-prog-name=collect2`
16496
if test -f "$collect2name" && \
16497
strings "$collect2name" | grep resolve_lib_name >/dev/null
16499
# We have reworked collect2
16502
# We have old collect2
16503
hardcode_direct_F77=unsupported
16504
# It fails to find uninstalled libraries when the uninstalled
16505
# path is not listed in the libpath. Setting hardcode_minus_L
16506
# to unsupported forces relinking
16507
hardcode_minus_L_F77=yes
16508
hardcode_libdir_flag_spec_F77='-L$libdir'
16509
hardcode_libdir_separator_F77=
16513
shared_flag='-shared'
16514
if test "$aix_use_runtimelinking" = yes; then
16515
shared_flag="$shared_flag "'${wl}-G'
16519
if test "$host_cpu" = ia64; then
16520
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16521
# chokes on -Wl,-G. The following line is correct:
16524
if test "$aix_use_runtimelinking" = yes; then
16525
shared_flag='${wl}-G'
16527
shared_flag='${wl}-bM:SRE'
16532
# It seems that -bexpall does not export symbols beginning with
16533
# underscore (_), so it is better to generate a list of symbols to export.
16534
always_export_symbols_F77=yes
16535
if test "$aix_use_runtimelinking" = yes; then
16536
# Warning - without using the other runtime loading flags (-brtl),
16537
# -berok will link without error, but may produce a broken library.
16538
allow_undefined_flag_F77='-berok'
16539
# Determine the default libpath from the value encoded in an empty executable.
16540
cat >conftest.$ac_ext <<_ACEOF
16545
rm -f conftest.$ac_objext conftest$ac_exeext
16546
if { (ac_try="$ac_link"
16547
case "(($ac_try" in
16548
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16549
*) ac_try_echo=$ac_try;;
16551
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16552
(eval "$ac_link") 2>conftest.er1
16554
grep -v '^ *+' conftest.er1 >conftest.err
16556
cat conftest.err >&5
16557
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558
(exit $ac_status); } && {
16559
test -z "$ac_f77_werror_flag" ||
16560
test ! -s conftest.err
16561
} && test -s conftest$ac_exeext &&
16562
$as_test_x conftest$ac_exeext; then
16564
lt_aix_libpath_sed='
16565
/Import File Strings/,/^$/ {
16571
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16572
# Check for a 64-bit object if we didn't find anything.
16573
if test -z "$aix_libpath"; then
16574
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16577
echo "$as_me: failed program was:" >&5
16578
sed 's/^/| /' conftest.$ac_ext >&5
16583
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16584
conftest$ac_exeext conftest.$ac_ext
16585
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16587
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16588
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"
16590
if test "$host_cpu" = ia64; then
16591
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16592
allow_undefined_flag_F77="-z nodefs"
16593
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"
16595
# Determine the default libpath from the value encoded in an empty executable.
16596
cat >conftest.$ac_ext <<_ACEOF
16601
rm -f conftest.$ac_objext conftest$ac_exeext
16602
if { (ac_try="$ac_link"
16603
case "(($ac_try" in
16604
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16605
*) ac_try_echo=$ac_try;;
16607
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16608
(eval "$ac_link") 2>conftest.er1
16610
grep -v '^ *+' conftest.er1 >conftest.err
16612
cat conftest.err >&5
16613
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614
(exit $ac_status); } && {
16615
test -z "$ac_f77_werror_flag" ||
16616
test ! -s conftest.err
16617
} && test -s conftest$ac_exeext &&
16618
$as_test_x conftest$ac_exeext; then
16620
lt_aix_libpath_sed='
16621
/Import File Strings/,/^$/ {
16627
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16628
# Check for a 64-bit object if we didn't find anything.
16629
if test -z "$aix_libpath"; then
16630
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16633
echo "$as_me: failed program was:" >&5
16634
sed 's/^/| /' conftest.$ac_ext >&5
16639
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16640
conftest$ac_exeext conftest.$ac_ext
16641
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16643
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16644
# Warning - without using the other run time loading flags,
16645
# -berok will link without error, but may produce a broken library.
16646
no_undefined_flag_F77=' ${wl}-bernotok'
16647
allow_undefined_flag_F77=' ${wl}-berok'
16648
# Exported symbols can be pulled into shared objects from archives
16649
whole_archive_flag_spec_F77='$convenience'
16650
archive_cmds_need_lc_F77=yes
16651
# This is similar to how AIX traditionally builds its shared libraries.
16652
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'
16658
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)'
16659
hardcode_libdir_flag_spec_F77='-L$libdir'
16660
hardcode_minus_L_F77=yes
16661
# see comment about different semantics on the GNU ld section
16666
export_dynamic_flag_spec_F77=-rdynamic
16669
cygwin* | mingw* | pw32*)
16670
# When not using gcc, we currently assume that we are using
16671
# Microsoft Visual C++.
16672
# hardcode_libdir_flag_spec is actually meaningless, as there is
16673
# no search path for DLLs.
16674
hardcode_libdir_flag_spec_F77=' '
16675
allow_undefined_flag_F77=unsupported
16676
# Tell ltmain to make .lib files, not .a files.
16678
# Tell ltmain to make .dll files, not .so files.
16680
# FIXME: Setting linknames here is a bad hack.
16681
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16682
# The linker will automatically build a .lib file if we build a DLL.
16683
old_archive_From_new_cmds_F77='true'
16684
# FIXME: Should let the user specify the lib program.
16685
old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
16686
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16687
enable_shared_with_static_runtimes_F77=yes
16690
darwin* | rhapsody*)
16692
rhapsody* | darwin1.[012])
16693
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16696
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16697
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16699
case ${MACOSX_DEPLOYMENT_TARGET} in
16701
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16704
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16710
archive_cmds_need_lc_F77=no
16711
hardcode_direct_F77=no
16712
hardcode_automatic_F77=yes
16713
hardcode_shlibpath_var_F77=unsupported
16714
whole_archive_flag_spec_F77=''
16715
link_all_deplibs_F77=yes
16716
if test "$GCC" = yes ; then
16717
output_verbose_link_cmd='echo'
16718
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}"
16719
module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16720
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}"
16721
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}"
16723
case $cc_basename in
16725
output_verbose_link_cmd='echo'
16726
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16727
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16728
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16729
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}'
16730
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}'
16740
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16741
hardcode_libdir_flag_spec_F77='-L$libdir'
16742
hardcode_shlibpath_var_F77=no
16749
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16750
# support. Future versions do this automatically, but an explicit c++rt0.o
16751
# does not break anything, and helps significantly (at the cost of a little
16754
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16755
hardcode_libdir_flag_spec_F77='-R$libdir'
16756
hardcode_direct_F77=yes
16757
hardcode_shlibpath_var_F77=no
16760
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
16762
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16763
hardcode_direct_F77=yes
16764
hardcode_minus_L_F77=yes
16765
hardcode_shlibpath_var_F77=no
16768
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16769
freebsd* | dragonfly*)
16770
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16771
hardcode_libdir_flag_spec_F77='-R$libdir'
16772
hardcode_direct_F77=yes
16773
hardcode_shlibpath_var_F77=no
16777
if test "$GCC" = yes; then
16778
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'
16780
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'
16782
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16783
hardcode_libdir_separator_F77=:
16784
hardcode_direct_F77=yes
16786
# hardcode_minus_L: Not really in the search PATH,
16787
# but as the default location of the library.
16788
hardcode_minus_L_F77=yes
16789
export_dynamic_flag_spec_F77='${wl}-E'
16793
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16794
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16796
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16798
if test "$with_gnu_ld" = no; then
16799
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16800
hardcode_libdir_separator_F77=:
16802
hardcode_direct_F77=yes
16803
export_dynamic_flag_spec_F77='${wl}-E'
16805
# hardcode_minus_L: Not really in the search PATH,
16806
# but as the default location of the library.
16807
hardcode_minus_L_F77=yes
16812
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16815
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16818
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16821
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16827
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16830
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16833
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16837
if test "$with_gnu_ld" = no; then
16838
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16839
hardcode_libdir_separator_F77=:
16843
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16844
hardcode_direct_F77=no
16845
hardcode_shlibpath_var_F77=no
16848
hardcode_direct_F77=yes
16849
export_dynamic_flag_spec_F77='${wl}-E'
16851
# hardcode_minus_L: Not really in the search PATH,
16852
# but as the default location of the library.
16853
hardcode_minus_L_F77=yes
16859
irix5* | irix6* | nonstopux*)
16860
if test "$GCC" = yes; then
16861
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'
16863
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'
16864
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16866
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16867
hardcode_libdir_separator_F77=:
16868
link_all_deplibs_F77=yes
16871
netbsd* | netbsdelf*-gnu)
16872
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16873
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16875
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16877
hardcode_libdir_flag_spec_F77='-R$libdir'
16878
hardcode_direct_F77=yes
16879
hardcode_shlibpath_var_F77=no
16883
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16884
hardcode_direct_F77=yes
16885
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16886
hardcode_libdir_separator_F77=:
16887
hardcode_shlibpath_var_F77=no
16891
if test -f /usr/libexec/ld.so; then
16892
hardcode_direct_F77=yes
16893
hardcode_shlibpath_var_F77=no
16894
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16895
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16896
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16897
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16898
export_dynamic_flag_spec_F77='${wl}-E'
16901
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16902
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16903
hardcode_libdir_flag_spec_F77='-R$libdir'
16906
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16907
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16917
hardcode_libdir_flag_spec_F77='-L$libdir'
16918
hardcode_minus_L_F77=yes
16919
allow_undefined_flag_F77=unsupported
16920
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'
16921
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16925
if test "$GCC" = yes; then
16926
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16927
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'
16929
allow_undefined_flag_F77=' -expect_unresolved \*'
16930
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'
16932
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16933
hardcode_libdir_separator_F77=:
16936
osf4* | osf5*) # as osf3* with the addition of -msym flag
16937
if test "$GCC" = yes; then
16938
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16939
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'
16940
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16942
allow_undefined_flag_F77=' -expect_unresolved \*'
16943
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'
16944
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~
16945
$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'
16947
# Both c and cxx compiler support -rpath directly
16948
hardcode_libdir_flag_spec_F77='-rpath $libdir'
16950
hardcode_libdir_separator_F77=:
16954
no_undefined_flag_F77=' -z text'
16955
if test "$GCC" = yes; then
16957
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16958
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16959
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16962
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16963
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16964
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16966
hardcode_libdir_flag_spec_F77='-R$libdir'
16967
hardcode_shlibpath_var_F77=no
16969
solaris2.[0-5] | solaris2.[0-5].*) ;;
16971
# The compiler driver will combine and reorder linker options,
16972
# but understands `-z linker_flag'. GCC discards it without `$wl',
16973
# but is careful enough not to reorder.
16974
# Supported since Solaris 2.6 (maybe 2.5.1?)
16975
if test "$GCC" = yes; then
16976
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16978
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
16982
link_all_deplibs_F77=yes
16986
if test "x$host_vendor" = xsequent; then
16987
# Use $CC to link under sequent, because it throws in some extra .o
16988
# files that make .init and .fini sections work.
16989
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16991
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16993
hardcode_libdir_flag_spec_F77='-L$libdir'
16994
hardcode_direct_F77=yes
16995
hardcode_minus_L_F77=yes
16996
hardcode_shlibpath_var_F77=no
17000
case $host_vendor in
17002
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17003
hardcode_direct_F77=yes # is this really true???
17006
## LD is ld it makes a PLAMLIB
17007
## CC just makes a GrossModule.
17008
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17009
reload_cmds_F77='$CC -r -o $output$reload_objs'
17010
hardcode_direct_F77=no
17013
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17014
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
17017
runpath_var='LD_RUN_PATH'
17018
hardcode_shlibpath_var_F77=no
17022
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17023
hardcode_shlibpath_var_F77=no
17024
export_dynamic_flag_spec_F77='-Bexport'
17028
if test -d /usr/nec; then
17029
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17030
hardcode_shlibpath_var_F77=no
17031
runpath_var=LD_RUN_PATH
17032
hardcode_runpath_var=yes
17037
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17038
no_undefined_flag_F77='${wl}-z,text'
17039
archive_cmds_need_lc_F77=no
17040
hardcode_shlibpath_var_F77=no
17041
runpath_var='LD_RUN_PATH'
17043
if test "$GCC" = yes; then
17044
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17045
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17047
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17048
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17052
sysv5* | sco3.2v5* | sco5v6*)
17053
# Note: We can NOT use -z defs as we might desire, because we do not
17054
# link with -lc, and that would cause any symbols used from libc to
17055
# always be unresolved, which means just about no library would
17056
# ever link correctly. If we're not using GNU ld we use -z text
17057
# though, which does catch some bad symbols but isn't as heavy-handed
17059
no_undefined_flag_F77='${wl}-z,text'
17060
allow_undefined_flag_F77='${wl}-z,nodefs'
17061
archive_cmds_need_lc_F77=no
17062
hardcode_shlibpath_var_F77=no
17063
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17064
hardcode_libdir_separator_F77=':'
17065
link_all_deplibs_F77=yes
17066
export_dynamic_flag_spec_F77='${wl}-Bexport'
17067
runpath_var='LD_RUN_PATH'
17069
if test "$GCC" = yes; then
17070
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17071
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17073
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17074
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17079
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17080
hardcode_libdir_flag_spec_F77='-L$libdir'
17081
hardcode_shlibpath_var_F77=no
17090
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
17091
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
17092
test "$ld_shlibs_F77" = no && can_build_shared=no
17095
# Do we need to explicitly link libc?
17097
case "x$archive_cmds_need_lc_F77" in
17099
# Assume -lc should be added
17100
archive_cmds_need_lc_F77=yes
17102
if test "$enable_shared" = yes && test "$GCC" = yes; then
17103
case $archive_cmds_F77 in
17105
# FIXME: we may have to deal with multi-command sequences.
17108
# Test whether the compiler implicitly links with -lc since on some
17109
# systems, -lgcc has to come before -lc. If gcc already passes -lc
17110
# to ld, don't add -lc before -lgcc.
17111
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17112
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17114
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17116
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17117
(eval $ac_compile) 2>&5
17119
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17120
(exit $ac_status); } 2>conftest.err; then
17123
libobjs=conftest.$ac_objext
17125
wl=$lt_prog_compiler_wl_F77
17126
pic_flag=$lt_prog_compiler_pic_F77
17132
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
17133
allow_undefined_flag_F77=
17134
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17135
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17137
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17138
(exit $ac_status); }
17140
archive_cmds_need_lc_F77=no
17142
archive_cmds_need_lc_F77=yes
17144
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
17146
cat conftest.err 1>&5
17149
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
17150
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
17157
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17158
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17159
library_names_spec=
17160
libname_spec='lib$name'
17164
postuninstall_cmds=
17168
shlibpath_overrides_runpath=unknown
17170
dynamic_linker="$host_os ld.so"
17171
sys_lib_dlsearch_path_spec="/lib /usr/lib"
17173
need_lib_prefix=unknown
17174
hardcode_into_libs=no
17176
# when you set need_version to no, make sure it does not cause -set_version
17177
# flags to be left without arguments
17178
need_version=unknown
17183
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17184
shlibpath_var=LIBPATH
17186
# AIX 3 has no versioning support, so we append a major version to the name.
17187
soname_spec='${libname}${release}${shared_ext}$major'
17194
hardcode_into_libs=yes
17195
if test "$host_cpu" = ia64; then
17196
# AIX 5 supports IA64
17197
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17198
shlibpath_var=LD_LIBRARY_PATH
17200
# With GCC up to 2.95.x, collect2 would create an import file
17201
# for dependence libraries. The import file would start with
17202
# the line `#! .'. This would cause the generated library to
17203
# depend on `.', always an invalid library. This was fixed in
17204
# development snapshots of GCC prior to 3.0.
17206
aix4 | aix4.[01] | aix4.[01].*)
17207
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17209
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17212
can_build_shared=no
17216
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17217
# soname into executable. Probably we can add versioning support to
17218
# collect2, so additional links can be useful in future.
17219
if test "$aix_use_runtimelinking" = yes; then
17220
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
17221
# instead of lib<name>.a to let people know that these are not
17222
# typical AIX shared libraries.
17223
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17225
# We preserve .a as extension for shared libraries through AIX4.2
17226
# and later when we are not doing run time linking.
17227
library_names_spec='${libname}${release}.a $libname.a'
17228
soname_spec='${libname}${release}${shared_ext}$major'
17230
shlibpath_var=LIBPATH
17235
library_names_spec='$libname.ixlibrary $libname.a'
17236
# Create ${libname}_ixlibrary.a entries in /sys/libs.
17237
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'
17241
library_names_spec='${libname}${shared_ext}'
17242
dynamic_linker="$host_os ld.so"
17243
shlibpath_var=LIBRARY_PATH
17249
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17250
soname_spec='${libname}${release}${shared_ext}$major'
17251
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17252
shlibpath_var=LD_LIBRARY_PATH
17253
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17254
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17255
# the default ld.so.conf also contains /usr/contrib/lib and
17256
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17257
# libtool to hard-code these into programs
17260
cygwin* | mingw* | pw32*)
17261
version_type=windows
17266
case $GCC,$host_os in
17267
yes,cygwin* | yes,mingw* | yes,pw32*)
17268
library_names_spec='$libname.dll.a'
17269
# DLL is installed to $(libdir)/../bin by postinstall_cmds
17270
postinstall_cmds='base_file=`basename \${file}`~
17271
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17272
dldir=$destdir/`dirname \$dlpath`~
17273
test -d \$dldir || mkdir -p \$dldir~
17274
$install_prog $dir/$dlname \$dldir/$dlname~
17275
chmod a+x \$dldir/$dlname'
17276
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17277
dlpath=$dir/\$dldll~
17279
shlibpath_overrides_runpath=yes
17283
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
17284
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17285
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17288
# MinGW DLLs use traditional 'lib' prefix
17289
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17290
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17291
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17292
# It is most probably a Windows format PATH printed by
17293
# mingw gcc, but we are running on Cygwin. Gcc prints its search
17294
# path with ; separators, and with drive letters. We can handle the
17295
# drive letters (cygwin fileutils understands them), so leave them,
17296
# especially as we might pass files found there to a mingw objdump,
17297
# which wouldn't understand a cygwinified path. Ahh.
17298
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17300
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17304
# pw32 DLLs use 'pw' prefix rather than 'lib'
17305
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17311
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17314
dynamic_linker='Win32 ld.exe'
17315
# FIXME: first we should search . and the directory the executable is in
17319
darwin* | rhapsody*)
17320
dynamic_linker="$host_os dyld"
17321
version_type=darwin
17324
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17325
soname_spec='${libname}${release}${major}$shared_ext'
17326
shlibpath_overrides_runpath=yes
17327
shlibpath_var=DYLD_LIBRARY_PATH
17328
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17330
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17337
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17338
soname_spec='${libname}${release}${shared_ext}$major'
17339
shlibpath_var=LD_LIBRARY_PATH
17346
freebsd* | dragonfly*)
17347
# DragonFly does not have aout. When/if they implement a new
17348
# versioning mechanism, adjust this.
17349
if test -x /usr/bin/objformat; then
17350
objformat=`/usr/bin/objformat`
17353
freebsd[123]*) objformat=aout ;;
17354
*) objformat=elf ;;
17357
version_type=freebsd-$objformat
17358
case $version_type in
17360
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17365
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17369
shlibpath_var=LD_LIBRARY_PATH
17372
shlibpath_overrides_runpath=yes
17374
freebsd3.[01]* | freebsdelf3.[01]*)
17375
shlibpath_overrides_runpath=yes
17376
hardcode_into_libs=yes
17378
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17379
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17380
shlibpath_overrides_runpath=no
17381
hardcode_into_libs=yes
17383
*) # from 4.6 on, and DragonFly
17384
shlibpath_overrides_runpath=yes
17385
hardcode_into_libs=yes
17394
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17395
soname_spec='${libname}${release}${shared_ext}$major'
17396
shlibpath_var=LD_LIBRARY_PATH
17397
hardcode_into_libs=yes
17400
hpux9* | hpux10* | hpux11*)
17401
# Give a soname corresponding to the major version so that dld.sl refuses to
17402
# link against other versions.
17409
hardcode_into_libs=yes
17410
dynamic_linker="$host_os dld.so"
17411
shlibpath_var=LD_LIBRARY_PATH
17412
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17413
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17414
soname_spec='${libname}${release}${shared_ext}$major'
17415
if test "X$HPUX_IA64_MODE" = X32; then
17416
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17418
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17420
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17424
hardcode_into_libs=yes
17425
dynamic_linker="$host_os dld.sl"
17426
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17427
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17428
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17429
soname_spec='${libname}${release}${shared_ext}$major'
17430
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17431
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17435
dynamic_linker="$host_os dld.sl"
17436
shlibpath_var=SHLIB_PATH
17437
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17438
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17439
soname_spec='${libname}${release}${shared_ext}$major'
17442
# HP-UX runs *really* slowly unless shared libraries are mode 555.
17443
postinstall_cmds='chmod 555 $lib'
17450
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17451
soname_spec='${libname}${release}${shared_ext}$major'
17452
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17453
shlibpath_var=LD_LIBRARY_PATH
17454
shlibpath_overrides_runpath=no
17455
hardcode_into_libs=yes
17458
irix5* | irix6* | nonstopux*)
17460
nonstopux*) version_type=nonstopux ;;
17462
if test "$lt_cv_prog_gnu_ld" = yes; then
17470
soname_spec='${libname}${release}${shared_ext}$major'
17471
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17473
irix5* | nonstopux*)
17474
libsuff= shlibsuff=
17477
case $LD in # libtool.m4 will add one of these switches to LD
17478
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17479
libsuff= shlibsuff= libmagic=32-bit;;
17480
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17481
libsuff=32 shlibsuff=N32 libmagic=N32;;
17482
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17483
libsuff=64 shlibsuff=64 libmagic=64-bit;;
17484
*) libsuff= shlibsuff= libmagic=never-match;;
17488
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17489
shlibpath_overrides_runpath=no
17490
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17491
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17492
hardcode_into_libs=yes
17495
# No shared lib support for Linux oldld, aout, or coff.
17496
linux*oldld* | linux*aout* | linux*coff*)
17500
# This must be Linux ELF.
17501
linux* | k*bsd*-gnu)
17505
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17506
soname_spec='${libname}${release}${shared_ext}$major'
17507
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17508
shlibpath_var=LD_LIBRARY_PATH
17509
shlibpath_overrides_runpath=no
17510
# This implies no fast_install, which is unacceptable.
17511
# Some rework will be needed to allow for fast_install
17512
# before this can be enabled.
17513
hardcode_into_libs=yes
17515
# Append ld.so.conf contents to the search path
17516
if test -f /etc/ld.so.conf; then
17517
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' ' '`
17518
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17521
# We used to test for /lib/ld.so.1 and disable shared libraries on
17522
# powerpc, because MkLinux only supported shared libraries with the
17523
# GNU dynamic linker. Since this was broken with cross compilers,
17524
# most powerpc-linux boxes support dynamic linking these days and
17525
# people can always --disable-shared, the test was removed, and we
17526
# assume the GNU/Linux dynamic linker is in use.
17527
dynamic_linker='GNU/Linux ld.so'
17534
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17535
soname_spec='${libname}${release}${shared_ext}$major'
17536
shlibpath_var=LD_LIBRARY_PATH
17537
shlibpath_overrides_runpath=no
17538
hardcode_into_libs=yes
17539
dynamic_linker='NetBSD ld.elf_so'
17546
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17547
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17548
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17549
dynamic_linker='NetBSD (a.out) ld.so'
17551
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17552
soname_spec='${libname}${release}${shared_ext}$major'
17553
dynamic_linker='NetBSD ld.elf_so'
17555
shlibpath_var=LD_LIBRARY_PATH
17556
shlibpath_overrides_runpath=yes
17557
hardcode_into_libs=yes
17562
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17563
shlibpath_var=LD_LIBRARY_PATH
17564
shlibpath_overrides_runpath=yes
17571
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17572
soname_spec='${libname}${release}${shared_ext}$major'
17573
shlibpath_var=LD_LIBRARY_PATH
17574
shlibpath_overrides_runpath=yes
17579
sys_lib_dlsearch_path_spec="/usr/lib"
17581
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17583
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17584
*) need_version=no ;;
17586
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17587
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17588
shlibpath_var=LD_LIBRARY_PATH
17589
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17591
openbsd2.[89] | openbsd2.[89].*)
17592
shlibpath_overrides_runpath=no
17595
shlibpath_overrides_runpath=yes
17599
shlibpath_overrides_runpath=yes
17604
libname_spec='$name'
17607
library_names_spec='$libname${shared_ext} $libname.a'
17608
dynamic_linker='OS/2 ld.exe'
17609
shlibpath_var=LIBPATH
17612
osf3* | osf4* | osf5*)
17616
soname_spec='${libname}${release}${shared_ext}$major'
17617
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17618
shlibpath_var=LD_LIBRARY_PATH
17619
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17620
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17631
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17632
soname_spec='${libname}${release}${shared_ext}$major'
17633
shlibpath_var=LD_LIBRARY_PATH
17634
shlibpath_overrides_runpath=yes
17635
hardcode_into_libs=yes
17636
# ldd complains unless libraries are executable
17637
postinstall_cmds='chmod +x $lib'
17642
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17643
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17644
shlibpath_var=LD_LIBRARY_PATH
17645
shlibpath_overrides_runpath=yes
17646
if test "$with_gnu_ld" = yes; then
17654
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17655
soname_spec='${libname}${release}${shared_ext}$major'
17656
shlibpath_var=LD_LIBRARY_PATH
17657
case $host_vendor in
17659
shlibpath_overrides_runpath=no
17661
export_dynamic_flag_spec='${wl}-Blargedynsym'
17662
runpath_var=LD_RUN_PATH
17670
shlibpath_overrides_runpath=no
17671
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17677
if test -d /usr/nec ;then
17679
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17680
soname_spec='$libname${shared_ext}.$major'
17681
shlibpath_var=LD_LIBRARY_PATH
17685
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17686
version_type=freebsd-elf
17689
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17690
soname_spec='${libname}${release}${shared_ext}$major'
17691
shlibpath_var=LD_LIBRARY_PATH
17692
hardcode_into_libs=yes
17693
if test "$with_gnu_ld" = yes; then
17694
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17695
shlibpath_overrides_runpath=no
17697
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17698
shlibpath_overrides_runpath=yes
17701
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17705
sys_lib_dlsearch_path_spec='/usr/lib'
17710
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17711
soname_spec='${libname}${release}${shared_ext}$major'
17712
shlibpath_var=LD_LIBRARY_PATH
17719
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17720
echo "${ECHO_T}$dynamic_linker" >&6; }
17721
test "$dynamic_linker" = no && can_build_shared=no
17723
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17724
echo $ECHO_N "(cached) $ECHO_C" >&6
17726
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
17729
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17730
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17731
echo $ECHO_N "(cached) $ECHO_C" >&6
17733
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
17736
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17738
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17739
if test "$GCC" = yes; then
17740
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17743
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17744
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17745
hardcode_action_F77=
17746
if test -n "$hardcode_libdir_flag_spec_F77" || \
17747
test -n "$runpath_var_F77" || \
17748
test "X$hardcode_automatic_F77" = "Xyes" ; then
17750
# We can hardcode non-existant directories.
17751
if test "$hardcode_direct_F77" != no &&
17752
# If the only mechanism to avoid hardcoding is shlibpath_var, we
17753
# have to relink, otherwise we might link with an installed library
17754
# when we should be linking with a yet-to-be-installed one
17755
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17756
test "$hardcode_minus_L_F77" != no; then
17757
# Linking always hardcodes the temporary library directory.
17758
hardcode_action_F77=relink
17760
# We can link without hardcoding, and we can hardcode nonexisting dirs.
17761
hardcode_action_F77=immediate
17764
# We cannot hardcode anything, or else we can only hardcode existing
17766
hardcode_action_F77=unsupported
17768
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17769
echo "${ECHO_T}$hardcode_action_F77" >&6; }
17771
if test "$hardcode_action_F77" = relink; then
17772
# Fast installation is not supported
17773
enable_fast_install=no
17774
elif test "$shlibpath_overrides_runpath" = yes ||
17775
test "$enable_shared" = no; then
17776
# Fast installation is not necessary
17777
enable_fast_install=needless
17781
# The else clause should only fire when bootstrapping the
17782
# libtool distribution, otherwise you forgot to ship ltmain.sh
17783
# with your package, and you will get complaints that there are
17784
# no rules to generate ltmain.sh.
17785
if test -f "$ltmain"; then
17786
# See if we are running on zsh, and set the options which allow our commands through
17787
# without removal of \ escapes.
17788
if test -n "${ZSH_VERSION+set}" ; then
17789
setopt NO_GLOB_SUBST
17791
# Now quote all the things that may contain metacharacters while being
17792
# careful not to overquote the AC_SUBSTed values. We take copies of the
17793
# variables and quote the copies for generation of the libtool script.
17794
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17796
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17797
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17798
deplibs_check_method reload_flag reload_cmds need_locks \
17799
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17800
lt_cv_sys_global_symbol_to_c_name_address \
17801
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17802
old_postinstall_cmds old_postuninstall_cmds \
17806
lt_prog_compiler_wl_F77 \
17807
lt_prog_compiler_pic_F77 \
17808
lt_prog_compiler_static_F77 \
17809
lt_prog_compiler_no_builtin_flag_F77 \
17810
export_dynamic_flag_spec_F77 \
17811
thread_safe_flag_spec_F77 \
17812
whole_archive_flag_spec_F77 \
17813
enable_shared_with_static_runtimes_F77 \
17814
old_archive_cmds_F77 \
17815
old_archive_from_new_cmds_F77 \
17816
predep_objects_F77 \
17817
postdep_objects_F77 \
17820
compiler_lib_search_path_F77 \
17821
compiler_lib_search_dirs_F77 \
17823
archive_expsym_cmds_F77 \
17824
postinstall_cmds_F77 \
17825
postuninstall_cmds_F77 \
17826
old_archive_from_expsyms_cmds_F77 \
17827
allow_undefined_flag_F77 \
17828
no_undefined_flag_F77 \
17829
export_symbols_cmds_F77 \
17830
hardcode_libdir_flag_spec_F77 \
17831
hardcode_libdir_flag_spec_ld_F77 \
17832
hardcode_libdir_separator_F77 \
17833
hardcode_automatic_F77 \
17835
module_expsym_cmds_F77 \
17836
lt_cv_prog_compiler_c_o_F77 \
17837
fix_srcfile_path_F77 \
17838
exclude_expsyms_F77 \
17839
include_expsyms_F77; do
17842
old_archive_cmds_F77 | \
17843
old_archive_from_new_cmds_F77 | \
17844
archive_cmds_F77 | \
17845
archive_expsym_cmds_F77 | \
17846
module_cmds_F77 | \
17847
module_expsym_cmds_F77 | \
17848
old_archive_from_expsyms_cmds_F77 | \
17849
export_symbols_cmds_F77 | \
17850
extract_expsyms_cmds | reload_cmds | finish_cmds | \
17851
postinstall_cmds | postuninstall_cmds | \
17852
old_postinstall_cmds | old_postuninstall_cmds | \
17853
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17854
# Double-quote double-evaled strings.
17855
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17858
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17864
*'\$0 --fallback-echo"')
17865
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17871
cat <<__EOF__ >> "$cfgfile"
17872
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17874
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17876
# Shell to use when invoking shell scripts.
17879
# Whether or not to build shared libraries.
17880
build_libtool_libs=$enable_shared
17882
# Whether or not to build static libraries.
17883
build_old_libs=$enable_static
17885
# Whether or not to add -lc for building shared libraries.
17886
build_libtool_need_lc=$archive_cmds_need_lc_F77
17888
# Whether or not to disallow shared libs when runtime libs are static
17889
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17891
# Whether or not to optimize for fast installation.
17892
fast_install=$enable_fast_install
17895
host_alias=$host_alias
17899
# The build system.
17900
build_alias=$build_alias
17904
# An echo program that does not interpret backslashes.
17909
AR_FLAGS=$lt_AR_FLAGS
17914
# LTCC compiler flags.
17915
LTCFLAGS=$lt_LTCFLAGS
17917
# A language-specific compiler.
17918
CC=$lt_compiler_F77
17920
# Is the compiler the GNU C compiler?
17926
# The linker used to build libraries.
17929
# Whether we need hard or soft links.
17932
# A BSD-compatible nm program.
17935
# A symbol stripping program
17938
# Used to examine libraries when file_magic_cmd begins "file"
17939
MAGIC_CMD=$MAGIC_CMD
17941
# Used on cygwin: DLL creation program.
17944
# Used on cygwin: object dumper.
17947
# Used on cygwin: assembler.
17950
# The name of the directory that contains temporary libtool files.
17953
# How to create reloadable object files.
17954
reload_flag=$lt_reload_flag
17955
reload_cmds=$lt_reload_cmds
17957
# How to pass a linker flag through the compiler.
17958
wl=$lt_lt_prog_compiler_wl_F77
17960
# Object file suffix (normally "o").
17961
objext="$ac_objext"
17963
# Old archive suffix (normally "a").
17966
# Shared library suffix (normally ".so").
17967
shrext_cmds='$shrext_cmds'
17969
# Executable file suffix (normally "").
17972
# Additional compiler flags for building library objects.
17973
pic_flag=$lt_lt_prog_compiler_pic_F77
17976
# What is the maximum length of a command?
17977
max_cmd_len=$lt_cv_sys_max_cmd_len
17979
# Does compiler simultaneously support -c and -o options?
17980
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17982
# Must we lock files when doing compilation?
17983
need_locks=$lt_need_locks
17985
# Do we need the lib prefix for modules?
17986
need_lib_prefix=$need_lib_prefix
17988
# Do we need a version for libraries?
17989
need_version=$need_version
17991
# Whether dlopen is supported.
17992
dlopen_support=$enable_dlopen
17994
# Whether dlopen of programs is supported.
17995
dlopen_self=$enable_dlopen_self
17997
# Whether dlopen of statically linked programs is supported.
17998
dlopen_self_static=$enable_dlopen_self_static
18000
# Compiler flag to prevent dynamic linking.
18001
link_static_flag=$lt_lt_prog_compiler_static_F77
18003
# Compiler flag to turn off builtin functions.
18004
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
18006
# Compiler flag to allow reflexive dlopens.
18007
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
18009
# Compiler flag to generate shared objects directly from archives.
18010
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
18012
# Compiler flag to generate thread-safe objects.
18013
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
18015
# Library versioning type.
18016
version_type=$version_type
18018
# Format of library name prefix.
18019
libname_spec=$lt_libname_spec
18021
# List of archive names. First name is the real one, the rest are links.
18022
# The last name is the one that the linker finds with -lNAME.
18023
library_names_spec=$lt_library_names_spec
18025
# The coded name of the library, if different from the real name.
18026
soname_spec=$lt_soname_spec
18028
# Commands used to build and install an old-style archive.
18030
old_archive_cmds=$lt_old_archive_cmds_F77
18031
old_postinstall_cmds=$lt_old_postinstall_cmds
18032
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18034
# Create an old-style archive from a shared archive.
18035
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
18037
# Create a temporary old-style archive to link instead of a shared archive.
18038
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
18040
# Commands used to build and install a shared archive.
18041
archive_cmds=$lt_archive_cmds_F77
18042
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
18043
postinstall_cmds=$lt_postinstall_cmds
18044
postuninstall_cmds=$lt_postuninstall_cmds
18046
# Commands used to build a loadable module (assumed same as above if empty)
18047
module_cmds=$lt_module_cmds_F77
18048
module_expsym_cmds=$lt_module_expsym_cmds_F77
18050
# Commands to strip libraries.
18051
old_striplib=$lt_old_striplib
18052
striplib=$lt_striplib
18054
# Dependencies to place before the objects being linked to create a
18056
predep_objects=$lt_predep_objects_F77
18058
# Dependencies to place after the objects being linked to create a
18060
postdep_objects=$lt_postdep_objects_F77
18062
# Dependencies to place before the objects being linked to create a
18064
predeps=$lt_predeps_F77
18066
# Dependencies to place after the objects being linked to create a
18068
postdeps=$lt_postdeps_F77
18070
# The directories searched by this compiler when creating a shared
18072
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
18074
# The library search path used internally by the compiler when linking
18075
# a shared library.
18076
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
18078
# Method to check whether dependent libraries are shared objects.
18079
deplibs_check_method=$lt_deplibs_check_method
18081
# Command to use when deplibs_check_method == file_magic.
18082
file_magic_cmd=$lt_file_magic_cmd
18084
# Flag that allows shared libraries with undefined symbols to be built.
18085
allow_undefined_flag=$lt_allow_undefined_flag_F77
18087
# Flag that forces no undefined symbols.
18088
no_undefined_flag=$lt_no_undefined_flag_F77
18090
# Commands used to finish a libtool library installation in a directory.
18091
finish_cmds=$lt_finish_cmds
18093
# Same as above, but a single script fragment to be evaled but not shown.
18094
finish_eval=$lt_finish_eval
18096
# Take the output of nm and produce a listing of raw symbols and C names.
18097
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18099
# Transform the output of nm in a proper C declaration
18100
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18102
# Transform the output of nm in a C name address pair
18103
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18105
# This is the shared library runtime path variable.
18106
runpath_var=$runpath_var
18108
# This is the shared library path variable.
18109
shlibpath_var=$shlibpath_var
18111
# Is shlibpath searched before the hard-coded library search path?
18112
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18114
# How to hardcode a shared library path into an executable.
18115
hardcode_action=$hardcode_action_F77
18117
# Whether we should hardcode library paths into libraries.
18118
hardcode_into_libs=$hardcode_into_libs
18120
# Flag to hardcode \$libdir into a binary during linking.
18121
# This must work even if \$libdir does not exist.
18122
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
18124
# If ld is used when linking, flag to hardcode \$libdir into
18125
# a binary during linking. This must work even if \$libdir does
18127
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
18129
# Whether we need a single -rpath flag with a separated argument.
18130
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
18132
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18133
# resulting binary.
18134
hardcode_direct=$hardcode_direct_F77
18136
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18137
# resulting binary.
18138
hardcode_minus_L=$hardcode_minus_L_F77
18140
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18141
# the resulting binary.
18142
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
18144
# Set to yes if building a shared library automatically hardcodes DIR into the library
18145
# and all subsequent libraries and executables linked against it.
18146
hardcode_automatic=$hardcode_automatic_F77
18148
# Variables whose values should be saved in libtool wrapper scripts and
18149
# restored at relink time.
18150
variables_saved_for_relink="$variables_saved_for_relink"
18152
# Whether libtool must link a program against all its dependency libraries.
18153
link_all_deplibs=$link_all_deplibs_F77
18155
# Compile-time system search path for libraries
18156
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18158
# Run-time system search path for libraries
18159
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18161
# Fix the shell variable \$srcfile for the compiler.
18162
fix_srcfile_path=$lt_fix_srcfile_path
18164
# Set to yes if exported symbols are required.
18165
always_export_symbols=$always_export_symbols_F77
18167
# The commands to list exported symbols.
18168
export_symbols_cmds=$lt_export_symbols_cmds_F77
18170
# The commands to extract the exported symbol list from a shared archive.
18171
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18173
# Symbols that should not be listed in the preloaded symbols.
18174
exclude_expsyms=$lt_exclude_expsyms_F77
18176
# Symbols that must always be exported.
18177
include_expsyms=$lt_include_expsyms_F77
18179
# ### END LIBTOOL TAG CONFIG: $tagname
18185
# If there is no Makefile yet, we rely on a make rule to execute
18186
# `config.status --recheck' to rerun these tests and create the
18187
# libtool script then.
18188
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18189
if test -f "$ltmain_in"; then
18190
test -f Makefile && make "$ltmain"
18196
ac_cpp='$CPP $CPPFLAGS'
18197
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18198
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18199
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18209
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
18212
# Source file extension for Java test sources.
18215
# Object file extension for compiled Java test sources.
18219
# Code to be used in simple compile tests
18220
lt_simple_compile_test_code="class foo {}"
18222
# Code to be used in simple link tests
18223
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
18225
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18227
# If no C compiler was specified, use CC.
18230
# If no C compiler flags were specified, use CFLAGS.
18231
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18233
# Allow CC to be a program name with arguments.
18237
# save warnings/boilerplate of simple test code
18238
ac_outfile=conftest.$ac_objext
18239
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18240
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18241
_lt_compiler_boilerplate=`cat conftest.err`
18244
ac_outfile=conftest.$ac_objext
18245
echo "$lt_simple_link_test_code" >conftest.$ac_ext
18246
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18247
_lt_linker_boilerplate=`cat conftest.err`
18251
# Allow CC to be a program name with arguments.
18256
for cc_temp in $compiler""; do
18258
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18259
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18264
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18267
# GCJ did not exist at the time GCC didn't implicitly link libc in.
18268
archive_cmds_need_lc_GCJ=no
18270
old_archive_cmds_GCJ=$old_archive_cmds
18273
lt_prog_compiler_no_builtin_flag_GCJ=
18275
if test "$GCC" = yes; then
18276
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
18279
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18280
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
18281
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
18282
echo $ECHO_N "(cached) $ECHO_C" >&6
18284
lt_cv_prog_compiler_rtti_exceptions=no
18285
ac_outfile=conftest.$ac_objext
18286
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18287
lt_compiler_flag="-fno-rtti -fno-exceptions"
18288
# Insert the option either (1) after the last *FLAGS variable, or
18289
# (2) before a word containing "conftest.", or (3) at the end.
18290
# Note that $ac_compile itself does not contain backslashes and begins
18291
# with a dollar sign (not a hyphen), so the echo should work correctly.
18292
# The option is referenced via a variable to avoid confusing sed.
18293
lt_compile=`echo "$ac_compile" | $SED \
18294
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18295
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18296
-e 's:$: $lt_compiler_flag:'`
18297
(eval echo "\"\$as_me:18297: $lt_compile\"" >&5)
18298
(eval "$lt_compile" 2>conftest.err)
18300
cat conftest.err >&5
18301
echo "$as_me:18301: \$? = $ac_status" >&5
18302
if (exit $ac_status) && test -s "$ac_outfile"; then
18303
# The compiler can only warn and ignore the option if not recognized
18304
# So say no if there are warnings other than the usual output.
18305
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18306
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18307
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18308
lt_cv_prog_compiler_rtti_exceptions=yes
18314
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18315
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18317
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18318
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18325
lt_prog_compiler_wl_GCJ=
18326
lt_prog_compiler_pic_GCJ=
18327
lt_prog_compiler_static_GCJ=
18329
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18330
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18332
if test "$GCC" = yes; then
18333
lt_prog_compiler_wl_GCJ='-Wl,'
18334
lt_prog_compiler_static_GCJ='-static'
18338
# All AIX code is PIC.
18339
if test "$host_cpu" = ia64; then
18340
# AIX 5 now supports IA64 processor
18341
lt_prog_compiler_static_GCJ='-Bstatic'
18346
# FIXME: we need at least 68020 code to build shared libraries, but
18347
# adding the `-m68020' flag to GCC prevents building anything better,
18349
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18352
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18353
# PIC is the default for these OSes.
18356
mingw* | cygwin* | pw32* | os2*)
18357
# This hack is so that the source file can tell whether it is being
18358
# built for inclusion in a dll (and should export symbols for example).
18359
# Although the cygwin gcc ignores -fPIC, still need this for old-style
18360
# (--disable-auto-import) libraries
18364
darwin* | rhapsody*)
18365
# PIC is the default on this platform
18366
# Common symbols not allowed in MH_DYLIB files
18367
lt_prog_compiler_pic_GCJ='-fno-common'
18371
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
18372
# Instead, we relocate shared libraries at runtime.
18376
# Just because we use GCC doesn't mean we suddenly get shared libraries
18377
# on systems that don't support them.
18378
lt_prog_compiler_can_build_shared_GCJ=no
18383
if test -d /usr/nec; then
18384
lt_prog_compiler_pic_GCJ=-Kconform_pic
18389
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18390
# not for PA HP-UX.
18396
lt_prog_compiler_pic_GCJ='-fPIC'
18402
lt_prog_compiler_pic_GCJ='-fPIC'
18406
# PORTME Check for flag to pass linker flags through the system compiler.
18409
lt_prog_compiler_wl_GCJ='-Wl,'
18410
if test "$host_cpu" = ia64; then
18411
# AIX 5 now supports IA64 processor
18412
lt_prog_compiler_static_GCJ='-Bstatic'
18414
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18418
# PIC is the default on this platform
18419
# Common symbols not allowed in MH_DYLIB files
18420
case $cc_basename in
18422
lt_prog_compiler_pic_GCJ='-qnocommon'
18423
lt_prog_compiler_wl_GCJ='-Wl,'
18428
mingw* | cygwin* | pw32* | os2*)
18429
# This hack is so that the source file can tell whether it is being
18430
# built for inclusion in a dll (and should export symbols for example).
18434
hpux9* | hpux10* | hpux11*)
18435
lt_prog_compiler_wl_GCJ='-Wl,'
18436
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18437
# not for PA HP-UX.
18443
lt_prog_compiler_pic_GCJ='+Z'
18446
# Is there a better lt_prog_compiler_static that works with the bundled CC?
18447
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18450
irix5* | irix6* | nonstopux*)
18451
lt_prog_compiler_wl_GCJ='-Wl,'
18452
# PIC (with -KPIC) is the default.
18453
lt_prog_compiler_static_GCJ='-non_shared'
18457
lt_prog_compiler_pic_GCJ='-KPIC'
18458
lt_prog_compiler_static_GCJ='-Bstatic'
18461
linux* | k*bsd*-gnu)
18462
case $cc_basename in
18464
lt_prog_compiler_wl_GCJ='-Wl,'
18465
lt_prog_compiler_pic_GCJ='-KPIC'
18466
lt_prog_compiler_static_GCJ='-static'
18468
pgcc* | pgf77* | pgf90* | pgf95*)
18469
# Portland Group compilers (*not* the Pentium gcc compiler,
18470
# which looks to be a dead project)
18471
lt_prog_compiler_wl_GCJ='-Wl,'
18472
lt_prog_compiler_pic_GCJ='-fpic'
18473
lt_prog_compiler_static_GCJ='-Bstatic'
18476
lt_prog_compiler_wl_GCJ='-Wl,'
18477
# All Alpha code is PIC.
18478
lt_prog_compiler_static_GCJ='-non_shared'
18481
case `$CC -V 2>&1 | sed 5q` in
18484
lt_prog_compiler_pic_GCJ='-KPIC'
18485
lt_prog_compiler_static_GCJ='-Bstatic'
18486
lt_prog_compiler_wl_GCJ='-Wl,'
18489
# Sun Fortran 8.3 passes all unrecognized flags to the linker
18490
lt_prog_compiler_pic_GCJ='-KPIC'
18491
lt_prog_compiler_static_GCJ='-Bstatic'
18492
lt_prog_compiler_wl_GCJ=''
18499
osf3* | osf4* | osf5*)
18500
lt_prog_compiler_wl_GCJ='-Wl,'
18501
# All OSF/1 code is PIC.
18502
lt_prog_compiler_static_GCJ='-non_shared'
18506
lt_prog_compiler_static_GCJ='-non_shared'
18510
lt_prog_compiler_pic_GCJ='-KPIC'
18511
lt_prog_compiler_static_GCJ='-Bstatic'
18512
case $cc_basename in
18513
f77* | f90* | f95*)
18514
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18516
lt_prog_compiler_wl_GCJ='-Wl,';;
18521
lt_prog_compiler_wl_GCJ='-Qoption ld '
18522
lt_prog_compiler_pic_GCJ='-PIC'
18523
lt_prog_compiler_static_GCJ='-Bstatic'
18526
sysv4 | sysv4.2uw2* | sysv4.3*)
18527
lt_prog_compiler_wl_GCJ='-Wl,'
18528
lt_prog_compiler_pic_GCJ='-KPIC'
18529
lt_prog_compiler_static_GCJ='-Bstatic'
18533
if test -d /usr/nec ;then
18534
lt_prog_compiler_pic_GCJ='-Kconform_pic'
18535
lt_prog_compiler_static_GCJ='-Bstatic'
18539
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18540
lt_prog_compiler_wl_GCJ='-Wl,'
18541
lt_prog_compiler_pic_GCJ='-KPIC'
18542
lt_prog_compiler_static_GCJ='-Bstatic'
18546
lt_prog_compiler_wl_GCJ='-Wl,'
18547
lt_prog_compiler_can_build_shared_GCJ=no
18551
lt_prog_compiler_pic_GCJ='-pic'
18552
lt_prog_compiler_static_GCJ='-Bstatic'
18556
lt_prog_compiler_can_build_shared_GCJ=no
18561
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18562
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18565
# Check to make sure the PIC flag actually works.
18567
if test -n "$lt_prog_compiler_pic_GCJ"; then
18569
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18570
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
18571
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
18572
echo $ECHO_N "(cached) $ECHO_C" >&6
18574
lt_cv_prog_compiler_pic_works_GCJ=no
18575
ac_outfile=conftest.$ac_objext
18576
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18577
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18578
# Insert the option either (1) after the last *FLAGS variable, or
18579
# (2) before a word containing "conftest.", or (3) at the end.
18580
# Note that $ac_compile itself does not contain backslashes and begins
18581
# with a dollar sign (not a hyphen), so the echo should work correctly.
18582
# The option is referenced via a variable to avoid confusing sed.
18583
lt_compile=`echo "$ac_compile" | $SED \
18584
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18585
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18586
-e 's:$: $lt_compiler_flag:'`
18587
(eval echo "\"\$as_me:18587: $lt_compile\"" >&5)
18588
(eval "$lt_compile" 2>conftest.err)
18590
cat conftest.err >&5
18591
echo "$as_me:18591: \$? = $ac_status" >&5
18592
if (exit $ac_status) && test -s "$ac_outfile"; then
18593
# The compiler can only warn and ignore the option if not recognized
18594
# So say no if there are warnings other than the usual output.
18595
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18596
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18597
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18598
lt_cv_prog_compiler_pic_works_GCJ=yes
18604
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
18605
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
18607
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
18608
case $lt_prog_compiler_pic_GCJ in
18610
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18613
lt_prog_compiler_pic_GCJ=
18614
lt_prog_compiler_can_build_shared_GCJ=no
18619
# For platforms which do not support PIC, -DPIC is meaningless:
18621
lt_prog_compiler_pic_GCJ=
18624
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18629
# Check to make sure the static flag actually works.
18631
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18632
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18633
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18634
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
18635
echo $ECHO_N "(cached) $ECHO_C" >&6
18637
lt_cv_prog_compiler_static_works_GCJ=no
18638
save_LDFLAGS="$LDFLAGS"
18639
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18640
echo "$lt_simple_link_test_code" > conftest.$ac_ext
18641
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18642
# The linker can only warn and ignore the option if not recognized
18643
# So say no if there are warnings
18644
if test -s conftest.err; then
18645
# Append any errors to the config.log.
18646
cat conftest.err 1>&5
18647
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18648
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18649
if diff conftest.exp conftest.er2 >/dev/null; then
18650
lt_cv_prog_compiler_static_works_GCJ=yes
18653
lt_cv_prog_compiler_static_works_GCJ=yes
18657
LDFLAGS="$save_LDFLAGS"
18660
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
18661
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
18663
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
18666
lt_prog_compiler_static_GCJ=
18670
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18671
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18672
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18673
echo $ECHO_N "(cached) $ECHO_C" >&6
18675
lt_cv_prog_compiler_c_o_GCJ=no
18676
$rm -r conftest 2>/dev/null
18680
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18682
lt_compiler_flag="-o out/conftest2.$ac_objext"
18683
# Insert the option either (1) after the last *FLAGS variable, or
18684
# (2) before a word containing "conftest.", or (3) at the end.
18685
# Note that $ac_compile itself does not contain backslashes and begins
18686
# with a dollar sign (not a hyphen), so the echo should work correctly.
18687
lt_compile=`echo "$ac_compile" | $SED \
18688
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18689
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18690
-e 's:$: $lt_compiler_flag:'`
18691
(eval echo "\"\$as_me:18691: $lt_compile\"" >&5)
18692
(eval "$lt_compile" 2>out/conftest.err)
18694
cat out/conftest.err >&5
18695
echo "$as_me:18695: \$? = $ac_status" >&5
18696
if (exit $ac_status) && test -s out/conftest2.$ac_objext
18698
# The compiler can only warn and ignore the option if not recognized
18699
# So say no if there are warnings
18700
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18701
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18702
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18703
lt_cv_prog_compiler_c_o_GCJ=yes
18708
# SGI C++ compiler will create directory out/ii_files/ for
18709
# template instantiation
18710
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18711
$rm out/* && rmdir out
18717
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18718
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18721
hard_links="nottested"
18722
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18723
# do not overwrite the value of need_locks provided by the user
18724
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18725
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18728
ln conftest.a conftest.b 2>/dev/null && hard_links=no
18730
ln conftest.a conftest.b 2>&5 || hard_links=no
18731
ln conftest.a conftest.b 2>/dev/null && hard_links=no
18732
{ echo "$as_me:$LINENO: result: $hard_links" >&5
18733
echo "${ECHO_T}$hard_links" >&6; }
18734
if test "$hard_links" = no; then
18735
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18736
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18743
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18744
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18747
allow_undefined_flag_GCJ=
18748
enable_shared_with_static_runtimes_GCJ=no
18750
archive_expsym_cmds_GCJ=
18751
old_archive_From_new_cmds_GCJ=
18752
old_archive_from_expsyms_cmds_GCJ=
18753
export_dynamic_flag_spec_GCJ=
18754
whole_archive_flag_spec_GCJ=
18755
thread_safe_flag_spec_GCJ=
18756
hardcode_libdir_flag_spec_GCJ=
18757
hardcode_libdir_flag_spec_ld_GCJ=
18758
hardcode_libdir_separator_GCJ=
18759
hardcode_direct_GCJ=no
18760
hardcode_minus_L_GCJ=no
18761
hardcode_shlibpath_var_GCJ=unsupported
18762
link_all_deplibs_GCJ=unknown
18763
hardcode_automatic_GCJ=no
18765
module_expsym_cmds_GCJ=
18766
always_export_symbols_GCJ=no
18767
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18768
# include_expsyms should be a list of space-separated symbols to be *always*
18769
# included in the symbol list
18770
include_expsyms_GCJ=
18771
# exclude_expsyms can be an extended regexp of symbols to exclude
18772
# it will be wrapped by ` (' and `)$', so one must not match beginning or
18773
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18774
# as well as any symbol that contains `d'.
18775
exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18776
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18777
# platforms (ab)use it in PIC code, but their linkers get confused if
18778
# the symbol is explicitly referenced. Since portable code cannot
18779
# rely on this symbol name, it's probably fine to never include it in
18780
# preloaded symbol tables.
18781
# Exclude shared library initialization/finalization symbols.
18782
extract_expsyms_cmds=
18783
# Just being paranoid about ensuring that cc_basename is set.
18784
for cc_temp in $compiler""; do
18786
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18787
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18792
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18795
cygwin* | mingw* | pw32*)
18796
# FIXME: the MSVC++ port hasn't been tested in a loooong time
18797
# When not using gcc, we currently assume that we are using
18798
# Microsoft Visual C++.
18799
if test "$GCC" != yes; then
18804
# we just hope/assume this is gcc and not c89 (= MSVC++)
18813
if test "$with_gnu_ld" = yes; then
18814
# If archive_cmds runs LD, not CC, wlarc should be empty
18817
# Set some defaults for GNU ld with shared library support. These
18818
# are reset later if shared libraries are not supported. Putting them
18819
# here allows them to be overridden if necessary.
18820
runpath_var=LD_RUN_PATH
18821
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18822
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18823
# ancient GNU ld didn't support --whole-archive et. al.
18824
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18825
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18827
whole_archive_flag_spec_GCJ=
18829
supports_anon_versioning=no
18830
case `$LD -v 2>/dev/null` in
18831
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18832
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18833
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18834
*\ 2.11.*) ;; # other 2.11 versions
18835
*) supports_anon_versioning=yes ;;
18838
# See if GNU ld supports shared libraries.
18841
# On AIX/PPC, the GNU linker is very broken
18842
if test "$host_cpu" != ia64; then
18846
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
18847
*** to be unable to reliably create shared libraries on AIX.
18848
*** Therefore, libtool is disabling shared libraries support. If you
18849
*** really care for shared libraries, you may want to modify your PATH
18850
*** so that a non-GNU linker is found, and then restart.
18857
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)'
18858
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18859
hardcode_minus_L_GCJ=yes
18861
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18862
# that the semantics of dynamic libraries on AmigaOS, at least up
18863
# to version 4, is to share data among multiple programs linked
18864
# with the same dynamic library. Since this doesn't match the
18865
# behavior of shared libraries on other platforms, we can't use
18871
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18872
allow_undefined_flag_GCJ=unsupported
18873
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18874
# support --undefined. This deserves some investigation. FIXME
18875
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18881
cygwin* | mingw* | pw32*)
18882
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18883
# as there is no search path for DLLs.
18884
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18885
allow_undefined_flag_GCJ=unsupported
18886
always_export_symbols_GCJ=no
18887
enable_shared_with_static_runtimes_GCJ=yes
18888
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18890
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18891
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18892
# If the export-symbols file already is a .def file (1st line
18893
# is EXPORTS), use it as is; otherwise, prepend...
18894
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18895
cp $export_symbols $output_objdir/$soname.def;
18897
echo EXPORTS > $output_objdir/$soname.def;
18898
cat $export_symbols >> $output_objdir/$soname.def;
18900
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18907
hardcode_direct_GCJ=no
18908
hardcode_shlibpath_var_GCJ=no
18909
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18910
export_dynamic_flag_spec_GCJ='${wl}-E'
18911
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18912
# Instead, shared libraries are loaded at an image base (0x10000000 by
18913
# default) and relocated if they conflict, which is a slow very memory
18914
# consuming and fragmenting process. To avoid this, we pick a random,
18915
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18916
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
18917
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'
18918
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'
18921
gnu* | linux* | k*bsd*-gnu)
18922
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18924
case $cc_basename,$host_cpu in
18925
pgcc*) # Portland Group C compiler
18926
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'
18927
tmp_addflag=' $pic_flag'
18929
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18930
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'
18931
tmp_addflag=' $pic_flag -Mnomain' ;;
18932
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18933
tmp_addflag=' -i_dynamic' ;;
18934
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18935
tmp_addflag=' -i_dynamic -nofor_main' ;;
18936
ifc* | ifort*) # Intel Fortran compiler
18937
tmp_addflag=' -nofor_main' ;;
18939
case `$CC -V 2>&1 | sed 5q` in
18940
*Sun\ C*) # Sun C 5.9
18941
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'
18942
tmp_sharedflag='-G' ;;
18943
*Sun\ F*) # Sun Fortran 8.3
18944
tmp_sharedflag='-G' ;;
18946
tmp_sharedflag='-shared' ;;
18948
archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18950
if test $supports_anon_versioning = yes; then
18951
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18952
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18953
$echo "local: *; };" >> $output_objdir/$libname.ver~
18954
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18956
link_all_deplibs_GCJ=no
18962
netbsd* | netbsdelf*-gnu)
18963
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18964
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18967
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18968
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18973
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18977
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
18978
*** create shared libraries on Solaris systems. Therefore, libtool
18979
*** is disabling shared libraries support. We urge you to upgrade GNU
18980
*** binutils to release 2.9.1 or newer. Another option is to modify
18981
*** your PATH or compiler configuration so that the native linker is
18982
*** used, and then restart.
18985
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18986
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18987
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18993
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18994
case `$LD -v 2>&1` in
18995
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18999
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
19000
*** reliably create shared libraries on SCO systems. Therefore, libtool
19001
*** is disabling shared libraries support. We urge you to upgrade GNU
19002
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
19003
*** your PATH or compiler configuration so that the native linker is
19004
*** used, and then restart.
19009
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19010
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
19011
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
19012
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
19021
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19023
hardcode_direct_GCJ=yes
19024
hardcode_shlibpath_var_GCJ=no
19028
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19029
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19030
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19037
if test "$ld_shlibs_GCJ" = no; then
19039
hardcode_libdir_flag_spec_GCJ=
19040
export_dynamic_flag_spec_GCJ=
19041
whole_archive_flag_spec_GCJ=
19044
# PORTME fill in a description of your system's linker (not GNU ld)
19047
allow_undefined_flag_GCJ=unsupported
19048
always_export_symbols_GCJ=yes
19049
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'
19050
# Note: this linker hardcodes the directories in LIBPATH if there
19051
# are no directories specified by -L.
19052
hardcode_minus_L_GCJ=yes
19053
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
19054
# Neither direct hardcoding nor static linking is supported with a
19056
hardcode_direct_GCJ=unsupported
19061
if test "$host_cpu" = ia64; then
19062
# On IA64, the linker does run time linking by default, so we don't
19063
# have to do anything special.
19064
aix_use_runtimelinking=no
19065
exp_sym_flag='-Bexport'
19068
# If we're using GNU nm, then we don't want the "-C" option.
19069
# -C means demangle to AIX nm, but means don't demangle with GNU nm
19070
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19071
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'
19073
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'
19075
aix_use_runtimelinking=no
19077
# Test if we are trying to use run time linking or normal
19078
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
19079
# need to do runtime linking.
19080
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19081
for ld_flag in $LDFLAGS; do
19082
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19083
aix_use_runtimelinking=yes
19090
exp_sym_flag='-bexport'
19091
no_entry_flag='-bnoentry'
19094
# When large executables or shared objects are built, AIX ld can
19095
# have problems creating the table of contents. If linking a library
19096
# or program results in "error TOC overflow" add -mminimal-toc to
19097
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19098
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19100
archive_cmds_GCJ=''
19101
hardcode_direct_GCJ=yes
19102
hardcode_libdir_separator_GCJ=':'
19103
link_all_deplibs_GCJ=yes
19105
if test "$GCC" = yes; then
19106
case $host_os in aix4.[012]|aix4.[012].*)
19107
# We only want to do this on AIX 4.2 and lower, the check
19108
# below for broken collect2 doesn't work under 4.3+
19109
collect2name=`${CC} -print-prog-name=collect2`
19110
if test -f "$collect2name" && \
19111
strings "$collect2name" | grep resolve_lib_name >/dev/null
19113
# We have reworked collect2
19116
# We have old collect2
19117
hardcode_direct_GCJ=unsupported
19118
# It fails to find uninstalled libraries when the uninstalled
19119
# path is not listed in the libpath. Setting hardcode_minus_L
19120
# to unsupported forces relinking
19121
hardcode_minus_L_GCJ=yes
19122
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19123
hardcode_libdir_separator_GCJ=
19127
shared_flag='-shared'
19128
if test "$aix_use_runtimelinking" = yes; then
19129
shared_flag="$shared_flag "'${wl}-G'
19133
if test "$host_cpu" = ia64; then
19134
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19135
# chokes on -Wl,-G. The following line is correct:
19138
if test "$aix_use_runtimelinking" = yes; then
19139
shared_flag='${wl}-G'
19141
shared_flag='${wl}-bM:SRE'
19146
# It seems that -bexpall does not export symbols beginning with
19147
# underscore (_), so it is better to generate a list of symbols to export.
19148
always_export_symbols_GCJ=yes
19149
if test "$aix_use_runtimelinking" = yes; then
19150
# Warning - without using the other runtime loading flags (-brtl),
19151
# -berok will link without error, but may produce a broken library.
19152
allow_undefined_flag_GCJ='-berok'
19153
# Determine the default libpath from the value encoded in an empty executable.
19154
cat >conftest.$ac_ext <<_ACEOF
19157
cat confdefs.h >>conftest.$ac_ext
19158
cat >>conftest.$ac_ext <<_ACEOF
19159
/* end confdefs.h. */
19169
rm -f conftest.$ac_objext conftest$ac_exeext
19170
if { (ac_try="$ac_link"
19171
case "(($ac_try" in
19172
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19173
*) ac_try_echo=$ac_try;;
19175
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19176
(eval "$ac_link") 2>conftest.er1
19178
grep -v '^ *+' conftest.er1 >conftest.err
19180
cat conftest.err >&5
19181
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19182
(exit $ac_status); } && {
19183
test -z "$ac_c_werror_flag" ||
19184
test ! -s conftest.err
19185
} && test -s conftest$ac_exeext &&
19186
$as_test_x conftest$ac_exeext; then
19188
lt_aix_libpath_sed='
19189
/Import File Strings/,/^$/ {
19195
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19196
# Check for a 64-bit object if we didn't find anything.
19197
if test -z "$aix_libpath"; then
19198
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19201
echo "$as_me: failed program was:" >&5
19202
sed 's/^/| /' conftest.$ac_ext >&5
19207
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19208
conftest$ac_exeext conftest.$ac_ext
19209
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19211
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19212
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"
19214
if test "$host_cpu" = ia64; then
19215
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
19216
allow_undefined_flag_GCJ="-z nodefs"
19217
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"
19219
# Determine the default libpath from the value encoded in an empty executable.
19220
cat >conftest.$ac_ext <<_ACEOF
19223
cat confdefs.h >>conftest.$ac_ext
19224
cat >>conftest.$ac_ext <<_ACEOF
19225
/* end confdefs.h. */
19235
rm -f conftest.$ac_objext conftest$ac_exeext
19236
if { (ac_try="$ac_link"
19237
case "(($ac_try" in
19238
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19239
*) ac_try_echo=$ac_try;;
19241
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19242
(eval "$ac_link") 2>conftest.er1
19244
grep -v '^ *+' conftest.er1 >conftest.err
19246
cat conftest.err >&5
19247
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248
(exit $ac_status); } && {
19249
test -z "$ac_c_werror_flag" ||
19250
test ! -s conftest.err
19251
} && test -s conftest$ac_exeext &&
19252
$as_test_x conftest$ac_exeext; then
19254
lt_aix_libpath_sed='
19255
/Import File Strings/,/^$/ {
19261
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19262
# Check for a 64-bit object if we didn't find anything.
19263
if test -z "$aix_libpath"; then
19264
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19267
echo "$as_me: failed program was:" >&5
19268
sed 's/^/| /' conftest.$ac_ext >&5
19273
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19274
conftest$ac_exeext conftest.$ac_ext
19275
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19277
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19278
# Warning - without using the other run time loading flags,
19279
# -berok will link without error, but may produce a broken library.
19280
no_undefined_flag_GCJ=' ${wl}-bernotok'
19281
allow_undefined_flag_GCJ=' ${wl}-berok'
19282
# Exported symbols can be pulled into shared objects from archives
19283
whole_archive_flag_spec_GCJ='$convenience'
19284
archive_cmds_need_lc_GCJ=yes
19285
# This is similar to how AIX traditionally builds its shared libraries.
19286
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'
19292
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)'
19293
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19294
hardcode_minus_L_GCJ=yes
19295
# see comment about different semantics on the GNU ld section
19300
export_dynamic_flag_spec_GCJ=-rdynamic
19303
cygwin* | mingw* | pw32*)
19304
# When not using gcc, we currently assume that we are using
19305
# Microsoft Visual C++.
19306
# hardcode_libdir_flag_spec is actually meaningless, as there is
19307
# no search path for DLLs.
19308
hardcode_libdir_flag_spec_GCJ=' '
19309
allow_undefined_flag_GCJ=unsupported
19310
# Tell ltmain to make .lib files, not .a files.
19312
# Tell ltmain to make .dll files, not .so files.
19314
# FIXME: Setting linknames here is a bad hack.
19315
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19316
# The linker will automatically build a .lib file if we build a DLL.
19317
old_archive_From_new_cmds_GCJ='true'
19318
# FIXME: Should let the user specify the lib program.
19319
old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
19320
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
19321
enable_shared_with_static_runtimes_GCJ=yes
19324
darwin* | rhapsody*)
19326
rhapsody* | darwin1.[012])
19327
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
19330
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19331
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19333
case ${MACOSX_DEPLOYMENT_TARGET} in
19335
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19338
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19344
archive_cmds_need_lc_GCJ=no
19345
hardcode_direct_GCJ=no
19346
hardcode_automatic_GCJ=yes
19347
hardcode_shlibpath_var_GCJ=unsupported
19348
whole_archive_flag_spec_GCJ=''
19349
link_all_deplibs_GCJ=yes
19350
if test "$GCC" = yes ; then
19351
output_verbose_link_cmd='echo'
19352
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}"
19353
module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19354
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}"
19355
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}"
19357
case $cc_basename in
19359
output_verbose_link_cmd='echo'
19360
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
19361
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19362
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19363
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}'
19364
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}'
19374
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19375
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19376
hardcode_shlibpath_var_GCJ=no
19383
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19384
# support. Future versions do this automatically, but an explicit c++rt0.o
19385
# does not break anything, and helps significantly (at the cost of a little
19388
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19389
hardcode_libdir_flag_spec_GCJ='-R$libdir'
19390
hardcode_direct_GCJ=yes
19391
hardcode_shlibpath_var_GCJ=no
19394
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
19396
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19397
hardcode_direct_GCJ=yes
19398
hardcode_minus_L_GCJ=yes
19399
hardcode_shlibpath_var_GCJ=no
19402
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19403
freebsd* | dragonfly*)
19404
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19405
hardcode_libdir_flag_spec_GCJ='-R$libdir'
19406
hardcode_direct_GCJ=yes
19407
hardcode_shlibpath_var_GCJ=no
19411
if test "$GCC" = yes; then
19412
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'
19414
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'
19416
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19417
hardcode_libdir_separator_GCJ=:
19418
hardcode_direct_GCJ=yes
19420
# hardcode_minus_L: Not really in the search PATH,
19421
# but as the default location of the library.
19422
hardcode_minus_L_GCJ=yes
19423
export_dynamic_flag_spec_GCJ='${wl}-E'
19427
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19428
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19430
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19432
if test "$with_gnu_ld" = no; then
19433
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19434
hardcode_libdir_separator_GCJ=:
19436
hardcode_direct_GCJ=yes
19437
export_dynamic_flag_spec_GCJ='${wl}-E'
19439
# hardcode_minus_L: Not really in the search PATH,
19440
# but as the default location of the library.
19441
hardcode_minus_L_GCJ=yes
19446
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19449
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19452
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19455
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19461
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19464
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19467
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19471
if test "$with_gnu_ld" = no; then
19472
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19473
hardcode_libdir_separator_GCJ=:
19477
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19478
hardcode_direct_GCJ=no
19479
hardcode_shlibpath_var_GCJ=no
19482
hardcode_direct_GCJ=yes
19483
export_dynamic_flag_spec_GCJ='${wl}-E'
19485
# hardcode_minus_L: Not really in the search PATH,
19486
# but as the default location of the library.
19487
hardcode_minus_L_GCJ=yes
19493
irix5* | irix6* | nonstopux*)
19494
if test "$GCC" = yes; then
19495
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'
19497
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'
19498
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19500
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19501
hardcode_libdir_separator_GCJ=:
19502
link_all_deplibs_GCJ=yes
19505
netbsd* | netbsdelf*-gnu)
19506
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19507
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19509
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19511
hardcode_libdir_flag_spec_GCJ='-R$libdir'
19512
hardcode_direct_GCJ=yes
19513
hardcode_shlibpath_var_GCJ=no
19517
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19518
hardcode_direct_GCJ=yes
19519
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19520
hardcode_libdir_separator_GCJ=:
19521
hardcode_shlibpath_var_GCJ=no
19525
if test -f /usr/libexec/ld.so; then
19526
hardcode_direct_GCJ=yes
19527
hardcode_shlibpath_var_GCJ=no
19528
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19529
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19530
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19531
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19532
export_dynamic_flag_spec_GCJ='${wl}-E'
19535
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19536
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19537
hardcode_libdir_flag_spec_GCJ='-R$libdir'
19540
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19541
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19551
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19552
hardcode_minus_L_GCJ=yes
19553
allow_undefined_flag_GCJ=unsupported
19554
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'
19555
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19559
if test "$GCC" = yes; then
19560
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19561
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'
19563
allow_undefined_flag_GCJ=' -expect_unresolved \*'
19564
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'
19566
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19567
hardcode_libdir_separator_GCJ=:
19570
osf4* | osf5*) # as osf3* with the addition of -msym flag
19571
if test "$GCC" = yes; then
19572
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19573
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'
19574
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19576
allow_undefined_flag_GCJ=' -expect_unresolved \*'
19577
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'
19578
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~
19579
$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'
19581
# Both c and cxx compiler support -rpath directly
19582
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19584
hardcode_libdir_separator_GCJ=:
19588
no_undefined_flag_GCJ=' -z text'
19589
if test "$GCC" = yes; then
19591
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19592
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19593
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19596
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19597
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19598
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19600
hardcode_libdir_flag_spec_GCJ='-R$libdir'
19601
hardcode_shlibpath_var_GCJ=no
19603
solaris2.[0-5] | solaris2.[0-5].*) ;;
19605
# The compiler driver will combine and reorder linker options,
19606
# but understands `-z linker_flag'. GCC discards it without `$wl',
19607
# but is careful enough not to reorder.
19608
# Supported since Solaris 2.6 (maybe 2.5.1?)
19609
if test "$GCC" = yes; then
19610
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19612
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
19616
link_all_deplibs_GCJ=yes
19620
if test "x$host_vendor" = xsequent; then
19621
# Use $CC to link under sequent, because it throws in some extra .o
19622
# files that make .init and .fini sections work.
19623
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19625
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19627
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19628
hardcode_direct_GCJ=yes
19629
hardcode_minus_L_GCJ=yes
19630
hardcode_shlibpath_var_GCJ=no
19634
case $host_vendor in
19636
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19637
hardcode_direct_GCJ=yes # is this really true???
19640
## LD is ld it makes a PLAMLIB
19641
## CC just makes a GrossModule.
19642
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19643
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19644
hardcode_direct_GCJ=no
19647
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19648
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19651
runpath_var='LD_RUN_PATH'
19652
hardcode_shlibpath_var_GCJ=no
19656
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19657
hardcode_shlibpath_var_GCJ=no
19658
export_dynamic_flag_spec_GCJ='-Bexport'
19662
if test -d /usr/nec; then
19663
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19664
hardcode_shlibpath_var_GCJ=no
19665
runpath_var=LD_RUN_PATH
19666
hardcode_runpath_var=yes
19671
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19672
no_undefined_flag_GCJ='${wl}-z,text'
19673
archive_cmds_need_lc_GCJ=no
19674
hardcode_shlibpath_var_GCJ=no
19675
runpath_var='LD_RUN_PATH'
19677
if test "$GCC" = yes; then
19678
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19679
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19681
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19682
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19686
sysv5* | sco3.2v5* | sco5v6*)
19687
# Note: We can NOT use -z defs as we might desire, because we do not
19688
# link with -lc, and that would cause any symbols used from libc to
19689
# always be unresolved, which means just about no library would
19690
# ever link correctly. If we're not using GNU ld we use -z text
19691
# though, which does catch some bad symbols but isn't as heavy-handed
19693
no_undefined_flag_GCJ='${wl}-z,text'
19694
allow_undefined_flag_GCJ='${wl}-z,nodefs'
19695
archive_cmds_need_lc_GCJ=no
19696
hardcode_shlibpath_var_GCJ=no
19697
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19698
hardcode_libdir_separator_GCJ=':'
19699
link_all_deplibs_GCJ=yes
19700
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19701
runpath_var='LD_RUN_PATH'
19703
if test "$GCC" = yes; then
19704
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19705
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19707
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19708
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19713
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19714
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19715
hardcode_shlibpath_var_GCJ=no
19724
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19725
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19726
test "$ld_shlibs_GCJ" = no && can_build_shared=no
19729
# Do we need to explicitly link libc?
19731
case "x$archive_cmds_need_lc_GCJ" in
19733
# Assume -lc should be added
19734
archive_cmds_need_lc_GCJ=yes
19736
if test "$enable_shared" = yes && test "$GCC" = yes; then
19737
case $archive_cmds_GCJ in
19739
# FIXME: we may have to deal with multi-command sequences.
19742
# Test whether the compiler implicitly links with -lc since on some
19743
# systems, -lgcc has to come before -lc. If gcc already passes -lc
19744
# to ld, don't add -lc before -lgcc.
19745
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19746
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19748
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19750
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19751
(eval $ac_compile) 2>&5
19753
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754
(exit $ac_status); } 2>conftest.err; then
19757
libobjs=conftest.$ac_objext
19759
wl=$lt_prog_compiler_wl_GCJ
19760
pic_flag=$lt_prog_compiler_pic_GCJ
19766
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19767
allow_undefined_flag_GCJ=
19768
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19769
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19771
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19772
(exit $ac_status); }
19774
archive_cmds_need_lc_GCJ=no
19776
archive_cmds_need_lc_GCJ=yes
19778
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19780
cat conftest.err 1>&5
19783
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19784
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19791
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19792
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19793
library_names_spec=
19794
libname_spec='lib$name'
19798
postuninstall_cmds=
19802
shlibpath_overrides_runpath=unknown
19804
dynamic_linker="$host_os ld.so"
19805
sys_lib_dlsearch_path_spec="/lib /usr/lib"
19807
need_lib_prefix=unknown
19808
hardcode_into_libs=no
19810
# when you set need_version to no, make sure it does not cause -set_version
19811
# flags to be left without arguments
19812
need_version=unknown
19817
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19818
shlibpath_var=LIBPATH
19820
# AIX 3 has no versioning support, so we append a major version to the name.
19821
soname_spec='${libname}${release}${shared_ext}$major'
19828
hardcode_into_libs=yes
19829
if test "$host_cpu" = ia64; then
19830
# AIX 5 supports IA64
19831
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19832
shlibpath_var=LD_LIBRARY_PATH
19834
# With GCC up to 2.95.x, collect2 would create an import file
19835
# for dependence libraries. The import file would start with
19836
# the line `#! .'. This would cause the generated library to
19837
# depend on `.', always an invalid library. This was fixed in
19838
# development snapshots of GCC prior to 3.0.
19840
aix4 | aix4.[01] | aix4.[01].*)
19841
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19843
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19846
can_build_shared=no
19850
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19851
# soname into executable. Probably we can add versioning support to
19852
# collect2, so additional links can be useful in future.
19853
if test "$aix_use_runtimelinking" = yes; then
19854
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
19855
# instead of lib<name>.a to let people know that these are not
19856
# typical AIX shared libraries.
19857
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19859
# We preserve .a as extension for shared libraries through AIX4.2
19860
# and later when we are not doing run time linking.
19861
library_names_spec='${libname}${release}.a $libname.a'
19862
soname_spec='${libname}${release}${shared_ext}$major'
19864
shlibpath_var=LIBPATH
19869
library_names_spec='$libname.ixlibrary $libname.a'
19870
# Create ${libname}_ixlibrary.a entries in /sys/libs.
19871
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'
19875
library_names_spec='${libname}${shared_ext}'
19876
dynamic_linker="$host_os ld.so"
19877
shlibpath_var=LIBRARY_PATH
19883
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19884
soname_spec='${libname}${release}${shared_ext}$major'
19885
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19886
shlibpath_var=LD_LIBRARY_PATH
19887
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19888
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19889
# the default ld.so.conf also contains /usr/contrib/lib and
19890
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19891
# libtool to hard-code these into programs
19894
cygwin* | mingw* | pw32*)
19895
version_type=windows
19900
case $GCC,$host_os in
19901
yes,cygwin* | yes,mingw* | yes,pw32*)
19902
library_names_spec='$libname.dll.a'
19903
# DLL is installed to $(libdir)/../bin by postinstall_cmds
19904
postinstall_cmds='base_file=`basename \${file}`~
19905
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19906
dldir=$destdir/`dirname \$dlpath`~
19907
test -d \$dldir || mkdir -p \$dldir~
19908
$install_prog $dir/$dlname \$dldir/$dlname~
19909
chmod a+x \$dldir/$dlname'
19910
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19911
dlpath=$dir/\$dldll~
19913
shlibpath_overrides_runpath=yes
19917
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
19918
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19919
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19922
# MinGW DLLs use traditional 'lib' prefix
19923
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19924
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19925
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19926
# It is most probably a Windows format PATH printed by
19927
# mingw gcc, but we are running on Cygwin. Gcc prints its search
19928
# path with ; separators, and with drive letters. We can handle the
19929
# drive letters (cygwin fileutils understands them), so leave them,
19930
# especially as we might pass files found there to a mingw objdump,
19931
# which wouldn't understand a cygwinified path. Ahh.
19932
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19934
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19938
# pw32 DLLs use 'pw' prefix rather than 'lib'
19939
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19945
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19948
dynamic_linker='Win32 ld.exe'
19949
# FIXME: first we should search . and the directory the executable is in
19953
darwin* | rhapsody*)
19954
dynamic_linker="$host_os dyld"
19955
version_type=darwin
19958
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19959
soname_spec='${libname}${release}${major}$shared_ext'
19960
shlibpath_overrides_runpath=yes
19961
shlibpath_var=DYLD_LIBRARY_PATH
19962
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19964
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19971
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19972
soname_spec='${libname}${release}${shared_ext}$major'
19973
shlibpath_var=LD_LIBRARY_PATH
19980
freebsd* | dragonfly*)
19981
# DragonFly does not have aout. When/if they implement a new
19982
# versioning mechanism, adjust this.
19983
if test -x /usr/bin/objformat; then
19984
objformat=`/usr/bin/objformat`
19987
freebsd[123]*) objformat=aout ;;
19988
*) objformat=elf ;;
19991
version_type=freebsd-$objformat
19992
case $version_type in
19994
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19999
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20003
shlibpath_var=LD_LIBRARY_PATH
20006
shlibpath_overrides_runpath=yes
20008
freebsd3.[01]* | freebsdelf3.[01]*)
20009
shlibpath_overrides_runpath=yes
20010
hardcode_into_libs=yes
20012
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20013
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20014
shlibpath_overrides_runpath=no
20015
hardcode_into_libs=yes
20017
*) # from 4.6 on, and DragonFly
20018
shlibpath_overrides_runpath=yes
20019
hardcode_into_libs=yes
20028
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20029
soname_spec='${libname}${release}${shared_ext}$major'
20030
shlibpath_var=LD_LIBRARY_PATH
20031
hardcode_into_libs=yes
20034
hpux9* | hpux10* | hpux11*)
20035
# Give a soname corresponding to the major version so that dld.sl refuses to
20036
# link against other versions.
20043
hardcode_into_libs=yes
20044
dynamic_linker="$host_os dld.so"
20045
shlibpath_var=LD_LIBRARY_PATH
20046
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20047
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20048
soname_spec='${libname}${release}${shared_ext}$major'
20049
if test "X$HPUX_IA64_MODE" = X32; then
20050
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20052
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20054
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20058
hardcode_into_libs=yes
20059
dynamic_linker="$host_os dld.sl"
20060
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20061
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20062
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20063
soname_spec='${libname}${release}${shared_ext}$major'
20064
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20065
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20069
dynamic_linker="$host_os dld.sl"
20070
shlibpath_var=SHLIB_PATH
20071
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20072
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20073
soname_spec='${libname}${release}${shared_ext}$major'
20076
# HP-UX runs *really* slowly unless shared libraries are mode 555.
20077
postinstall_cmds='chmod 555 $lib'
20084
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20085
soname_spec='${libname}${release}${shared_ext}$major'
20086
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20087
shlibpath_var=LD_LIBRARY_PATH
20088
shlibpath_overrides_runpath=no
20089
hardcode_into_libs=yes
20092
irix5* | irix6* | nonstopux*)
20094
nonstopux*) version_type=nonstopux ;;
20096
if test "$lt_cv_prog_gnu_ld" = yes; then
20104
soname_spec='${libname}${release}${shared_ext}$major'
20105
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20107
irix5* | nonstopux*)
20108
libsuff= shlibsuff=
20111
case $LD in # libtool.m4 will add one of these switches to LD
20112
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20113
libsuff= shlibsuff= libmagic=32-bit;;
20114
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20115
libsuff=32 shlibsuff=N32 libmagic=N32;;
20116
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20117
libsuff=64 shlibsuff=64 libmagic=64-bit;;
20118
*) libsuff= shlibsuff= libmagic=never-match;;
20122
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20123
shlibpath_overrides_runpath=no
20124
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20125
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20126
hardcode_into_libs=yes
20129
# No shared lib support for Linux oldld, aout, or coff.
20130
linux*oldld* | linux*aout* | linux*coff*)
20134
# This must be Linux ELF.
20135
linux* | k*bsd*-gnu)
20139
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20140
soname_spec='${libname}${release}${shared_ext}$major'
20141
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20142
shlibpath_var=LD_LIBRARY_PATH
20143
shlibpath_overrides_runpath=no
20144
# This implies no fast_install, which is unacceptable.
20145
# Some rework will be needed to allow for fast_install
20146
# before this can be enabled.
20147
hardcode_into_libs=yes
20149
# Append ld.so.conf contents to the search path
20150
if test -f /etc/ld.so.conf; then
20151
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' ' '`
20152
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20155
# We used to test for /lib/ld.so.1 and disable shared libraries on
20156
# powerpc, because MkLinux only supported shared libraries with the
20157
# GNU dynamic linker. Since this was broken with cross compilers,
20158
# most powerpc-linux boxes support dynamic linking these days and
20159
# people can always --disable-shared, the test was removed, and we
20160
# assume the GNU/Linux dynamic linker is in use.
20161
dynamic_linker='GNU/Linux ld.so'
20168
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20169
soname_spec='${libname}${release}${shared_ext}$major'
20170
shlibpath_var=LD_LIBRARY_PATH
20171
shlibpath_overrides_runpath=no
20172
hardcode_into_libs=yes
20173
dynamic_linker='NetBSD ld.elf_so'
20180
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20181
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20182
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20183
dynamic_linker='NetBSD (a.out) ld.so'
20185
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20186
soname_spec='${libname}${release}${shared_ext}$major'
20187
dynamic_linker='NetBSD ld.elf_so'
20189
shlibpath_var=LD_LIBRARY_PATH
20190
shlibpath_overrides_runpath=yes
20191
hardcode_into_libs=yes
20196
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20197
shlibpath_var=LD_LIBRARY_PATH
20198
shlibpath_overrides_runpath=yes
20205
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20206
soname_spec='${libname}${release}${shared_ext}$major'
20207
shlibpath_var=LD_LIBRARY_PATH
20208
shlibpath_overrides_runpath=yes
20213
sys_lib_dlsearch_path_spec="/usr/lib"
20215
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20217
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20218
*) need_version=no ;;
20220
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20221
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20222
shlibpath_var=LD_LIBRARY_PATH
20223
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20225
openbsd2.[89] | openbsd2.[89].*)
20226
shlibpath_overrides_runpath=no
20229
shlibpath_overrides_runpath=yes
20233
shlibpath_overrides_runpath=yes
20238
libname_spec='$name'
20241
library_names_spec='$libname${shared_ext} $libname.a'
20242
dynamic_linker='OS/2 ld.exe'
20243
shlibpath_var=LIBPATH
20246
osf3* | osf4* | osf5*)
20250
soname_spec='${libname}${release}${shared_ext}$major'
20251
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20252
shlibpath_var=LD_LIBRARY_PATH
20253
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20254
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20265
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20266
soname_spec='${libname}${release}${shared_ext}$major'
20267
shlibpath_var=LD_LIBRARY_PATH
20268
shlibpath_overrides_runpath=yes
20269
hardcode_into_libs=yes
20270
# ldd complains unless libraries are executable
20271
postinstall_cmds='chmod +x $lib'
20276
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20277
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20278
shlibpath_var=LD_LIBRARY_PATH
20279
shlibpath_overrides_runpath=yes
20280
if test "$with_gnu_ld" = yes; then
20288
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20289
soname_spec='${libname}${release}${shared_ext}$major'
20290
shlibpath_var=LD_LIBRARY_PATH
20291
case $host_vendor in
20293
shlibpath_overrides_runpath=no
20295
export_dynamic_flag_spec='${wl}-Blargedynsym'
20296
runpath_var=LD_RUN_PATH
20304
shlibpath_overrides_runpath=no
20305
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20311
if test -d /usr/nec ;then
20313
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20314
soname_spec='$libname${shared_ext}.$major'
20315
shlibpath_var=LD_LIBRARY_PATH
20319
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20320
version_type=freebsd-elf
20323
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20324
soname_spec='${libname}${release}${shared_ext}$major'
20325
shlibpath_var=LD_LIBRARY_PATH
20326
hardcode_into_libs=yes
20327
if test "$with_gnu_ld" = yes; then
20328
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20329
shlibpath_overrides_runpath=no
20331
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20332
shlibpath_overrides_runpath=yes
20335
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20339
sys_lib_dlsearch_path_spec='/usr/lib'
20344
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20345
soname_spec='${libname}${release}${shared_ext}$major'
20346
shlibpath_var=LD_LIBRARY_PATH
20353
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20354
echo "${ECHO_T}$dynamic_linker" >&6; }
20355
test "$dynamic_linker" = no && can_build_shared=no
20357
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20358
echo $ECHO_N "(cached) $ECHO_C" >&6
20360
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
20363
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20364
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20365
echo $ECHO_N "(cached) $ECHO_C" >&6
20367
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
20370
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20372
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20373
if test "$GCC" = yes; then
20374
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20377
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20378
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20379
hardcode_action_GCJ=
20380
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20381
test -n "$runpath_var_GCJ" || \
20382
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20384
# We can hardcode non-existant directories.
20385
if test "$hardcode_direct_GCJ" != no &&
20386
# If the only mechanism to avoid hardcoding is shlibpath_var, we
20387
# have to relink, otherwise we might link with an installed library
20388
# when we should be linking with a yet-to-be-installed one
20389
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20390
test "$hardcode_minus_L_GCJ" != no; then
20391
# Linking always hardcodes the temporary library directory.
20392
hardcode_action_GCJ=relink
20394
# We can link without hardcoding, and we can hardcode nonexisting dirs.
20395
hardcode_action_GCJ=immediate
20398
# We cannot hardcode anything, or else we can only hardcode existing
20400
hardcode_action_GCJ=unsupported
20402
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20403
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
20405
if test "$hardcode_action_GCJ" = relink; then
20406
# Fast installation is not supported
20407
enable_fast_install=no
20408
elif test "$shlibpath_overrides_runpath" = yes ||
20409
test "$enable_shared" = no; then
20410
# Fast installation is not necessary
20411
enable_fast_install=needless
20415
# The else clause should only fire when bootstrapping the
20416
# libtool distribution, otherwise you forgot to ship ltmain.sh
20417
# with your package, and you will get complaints that there are
20418
# no rules to generate ltmain.sh.
20419
if test -f "$ltmain"; then
20420
# See if we are running on zsh, and set the options which allow our commands through
20421
# without removal of \ escapes.
20422
if test -n "${ZSH_VERSION+set}" ; then
20423
setopt NO_GLOB_SUBST
20425
# Now quote all the things that may contain metacharacters while being
20426
# careful not to overquote the AC_SUBSTed values. We take copies of the
20427
# variables and quote the copies for generation of the libtool script.
20428
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20430
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20431
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20432
deplibs_check_method reload_flag reload_cmds need_locks \
20433
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20434
lt_cv_sys_global_symbol_to_c_name_address \
20435
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20436
old_postinstall_cmds old_postuninstall_cmds \
20440
lt_prog_compiler_wl_GCJ \
20441
lt_prog_compiler_pic_GCJ \
20442
lt_prog_compiler_static_GCJ \
20443
lt_prog_compiler_no_builtin_flag_GCJ \
20444
export_dynamic_flag_spec_GCJ \
20445
thread_safe_flag_spec_GCJ \
20446
whole_archive_flag_spec_GCJ \
20447
enable_shared_with_static_runtimes_GCJ \
20448
old_archive_cmds_GCJ \
20449
old_archive_from_new_cmds_GCJ \
20450
predep_objects_GCJ \
20451
postdep_objects_GCJ \
20454
compiler_lib_search_path_GCJ \
20455
compiler_lib_search_dirs_GCJ \
20457
archive_expsym_cmds_GCJ \
20458
postinstall_cmds_GCJ \
20459
postuninstall_cmds_GCJ \
20460
old_archive_from_expsyms_cmds_GCJ \
20461
allow_undefined_flag_GCJ \
20462
no_undefined_flag_GCJ \
20463
export_symbols_cmds_GCJ \
20464
hardcode_libdir_flag_spec_GCJ \
20465
hardcode_libdir_flag_spec_ld_GCJ \
20466
hardcode_libdir_separator_GCJ \
20467
hardcode_automatic_GCJ \
20469
module_expsym_cmds_GCJ \
20470
lt_cv_prog_compiler_c_o_GCJ \
20471
fix_srcfile_path_GCJ \
20472
exclude_expsyms_GCJ \
20473
include_expsyms_GCJ; do
20476
old_archive_cmds_GCJ | \
20477
old_archive_from_new_cmds_GCJ | \
20478
archive_cmds_GCJ | \
20479
archive_expsym_cmds_GCJ | \
20480
module_cmds_GCJ | \
20481
module_expsym_cmds_GCJ | \
20482
old_archive_from_expsyms_cmds_GCJ | \
20483
export_symbols_cmds_GCJ | \
20484
extract_expsyms_cmds | reload_cmds | finish_cmds | \
20485
postinstall_cmds | postuninstall_cmds | \
20486
old_postinstall_cmds | old_postuninstall_cmds | \
20487
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20488
# Double-quote double-evaled strings.
20489
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20492
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20498
*'\$0 --fallback-echo"')
20499
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20505
cat <<__EOF__ >> "$cfgfile"
20506
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20508
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20510
# Shell to use when invoking shell scripts.
20513
# Whether or not to build shared libraries.
20514
build_libtool_libs=$enable_shared
20516
# Whether or not to build static libraries.
20517
build_old_libs=$enable_static
20519
# Whether or not to add -lc for building shared libraries.
20520
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20522
# Whether or not to disallow shared libs when runtime libs are static
20523
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20525
# Whether or not to optimize for fast installation.
20526
fast_install=$enable_fast_install
20529
host_alias=$host_alias
20533
# The build system.
20534
build_alias=$build_alias
20538
# An echo program that does not interpret backslashes.
20543
AR_FLAGS=$lt_AR_FLAGS
20548
# LTCC compiler flags.
20549
LTCFLAGS=$lt_LTCFLAGS
20551
# A language-specific compiler.
20552
CC=$lt_compiler_GCJ
20554
# Is the compiler the GNU C compiler?
20560
# The linker used to build libraries.
20563
# Whether we need hard or soft links.
20566
# A BSD-compatible nm program.
20569
# A symbol stripping program
20572
# Used to examine libraries when file_magic_cmd begins "file"
20573
MAGIC_CMD=$MAGIC_CMD
20575
# Used on cygwin: DLL creation program.
20578
# Used on cygwin: object dumper.
20581
# Used on cygwin: assembler.
20584
# The name of the directory that contains temporary libtool files.
20587
# How to create reloadable object files.
20588
reload_flag=$lt_reload_flag
20589
reload_cmds=$lt_reload_cmds
20591
# How to pass a linker flag through the compiler.
20592
wl=$lt_lt_prog_compiler_wl_GCJ
20594
# Object file suffix (normally "o").
20595
objext="$ac_objext"
20597
# Old archive suffix (normally "a").
20600
# Shared library suffix (normally ".so").
20601
shrext_cmds='$shrext_cmds'
20603
# Executable file suffix (normally "").
20606
# Additional compiler flags for building library objects.
20607
pic_flag=$lt_lt_prog_compiler_pic_GCJ
20610
# What is the maximum length of a command?
20611
max_cmd_len=$lt_cv_sys_max_cmd_len
20613
# Does compiler simultaneously support -c and -o options?
20614
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20616
# Must we lock files when doing compilation?
20617
need_locks=$lt_need_locks
20619
# Do we need the lib prefix for modules?
20620
need_lib_prefix=$need_lib_prefix
20622
# Do we need a version for libraries?
20623
need_version=$need_version
20625
# Whether dlopen is supported.
20626
dlopen_support=$enable_dlopen
20628
# Whether dlopen of programs is supported.
20629
dlopen_self=$enable_dlopen_self
20631
# Whether dlopen of statically linked programs is supported.
20632
dlopen_self_static=$enable_dlopen_self_static
20634
# Compiler flag to prevent dynamic linking.
20635
link_static_flag=$lt_lt_prog_compiler_static_GCJ
20637
# Compiler flag to turn off builtin functions.
20638
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20640
# Compiler flag to allow reflexive dlopens.
20641
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20643
# Compiler flag to generate shared objects directly from archives.
20644
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20646
# Compiler flag to generate thread-safe objects.
20647
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20649
# Library versioning type.
20650
version_type=$version_type
20652
# Format of library name prefix.
20653
libname_spec=$lt_libname_spec
20655
# List of archive names. First name is the real one, the rest are links.
20656
# The last name is the one that the linker finds with -lNAME.
20657
library_names_spec=$lt_library_names_spec
20659
# The coded name of the library, if different from the real name.
20660
soname_spec=$lt_soname_spec
20662
# Commands used to build and install an old-style archive.
20664
old_archive_cmds=$lt_old_archive_cmds_GCJ
20665
old_postinstall_cmds=$lt_old_postinstall_cmds
20666
old_postuninstall_cmds=$lt_old_postuninstall_cmds
20668
# Create an old-style archive from a shared archive.
20669
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20671
# Create a temporary old-style archive to link instead of a shared archive.
20672
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20674
# Commands used to build and install a shared archive.
20675
archive_cmds=$lt_archive_cmds_GCJ
20676
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20677
postinstall_cmds=$lt_postinstall_cmds
20678
postuninstall_cmds=$lt_postuninstall_cmds
20680
# Commands used to build a loadable module (assumed same as above if empty)
20681
module_cmds=$lt_module_cmds_GCJ
20682
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20684
# Commands to strip libraries.
20685
old_striplib=$lt_old_striplib
20686
striplib=$lt_striplib
20688
# Dependencies to place before the objects being linked to create a
20690
predep_objects=$lt_predep_objects_GCJ
20692
# Dependencies to place after the objects being linked to create a
20694
postdep_objects=$lt_postdep_objects_GCJ
20696
# Dependencies to place before the objects being linked to create a
20698
predeps=$lt_predeps_GCJ
20700
# Dependencies to place after the objects being linked to create a
20702
postdeps=$lt_postdeps_GCJ
20704
# The directories searched by this compiler when creating a shared
20706
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
20708
# The library search path used internally by the compiler when linking
20709
# a shared library.
20710
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20712
# Method to check whether dependent libraries are shared objects.
20713
deplibs_check_method=$lt_deplibs_check_method
20715
# Command to use when deplibs_check_method == file_magic.
20716
file_magic_cmd=$lt_file_magic_cmd
20718
# Flag that allows shared libraries with undefined symbols to be built.
20719
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20721
# Flag that forces no undefined symbols.
20722
no_undefined_flag=$lt_no_undefined_flag_GCJ
20724
# Commands used to finish a libtool library installation in a directory.
20725
finish_cmds=$lt_finish_cmds
20727
# Same as above, but a single script fragment to be evaled but not shown.
20728
finish_eval=$lt_finish_eval
20730
# Take the output of nm and produce a listing of raw symbols and C names.
20731
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20733
# Transform the output of nm in a proper C declaration
20734
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20736
# Transform the output of nm in a C name address pair
20737
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20739
# This is the shared library runtime path variable.
20740
runpath_var=$runpath_var
20742
# This is the shared library path variable.
20743
shlibpath_var=$shlibpath_var
20745
# Is shlibpath searched before the hard-coded library search path?
20746
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20748
# How to hardcode a shared library path into an executable.
20749
hardcode_action=$hardcode_action_GCJ
20751
# Whether we should hardcode library paths into libraries.
20752
hardcode_into_libs=$hardcode_into_libs
20754
# Flag to hardcode \$libdir into a binary during linking.
20755
# This must work even if \$libdir does not exist.
20756
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20758
# If ld is used when linking, flag to hardcode \$libdir into
20759
# a binary during linking. This must work even if \$libdir does
20761
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20763
# Whether we need a single -rpath flag with a separated argument.
20764
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20766
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20767
# resulting binary.
20768
hardcode_direct=$hardcode_direct_GCJ
20770
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20771
# resulting binary.
20772
hardcode_minus_L=$hardcode_minus_L_GCJ
20774
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20775
# the resulting binary.
20776
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20778
# Set to yes if building a shared library automatically hardcodes DIR into the library
20779
# and all subsequent libraries and executables linked against it.
20780
hardcode_automatic=$hardcode_automatic_GCJ
20782
# Variables whose values should be saved in libtool wrapper scripts and
20783
# restored at relink time.
20784
variables_saved_for_relink="$variables_saved_for_relink"
20786
# Whether libtool must link a program against all its dependency libraries.
20787
link_all_deplibs=$link_all_deplibs_GCJ
20789
# Compile-time system search path for libraries
20790
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20792
# Run-time system search path for libraries
20793
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20795
# Fix the shell variable \$srcfile for the compiler.
20796
fix_srcfile_path=$lt_fix_srcfile_path
20798
# Set to yes if exported symbols are required.
20799
always_export_symbols=$always_export_symbols_GCJ
20801
# The commands to list exported symbols.
20802
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20804
# The commands to extract the exported symbol list from a shared archive.
20805
extract_expsyms_cmds=$lt_extract_expsyms_cmds
20807
# Symbols that should not be listed in the preloaded symbols.
20808
exclude_expsyms=$lt_exclude_expsyms_GCJ
20810
# Symbols that must always be exported.
20811
include_expsyms=$lt_include_expsyms_GCJ
20813
# ### END LIBTOOL TAG CONFIG: $tagname
20819
# If there is no Makefile yet, we rely on a make rule to execute
20820
# `config.status --recheck' to rerun these tests and create the
20821
# libtool script then.
20822
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20823
if test -f "$ltmain_in"; then
20824
test -f Makefile && make "$ltmain"
20830
ac_cpp='$CPP $CPPFLAGS'
20831
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20832
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20833
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20845
# Source file extension for RC test sources.
20848
# Object file extension for compiled RC test sources.
20852
# Code to be used in simple compile tests
20853
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
20855
# Code to be used in simple link tests
20856
lt_simple_link_test_code="$lt_simple_compile_test_code"
20858
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20860
# If no C compiler was specified, use CC.
20863
# If no C compiler flags were specified, use CFLAGS.
20864
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20866
# Allow CC to be a program name with arguments.
20870
# save warnings/boilerplate of simple test code
20871
ac_outfile=conftest.$ac_objext
20872
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20873
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20874
_lt_compiler_boilerplate=`cat conftest.err`
20877
ac_outfile=conftest.$ac_objext
20878
echo "$lt_simple_link_test_code" >conftest.$ac_ext
20879
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20880
_lt_linker_boilerplate=`cat conftest.err`
20884
# Allow CC to be a program name with arguments.
20889
for cc_temp in $compiler""; do
20891
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20892
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20897
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20899
lt_cv_prog_compiler_c_o_RC=yes
20901
# The else clause should only fire when bootstrapping the
20902
# libtool distribution, otherwise you forgot to ship ltmain.sh
20903
# with your package, and you will get complaints that there are
20904
# no rules to generate ltmain.sh.
20905
if test -f "$ltmain"; then
20906
# See if we are running on zsh, and set the options which allow our commands through
20907
# without removal of \ escapes.
20908
if test -n "${ZSH_VERSION+set}" ; then
20909
setopt NO_GLOB_SUBST
20911
# Now quote all the things that may contain metacharacters while being
20912
# careful not to overquote the AC_SUBSTed values. We take copies of the
20913
# variables and quote the copies for generation of the libtool script.
20914
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20916
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20917
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20918
deplibs_check_method reload_flag reload_cmds need_locks \
20919
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20920
lt_cv_sys_global_symbol_to_c_name_address \
20921
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20922
old_postinstall_cmds old_postuninstall_cmds \
20926
lt_prog_compiler_wl_RC \
20927
lt_prog_compiler_pic_RC \
20928
lt_prog_compiler_static_RC \
20929
lt_prog_compiler_no_builtin_flag_RC \
20930
export_dynamic_flag_spec_RC \
20931
thread_safe_flag_spec_RC \
20932
whole_archive_flag_spec_RC \
20933
enable_shared_with_static_runtimes_RC \
20934
old_archive_cmds_RC \
20935
old_archive_from_new_cmds_RC \
20936
predep_objects_RC \
20937
postdep_objects_RC \
20940
compiler_lib_search_path_RC \
20941
compiler_lib_search_dirs_RC \
20943
archive_expsym_cmds_RC \
20944
postinstall_cmds_RC \
20945
postuninstall_cmds_RC \
20946
old_archive_from_expsyms_cmds_RC \
20947
allow_undefined_flag_RC \
20948
no_undefined_flag_RC \
20949
export_symbols_cmds_RC \
20950
hardcode_libdir_flag_spec_RC \
20951
hardcode_libdir_flag_spec_ld_RC \
20952
hardcode_libdir_separator_RC \
20953
hardcode_automatic_RC \
20955
module_expsym_cmds_RC \
20956
lt_cv_prog_compiler_c_o_RC \
20957
fix_srcfile_path_RC \
20958
exclude_expsyms_RC \
20959
include_expsyms_RC; do
20962
old_archive_cmds_RC | \
20963
old_archive_from_new_cmds_RC | \
20964
archive_cmds_RC | \
20965
archive_expsym_cmds_RC | \
20967
module_expsym_cmds_RC | \
20968
old_archive_from_expsyms_cmds_RC | \
20969
export_symbols_cmds_RC | \
20970
extract_expsyms_cmds | reload_cmds | finish_cmds | \
20971
postinstall_cmds | postuninstall_cmds | \
20972
old_postinstall_cmds | old_postuninstall_cmds | \
20973
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20974
# Double-quote double-evaled strings.
20975
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20978
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20984
*'\$0 --fallback-echo"')
20985
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20991
cat <<__EOF__ >> "$cfgfile"
20992
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20994
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20996
# Shell to use when invoking shell scripts.
20999
# Whether or not to build shared libraries.
21000
build_libtool_libs=$enable_shared
21002
# Whether or not to build static libraries.
21003
build_old_libs=$enable_static
21005
# Whether or not to add -lc for building shared libraries.
21006
build_libtool_need_lc=$archive_cmds_need_lc_RC
21008
# Whether or not to disallow shared libs when runtime libs are static
21009
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
21011
# Whether or not to optimize for fast installation.
21012
fast_install=$enable_fast_install
21015
host_alias=$host_alias
21019
# The build system.
21020
build_alias=$build_alias
21024
# An echo program that does not interpret backslashes.
21029
AR_FLAGS=$lt_AR_FLAGS
21034
# LTCC compiler flags.
21035
LTCFLAGS=$lt_LTCFLAGS
21037
# A language-specific compiler.
21040
# Is the compiler the GNU C compiler?
21046
# The linker used to build libraries.
21049
# Whether we need hard or soft links.
21052
# A BSD-compatible nm program.
21055
# A symbol stripping program
21058
# Used to examine libraries when file_magic_cmd begins "file"
21059
MAGIC_CMD=$MAGIC_CMD
21061
# Used on cygwin: DLL creation program.
21064
# Used on cygwin: object dumper.
21067
# Used on cygwin: assembler.
21070
# The name of the directory that contains temporary libtool files.
21073
# How to create reloadable object files.
21074
reload_flag=$lt_reload_flag
21075
reload_cmds=$lt_reload_cmds
21077
# How to pass a linker flag through the compiler.
21078
wl=$lt_lt_prog_compiler_wl_RC
21080
# Object file suffix (normally "o").
21081
objext="$ac_objext"
21083
# Old archive suffix (normally "a").
21086
# Shared library suffix (normally ".so").
21087
shrext_cmds='$shrext_cmds'
21089
# Executable file suffix (normally "").
21092
# Additional compiler flags for building library objects.
21093
pic_flag=$lt_lt_prog_compiler_pic_RC
21096
# What is the maximum length of a command?
21097
max_cmd_len=$lt_cv_sys_max_cmd_len
21099
# Does compiler simultaneously support -c and -o options?
21100
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21102
# Must we lock files when doing compilation?
21103
need_locks=$lt_need_locks
21105
# Do we need the lib prefix for modules?
21106
need_lib_prefix=$need_lib_prefix
21108
# Do we need a version for libraries?
21109
need_version=$need_version
21111
# Whether dlopen is supported.
21112
dlopen_support=$enable_dlopen
21114
# Whether dlopen of programs is supported.
21115
dlopen_self=$enable_dlopen_self
21117
# Whether dlopen of statically linked programs is supported.
21118
dlopen_self_static=$enable_dlopen_self_static
21120
# Compiler flag to prevent dynamic linking.
21121
link_static_flag=$lt_lt_prog_compiler_static_RC
21123
# Compiler flag to turn off builtin functions.
21124
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21126
# Compiler flag to allow reflexive dlopens.
21127
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21129
# Compiler flag to generate shared objects directly from archives.
21130
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21132
# Compiler flag to generate thread-safe objects.
21133
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21135
# Library versioning type.
21136
version_type=$version_type
21138
# Format of library name prefix.
21139
libname_spec=$lt_libname_spec
21141
# List of archive names. First name is the real one, the rest are links.
21142
# The last name is the one that the linker finds with -lNAME.
21143
library_names_spec=$lt_library_names_spec
21145
# The coded name of the library, if different from the real name.
21146
soname_spec=$lt_soname_spec
21148
# Commands used to build and install an old-style archive.
21150
old_archive_cmds=$lt_old_archive_cmds_RC
21151
old_postinstall_cmds=$lt_old_postinstall_cmds
21152
old_postuninstall_cmds=$lt_old_postuninstall_cmds
21154
# Create an old-style archive from a shared archive.
21155
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21157
# Create a temporary old-style archive to link instead of a shared archive.
21158
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21160
# Commands used to build and install a shared archive.
21161
archive_cmds=$lt_archive_cmds_RC
21162
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21163
postinstall_cmds=$lt_postinstall_cmds
21164
postuninstall_cmds=$lt_postuninstall_cmds
21166
# Commands used to build a loadable module (assumed same as above if empty)
21167
module_cmds=$lt_module_cmds_RC
21168
module_expsym_cmds=$lt_module_expsym_cmds_RC
21170
# Commands to strip libraries.
21171
old_striplib=$lt_old_striplib
21172
striplib=$lt_striplib
21174
# Dependencies to place before the objects being linked to create a
21176
predep_objects=$lt_predep_objects_RC
21178
# Dependencies to place after the objects being linked to create a
21180
postdep_objects=$lt_postdep_objects_RC
21182
# Dependencies to place before the objects being linked to create a
21184
predeps=$lt_predeps_RC
21186
# Dependencies to place after the objects being linked to create a
21188
postdeps=$lt_postdeps_RC
21190
# The directories searched by this compiler when creating a shared
21192
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
21194
# The library search path used internally by the compiler when linking
21195
# a shared library.
21196
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21198
# Method to check whether dependent libraries are shared objects.
21199
deplibs_check_method=$lt_deplibs_check_method
21201
# Command to use when deplibs_check_method == file_magic.
21202
file_magic_cmd=$lt_file_magic_cmd
21204
# Flag that allows shared libraries with undefined symbols to be built.
21205
allow_undefined_flag=$lt_allow_undefined_flag_RC
21207
# Flag that forces no undefined symbols.
21208
no_undefined_flag=$lt_no_undefined_flag_RC
21210
# Commands used to finish a libtool library installation in a directory.
21211
finish_cmds=$lt_finish_cmds
21213
# Same as above, but a single script fragment to be evaled but not shown.
21214
finish_eval=$lt_finish_eval
21216
# Take the output of nm and produce a listing of raw symbols and C names.
21217
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21219
# Transform the output of nm in a proper C declaration
21220
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21222
# Transform the output of nm in a C name address pair
21223
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21225
# This is the shared library runtime path variable.
21226
runpath_var=$runpath_var
21228
# This is the shared library path variable.
21229
shlibpath_var=$shlibpath_var
21231
# Is shlibpath searched before the hard-coded library search path?
21232
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21234
# How to hardcode a shared library path into an executable.
21235
hardcode_action=$hardcode_action_RC
21237
# Whether we should hardcode library paths into libraries.
21238
hardcode_into_libs=$hardcode_into_libs
21240
# Flag to hardcode \$libdir into a binary during linking.
21241
# This must work even if \$libdir does not exist.
21242
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21244
# If ld is used when linking, flag to hardcode \$libdir into
21245
# a binary during linking. This must work even if \$libdir does
21247
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21249
# Whether we need a single -rpath flag with a separated argument.
21250
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21252
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21253
# resulting binary.
21254
hardcode_direct=$hardcode_direct_RC
21256
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21257
# resulting binary.
21258
hardcode_minus_L=$hardcode_minus_L_RC
21260
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21261
# the resulting binary.
21262
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21264
# Set to yes if building a shared library automatically hardcodes DIR into the library
21265
# and all subsequent libraries and executables linked against it.
21266
hardcode_automatic=$hardcode_automatic_RC
21268
# Variables whose values should be saved in libtool wrapper scripts and
21269
# restored at relink time.
21270
variables_saved_for_relink="$variables_saved_for_relink"
21272
# Whether libtool must link a program against all its dependency libraries.
21273
link_all_deplibs=$link_all_deplibs_RC
21275
# Compile-time system search path for libraries
21276
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21278
# Run-time system search path for libraries
21279
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21281
# Fix the shell variable \$srcfile for the compiler.
21282
fix_srcfile_path=$lt_fix_srcfile_path
21284
# Set to yes if exported symbols are required.
21285
always_export_symbols=$always_export_symbols_RC
21287
# The commands to list exported symbols.
21288
export_symbols_cmds=$lt_export_symbols_cmds_RC
21290
# The commands to extract the exported symbol list from a shared archive.
21291
extract_expsyms_cmds=$lt_extract_expsyms_cmds
21293
# Symbols that should not be listed in the preloaded symbols.
21294
exclude_expsyms=$lt_exclude_expsyms_RC
21296
# Symbols that must always be exported.
21297
include_expsyms=$lt_include_expsyms_RC
21299
# ### END LIBTOOL TAG CONFIG: $tagname
21305
# If there is no Makefile yet, we rely on a make rule to execute
21306
# `config.status --recheck' to rerun these tests and create the
21307
# libtool script then.
21308
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21309
if test -f "$ltmain_in"; then
21310
test -f Makefile && make "$ltmain"
21316
ac_cpp='$CPP $CPPFLAGS'
21317
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21318
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21319
ac_compiler_gnu=$ac_cv_c_compiler_gnu
21326
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21327
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21328
{ (exit 1); exit 1; }; }
21332
# Append the new tag name to the list of available tags.
21333
if test -n "$tagname" ; then
21334
available_tags="$available_tags $tagname"
21340
# Now substitute the updated list of available tags.
21341
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21342
mv "${ofile}T" "$ofile"
21346
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21347
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21348
{ (exit 1); exit 1; }; }
21354
# This can be used to rebuild libtool when needed
21355
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21357
# Always use our own libtool.
21358
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21360
# Prevent multiple expansion
12372
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12373
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12374
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12375
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12376
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12377
{ echo "$as_me:$LINENO: result: yes" >&5
12378
echo "${ECHO_T}yes" >&6; }
12380
# FIXME - insert some real tests, host_os isn't really good enough
12383
if test -n "$STRIP" ; then
12384
striplib="$STRIP -x"
12385
old_striplib="$STRIP -S"
12386
{ echo "$as_me:$LINENO: result: yes" >&5
12387
echo "${ECHO_T}yes" >&6; }
12389
{ echo "$as_me:$LINENO: result: no" >&5
12390
echo "${ECHO_T}no" >&6; }
12394
{ echo "$as_me:$LINENO: result: no" >&5
12395
echo "${ECHO_T}no" >&6; }
12411
# Report which library types will actually be built
12412
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12413
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12414
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
12415
echo "${ECHO_T}$can_build_shared" >&6; }
12417
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12418
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12419
test "$can_build_shared" = "no" && enable_shared=no
12421
# On AIX, shared libraries and static libraries use the same namespace, and
12422
# are all built from PIC.
12425
test "$enable_shared" = yes && enable_static=no
12426
if test -n "$RANLIB"; then
12427
archive_cmds="$archive_cmds~\$RANLIB \$lib"
12428
postinstall_cmds='$RANLIB $lib'
12433
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12434
test "$enable_shared" = yes && enable_static=no
12438
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
12439
echo "${ECHO_T}$enable_shared" >&6; }
12441
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12442
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12443
# Make sure either enable_shared or enable_static is yes.
12444
test "$enable_shared" = yes || enable_static=yes
12445
{ echo "$as_me:$LINENO: result: $enable_static" >&5
12446
echo "${ECHO_T}$enable_static" >&6; }
12453
ac_cpp='$CPP $CPPFLAGS'
12454
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12455
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12456
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12472
ac_config_commands="$ac_config_commands libtool"
12477
# Only expand once:
21381
12480
for ac_prog in flex lex