10108
# Report which library types will actually be built
10109
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10110
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10111
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10112
echo "${ECHO_T}$can_build_shared" >&6; }
10114
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10115
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10116
test "$can_build_shared" = "no" && enable_shared=no
10118
# On AIX, shared libraries and static libraries use the same namespace, and
10119
# are all built from PIC.
10122
test "$enable_shared" = yes && enable_static=no
10123
if test -n "$RANLIB"; then
10124
archive_cmds="$archive_cmds~\$RANLIB \$lib"
10125
postinstall_cmds='$RANLIB $lib'
10130
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10131
test "$enable_shared" = yes && enable_static=no
10135
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10136
echo "${ECHO_T}$enable_shared" >&6; }
10138
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10139
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10140
# Make sure either enable_shared or enable_static is yes.
10141
test "$enable_shared" = yes || enable_static=yes
10142
{ echo "$as_me:$LINENO: result: $enable_static" >&5
10143
echo "${ECHO_T}$enable_static" >&6; }
10145
# The else clause should only fire when bootstrapping the
10146
# libtool distribution, otherwise you forgot to ship ltmain.sh
10147
# with your package, and you will get complaints that there are
10148
# no rules to generate ltmain.sh.
10149
if test -f "$ltmain"; then
10150
# See if we are running on zsh, and set the options which allow our commands through
10151
# without removal of \ escapes.
10152
if test -n "${ZSH_VERSION+set}" ; then
10153
setopt NO_GLOB_SUBST
10155
# Now quote all the things that may contain metacharacters while being
10156
# careful not to overquote the AC_SUBSTed values. We take copies of the
10157
# variables and quote the copies for generation of the libtool script.
10158
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10160
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10161
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10162
deplibs_check_method reload_flag reload_cmds need_locks \
10163
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10164
lt_cv_sys_global_symbol_to_c_name_address \
10165
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10166
old_postinstall_cmds old_postuninstall_cmds \
10170
lt_prog_compiler_wl \
10171
lt_prog_compiler_pic \
10172
lt_prog_compiler_static \
10173
lt_prog_compiler_no_builtin_flag \
10174
export_dynamic_flag_spec \
10175
thread_safe_flag_spec \
10176
whole_archive_flag_spec \
10177
enable_shared_with_static_runtimes \
10179
old_archive_from_new_cmds \
10184
compiler_lib_search_path \
10186
archive_expsym_cmds \
10188
postuninstall_cmds \
10189
old_archive_from_expsyms_cmds \
10190
allow_undefined_flag \
10191
no_undefined_flag \
10192
export_symbols_cmds \
10193
hardcode_libdir_flag_spec \
10194
hardcode_libdir_flag_spec_ld \
10195
hardcode_libdir_separator \
10196
hardcode_automatic \
10198
module_expsym_cmds \
10199
lt_cv_prog_compiler_c_o \
10201
include_expsyms; do
10204
old_archive_cmds | \
10205
old_archive_from_new_cmds | \
10207
archive_expsym_cmds | \
10209
module_expsym_cmds | \
10210
old_archive_from_expsyms_cmds | \
10211
export_symbols_cmds | \
10212
extract_expsyms_cmds | reload_cmds | finish_cmds | \
10213
postinstall_cmds | postuninstall_cmds | \
10214
old_postinstall_cmds | old_postuninstall_cmds | \
10215
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10216
# Double-quote double-evaled strings.
10217
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10220
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10226
*'\$0 --fallback-echo"')
10227
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10231
cfgfile="${ofile}T"
10232
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10234
{ echo "$as_me:$LINENO: creating $ofile" >&5
10235
echo "$as_me: creating $ofile" >&6;}
10237
cat <<__EOF__ >> "$cfgfile"
10240
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10241
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10242
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10244
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10245
# Free Software Foundation, Inc.
10247
# This file is part of GNU Libtool:
10248
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10250
# This program is free software; you can redistribute it and/or modify
10251
# it under the terms of the GNU General Public License as published by
10252
# the Free Software Foundation; either version 2 of the License, or
10253
# (at your option) any later version.
10255
# This program is distributed in the hope that it will be useful, but
10256
# WITHOUT ANY WARRANTY; without even the implied warranty of
10257
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10258
# General Public License for more details.
10260
# You should have received a copy of the GNU General Public License
10261
# along with this program; if not, write to the Free Software
10262
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10264
# As a special exception to the GNU General Public License, if you
10265
# distribute this file as part of a program that contains a
10266
# configuration script generated by Autoconf, you may include it under
10267
# the same distribution terms that you use for the rest of that program.
10269
# A sed program that does not truncate output.
10272
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10273
Xsed="$SED -e 1s/^X//"
10275
# The HP-UX ksh and POSIX shell print the target directory to stdout
10276
# if CDPATH is set.
10277
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10279
# The names of the tagged configurations supported by this script.
10282
# ### BEGIN LIBTOOL CONFIG
10284
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10286
# Shell to use when invoking shell scripts.
10289
# Whether or not to build shared libraries.
10290
build_libtool_libs=$enable_shared
10292
# Whether or not to build static libraries.
10293
build_old_libs=$enable_static
10295
# Whether or not to add -lc for building shared libraries.
10296
build_libtool_need_lc=$archive_cmds_need_lc
10298
# Whether or not to disallow shared libs when runtime libs are static
10299
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10301
# Whether or not to optimize for fast installation.
10302
fast_install=$enable_fast_install
10305
host_alias=$host_alias
10309
# The build system.
10310
build_alias=$build_alias
10314
# An echo program that does not interpret backslashes.
10319
AR_FLAGS=$lt_AR_FLAGS
10324
# LTCC compiler flags.
10325
LTCFLAGS=$lt_LTCFLAGS
10327
# A language-specific compiler.
10330
# Is the compiler the GNU C compiler?
10336
# The linker used to build libraries.
10339
# Whether we need hard or soft links.
10342
# A BSD-compatible nm program.
10345
# A symbol stripping program
10348
# Used to examine libraries when file_magic_cmd begins "file"
10349
MAGIC_CMD=$MAGIC_CMD
10351
# Used on cygwin: DLL creation program.
10354
# Used on cygwin: object dumper.
10357
# Used on cygwin: assembler.
10360
# The name of the directory that contains temporary libtool files.
10363
# How to create reloadable object files.
10364
reload_flag=$lt_reload_flag
10365
reload_cmds=$lt_reload_cmds
10367
# How to pass a linker flag through the compiler.
10368
wl=$lt_lt_prog_compiler_wl
10370
# Object file suffix (normally "o").
10371
objext="$ac_objext"
10373
# Old archive suffix (normally "a").
10376
# Shared library suffix (normally ".so").
10377
shrext_cmds='$shrext_cmds'
10379
# Executable file suffix (normally "").
10382
# Additional compiler flags for building library objects.
10383
pic_flag=$lt_lt_prog_compiler_pic
10386
# What is the maximum length of a command?
10387
max_cmd_len=$lt_cv_sys_max_cmd_len
10389
# Does compiler simultaneously support -c and -o options?
10390
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10392
# Must we lock files when doing compilation?
10393
need_locks=$lt_need_locks
10395
# Do we need the lib prefix for modules?
10396
need_lib_prefix=$need_lib_prefix
10398
# Do we need a version for libraries?
10399
need_version=$need_version
10401
# Whether dlopen is supported.
10402
dlopen_support=$enable_dlopen
10404
# Whether dlopen of programs is supported.
10405
dlopen_self=$enable_dlopen_self
10407
# Whether dlopen of statically linked programs is supported.
10408
dlopen_self_static=$enable_dlopen_self_static
10410
# Compiler flag to prevent dynamic linking.
10411
link_static_flag=$lt_lt_prog_compiler_static
10413
# Compiler flag to turn off builtin functions.
10414
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10416
# Compiler flag to allow reflexive dlopens.
10417
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10419
# Compiler flag to generate shared objects directly from archives.
10420
whole_archive_flag_spec=$lt_whole_archive_flag_spec
10422
# Compiler flag to generate thread-safe objects.
10423
thread_safe_flag_spec=$lt_thread_safe_flag_spec
10425
# Library versioning type.
10426
version_type=$version_type
10428
# Format of library name prefix.
10429
libname_spec=$lt_libname_spec
10431
# List of archive names. First name is the real one, the rest are links.
10432
# The last name is the one that the linker finds with -lNAME.
10433
library_names_spec=$lt_library_names_spec
10435
# The coded name of the library, if different from the real name.
10436
soname_spec=$lt_soname_spec
10438
# Commands used to build and install an old-style archive.
10440
old_archive_cmds=$lt_old_archive_cmds
10441
old_postinstall_cmds=$lt_old_postinstall_cmds
10442
old_postuninstall_cmds=$lt_old_postuninstall_cmds
10444
# Create an old-style archive from a shared archive.
10445
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10447
# Create a temporary old-style archive to link instead of a shared archive.
10448
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10450
# Commands used to build and install a shared archive.
10451
archive_cmds=$lt_archive_cmds
10452
archive_expsym_cmds=$lt_archive_expsym_cmds
10453
postinstall_cmds=$lt_postinstall_cmds
10454
postuninstall_cmds=$lt_postuninstall_cmds
10456
# Commands used to build a loadable module (assumed same as above if empty)
10457
module_cmds=$lt_module_cmds
10458
module_expsym_cmds=$lt_module_expsym_cmds
10460
# Commands to strip libraries.
10461
old_striplib=$lt_old_striplib
10462
striplib=$lt_striplib
10464
# Dependencies to place before the objects being linked to create a
10466
predep_objects=$lt_predep_objects
10468
# Dependencies to place after the objects being linked to create a
10470
postdep_objects=$lt_postdep_objects
10472
# Dependencies to place before the objects being linked to create a
10474
predeps=$lt_predeps
10476
# Dependencies to place after the objects being linked to create a
10478
postdeps=$lt_postdeps
10480
# The library search path used internally by the compiler when linking
10481
# a shared library.
10482
compiler_lib_search_path=$lt_compiler_lib_search_path
10484
# Method to check whether dependent libraries are shared objects.
10485
deplibs_check_method=$lt_deplibs_check_method
10487
# Command to use when deplibs_check_method == file_magic.
10488
file_magic_cmd=$lt_file_magic_cmd
10490
# Flag that allows shared libraries with undefined symbols to be built.
10491
allow_undefined_flag=$lt_allow_undefined_flag
10493
# Flag that forces no undefined symbols.
10494
no_undefined_flag=$lt_no_undefined_flag
10496
# Commands used to finish a libtool library installation in a directory.
10497
finish_cmds=$lt_finish_cmds
10499
# Same as above, but a single script fragment to be evaled but not shown.
10500
finish_eval=$lt_finish_eval
10502
# Take the output of nm and produce a listing of raw symbols and C names.
10503
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10505
# Transform the output of nm in a proper C declaration
10506
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10508
# Transform the output of nm in a C name address pair
10509
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10511
# This is the shared library runtime path variable.
10512
runpath_var=$runpath_var
10514
# This is the shared library path variable.
10515
shlibpath_var=$shlibpath_var
10517
# Is shlibpath searched before the hard-coded library search path?
10518
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10520
# How to hardcode a shared library path into an executable.
10521
hardcode_action=$hardcode_action
10523
# Whether we should hardcode library paths into libraries.
10524
hardcode_into_libs=$hardcode_into_libs
10526
# Flag to hardcode \$libdir into a binary during linking.
10527
# This must work even if \$libdir does not exist.
10528
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10530
# If ld is used when linking, flag to hardcode \$libdir into
10531
# a binary during linking. This must work even if \$libdir does
10533
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10535
# Whether we need a single -rpath flag with a separated argument.
10536
hardcode_libdir_separator=$lt_hardcode_libdir_separator
10538
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10539
# resulting binary.
10540
hardcode_direct=$hardcode_direct
10542
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10543
# resulting binary.
10544
hardcode_minus_L=$hardcode_minus_L
10546
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10547
# the resulting binary.
10548
hardcode_shlibpath_var=$hardcode_shlibpath_var
10550
# Set to yes if building a shared library automatically hardcodes DIR into the library
10551
# and all subsequent libraries and executables linked against it.
10552
hardcode_automatic=$hardcode_automatic
10554
# Variables whose values should be saved in libtool wrapper scripts and
10555
# restored at relink time.
10556
variables_saved_for_relink="$variables_saved_for_relink"
10558
# Whether libtool must link a program against all its dependency libraries.
10559
link_all_deplibs=$link_all_deplibs
10561
# Compile-time system search path for libraries
10562
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10564
# Run-time system search path for libraries
10565
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10567
# Fix the shell variable \$srcfile for the compiler.
10568
fix_srcfile_path="$fix_srcfile_path"
10570
# Set to yes if exported symbols are required.
10571
always_export_symbols=$always_export_symbols
10573
# The commands to list exported symbols.
10574
export_symbols_cmds=$lt_export_symbols_cmds
10576
# The commands to extract the exported symbol list from a shared archive.
10577
extract_expsyms_cmds=$lt_extract_expsyms_cmds
10579
# Symbols that should not be listed in the preloaded symbols.
10580
exclude_expsyms=$lt_exclude_expsyms
10582
# Symbols that must always be exported.
10583
include_expsyms=$lt_include_expsyms
10585
# ### END LIBTOOL CONFIG
10592
cat <<\EOF >> "$cfgfile"
10594
# AIX sometimes has problems with the GCC collect2 program. For some
10595
# reason, if we set the COLLECT_NAMES environment variable, the problems
10596
# vanish in a puff of smoke.
10597
if test "X${COLLECT_NAMES+set}" != Xset; then
10599
export COLLECT_NAMES
10605
# We use sed instead of cat because bash on DJGPP gets confused if
10606
# if finds mixed CR/LF and LF-only lines. Since sed operates in
10607
# text mode, it properly converts lines to CR/LF. This bash problem
10608
# is reportedly fixed, but why not run on old versions too?
10609
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10611
mv -f "$cfgfile" "$ofile" || \
10612
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10616
# If there is no Makefile yet, we rely on a make rule to execute
10617
# `config.status --recheck' to rerun these tests and create the
10618
# libtool script then.
10619
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10620
if test -f "$ltmain_in"; then
10621
test -f Makefile && make "$ltmain"
10627
ac_cpp='$CPP $CPPFLAGS'
10628
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10629
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10630
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10635
# Check whether --with-tags was given.
10636
if test "${with_tags+set}" = set; then
10637
withval=$with_tags; tagnames="$withval"
10641
if test -f "$ltmain" && test -n "$tagnames"; then
10642
if test ! -f "${ofile}"; then
10643
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10644
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10647
if test -z "$LTCC"; then
10648
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10649
if test -z "$LTCC"; then
10650
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10651
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10653
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10654
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10657
if test -z "$LTCFLAGS"; then
10658
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10661
# Extract list of available tagged configurations in $ofile.
10662
# Note that this assumes the entire list is on one line.
10663
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10665
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10666
for tagname in $tagnames; do
10668
# Check whether tagname contains only valid characters
10669
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10671
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10672
echo "$as_me: error: invalid tag name: $tagname" >&2;}
10673
{ (exit 1); exit 1; }; }
10677
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10679
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10680
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10681
{ (exit 1); exit 1; }; }
10684
# Update the list of available tags.
10685
if test -n "$tagname"; then
10686
echo appending configuration tag \"$tagname\" to $ofile
10690
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10691
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10692
(test "X$CXX" != "Xg++"))) ; then
10694
ac_cpp='$CXXCPP $CPPFLAGS'
10695
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10696
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10697
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10702
archive_cmds_need_lc_CXX=no
10703
allow_undefined_flag_CXX=
10704
always_export_symbols_CXX=no
10705
archive_expsym_cmds_CXX=
10706
export_dynamic_flag_spec_CXX=
10707
hardcode_direct_CXX=no
10708
hardcode_libdir_flag_spec_CXX=
10709
hardcode_libdir_flag_spec_ld_CXX=
10710
hardcode_libdir_separator_CXX=
10711
hardcode_minus_L_CXX=no
10712
hardcode_shlibpath_var_CXX=unsupported
10713
hardcode_automatic_CXX=no
10715
module_expsym_cmds_CXX=
10716
link_all_deplibs_CXX=unknown
10717
old_archive_cmds_CXX=$old_archive_cmds
10718
no_undefined_flag_CXX=
10719
whole_archive_flag_spec_CXX=
10720
enable_shared_with_static_runtimes_CXX=no
10722
# Dependencies to place before and after the object being linked:
10723
predep_objects_CXX=
10724
postdep_objects_CXX=
10727
compiler_lib_search_path_CXX=
10729
# Source file extension for C++ test sources.
10732
# Object file extension for compiled C++ test sources.
10736
# Code to be used in simple compile tests
10737
lt_simple_compile_test_code="int some_variable = 0;\n"
10739
# Code to be used in simple link tests
10740
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10742
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10744
# If no C compiler was specified, use CC.
10747
# If no C compiler flags were specified, use CFLAGS.
10748
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10750
# Allow CC to be a program name with arguments.
10754
# save warnings/boilerplate of simple test code
10755
ac_outfile=conftest.$ac_objext
10756
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10757
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10758
_lt_compiler_boilerplate=`cat conftest.err`
10761
ac_outfile=conftest.$ac_objext
10762
printf "$lt_simple_link_test_code" >conftest.$ac_ext
10763
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10764
_lt_linker_boilerplate=`cat conftest.err`
10768
# Allow CC to be a program name with arguments.
10773
lt_save_with_gnu_ld=$with_gnu_ld
10774
lt_save_path_LD=$lt_cv_path_LD
10775
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10776
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10778
$as_unset lt_cv_prog_gnu_ld
10780
if test -n "${lt_cv_path_LDCXX+set}"; then
10781
lt_cv_path_LD=$lt_cv_path_LDCXX
10783
$as_unset lt_cv_path_LD
10785
test -z "${LDCXX+set}" || LD=$LDCXX
10789
for cc_temp in $compiler""; do
10791
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10792
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10797
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10800
# We don't want -fno-exception wen compiling C++ code, so set the
10801
# no_builtin_flag separately
10802
if test "$GXX" = yes; then
10803
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10805
lt_prog_compiler_no_builtin_flag_CXX=
10808
if test "$GXX" = yes; then
10809
# Set up default GNU C++ configuration
10812
# Check whether --with-gnu-ld was given.
10813
if test "${with_gnu_ld+set}" = set; then
10814
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10820
if test "$GCC" = yes; then
10821
# Check if gcc -print-prog-name=ld gives a path.
10822
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10823
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10826
# gcc leaves a trailing carriage return which upsets mingw
10827
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10829
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10832
# Accept absolute paths.
10834
re_direlt='/[^/][^/]*/\.\./'
10835
# Canonicalize the pathname of ld
10836
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10837
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10838
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10840
test -z "$LD" && LD="$ac_prog"
10843
# If it fails, then pretend we aren't using GCC.
10847
# If it is relative, then search for the first ld in PATH.
10848
with_gnu_ld=unknown
10851
elif test "$with_gnu_ld" = yes; then
10852
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
10853
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10855
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10856
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10858
if test "${lt_cv_path_LD+set}" = set; then
10859
echo $ECHO_N "(cached) $ECHO_C" >&6
10861
if test -z "$LD"; then
10862
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10863
for ac_dir in $PATH; do
10865
test -z "$ac_dir" && ac_dir=.
10866
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10867
lt_cv_path_LD="$ac_dir/$ac_prog"
10868
# Check to see if the program is GNU ld. I'd rather use --version,
10869
# but apparently some variants of GNU ld only accept -v.
10870
# Break only if it was the GNU/non-GNU ld that we prefer.
10871
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10872
*GNU* | *'with BFD'*)
10873
test "$with_gnu_ld" != no && break
10876
test "$with_gnu_ld" != yes && break
10883
lt_cv_path_LD="$LD" # Let the user override the test with a path.
10887
LD="$lt_cv_path_LD"
10888
if test -n "$LD"; then
10889
{ echo "$as_me:$LINENO: result: $LD" >&5
10890
echo "${ECHO_T}$LD" >&6; }
10892
{ echo "$as_me:$LINENO: result: no" >&5
10893
echo "${ECHO_T}no" >&6; }
10895
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10896
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10897
{ (exit 1); exit 1; }; }
10898
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10899
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10900
if test "${lt_cv_prog_gnu_ld+set}" = set; then
10901
echo $ECHO_N "(cached) $ECHO_C" >&6
10903
# I'd rather use --version here, but apparently some GNU lds only accept -v.
10904
case `$LD -v 2>&1 </dev/null` in
10905
*GNU* | *'with BFD'*)
10906
lt_cv_prog_gnu_ld=yes
10909
lt_cv_prog_gnu_ld=no
10913
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10914
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10915
with_gnu_ld=$lt_cv_prog_gnu_ld
10919
# Check if GNU C++ uses GNU ld as the underlying linker, since the
10920
# archiving commands below assume that GNU ld is being used.
10921
if test "$with_gnu_ld" = yes; then
10922
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10923
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'
10925
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10926
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10928
# If archive_cmds runs LD, not CC, wlarc should be empty
10929
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10930
# investigate it a little bit more. (MM)
10933
# ancient GNU ld didn't support --whole-archive et. al.
10934
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10935
grep 'no-whole-archive' > /dev/null; then
10936
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10938
whole_archive_flag_spec_CXX=
10944
# A generic and very simple default shared library creation
10945
# command for GNU C++ for the case where it uses the native
10946
# linker, instead of GNU ld. If possible, this setting should
10947
# overridden to take advantage of the native linker features on
10948
# the platform it is being used on.
10949
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10952
# Commands to make compiler produce verbose output that lists
10953
# what "hidden" libraries, object files and flags are used when
10954
# linking a shared library.
10955
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10963
# PORTME: fill in a description of your system's C++ link characteristics
10964
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10965
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10969
# FIXME: insert proper C++ library support
10973
if test "$host_cpu" = ia64; then
10974
# On IA64, the linker does run time linking by default, so we don't
10975
# have to do anything special.
10976
aix_use_runtimelinking=no
10977
exp_sym_flag='-Bexport'
10980
aix_use_runtimelinking=no
10982
# Test if we are trying to use run time linking or normal
10983
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10984
# need to do runtime linking.
10985
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10986
for ld_flag in $LDFLAGS; do
10989
aix_use_runtimelinking=yes
10997
exp_sym_flag='-bexport'
10998
no_entry_flag='-bnoentry'
11001
# When large executables or shared objects are built, AIX ld can
11002
# have problems creating the table of contents. If linking a library
11003
# or program results in "error TOC overflow" add -mminimal-toc to
11004
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11005
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11007
archive_cmds_CXX=''
11008
hardcode_direct_CXX=yes
11009
hardcode_libdir_separator_CXX=':'
11010
link_all_deplibs_CXX=yes
11012
if test "$GXX" = yes; then
11013
case $host_os in aix4.[012]|aix4.[012].*)
11014
# We only want to do this on AIX 4.2 and lower, the check
11015
# below for broken collect2 doesn't work under 4.3+
11016
collect2name=`${CC} -print-prog-name=collect2`
11017
if test -f "$collect2name" && \
11018
strings "$collect2name" | grep resolve_lib_name >/dev/null
11020
# We have reworked collect2
11021
hardcode_direct_CXX=yes
11023
# We have old collect2
11024
hardcode_direct_CXX=unsupported
11025
# It fails to find uninstalled libraries when the uninstalled
11026
# path is not listed in the libpath. Setting hardcode_minus_L
11027
# to unsupported forces relinking
11028
hardcode_minus_L_CXX=yes
11029
hardcode_libdir_flag_spec_CXX='-L$libdir'
11030
hardcode_libdir_separator_CXX=
11034
shared_flag='-shared'
11035
if test "$aix_use_runtimelinking" = yes; then
11036
shared_flag="$shared_flag "'${wl}-G'
11040
if test "$host_cpu" = ia64; then
11041
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11042
# chokes on -Wl,-G. The following line is correct:
11045
if test "$aix_use_runtimelinking" = yes; then
11046
shared_flag='${wl}-G'
11048
shared_flag='${wl}-bM:SRE'
11053
# It seems that -bexpall does not export symbols beginning with
11054
# underscore (_), so it is better to generate a list of symbols to export.
11055
always_export_symbols_CXX=yes
11056
if test "$aix_use_runtimelinking" = yes; then
11057
# Warning - without using the other runtime loading flags (-brtl),
11058
# -berok will link without error, but may produce a broken library.
11059
allow_undefined_flag_CXX='-berok'
11060
# Determine the default libpath from the value encoded in an empty executable.
11061
cat >conftest.$ac_ext <<_ACEOF
11064
cat confdefs.h >>conftest.$ac_ext
11065
cat >>conftest.$ac_ext <<_ACEOF
11066
/* end confdefs.h. */
11076
rm -f conftest.$ac_objext conftest$ac_exeext
11077
if { (ac_try="$ac_link"
11078
case "(($ac_try" in
11079
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11080
*) ac_try_echo=$ac_try;;
11082
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11083
(eval "$ac_link") 2>conftest.er1
11085
grep -v '^ *+' conftest.er1 >conftest.err
11087
cat conftest.err >&5
11088
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089
(exit $ac_status); } && {
11090
test -z "$ac_cxx_werror_flag" ||
11091
test ! -s conftest.err
11092
} && test -s conftest$ac_exeext &&
11093
$as_test_x conftest$ac_exeext; then
11095
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11097
# Check for a 64-bit object if we didn't find anything.
11098
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11101
echo "$as_me: failed program was:" >&5
11102
sed 's/^/| /' conftest.$ac_ext >&5
11107
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11108
conftest$ac_exeext conftest.$ac_ext
11109
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11111
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11113
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"
11115
if test "$host_cpu" = ia64; then
11116
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11117
allow_undefined_flag_CXX="-z nodefs"
11118
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"
11120
# Determine the default libpath from the value encoded in an empty executable.
11121
cat >conftest.$ac_ext <<_ACEOF
11124
cat confdefs.h >>conftest.$ac_ext
11125
cat >>conftest.$ac_ext <<_ACEOF
11126
/* end confdefs.h. */
11136
rm -f conftest.$ac_objext conftest$ac_exeext
11137
if { (ac_try="$ac_link"
11138
case "(($ac_try" in
11139
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11140
*) ac_try_echo=$ac_try;;
11142
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11143
(eval "$ac_link") 2>conftest.er1
11145
grep -v '^ *+' conftest.er1 >conftest.err
11147
cat conftest.err >&5
11148
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149
(exit $ac_status); } && {
11150
test -z "$ac_cxx_werror_flag" ||
11151
test ! -s conftest.err
11152
} && test -s conftest$ac_exeext &&
11153
$as_test_x conftest$ac_exeext; then
11155
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11157
# Check for a 64-bit object if we didn't find anything.
11158
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11161
echo "$as_me: failed program was:" >&5
11162
sed 's/^/| /' conftest.$ac_ext >&5
11167
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11168
conftest$ac_exeext conftest.$ac_ext
11169
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11171
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11172
# Warning - without using the other run time loading flags,
11173
# -berok will link without error, but may produce a broken library.
11174
no_undefined_flag_CXX=' ${wl}-bernotok'
11175
allow_undefined_flag_CXX=' ${wl}-berok'
11176
# Exported symbols can be pulled into shared objects from archives
11177
whole_archive_flag_spec_CXX='$convenience'
11178
archive_cmds_need_lc_CXX=yes
11179
# This is similar to how AIX traditionally builds its shared libraries.
11180
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'
11186
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11187
allow_undefined_flag_CXX=unsupported
11188
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11189
# support --undefined. This deserves some investigation. FIXME
11190
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11197
case $cc_basename in
11199
# FIXME: insert proper C++ library support
11205
cygwin* | mingw* | pw32*)
11206
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11207
# as there is no search path for DLLs.
11208
hardcode_libdir_flag_spec_CXX='-L$libdir'
11209
allow_undefined_flag_CXX=unsupported
11210
always_export_symbols_CXX=no
11211
enable_shared_with_static_runtimes_CXX=yes
11213
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11214
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'
11215
# If the export-symbols file already is a .def file (1st line
11216
# is EXPORTS), use it as is; otherwise, prepend...
11217
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11218
cp $export_symbols $output_objdir/$soname.def;
11220
echo EXPORTS > $output_objdir/$soname.def;
11221
cat $export_symbols >> $output_objdir/$soname.def;
11223
$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'
11228
darwin* | rhapsody*)
11230
rhapsody* | darwin1.[012])
11231
allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11234
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11235
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11237
case ${MACOSX_DEPLOYMENT_TARGET} in
11239
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11242
allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11248
archive_cmds_need_lc_CXX=no
11249
hardcode_direct_CXX=no
11250
hardcode_automatic_CXX=yes
11251
hardcode_shlibpath_var_CXX=unsupported
11252
whole_archive_flag_spec_CXX=''
11253
link_all_deplibs_CXX=yes
11255
if test "$GXX" = yes ; then
11256
lt_int_apple_cc_single_mod=no
11257
output_verbose_link_cmd='echo'
11258
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11259
lt_int_apple_cc_single_mod=yes
11261
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11262
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11264
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'
11266
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11267
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11268
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11269
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11271
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11273
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}'
11275
case $cc_basename in
11277
output_verbose_link_cmd='echo'
11278
archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11279
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11280
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11281
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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11282
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}'
11292
case $cc_basename in
11294
# FIXME: insert proper C++ library support
11298
# Green Hills C++ Compiler
11299
# FIXME: insert proper C++ library support
11303
# FIXME: insert proper C++ library support
11309
# C++ shared libraries reported to be fairly broken before switch to ELF
11313
archive_cmds_need_lc_CXX=no
11315
freebsd* | dragonfly*)
11316
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11323
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11324
hardcode_libdir_separator_CXX=:
11325
export_dynamic_flag_spec_CXX='${wl}-E'
11326
hardcode_direct_CXX=yes
11327
hardcode_minus_L_CXX=yes # Not in the search PATH,
11328
# but as the default
11329
# location of the library.
11331
case $cc_basename in
11333
# FIXME: insert proper C++ library support
11337
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'
11338
# Commands to make compiler produce verbose output that lists
11339
# what "hidden" libraries, object files and flags are used when
11340
# linking a shared library.
11342
# There doesn't appear to be a way to prevent this compiler from
11343
# explicitly linking system object files so we need to strip them
11344
# from the output so that they don't get included in the library
11346
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'
11349
if test "$GXX" = yes; then
11350
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'
11352
# FIXME: insert proper C++ library support
11359
if test $with_gnu_ld = no; then
11360
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11361
hardcode_libdir_separator_CXX=:
11365
hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11368
export_dynamic_flag_spec_CXX='${wl}-E'
11374
hardcode_direct_CXX=no
11375
hardcode_shlibpath_var_CXX=no
11378
hardcode_direct_CXX=yes
11379
hardcode_minus_L_CXX=yes # Not in the search PATH,
11380
# but as the default
11381
# location of the library.
11385
case $cc_basename in
11387
# FIXME: insert proper C++ library support
11393
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11396
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11399
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11402
# Commands to make compiler produce verbose output that lists
11403
# what "hidden" libraries, object files and flags are used when
11404
# linking a shared library.
11406
# There doesn't appear to be a way to prevent this compiler from
11407
# explicitly linking system object files so we need to strip them
11408
# from the output so that they don't get included in the library
11410
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'
11413
if test "$GXX" = yes; then
11414
if test $with_gnu_ld = no; then
11417
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11420
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11423
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'
11428
# FIXME: insert proper C++ library support
11435
hardcode_direct_CXX=no
11436
hardcode_shlibpath_var_CXX=no
11437
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11438
export_dynamic_flag_spec_CXX='${wl}-E'
11439
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11440
# Instead, shared libraries are loaded at an image base (0x10000000 by
11441
# default) and relocated if they conflict, which is a slow very memory
11442
# consuming and fragmenting process. To avoid this, we pick a random,
11443
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11444
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
11445
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'
11446
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'
11449
case $cc_basename in
11452
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'
11454
# Archives containing C++ object files must be created using
11455
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
11456
# necessary to make sure instantiated templates are included
11458
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11461
if test "$GXX" = yes; then
11462
if test "$with_gnu_ld" = no; then
11463
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'
11465
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'
11468
link_all_deplibs_CXX=yes
11471
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11472
hardcode_libdir_separator_CXX=:
11474
linux* | k*bsd*-gnu)
11475
case $cc_basename in
11477
# Kuck and Associates, Inc. (KAI) C++ Compiler
11479
# KCC will only create a shared library if the output file
11480
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11481
# to its proper name (with version) after linking.
11482
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'
11483
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'
11484
# Commands to make compiler produce verbose output that lists
11485
# what "hidden" libraries, object files and flags are used when
11486
# linking a shared library.
11488
# There doesn't appear to be a way to prevent this compiler from
11489
# explicitly linking system object files so we need to strip them
11490
# from the output so that they don't get included in the library
11492
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'
11494
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11495
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11497
# Archives containing C++ object files must be created using
11498
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11499
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11504
# version 8.0 and above of icpc choke on multiply defined symbols
11505
# if we add $predep_objects and $postdep_objects, however 7.1 and
11506
# earlier do not add the objects themselves.
11507
case `$CC -V 2>&1` in
11509
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11510
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'
11512
*) # Version 8.0 or newer
11515
ia64*) tmp_idyn=' -i_dynamic';;
11517
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11518
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'
11521
archive_cmds_need_lc_CXX=no
11522
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11523
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11524
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11527
# Portland Group C++ compiler
11528
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11529
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'
11531
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11532
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11533
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'
11537
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11538
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'
11540
runpath_var=LD_RUN_PATH
11541
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11542
hardcode_libdir_separator_CXX=:
11544
# Commands to make compiler produce verbose output that lists
11545
# what "hidden" libraries, object files and flags are used when
11546
# linking a shared library.
11548
# There doesn't appear to be a way to prevent this compiler from
11549
# explicitly linking system object files so we need to strip them
11550
# from the output so that they don't get included in the library
11552
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'
11557
# FIXME: insert proper C++ library support
11561
# FIXME: insert proper C++ library support
11565
case $cc_basename in
11567
# FIXME: insert proper C++ library support
11571
# FIXME: insert proper C++ library support
11576
netbsd* | netbsdelf*-gnu)
11577
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11578
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11580
hardcode_libdir_flag_spec_CXX='-R$libdir'
11581
hardcode_direct_CXX=yes
11582
hardcode_shlibpath_var_CXX=no
11584
# Workaround some broken pre-1.5 toolchains
11585
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11588
# C++ shared libraries are fairly broken
11592
hardcode_direct_CXX=yes
11593
hardcode_shlibpath_var_CXX=no
11594
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11595
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11596
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11597
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11598
export_dynamic_flag_spec_CXX='${wl}-E'
11599
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11601
output_verbose_link_cmd='echo'
11604
case $cc_basename in
11606
# Kuck and Associates, Inc. (KAI) C++ Compiler
11608
# KCC will only create a shared library if the output file
11609
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11610
# to its proper name (with version) after linking.
11611
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'
11613
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11614
hardcode_libdir_separator_CXX=:
11616
# Archives containing C++ object files must be created using
11617
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11618
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11622
# Rational C++ 2.4.1
11623
# FIXME: insert proper C++ library support
11627
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11628
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'
11630
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11631
hardcode_libdir_separator_CXX=:
11633
# Commands to make compiler produce verbose output that lists
11634
# what "hidden" libraries, object files and flags are used when
11635
# linking a shared library.
11637
# There doesn't appear to be a way to prevent this compiler from
11638
# explicitly linking system object files so we need to strip them
11639
# from the output so that they don't get included in the library
11641
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'
11644
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11645
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11646
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'
11648
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11649
hardcode_libdir_separator_CXX=:
11651
# Commands to make compiler produce verbose output that lists
11652
# what "hidden" libraries, object files and flags are used when
11653
# linking a shared library.
11654
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11657
# FIXME: insert proper C++ library support
11664
case $cc_basename in
11666
# Kuck and Associates, Inc. (KAI) C++ Compiler
11668
# KCC will only create a shared library if the output file
11669
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11670
# to its proper name (with version) after linking.
11671
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'
11673
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11674
hardcode_libdir_separator_CXX=:
11676
# Archives containing C++ object files must be created using
11677
# the KAI C++ compiler.
11678
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11681
# Rational C++ 2.4.1
11682
# FIXME: insert proper C++ library support
11686
allow_undefined_flag_CXX=' -expect_unresolved \*'
11687
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'
11688
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11689
echo "-hidden">> $lib.exp~
11690
$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~
11693
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11694
hardcode_libdir_separator_CXX=:
11696
# Commands to make compiler produce verbose output that lists
11697
# what "hidden" libraries, object files and flags are used when
11698
# linking a shared library.
11700
# There doesn't appear to be a way to prevent this compiler from
11701
# explicitly linking system object files so we need to strip them
11702
# from the output so that they don't get included in the library
11704
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'
11707
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11708
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11709
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'
11711
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11712
hardcode_libdir_separator_CXX=:
11714
# Commands to make compiler produce verbose output that lists
11715
# what "hidden" libraries, object files and flags are used when
11716
# linking a shared library.
11717
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11720
# FIXME: insert proper C++ library support
11727
# FIXME: insert proper C++ library support
11731
case $cc_basename in
11734
# FIXME: insert proper C++ library support
11739
# FIXME: insert proper C++ library support
11743
# FIXME: insert proper C++ library support
11749
case $cc_basename in
11751
# Sun C++ 4.2, 5.x and Centerline C++
11752
archive_cmds_need_lc_CXX=yes
11753
no_undefined_flag_CXX=' -zdefs'
11754
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11755
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11756
$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'
11758
hardcode_libdir_flag_spec_CXX='-R$libdir'
11759
hardcode_shlibpath_var_CXX=no
11761
solaris2.[0-5] | solaris2.[0-5].*) ;;
11763
# The C++ compiler is used as linker so we must use $wl
11764
# flag to pass the commands to the underlying system
11765
# linker. We must also pass each convience library through
11766
# to the system linker between allextract/defaultextract.
11767
# The C++ compiler will combine linker options so we
11768
# cannot just pass the convience library names through
11770
# Supported since Solaris 2.6 (maybe 2.5.1?)
11771
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11774
link_all_deplibs_CXX=yes
11776
output_verbose_link_cmd='echo'
11778
# Archives containing C++ object files must be created using
11779
# "CC -xar", where "CC" is the Sun C++ compiler. This is
11780
# necessary to make sure instantiated templates are included
11782
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11785
# Green Hills C++ Compiler
11786
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11788
# The C++ compiler must be used to create the archive.
11789
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11792
# GNU C++ compiler with Solaris linker
11793
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11794
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11795
if $CC --version | grep -v '^2\.7' > /dev/null; then
11796
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11797
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11798
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11800
# Commands to make compiler produce verbose output that lists
11801
# what "hidden" libraries, object files and flags are used when
11802
# linking a shared library.
11803
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11805
# g++ 2.7 appears to require `-G' NOT `-shared' on this
11807
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11808
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11809
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11811
# Commands to make compiler produce verbose output that lists
11812
# what "hidden" libraries, object files and flags are used when
11813
# linking a shared library.
11814
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11817
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11822
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11823
no_undefined_flag_CXX='${wl}-z,text'
11824
archive_cmds_need_lc_CXX=no
11825
hardcode_shlibpath_var_CXX=no
11826
runpath_var='LD_RUN_PATH'
11828
case $cc_basename in
11830
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11831
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11834
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11835
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11839
sysv5* | sco3.2v5* | sco5v6*)
11840
# Note: We can NOT use -z defs as we might desire, because we do not
11841
# link with -lc, and that would cause any symbols used from libc to
11842
# always be unresolved, which means just about no library would
11843
# ever link correctly. If we're not using GNU ld we use -z text
11844
# though, which does catch some bad symbols but isn't as heavy-handed
11846
# For security reasons, it is highly recommended that you always
11847
# use absolute paths for naming shared libraries, and exclude the
11848
# DT_RUNPATH tag from executables and libraries. But doing so
11849
# requires that you compile everything twice, which is a pain.
11850
# So that behaviour is only enabled if SCOABSPATH is set to a
11851
# non-empty value in the environment. Most likely only useful for
11852
# creating official distributions of packages.
11853
# This is a hack until libtool officially supports absolute path
11854
# names for shared libraries.
11855
no_undefined_flag_CXX='${wl}-z,text'
11856
allow_undefined_flag_CXX='${wl}-z,nodefs'
11857
archive_cmds_need_lc_CXX=no
11858
hardcode_shlibpath_var_CXX=no
11859
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11860
hardcode_libdir_separator_CXX=':'
11861
link_all_deplibs_CXX=yes
11862
export_dynamic_flag_spec_CXX='${wl}-Bexport'
11863
runpath_var='LD_RUN_PATH'
11865
case $cc_basename in
11867
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11868
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11871
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11872
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11877
case $cc_basename in
11879
# NonStop-UX NCC 3.20
11880
# FIXME: insert proper C++ library support
11884
# FIXME: insert proper C++ library support
11890
# FIXME: insert proper C++ library support
11894
# FIXME: insert proper C++ library support
11898
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11899
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11900
test "$ld_shlibs_CXX" = no && can_build_shared=no
11906
cat > conftest.$ac_ext <<EOF
11910
Foo (void) { a = 0; }
11916
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11917
(eval $ac_compile) 2>&5
11919
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920
(exit $ac_status); }; then
11921
# Parse the compiler output and extract the necessary
11922
# objects, libraries and library flags.
11924
# Sentinel used to keep track of whether or not we are before
11925
# the conftest object file.
11926
pre_test_object_deps_done=no
11928
# The `*' in the case matches for architectures that use `case' in
11929
# $output_verbose_cmd can trigger glob expansion during the loop
11930
# eval without this substitution.
11931
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11933
for p in `eval $output_verbose_link_cmd`; do
11937
# Some compilers place space between "-{L,R}" and the path.
11938
# Remove the space.
11939
if test $p = "-L" \
11940
|| test $p = "-R"; then
11947
if test "$pre_test_object_deps_done" = no; then
11950
# Internal compiler library paths should come after those
11951
# provided the user. The postdeps already come after the
11952
# user supplied libs so there is no need to process them.
11953
if test -z "$compiler_lib_search_path_CXX"; then
11954
compiler_lib_search_path_CXX="${prev}${p}"
11956
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11959
# The "-l" case would never come before the object being
11960
# linked, so don't bother handling this case.
11963
if test -z "$postdeps_CXX"; then
11964
postdeps_CXX="${prev}${p}"
11966
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11972
# This assumes that the test object file only shows up
11973
# once in the compiler output.
11974
if test "$p" = "conftest.$objext"; then
11975
pre_test_object_deps_done=yes
11979
if test "$pre_test_object_deps_done" = no; then
11980
if test -z "$predep_objects_CXX"; then
11981
predep_objects_CXX="$p"
11983
predep_objects_CXX="$predep_objects_CXX $p"
11986
if test -z "$postdep_objects_CXX"; then
11987
postdep_objects_CXX="$p"
11989
postdep_objects_CXX="$postdep_objects_CXX $p"
11994
*) ;; # Ignore the rest.
12002
echo "libtool.m4: error: problem compiling CXX test program"
12005
$rm -f confest.$objext
12007
# PORTME: override above test on systems where it is broken
12010
# Interix 3.5 installs completely hosed .la files for C++, so rather than
12011
# hack all around it, let's just trust "g++" to DTRT.
12012
predep_objects_CXX=
12013
postdep_objects_CXX=
12018
case $cc_basename in
12020
# Adding this requires a known-good setup of shared libraries for
12021
# Sun compiler versions before 5.6, else PIC objects from an old
12022
# archive will be linked into the output, leading to subtle bugs.
12023
postdeps_CXX='-lCstd -lCrun'
12030
case " $postdeps_CXX " in
12031
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12034
lt_prog_compiler_wl_CXX=
12035
lt_prog_compiler_pic_CXX=
12036
lt_prog_compiler_static_CXX=
12038
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12039
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12041
# C++ specific cases for pic, static, wl, etc.
12042
if test "$GXX" = yes; then
12043
lt_prog_compiler_wl_CXX='-Wl,'
12044
lt_prog_compiler_static_CXX='-static'
12048
# All AIX code is PIC.
12049
if test "$host_cpu" = ia64; then
12050
# AIX 5 now supports IA64 processor
12051
lt_prog_compiler_static_CXX='-Bstatic'
12055
# FIXME: we need at least 68020 code to build shared libraries, but
12056
# adding the `-m68020' flag to GCC prevents building anything better,
12058
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12060
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12061
# PIC is the default for these OSes.
12063
mingw* | os2* | pw32*)
12064
# This hack is so that the source file can tell whether it is being
12065
# built for inclusion in a dll (and should export symbols for example).
12066
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12068
darwin* | rhapsody*)
12069
# PIC is the default on this platform
12070
# Common symbols not allowed in MH_DYLIB files
12071
lt_prog_compiler_pic_CXX='-fno-common'
12074
# DJGPP does not support shared libraries at all
12075
lt_prog_compiler_pic_CXX=
12078
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
12079
# Instead, we relocate shared libraries at runtime.
12082
if test -d /usr/nec; then
12083
lt_prog_compiler_pic_CXX=-Kconform_pic
12087
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12088
# not for PA HP-UX.
12093
lt_prog_compiler_pic_CXX='-fPIC'
12098
lt_prog_compiler_pic_CXX='-fPIC'
12104
# All AIX code is PIC.
12105
if test "$host_cpu" = ia64; then
12106
# AIX 5 now supports IA64 processor
12107
lt_prog_compiler_static_CXX='-Bstatic'
12109
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12113
case $cc_basename in
12115
# Green Hills C++ Compiler
12116
# _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"
12121
# PIC is the default on this platform
12122
# Common symbols not allowed in MH_DYLIB files
12123
case $cc_basename in
12125
lt_prog_compiler_pic_CXX='-qnocommon'
12126
lt_prog_compiler_wl_CXX='-Wl,'
12131
case $cc_basename in
12133
lt_prog_compiler_pic_CXX='-KPIC'
12136
# Green Hills C++ Compiler
12137
lt_prog_compiler_pic_CXX='-pic'
12143
freebsd* | dragonfly*)
12144
# FreeBSD uses GNU C++
12146
hpux9* | hpux10* | hpux11*)
12147
case $cc_basename in
12149
lt_prog_compiler_wl_CXX='-Wl,'
12150
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12151
if test "$host_cpu" != ia64; then
12152
lt_prog_compiler_pic_CXX='+Z'
12156
lt_prog_compiler_wl_CXX='-Wl,'
12157
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12163
lt_prog_compiler_pic_CXX='+Z'
12172
# This is c89, which is MS Visual C++ (no shared libs)
12173
# Anyone wants to do a port?
12175
irix5* | irix6* | nonstopux*)
12176
case $cc_basename in
12178
lt_prog_compiler_wl_CXX='-Wl,'
12179
lt_prog_compiler_static_CXX='-non_shared'
12180
# CC pic flag -KPIC is the default.
12186
linux* | k*bsd*-gnu)
12187
case $cc_basename in
12190
lt_prog_compiler_wl_CXX='--backend -Wl,'
12191
lt_prog_compiler_pic_CXX='-fPIC'
12195
lt_prog_compiler_wl_CXX='-Wl,'
12196
lt_prog_compiler_pic_CXX='-KPIC'
12197
lt_prog_compiler_static_CXX='-static'
12200
# Portland Group C++ compiler.
12201
lt_prog_compiler_wl_CXX='-Wl,'
12202
lt_prog_compiler_pic_CXX='-fpic'
12203
lt_prog_compiler_static_CXX='-Bstatic'
12207
# Make sure the PIC flag is empty. It appears that all Alpha
12208
# Linux and Compaq Tru64 Unix objects are PIC.
12209
lt_prog_compiler_pic_CXX=
12210
lt_prog_compiler_static_CXX='-non_shared'
12221
case $cc_basename in
12223
lt_prog_compiler_pic_CXX='-W c,exportall'
12229
netbsd* | netbsdelf*-gnu)
12231
osf3* | osf4* | osf5*)
12232
case $cc_basename in
12234
lt_prog_compiler_wl_CXX='--backend -Wl,'
12237
# Rational C++ 2.4.1
12238
lt_prog_compiler_pic_CXX='-pic'
12241
# Digital/Compaq C++
12242
lt_prog_compiler_wl_CXX='-Wl,'
12243
# Make sure the PIC flag is empty. It appears that all Alpha
12244
# Linux and Compaq Tru64 Unix objects are PIC.
12245
lt_prog_compiler_pic_CXX=
12246
lt_prog_compiler_static_CXX='-non_shared'
12255
case $cc_basename in
12257
# Sun C++ 4.2, 5.x and Centerline C++
12258
lt_prog_compiler_pic_CXX='-KPIC'
12259
lt_prog_compiler_static_CXX='-Bstatic'
12260
lt_prog_compiler_wl_CXX='-Qoption ld '
12263
# Green Hills C++ Compiler
12264
lt_prog_compiler_pic_CXX='-PIC'
12271
case $cc_basename in
12274
lt_prog_compiler_pic_CXX='-pic'
12275
lt_prog_compiler_static_CXX='-Bstatic'
12279
lt_prog_compiler_pic_CXX='-pic'
12286
case $cc_basename in
12288
# NonStop-UX NCC 3.20
12289
lt_prog_compiler_pic_CXX='-KPIC'
12295
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12296
case $cc_basename in
12298
lt_prog_compiler_wl_CXX='-Wl,'
12299
lt_prog_compiler_pic_CXX='-KPIC'
12300
lt_prog_compiler_static_CXX='-Bstatic'
12307
lt_prog_compiler_can_build_shared_CXX=no
12312
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12313
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12316
# Check to make sure the PIC flag actually works.
12318
if test -n "$lt_prog_compiler_pic_CXX"; then
12320
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12321
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12322
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12323
echo $ECHO_N "(cached) $ECHO_C" >&6
12325
lt_prog_compiler_pic_works_CXX=no
12326
ac_outfile=conftest.$ac_objext
12327
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12328
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12329
# Insert the option either (1) after the last *FLAGS variable, or
12330
# (2) before a word containing "conftest.", or (3) at the end.
12331
# Note that $ac_compile itself does not contain backslashes and begins
12332
# with a dollar sign (not a hyphen), so the echo should work correctly.
12333
# The option is referenced via a variable to avoid confusing sed.
12334
lt_compile=`echo "$ac_compile" | $SED \
12335
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12336
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12337
-e 's:$: $lt_compiler_flag:'`
12338
(eval echo "\"\$as_me:12338: $lt_compile\"" >&5)
12339
(eval "$lt_compile" 2>conftest.err)
12341
cat conftest.err >&5
12342
echo "$as_me:12342: \$? = $ac_status" >&5
12343
if (exit $ac_status) && test -s "$ac_outfile"; then
12344
# The compiler can only warn and ignore the option if not recognized
12345
# So say no if there are warnings other than the usual output.
12346
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12347
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12348
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12349
lt_prog_compiler_pic_works_CXX=yes
12355
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12356
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12358
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12359
case $lt_prog_compiler_pic_CXX in
12361
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12364
lt_prog_compiler_pic_CXX=
12365
lt_prog_compiler_can_build_shared_CXX=no
12370
# For platforms which do not support PIC, -DPIC is meaningless:
12372
lt_prog_compiler_pic_CXX=
12375
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12380
# Check to make sure the static flag actually works.
12382
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12383
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12384
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12385
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12386
echo $ECHO_N "(cached) $ECHO_C" >&6
12388
lt_prog_compiler_static_works_CXX=no
12389
save_LDFLAGS="$LDFLAGS"
12390
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12391
printf "$lt_simple_link_test_code" > conftest.$ac_ext
12392
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12393
# The linker can only warn and ignore the option if not recognized
12394
# So say no if there are warnings
12395
if test -s conftest.err; then
12396
# Append any errors to the config.log.
12397
cat conftest.err 1>&5
12398
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12399
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12400
if diff conftest.exp conftest.er2 >/dev/null; then
12401
lt_prog_compiler_static_works_CXX=yes
12404
lt_prog_compiler_static_works_CXX=yes
12408
LDFLAGS="$save_LDFLAGS"
12411
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12412
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12414
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12417
lt_prog_compiler_static_CXX=
12421
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12422
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12423
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12424
echo $ECHO_N "(cached) $ECHO_C" >&6
12426
lt_cv_prog_compiler_c_o_CXX=no
12427
$rm -r conftest 2>/dev/null
12431
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12433
lt_compiler_flag="-o out/conftest2.$ac_objext"
12434
# Insert the option either (1) after the last *FLAGS variable, or
12435
# (2) before a word containing "conftest.", or (3) at the end.
12436
# Note that $ac_compile itself does not contain backslashes and begins
12437
# with a dollar sign (not a hyphen), so the echo should work correctly.
12438
lt_compile=`echo "$ac_compile" | $SED \
12439
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12440
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12441
-e 's:$: $lt_compiler_flag:'`
12442
(eval echo "\"\$as_me:12442: $lt_compile\"" >&5)
12443
(eval "$lt_compile" 2>out/conftest.err)
12445
cat out/conftest.err >&5
12446
echo "$as_me:12446: \$? = $ac_status" >&5
12447
if (exit $ac_status) && test -s out/conftest2.$ac_objext
12449
# The compiler can only warn and ignore the option if not recognized
12450
# So say no if there are warnings
12451
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12452
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12453
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12454
lt_cv_prog_compiler_c_o_CXX=yes
12459
# SGI C++ compiler will create directory out/ii_files/ for
12460
# template instantiation
12461
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12462
$rm out/* && rmdir out
12468
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12469
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12472
hard_links="nottested"
12473
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12474
# do not overwrite the value of need_locks provided by the user
12475
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12476
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12479
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12481
ln conftest.a conftest.b 2>&5 || hard_links=no
12482
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12483
{ echo "$as_me:$LINENO: result: $hard_links" >&5
12484
echo "${ECHO_T}$hard_links" >&6; }
12485
if test "$hard_links" = no; then
12486
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12487
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12494
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12495
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12497
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12500
# If we're using GNU nm, then we don't want the "-C" option.
12501
# -C means demangle to AIX nm, but means don't demangle with GNU nm
12502
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12503
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'
12505
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'
12509
export_symbols_cmds_CXX="$ltdll_cmds"
12512
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'
12514
linux* | k*bsd*-gnu)
12515
link_all_deplibs_CXX=no
12518
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12522
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12523
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12524
test "$ld_shlibs_CXX" = no && can_build_shared=no
12527
# Do we need to explicitly link libc?
12529
case "x$archive_cmds_need_lc_CXX" in
12531
# Assume -lc should be added
12532
archive_cmds_need_lc_CXX=yes
12534
if test "$enable_shared" = yes && test "$GCC" = yes; then
12535
case $archive_cmds_CXX in
12537
# FIXME: we may have to deal with multi-command sequences.
12540
# Test whether the compiler implicitly links with -lc since on some
12541
# systems, -lgcc has to come before -lc. If gcc already passes -lc
12542
# to ld, don't add -lc before -lgcc.
12543
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12544
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12546
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12548
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12549
(eval $ac_compile) 2>&5
12551
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552
(exit $ac_status); } 2>conftest.err; then
12555
libobjs=conftest.$ac_objext
12557
wl=$lt_prog_compiler_wl_CXX
12558
pic_flag=$lt_prog_compiler_pic_CXX
12564
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12565
allow_undefined_flag_CXX=
12566
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12567
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12569
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570
(exit $ac_status); }
12572
archive_cmds_need_lc_CXX=no
12574
archive_cmds_need_lc_CXX=yes
12576
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12578
cat conftest.err 1>&5
12581
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12582
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12589
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12590
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12591
library_names_spec=
12592
libname_spec='lib$name'
12596
postuninstall_cmds=
12600
shlibpath_overrides_runpath=unknown
12602
dynamic_linker="$host_os ld.so"
12603
sys_lib_dlsearch_path_spec="/lib /usr/lib"
12604
if test "$GCC" = yes; then
12605
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12606
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12607
# if the path contains ";" then we assume it to be the separator
12608
# otherwise default to the standard path separator (i.e. ":") - it is
12609
# assumed that no part of a normal pathname contains ";" but that should
12610
# okay in the real world where ";" in dirpaths is itself problematic.
12611
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12613
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12616
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12618
need_lib_prefix=unknown
12619
hardcode_into_libs=no
12621
# when you set need_version to no, make sure it does not cause -set_version
12622
# flags to be left without arguments
12623
need_version=unknown
12628
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12629
shlibpath_var=LIBPATH
12631
# AIX 3 has no versioning support, so we append a major version to the name.
12632
soname_spec='${libname}${release}${shared_ext}$major'
12639
hardcode_into_libs=yes
12640
if test "$host_cpu" = ia64; then
12641
# AIX 5 supports IA64
12642
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12643
shlibpath_var=LD_LIBRARY_PATH
12645
# With GCC up to 2.95.x, collect2 would create an import file
12646
# for dependence libraries. The import file would start with
12647
# the line `#! .'. This would cause the generated library to
12648
# depend on `.', always an invalid library. This was fixed in
12649
# development snapshots of GCC prior to 3.0.
12651
aix4 | aix4.[01] | aix4.[01].*)
12652
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12654
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12657
can_build_shared=no
12661
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12662
# soname into executable. Probably we can add versioning support to
12663
# collect2, so additional links can be useful in future.
12664
if test "$aix_use_runtimelinking" = yes; then
12665
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
12666
# instead of lib<name>.a to let people know that these are not
12667
# typical AIX shared libraries.
12668
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12670
# We preserve .a as extension for shared libraries through AIX4.2
12671
# and later when we are not doing run time linking.
12672
library_names_spec='${libname}${release}.a $libname.a'
12673
soname_spec='${libname}${release}${shared_ext}$major'
12675
shlibpath_var=LIBPATH
12680
library_names_spec='$libname.ixlibrary $libname.a'
12681
# Create ${libname}_ixlibrary.a entries in /sys/libs.
12682
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'
12686
library_names_spec='${libname}${shared_ext}'
12687
dynamic_linker="$host_os ld.so"
12688
shlibpath_var=LIBRARY_PATH
12694
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12695
soname_spec='${libname}${release}${shared_ext}$major'
12696
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12697
shlibpath_var=LD_LIBRARY_PATH
12698
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12699
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12700
# the default ld.so.conf also contains /usr/contrib/lib and
12701
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12702
# libtool to hard-code these into programs
12705
cygwin* | mingw* | pw32*)
12706
version_type=windows
12711
case $GCC,$host_os in
12712
yes,cygwin* | yes,mingw* | yes,pw32*)
12713
library_names_spec='$libname.dll.a'
12714
# DLL is installed to $(libdir)/../bin by postinstall_cmds
12715
postinstall_cmds='base_file=`basename \${file}`~
12716
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12717
dldir=$destdir/`dirname \$dlpath`~
12718
test -d \$dldir || mkdir -p \$dldir~
12719
$install_prog $dir/$dlname \$dldir/$dlname~
12720
chmod a+x \$dldir/$dlname'
12721
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12722
dlpath=$dir/\$dldll~
12724
shlibpath_overrides_runpath=yes
12728
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
12729
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12730
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12733
# MinGW DLLs use traditional 'lib' prefix
12734
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12735
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12736
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12737
# It is most probably a Windows format PATH printed by
12738
# mingw gcc, but we are running on Cygwin. Gcc prints its search
12739
# path with ; separators, and with drive letters. We can handle the
12740
# drive letters (cygwin fileutils understands them), so leave them,
12741
# especially as we might pass files found there to a mingw objdump,
12742
# which wouldn't understand a cygwinified path. Ahh.
12743
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12745
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12749
# pw32 DLLs use 'pw' prefix rather than 'lib'
12750
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12756
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12759
dynamic_linker='Win32 ld.exe'
12760
# FIXME: first we should search . and the directory the executable is in
12764
darwin* | rhapsody*)
12765
dynamic_linker="$host_os dyld"
12766
version_type=darwin
12769
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12770
soname_spec='${libname}${release}${major}$shared_ext'
12771
shlibpath_overrides_runpath=yes
12772
shlibpath_var=DYLD_LIBRARY_PATH
12773
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12774
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12775
if test "$GCC" = yes; then
12776
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12778
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12780
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12787
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12788
soname_spec='${libname}${release}${shared_ext}$major'
12789
shlibpath_var=LD_LIBRARY_PATH
12796
freebsd* | dragonfly*)
12797
# DragonFly does not have aout. When/if they implement a new
12798
# versioning mechanism, adjust this.
12799
if test -x /usr/bin/objformat; then
12800
objformat=`/usr/bin/objformat`
12803
freebsd[123]*) objformat=aout ;;
12804
*) objformat=elf ;;
12807
version_type=freebsd-$objformat
12808
case $version_type in
12810
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12815
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12819
shlibpath_var=LD_LIBRARY_PATH
12822
shlibpath_overrides_runpath=yes
12824
freebsd3.[01]* | freebsdelf3.[01]*)
12825
shlibpath_overrides_runpath=yes
12826
hardcode_into_libs=yes
12828
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12829
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12830
shlibpath_overrides_runpath=no
12831
hardcode_into_libs=yes
12833
freebsd*) # from 4.6 on
12834
shlibpath_overrides_runpath=yes
12835
hardcode_into_libs=yes
12844
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12845
soname_spec='${libname}${release}${shared_ext}$major'
12846
shlibpath_var=LD_LIBRARY_PATH
12847
hardcode_into_libs=yes
12850
hpux9* | hpux10* | hpux11*)
12851
# Give a soname corresponding to the major version so that dld.sl refuses to
12852
# link against other versions.
12859
hardcode_into_libs=yes
12860
dynamic_linker="$host_os dld.so"
12861
shlibpath_var=LD_LIBRARY_PATH
12862
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12863
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12864
soname_spec='${libname}${release}${shared_ext}$major'
12865
if test "X$HPUX_IA64_MODE" = X32; then
12866
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12868
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12870
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12874
hardcode_into_libs=yes
12875
dynamic_linker="$host_os dld.sl"
12876
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12877
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12878
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12879
soname_spec='${libname}${release}${shared_ext}$major'
12880
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12881
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12885
dynamic_linker="$host_os dld.sl"
12886
shlibpath_var=SHLIB_PATH
12887
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12888
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12889
soname_spec='${libname}${release}${shared_ext}$major'
12892
# HP-UX runs *really* slowly unless shared libraries are mode 555.
12893
postinstall_cmds='chmod 555 $lib'
12900
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12901
soname_spec='${libname}${release}${shared_ext}$major'
12902
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12903
shlibpath_var=LD_LIBRARY_PATH
12904
shlibpath_overrides_runpath=no
12905
hardcode_into_libs=yes
12908
irix5* | irix6* | nonstopux*)
12910
nonstopux*) version_type=nonstopux ;;
12912
if test "$lt_cv_prog_gnu_ld" = yes; then
12920
soname_spec='${libname}${release}${shared_ext}$major'
12921
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12923
irix5* | nonstopux*)
12924
libsuff= shlibsuff=
12927
case $LD in # libtool.m4 will add one of these switches to LD
12928
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12929
libsuff= shlibsuff= libmagic=32-bit;;
12930
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12931
libsuff=32 shlibsuff=N32 libmagic=N32;;
12932
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12933
libsuff=64 shlibsuff=64 libmagic=64-bit;;
12934
*) libsuff= shlibsuff= libmagic=never-match;;
12938
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12939
shlibpath_overrides_runpath=no
12940
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12941
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12942
hardcode_into_libs=yes
12945
# No shared lib support for Linux oldld, aout, or coff.
12946
linux*oldld* | linux*aout* | linux*coff*)
12950
# This must be Linux ELF.
12951
linux* | k*bsd*-gnu)
12955
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12956
soname_spec='${libname}${release}${shared_ext}$major'
12957
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12958
shlibpath_var=LD_LIBRARY_PATH
12959
shlibpath_overrides_runpath=no
12960
# This implies no fast_install, which is unacceptable.
12961
# Some rework will be needed to allow for fast_install
12962
# before this can be enabled.
12963
hardcode_into_libs=yes
12965
# Append ld.so.conf contents to the search path
12966
if test -f /etc/ld.so.conf; then
12967
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12968
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12971
# We used to test for /lib/ld.so.1 and disable shared libraries on
12972
# powerpc, because MkLinux only supported shared libraries with the
12973
# GNU dynamic linker. Since this was broken with cross compilers,
12974
# most powerpc-linux boxes support dynamic linking these days and
12975
# people can always --disable-shared, the test was removed, and we
12976
# assume the GNU/Linux dynamic linker is in use.
12977
dynamic_linker='GNU/Linux ld.so'
12984
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12985
soname_spec='${libname}${release}${shared_ext}$major'
12986
shlibpath_var=LD_LIBRARY_PATH
12987
shlibpath_overrides_runpath=no
12988
hardcode_into_libs=yes
12989
dynamic_linker='NetBSD ld.elf_so'
12996
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12997
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12998
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12999
dynamic_linker='NetBSD (a.out) ld.so'
13001
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13002
soname_spec='${libname}${release}${shared_ext}$major'
13003
dynamic_linker='NetBSD ld.elf_so'
13005
shlibpath_var=LD_LIBRARY_PATH
13006
shlibpath_overrides_runpath=yes
13007
hardcode_into_libs=yes
13012
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13013
shlibpath_var=LD_LIBRARY_PATH
13014
shlibpath_overrides_runpath=yes
13021
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13022
soname_spec='${libname}${release}${shared_ext}$major'
13023
shlibpath_var=LD_LIBRARY_PATH
13024
shlibpath_overrides_runpath=yes
13029
sys_lib_dlsearch_path_spec="/usr/lib"
13031
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13033
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13034
*) need_version=no ;;
13036
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13037
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13038
shlibpath_var=LD_LIBRARY_PATH
13039
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13041
openbsd2.[89] | openbsd2.[89].*)
13042
shlibpath_overrides_runpath=no
13045
shlibpath_overrides_runpath=yes
13049
shlibpath_overrides_runpath=yes
13054
libname_spec='$name'
13057
library_names_spec='$libname${shared_ext} $libname.a'
13058
dynamic_linker='OS/2 ld.exe'
13059
shlibpath_var=LIBPATH
13062
osf3* | osf4* | osf5*)
13066
soname_spec='${libname}${release}${shared_ext}$major'
13067
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13068
shlibpath_var=LD_LIBRARY_PATH
13069
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13070
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13077
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13078
soname_spec='${libname}${release}${shared_ext}$major'
13079
shlibpath_var=LD_LIBRARY_PATH
13080
shlibpath_overrides_runpath=yes
13081
hardcode_into_libs=yes
13082
# ldd complains unless libraries are executable
13083
postinstall_cmds='chmod +x $lib'
13088
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13089
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13090
shlibpath_var=LD_LIBRARY_PATH
13091
shlibpath_overrides_runpath=yes
13092
if test "$with_gnu_ld" = yes; then
13100
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13101
soname_spec='${libname}${release}${shared_ext}$major'
13102
shlibpath_var=LD_LIBRARY_PATH
13103
case $host_vendor in
13105
shlibpath_overrides_runpath=no
13107
export_dynamic_flag_spec='${wl}-Blargedynsym'
13108
runpath_var=LD_RUN_PATH
13116
shlibpath_overrides_runpath=no
13117
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13123
if test -d /usr/nec ;then
13125
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13126
soname_spec='$libname${shared_ext}.$major'
13127
shlibpath_var=LD_LIBRARY_PATH
13131
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13132
version_type=freebsd-elf
13135
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13136
soname_spec='${libname}${release}${shared_ext}$major'
13137
shlibpath_var=LD_LIBRARY_PATH
13138
hardcode_into_libs=yes
13139
if test "$with_gnu_ld" = yes; then
13140
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13141
shlibpath_overrides_runpath=no
13143
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13144
shlibpath_overrides_runpath=yes
13147
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13151
sys_lib_dlsearch_path_spec='/usr/lib'
13156
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13157
soname_spec='${libname}${release}${shared_ext}$major'
13158
shlibpath_var=LD_LIBRARY_PATH
13165
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13166
echo "${ECHO_T}$dynamic_linker" >&6; }
13167
test "$dynamic_linker" = no && can_build_shared=no
13169
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13170
if test "$GCC" = yes; then
13171
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13174
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13175
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13176
hardcode_action_CXX=
13177
if test -n "$hardcode_libdir_flag_spec_CXX" || \
13178
test -n "$runpath_var_CXX" || \
13179
test "X$hardcode_automatic_CXX" = "Xyes" ; then
13181
# We can hardcode non-existant directories.
13182
if test "$hardcode_direct_CXX" != no &&
13183
# If the only mechanism to avoid hardcoding is shlibpath_var, we
13184
# have to relink, otherwise we might link with an installed library
13185
# when we should be linking with a yet-to-be-installed one
13186
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13187
test "$hardcode_minus_L_CXX" != no; then
13188
# Linking always hardcodes the temporary library directory.
13189
hardcode_action_CXX=relink
13191
# We can link without hardcoding, and we can hardcode nonexisting dirs.
13192
hardcode_action_CXX=immediate
13195
# We cannot hardcode anything, or else we can only hardcode existing
13197
hardcode_action_CXX=unsupported
13199
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13200
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13202
if test "$hardcode_action_CXX" = relink; then
13203
# Fast installation is not supported
13204
enable_fast_install=no
13205
elif test "$shlibpath_overrides_runpath" = yes ||
13206
test "$enable_shared" = no; then
13207
# Fast installation is not necessary
13208
enable_fast_install=needless
13212
# The else clause should only fire when bootstrapping the
13213
# libtool distribution, otherwise you forgot to ship ltmain.sh
13214
# with your package, and you will get complaints that there are
13215
# no rules to generate ltmain.sh.
13216
if test -f "$ltmain"; then
13217
# See if we are running on zsh, and set the options which allow our commands through
13218
# without removal of \ escapes.
13219
if test -n "${ZSH_VERSION+set}" ; then
13220
setopt NO_GLOB_SUBST
13222
# Now quote all the things that may contain metacharacters while being
13223
# careful not to overquote the AC_SUBSTed values. We take copies of the
13224
# variables and quote the copies for generation of the libtool script.
13225
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13227
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13228
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13229
deplibs_check_method reload_flag reload_cmds need_locks \
13230
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13231
lt_cv_sys_global_symbol_to_c_name_address \
13232
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13233
old_postinstall_cmds old_postuninstall_cmds \
13237
lt_prog_compiler_wl_CXX \
13238
lt_prog_compiler_pic_CXX \
13239
lt_prog_compiler_static_CXX \
13240
lt_prog_compiler_no_builtin_flag_CXX \
13241
export_dynamic_flag_spec_CXX \
13242
thread_safe_flag_spec_CXX \
13243
whole_archive_flag_spec_CXX \
13244
enable_shared_with_static_runtimes_CXX \
13245
old_archive_cmds_CXX \
13246
old_archive_from_new_cmds_CXX \
13247
predep_objects_CXX \
13248
postdep_objects_CXX \
13251
compiler_lib_search_path_CXX \
13253
archive_expsym_cmds_CXX \
13254
postinstall_cmds_CXX \
13255
postuninstall_cmds_CXX \
13256
old_archive_from_expsyms_cmds_CXX \
13257
allow_undefined_flag_CXX \
13258
no_undefined_flag_CXX \
13259
export_symbols_cmds_CXX \
13260
hardcode_libdir_flag_spec_CXX \
13261
hardcode_libdir_flag_spec_ld_CXX \
13262
hardcode_libdir_separator_CXX \
13263
hardcode_automatic_CXX \
13265
module_expsym_cmds_CXX \
13266
lt_cv_prog_compiler_c_o_CXX \
13267
exclude_expsyms_CXX \
13268
include_expsyms_CXX; do
13271
old_archive_cmds_CXX | \
13272
old_archive_from_new_cmds_CXX | \
13273
archive_cmds_CXX | \
13274
archive_expsym_cmds_CXX | \
13275
module_cmds_CXX | \
13276
module_expsym_cmds_CXX | \
13277
old_archive_from_expsyms_cmds_CXX | \
13278
export_symbols_cmds_CXX | \
13279
extract_expsyms_cmds | reload_cmds | finish_cmds | \
13280
postinstall_cmds | postuninstall_cmds | \
13281
old_postinstall_cmds | old_postuninstall_cmds | \
13282
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13283
# Double-quote double-evaled strings.
13284
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13287
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13293
*'\$0 --fallback-echo"')
13294
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13300
cat <<__EOF__ >> "$cfgfile"
13301
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13303
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13305
# Shell to use when invoking shell scripts.
13308
# Whether or not to build shared libraries.
13309
build_libtool_libs=$enable_shared
13311
# Whether or not to build static libraries.
13312
build_old_libs=$enable_static
13314
# Whether or not to add -lc for building shared libraries.
13315
build_libtool_need_lc=$archive_cmds_need_lc_CXX
13317
# Whether or not to disallow shared libs when runtime libs are static
13318
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13320
# Whether or not to optimize for fast installation.
13321
fast_install=$enable_fast_install
13324
host_alias=$host_alias
13328
# The build system.
13329
build_alias=$build_alias
13333
# An echo program that does not interpret backslashes.
13338
AR_FLAGS=$lt_AR_FLAGS
13343
# LTCC compiler flags.
13344
LTCFLAGS=$lt_LTCFLAGS
13346
# A language-specific compiler.
13347
CC=$lt_compiler_CXX
13349
# Is the compiler the GNU C compiler?
13355
# The linker used to build libraries.
13358
# Whether we need hard or soft links.
13361
# A BSD-compatible nm program.
13364
# A symbol stripping program
13367
# Used to examine libraries when file_magic_cmd begins "file"
13368
MAGIC_CMD=$MAGIC_CMD
13370
# Used on cygwin: DLL creation program.
13373
# Used on cygwin: object dumper.
13376
# Used on cygwin: assembler.
13379
# The name of the directory that contains temporary libtool files.
13382
# How to create reloadable object files.
13383
reload_flag=$lt_reload_flag
13384
reload_cmds=$lt_reload_cmds
13386
# How to pass a linker flag through the compiler.
13387
wl=$lt_lt_prog_compiler_wl_CXX
13389
# Object file suffix (normally "o").
13390
objext="$ac_objext"
13392
# Old archive suffix (normally "a").
13395
# Shared library suffix (normally ".so").
13396
shrext_cmds='$shrext_cmds'
13398
# Executable file suffix (normally "").
13401
# Additional compiler flags for building library objects.
13402
pic_flag=$lt_lt_prog_compiler_pic_CXX
13405
# What is the maximum length of a command?
13406
max_cmd_len=$lt_cv_sys_max_cmd_len
13408
# Does compiler simultaneously support -c and -o options?
13409
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13411
# Must we lock files when doing compilation?
13412
need_locks=$lt_need_locks
13414
# Do we need the lib prefix for modules?
13415
need_lib_prefix=$need_lib_prefix
13417
# Do we need a version for libraries?
13418
need_version=$need_version
13420
# Whether dlopen is supported.
13421
dlopen_support=$enable_dlopen
13423
# Whether dlopen of programs is supported.
13424
dlopen_self=$enable_dlopen_self
13426
# Whether dlopen of statically linked programs is supported.
13427
dlopen_self_static=$enable_dlopen_self_static
13429
# Compiler flag to prevent dynamic linking.
13430
link_static_flag=$lt_lt_prog_compiler_static_CXX
13432
# Compiler flag to turn off builtin functions.
13433
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13435
# Compiler flag to allow reflexive dlopens.
13436
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13438
# Compiler flag to generate shared objects directly from archives.
13439
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13441
# Compiler flag to generate thread-safe objects.
13442
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13444
# Library versioning type.
13445
version_type=$version_type
13447
# Format of library name prefix.
13448
libname_spec=$lt_libname_spec
13450
# List of archive names. First name is the real one, the rest are links.
13451
# The last name is the one that the linker finds with -lNAME.
13452
library_names_spec=$lt_library_names_spec
13454
# The coded name of the library, if different from the real name.
13455
soname_spec=$lt_soname_spec
13457
# Commands used to build and install an old-style archive.
13459
old_archive_cmds=$lt_old_archive_cmds_CXX
13460
old_postinstall_cmds=$lt_old_postinstall_cmds
13461
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13463
# Create an old-style archive from a shared archive.
13464
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13466
# Create a temporary old-style archive to link instead of a shared archive.
13467
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13469
# Commands used to build and install a shared archive.
13470
archive_cmds=$lt_archive_cmds_CXX
13471
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13472
postinstall_cmds=$lt_postinstall_cmds
13473
postuninstall_cmds=$lt_postuninstall_cmds
13475
# Commands used to build a loadable module (assumed same as above if empty)
13476
module_cmds=$lt_module_cmds_CXX
13477
module_expsym_cmds=$lt_module_expsym_cmds_CXX
13479
# Commands to strip libraries.
13480
old_striplib=$lt_old_striplib
13481
striplib=$lt_striplib
13483
# Dependencies to place before the objects being linked to create a
13485
predep_objects=$lt_predep_objects_CXX
13487
# Dependencies to place after the objects being linked to create a
13489
postdep_objects=$lt_postdep_objects_CXX
13491
# Dependencies to place before the objects being linked to create a
13493
predeps=$lt_predeps_CXX
13495
# Dependencies to place after the objects being linked to create a
13497
postdeps=$lt_postdeps_CXX
13499
# The library search path used internally by the compiler when linking
13500
# a shared library.
13501
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13503
# Method to check whether dependent libraries are shared objects.
13504
deplibs_check_method=$lt_deplibs_check_method
13506
# Command to use when deplibs_check_method == file_magic.
13507
file_magic_cmd=$lt_file_magic_cmd
13509
# Flag that allows shared libraries with undefined symbols to be built.
13510
allow_undefined_flag=$lt_allow_undefined_flag_CXX
13512
# Flag that forces no undefined symbols.
13513
no_undefined_flag=$lt_no_undefined_flag_CXX
13515
# Commands used to finish a libtool library installation in a directory.
13516
finish_cmds=$lt_finish_cmds
13518
# Same as above, but a single script fragment to be evaled but not shown.
13519
finish_eval=$lt_finish_eval
13521
# Take the output of nm and produce a listing of raw symbols and C names.
13522
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13524
# Transform the output of nm in a proper C declaration
13525
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13527
# Transform the output of nm in a C name address pair
13528
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13530
# This is the shared library runtime path variable.
13531
runpath_var=$runpath_var
13533
# This is the shared library path variable.
13534
shlibpath_var=$shlibpath_var
13536
# Is shlibpath searched before the hard-coded library search path?
13537
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13539
# How to hardcode a shared library path into an executable.
13540
hardcode_action=$hardcode_action_CXX
13542
# Whether we should hardcode library paths into libraries.
13543
hardcode_into_libs=$hardcode_into_libs
13545
# Flag to hardcode \$libdir into a binary during linking.
13546
# This must work even if \$libdir does not exist.
13547
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13549
# If ld is used when linking, flag to hardcode \$libdir into
13550
# a binary during linking. This must work even if \$libdir does
13552
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13554
# Whether we need a single -rpath flag with a separated argument.
13555
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13557
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13558
# resulting binary.
13559
hardcode_direct=$hardcode_direct_CXX
13561
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13562
# resulting binary.
13563
hardcode_minus_L=$hardcode_minus_L_CXX
13565
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13566
# the resulting binary.
13567
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13569
# Set to yes if building a shared library automatically hardcodes DIR into the library
13570
# and all subsequent libraries and executables linked against it.
13571
hardcode_automatic=$hardcode_automatic_CXX
13573
# Variables whose values should be saved in libtool wrapper scripts and
13574
# restored at relink time.
13575
variables_saved_for_relink="$variables_saved_for_relink"
13577
# Whether libtool must link a program against all its dependency libraries.
13578
link_all_deplibs=$link_all_deplibs_CXX
13580
# Compile-time system search path for libraries
13581
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13583
# Run-time system search path for libraries
13584
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13586
# Fix the shell variable \$srcfile for the compiler.
13587
fix_srcfile_path="$fix_srcfile_path_CXX"
13589
# Set to yes if exported symbols are required.
13590
always_export_symbols=$always_export_symbols_CXX
13592
# The commands to list exported symbols.
13593
export_symbols_cmds=$lt_export_symbols_cmds_CXX
13595
# The commands to extract the exported symbol list from a shared archive.
13596
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13598
# Symbols that should not be listed in the preloaded symbols.
13599
exclude_expsyms=$lt_exclude_expsyms_CXX
13601
# Symbols that must always be exported.
13602
include_expsyms=$lt_include_expsyms_CXX
13604
# ### END LIBTOOL TAG CONFIG: $tagname
13610
# If there is no Makefile yet, we rely on a make rule to execute
13611
# `config.status --recheck' to rerun these tests and create the
13612
# libtool script then.
13613
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13614
if test -f "$ltmain_in"; then
13615
test -f Makefile && make "$ltmain"
13621
ac_cpp='$CPP $CPPFLAGS'
13622
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13623
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13624
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13630
with_gnu_ldcxx=$with_gnu_ld
13631
with_gnu_ld=$lt_save_with_gnu_ld
13632
lt_cv_path_LDCXX=$lt_cv_path_LD
13633
lt_cv_path_LD=$lt_save_path_LD
13634
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13635
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13643
if test -n "$F77" && test "X$F77" != "Xno"; then
13646
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13647
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13648
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13651
archive_cmds_need_lc_F77=no
13652
allow_undefined_flag_F77=
13653
always_export_symbols_F77=no
13654
archive_expsym_cmds_F77=
13655
export_dynamic_flag_spec_F77=
13656
hardcode_direct_F77=no
13657
hardcode_libdir_flag_spec_F77=
13658
hardcode_libdir_flag_spec_ld_F77=
13659
hardcode_libdir_separator_F77=
13660
hardcode_minus_L_F77=no
13661
hardcode_automatic_F77=no
13663
module_expsym_cmds_F77=
13664
link_all_deplibs_F77=unknown
13665
old_archive_cmds_F77=$old_archive_cmds
13666
no_undefined_flag_F77=
13667
whole_archive_flag_spec_F77=
13668
enable_shared_with_static_runtimes_F77=no
13670
# Source file extension for f77 test sources.
13673
# Object file extension for compiled f77 test sources.
13677
# Code to be used in simple compile tests
13678
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13680
# Code to be used in simple link tests
13681
lt_simple_link_test_code=" program t\n end\n"
13683
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13685
# If no C compiler was specified, use CC.
13688
# If no C compiler flags were specified, use CFLAGS.
13689
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13691
# Allow CC to be a program name with arguments.
13695
# save warnings/boilerplate of simple test code
13696
ac_outfile=conftest.$ac_objext
13697
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13698
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13699
_lt_compiler_boilerplate=`cat conftest.err`
13702
ac_outfile=conftest.$ac_objext
13703
printf "$lt_simple_link_test_code" >conftest.$ac_ext
13704
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13705
_lt_linker_boilerplate=`cat conftest.err`
13709
# Allow CC to be a program name with arguments.
13714
for cc_temp in $compiler""; do
13716
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13717
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13722
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13725
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13726
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13727
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
13728
echo "${ECHO_T}$can_build_shared" >&6; }
13730
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13731
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13732
test "$can_build_shared" = "no" && enable_shared=no
13734
# On AIX, shared libraries and static libraries use the same namespace, and
13735
# are all built from PIC.
13738
test "$enable_shared" = yes && enable_static=no
13739
if test -n "$RANLIB"; then
13740
archive_cmds="$archive_cmds~\$RANLIB \$lib"
13741
postinstall_cmds='$RANLIB $lib'
13745
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13746
test "$enable_shared" = yes && enable_static=no
13750
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
13751
echo "${ECHO_T}$enable_shared" >&6; }
13753
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13754
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13755
# Make sure either enable_shared or enable_static is yes.
13756
test "$enable_shared" = yes || enable_static=yes
13757
{ echo "$as_me:$LINENO: result: $enable_static" >&5
13758
echo "${ECHO_T}$enable_static" >&6; }
13763
lt_prog_compiler_wl_F77=
13764
lt_prog_compiler_pic_F77=
13765
lt_prog_compiler_static_F77=
13767
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13768
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13770
if test "$GCC" = yes; then
13771
lt_prog_compiler_wl_F77='-Wl,'
13772
lt_prog_compiler_static_F77='-static'
13776
# All AIX code is PIC.
13777
if test "$host_cpu" = ia64; then
13778
# AIX 5 now supports IA64 processor
13779
lt_prog_compiler_static_F77='-Bstatic'
13784
# FIXME: we need at least 68020 code to build shared libraries, but
13785
# adding the `-m68020' flag to GCC prevents building anything better,
13787
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13790
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13791
# PIC is the default for these OSes.
13794
mingw* | pw32* | os2*)
13795
# This hack is so that the source file can tell whether it is being
13796
# built for inclusion in a dll (and should export symbols for example).
13797
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13800
darwin* | rhapsody*)
13801
# PIC is the default on this platform
13802
# Common symbols not allowed in MH_DYLIB files
13803
lt_prog_compiler_pic_F77='-fno-common'
13807
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
13808
# Instead, we relocate shared libraries at runtime.
13812
# Just because we use GCC doesn't mean we suddenly get shared libraries
13813
# on systems that don't support them.
13814
lt_prog_compiler_can_build_shared_F77=no
13819
if test -d /usr/nec; then
13820
lt_prog_compiler_pic_F77=-Kconform_pic
13825
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13826
# not for PA HP-UX.
13832
lt_prog_compiler_pic_F77='-fPIC'
13838
lt_prog_compiler_pic_F77='-fPIC'
13842
# PORTME Check for flag to pass linker flags through the system compiler.
13845
lt_prog_compiler_wl_F77='-Wl,'
13846
if test "$host_cpu" = ia64; then
13847
# AIX 5 now supports IA64 processor
13848
lt_prog_compiler_static_F77='-Bstatic'
13850
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13854
# PIC is the default on this platform
13855
# Common symbols not allowed in MH_DYLIB files
13856
case $cc_basename in
13858
lt_prog_compiler_pic_F77='-qnocommon'
13859
lt_prog_compiler_wl_F77='-Wl,'
13864
mingw* | pw32* | os2*)
13865
# This hack is so that the source file can tell whether it is being
13866
# built for inclusion in a dll (and should export symbols for example).
13867
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13870
hpux9* | hpux10* | hpux11*)
13871
lt_prog_compiler_wl_F77='-Wl,'
13872
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13873
# not for PA HP-UX.
13879
lt_prog_compiler_pic_F77='+Z'
13882
# Is there a better lt_prog_compiler_static that works with the bundled CC?
13883
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13886
irix5* | irix6* | nonstopux*)
13887
lt_prog_compiler_wl_F77='-Wl,'
13888
# PIC (with -KPIC) is the default.
13889
lt_prog_compiler_static_F77='-non_shared'
13893
lt_prog_compiler_pic_F77='-KPIC'
13894
lt_prog_compiler_static_F77='-Bstatic'
13897
linux* | k*bsd*-gnu)
13898
case $cc_basename in
13900
lt_prog_compiler_wl_F77='-Wl,'
13901
lt_prog_compiler_pic_F77='-KPIC'
13902
lt_prog_compiler_static_F77='-static'
13904
pgcc* | pgf77* | pgf90* | pgf95*)
13905
# Portland Group compilers (*not* the Pentium gcc compiler,
13906
# which looks to be a dead project)
13907
lt_prog_compiler_wl_F77='-Wl,'
13908
lt_prog_compiler_pic_F77='-fpic'
13909
lt_prog_compiler_static_F77='-Bstatic'
13912
lt_prog_compiler_wl_F77='-Wl,'
13913
# All Alpha code is PIC.
13914
lt_prog_compiler_static_F77='-non_shared'
13919
osf3* | osf4* | osf5*)
13920
lt_prog_compiler_wl_F77='-Wl,'
13921
# All OSF/1 code is PIC.
13922
lt_prog_compiler_static_F77='-non_shared'
13926
lt_prog_compiler_pic_F77='-KPIC'
13927
lt_prog_compiler_static_F77='-Bstatic'
13928
case $cc_basename in
13929
f77* | f90* | f95*)
13930
lt_prog_compiler_wl_F77='-Qoption ld ';;
13932
lt_prog_compiler_wl_F77='-Wl,';;
13937
lt_prog_compiler_wl_F77='-Qoption ld '
13938
lt_prog_compiler_pic_F77='-PIC'
13939
lt_prog_compiler_static_F77='-Bstatic'
13942
sysv4 | sysv4.2uw2* | sysv4.3*)
13943
lt_prog_compiler_wl_F77='-Wl,'
13944
lt_prog_compiler_pic_F77='-KPIC'
13945
lt_prog_compiler_static_F77='-Bstatic'
13949
if test -d /usr/nec ;then
13950
lt_prog_compiler_pic_F77='-Kconform_pic'
13951
lt_prog_compiler_static_F77='-Bstatic'
13955
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13956
lt_prog_compiler_wl_F77='-Wl,'
13957
lt_prog_compiler_pic_F77='-KPIC'
13958
lt_prog_compiler_static_F77='-Bstatic'
13962
lt_prog_compiler_wl_F77='-Wl,'
13963
lt_prog_compiler_can_build_shared_F77=no
13967
lt_prog_compiler_pic_F77='-pic'
13968
lt_prog_compiler_static_F77='-Bstatic'
13972
lt_prog_compiler_can_build_shared_F77=no
13977
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13978
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13981
# Check to make sure the PIC flag actually works.
13983
if test -n "$lt_prog_compiler_pic_F77"; then
13985
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13986
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13987
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13988
echo $ECHO_N "(cached) $ECHO_C" >&6
13990
lt_prog_compiler_pic_works_F77=no
13991
ac_outfile=conftest.$ac_objext
13992
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13993
lt_compiler_flag="$lt_prog_compiler_pic_F77"
13994
# Insert the option either (1) after the last *FLAGS variable, or
13995
# (2) before a word containing "conftest.", or (3) at the end.
13996
# Note that $ac_compile itself does not contain backslashes and begins
13997
# with a dollar sign (not a hyphen), so the echo should work correctly.
13998
# The option is referenced via a variable to avoid confusing sed.
13999
lt_compile=`echo "$ac_compile" | $SED \
14000
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14001
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14002
-e 's:$: $lt_compiler_flag:'`
14003
(eval echo "\"\$as_me:14003: $lt_compile\"" >&5)
14004
(eval "$lt_compile" 2>conftest.err)
14006
cat conftest.err >&5
14007
echo "$as_me:14007: \$? = $ac_status" >&5
14008
if (exit $ac_status) && test -s "$ac_outfile"; then
14009
# The compiler can only warn and ignore the option if not recognized
14010
# So say no if there are warnings other than the usual output.
14011
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14012
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14013
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14014
lt_prog_compiler_pic_works_F77=yes
14020
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14021
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14023
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14024
case $lt_prog_compiler_pic_F77 in
14026
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14029
lt_prog_compiler_pic_F77=
14030
lt_prog_compiler_can_build_shared_F77=no
14035
# For platforms which do not support PIC, -DPIC is meaningless:
14037
lt_prog_compiler_pic_F77=
14040
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14045
# Check to make sure the static flag actually works.
14047
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14048
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14049
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14050
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14051
echo $ECHO_N "(cached) $ECHO_C" >&6
14053
lt_prog_compiler_static_works_F77=no
14054
save_LDFLAGS="$LDFLAGS"
14055
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14056
printf "$lt_simple_link_test_code" > conftest.$ac_ext
14057
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14058
# The linker can only warn and ignore the option if not recognized
14059
# So say no if there are warnings
14060
if test -s conftest.err; then
14061
# Append any errors to the config.log.
14062
cat conftest.err 1>&5
14063
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14064
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14065
if diff conftest.exp conftest.er2 >/dev/null; then
14066
lt_prog_compiler_static_works_F77=yes
14069
lt_prog_compiler_static_works_F77=yes
14073
LDFLAGS="$save_LDFLAGS"
14076
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14077
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14079
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14082
lt_prog_compiler_static_F77=
14086
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14087
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14088
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14089
echo $ECHO_N "(cached) $ECHO_C" >&6
14091
lt_cv_prog_compiler_c_o_F77=no
14092
$rm -r conftest 2>/dev/null
14096
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14098
lt_compiler_flag="-o out/conftest2.$ac_objext"
14099
# Insert the option either (1) after the last *FLAGS variable, or
14100
# (2) before a word containing "conftest.", or (3) at the end.
14101
# Note that $ac_compile itself does not contain backslashes and begins
14102
# with a dollar sign (not a hyphen), so the echo should work correctly.
14103
lt_compile=`echo "$ac_compile" | $SED \
14104
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14105
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14106
-e 's:$: $lt_compiler_flag:'`
14107
(eval echo "\"\$as_me:14107: $lt_compile\"" >&5)
14108
(eval "$lt_compile" 2>out/conftest.err)
14110
cat out/conftest.err >&5
14111
echo "$as_me:14111: \$? = $ac_status" >&5
14112
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14114
# The compiler can only warn and ignore the option if not recognized
14115
# So say no if there are warnings
14116
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14117
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14118
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14119
lt_cv_prog_compiler_c_o_F77=yes
14124
# SGI C++ compiler will create directory out/ii_files/ for
14125
# template instantiation
14126
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14127
$rm out/* && rmdir out
14133
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14134
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14137
hard_links="nottested"
14138
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14139
# do not overwrite the value of need_locks provided by the user
14140
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14141
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14144
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14146
ln conftest.a conftest.b 2>&5 || hard_links=no
14147
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14148
{ echo "$as_me:$LINENO: result: $hard_links" >&5
14149
echo "${ECHO_T}$hard_links" >&6; }
14150
if test "$hard_links" = no; then
14151
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14152
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14159
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14160
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14163
allow_undefined_flag_F77=
14164
enable_shared_with_static_runtimes_F77=no
14166
archive_expsym_cmds_F77=
14167
old_archive_From_new_cmds_F77=
14168
old_archive_from_expsyms_cmds_F77=
14169
export_dynamic_flag_spec_F77=
14170
whole_archive_flag_spec_F77=
14171
thread_safe_flag_spec_F77=
14172
hardcode_libdir_flag_spec_F77=
14173
hardcode_libdir_flag_spec_ld_F77=
14174
hardcode_libdir_separator_F77=
14175
hardcode_direct_F77=no
14176
hardcode_minus_L_F77=no
14177
hardcode_shlibpath_var_F77=unsupported
14178
link_all_deplibs_F77=unknown
14179
hardcode_automatic_F77=no
14181
module_expsym_cmds_F77=
14182
always_export_symbols_F77=no
14183
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14184
# include_expsyms should be a list of space-separated symbols to be *always*
14185
# included in the symbol list
14186
include_expsyms_F77=
14187
# exclude_expsyms can be an extended regexp of symbols to exclude
14188
# it will be wrapped by ` (' and `)$', so one must not match beginning or
14189
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14190
# as well as any symbol that contains `d'.
14191
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14192
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14193
# platforms (ab)use it in PIC code, but their linkers get confused if
14194
# the symbol is explicitly referenced. Since portable code cannot
14195
# rely on this symbol name, it's probably fine to never include it in
14196
# preloaded symbol tables.
14197
extract_expsyms_cmds=
14198
# Just being paranoid about ensuring that cc_basename is set.
14199
for cc_temp in $compiler""; do
14201
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14202
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14207
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14210
cygwin* | mingw* | pw32*)
14211
# FIXME: the MSVC++ port hasn't been tested in a loooong time
14212
# When not using gcc, we currently assume that we are using
14213
# Microsoft Visual C++.
14214
if test "$GCC" != yes; then
14219
# we just hope/assume this is gcc and not c89 (= MSVC++)
14228
if test "$with_gnu_ld" = yes; then
14229
# If archive_cmds runs LD, not CC, wlarc should be empty
14232
# Set some defaults for GNU ld with shared library support. These
14233
# are reset later if shared libraries are not supported. Putting them
14234
# here allows them to be overridden if necessary.
14235
runpath_var=LD_RUN_PATH
14236
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14237
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14238
# ancient GNU ld didn't support --whole-archive et. al.
14239
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14240
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14242
whole_archive_flag_spec_F77=
14244
supports_anon_versioning=no
14245
case `$LD -v 2>/dev/null` in
14246
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14247
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14248
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14249
*\ 2.11.*) ;; # other 2.11 versions
14250
*) supports_anon_versioning=yes ;;
14253
# See if GNU ld supports shared libraries.
14255
aix3* | aix4* | aix5*)
14256
# On AIX/PPC, the GNU linker is very broken
14257
if test "$host_cpu" != ia64; then
14261
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14262
*** to be unable to reliably create shared libraries on AIX.
14263
*** Therefore, libtool is disabling shared libraries support. If you
14264
*** really care for shared libraries, you may want to modify your PATH
14265
*** so that a non-GNU linker is found, and then restart.
14272
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)'
14273
hardcode_libdir_flag_spec_F77='-L$libdir'
14274
hardcode_minus_L_F77=yes
14276
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14277
# that the semantics of dynamic libraries on AmigaOS, at least up
14278
# to version 4, is to share data among multiple programs linked
14279
# with the same dynamic library. Since this doesn't match the
14280
# behavior of shared libraries on other platforms, we can't use
14286
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14287
allow_undefined_flag_F77=unsupported
14288
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14289
# support --undefined. This deserves some investigation. FIXME
14290
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14296
cygwin* | mingw* | pw32*)
14297
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14298
# as there is no search path for DLLs.
14299
hardcode_libdir_flag_spec_F77='-L$libdir'
14300
allow_undefined_flag_F77=unsupported
14301
always_export_symbols_F77=no
14302
enable_shared_with_static_runtimes_F77=yes
14303
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14305
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14306
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14307
# If the export-symbols file already is a .def file (1st line
14308
# is EXPORTS), use it as is; otherwise, prepend...
14309
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14310
cp $export_symbols $output_objdir/$soname.def;
14312
echo EXPORTS > $output_objdir/$soname.def;
14313
cat $export_symbols >> $output_objdir/$soname.def;
14315
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14322
hardcode_direct_F77=no
14323
hardcode_shlibpath_var_F77=no
14324
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14325
export_dynamic_flag_spec_F77='${wl}-E'
14326
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14327
# Instead, shared libraries are loaded at an image base (0x10000000 by
14328
# default) and relocated if they conflict, which is a slow very memory
14329
# consuming and fragmenting process. To avoid this, we pick a random,
14330
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14331
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
14332
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'
14333
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'
14336
linux* | k*bsd*-gnu)
14337
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14339
case $cc_basename,$host_cpu in
14340
pgcc*) # Portland Group C compiler
14341
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'
14342
tmp_addflag=' $pic_flag'
14344
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14345
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'
14346
tmp_addflag=' $pic_flag -Mnomain' ;;
14347
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14348
tmp_addflag=' -i_dynamic' ;;
14349
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14350
tmp_addflag=' -i_dynamic -nofor_main' ;;
14351
ifc* | ifort*) # Intel Fortran compiler
14352
tmp_addflag=' -nofor_main' ;;
14354
archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14356
if test $supports_anon_versioning = yes; then
14357
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14358
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14359
$echo "local: *; };" >> $output_objdir/$libname.ver~
14360
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14362
link_all_deplibs_F77=no
14368
netbsd* | netbsdelf*-gnu)
14369
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14370
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14373
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14374
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14379
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14383
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14384
*** create shared libraries on Solaris systems. Therefore, libtool
14385
*** is disabling shared libraries support. We urge you to upgrade GNU
14386
*** binutils to release 2.9.1 or newer. Another option is to modify
14387
*** your PATH or compiler configuration so that the native linker is
14388
*** used, and then restart.
14391
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14392
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14393
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14399
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14400
case `$LD -v 2>&1` in
14401
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14405
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14406
*** reliably create shared libraries on SCO systems. Therefore, libtool
14407
*** is disabling shared libraries support. We urge you to upgrade GNU
14408
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14409
*** your PATH or compiler configuration so that the native linker is
14410
*** used, and then restart.
14415
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14416
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14417
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14418
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14427
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14429
hardcode_direct_F77=yes
14430
hardcode_shlibpath_var_F77=no
14434
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14435
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14436
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14443
if test "$ld_shlibs_F77" = no; then
14445
hardcode_libdir_flag_spec_F77=
14446
export_dynamic_flag_spec_F77=
14447
whole_archive_flag_spec_F77=
14450
# PORTME fill in a description of your system's linker (not GNU ld)
14453
allow_undefined_flag_F77=unsupported
14454
always_export_symbols_F77=yes
14455
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'
14456
# Note: this linker hardcodes the directories in LIBPATH if there
14457
# are no directories specified by -L.
14458
hardcode_minus_L_F77=yes
14459
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14460
# Neither direct hardcoding nor static linking is supported with a
14462
hardcode_direct_F77=unsupported
14467
if test "$host_cpu" = ia64; then
14468
# On IA64, the linker does run time linking by default, so we don't
14469
# have to do anything special.
14470
aix_use_runtimelinking=no
14471
exp_sym_flag='-Bexport'
14474
# If we're using GNU nm, then we don't want the "-C" option.
14475
# -C means demangle to AIX nm, but means don't demangle with GNU nm
14476
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14477
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'
14479
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'
14481
aix_use_runtimelinking=no
14483
# Test if we are trying to use run time linking or normal
14484
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14485
# need to do runtime linking.
14486
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14487
for ld_flag in $LDFLAGS; do
14488
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14489
aix_use_runtimelinking=yes
14496
exp_sym_flag='-bexport'
14497
no_entry_flag='-bnoentry'
14500
# When large executables or shared objects are built, AIX ld can
14501
# have problems creating the table of contents. If linking a library
14502
# or program results in "error TOC overflow" add -mminimal-toc to
14503
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14504
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14506
archive_cmds_F77=''
14507
hardcode_direct_F77=yes
14508
hardcode_libdir_separator_F77=':'
14509
link_all_deplibs_F77=yes
14511
if test "$GCC" = yes; then
14512
case $host_os in aix4.[012]|aix4.[012].*)
14513
# We only want to do this on AIX 4.2 and lower, the check
14514
# below for broken collect2 doesn't work under 4.3+
14515
collect2name=`${CC} -print-prog-name=collect2`
14516
if test -f "$collect2name" && \
14517
strings "$collect2name" | grep resolve_lib_name >/dev/null
14519
# We have reworked collect2
14520
hardcode_direct_F77=yes
14522
# We have old collect2
14523
hardcode_direct_F77=unsupported
14524
# It fails to find uninstalled libraries when the uninstalled
14525
# path is not listed in the libpath. Setting hardcode_minus_L
14526
# to unsupported forces relinking
14527
hardcode_minus_L_F77=yes
14528
hardcode_libdir_flag_spec_F77='-L$libdir'
14529
hardcode_libdir_separator_F77=
14533
shared_flag='-shared'
14534
if test "$aix_use_runtimelinking" = yes; then
14535
shared_flag="$shared_flag "'${wl}-G'
14539
if test "$host_cpu" = ia64; then
14540
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14541
# chokes on -Wl,-G. The following line is correct:
14544
if test "$aix_use_runtimelinking" = yes; then
14545
shared_flag='${wl}-G'
14547
shared_flag='${wl}-bM:SRE'
14552
# It seems that -bexpall does not export symbols beginning with
14553
# underscore (_), so it is better to generate a list of symbols to export.
14554
always_export_symbols_F77=yes
14555
if test "$aix_use_runtimelinking" = yes; then
14556
# Warning - without using the other runtime loading flags (-brtl),
14557
# -berok will link without error, but may produce a broken library.
14558
allow_undefined_flag_F77='-berok'
14559
# Determine the default libpath from the value encoded in an empty executable.
14560
cat >conftest.$ac_ext <<_ACEOF
14565
rm -f conftest.$ac_objext conftest$ac_exeext
14566
if { (ac_try="$ac_link"
14567
case "(($ac_try" in
14568
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14569
*) ac_try_echo=$ac_try;;
14571
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14572
(eval "$ac_link") 2>conftest.er1
14574
grep -v '^ *+' conftest.er1 >conftest.err
14576
cat conftest.err >&5
14577
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578
(exit $ac_status); } && {
14579
test -z "$ac_f77_werror_flag" ||
14580
test ! -s conftest.err
14581
} && test -s conftest$ac_exeext &&
14582
$as_test_x conftest$ac_exeext; then
14584
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14586
# Check for a 64-bit object if we didn't find anything.
14587
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14590
echo "$as_me: failed program was:" >&5
14591
sed 's/^/| /' conftest.$ac_ext >&5
14596
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14597
conftest$ac_exeext conftest.$ac_ext
14598
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14600
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14601
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"
14603
if test "$host_cpu" = ia64; then
14604
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14605
allow_undefined_flag_F77="-z nodefs"
14606
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"
14608
# Determine the default libpath from the value encoded in an empty executable.
14609
cat >conftest.$ac_ext <<_ACEOF
14614
rm -f conftest.$ac_objext conftest$ac_exeext
14615
if { (ac_try="$ac_link"
14616
case "(($ac_try" in
14617
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14618
*) ac_try_echo=$ac_try;;
14620
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14621
(eval "$ac_link") 2>conftest.er1
14623
grep -v '^ *+' conftest.er1 >conftest.err
14625
cat conftest.err >&5
14626
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627
(exit $ac_status); } && {
14628
test -z "$ac_f77_werror_flag" ||
14629
test ! -s conftest.err
14630
} && test -s conftest$ac_exeext &&
14631
$as_test_x conftest$ac_exeext; then
14633
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14635
# Check for a 64-bit object if we didn't find anything.
14636
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14639
echo "$as_me: failed program was:" >&5
14640
sed 's/^/| /' conftest.$ac_ext >&5
14645
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14646
conftest$ac_exeext conftest.$ac_ext
14647
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14649
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14650
# Warning - without using the other run time loading flags,
14651
# -berok will link without error, but may produce a broken library.
14652
no_undefined_flag_F77=' ${wl}-bernotok'
14653
allow_undefined_flag_F77=' ${wl}-berok'
14654
# Exported symbols can be pulled into shared objects from archives
14655
whole_archive_flag_spec_F77='$convenience'
14656
archive_cmds_need_lc_F77=yes
14657
# This is similar to how AIX traditionally builds its shared libraries.
14658
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'
14664
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)'
14665
hardcode_libdir_flag_spec_F77='-L$libdir'
14666
hardcode_minus_L_F77=yes
14667
# see comment about different semantics on the GNU ld section
14672
export_dynamic_flag_spec_F77=-rdynamic
14675
cygwin* | mingw* | pw32*)
14676
# When not using gcc, we currently assume that we are using
14677
# Microsoft Visual C++.
14678
# hardcode_libdir_flag_spec is actually meaningless, as there is
14679
# no search path for DLLs.
14680
hardcode_libdir_flag_spec_F77=' '
14681
allow_undefined_flag_F77=unsupported
14682
# Tell ltmain to make .lib files, not .a files.
14684
# Tell ltmain to make .dll files, not .so files.
14686
# FIXME: Setting linknames here is a bad hack.
14687
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14688
# The linker will automatically build a .lib file if we build a DLL.
14689
old_archive_From_new_cmds_F77='true'
14690
# FIXME: Should let the user specify the lib program.
14691
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14692
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14693
enable_shared_with_static_runtimes_F77=yes
14696
darwin* | rhapsody*)
14698
rhapsody* | darwin1.[012])
14699
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14702
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14703
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14705
case ${MACOSX_DEPLOYMENT_TARGET} in
14707
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14710
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14716
archive_cmds_need_lc_F77=no
14717
hardcode_direct_F77=no
14718
hardcode_automatic_F77=yes
14719
hardcode_shlibpath_var_F77=unsupported
14720
whole_archive_flag_spec_F77=''
14721
link_all_deplibs_F77=yes
14722
if test "$GCC" = yes ; then
14723
output_verbose_link_cmd='echo'
14724
archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14725
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14726
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14727
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14728
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}'
14730
case $cc_basename in
14732
output_verbose_link_cmd='echo'
14733
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14734
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14735
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14736
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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14737
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}'
14747
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14748
hardcode_libdir_flag_spec_F77='-L$libdir'
14749
hardcode_shlibpath_var_F77=no
14756
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14757
# support. Future versions do this automatically, but an explicit c++rt0.o
14758
# does not break anything, and helps significantly (at the cost of a little
14761
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14762
hardcode_libdir_flag_spec_F77='-R$libdir'
14763
hardcode_direct_F77=yes
14764
hardcode_shlibpath_var_F77=no
14767
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
14769
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14770
hardcode_direct_F77=yes
14771
hardcode_minus_L_F77=yes
14772
hardcode_shlibpath_var_F77=no
14775
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14776
freebsd* | dragonfly*)
14777
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14778
hardcode_libdir_flag_spec_F77='-R$libdir'
14779
hardcode_direct_F77=yes
14780
hardcode_shlibpath_var_F77=no
14784
if test "$GCC" = yes; then
14785
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'
14787
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'
14789
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14790
hardcode_libdir_separator_F77=:
14791
hardcode_direct_F77=yes
14793
# hardcode_minus_L: Not really in the search PATH,
14794
# but as the default location of the library.
14795
hardcode_minus_L_F77=yes
14796
export_dynamic_flag_spec_F77='${wl}-E'
14800
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14801
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14803
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14805
if test "$with_gnu_ld" = no; then
14806
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14807
hardcode_libdir_separator_F77=:
14809
hardcode_direct_F77=yes
14810
export_dynamic_flag_spec_F77='${wl}-E'
14812
# hardcode_minus_L: Not really in the search PATH,
14813
# but as the default location of the library.
14814
hardcode_minus_L_F77=yes
14819
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14822
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14825
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14828
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14834
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14837
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14840
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14844
if test "$with_gnu_ld" = no; then
14845
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14846
hardcode_libdir_separator_F77=:
14850
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14851
hardcode_direct_F77=no
14852
hardcode_shlibpath_var_F77=no
14855
hardcode_direct_F77=yes
14856
export_dynamic_flag_spec_F77='${wl}-E'
14858
# hardcode_minus_L: Not really in the search PATH,
14859
# but as the default location of the library.
14860
hardcode_minus_L_F77=yes
14866
irix5* | irix6* | nonstopux*)
14867
if test "$GCC" = yes; then
14868
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'
14870
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'
14871
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14873
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14874
hardcode_libdir_separator_F77=:
14875
link_all_deplibs_F77=yes
14878
netbsd* | netbsdelf*-gnu)
14879
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14880
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14882
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14884
hardcode_libdir_flag_spec_F77='-R$libdir'
14885
hardcode_direct_F77=yes
14886
hardcode_shlibpath_var_F77=no
14890
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14891
hardcode_direct_F77=yes
14892
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14893
hardcode_libdir_separator_F77=:
14894
hardcode_shlibpath_var_F77=no
14898
hardcode_direct_F77=yes
14899
hardcode_shlibpath_var_F77=no
14900
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14901
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14902
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14903
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14904
export_dynamic_flag_spec_F77='${wl}-E'
14907
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14908
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14909
hardcode_libdir_flag_spec_F77='-R$libdir'
14912
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14913
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14920
hardcode_libdir_flag_spec_F77='-L$libdir'
14921
hardcode_minus_L_F77=yes
14922
allow_undefined_flag_F77=unsupported
14923
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'
14924
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14928
if test "$GCC" = yes; then
14929
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14930
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'
14932
allow_undefined_flag_F77=' -expect_unresolved \*'
14933
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'
14935
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14936
hardcode_libdir_separator_F77=:
14939
osf4* | osf5*) # as osf3* with the addition of -msym flag
14940
if test "$GCC" = yes; then
14941
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14942
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'
14943
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14945
allow_undefined_flag_F77=' -expect_unresolved \*'
14946
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'
14947
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~
14948
$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'
14950
# Both c and cxx compiler support -rpath directly
14951
hardcode_libdir_flag_spec_F77='-rpath $libdir'
14953
hardcode_libdir_separator_F77=:
14957
no_undefined_flag_F77=' -z text'
14958
if test "$GCC" = yes; then
14960
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14961
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14962
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14965
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14966
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14967
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14969
hardcode_libdir_flag_spec_F77='-R$libdir'
14970
hardcode_shlibpath_var_F77=no
14972
solaris2.[0-5] | solaris2.[0-5].*) ;;
14974
# The compiler driver will combine linker options so we
14975
# cannot just pass the convience library names through
14976
# without $wl, iff we do not link with $LD.
14977
# Luckily, gcc supports the same syntax we need for Sun Studio.
14978
# Supported since Solaris 2.6 (maybe 2.5.1?)
14981
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14983
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14986
link_all_deplibs_F77=yes
14990
if test "x$host_vendor" = xsequent; then
14991
# Use $CC to link under sequent, because it throws in some extra .o
14992
# files that make .init and .fini sections work.
14993
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14995
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14997
hardcode_libdir_flag_spec_F77='-L$libdir'
14998
hardcode_direct_F77=yes
14999
hardcode_minus_L_F77=yes
15000
hardcode_shlibpath_var_F77=no
15004
case $host_vendor in
15006
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15007
hardcode_direct_F77=yes # is this really true???
15010
## LD is ld it makes a PLAMLIB
15011
## CC just makes a GrossModule.
15012
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15013
reload_cmds_F77='$CC -r -o $output$reload_objs'
15014
hardcode_direct_F77=no
15017
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15018
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15021
runpath_var='LD_RUN_PATH'
15022
hardcode_shlibpath_var_F77=no
15026
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15027
hardcode_shlibpath_var_F77=no
15028
export_dynamic_flag_spec_F77='-Bexport'
15032
if test -d /usr/nec; then
15033
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15034
hardcode_shlibpath_var_F77=no
15035
runpath_var=LD_RUN_PATH
15036
hardcode_runpath_var=yes
15041
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15042
no_undefined_flag_F77='${wl}-z,text'
15043
archive_cmds_need_lc_F77=no
15044
hardcode_shlibpath_var_F77=no
15045
runpath_var='LD_RUN_PATH'
15047
if test "$GCC" = yes; then
15048
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15049
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15051
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15052
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15056
sysv5* | sco3.2v5* | sco5v6*)
15057
# Note: We can NOT use -z defs as we might desire, because we do not
15058
# link with -lc, and that would cause any symbols used from libc to
15059
# always be unresolved, which means just about no library would
15060
# ever link correctly. If we're not using GNU ld we use -z text
15061
# though, which does catch some bad symbols but isn't as heavy-handed
15063
no_undefined_flag_F77='${wl}-z,text'
15064
allow_undefined_flag_F77='${wl}-z,nodefs'
15065
archive_cmds_need_lc_F77=no
15066
hardcode_shlibpath_var_F77=no
15067
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15068
hardcode_libdir_separator_F77=':'
15069
link_all_deplibs_F77=yes
15070
export_dynamic_flag_spec_F77='${wl}-Bexport'
15071
runpath_var='LD_RUN_PATH'
15073
if test "$GCC" = yes; then
15074
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15075
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15077
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15078
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15083
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15084
hardcode_libdir_flag_spec_F77='-L$libdir'
15085
hardcode_shlibpath_var_F77=no
15094
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15095
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15096
test "$ld_shlibs_F77" = no && can_build_shared=no
15099
# Do we need to explicitly link libc?
15101
case "x$archive_cmds_need_lc_F77" in
15103
# Assume -lc should be added
15104
archive_cmds_need_lc_F77=yes
15106
if test "$enable_shared" = yes && test "$GCC" = yes; then
15107
case $archive_cmds_F77 in
15109
# FIXME: we may have to deal with multi-command sequences.
15112
# Test whether the compiler implicitly links with -lc since on some
15113
# systems, -lgcc has to come before -lc. If gcc already passes -lc
15114
# to ld, don't add -lc before -lgcc.
15115
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15116
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15118
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15120
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15121
(eval $ac_compile) 2>&5
15123
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124
(exit $ac_status); } 2>conftest.err; then
15127
libobjs=conftest.$ac_objext
15129
wl=$lt_prog_compiler_wl_F77
15130
pic_flag=$lt_prog_compiler_pic_F77
15136
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15137
allow_undefined_flag_F77=
15138
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15139
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15141
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142
(exit $ac_status); }
15144
archive_cmds_need_lc_F77=no
15146
archive_cmds_need_lc_F77=yes
15148
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15150
cat conftest.err 1>&5
15153
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15154
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15161
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15162
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15163
library_names_spec=
15164
libname_spec='lib$name'
15168
postuninstall_cmds=
15172
shlibpath_overrides_runpath=unknown
15174
dynamic_linker="$host_os ld.so"
15175
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15176
if test "$GCC" = yes; then
15177
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15178
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15179
# if the path contains ";" then we assume it to be the separator
15180
# otherwise default to the standard path separator (i.e. ":") - it is
15181
# assumed that no part of a normal pathname contains ";" but that should
15182
# okay in the real world where ";" in dirpaths is itself problematic.
15183
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15185
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15188
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15190
need_lib_prefix=unknown
15191
hardcode_into_libs=no
15193
# when you set need_version to no, make sure it does not cause -set_version
15194
# flags to be left without arguments
15195
need_version=unknown
15200
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15201
shlibpath_var=LIBPATH
15203
# AIX 3 has no versioning support, so we append a major version to the name.
15204
soname_spec='${libname}${release}${shared_ext}$major'
15211
hardcode_into_libs=yes
15212
if test "$host_cpu" = ia64; then
15213
# AIX 5 supports IA64
15214
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15215
shlibpath_var=LD_LIBRARY_PATH
15217
# With GCC up to 2.95.x, collect2 would create an import file
15218
# for dependence libraries. The import file would start with
15219
# the line `#! .'. This would cause the generated library to
15220
# depend on `.', always an invalid library. This was fixed in
15221
# development snapshots of GCC prior to 3.0.
15223
aix4 | aix4.[01] | aix4.[01].*)
15224
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15226
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15229
can_build_shared=no
15233
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15234
# soname into executable. Probably we can add versioning support to
15235
# collect2, so additional links can be useful in future.
15236
if test "$aix_use_runtimelinking" = yes; then
15237
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
15238
# instead of lib<name>.a to let people know that these are not
15239
# typical AIX shared libraries.
15240
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15242
# We preserve .a as extension for shared libraries through AIX4.2
15243
# and later when we are not doing run time linking.
15244
library_names_spec='${libname}${release}.a $libname.a'
15245
soname_spec='${libname}${release}${shared_ext}$major'
15247
shlibpath_var=LIBPATH
15252
library_names_spec='$libname.ixlibrary $libname.a'
15253
# Create ${libname}_ixlibrary.a entries in /sys/libs.
15254
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'
15258
library_names_spec='${libname}${shared_ext}'
15259
dynamic_linker="$host_os ld.so"
15260
shlibpath_var=LIBRARY_PATH
15266
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15267
soname_spec='${libname}${release}${shared_ext}$major'
15268
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15269
shlibpath_var=LD_LIBRARY_PATH
15270
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15271
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15272
# the default ld.so.conf also contains /usr/contrib/lib and
15273
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15274
# libtool to hard-code these into programs
15277
cygwin* | mingw* | pw32*)
15278
version_type=windows
15283
case $GCC,$host_os in
15284
yes,cygwin* | yes,mingw* | yes,pw32*)
15285
library_names_spec='$libname.dll.a'
15286
# DLL is installed to $(libdir)/../bin by postinstall_cmds
15287
postinstall_cmds='base_file=`basename \${file}`~
15288
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15289
dldir=$destdir/`dirname \$dlpath`~
15290
test -d \$dldir || mkdir -p \$dldir~
15291
$install_prog $dir/$dlname \$dldir/$dlname~
15292
chmod a+x \$dldir/$dlname'
15293
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15294
dlpath=$dir/\$dldll~
15296
shlibpath_overrides_runpath=yes
15300
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
15301
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15302
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15305
# MinGW DLLs use traditional 'lib' prefix
15306
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15307
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15308
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15309
# It is most probably a Windows format PATH printed by
15310
# mingw gcc, but we are running on Cygwin. Gcc prints its search
15311
# path with ; separators, and with drive letters. We can handle the
15312
# drive letters (cygwin fileutils understands them), so leave them,
15313
# especially as we might pass files found there to a mingw objdump,
15314
# which wouldn't understand a cygwinified path. Ahh.
15315
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15317
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15321
# pw32 DLLs use 'pw' prefix rather than 'lib'
15322
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15328
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15331
dynamic_linker='Win32 ld.exe'
15332
# FIXME: first we should search . and the directory the executable is in
15336
darwin* | rhapsody*)
15337
dynamic_linker="$host_os dyld"
15338
version_type=darwin
15341
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15342
soname_spec='${libname}${release}${major}$shared_ext'
15343
shlibpath_overrides_runpath=yes
15344
shlibpath_var=DYLD_LIBRARY_PATH
15345
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15346
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15347
if test "$GCC" = yes; then
15348
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15350
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15352
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15359
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15360
soname_spec='${libname}${release}${shared_ext}$major'
15361
shlibpath_var=LD_LIBRARY_PATH
15368
freebsd* | dragonfly*)
15369
# DragonFly does not have aout. When/if they implement a new
15370
# versioning mechanism, adjust this.
15371
if test -x /usr/bin/objformat; then
15372
objformat=`/usr/bin/objformat`
15375
freebsd[123]*) objformat=aout ;;
15376
*) objformat=elf ;;
15379
version_type=freebsd-$objformat
15380
case $version_type in
15382
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15387
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15391
shlibpath_var=LD_LIBRARY_PATH
15394
shlibpath_overrides_runpath=yes
15396
freebsd3.[01]* | freebsdelf3.[01]*)
15397
shlibpath_overrides_runpath=yes
15398
hardcode_into_libs=yes
15400
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15401
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15402
shlibpath_overrides_runpath=no
15403
hardcode_into_libs=yes
15405
freebsd*) # from 4.6 on
15406
shlibpath_overrides_runpath=yes
15407
hardcode_into_libs=yes
15416
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15417
soname_spec='${libname}${release}${shared_ext}$major'
15418
shlibpath_var=LD_LIBRARY_PATH
15419
hardcode_into_libs=yes
15422
hpux9* | hpux10* | hpux11*)
15423
# Give a soname corresponding to the major version so that dld.sl refuses to
15424
# link against other versions.
15431
hardcode_into_libs=yes
15432
dynamic_linker="$host_os dld.so"
15433
shlibpath_var=LD_LIBRARY_PATH
15434
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15435
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15436
soname_spec='${libname}${release}${shared_ext}$major'
15437
if test "X$HPUX_IA64_MODE" = X32; then
15438
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15440
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15442
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15446
hardcode_into_libs=yes
15447
dynamic_linker="$host_os dld.sl"
15448
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15449
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15450
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15451
soname_spec='${libname}${release}${shared_ext}$major'
15452
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15453
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15457
dynamic_linker="$host_os dld.sl"
15458
shlibpath_var=SHLIB_PATH
15459
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15460
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15461
soname_spec='${libname}${release}${shared_ext}$major'
15464
# HP-UX runs *really* slowly unless shared libraries are mode 555.
15465
postinstall_cmds='chmod 555 $lib'
15472
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15473
soname_spec='${libname}${release}${shared_ext}$major'
15474
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15475
shlibpath_var=LD_LIBRARY_PATH
15476
shlibpath_overrides_runpath=no
15477
hardcode_into_libs=yes
15480
irix5* | irix6* | nonstopux*)
15482
nonstopux*) version_type=nonstopux ;;
15484
if test "$lt_cv_prog_gnu_ld" = yes; then
15492
soname_spec='${libname}${release}${shared_ext}$major'
15493
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15495
irix5* | nonstopux*)
15496
libsuff= shlibsuff=
15499
case $LD in # libtool.m4 will add one of these switches to LD
15500
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15501
libsuff= shlibsuff= libmagic=32-bit;;
15502
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15503
libsuff=32 shlibsuff=N32 libmagic=N32;;
15504
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15505
libsuff=64 shlibsuff=64 libmagic=64-bit;;
15506
*) libsuff= shlibsuff= libmagic=never-match;;
15510
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15511
shlibpath_overrides_runpath=no
15512
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15513
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15514
hardcode_into_libs=yes
15517
# No shared lib support for Linux oldld, aout, or coff.
15518
linux*oldld* | linux*aout* | linux*coff*)
15522
# This must be Linux ELF.
15523
linux* | k*bsd*-gnu)
15527
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15528
soname_spec='${libname}${release}${shared_ext}$major'
15529
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15530
shlibpath_var=LD_LIBRARY_PATH
15531
shlibpath_overrides_runpath=no
15532
# This implies no fast_install, which is unacceptable.
15533
# Some rework will be needed to allow for fast_install
15534
# before this can be enabled.
15535
hardcode_into_libs=yes
15537
# Append ld.so.conf contents to the search path
15538
if test -f /etc/ld.so.conf; then
15539
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15540
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15543
# We used to test for /lib/ld.so.1 and disable shared libraries on
15544
# powerpc, because MkLinux only supported shared libraries with the
15545
# GNU dynamic linker. Since this was broken with cross compilers,
15546
# most powerpc-linux boxes support dynamic linking these days and
15547
# people can always --disable-shared, the test was removed, and we
15548
# assume the GNU/Linux dynamic linker is in use.
15549
dynamic_linker='GNU/Linux ld.so'
15556
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15557
soname_spec='${libname}${release}${shared_ext}$major'
15558
shlibpath_var=LD_LIBRARY_PATH
15559
shlibpath_overrides_runpath=no
15560
hardcode_into_libs=yes
15561
dynamic_linker='NetBSD ld.elf_so'
15568
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15569
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15570
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15571
dynamic_linker='NetBSD (a.out) ld.so'
15573
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15574
soname_spec='${libname}${release}${shared_ext}$major'
15575
dynamic_linker='NetBSD ld.elf_so'
15577
shlibpath_var=LD_LIBRARY_PATH
15578
shlibpath_overrides_runpath=yes
15579
hardcode_into_libs=yes
15584
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15585
shlibpath_var=LD_LIBRARY_PATH
15586
shlibpath_overrides_runpath=yes
15593
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15594
soname_spec='${libname}${release}${shared_ext}$major'
15595
shlibpath_var=LD_LIBRARY_PATH
15596
shlibpath_overrides_runpath=yes
15601
sys_lib_dlsearch_path_spec="/usr/lib"
15603
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15605
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15606
*) need_version=no ;;
15608
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15609
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15610
shlibpath_var=LD_LIBRARY_PATH
15611
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15613
openbsd2.[89] | openbsd2.[89].*)
15614
shlibpath_overrides_runpath=no
15617
shlibpath_overrides_runpath=yes
15621
shlibpath_overrides_runpath=yes
15626
libname_spec='$name'
15629
library_names_spec='$libname${shared_ext} $libname.a'
15630
dynamic_linker='OS/2 ld.exe'
15631
shlibpath_var=LIBPATH
15634
osf3* | osf4* | osf5*)
15638
soname_spec='${libname}${release}${shared_ext}$major'
15639
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15640
shlibpath_var=LD_LIBRARY_PATH
15641
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15642
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15649
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15650
soname_spec='${libname}${release}${shared_ext}$major'
15651
shlibpath_var=LD_LIBRARY_PATH
15652
shlibpath_overrides_runpath=yes
15653
hardcode_into_libs=yes
15654
# ldd complains unless libraries are executable
15655
postinstall_cmds='chmod +x $lib'
15660
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15661
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15662
shlibpath_var=LD_LIBRARY_PATH
15663
shlibpath_overrides_runpath=yes
15664
if test "$with_gnu_ld" = yes; then
15672
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15673
soname_spec='${libname}${release}${shared_ext}$major'
15674
shlibpath_var=LD_LIBRARY_PATH
15675
case $host_vendor in
15677
shlibpath_overrides_runpath=no
15679
export_dynamic_flag_spec='${wl}-Blargedynsym'
15680
runpath_var=LD_RUN_PATH
15688
shlibpath_overrides_runpath=no
15689
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15695
if test -d /usr/nec ;then
15697
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15698
soname_spec='$libname${shared_ext}.$major'
15699
shlibpath_var=LD_LIBRARY_PATH
15703
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15704
version_type=freebsd-elf
15707
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15708
soname_spec='${libname}${release}${shared_ext}$major'
15709
shlibpath_var=LD_LIBRARY_PATH
15710
hardcode_into_libs=yes
15711
if test "$with_gnu_ld" = yes; then
15712
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15713
shlibpath_overrides_runpath=no
15715
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15716
shlibpath_overrides_runpath=yes
15719
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15723
sys_lib_dlsearch_path_spec='/usr/lib'
15728
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15729
soname_spec='${libname}${release}${shared_ext}$major'
15730
shlibpath_var=LD_LIBRARY_PATH
15737
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15738
echo "${ECHO_T}$dynamic_linker" >&6; }
15739
test "$dynamic_linker" = no && can_build_shared=no
15741
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15742
if test "$GCC" = yes; then
15743
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15746
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15747
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15748
hardcode_action_F77=
15749
if test -n "$hardcode_libdir_flag_spec_F77" || \
15750
test -n "$runpath_var_F77" || \
15751
test "X$hardcode_automatic_F77" = "Xyes" ; then
15753
# We can hardcode non-existant directories.
15754
if test "$hardcode_direct_F77" != no &&
15755
# If the only mechanism to avoid hardcoding is shlibpath_var, we
15756
# have to relink, otherwise we might link with an installed library
15757
# when we should be linking with a yet-to-be-installed one
15758
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15759
test "$hardcode_minus_L_F77" != no; then
15760
# Linking always hardcodes the temporary library directory.
15761
hardcode_action_F77=relink
15763
# We can link without hardcoding, and we can hardcode nonexisting dirs.
15764
hardcode_action_F77=immediate
15767
# We cannot hardcode anything, or else we can only hardcode existing
15769
hardcode_action_F77=unsupported
15771
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15772
echo "${ECHO_T}$hardcode_action_F77" >&6; }
15774
if test "$hardcode_action_F77" = relink; then
15775
# Fast installation is not supported
15776
enable_fast_install=no
15777
elif test "$shlibpath_overrides_runpath" = yes ||
15778
test "$enable_shared" = no; then
15779
# Fast installation is not necessary
15780
enable_fast_install=needless
15784
# The else clause should only fire when bootstrapping the
15785
# libtool distribution, otherwise you forgot to ship ltmain.sh
15786
# with your package, and you will get complaints that there are
15787
# no rules to generate ltmain.sh.
15788
if test -f "$ltmain"; then
15789
# See if we are running on zsh, and set the options which allow our commands through
15790
# without removal of \ escapes.
15791
if test -n "${ZSH_VERSION+set}" ; then
15792
setopt NO_GLOB_SUBST
15794
# Now quote all the things that may contain metacharacters while being
15795
# careful not to overquote the AC_SUBSTed values. We take copies of the
15796
# variables and quote the copies for generation of the libtool script.
15797
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15799
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15800
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15801
deplibs_check_method reload_flag reload_cmds need_locks \
15802
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15803
lt_cv_sys_global_symbol_to_c_name_address \
15804
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15805
old_postinstall_cmds old_postuninstall_cmds \
15809
lt_prog_compiler_wl_F77 \
15810
lt_prog_compiler_pic_F77 \
15811
lt_prog_compiler_static_F77 \
15812
lt_prog_compiler_no_builtin_flag_F77 \
15813
export_dynamic_flag_spec_F77 \
15814
thread_safe_flag_spec_F77 \
15815
whole_archive_flag_spec_F77 \
15816
enable_shared_with_static_runtimes_F77 \
15817
old_archive_cmds_F77 \
15818
old_archive_from_new_cmds_F77 \
15819
predep_objects_F77 \
15820
postdep_objects_F77 \
15823
compiler_lib_search_path_F77 \
15825
archive_expsym_cmds_F77 \
15826
postinstall_cmds_F77 \
15827
postuninstall_cmds_F77 \
15828
old_archive_from_expsyms_cmds_F77 \
15829
allow_undefined_flag_F77 \
15830
no_undefined_flag_F77 \
15831
export_symbols_cmds_F77 \
15832
hardcode_libdir_flag_spec_F77 \
15833
hardcode_libdir_flag_spec_ld_F77 \
15834
hardcode_libdir_separator_F77 \
15835
hardcode_automatic_F77 \
15837
module_expsym_cmds_F77 \
15838
lt_cv_prog_compiler_c_o_F77 \
15839
exclude_expsyms_F77 \
15840
include_expsyms_F77; do
15843
old_archive_cmds_F77 | \
15844
old_archive_from_new_cmds_F77 | \
15845
archive_cmds_F77 | \
15846
archive_expsym_cmds_F77 | \
15847
module_cmds_F77 | \
15848
module_expsym_cmds_F77 | \
15849
old_archive_from_expsyms_cmds_F77 | \
15850
export_symbols_cmds_F77 | \
15851
extract_expsyms_cmds | reload_cmds | finish_cmds | \
15852
postinstall_cmds | postuninstall_cmds | \
15853
old_postinstall_cmds | old_postuninstall_cmds | \
15854
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15855
# Double-quote double-evaled strings.
15856
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15859
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15865
*'\$0 --fallback-echo"')
15866
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15872
cat <<__EOF__ >> "$cfgfile"
15873
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15875
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15877
# Shell to use when invoking shell scripts.
15880
# Whether or not to build shared libraries.
15881
build_libtool_libs=$enable_shared
15883
# Whether or not to build static libraries.
15884
build_old_libs=$enable_static
15886
# Whether or not to add -lc for building shared libraries.
15887
build_libtool_need_lc=$archive_cmds_need_lc_F77
15889
# Whether or not to disallow shared libs when runtime libs are static
15890
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15892
# Whether or not to optimize for fast installation.
15893
fast_install=$enable_fast_install
15896
host_alias=$host_alias
15900
# The build system.
15901
build_alias=$build_alias
15905
# An echo program that does not interpret backslashes.
15910
AR_FLAGS=$lt_AR_FLAGS
15915
# LTCC compiler flags.
15916
LTCFLAGS=$lt_LTCFLAGS
15918
# A language-specific compiler.
15919
CC=$lt_compiler_F77
15921
# Is the compiler the GNU C compiler?
15927
# The linker used to build libraries.
15930
# Whether we need hard or soft links.
15933
# A BSD-compatible nm program.
15936
# A symbol stripping program
15939
# Used to examine libraries when file_magic_cmd begins "file"
15940
MAGIC_CMD=$MAGIC_CMD
15942
# Used on cygwin: DLL creation program.
15945
# Used on cygwin: object dumper.
15948
# Used on cygwin: assembler.
15951
# The name of the directory that contains temporary libtool files.
15954
# How to create reloadable object files.
15955
reload_flag=$lt_reload_flag
15956
reload_cmds=$lt_reload_cmds
15958
# How to pass a linker flag through the compiler.
15959
wl=$lt_lt_prog_compiler_wl_F77
15961
# Object file suffix (normally "o").
15962
objext="$ac_objext"
15964
# Old archive suffix (normally "a").
15967
# Shared library suffix (normally ".so").
15968
shrext_cmds='$shrext_cmds'
15970
# Executable file suffix (normally "").
15973
# Additional compiler flags for building library objects.
15974
pic_flag=$lt_lt_prog_compiler_pic_F77
15977
# What is the maximum length of a command?
15978
max_cmd_len=$lt_cv_sys_max_cmd_len
15980
# Does compiler simultaneously support -c and -o options?
15981
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15983
# Must we lock files when doing compilation?
15984
need_locks=$lt_need_locks
15986
# Do we need the lib prefix for modules?
15987
need_lib_prefix=$need_lib_prefix
15989
# Do we need a version for libraries?
15990
need_version=$need_version
15992
# Whether dlopen is supported.
15993
dlopen_support=$enable_dlopen
15995
# Whether dlopen of programs is supported.
15996
dlopen_self=$enable_dlopen_self
15998
# Whether dlopen of statically linked programs is supported.
15999
dlopen_self_static=$enable_dlopen_self_static
16001
# Compiler flag to prevent dynamic linking.
16002
link_static_flag=$lt_lt_prog_compiler_static_F77
16004
# Compiler flag to turn off builtin functions.
16005
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16007
# Compiler flag to allow reflexive dlopens.
16008
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16010
# Compiler flag to generate shared objects directly from archives.
16011
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16013
# Compiler flag to generate thread-safe objects.
16014
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16016
# Library versioning type.
16017
version_type=$version_type
16019
# Format of library name prefix.
16020
libname_spec=$lt_libname_spec
16022
# List of archive names. First name is the real one, the rest are links.
16023
# The last name is the one that the linker finds with -lNAME.
16024
library_names_spec=$lt_library_names_spec
16026
# The coded name of the library, if different from the real name.
16027
soname_spec=$lt_soname_spec
16029
# Commands used to build and install an old-style archive.
16031
old_archive_cmds=$lt_old_archive_cmds_F77
16032
old_postinstall_cmds=$lt_old_postinstall_cmds
16033
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16035
# Create an old-style archive from a shared archive.
16036
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16038
# Create a temporary old-style archive to link instead of a shared archive.
16039
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16041
# Commands used to build and install a shared archive.
16042
archive_cmds=$lt_archive_cmds_F77
16043
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16044
postinstall_cmds=$lt_postinstall_cmds
16045
postuninstall_cmds=$lt_postuninstall_cmds
16047
# Commands used to build a loadable module (assumed same as above if empty)
16048
module_cmds=$lt_module_cmds_F77
16049
module_expsym_cmds=$lt_module_expsym_cmds_F77
16051
# Commands to strip libraries.
16052
old_striplib=$lt_old_striplib
16053
striplib=$lt_striplib
16055
# Dependencies to place before the objects being linked to create a
16057
predep_objects=$lt_predep_objects_F77
16059
# Dependencies to place after the objects being linked to create a
16061
postdep_objects=$lt_postdep_objects_F77
16063
# Dependencies to place before the objects being linked to create a
16065
predeps=$lt_predeps_F77
16067
# Dependencies to place after the objects being linked to create a
16069
postdeps=$lt_postdeps_F77
16071
# The library search path used internally by the compiler when linking
16072
# a shared library.
16073
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16075
# Method to check whether dependent libraries are shared objects.
16076
deplibs_check_method=$lt_deplibs_check_method
16078
# Command to use when deplibs_check_method == file_magic.
16079
file_magic_cmd=$lt_file_magic_cmd
16081
# Flag that allows shared libraries with undefined symbols to be built.
16082
allow_undefined_flag=$lt_allow_undefined_flag_F77
16084
# Flag that forces no undefined symbols.
16085
no_undefined_flag=$lt_no_undefined_flag_F77
16087
# Commands used to finish a libtool library installation in a directory.
16088
finish_cmds=$lt_finish_cmds
16090
# Same as above, but a single script fragment to be evaled but not shown.
16091
finish_eval=$lt_finish_eval
16093
# Take the output of nm and produce a listing of raw symbols and C names.
16094
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16096
# Transform the output of nm in a proper C declaration
16097
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16099
# Transform the output of nm in a C name address pair
16100
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16102
# This is the shared library runtime path variable.
16103
runpath_var=$runpath_var
16105
# This is the shared library path variable.
16106
shlibpath_var=$shlibpath_var
16108
# Is shlibpath searched before the hard-coded library search path?
16109
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16111
# How to hardcode a shared library path into an executable.
16112
hardcode_action=$hardcode_action_F77
16114
# Whether we should hardcode library paths into libraries.
16115
hardcode_into_libs=$hardcode_into_libs
16117
# Flag to hardcode \$libdir into a binary during linking.
16118
# This must work even if \$libdir does not exist.
16119
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16121
# If ld is used when linking, flag to hardcode \$libdir into
16122
# a binary during linking. This must work even if \$libdir does
16124
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16126
# Whether we need a single -rpath flag with a separated argument.
16127
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16129
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16130
# resulting binary.
16131
hardcode_direct=$hardcode_direct_F77
16133
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16134
# resulting binary.
16135
hardcode_minus_L=$hardcode_minus_L_F77
16137
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16138
# the resulting binary.
16139
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16141
# Set to yes if building a shared library automatically hardcodes DIR into the library
16142
# and all subsequent libraries and executables linked against it.
16143
hardcode_automatic=$hardcode_automatic_F77
16145
# Variables whose values should be saved in libtool wrapper scripts and
16146
# restored at relink time.
16147
variables_saved_for_relink="$variables_saved_for_relink"
16149
# Whether libtool must link a program against all its dependency libraries.
16150
link_all_deplibs=$link_all_deplibs_F77
16152
# Compile-time system search path for libraries
16153
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16155
# Run-time system search path for libraries
16156
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16158
# Fix the shell variable \$srcfile for the compiler.
16159
fix_srcfile_path="$fix_srcfile_path_F77"
16161
# Set to yes if exported symbols are required.
16162
always_export_symbols=$always_export_symbols_F77
16164
# The commands to list exported symbols.
16165
export_symbols_cmds=$lt_export_symbols_cmds_F77
16167
# The commands to extract the exported symbol list from a shared archive.
16168
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16170
# Symbols that should not be listed in the preloaded symbols.
16171
exclude_expsyms=$lt_exclude_expsyms_F77
16173
# Symbols that must always be exported.
16174
include_expsyms=$lt_include_expsyms_F77
16176
# ### END LIBTOOL TAG CONFIG: $tagname
16182
# If there is no Makefile yet, we rely on a make rule to execute
16183
# `config.status --recheck' to rerun these tests and create the
16184
# libtool script then.
16185
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16186
if test -f "$ltmain_in"; then
16187
test -f Makefile && make "$ltmain"
16193
ac_cpp='$CPP $CPPFLAGS'
16194
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16195
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16196
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16206
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16209
# Source file extension for Java test sources.
16212
# Object file extension for compiled Java test sources.
16216
# Code to be used in simple compile tests
16217
lt_simple_compile_test_code="class foo {}\n"
16219
# Code to be used in simple link tests
16220
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16222
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16224
# If no C compiler was specified, use CC.
16227
# If no C compiler flags were specified, use CFLAGS.
16228
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16230
# Allow CC to be a program name with arguments.
16234
# save warnings/boilerplate of simple test code
16235
ac_outfile=conftest.$ac_objext
16236
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16237
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16238
_lt_compiler_boilerplate=`cat conftest.err`
16241
ac_outfile=conftest.$ac_objext
16242
printf "$lt_simple_link_test_code" >conftest.$ac_ext
16243
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16244
_lt_linker_boilerplate=`cat conftest.err`
16248
# Allow CC to be a program name with arguments.
16253
for cc_temp in $compiler""; do
16255
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16256
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16261
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16264
# GCJ did not exist at the time GCC didn't implicitly link libc in.
16265
archive_cmds_need_lc_GCJ=no
16267
old_archive_cmds_GCJ=$old_archive_cmds
16270
lt_prog_compiler_no_builtin_flag_GCJ=
16272
if test "$GCC" = yes; then
16273
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16276
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16277
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16278
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16279
echo $ECHO_N "(cached) $ECHO_C" >&6
16281
lt_cv_prog_compiler_rtti_exceptions=no
16282
ac_outfile=conftest.$ac_objext
16283
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16284
lt_compiler_flag="-fno-rtti -fno-exceptions"
16285
# Insert the option either (1) after the last *FLAGS variable, or
16286
# (2) before a word containing "conftest.", or (3) at the end.
16287
# Note that $ac_compile itself does not contain backslashes and begins
16288
# with a dollar sign (not a hyphen), so the echo should work correctly.
16289
# The option is referenced via a variable to avoid confusing sed.
16290
lt_compile=`echo "$ac_compile" | $SED \
16291
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16292
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16293
-e 's:$: $lt_compiler_flag:'`
16294
(eval echo "\"\$as_me:16294: $lt_compile\"" >&5)
16295
(eval "$lt_compile" 2>conftest.err)
16297
cat conftest.err >&5
16298
echo "$as_me:16298: \$? = $ac_status" >&5
16299
if (exit $ac_status) && test -s "$ac_outfile"; then
16300
# The compiler can only warn and ignore the option if not recognized
16301
# So say no if there are warnings other than the usual output.
16302
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16303
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16304
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16305
lt_cv_prog_compiler_rtti_exceptions=yes
16311
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16312
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16314
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16315
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16322
lt_prog_compiler_wl_GCJ=
16323
lt_prog_compiler_pic_GCJ=
16324
lt_prog_compiler_static_GCJ=
16326
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16327
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16329
if test "$GCC" = yes; then
16330
lt_prog_compiler_wl_GCJ='-Wl,'
16331
lt_prog_compiler_static_GCJ='-static'
16335
# All AIX code is PIC.
16336
if test "$host_cpu" = ia64; then
16337
# AIX 5 now supports IA64 processor
16338
lt_prog_compiler_static_GCJ='-Bstatic'
16343
# FIXME: we need at least 68020 code to build shared libraries, but
16344
# adding the `-m68020' flag to GCC prevents building anything better,
16346
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16349
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16350
# PIC is the default for these OSes.
16353
mingw* | pw32* | os2*)
16354
# This hack is so that the source file can tell whether it is being
16355
# built for inclusion in a dll (and should export symbols for example).
16356
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16359
darwin* | rhapsody*)
16360
# PIC is the default on this platform
16361
# Common symbols not allowed in MH_DYLIB files
16362
lt_prog_compiler_pic_GCJ='-fno-common'
16366
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
16367
# Instead, we relocate shared libraries at runtime.
16371
# Just because we use GCC doesn't mean we suddenly get shared libraries
16372
# on systems that don't support them.
16373
lt_prog_compiler_can_build_shared_GCJ=no
16378
if test -d /usr/nec; then
16379
lt_prog_compiler_pic_GCJ=-Kconform_pic
16384
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16385
# not for PA HP-UX.
16391
lt_prog_compiler_pic_GCJ='-fPIC'
16397
lt_prog_compiler_pic_GCJ='-fPIC'
16401
# PORTME Check for flag to pass linker flags through the system compiler.
16404
lt_prog_compiler_wl_GCJ='-Wl,'
16405
if test "$host_cpu" = ia64; then
16406
# AIX 5 now supports IA64 processor
16407
lt_prog_compiler_static_GCJ='-Bstatic'
16409
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16413
# PIC is the default on this platform
16414
# Common symbols not allowed in MH_DYLIB files
16415
case $cc_basename in
16417
lt_prog_compiler_pic_GCJ='-qnocommon'
16418
lt_prog_compiler_wl_GCJ='-Wl,'
16423
mingw* | pw32* | os2*)
16424
# This hack is so that the source file can tell whether it is being
16425
# built for inclusion in a dll (and should export symbols for example).
16426
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16429
hpux9* | hpux10* | hpux11*)
16430
lt_prog_compiler_wl_GCJ='-Wl,'
16431
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16432
# not for PA HP-UX.
16438
lt_prog_compiler_pic_GCJ='+Z'
16441
# Is there a better lt_prog_compiler_static that works with the bundled CC?
16442
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16445
irix5* | irix6* | nonstopux*)
16446
lt_prog_compiler_wl_GCJ='-Wl,'
16447
# PIC (with -KPIC) is the default.
16448
lt_prog_compiler_static_GCJ='-non_shared'
16452
lt_prog_compiler_pic_GCJ='-KPIC'
16453
lt_prog_compiler_static_GCJ='-Bstatic'
16456
linux* | k*bsd*-gnu)
16457
case $cc_basename in
16459
lt_prog_compiler_wl_GCJ='-Wl,'
16460
lt_prog_compiler_pic_GCJ='-KPIC'
16461
lt_prog_compiler_static_GCJ='-static'
16463
pgcc* | pgf77* | pgf90* | pgf95*)
16464
# Portland Group compilers (*not* the Pentium gcc compiler,
16465
# which looks to be a dead project)
16466
lt_prog_compiler_wl_GCJ='-Wl,'
16467
lt_prog_compiler_pic_GCJ='-fpic'
16468
lt_prog_compiler_static_GCJ='-Bstatic'
16471
lt_prog_compiler_wl_GCJ='-Wl,'
16472
# All Alpha code is PIC.
16473
lt_prog_compiler_static_GCJ='-non_shared'
16478
osf3* | osf4* | osf5*)
16479
lt_prog_compiler_wl_GCJ='-Wl,'
16480
# All OSF/1 code is PIC.
16481
lt_prog_compiler_static_GCJ='-non_shared'
16485
lt_prog_compiler_pic_GCJ='-KPIC'
16486
lt_prog_compiler_static_GCJ='-Bstatic'
16487
case $cc_basename in
16488
f77* | f90* | f95*)
16489
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16491
lt_prog_compiler_wl_GCJ='-Wl,';;
16496
lt_prog_compiler_wl_GCJ='-Qoption ld '
16497
lt_prog_compiler_pic_GCJ='-PIC'
16498
lt_prog_compiler_static_GCJ='-Bstatic'
16501
sysv4 | sysv4.2uw2* | sysv4.3*)
16502
lt_prog_compiler_wl_GCJ='-Wl,'
16503
lt_prog_compiler_pic_GCJ='-KPIC'
16504
lt_prog_compiler_static_GCJ='-Bstatic'
16508
if test -d /usr/nec ;then
16509
lt_prog_compiler_pic_GCJ='-Kconform_pic'
16510
lt_prog_compiler_static_GCJ='-Bstatic'
16514
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16515
lt_prog_compiler_wl_GCJ='-Wl,'
16516
lt_prog_compiler_pic_GCJ='-KPIC'
16517
lt_prog_compiler_static_GCJ='-Bstatic'
16521
lt_prog_compiler_wl_GCJ='-Wl,'
16522
lt_prog_compiler_can_build_shared_GCJ=no
16526
lt_prog_compiler_pic_GCJ='-pic'
16527
lt_prog_compiler_static_GCJ='-Bstatic'
16531
lt_prog_compiler_can_build_shared_GCJ=no
16536
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16537
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16540
# Check to make sure the PIC flag actually works.
16542
if test -n "$lt_prog_compiler_pic_GCJ"; then
16544
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16545
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16546
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16547
echo $ECHO_N "(cached) $ECHO_C" >&6
16549
lt_prog_compiler_pic_works_GCJ=no
16550
ac_outfile=conftest.$ac_objext
16551
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16552
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16553
# Insert the option either (1) after the last *FLAGS variable, or
16554
# (2) before a word containing "conftest.", or (3) at the end.
16555
# Note that $ac_compile itself does not contain backslashes and begins
16556
# with a dollar sign (not a hyphen), so the echo should work correctly.
16557
# The option is referenced via a variable to avoid confusing sed.
16558
lt_compile=`echo "$ac_compile" | $SED \
16559
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16560
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16561
-e 's:$: $lt_compiler_flag:'`
16562
(eval echo "\"\$as_me:16562: $lt_compile\"" >&5)
16563
(eval "$lt_compile" 2>conftest.err)
16565
cat conftest.err >&5
16566
echo "$as_me:16566: \$? = $ac_status" >&5
16567
if (exit $ac_status) && test -s "$ac_outfile"; then
16568
# The compiler can only warn and ignore the option if not recognized
16569
# So say no if there are warnings other than the usual output.
16570
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16571
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16572
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16573
lt_prog_compiler_pic_works_GCJ=yes
16579
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16580
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16582
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16583
case $lt_prog_compiler_pic_GCJ in
16585
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16588
lt_prog_compiler_pic_GCJ=
16589
lt_prog_compiler_can_build_shared_GCJ=no
16594
# For platforms which do not support PIC, -DPIC is meaningless:
16596
lt_prog_compiler_pic_GCJ=
16599
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16604
# Check to make sure the static flag actually works.
16606
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16607
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16608
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16609
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16610
echo $ECHO_N "(cached) $ECHO_C" >&6
16612
lt_prog_compiler_static_works_GCJ=no
16613
save_LDFLAGS="$LDFLAGS"
16614
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16615
printf "$lt_simple_link_test_code" > conftest.$ac_ext
16616
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16617
# The linker can only warn and ignore the option if not recognized
16618
# So say no if there are warnings
16619
if test -s conftest.err; then
16620
# Append any errors to the config.log.
16621
cat conftest.err 1>&5
16622
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16623
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16624
if diff conftest.exp conftest.er2 >/dev/null; then
16625
lt_prog_compiler_static_works_GCJ=yes
16628
lt_prog_compiler_static_works_GCJ=yes
16632
LDFLAGS="$save_LDFLAGS"
16635
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16636
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16638
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16641
lt_prog_compiler_static_GCJ=
16645
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16646
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16647
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16648
echo $ECHO_N "(cached) $ECHO_C" >&6
16650
lt_cv_prog_compiler_c_o_GCJ=no
16651
$rm -r conftest 2>/dev/null
16655
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16657
lt_compiler_flag="-o out/conftest2.$ac_objext"
16658
# Insert the option either (1) after the last *FLAGS variable, or
16659
# (2) before a word containing "conftest.", or (3) at the end.
16660
# Note that $ac_compile itself does not contain backslashes and begins
16661
# with a dollar sign (not a hyphen), so the echo should work correctly.
16662
lt_compile=`echo "$ac_compile" | $SED \
16663
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16664
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16665
-e 's:$: $lt_compiler_flag:'`
16666
(eval echo "\"\$as_me:16666: $lt_compile\"" >&5)
16667
(eval "$lt_compile" 2>out/conftest.err)
16669
cat out/conftest.err >&5
16670
echo "$as_me:16670: \$? = $ac_status" >&5
16671
if (exit $ac_status) && test -s out/conftest2.$ac_objext
16673
# The compiler can only warn and ignore the option if not recognized
16674
# So say no if there are warnings
16675
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16676
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16677
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16678
lt_cv_prog_compiler_c_o_GCJ=yes
16683
# SGI C++ compiler will create directory out/ii_files/ for
16684
# template instantiation
16685
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16686
$rm out/* && rmdir out
16692
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16693
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16696
hard_links="nottested"
16697
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16698
# do not overwrite the value of need_locks provided by the user
16699
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16700
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16703
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16705
ln conftest.a conftest.b 2>&5 || hard_links=no
16706
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16707
{ echo "$as_me:$LINENO: result: $hard_links" >&5
16708
echo "${ECHO_T}$hard_links" >&6; }
16709
if test "$hard_links" = no; then
16710
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16711
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16718
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16719
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16722
allow_undefined_flag_GCJ=
16723
enable_shared_with_static_runtimes_GCJ=no
16725
archive_expsym_cmds_GCJ=
16726
old_archive_From_new_cmds_GCJ=
16727
old_archive_from_expsyms_cmds_GCJ=
16728
export_dynamic_flag_spec_GCJ=
16729
whole_archive_flag_spec_GCJ=
16730
thread_safe_flag_spec_GCJ=
16731
hardcode_libdir_flag_spec_GCJ=
16732
hardcode_libdir_flag_spec_ld_GCJ=
16733
hardcode_libdir_separator_GCJ=
16734
hardcode_direct_GCJ=no
16735
hardcode_minus_L_GCJ=no
16736
hardcode_shlibpath_var_GCJ=unsupported
16737
link_all_deplibs_GCJ=unknown
16738
hardcode_automatic_GCJ=no
16740
module_expsym_cmds_GCJ=
16741
always_export_symbols_GCJ=no
16742
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16743
# include_expsyms should be a list of space-separated symbols to be *always*
16744
# included in the symbol list
16745
include_expsyms_GCJ=
16746
# exclude_expsyms can be an extended regexp of symbols to exclude
16747
# it will be wrapped by ` (' and `)$', so one must not match beginning or
16748
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16749
# as well as any symbol that contains `d'.
16750
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16751
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16752
# platforms (ab)use it in PIC code, but their linkers get confused if
16753
# the symbol is explicitly referenced. Since portable code cannot
16754
# rely on this symbol name, it's probably fine to never include it in
16755
# preloaded symbol tables.
16756
extract_expsyms_cmds=
16757
# Just being paranoid about ensuring that cc_basename is set.
16758
for cc_temp in $compiler""; do
16760
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16761
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16766
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16769
cygwin* | mingw* | pw32*)
16770
# FIXME: the MSVC++ port hasn't been tested in a loooong time
16771
# When not using gcc, we currently assume that we are using
16772
# Microsoft Visual C++.
16773
if test "$GCC" != yes; then
16778
# we just hope/assume this is gcc and not c89 (= MSVC++)
16787
if test "$with_gnu_ld" = yes; then
16788
# If archive_cmds runs LD, not CC, wlarc should be empty
16791
# Set some defaults for GNU ld with shared library support. These
16792
# are reset later if shared libraries are not supported. Putting them
16793
# here allows them to be overridden if necessary.
16794
runpath_var=LD_RUN_PATH
16795
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16796
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16797
# ancient GNU ld didn't support --whole-archive et. al.
16798
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16799
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16801
whole_archive_flag_spec_GCJ=
16803
supports_anon_versioning=no
16804
case `$LD -v 2>/dev/null` in
16805
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16806
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16807
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16808
*\ 2.11.*) ;; # other 2.11 versions
16809
*) supports_anon_versioning=yes ;;
16812
# See if GNU ld supports shared libraries.
16814
aix3* | aix4* | aix5*)
16815
# On AIX/PPC, the GNU linker is very broken
16816
if test "$host_cpu" != ia64; then
16820
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16821
*** to be unable to reliably create shared libraries on AIX.
16822
*** Therefore, libtool is disabling shared libraries support. If you
16823
*** really care for shared libraries, you may want to modify your PATH
16824
*** so that a non-GNU linker is found, and then restart.
16831
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)'
16832
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16833
hardcode_minus_L_GCJ=yes
16835
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16836
# that the semantics of dynamic libraries on AmigaOS, at least up
16837
# to version 4, is to share data among multiple programs linked
16838
# with the same dynamic library. Since this doesn't match the
16839
# behavior of shared libraries on other platforms, we can't use
16845
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16846
allow_undefined_flag_GCJ=unsupported
16847
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16848
# support --undefined. This deserves some investigation. FIXME
16849
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16855
cygwin* | mingw* | pw32*)
16856
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16857
# as there is no search path for DLLs.
16858
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16859
allow_undefined_flag_GCJ=unsupported
16860
always_export_symbols_GCJ=no
16861
enable_shared_with_static_runtimes_GCJ=yes
16862
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16864
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16865
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16866
# If the export-symbols file already is a .def file (1st line
16867
# is EXPORTS), use it as is; otherwise, prepend...
16868
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16869
cp $export_symbols $output_objdir/$soname.def;
16871
echo EXPORTS > $output_objdir/$soname.def;
16872
cat $export_symbols >> $output_objdir/$soname.def;
16874
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16881
hardcode_direct_GCJ=no
16882
hardcode_shlibpath_var_GCJ=no
16883
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16884
export_dynamic_flag_spec_GCJ='${wl}-E'
16885
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16886
# Instead, shared libraries are loaded at an image base (0x10000000 by
16887
# default) and relocated if they conflict, which is a slow very memory
16888
# consuming and fragmenting process. To avoid this, we pick a random,
16889
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16890
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
16891
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'
16892
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'
16895
linux* | k*bsd*-gnu)
16896
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16898
case $cc_basename,$host_cpu in
16899
pgcc*) # Portland Group C compiler
16900
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'
16901
tmp_addflag=' $pic_flag'
16903
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16904
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'
16905
tmp_addflag=' $pic_flag -Mnomain' ;;
16906
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16907
tmp_addflag=' -i_dynamic' ;;
16908
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16909
tmp_addflag=' -i_dynamic -nofor_main' ;;
16910
ifc* | ifort*) # Intel Fortran compiler
16911
tmp_addflag=' -nofor_main' ;;
16913
archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16915
if test $supports_anon_versioning = yes; then
16916
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16917
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16918
$echo "local: *; };" >> $output_objdir/$libname.ver~
16919
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16921
link_all_deplibs_GCJ=no
16927
netbsd* | netbsdelf*-gnu)
16928
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16929
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16932
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16933
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16938
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16942
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16943
*** create shared libraries on Solaris systems. Therefore, libtool
16944
*** is disabling shared libraries support. We urge you to upgrade GNU
16945
*** binutils to release 2.9.1 or newer. Another option is to modify
16946
*** your PATH or compiler configuration so that the native linker is
16947
*** used, and then restart.
16950
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16951
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16952
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16958
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16959
case `$LD -v 2>&1` in
16960
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16964
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16965
*** reliably create shared libraries on SCO systems. Therefore, libtool
16966
*** is disabling shared libraries support. We urge you to upgrade GNU
16967
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16968
*** your PATH or compiler configuration so that the native linker is
16969
*** used, and then restart.
16974
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16975
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16976
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16977
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16986
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16988
hardcode_direct_GCJ=yes
16989
hardcode_shlibpath_var_GCJ=no
16993
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16994
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16995
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17002
if test "$ld_shlibs_GCJ" = no; then
17004
hardcode_libdir_flag_spec_GCJ=
17005
export_dynamic_flag_spec_GCJ=
17006
whole_archive_flag_spec_GCJ=
17009
# PORTME fill in a description of your system's linker (not GNU ld)
17012
allow_undefined_flag_GCJ=unsupported
17013
always_export_symbols_GCJ=yes
17014
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'
17015
# Note: this linker hardcodes the directories in LIBPATH if there
17016
# are no directories specified by -L.
17017
hardcode_minus_L_GCJ=yes
17018
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17019
# Neither direct hardcoding nor static linking is supported with a
17021
hardcode_direct_GCJ=unsupported
17026
if test "$host_cpu" = ia64; then
17027
# On IA64, the linker does run time linking by default, so we don't
17028
# have to do anything special.
17029
aix_use_runtimelinking=no
17030
exp_sym_flag='-Bexport'
17033
# If we're using GNU nm, then we don't want the "-C" option.
17034
# -C means demangle to AIX nm, but means don't demangle with GNU nm
17035
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17036
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'
17038
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'
17040
aix_use_runtimelinking=no
17042
# Test if we are trying to use run time linking or normal
17043
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17044
# need to do runtime linking.
17045
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17046
for ld_flag in $LDFLAGS; do
17047
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17048
aix_use_runtimelinking=yes
17055
exp_sym_flag='-bexport'
17056
no_entry_flag='-bnoentry'
17059
# When large executables or shared objects are built, AIX ld can
17060
# have problems creating the table of contents. If linking a library
17061
# or program results in "error TOC overflow" add -mminimal-toc to
17062
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17063
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17065
archive_cmds_GCJ=''
17066
hardcode_direct_GCJ=yes
17067
hardcode_libdir_separator_GCJ=':'
17068
link_all_deplibs_GCJ=yes
17070
if test "$GCC" = yes; then
17071
case $host_os in aix4.[012]|aix4.[012].*)
17072
# We only want to do this on AIX 4.2 and lower, the check
17073
# below for broken collect2 doesn't work under 4.3+
17074
collect2name=`${CC} -print-prog-name=collect2`
17075
if test -f "$collect2name" && \
17076
strings "$collect2name" | grep resolve_lib_name >/dev/null
17078
# We have reworked collect2
17079
hardcode_direct_GCJ=yes
17081
# We have old collect2
17082
hardcode_direct_GCJ=unsupported
17083
# It fails to find uninstalled libraries when the uninstalled
17084
# path is not listed in the libpath. Setting hardcode_minus_L
17085
# to unsupported forces relinking
17086
hardcode_minus_L_GCJ=yes
17087
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17088
hardcode_libdir_separator_GCJ=
17092
shared_flag='-shared'
17093
if test "$aix_use_runtimelinking" = yes; then
17094
shared_flag="$shared_flag "'${wl}-G'
17098
if test "$host_cpu" = ia64; then
17099
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17100
# chokes on -Wl,-G. The following line is correct:
17103
if test "$aix_use_runtimelinking" = yes; then
17104
shared_flag='${wl}-G'
17106
shared_flag='${wl}-bM:SRE'
17111
# It seems that -bexpall does not export symbols beginning with
17112
# underscore (_), so it is better to generate a list of symbols to export.
17113
always_export_symbols_GCJ=yes
17114
if test "$aix_use_runtimelinking" = yes; then
17115
# Warning - without using the other runtime loading flags (-brtl),
17116
# -berok will link without error, but may produce a broken library.
17117
allow_undefined_flag_GCJ='-berok'
17118
# Determine the default libpath from the value encoded in an empty executable.
17119
cat >conftest.$ac_ext <<_ACEOF
17122
cat confdefs.h >>conftest.$ac_ext
17123
cat >>conftest.$ac_ext <<_ACEOF
17124
/* end confdefs.h. */
17134
rm -f conftest.$ac_objext conftest$ac_exeext
17135
if { (ac_try="$ac_link"
17136
case "(($ac_try" in
17137
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17138
*) ac_try_echo=$ac_try;;
17140
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17141
(eval "$ac_link") 2>conftest.er1
17143
grep -v '^ *+' conftest.er1 >conftest.err
17145
cat conftest.err >&5
17146
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147
(exit $ac_status); } && {
17148
test -z "$ac_c_werror_flag" ||
17149
test ! -s conftest.err
17150
} && test -s conftest$ac_exeext &&
17151
$as_test_x conftest$ac_exeext; then
17153
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17155
# Check for a 64-bit object if we didn't find anything.
17156
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17159
echo "$as_me: failed program was:" >&5
17160
sed 's/^/| /' conftest.$ac_ext >&5
17165
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17166
conftest$ac_exeext conftest.$ac_ext
17167
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17169
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17170
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"
17172
if test "$host_cpu" = ia64; then
17173
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17174
allow_undefined_flag_GCJ="-z nodefs"
17175
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"
17177
# Determine the default libpath from the value encoded in an empty executable.
17178
cat >conftest.$ac_ext <<_ACEOF
17181
cat confdefs.h >>conftest.$ac_ext
17182
cat >>conftest.$ac_ext <<_ACEOF
17183
/* end confdefs.h. */
17193
rm -f conftest.$ac_objext conftest$ac_exeext
17194
if { (ac_try="$ac_link"
17195
case "(($ac_try" in
17196
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17197
*) ac_try_echo=$ac_try;;
17199
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17200
(eval "$ac_link") 2>conftest.er1
17202
grep -v '^ *+' conftest.er1 >conftest.err
17204
cat conftest.err >&5
17205
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206
(exit $ac_status); } && {
17207
test -z "$ac_c_werror_flag" ||
17208
test ! -s conftest.err
17209
} && test -s conftest$ac_exeext &&
17210
$as_test_x conftest$ac_exeext; then
17212
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17214
# Check for a 64-bit object if we didn't find anything.
17215
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17218
echo "$as_me: failed program was:" >&5
17219
sed 's/^/| /' conftest.$ac_ext >&5
17224
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17225
conftest$ac_exeext conftest.$ac_ext
17226
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17228
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17229
# Warning - without using the other run time loading flags,
17230
# -berok will link without error, but may produce a broken library.
17231
no_undefined_flag_GCJ=' ${wl}-bernotok'
17232
allow_undefined_flag_GCJ=' ${wl}-berok'
17233
# Exported symbols can be pulled into shared objects from archives
17234
whole_archive_flag_spec_GCJ='$convenience'
17235
archive_cmds_need_lc_GCJ=yes
17236
# This is similar to how AIX traditionally builds its shared libraries.
17237
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'
17243
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)'
17244
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17245
hardcode_minus_L_GCJ=yes
17246
# see comment about different semantics on the GNU ld section
17251
export_dynamic_flag_spec_GCJ=-rdynamic
17254
cygwin* | mingw* | pw32*)
17255
# When not using gcc, we currently assume that we are using
17256
# Microsoft Visual C++.
17257
# hardcode_libdir_flag_spec is actually meaningless, as there is
17258
# no search path for DLLs.
17259
hardcode_libdir_flag_spec_GCJ=' '
17260
allow_undefined_flag_GCJ=unsupported
17261
# Tell ltmain to make .lib files, not .a files.
17263
# Tell ltmain to make .dll files, not .so files.
17265
# FIXME: Setting linknames here is a bad hack.
17266
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17267
# The linker will automatically build a .lib file if we build a DLL.
17268
old_archive_From_new_cmds_GCJ='true'
17269
# FIXME: Should let the user specify the lib program.
17270
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17271
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17272
enable_shared_with_static_runtimes_GCJ=yes
17275
darwin* | rhapsody*)
17277
rhapsody* | darwin1.[012])
17278
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17281
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17282
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17284
case ${MACOSX_DEPLOYMENT_TARGET} in
17286
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17289
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17295
archive_cmds_need_lc_GCJ=no
17296
hardcode_direct_GCJ=no
17297
hardcode_automatic_GCJ=yes
17298
hardcode_shlibpath_var_GCJ=unsupported
17299
whole_archive_flag_spec_GCJ=''
17300
link_all_deplibs_GCJ=yes
17301
if test "$GCC" = yes ; then
17302
output_verbose_link_cmd='echo'
17303
archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17304
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17305
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17306
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17307
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}'
17309
case $cc_basename in
17311
output_verbose_link_cmd='echo'
17312
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17313
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17314
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17315
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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17316
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}'
17326
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17327
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17328
hardcode_shlibpath_var_GCJ=no
17335
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17336
# support. Future versions do this automatically, but an explicit c++rt0.o
17337
# does not break anything, and helps significantly (at the cost of a little
17340
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17341
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17342
hardcode_direct_GCJ=yes
17343
hardcode_shlibpath_var_GCJ=no
17346
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
17348
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17349
hardcode_direct_GCJ=yes
17350
hardcode_minus_L_GCJ=yes
17351
hardcode_shlibpath_var_GCJ=no
17354
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17355
freebsd* | dragonfly*)
17356
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17357
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17358
hardcode_direct_GCJ=yes
17359
hardcode_shlibpath_var_GCJ=no
17363
if test "$GCC" = yes; then
17364
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'
17366
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'
17368
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17369
hardcode_libdir_separator_GCJ=:
17370
hardcode_direct_GCJ=yes
17372
# hardcode_minus_L: Not really in the search PATH,
17373
# but as the default location of the library.
17374
hardcode_minus_L_GCJ=yes
17375
export_dynamic_flag_spec_GCJ='${wl}-E'
17379
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17380
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17382
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17384
if test "$with_gnu_ld" = no; then
17385
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17386
hardcode_libdir_separator_GCJ=:
17388
hardcode_direct_GCJ=yes
17389
export_dynamic_flag_spec_GCJ='${wl}-E'
17391
# hardcode_minus_L: Not really in the search PATH,
17392
# but as the default location of the library.
17393
hardcode_minus_L_GCJ=yes
17398
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17401
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17404
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17407
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17413
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17416
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17419
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17423
if test "$with_gnu_ld" = no; then
17424
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17425
hardcode_libdir_separator_GCJ=:
17429
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17430
hardcode_direct_GCJ=no
17431
hardcode_shlibpath_var_GCJ=no
17434
hardcode_direct_GCJ=yes
17435
export_dynamic_flag_spec_GCJ='${wl}-E'
17437
# hardcode_minus_L: Not really in the search PATH,
17438
# but as the default location of the library.
17439
hardcode_minus_L_GCJ=yes
17445
irix5* | irix6* | nonstopux*)
17446
if test "$GCC" = yes; then
17447
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'
17449
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'
17450
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17452
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17453
hardcode_libdir_separator_GCJ=:
17454
link_all_deplibs_GCJ=yes
17457
netbsd* | netbsdelf*-gnu)
17458
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17459
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17461
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17463
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17464
hardcode_direct_GCJ=yes
17465
hardcode_shlibpath_var_GCJ=no
17469
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17470
hardcode_direct_GCJ=yes
17471
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17472
hardcode_libdir_separator_GCJ=:
17473
hardcode_shlibpath_var_GCJ=no
17477
hardcode_direct_GCJ=yes
17478
hardcode_shlibpath_var_GCJ=no
17479
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17480
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17481
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17482
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17483
export_dynamic_flag_spec_GCJ='${wl}-E'
17486
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17487
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17488
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17491
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17492
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17499
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17500
hardcode_minus_L_GCJ=yes
17501
allow_undefined_flag_GCJ=unsupported
17502
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'
17503
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17507
if test "$GCC" = yes; then
17508
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17509
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'
17511
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17512
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'
17514
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17515
hardcode_libdir_separator_GCJ=:
17518
osf4* | osf5*) # as osf3* with the addition of -msym flag
17519
if test "$GCC" = yes; then
17520
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17521
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'
17522
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17524
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17525
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'
17526
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~
17527
$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'
17529
# Both c and cxx compiler support -rpath directly
17530
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17532
hardcode_libdir_separator_GCJ=:
17536
no_undefined_flag_GCJ=' -z text'
17537
if test "$GCC" = yes; then
17539
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17540
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17541
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17544
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17545
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17546
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17548
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17549
hardcode_shlibpath_var_GCJ=no
17551
solaris2.[0-5] | solaris2.[0-5].*) ;;
17553
# The compiler driver will combine linker options so we
17554
# cannot just pass the convience library names through
17555
# without $wl, iff we do not link with $LD.
17556
# Luckily, gcc supports the same syntax we need for Sun Studio.
17557
# Supported since Solaris 2.6 (maybe 2.5.1?)
17560
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17562
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17565
link_all_deplibs_GCJ=yes
17569
if test "x$host_vendor" = xsequent; then
17570
# Use $CC to link under sequent, because it throws in some extra .o
17571
# files that make .init and .fini sections work.
17572
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17574
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17576
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17577
hardcode_direct_GCJ=yes
17578
hardcode_minus_L_GCJ=yes
17579
hardcode_shlibpath_var_GCJ=no
17583
case $host_vendor in
17585
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17586
hardcode_direct_GCJ=yes # is this really true???
17589
## LD is ld it makes a PLAMLIB
17590
## CC just makes a GrossModule.
17591
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17592
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17593
hardcode_direct_GCJ=no
17596
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17597
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17600
runpath_var='LD_RUN_PATH'
17601
hardcode_shlibpath_var_GCJ=no
17605
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17606
hardcode_shlibpath_var_GCJ=no
17607
export_dynamic_flag_spec_GCJ='-Bexport'
17611
if test -d /usr/nec; then
17612
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17613
hardcode_shlibpath_var_GCJ=no
17614
runpath_var=LD_RUN_PATH
17615
hardcode_runpath_var=yes
17620
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17621
no_undefined_flag_GCJ='${wl}-z,text'
17622
archive_cmds_need_lc_GCJ=no
17623
hardcode_shlibpath_var_GCJ=no
17624
runpath_var='LD_RUN_PATH'
17626
if test "$GCC" = yes; then
17627
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17628
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17630
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17631
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17635
sysv5* | sco3.2v5* | sco5v6*)
17636
# Note: We can NOT use -z defs as we might desire, because we do not
17637
# link with -lc, and that would cause any symbols used from libc to
17638
# always be unresolved, which means just about no library would
17639
# ever link correctly. If we're not using GNU ld we use -z text
17640
# though, which does catch some bad symbols but isn't as heavy-handed
17642
no_undefined_flag_GCJ='${wl}-z,text'
17643
allow_undefined_flag_GCJ='${wl}-z,nodefs'
17644
archive_cmds_need_lc_GCJ=no
17645
hardcode_shlibpath_var_GCJ=no
17646
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17647
hardcode_libdir_separator_GCJ=':'
17648
link_all_deplibs_GCJ=yes
17649
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17650
runpath_var='LD_RUN_PATH'
17652
if test "$GCC" = yes; then
17653
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17654
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17656
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17657
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17662
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17663
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17664
hardcode_shlibpath_var_GCJ=no
17673
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17674
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17675
test "$ld_shlibs_GCJ" = no && can_build_shared=no
17678
# Do we need to explicitly link libc?
17680
case "x$archive_cmds_need_lc_GCJ" in
17682
# Assume -lc should be added
17683
archive_cmds_need_lc_GCJ=yes
17685
if test "$enable_shared" = yes && test "$GCC" = yes; then
17686
case $archive_cmds_GCJ in
17688
# FIXME: we may have to deal with multi-command sequences.
17691
# Test whether the compiler implicitly links with -lc since on some
17692
# systems, -lgcc has to come before -lc. If gcc already passes -lc
17693
# to ld, don't add -lc before -lgcc.
17694
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17695
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17697
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17699
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17700
(eval $ac_compile) 2>&5
17702
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17703
(exit $ac_status); } 2>conftest.err; then
17706
libobjs=conftest.$ac_objext
17708
wl=$lt_prog_compiler_wl_GCJ
17709
pic_flag=$lt_prog_compiler_pic_GCJ
17715
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17716
allow_undefined_flag_GCJ=
17717
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17718
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17720
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721
(exit $ac_status); }
17723
archive_cmds_need_lc_GCJ=no
17725
archive_cmds_need_lc_GCJ=yes
17727
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17729
cat conftest.err 1>&5
17732
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17733
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17740
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17741
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17742
library_names_spec=
17743
libname_spec='lib$name'
17747
postuninstall_cmds=
17751
shlibpath_overrides_runpath=unknown
17753
dynamic_linker="$host_os ld.so"
17754
sys_lib_dlsearch_path_spec="/lib /usr/lib"
17755
if test "$GCC" = yes; then
17756
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17757
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17758
# if the path contains ";" then we assume it to be the separator
17759
# otherwise default to the standard path separator (i.e. ":") - it is
17760
# assumed that no part of a normal pathname contains ";" but that should
17761
# okay in the real world where ";" in dirpaths is itself problematic.
17762
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17764
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17767
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17769
need_lib_prefix=unknown
17770
hardcode_into_libs=no
17772
# when you set need_version to no, make sure it does not cause -set_version
17773
# flags to be left without arguments
17774
need_version=unknown
17779
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17780
shlibpath_var=LIBPATH
17782
# AIX 3 has no versioning support, so we append a major version to the name.
17783
soname_spec='${libname}${release}${shared_ext}$major'
17790
hardcode_into_libs=yes
17791
if test "$host_cpu" = ia64; then
17792
# AIX 5 supports IA64
17793
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17794
shlibpath_var=LD_LIBRARY_PATH
17796
# With GCC up to 2.95.x, collect2 would create an import file
17797
# for dependence libraries. The import file would start with
17798
# the line `#! .'. This would cause the generated library to
17799
# depend on `.', always an invalid library. This was fixed in
17800
# development snapshots of GCC prior to 3.0.
17802
aix4 | aix4.[01] | aix4.[01].*)
17803
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17805
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17808
can_build_shared=no
17812
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17813
# soname into executable. Probably we can add versioning support to
17814
# collect2, so additional links can be useful in future.
17815
if test "$aix_use_runtimelinking" = yes; then
17816
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
17817
# instead of lib<name>.a to let people know that these are not
17818
# typical AIX shared libraries.
17819
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17821
# We preserve .a as extension for shared libraries through AIX4.2
17822
# and later when we are not doing run time linking.
17823
library_names_spec='${libname}${release}.a $libname.a'
17824
soname_spec='${libname}${release}${shared_ext}$major'
17826
shlibpath_var=LIBPATH
17831
library_names_spec='$libname.ixlibrary $libname.a'
17832
# Create ${libname}_ixlibrary.a entries in /sys/libs.
17833
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'
17837
library_names_spec='${libname}${shared_ext}'
17838
dynamic_linker="$host_os ld.so"
17839
shlibpath_var=LIBRARY_PATH
17845
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17846
soname_spec='${libname}${release}${shared_ext}$major'
17847
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17848
shlibpath_var=LD_LIBRARY_PATH
17849
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17850
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17851
# the default ld.so.conf also contains /usr/contrib/lib and
17852
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17853
# libtool to hard-code these into programs
17856
cygwin* | mingw* | pw32*)
17857
version_type=windows
17862
case $GCC,$host_os in
17863
yes,cygwin* | yes,mingw* | yes,pw32*)
17864
library_names_spec='$libname.dll.a'
17865
# DLL is installed to $(libdir)/../bin by postinstall_cmds
17866
postinstall_cmds='base_file=`basename \${file}`~
17867
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17868
dldir=$destdir/`dirname \$dlpath`~
17869
test -d \$dldir || mkdir -p \$dldir~
17870
$install_prog $dir/$dlname \$dldir/$dlname~
17871
chmod a+x \$dldir/$dlname'
17872
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17873
dlpath=$dir/\$dldll~
17875
shlibpath_overrides_runpath=yes
17879
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
17880
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17881
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17884
# MinGW DLLs use traditional 'lib' prefix
17885
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17886
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17887
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17888
# It is most probably a Windows format PATH printed by
17889
# mingw gcc, but we are running on Cygwin. Gcc prints its search
17890
# path with ; separators, and with drive letters. We can handle the
17891
# drive letters (cygwin fileutils understands them), so leave them,
17892
# especially as we might pass files found there to a mingw objdump,
17893
# which wouldn't understand a cygwinified path. Ahh.
17894
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17896
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17900
# pw32 DLLs use 'pw' prefix rather than 'lib'
17901
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17907
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17910
dynamic_linker='Win32 ld.exe'
17911
# FIXME: first we should search . and the directory the executable is in
17915
darwin* | rhapsody*)
17916
dynamic_linker="$host_os dyld"
17917
version_type=darwin
17920
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17921
soname_spec='${libname}${release}${major}$shared_ext'
17922
shlibpath_overrides_runpath=yes
17923
shlibpath_var=DYLD_LIBRARY_PATH
17924
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17925
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17926
if test "$GCC" = yes; then
17927
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17929
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17931
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17938
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17939
soname_spec='${libname}${release}${shared_ext}$major'
17940
shlibpath_var=LD_LIBRARY_PATH
17947
freebsd* | dragonfly*)
17948
# DragonFly does not have aout. When/if they implement a new
17949
# versioning mechanism, adjust this.
17950
if test -x /usr/bin/objformat; then
17951
objformat=`/usr/bin/objformat`
17954
freebsd[123]*) objformat=aout ;;
17955
*) objformat=elf ;;
17958
version_type=freebsd-$objformat
17959
case $version_type in
17961
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17966
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17970
shlibpath_var=LD_LIBRARY_PATH
17973
shlibpath_overrides_runpath=yes
17975
freebsd3.[01]* | freebsdelf3.[01]*)
17976
shlibpath_overrides_runpath=yes
17977
hardcode_into_libs=yes
17979
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17980
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17981
shlibpath_overrides_runpath=no
17982
hardcode_into_libs=yes
17984
freebsd*) # from 4.6 on
17985
shlibpath_overrides_runpath=yes
17986
hardcode_into_libs=yes
17995
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17996
soname_spec='${libname}${release}${shared_ext}$major'
17997
shlibpath_var=LD_LIBRARY_PATH
17998
hardcode_into_libs=yes
18001
hpux9* | hpux10* | hpux11*)
18002
# Give a soname corresponding to the major version so that dld.sl refuses to
18003
# link against other versions.
18010
hardcode_into_libs=yes
18011
dynamic_linker="$host_os dld.so"
18012
shlibpath_var=LD_LIBRARY_PATH
18013
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18014
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18015
soname_spec='${libname}${release}${shared_ext}$major'
18016
if test "X$HPUX_IA64_MODE" = X32; then
18017
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18019
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18021
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18025
hardcode_into_libs=yes
18026
dynamic_linker="$host_os dld.sl"
18027
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18028
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18029
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18030
soname_spec='${libname}${release}${shared_ext}$major'
18031
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18032
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18036
dynamic_linker="$host_os dld.sl"
18037
shlibpath_var=SHLIB_PATH
18038
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18039
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18040
soname_spec='${libname}${release}${shared_ext}$major'
18043
# HP-UX runs *really* slowly unless shared libraries are mode 555.
18044
postinstall_cmds='chmod 555 $lib'
18051
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18052
soname_spec='${libname}${release}${shared_ext}$major'
18053
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18054
shlibpath_var=LD_LIBRARY_PATH
18055
shlibpath_overrides_runpath=no
18056
hardcode_into_libs=yes
18059
irix5* | irix6* | nonstopux*)
18061
nonstopux*) version_type=nonstopux ;;
18063
if test "$lt_cv_prog_gnu_ld" = yes; then
18071
soname_spec='${libname}${release}${shared_ext}$major'
18072
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18074
irix5* | nonstopux*)
18075
libsuff= shlibsuff=
18078
case $LD in # libtool.m4 will add one of these switches to LD
18079
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18080
libsuff= shlibsuff= libmagic=32-bit;;
18081
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18082
libsuff=32 shlibsuff=N32 libmagic=N32;;
18083
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18084
libsuff=64 shlibsuff=64 libmagic=64-bit;;
18085
*) libsuff= shlibsuff= libmagic=never-match;;
18089
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18090
shlibpath_overrides_runpath=no
18091
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18092
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18093
hardcode_into_libs=yes
18096
# No shared lib support for Linux oldld, aout, or coff.
18097
linux*oldld* | linux*aout* | linux*coff*)
18101
# This must be Linux ELF.
18102
linux* | k*bsd*-gnu)
18106
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18107
soname_spec='${libname}${release}${shared_ext}$major'
18108
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18109
shlibpath_var=LD_LIBRARY_PATH
18110
shlibpath_overrides_runpath=no
18111
# This implies no fast_install, which is unacceptable.
18112
# Some rework will be needed to allow for fast_install
18113
# before this can be enabled.
18114
hardcode_into_libs=yes
18116
# Append ld.so.conf contents to the search path
18117
if test -f /etc/ld.so.conf; then
18118
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18119
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18122
# We used to test for /lib/ld.so.1 and disable shared libraries on
18123
# powerpc, because MkLinux only supported shared libraries with the
18124
# GNU dynamic linker. Since this was broken with cross compilers,
18125
# most powerpc-linux boxes support dynamic linking these days and
18126
# people can always --disable-shared, the test was removed, and we
18127
# assume the GNU/Linux dynamic linker is in use.
18128
dynamic_linker='GNU/Linux ld.so'
18135
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18136
soname_spec='${libname}${release}${shared_ext}$major'
18137
shlibpath_var=LD_LIBRARY_PATH
18138
shlibpath_overrides_runpath=no
18139
hardcode_into_libs=yes
18140
dynamic_linker='NetBSD ld.elf_so'
18147
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18148
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18149
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18150
dynamic_linker='NetBSD (a.out) ld.so'
18152
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18153
soname_spec='${libname}${release}${shared_ext}$major'
18154
dynamic_linker='NetBSD ld.elf_so'
18156
shlibpath_var=LD_LIBRARY_PATH
18157
shlibpath_overrides_runpath=yes
18158
hardcode_into_libs=yes
18163
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18164
shlibpath_var=LD_LIBRARY_PATH
18165
shlibpath_overrides_runpath=yes
18172
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18173
soname_spec='${libname}${release}${shared_ext}$major'
18174
shlibpath_var=LD_LIBRARY_PATH
18175
shlibpath_overrides_runpath=yes
18180
sys_lib_dlsearch_path_spec="/usr/lib"
18182
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18184
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18185
*) need_version=no ;;
18187
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18188
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18189
shlibpath_var=LD_LIBRARY_PATH
18190
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18192
openbsd2.[89] | openbsd2.[89].*)
18193
shlibpath_overrides_runpath=no
18196
shlibpath_overrides_runpath=yes
18200
shlibpath_overrides_runpath=yes
18205
libname_spec='$name'
18208
library_names_spec='$libname${shared_ext} $libname.a'
18209
dynamic_linker='OS/2 ld.exe'
18210
shlibpath_var=LIBPATH
18213
osf3* | osf4* | osf5*)
18217
soname_spec='${libname}${release}${shared_ext}$major'
18218
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18219
shlibpath_var=LD_LIBRARY_PATH
18220
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18221
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18228
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18229
soname_spec='${libname}${release}${shared_ext}$major'
18230
shlibpath_var=LD_LIBRARY_PATH
18231
shlibpath_overrides_runpath=yes
18232
hardcode_into_libs=yes
18233
# ldd complains unless libraries are executable
18234
postinstall_cmds='chmod +x $lib'
18239
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18240
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18241
shlibpath_var=LD_LIBRARY_PATH
18242
shlibpath_overrides_runpath=yes
18243
if test "$with_gnu_ld" = yes; then
18251
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18252
soname_spec='${libname}${release}${shared_ext}$major'
18253
shlibpath_var=LD_LIBRARY_PATH
18254
case $host_vendor in
18256
shlibpath_overrides_runpath=no
18258
export_dynamic_flag_spec='${wl}-Blargedynsym'
18259
runpath_var=LD_RUN_PATH
18267
shlibpath_overrides_runpath=no
18268
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18274
if test -d /usr/nec ;then
18276
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18277
soname_spec='$libname${shared_ext}.$major'
18278
shlibpath_var=LD_LIBRARY_PATH
18282
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18283
version_type=freebsd-elf
18286
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18287
soname_spec='${libname}${release}${shared_ext}$major'
18288
shlibpath_var=LD_LIBRARY_PATH
18289
hardcode_into_libs=yes
18290
if test "$with_gnu_ld" = yes; then
18291
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18292
shlibpath_overrides_runpath=no
18294
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18295
shlibpath_overrides_runpath=yes
18298
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18302
sys_lib_dlsearch_path_spec='/usr/lib'
18307
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18308
soname_spec='${libname}${release}${shared_ext}$major'
18309
shlibpath_var=LD_LIBRARY_PATH
18316
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18317
echo "${ECHO_T}$dynamic_linker" >&6; }
18318
test "$dynamic_linker" = no && can_build_shared=no
18320
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18321
if test "$GCC" = yes; then
18322
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18325
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18326
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18327
hardcode_action_GCJ=
18328
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18329
test -n "$runpath_var_GCJ" || \
18330
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18332
# We can hardcode non-existant directories.
18333
if test "$hardcode_direct_GCJ" != no &&
18334
# If the only mechanism to avoid hardcoding is shlibpath_var, we
18335
# have to relink, otherwise we might link with an installed library
18336
# when we should be linking with a yet-to-be-installed one
18337
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18338
test "$hardcode_minus_L_GCJ" != no; then
18339
# Linking always hardcodes the temporary library directory.
18340
hardcode_action_GCJ=relink
18342
# We can link without hardcoding, and we can hardcode nonexisting dirs.
18343
hardcode_action_GCJ=immediate
18346
# We cannot hardcode anything, or else we can only hardcode existing
18348
hardcode_action_GCJ=unsupported
18350
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18351
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18353
if test "$hardcode_action_GCJ" = relink; then
18354
# Fast installation is not supported
18355
enable_fast_install=no
18356
elif test "$shlibpath_overrides_runpath" = yes ||
18357
test "$enable_shared" = no; then
18358
# Fast installation is not necessary
18359
enable_fast_install=needless
18363
# The else clause should only fire when bootstrapping the
18364
# libtool distribution, otherwise you forgot to ship ltmain.sh
18365
# with your package, and you will get complaints that there are
18366
# no rules to generate ltmain.sh.
18367
if test -f "$ltmain"; then
18368
# See if we are running on zsh, and set the options which allow our commands through
18369
# without removal of \ escapes.
18370
if test -n "${ZSH_VERSION+set}" ; then
18371
setopt NO_GLOB_SUBST
18373
# Now quote all the things that may contain metacharacters while being
18374
# careful not to overquote the AC_SUBSTed values. We take copies of the
18375
# variables and quote the copies for generation of the libtool script.
18376
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18378
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18379
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18380
deplibs_check_method reload_flag reload_cmds need_locks \
18381
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18382
lt_cv_sys_global_symbol_to_c_name_address \
18383
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18384
old_postinstall_cmds old_postuninstall_cmds \
18388
lt_prog_compiler_wl_GCJ \
18389
lt_prog_compiler_pic_GCJ \
18390
lt_prog_compiler_static_GCJ \
18391
lt_prog_compiler_no_builtin_flag_GCJ \
18392
export_dynamic_flag_spec_GCJ \
18393
thread_safe_flag_spec_GCJ \
18394
whole_archive_flag_spec_GCJ \
18395
enable_shared_with_static_runtimes_GCJ \
18396
old_archive_cmds_GCJ \
18397
old_archive_from_new_cmds_GCJ \
18398
predep_objects_GCJ \
18399
postdep_objects_GCJ \
18402
compiler_lib_search_path_GCJ \
18404
archive_expsym_cmds_GCJ \
18405
postinstall_cmds_GCJ \
18406
postuninstall_cmds_GCJ \
18407
old_archive_from_expsyms_cmds_GCJ \
18408
allow_undefined_flag_GCJ \
18409
no_undefined_flag_GCJ \
18410
export_symbols_cmds_GCJ \
18411
hardcode_libdir_flag_spec_GCJ \
18412
hardcode_libdir_flag_spec_ld_GCJ \
18413
hardcode_libdir_separator_GCJ \
18414
hardcode_automatic_GCJ \
18416
module_expsym_cmds_GCJ \
18417
lt_cv_prog_compiler_c_o_GCJ \
18418
exclude_expsyms_GCJ \
18419
include_expsyms_GCJ; do
18422
old_archive_cmds_GCJ | \
18423
old_archive_from_new_cmds_GCJ | \
18424
archive_cmds_GCJ | \
18425
archive_expsym_cmds_GCJ | \
18426
module_cmds_GCJ | \
18427
module_expsym_cmds_GCJ | \
18428
old_archive_from_expsyms_cmds_GCJ | \
18429
export_symbols_cmds_GCJ | \
18430
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18431
postinstall_cmds | postuninstall_cmds | \
18432
old_postinstall_cmds | old_postuninstall_cmds | \
18433
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18434
# Double-quote double-evaled strings.
18435
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18438
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18444
*'\$0 --fallback-echo"')
18445
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18451
cat <<__EOF__ >> "$cfgfile"
18452
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18454
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18456
# Shell to use when invoking shell scripts.
18459
# Whether or not to build shared libraries.
18460
build_libtool_libs=$enable_shared
18462
# Whether or not to build static libraries.
18463
build_old_libs=$enable_static
18465
# Whether or not to add -lc for building shared libraries.
18466
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18468
# Whether or not to disallow shared libs when runtime libs are static
18469
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18471
# Whether or not to optimize for fast installation.
18472
fast_install=$enable_fast_install
18475
host_alias=$host_alias
18479
# The build system.
18480
build_alias=$build_alias
18484
# An echo program that does not interpret backslashes.
18489
AR_FLAGS=$lt_AR_FLAGS
18494
# LTCC compiler flags.
18495
LTCFLAGS=$lt_LTCFLAGS
18497
# A language-specific compiler.
18498
CC=$lt_compiler_GCJ
18500
# Is the compiler the GNU C compiler?
18506
# The linker used to build libraries.
18509
# Whether we need hard or soft links.
18512
# A BSD-compatible nm program.
18515
# A symbol stripping program
18518
# Used to examine libraries when file_magic_cmd begins "file"
18519
MAGIC_CMD=$MAGIC_CMD
18521
# Used on cygwin: DLL creation program.
18524
# Used on cygwin: object dumper.
18527
# Used on cygwin: assembler.
18530
# The name of the directory that contains temporary libtool files.
18533
# How to create reloadable object files.
18534
reload_flag=$lt_reload_flag
18535
reload_cmds=$lt_reload_cmds
18537
# How to pass a linker flag through the compiler.
18538
wl=$lt_lt_prog_compiler_wl_GCJ
18540
# Object file suffix (normally "o").
18541
objext="$ac_objext"
18543
# Old archive suffix (normally "a").
18546
# Shared library suffix (normally ".so").
18547
shrext_cmds='$shrext_cmds'
18549
# Executable file suffix (normally "").
18552
# Additional compiler flags for building library objects.
18553
pic_flag=$lt_lt_prog_compiler_pic_GCJ
18556
# What is the maximum length of a command?
18557
max_cmd_len=$lt_cv_sys_max_cmd_len
18559
# Does compiler simultaneously support -c and -o options?
18560
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18562
# Must we lock files when doing compilation?
18563
need_locks=$lt_need_locks
18565
# Do we need the lib prefix for modules?
18566
need_lib_prefix=$need_lib_prefix
18568
# Do we need a version for libraries?
18569
need_version=$need_version
18571
# Whether dlopen is supported.
18572
dlopen_support=$enable_dlopen
18574
# Whether dlopen of programs is supported.
18575
dlopen_self=$enable_dlopen_self
18577
# Whether dlopen of statically linked programs is supported.
18578
dlopen_self_static=$enable_dlopen_self_static
18580
# Compiler flag to prevent dynamic linking.
18581
link_static_flag=$lt_lt_prog_compiler_static_GCJ
18583
# Compiler flag to turn off builtin functions.
18584
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18586
# Compiler flag to allow reflexive dlopens.
18587
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18589
# Compiler flag to generate shared objects directly from archives.
18590
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18592
# Compiler flag to generate thread-safe objects.
18593
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18595
# Library versioning type.
18596
version_type=$version_type
18598
# Format of library name prefix.
18599
libname_spec=$lt_libname_spec
18601
# List of archive names. First name is the real one, the rest are links.
18602
# The last name is the one that the linker finds with -lNAME.
18603
library_names_spec=$lt_library_names_spec
18605
# The coded name of the library, if different from the real name.
18606
soname_spec=$lt_soname_spec
18608
# Commands used to build and install an old-style archive.
18610
old_archive_cmds=$lt_old_archive_cmds_GCJ
18611
old_postinstall_cmds=$lt_old_postinstall_cmds
18612
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18614
# Create an old-style archive from a shared archive.
18615
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18617
# Create a temporary old-style archive to link instead of a shared archive.
18618
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18620
# Commands used to build and install a shared archive.
18621
archive_cmds=$lt_archive_cmds_GCJ
18622
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18623
postinstall_cmds=$lt_postinstall_cmds
18624
postuninstall_cmds=$lt_postuninstall_cmds
18626
# Commands used to build a loadable module (assumed same as above if empty)
18627
module_cmds=$lt_module_cmds_GCJ
18628
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18630
# Commands to strip libraries.
18631
old_striplib=$lt_old_striplib
18632
striplib=$lt_striplib
18634
# Dependencies to place before the objects being linked to create a
18636
predep_objects=$lt_predep_objects_GCJ
18638
# Dependencies to place after the objects being linked to create a
18640
postdep_objects=$lt_postdep_objects_GCJ
18642
# Dependencies to place before the objects being linked to create a
18644
predeps=$lt_predeps_GCJ
18646
# Dependencies to place after the objects being linked to create a
18648
postdeps=$lt_postdeps_GCJ
18650
# The library search path used internally by the compiler when linking
18651
# a shared library.
18652
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18654
# Method to check whether dependent libraries are shared objects.
18655
deplibs_check_method=$lt_deplibs_check_method
18657
# Command to use when deplibs_check_method == file_magic.
18658
file_magic_cmd=$lt_file_magic_cmd
18660
# Flag that allows shared libraries with undefined symbols to be built.
18661
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18663
# Flag that forces no undefined symbols.
18664
no_undefined_flag=$lt_no_undefined_flag_GCJ
18666
# Commands used to finish a libtool library installation in a directory.
18667
finish_cmds=$lt_finish_cmds
18669
# Same as above, but a single script fragment to be evaled but not shown.
18670
finish_eval=$lt_finish_eval
18672
# Take the output of nm and produce a listing of raw symbols and C names.
18673
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18675
# Transform the output of nm in a proper C declaration
18676
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18678
# Transform the output of nm in a C name address pair
18679
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18681
# This is the shared library runtime path variable.
18682
runpath_var=$runpath_var
18684
# This is the shared library path variable.
18685
shlibpath_var=$shlibpath_var
18687
# Is shlibpath searched before the hard-coded library search path?
18688
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18690
# How to hardcode a shared library path into an executable.
18691
hardcode_action=$hardcode_action_GCJ
18693
# Whether we should hardcode library paths into libraries.
18694
hardcode_into_libs=$hardcode_into_libs
18696
# Flag to hardcode \$libdir into a binary during linking.
18697
# This must work even if \$libdir does not exist.
18698
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18700
# If ld is used when linking, flag to hardcode \$libdir into
18701
# a binary during linking. This must work even if \$libdir does
18703
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18705
# Whether we need a single -rpath flag with a separated argument.
18706
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18708
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18709
# resulting binary.
18710
hardcode_direct=$hardcode_direct_GCJ
18712
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18713
# resulting binary.
18714
hardcode_minus_L=$hardcode_minus_L_GCJ
18716
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18717
# the resulting binary.
18718
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18720
# Set to yes if building a shared library automatically hardcodes DIR into the library
18721
# and all subsequent libraries and executables linked against it.
18722
hardcode_automatic=$hardcode_automatic_GCJ
18724
# Variables whose values should be saved in libtool wrapper scripts and
18725
# restored at relink time.
18726
variables_saved_for_relink="$variables_saved_for_relink"
18728
# Whether libtool must link a program against all its dependency libraries.
18729
link_all_deplibs=$link_all_deplibs_GCJ
18731
# Compile-time system search path for libraries
18732
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18734
# Run-time system search path for libraries
18735
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18737
# Fix the shell variable \$srcfile for the compiler.
18738
fix_srcfile_path="$fix_srcfile_path_GCJ"
18740
# Set to yes if exported symbols are required.
18741
always_export_symbols=$always_export_symbols_GCJ
18743
# The commands to list exported symbols.
18744
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18746
# The commands to extract the exported symbol list from a shared archive.
18747
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18749
# Symbols that should not be listed in the preloaded symbols.
18750
exclude_expsyms=$lt_exclude_expsyms_GCJ
18752
# Symbols that must always be exported.
18753
include_expsyms=$lt_include_expsyms_GCJ
18755
# ### END LIBTOOL TAG CONFIG: $tagname
18761
# If there is no Makefile yet, we rely on a make rule to execute
18762
# `config.status --recheck' to rerun these tests and create the
18763
# libtool script then.
18764
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18765
if test -f "$ltmain_in"; then
18766
test -f Makefile && make "$ltmain"
18772
ac_cpp='$CPP $CPPFLAGS'
18773
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18774
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18775
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18787
# Source file extension for RC test sources.
18790
# Object file extension for compiled RC test sources.
18794
# Code to be used in simple compile tests
18795
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18797
# Code to be used in simple link tests
18798
lt_simple_link_test_code="$lt_simple_compile_test_code"
18800
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18802
# If no C compiler was specified, use CC.
18805
# If no C compiler flags were specified, use CFLAGS.
18806
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18808
# Allow CC to be a program name with arguments.
18812
# save warnings/boilerplate of simple test code
18813
ac_outfile=conftest.$ac_objext
18814
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18815
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18816
_lt_compiler_boilerplate=`cat conftest.err`
18819
ac_outfile=conftest.$ac_objext
18820
printf "$lt_simple_link_test_code" >conftest.$ac_ext
18821
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18822
_lt_linker_boilerplate=`cat conftest.err`
18826
# Allow CC to be a program name with arguments.
18831
for cc_temp in $compiler""; do
18833
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18834
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18839
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18841
lt_cv_prog_compiler_c_o_RC=yes
18843
# The else clause should only fire when bootstrapping the
18844
# libtool distribution, otherwise you forgot to ship ltmain.sh
18845
# with your package, and you will get complaints that there are
18846
# no rules to generate ltmain.sh.
18847
if test -f "$ltmain"; then
18848
# See if we are running on zsh, and set the options which allow our commands through
18849
# without removal of \ escapes.
18850
if test -n "${ZSH_VERSION+set}" ; then
18851
setopt NO_GLOB_SUBST
18853
# Now quote all the things that may contain metacharacters while being
18854
# careful not to overquote the AC_SUBSTed values. We take copies of the
18855
# variables and quote the copies for generation of the libtool script.
18856
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18858
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18859
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18860
deplibs_check_method reload_flag reload_cmds need_locks \
18861
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18862
lt_cv_sys_global_symbol_to_c_name_address \
18863
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18864
old_postinstall_cmds old_postuninstall_cmds \
18868
lt_prog_compiler_wl_RC \
18869
lt_prog_compiler_pic_RC \
18870
lt_prog_compiler_static_RC \
18871
lt_prog_compiler_no_builtin_flag_RC \
18872
export_dynamic_flag_spec_RC \
18873
thread_safe_flag_spec_RC \
18874
whole_archive_flag_spec_RC \
18875
enable_shared_with_static_runtimes_RC \
18876
old_archive_cmds_RC \
18877
old_archive_from_new_cmds_RC \
18878
predep_objects_RC \
18879
postdep_objects_RC \
18882
compiler_lib_search_path_RC \
18884
archive_expsym_cmds_RC \
18885
postinstall_cmds_RC \
18886
postuninstall_cmds_RC \
18887
old_archive_from_expsyms_cmds_RC \
18888
allow_undefined_flag_RC \
18889
no_undefined_flag_RC \
18890
export_symbols_cmds_RC \
18891
hardcode_libdir_flag_spec_RC \
18892
hardcode_libdir_flag_spec_ld_RC \
18893
hardcode_libdir_separator_RC \
18894
hardcode_automatic_RC \
18896
module_expsym_cmds_RC \
18897
lt_cv_prog_compiler_c_o_RC \
18898
exclude_expsyms_RC \
18899
include_expsyms_RC; do
18902
old_archive_cmds_RC | \
18903
old_archive_from_new_cmds_RC | \
18904
archive_cmds_RC | \
18905
archive_expsym_cmds_RC | \
18907
module_expsym_cmds_RC | \
18908
old_archive_from_expsyms_cmds_RC | \
18909
export_symbols_cmds_RC | \
18910
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18911
postinstall_cmds | postuninstall_cmds | \
18912
old_postinstall_cmds | old_postuninstall_cmds | \
18913
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18914
# Double-quote double-evaled strings.
18915
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18918
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18924
*'\$0 --fallback-echo"')
18925
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18931
cat <<__EOF__ >> "$cfgfile"
18932
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18934
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18936
# Shell to use when invoking shell scripts.
18939
# Whether or not to build shared libraries.
18940
build_libtool_libs=$enable_shared
18942
# Whether or not to build static libraries.
18943
build_old_libs=$enable_static
18945
# Whether or not to add -lc for building shared libraries.
18946
build_libtool_need_lc=$archive_cmds_need_lc_RC
18948
# Whether or not to disallow shared libs when runtime libs are static
18949
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18951
# Whether or not to optimize for fast installation.
18952
fast_install=$enable_fast_install
18955
host_alias=$host_alias
18959
# The build system.
18960
build_alias=$build_alias
18964
# An echo program that does not interpret backslashes.
18969
AR_FLAGS=$lt_AR_FLAGS
18974
# LTCC compiler flags.
18975
LTCFLAGS=$lt_LTCFLAGS
18977
# A language-specific compiler.
18980
# Is the compiler the GNU C compiler?
18986
# The linker used to build libraries.
18989
# Whether we need hard or soft links.
18992
# A BSD-compatible nm program.
18995
# A symbol stripping program
18998
# Used to examine libraries when file_magic_cmd begins "file"
18999
MAGIC_CMD=$MAGIC_CMD
19001
# Used on cygwin: DLL creation program.
19004
# Used on cygwin: object dumper.
19007
# Used on cygwin: assembler.
19010
# The name of the directory that contains temporary libtool files.
19013
# How to create reloadable object files.
19014
reload_flag=$lt_reload_flag
19015
reload_cmds=$lt_reload_cmds
19017
# How to pass a linker flag through the compiler.
19018
wl=$lt_lt_prog_compiler_wl_RC
19020
# Object file suffix (normally "o").
19021
objext="$ac_objext"
19023
# Old archive suffix (normally "a").
19026
# Shared library suffix (normally ".so").
19027
shrext_cmds='$shrext_cmds'
19029
# Executable file suffix (normally "").
19032
# Additional compiler flags for building library objects.
19033
pic_flag=$lt_lt_prog_compiler_pic_RC
19036
# What is the maximum length of a command?
19037
max_cmd_len=$lt_cv_sys_max_cmd_len
19039
# Does compiler simultaneously support -c and -o options?
19040
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19042
# Must we lock files when doing compilation?
19043
need_locks=$lt_need_locks
19045
# Do we need the lib prefix for modules?
19046
need_lib_prefix=$need_lib_prefix
19048
# Do we need a version for libraries?
19049
need_version=$need_version
19051
# Whether dlopen is supported.
19052
dlopen_support=$enable_dlopen
19054
# Whether dlopen of programs is supported.
19055
dlopen_self=$enable_dlopen_self
19057
# Whether dlopen of statically linked programs is supported.
19058
dlopen_self_static=$enable_dlopen_self_static
19060
# Compiler flag to prevent dynamic linking.
19061
link_static_flag=$lt_lt_prog_compiler_static_RC
19063
# Compiler flag to turn off builtin functions.
19064
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19066
# Compiler flag to allow reflexive dlopens.
19067
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19069
# Compiler flag to generate shared objects directly from archives.
19070
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19072
# Compiler flag to generate thread-safe objects.
19073
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19075
# Library versioning type.
19076
version_type=$version_type
19078
# Format of library name prefix.
19079
libname_spec=$lt_libname_spec
19081
# List of archive names. First name is the real one, the rest are links.
19082
# The last name is the one that the linker finds with -lNAME.
19083
library_names_spec=$lt_library_names_spec
19085
# The coded name of the library, if different from the real name.
19086
soname_spec=$lt_soname_spec
19088
# Commands used to build and install an old-style archive.
19090
old_archive_cmds=$lt_old_archive_cmds_RC
19091
old_postinstall_cmds=$lt_old_postinstall_cmds
19092
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19094
# Create an old-style archive from a shared archive.
19095
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19097
# Create a temporary old-style archive to link instead of a shared archive.
19098
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19100
# Commands used to build and install a shared archive.
19101
archive_cmds=$lt_archive_cmds_RC
19102
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19103
postinstall_cmds=$lt_postinstall_cmds
19104
postuninstall_cmds=$lt_postuninstall_cmds
19106
# Commands used to build a loadable module (assumed same as above if empty)
19107
module_cmds=$lt_module_cmds_RC
19108
module_expsym_cmds=$lt_module_expsym_cmds_RC
19110
# Commands to strip libraries.
19111
old_striplib=$lt_old_striplib
19112
striplib=$lt_striplib
19114
# Dependencies to place before the objects being linked to create a
19116
predep_objects=$lt_predep_objects_RC
19118
# Dependencies to place after the objects being linked to create a
19120
postdep_objects=$lt_postdep_objects_RC
19122
# Dependencies to place before the objects being linked to create a
19124
predeps=$lt_predeps_RC
19126
# Dependencies to place after the objects being linked to create a
19128
postdeps=$lt_postdeps_RC
19130
# The library search path used internally by the compiler when linking
19131
# a shared library.
19132
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19134
# Method to check whether dependent libraries are shared objects.
19135
deplibs_check_method=$lt_deplibs_check_method
19137
# Command to use when deplibs_check_method == file_magic.
19138
file_magic_cmd=$lt_file_magic_cmd
19140
# Flag that allows shared libraries with undefined symbols to be built.
19141
allow_undefined_flag=$lt_allow_undefined_flag_RC
19143
# Flag that forces no undefined symbols.
19144
no_undefined_flag=$lt_no_undefined_flag_RC
19146
# Commands used to finish a libtool library installation in a directory.
19147
finish_cmds=$lt_finish_cmds
19149
# Same as above, but a single script fragment to be evaled but not shown.
19150
finish_eval=$lt_finish_eval
19152
# Take the output of nm and produce a listing of raw symbols and C names.
19153
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19155
# Transform the output of nm in a proper C declaration
19156
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19158
# Transform the output of nm in a C name address pair
19159
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19161
# This is the shared library runtime path variable.
19162
runpath_var=$runpath_var
19164
# This is the shared library path variable.
19165
shlibpath_var=$shlibpath_var
19167
# Is shlibpath searched before the hard-coded library search path?
19168
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19170
# How to hardcode a shared library path into an executable.
19171
hardcode_action=$hardcode_action_RC
19173
# Whether we should hardcode library paths into libraries.
19174
hardcode_into_libs=$hardcode_into_libs
19176
# Flag to hardcode \$libdir into a binary during linking.
19177
# This must work even if \$libdir does not exist.
19178
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19180
# If ld is used when linking, flag to hardcode \$libdir into
19181
# a binary during linking. This must work even if \$libdir does
19183
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19185
# Whether we need a single -rpath flag with a separated argument.
19186
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19188
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19189
# resulting binary.
19190
hardcode_direct=$hardcode_direct_RC
19192
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19193
# resulting binary.
19194
hardcode_minus_L=$hardcode_minus_L_RC
19196
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19197
# the resulting binary.
19198
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19200
# Set to yes if building a shared library automatically hardcodes DIR into the library
19201
# and all subsequent libraries and executables linked against it.
19202
hardcode_automatic=$hardcode_automatic_RC
19204
# Variables whose values should be saved in libtool wrapper scripts and
19205
# restored at relink time.
19206
variables_saved_for_relink="$variables_saved_for_relink"
19208
# Whether libtool must link a program against all its dependency libraries.
19209
link_all_deplibs=$link_all_deplibs_RC
19211
# Compile-time system search path for libraries
19212
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19214
# Run-time system search path for libraries
19215
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19217
# Fix the shell variable \$srcfile for the compiler.
19218
fix_srcfile_path="$fix_srcfile_path_RC"
19220
# Set to yes if exported symbols are required.
19221
always_export_symbols=$always_export_symbols_RC
19223
# The commands to list exported symbols.
19224
export_symbols_cmds=$lt_export_symbols_cmds_RC
19226
# The commands to extract the exported symbol list from a shared archive.
19227
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19229
# Symbols that should not be listed in the preloaded symbols.
19230
exclude_expsyms=$lt_exclude_expsyms_RC
19232
# Symbols that must always be exported.
19233
include_expsyms=$lt_include_expsyms_RC
19235
# ### END LIBTOOL TAG CONFIG: $tagname
19241
# If there is no Makefile yet, we rely on a make rule to execute
19242
# `config.status --recheck' to rerun these tests and create the
19243
# libtool script then.
19244
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19245
if test -f "$ltmain_in"; then
19246
test -f Makefile && make "$ltmain"
19252
ac_cpp='$CPP $CPPFLAGS'
19253
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19254
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19255
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19262
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19263
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19264
{ (exit 1); exit 1; }; }
19268
# Append the new tag name to the list of available tags.
19269
if test -n "$tagname" ; then
19270
available_tags="$available_tags $tagname"
19276
# Now substitute the updated list of available tags.
19277
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19278
mv "${ofile}T" "$ofile"
19282
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19283
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19284
{ (exit 1); exit 1; }; }
19290
# This can be used to rebuild libtool when needed
19291
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19293
# Always use our own libtool.
19294
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19296
# Prevent multiple expansion
19318
ALL_LINGUAS="be cs da es fr hr hu nl ro ru sv uk"
12064
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12065
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12066
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12067
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12068
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12069
{ echo "$as_me:$LINENO: result: yes" >&5
12070
echo "${ECHO_T}yes" >&6; }
12072
# FIXME - insert some real tests, host_os isn't really good enough
12075
if test -n "$STRIP" ; then
12076
striplib="$STRIP -x"
12077
old_striplib="$STRIP -S"
12078
{ echo "$as_me:$LINENO: result: yes" >&5
12079
echo "${ECHO_T}yes" >&6; }
12081
{ echo "$as_me:$LINENO: result: no" >&5
12082
echo "${ECHO_T}no" >&6; }
12086
{ echo "$as_me:$LINENO: result: no" >&5
12087
echo "${ECHO_T}no" >&6; }
12103
# Report which library types will actually be built
12104
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12105
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12106
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
12107
echo "${ECHO_T}$can_build_shared" >&6; }
12109
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12110
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12111
test "$can_build_shared" = "no" && enable_shared=no
12113
# On AIX, shared libraries and static libraries use the same namespace, and
12114
# are all built from PIC.
12117
test "$enable_shared" = yes && enable_static=no
12118
if test -n "$RANLIB"; then
12119
archive_cmds="$archive_cmds~\$RANLIB \$lib"
12120
postinstall_cmds='$RANLIB $lib'
12125
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12126
test "$enable_shared" = yes && enable_static=no
12130
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
12131
echo "${ECHO_T}$enable_shared" >&6; }
12133
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12134
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12135
# Make sure either enable_shared or enable_static is yes.
12136
test "$enable_shared" = yes || enable_static=yes
12137
{ echo "$as_me:$LINENO: result: $enable_static" >&5
12138
echo "${ECHO_T}$enable_static" >&6; }
12145
ac_cpp='$CPP $CPPFLAGS'
12146
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12147
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12148
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12164
ac_config_commands="$ac_config_commands libtool"
12169
# Only expand once:
12173
ALL_LINGUAS="be cs da en_GB eo es fr hr hu nl pl ro ru sk sv uk vi"
19320
12175
{ echo "$as_me:$LINENO: checking whether NLS is requested" >&5
19321
12176
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }