10331
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10332
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10333
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10334
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10335
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10336
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10337
$as_echo "yes" >&6; }
10339
# FIXME - insert some real tests, host_os isn't really good enough
10342
if test -n "$STRIP" ; then
10343
striplib="$STRIP -x"
10344
old_striplib="$STRIP -S"
10345
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10346
$as_echo "yes" >&6; }
10348
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10349
$as_echo "no" >&6; }
10353
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10354
$as_echo "no" >&6; }
10370
# Report which library types will actually be built
10371
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10372
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10373
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10374
$as_echo "$can_build_shared" >&6; }
10376
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10377
$as_echo_n "checking whether to build shared libraries... " >&6; }
10378
test "$can_build_shared" = "no" && enable_shared=no
10380
# On AIX, shared libraries and static libraries use the same namespace, and
10381
# are all built from PIC.
10384
test "$enable_shared" = yes && enable_static=no
10385
if test -n "$RANLIB"; then
10386
archive_cmds="$archive_cmds~\$RANLIB \$lib"
10387
postinstall_cmds='$RANLIB $lib'
10392
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10393
test "$enable_shared" = yes && enable_static=no
10397
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10398
$as_echo "$enable_shared" >&6; }
10400
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10401
$as_echo_n "checking whether to build static libraries... " >&6; }
10402
# Make sure either enable_shared or enable_static is yes.
10403
test "$enable_shared" = yes || enable_static=yes
10404
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10405
$as_echo "$enable_static" >&6; }
10412
ac_cpp='$CPP $CPPFLAGS'
10413
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10414
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10415
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10431
ac_config_commands="$ac_config_commands libtool"
10436
# Only expand once:
10029
# Report which library types will actually be built
10030
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10031
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10032
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10033
echo "${ECHO_T}$can_build_shared" >&6; }
10035
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10036
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10037
test "$can_build_shared" = "no" && enable_shared=no
10039
# On AIX, shared libraries and static libraries use the same namespace, and
10040
# are all built from PIC.
10043
test "$enable_shared" = yes && enable_static=no
10044
if test -n "$RANLIB"; then
10045
archive_cmds="$archive_cmds~\$RANLIB \$lib"
10046
postinstall_cmds='$RANLIB $lib'
10051
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10052
test "$enable_shared" = yes && enable_static=no
10056
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10057
echo "${ECHO_T}$enable_shared" >&6; }
10059
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10060
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10061
# Make sure either enable_shared or enable_static is yes.
10062
test "$enable_shared" = yes || enable_static=yes
10063
{ echo "$as_me:$LINENO: result: $enable_static" >&5
10064
echo "${ECHO_T}$enable_static" >&6; }
10066
# The else clause should only fire when bootstrapping the
10067
# libtool distribution, otherwise you forgot to ship ltmain.sh
10068
# with your package, and you will get complaints that there are
10069
# no rules to generate ltmain.sh.
10070
if test -f "$ltmain"; then
10071
# See if we are running on zsh, and set the options which allow our commands through
10072
# without removal of \ escapes.
10073
if test -n "${ZSH_VERSION+set}" ; then
10074
setopt NO_GLOB_SUBST
10076
# Now quote all the things that may contain metacharacters while being
10077
# careful not to overquote the AC_SUBSTed values. We take copies of the
10078
# variables and quote the copies for generation of the libtool script.
10079
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10081
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10082
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10083
deplibs_check_method reload_flag reload_cmds need_locks \
10084
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10085
lt_cv_sys_global_symbol_to_c_name_address \
10086
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10087
old_postinstall_cmds old_postuninstall_cmds \
10091
lt_prog_compiler_wl \
10092
lt_prog_compiler_pic \
10093
lt_prog_compiler_static \
10094
lt_prog_compiler_no_builtin_flag \
10095
export_dynamic_flag_spec \
10096
thread_safe_flag_spec \
10097
whole_archive_flag_spec \
10098
enable_shared_with_static_runtimes \
10100
old_archive_from_new_cmds \
10105
compiler_lib_search_path \
10107
archive_expsym_cmds \
10109
postuninstall_cmds \
10110
old_archive_from_expsyms_cmds \
10111
allow_undefined_flag \
10112
no_undefined_flag \
10113
export_symbols_cmds \
10114
hardcode_libdir_flag_spec \
10115
hardcode_libdir_flag_spec_ld \
10116
hardcode_libdir_separator \
10117
hardcode_automatic \
10119
module_expsym_cmds \
10120
lt_cv_prog_compiler_c_o \
10122
include_expsyms; do
10125
old_archive_cmds | \
10126
old_archive_from_new_cmds | \
10128
archive_expsym_cmds | \
10130
module_expsym_cmds | \
10131
old_archive_from_expsyms_cmds | \
10132
export_symbols_cmds | \
10133
extract_expsyms_cmds | reload_cmds | finish_cmds | \
10134
postinstall_cmds | postuninstall_cmds | \
10135
old_postinstall_cmds | old_postuninstall_cmds | \
10136
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10137
# Double-quote double-evaled strings.
10138
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10141
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10147
*'\$0 --fallback-echo"')
10148
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10152
cfgfile="${ofile}T"
10153
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10155
{ echo "$as_me:$LINENO: creating $ofile" >&5
10156
echo "$as_me: creating $ofile" >&6;}
10158
cat <<__EOF__ >> "$cfgfile"
10161
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10162
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10163
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10165
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10166
# Free Software Foundation, Inc.
10168
# This file is part of GNU Libtool:
10169
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10171
# This program is free software; you can redistribute it and/or modify
10172
# it under the terms of the GNU General Public License as published by
10173
# the Free Software Foundation; either version 2 of the License, or
10174
# (at your option) any later version.
10176
# This program is distributed in the hope that it will be useful, but
10177
# WITHOUT ANY WARRANTY; without even the implied warranty of
10178
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10179
# General Public License for more details.
10181
# You should have received a copy of the GNU General Public License
10182
# along with this program; if not, write to the Free Software
10183
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10185
# As a special exception to the GNU General Public License, if you
10186
# distribute this file as part of a program that contains a
10187
# configuration script generated by Autoconf, you may include it under
10188
# the same distribution terms that you use for the rest of that program.
10190
# A sed program that does not truncate output.
10193
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10194
Xsed="$SED -e 1s/^X//"
10196
# The HP-UX ksh and POSIX shell print the target directory to stdout
10197
# if CDPATH is set.
10198
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10200
# The names of the tagged configurations supported by this script.
10203
# ### BEGIN LIBTOOL CONFIG
10205
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10207
# Shell to use when invoking shell scripts.
10210
# Whether or not to build shared libraries.
10211
build_libtool_libs=$enable_shared
10213
# Whether or not to build static libraries.
10214
build_old_libs=$enable_static
10216
# Whether or not to add -lc for building shared libraries.
10217
build_libtool_need_lc=$archive_cmds_need_lc
10219
# Whether or not to disallow shared libs when runtime libs are static
10220
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10222
# Whether or not to optimize for fast installation.
10223
fast_install=$enable_fast_install
10226
host_alias=$host_alias
10230
# The build system.
10231
build_alias=$build_alias
10235
# An echo program that does not interpret backslashes.
10240
AR_FLAGS=$lt_AR_FLAGS
10245
# LTCC compiler flags.
10246
LTCFLAGS=$lt_LTCFLAGS
10248
# A language-specific compiler.
10251
# Is the compiler the GNU C compiler?
10257
# The linker used to build libraries.
10260
# Whether we need hard or soft links.
10263
# A BSD-compatible nm program.
10266
# A symbol stripping program
10269
# Used to examine libraries when file_magic_cmd begins "file"
10270
MAGIC_CMD=$MAGIC_CMD
10272
# Used on cygwin: DLL creation program.
10275
# Used on cygwin: object dumper.
10278
# Used on cygwin: assembler.
10281
# The name of the directory that contains temporary libtool files.
10284
# How to create reloadable object files.
10285
reload_flag=$lt_reload_flag
10286
reload_cmds=$lt_reload_cmds
10288
# How to pass a linker flag through the compiler.
10289
wl=$lt_lt_prog_compiler_wl
10291
# Object file suffix (normally "o").
10292
objext="$ac_objext"
10294
# Old archive suffix (normally "a").
10297
# Shared library suffix (normally ".so").
10298
shrext_cmds='$shrext_cmds'
10300
# Executable file suffix (normally "").
10303
# Additional compiler flags for building library objects.
10304
pic_flag=$lt_lt_prog_compiler_pic
10307
# What is the maximum length of a command?
10308
max_cmd_len=$lt_cv_sys_max_cmd_len
10310
# Does compiler simultaneously support -c and -o options?
10311
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10313
# Must we lock files when doing compilation?
10314
need_locks=$lt_need_locks
10316
# Do we need the lib prefix for modules?
10317
need_lib_prefix=$need_lib_prefix
10319
# Do we need a version for libraries?
10320
need_version=$need_version
10322
# Whether dlopen is supported.
10323
dlopen_support=$enable_dlopen
10325
# Whether dlopen of programs is supported.
10326
dlopen_self=$enable_dlopen_self
10328
# Whether dlopen of statically linked programs is supported.
10329
dlopen_self_static=$enable_dlopen_self_static
10331
# Compiler flag to prevent dynamic linking.
10332
link_static_flag=$lt_lt_prog_compiler_static
10334
# Compiler flag to turn off builtin functions.
10335
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10337
# Compiler flag to allow reflexive dlopens.
10338
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10340
# Compiler flag to generate shared objects directly from archives.
10341
whole_archive_flag_spec=$lt_whole_archive_flag_spec
10343
# Compiler flag to generate thread-safe objects.
10344
thread_safe_flag_spec=$lt_thread_safe_flag_spec
10346
# Library versioning type.
10347
version_type=$version_type
10349
# Format of library name prefix.
10350
libname_spec=$lt_libname_spec
10352
# List of archive names. First name is the real one, the rest are links.
10353
# The last name is the one that the linker finds with -lNAME.
10354
library_names_spec=$lt_library_names_spec
10356
# The coded name of the library, if different from the real name.
10357
soname_spec=$lt_soname_spec
10359
# Commands used to build and install an old-style archive.
10361
old_archive_cmds=$lt_old_archive_cmds
10362
old_postinstall_cmds=$lt_old_postinstall_cmds
10363
old_postuninstall_cmds=$lt_old_postuninstall_cmds
10365
# Create an old-style archive from a shared archive.
10366
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10368
# Create a temporary old-style archive to link instead of a shared archive.
10369
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10371
# Commands used to build and install a shared archive.
10372
archive_cmds=$lt_archive_cmds
10373
archive_expsym_cmds=$lt_archive_expsym_cmds
10374
postinstall_cmds=$lt_postinstall_cmds
10375
postuninstall_cmds=$lt_postuninstall_cmds
10377
# Commands used to build a loadable module (assumed same as above if empty)
10378
module_cmds=$lt_module_cmds
10379
module_expsym_cmds=$lt_module_expsym_cmds
10381
# Commands to strip libraries.
10382
old_striplib=$lt_old_striplib
10383
striplib=$lt_striplib
10385
# Dependencies to place before the objects being linked to create a
10387
predep_objects=$lt_predep_objects
10389
# Dependencies to place after the objects being linked to create a
10391
postdep_objects=$lt_postdep_objects
10393
# Dependencies to place before the objects being linked to create a
10395
predeps=$lt_predeps
10397
# Dependencies to place after the objects being linked to create a
10399
postdeps=$lt_postdeps
10401
# The library search path used internally by the compiler when linking
10402
# a shared library.
10403
compiler_lib_search_path=$lt_compiler_lib_search_path
10405
# Method to check whether dependent libraries are shared objects.
10406
deplibs_check_method=$lt_deplibs_check_method
10408
# Command to use when deplibs_check_method == file_magic.
10409
file_magic_cmd=$lt_file_magic_cmd
10411
# Flag that allows shared libraries with undefined symbols to be built.
10412
allow_undefined_flag=$lt_allow_undefined_flag
10414
# Flag that forces no undefined symbols.
10415
no_undefined_flag=$lt_no_undefined_flag
10417
# Commands used to finish a libtool library installation in a directory.
10418
finish_cmds=$lt_finish_cmds
10420
# Same as above, but a single script fragment to be evaled but not shown.
10421
finish_eval=$lt_finish_eval
10423
# Take the output of nm and produce a listing of raw symbols and C names.
10424
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10426
# Transform the output of nm in a proper C declaration
10427
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10429
# Transform the output of nm in a C name address pair
10430
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10432
# This is the shared library runtime path variable.
10433
runpath_var=$runpath_var
10435
# This is the shared library path variable.
10436
shlibpath_var=$shlibpath_var
10438
# Is shlibpath searched before the hard-coded library search path?
10439
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10441
# How to hardcode a shared library path into an executable.
10442
hardcode_action=$hardcode_action
10444
# Whether we should hardcode library paths into libraries.
10445
hardcode_into_libs=$hardcode_into_libs
10447
# Flag to hardcode \$libdir into a binary during linking.
10448
# This must work even if \$libdir does not exist.
10449
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10451
# If ld is used when linking, flag to hardcode \$libdir into
10452
# a binary during linking. This must work even if \$libdir does
10454
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10456
# Whether we need a single -rpath flag with a separated argument.
10457
hardcode_libdir_separator=$lt_hardcode_libdir_separator
10459
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10460
# resulting binary.
10461
hardcode_direct=$hardcode_direct
10463
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10464
# resulting binary.
10465
hardcode_minus_L=$hardcode_minus_L
10467
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10468
# the resulting binary.
10469
hardcode_shlibpath_var=$hardcode_shlibpath_var
10471
# Set to yes if building a shared library automatically hardcodes DIR into the library
10472
# and all subsequent libraries and executables linked against it.
10473
hardcode_automatic=$hardcode_automatic
10475
# Variables whose values should be saved in libtool wrapper scripts and
10476
# restored at relink time.
10477
variables_saved_for_relink="$variables_saved_for_relink"
10479
# Whether libtool must link a program against all its dependency libraries.
10480
link_all_deplibs=$link_all_deplibs
10482
# Compile-time system search path for libraries
10483
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10485
# Run-time system search path for libraries
10486
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10488
# Fix the shell variable \$srcfile for the compiler.
10489
fix_srcfile_path="$fix_srcfile_path"
10491
# Set to yes if exported symbols are required.
10492
always_export_symbols=$always_export_symbols
10494
# The commands to list exported symbols.
10495
export_symbols_cmds=$lt_export_symbols_cmds
10497
# The commands to extract the exported symbol list from a shared archive.
10498
extract_expsyms_cmds=$lt_extract_expsyms_cmds
10500
# Symbols that should not be listed in the preloaded symbols.
10501
exclude_expsyms=$lt_exclude_expsyms
10503
# Symbols that must always be exported.
10504
include_expsyms=$lt_include_expsyms
10506
# ### END LIBTOOL CONFIG
10513
cat <<\EOF >> "$cfgfile"
10515
# AIX sometimes has problems with the GCC collect2 program. For some
10516
# reason, if we set the COLLECT_NAMES environment variable, the problems
10517
# vanish in a puff of smoke.
10518
if test "X${COLLECT_NAMES+set}" != Xset; then
10520
export COLLECT_NAMES
10526
# We use sed instead of cat because bash on DJGPP gets confused if
10527
# if finds mixed CR/LF and LF-only lines. Since sed operates in
10528
# text mode, it properly converts lines to CR/LF. This bash problem
10529
# is reportedly fixed, but why not run on old versions too?
10530
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10532
mv -f "$cfgfile" "$ofile" || \
10533
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10537
# If there is no Makefile yet, we rely on a make rule to execute
10538
# `config.status --recheck' to rerun these tests and create the
10539
# libtool script then.
10540
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10541
if test -f "$ltmain_in"; then
10542
test -f Makefile && make "$ltmain"
10548
ac_cpp='$CPP $CPPFLAGS'
10549
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10550
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10551
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10556
# Check whether --with-tags was given.
10557
if test "${with_tags+set}" = set; then
10558
withval=$with_tags; tagnames="$withval"
10562
if test -f "$ltmain" && test -n "$tagnames"; then
10563
if test ! -f "${ofile}"; then
10564
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10565
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10568
if test -z "$LTCC"; then
10569
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10570
if test -z "$LTCC"; then
10571
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10572
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10574
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10575
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10578
if test -z "$LTCFLAGS"; then
10579
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10582
# Extract list of available tagged configurations in $ofile.
10583
# Note that this assumes the entire list is on one line.
10584
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10586
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10587
for tagname in $tagnames; do
10589
# Check whether tagname contains only valid characters
10590
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10592
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10593
echo "$as_me: error: invalid tag name: $tagname" >&2;}
10594
{ (exit 1); exit 1; }; }
10598
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10600
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10601
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10602
{ (exit 1); exit 1; }; }
10605
# Update the list of available tags.
10606
if test -n "$tagname"; then
10607
echo appending configuration tag \"$tagname\" to $ofile
10611
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10612
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10613
(test "X$CXX" != "Xg++"))) ; then
10615
ac_cpp='$CXXCPP $CPPFLAGS'
10616
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10617
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10618
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10623
archive_cmds_need_lc_CXX=no
10624
allow_undefined_flag_CXX=
10625
always_export_symbols_CXX=no
10626
archive_expsym_cmds_CXX=
10627
export_dynamic_flag_spec_CXX=
10628
hardcode_direct_CXX=no
10629
hardcode_libdir_flag_spec_CXX=
10630
hardcode_libdir_flag_spec_ld_CXX=
10631
hardcode_libdir_separator_CXX=
10632
hardcode_minus_L_CXX=no
10633
hardcode_shlibpath_var_CXX=unsupported
10634
hardcode_automatic_CXX=no
10636
module_expsym_cmds_CXX=
10637
link_all_deplibs_CXX=unknown
10638
old_archive_cmds_CXX=$old_archive_cmds
10639
no_undefined_flag_CXX=
10640
whole_archive_flag_spec_CXX=
10641
enable_shared_with_static_runtimes_CXX=no
10643
# Dependencies to place before and after the object being linked:
10644
predep_objects_CXX=
10645
postdep_objects_CXX=
10648
compiler_lib_search_path_CXX=
10650
# Source file extension for C++ test sources.
10653
# Object file extension for compiled C++ test sources.
10657
# Code to be used in simple compile tests
10658
lt_simple_compile_test_code="int some_variable = 0;\n"
10660
# Code to be used in simple link tests
10661
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10663
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10665
# If no C compiler was specified, use CC.
10668
# If no C compiler flags were specified, use CFLAGS.
10669
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10671
# Allow CC to be a program name with arguments.
10675
# save warnings/boilerplate of simple test code
10676
ac_outfile=conftest.$ac_objext
10677
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10678
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10679
_lt_compiler_boilerplate=`cat conftest.err`
10682
ac_outfile=conftest.$ac_objext
10683
printf "$lt_simple_link_test_code" >conftest.$ac_ext
10684
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10685
_lt_linker_boilerplate=`cat conftest.err`
10689
# Allow CC to be a program name with arguments.
10694
lt_save_with_gnu_ld=$with_gnu_ld
10695
lt_save_path_LD=$lt_cv_path_LD
10696
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10697
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10699
$as_unset lt_cv_prog_gnu_ld
10701
if test -n "${lt_cv_path_LDCXX+set}"; then
10702
lt_cv_path_LD=$lt_cv_path_LDCXX
10704
$as_unset lt_cv_path_LD
10706
test -z "${LDCXX+set}" || LD=$LDCXX
10710
for cc_temp in $compiler""; do
10712
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10713
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10718
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10721
# We don't want -fno-exception wen compiling C++ code, so set the
10722
# no_builtin_flag separately
10723
if test "$GXX" = yes; then
10724
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10726
lt_prog_compiler_no_builtin_flag_CXX=
10729
if test "$GXX" = yes; then
10730
# Set up default GNU C++ configuration
10733
# Check whether --with-gnu-ld was given.
10734
if test "${with_gnu_ld+set}" = set; then
10735
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10741
if test "$GCC" = yes; then
10742
# Check if gcc -print-prog-name=ld gives a path.
10743
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10744
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10747
# gcc leaves a trailing carriage return which upsets mingw
10748
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10750
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10753
# Accept absolute paths.
10755
re_direlt='/[^/][^/]*/\.\./'
10756
# Canonicalize the pathname of ld
10757
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10758
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10759
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10761
test -z "$LD" && LD="$ac_prog"
10764
# If it fails, then pretend we aren't using GCC.
10768
# If it is relative, then search for the first ld in PATH.
10769
with_gnu_ld=unknown
10772
elif test "$with_gnu_ld" = yes; then
10773
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
10774
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10776
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10777
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10779
if test "${lt_cv_path_LD+set}" = set; then
10780
echo $ECHO_N "(cached) $ECHO_C" >&6
10782
if test -z "$LD"; then
10783
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10784
for ac_dir in $PATH; do
10786
test -z "$ac_dir" && ac_dir=.
10787
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10788
lt_cv_path_LD="$ac_dir/$ac_prog"
10789
# Check to see if the program is GNU ld. I'd rather use --version,
10790
# but apparently some variants of GNU ld only accept -v.
10791
# Break only if it was the GNU/non-GNU ld that we prefer.
10792
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10793
*GNU* | *'with BFD'*)
10794
test "$with_gnu_ld" != no && break
10797
test "$with_gnu_ld" != yes && break
10804
lt_cv_path_LD="$LD" # Let the user override the test with a path.
10808
LD="$lt_cv_path_LD"
10809
if test -n "$LD"; then
10810
{ echo "$as_me:$LINENO: result: $LD" >&5
10811
echo "${ECHO_T}$LD" >&6; }
10813
{ echo "$as_me:$LINENO: result: no" >&5
10814
echo "${ECHO_T}no" >&6; }
10816
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10817
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10818
{ (exit 1); exit 1; }; }
10819
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10820
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10821
if test "${lt_cv_prog_gnu_ld+set}" = set; then
10822
echo $ECHO_N "(cached) $ECHO_C" >&6
10824
# I'd rather use --version here, but apparently some GNU lds only accept -v.
10825
case `$LD -v 2>&1 </dev/null` in
10826
*GNU* | *'with BFD'*)
10827
lt_cv_prog_gnu_ld=yes
10830
lt_cv_prog_gnu_ld=no
10834
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10835
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10836
with_gnu_ld=$lt_cv_prog_gnu_ld
10840
# Check if GNU C++ uses GNU ld as the underlying linker, since the
10841
# archiving commands below assume that GNU ld is being used.
10842
if test "$with_gnu_ld" = yes; then
10843
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10844
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'
10846
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10847
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10849
# If archive_cmds runs LD, not CC, wlarc should be empty
10850
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10851
# investigate it a little bit more. (MM)
10854
# ancient GNU ld didn't support --whole-archive et. al.
10855
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10856
grep 'no-whole-archive' > /dev/null; then
10857
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10859
whole_archive_flag_spec_CXX=
10865
# A generic and very simple default shared library creation
10866
# command for GNU C++ for the case where it uses the native
10867
# linker, instead of GNU ld. If possible, this setting should
10868
# overridden to take advantage of the native linker features on
10869
# the platform it is being used on.
10870
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10873
# Commands to make compiler produce verbose output that lists
10874
# what "hidden" libraries, object files and flags are used when
10875
# linking a shared library.
10876
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10884
# PORTME: fill in a description of your system's C++ link characteristics
10885
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10886
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10890
# FIXME: insert proper C++ library support
10894
if test "$host_cpu" = ia64; then
10895
# On IA64, the linker does run time linking by default, so we don't
10896
# have to do anything special.
10897
aix_use_runtimelinking=no
10898
exp_sym_flag='-Bexport'
10901
aix_use_runtimelinking=no
10903
# Test if we are trying to use run time linking or normal
10904
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10905
# need to do runtime linking.
10906
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10907
for ld_flag in $LDFLAGS; do
10910
aix_use_runtimelinking=yes
10918
exp_sym_flag='-bexport'
10919
no_entry_flag='-bnoentry'
10922
# When large executables or shared objects are built, AIX ld can
10923
# have problems creating the table of contents. If linking a library
10924
# or program results in "error TOC overflow" add -mminimal-toc to
10925
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10926
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10928
archive_cmds_CXX=''
10929
hardcode_direct_CXX=yes
10930
hardcode_libdir_separator_CXX=':'
10931
link_all_deplibs_CXX=yes
10933
if test "$GXX" = yes; then
10934
case $host_os in aix4.[012]|aix4.[012].*)
10935
# We only want to do this on AIX 4.2 and lower, the check
10936
# below for broken collect2 doesn't work under 4.3+
10937
collect2name=`${CC} -print-prog-name=collect2`
10938
if test -f "$collect2name" && \
10939
strings "$collect2name" | grep resolve_lib_name >/dev/null
10941
# We have reworked collect2
10942
hardcode_direct_CXX=yes
10944
# We have old collect2
10945
hardcode_direct_CXX=unsupported
10946
# It fails to find uninstalled libraries when the uninstalled
10947
# path is not listed in the libpath. Setting hardcode_minus_L
10948
# to unsupported forces relinking
10949
hardcode_minus_L_CXX=yes
10950
hardcode_libdir_flag_spec_CXX='-L$libdir'
10951
hardcode_libdir_separator_CXX=
10955
shared_flag='-shared'
10956
if test "$aix_use_runtimelinking" = yes; then
10957
shared_flag="$shared_flag "'${wl}-G'
10961
if test "$host_cpu" = ia64; then
10962
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10963
# chokes on -Wl,-G. The following line is correct:
10966
if test "$aix_use_runtimelinking" = yes; then
10967
shared_flag='${wl}-G'
10969
shared_flag='${wl}-bM:SRE'
10974
# It seems that -bexpall does not export symbols beginning with
10975
# underscore (_), so it is better to generate a list of symbols to export.
10976
always_export_symbols_CXX=yes
10977
if test "$aix_use_runtimelinking" = yes; then
10978
# Warning - without using the other runtime loading flags (-brtl),
10979
# -berok will link without error, but may produce a broken library.
10980
allow_undefined_flag_CXX='-berok'
10981
# Determine the default libpath from the value encoded in an empty executable.
10982
cat >conftest.$ac_ext <<_ACEOF
10985
cat confdefs.h >>conftest.$ac_ext
10986
cat >>conftest.$ac_ext <<_ACEOF
10987
/* end confdefs.h. */
10997
rm -f conftest.$ac_objext conftest$ac_exeext
10998
if { (ac_try="$ac_link"
10999
case "(($ac_try" in
11000
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11001
*) ac_try_echo=$ac_try;;
11003
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11004
(eval "$ac_link") 2>conftest.er1
11006
grep -v '^ *+' conftest.er1 >conftest.err
11008
cat conftest.err >&5
11009
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010
(exit $ac_status); } && {
11011
test -z "$ac_cxx_werror_flag" ||
11012
test ! -s conftest.err
11013
} && test -s conftest$ac_exeext &&
11014
$as_test_x conftest$ac_exeext; then
11016
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11018
# Check for a 64-bit object if we didn't find anything.
11019
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; }
11022
echo "$as_me: failed program was:" >&5
11023
sed 's/^/| /' conftest.$ac_ext >&5
11028
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11029
conftest$ac_exeext conftest.$ac_ext
11030
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11032
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11034
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"
11036
if test "$host_cpu" = ia64; then
11037
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11038
allow_undefined_flag_CXX="-z nodefs"
11039
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"
11041
# Determine the default libpath from the value encoded in an empty executable.
11042
cat >conftest.$ac_ext <<_ACEOF
11045
cat confdefs.h >>conftest.$ac_ext
11046
cat >>conftest.$ac_ext <<_ACEOF
11047
/* end confdefs.h. */
11057
rm -f conftest.$ac_objext conftest$ac_exeext
11058
if { (ac_try="$ac_link"
11059
case "(($ac_try" in
11060
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11061
*) ac_try_echo=$ac_try;;
11063
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11064
(eval "$ac_link") 2>conftest.er1
11066
grep -v '^ *+' conftest.er1 >conftest.err
11068
cat conftest.err >&5
11069
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070
(exit $ac_status); } && {
11071
test -z "$ac_cxx_werror_flag" ||
11072
test ! -s conftest.err
11073
} && test -s conftest$ac_exeext &&
11074
$as_test_x conftest$ac_exeext; then
11076
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11078
# Check for a 64-bit object if we didn't find anything.
11079
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; }
11082
echo "$as_me: failed program was:" >&5
11083
sed 's/^/| /' conftest.$ac_ext >&5
11088
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11089
conftest$ac_exeext conftest.$ac_ext
11090
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11092
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11093
# Warning - without using the other run time loading flags,
11094
# -berok will link without error, but may produce a broken library.
11095
no_undefined_flag_CXX=' ${wl}-bernotok'
11096
allow_undefined_flag_CXX=' ${wl}-berok'
11097
# Exported symbols can be pulled into shared objects from archives
11098
whole_archive_flag_spec_CXX='$convenience'
11099
archive_cmds_need_lc_CXX=yes
11100
# This is similar to how AIX traditionally builds its shared libraries.
11101
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'
11107
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11108
allow_undefined_flag_CXX=unsupported
11109
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11110
# support --undefined. This deserves some investigation. FIXME
11111
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11118
case $cc_basename in
11120
# FIXME: insert proper C++ library support
11126
cygwin* | mingw* | pw32*)
11127
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11128
# as there is no search path for DLLs.
11129
hardcode_libdir_flag_spec_CXX='-L$libdir'
11130
allow_undefined_flag_CXX=unsupported
11131
always_export_symbols_CXX=no
11132
enable_shared_with_static_runtimes_CXX=yes
11134
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11135
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'
11136
# If the export-symbols file already is a .def file (1st line
11137
# is EXPORTS), use it as is; otherwise, prepend...
11138
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11139
cp $export_symbols $output_objdir/$soname.def;
11141
echo EXPORTS > $output_objdir/$soname.def;
11142
cat $export_symbols >> $output_objdir/$soname.def;
11144
$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'
11149
darwin* | rhapsody*)
11151
rhapsody* | darwin1.[012])
11152
allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11155
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11156
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11158
case ${MACOSX_DEPLOYMENT_TARGET} in
11160
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11163
allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11169
archive_cmds_need_lc_CXX=no
11170
hardcode_direct_CXX=no
11171
hardcode_automatic_CXX=yes
11172
hardcode_shlibpath_var_CXX=unsupported
11173
whole_archive_flag_spec_CXX=''
11174
link_all_deplibs_CXX=yes
11176
if test "$GXX" = yes ; then
11177
lt_int_apple_cc_single_mod=no
11178
output_verbose_link_cmd='echo'
11179
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11180
lt_int_apple_cc_single_mod=yes
11182
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11183
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11185
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'
11187
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11188
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11189
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11190
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}'
11192
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}'
11194
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}'
11196
case $cc_basename in
11198
output_verbose_link_cmd='echo'
11199
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'
11200
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11201
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11202
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}'
11203
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}'
11213
case $cc_basename in
11215
# FIXME: insert proper C++ library support
11219
# Green Hills C++ Compiler
11220
# FIXME: insert proper C++ library support
11224
# FIXME: insert proper C++ library support
11230
# C++ shared libraries reported to be fairly broken before switch to ELF
11234
archive_cmds_need_lc_CXX=no
11236
freebsd* | dragonfly*)
11237
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11244
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11245
hardcode_libdir_separator_CXX=:
11246
export_dynamic_flag_spec_CXX='${wl}-E'
11247
hardcode_direct_CXX=yes
11248
hardcode_minus_L_CXX=yes # Not in the search PATH,
11249
# but as the default
11250
# location of the library.
11252
case $cc_basename in
11254
# FIXME: insert proper C++ library support
11258
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'
11259
# Commands to make compiler produce verbose output that lists
11260
# what "hidden" libraries, object files and flags are used when
11261
# linking a shared library.
11263
# There doesn't appear to be a way to prevent this compiler from
11264
# explicitly linking system object files so we need to strip them
11265
# from the output so that they don't get included in the library
11267
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'
11270
if test "$GXX" = yes; then
11271
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'
11273
# FIXME: insert proper C++ library support
11280
if test $with_gnu_ld = no; then
11281
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11282
hardcode_libdir_separator_CXX=:
11286
hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11289
export_dynamic_flag_spec_CXX='${wl}-E'
11295
hardcode_direct_CXX=no
11296
hardcode_shlibpath_var_CXX=no
11299
hardcode_direct_CXX=yes
11300
hardcode_minus_L_CXX=yes # Not in the search PATH,
11301
# but as the default
11302
# location of the library.
11306
case $cc_basename in
11308
# FIXME: insert proper C++ library support
11314
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11317
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11320
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11323
# Commands to make compiler produce verbose output that lists
11324
# what "hidden" libraries, object files and flags are used when
11325
# linking a shared library.
11327
# There doesn't appear to be a way to prevent this compiler from
11328
# explicitly linking system object files so we need to strip them
11329
# from the output so that they don't get included in the library
11331
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'
11334
if test "$GXX" = yes; then
11335
if test $with_gnu_ld = no; then
11338
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11341
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11344
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'
11349
# FIXME: insert proper C++ library support
11356
hardcode_direct_CXX=no
11357
hardcode_shlibpath_var_CXX=no
11358
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11359
export_dynamic_flag_spec_CXX='${wl}-E'
11360
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11361
# Instead, shared libraries are loaded at an image base (0x10000000 by
11362
# default) and relocated if they conflict, which is a slow very memory
11363
# consuming and fragmenting process. To avoid this, we pick a random,
11364
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11365
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
11366
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'
11367
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'
11370
case $cc_basename in
11373
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'
11375
# Archives containing C++ object files must be created using
11376
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
11377
# necessary to make sure instantiated templates are included
11379
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11382
if test "$GXX" = yes; then
11383
if test "$with_gnu_ld" = no; then
11384
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'
11386
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'
11389
link_all_deplibs_CXX=yes
11392
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11393
hardcode_libdir_separator_CXX=:
11395
linux* | k*bsd*-gnu)
11396
case $cc_basename in
11398
# Kuck and Associates, Inc. (KAI) C++ Compiler
11400
# KCC will only create a shared library if the output file
11401
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11402
# to its proper name (with version) after linking.
11403
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'
11404
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'
11405
# Commands to make compiler produce verbose output that lists
11406
# what "hidden" libraries, object files and flags are used when
11407
# linking a shared library.
11409
# There doesn't appear to be a way to prevent this compiler from
11410
# explicitly linking system object files so we need to strip them
11411
# from the output so that they don't get included in the library
11413
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'
11415
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11416
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11418
# Archives containing C++ object files must be created using
11419
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11420
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11425
# version 8.0 and above of icpc choke on multiply defined symbols
11426
# if we add $predep_objects and $postdep_objects, however 7.1 and
11427
# earlier do not add the objects themselves.
11428
case `$CC -V 2>&1` in
11430
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11431
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'
11433
*) # Version 8.0 or newer
11436
ia64*) tmp_idyn=' -i_dynamic';;
11438
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11439
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'
11442
archive_cmds_need_lc_CXX=no
11443
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11444
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11445
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11448
# Portland Group C++ compiler
11449
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11450
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'
11452
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11453
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11454
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'
11458
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11459
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'
11461
runpath_var=LD_RUN_PATH
11462
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11463
hardcode_libdir_separator_CXX=:
11465
# Commands to make compiler produce verbose output that lists
11466
# what "hidden" libraries, object files and flags are used when
11467
# linking a shared library.
11469
# There doesn't appear to be a way to prevent this compiler from
11470
# explicitly linking system object files so we need to strip them
11471
# from the output so that they don't get included in the library
11473
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'
11478
# FIXME: insert proper C++ library support
11482
# FIXME: insert proper C++ library support
11486
case $cc_basename in
11488
# FIXME: insert proper C++ library support
11492
# FIXME: insert proper C++ library support
11497
netbsd* | netbsdelf*-gnu)
11498
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11499
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11501
hardcode_libdir_flag_spec_CXX='-R$libdir'
11502
hardcode_direct_CXX=yes
11503
hardcode_shlibpath_var_CXX=no
11505
# Workaround some broken pre-1.5 toolchains
11506
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11509
# C++ shared libraries are fairly broken
11513
hardcode_direct_CXX=yes
11514
hardcode_shlibpath_var_CXX=no
11515
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11516
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11517
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11518
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11519
export_dynamic_flag_spec_CXX='${wl}-E'
11520
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11522
output_verbose_link_cmd='echo'
11525
case $cc_basename in
11527
# Kuck and Associates, Inc. (KAI) C++ Compiler
11529
# KCC will only create a shared library if the output file
11530
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11531
# to its proper name (with version) after linking.
11532
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'
11534
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11535
hardcode_libdir_separator_CXX=:
11537
# Archives containing C++ object files must be created using
11538
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11539
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11543
# Rational C++ 2.4.1
11544
# FIXME: insert proper C++ library support
11548
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11549
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'
11551
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11552
hardcode_libdir_separator_CXX=:
11554
# Commands to make compiler produce verbose output that lists
11555
# what "hidden" libraries, object files and flags are used when
11556
# linking a shared library.
11558
# There doesn't appear to be a way to prevent this compiler from
11559
# explicitly linking system object files so we need to strip them
11560
# from the output so that they don't get included in the library
11562
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'
11565
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11566
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11567
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'
11569
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11570
hardcode_libdir_separator_CXX=:
11572
# Commands to make compiler produce verbose output that lists
11573
# what "hidden" libraries, object files and flags are used when
11574
# linking a shared library.
11575
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11578
# FIXME: insert proper C++ library support
11585
case $cc_basename in
11587
# Kuck and Associates, Inc. (KAI) C++ Compiler
11589
# KCC will only create a shared library if the output file
11590
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11591
# to its proper name (with version) after linking.
11592
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'
11594
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11595
hardcode_libdir_separator_CXX=:
11597
# Archives containing C++ object files must be created using
11598
# the KAI C++ compiler.
11599
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11602
# Rational C++ 2.4.1
11603
# FIXME: insert proper C++ library support
11607
allow_undefined_flag_CXX=' -expect_unresolved \*'
11608
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'
11609
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11610
echo "-hidden">> $lib.exp~
11611
$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~
11614
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11615
hardcode_libdir_separator_CXX=:
11617
# Commands to make compiler produce verbose output that lists
11618
# what "hidden" libraries, object files and flags are used when
11619
# linking a shared library.
11621
# There doesn't appear to be a way to prevent this compiler from
11622
# explicitly linking system object files so we need to strip them
11623
# from the output so that they don't get included in the library
11625
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'
11628
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11629
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11630
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'
11632
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11633
hardcode_libdir_separator_CXX=:
11635
# Commands to make compiler produce verbose output that lists
11636
# what "hidden" libraries, object files and flags are used when
11637
# linking a shared library.
11638
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11641
# FIXME: insert proper C++ library support
11648
# FIXME: insert proper C++ library support
11652
case $cc_basename in
11655
# FIXME: insert proper C++ library support
11660
# FIXME: insert proper C++ library support
11664
# FIXME: insert proper C++ library support
11670
case $cc_basename in
11672
# Sun C++ 4.2, 5.x and Centerline C++
11673
archive_cmds_need_lc_CXX=yes
11674
no_undefined_flag_CXX=' -zdefs'
11675
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11676
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11677
$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'
11679
hardcode_libdir_flag_spec_CXX='-R$libdir'
11680
hardcode_shlibpath_var_CXX=no
11682
solaris2.[0-5] | solaris2.[0-5].*) ;;
11684
# The C++ compiler is used as linker so we must use $wl
11685
# flag to pass the commands to the underlying system
11686
# linker. We must also pass each convience library through
11687
# to the system linker between allextract/defaultextract.
11688
# The C++ compiler will combine linker options so we
11689
# cannot just pass the convience library names through
11691
# Supported since Solaris 2.6 (maybe 2.5.1?)
11692
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'
11695
link_all_deplibs_CXX=yes
11697
output_verbose_link_cmd='echo'
11699
# Archives containing C++ object files must be created using
11700
# "CC -xar", where "CC" is the Sun C++ compiler. This is
11701
# necessary to make sure instantiated templates are included
11703
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11706
# Green Hills C++ Compiler
11707
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11709
# The C++ compiler must be used to create the archive.
11710
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11713
# GNU C++ compiler with Solaris linker
11714
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11715
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11716
if $CC --version | grep -v '^2\.7' > /dev/null; then
11717
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11718
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11719
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11721
# Commands to make compiler produce verbose output that lists
11722
# what "hidden" libraries, object files and flags are used when
11723
# linking a shared library.
11724
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11726
# g++ 2.7 appears to require `-G' NOT `-shared' on this
11728
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11729
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11730
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11732
# Commands to make compiler produce verbose output that lists
11733
# what "hidden" libraries, object files and flags are used when
11734
# linking a shared library.
11735
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11738
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11743
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11744
no_undefined_flag_CXX='${wl}-z,text'
11745
archive_cmds_need_lc_CXX=no
11746
hardcode_shlibpath_var_CXX=no
11747
runpath_var='LD_RUN_PATH'
11749
case $cc_basename in
11751
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11752
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11755
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11756
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11760
sysv5* | sco3.2v5* | sco5v6*)
11761
# Note: We can NOT use -z defs as we might desire, because we do not
11762
# link with -lc, and that would cause any symbols used from libc to
11763
# always be unresolved, which means just about no library would
11764
# ever link correctly. If we're not using GNU ld we use -z text
11765
# though, which does catch some bad symbols but isn't as heavy-handed
11767
# For security reasons, it is highly recommended that you always
11768
# use absolute paths for naming shared libraries, and exclude the
11769
# DT_RUNPATH tag from executables and libraries. But doing so
11770
# requires that you compile everything twice, which is a pain.
11771
# So that behaviour is only enabled if SCOABSPATH is set to a
11772
# non-empty value in the environment. Most likely only useful for
11773
# creating official distributions of packages.
11774
# This is a hack until libtool officially supports absolute path
11775
# names for shared libraries.
11776
no_undefined_flag_CXX='${wl}-z,text'
11777
allow_undefined_flag_CXX='${wl}-z,nodefs'
11778
archive_cmds_need_lc_CXX=no
11779
hardcode_shlibpath_var_CXX=no
11780
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11781
hardcode_libdir_separator_CXX=':'
11782
link_all_deplibs_CXX=yes
11783
export_dynamic_flag_spec_CXX='${wl}-Bexport'
11784
runpath_var='LD_RUN_PATH'
11786
case $cc_basename in
11788
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11789
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11792
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11793
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11798
case $cc_basename in
11800
# NonStop-UX NCC 3.20
11801
# FIXME: insert proper C++ library support
11805
# FIXME: insert proper C++ library support
11811
# FIXME: insert proper C++ library support
11815
# FIXME: insert proper C++ library support
11819
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11820
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11821
test "$ld_shlibs_CXX" = no && can_build_shared=no
11827
cat > conftest.$ac_ext <<EOF
11831
Foo (void) { a = 0; }
11837
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11838
(eval $ac_compile) 2>&5
11840
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841
(exit $ac_status); }; then
11842
# Parse the compiler output and extract the necessary
11843
# objects, libraries and library flags.
11845
# Sentinel used to keep track of whether or not we are before
11846
# the conftest object file.
11847
pre_test_object_deps_done=no
11849
# The `*' in the case matches for architectures that use `case' in
11850
# $output_verbose_cmd can trigger glob expansion during the loop
11851
# eval without this substitution.
11852
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11854
for p in `eval $output_verbose_link_cmd`; do
11858
# Some compilers place space between "-{L,R}" and the path.
11859
# Remove the space.
11860
if test $p = "-L" \
11861
|| test $p = "-R"; then
11868
if test "$pre_test_object_deps_done" = no; then
11871
# Internal compiler library paths should come after those
11872
# provided the user. The postdeps already come after the
11873
# user supplied libs so there is no need to process them.
11874
if test -z "$compiler_lib_search_path_CXX"; then
11875
compiler_lib_search_path_CXX="${prev}${p}"
11877
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11880
# The "-l" case would never come before the object being
11881
# linked, so don't bother handling this case.
11884
if test -z "$postdeps_CXX"; then
11885
postdeps_CXX="${prev}${p}"
11887
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11893
# This assumes that the test object file only shows up
11894
# once in the compiler output.
11895
if test "$p" = "conftest.$objext"; then
11896
pre_test_object_deps_done=yes
11900
if test "$pre_test_object_deps_done" = no; then
11901
if test -z "$predep_objects_CXX"; then
11902
predep_objects_CXX="$p"
11904
predep_objects_CXX="$predep_objects_CXX $p"
11907
if test -z "$postdep_objects_CXX"; then
11908
postdep_objects_CXX="$p"
11910
postdep_objects_CXX="$postdep_objects_CXX $p"
11915
*) ;; # Ignore the rest.
11923
echo "libtool.m4: error: problem compiling CXX test program"
11926
$rm -f confest.$objext
11928
# PORTME: override above test on systems where it is broken
11931
# Interix 3.5 installs completely hosed .la files for C++, so rather than
11932
# hack all around it, let's just trust "g++" to DTRT.
11933
predep_objects_CXX=
11934
postdep_objects_CXX=
11939
case $cc_basename in
11941
# Adding this requires a known-good setup of shared libraries for
11942
# Sun compiler versions before 5.6, else PIC objects from an old
11943
# archive will be linked into the output, leading to subtle bugs.
11944
postdeps_CXX='-lCstd -lCrun'
11951
case " $postdeps_CXX " in
11952
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11955
lt_prog_compiler_wl_CXX=
11956
lt_prog_compiler_pic_CXX=
11957
lt_prog_compiler_static_CXX=
11959
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11960
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11962
# C++ specific cases for pic, static, wl, etc.
11963
if test "$GXX" = yes; then
11964
lt_prog_compiler_wl_CXX='-Wl,'
11965
lt_prog_compiler_static_CXX='-static'
11969
# All AIX code is PIC.
11970
if test "$host_cpu" = ia64; then
11971
# AIX 5 now supports IA64 processor
11972
lt_prog_compiler_static_CXX='-Bstatic'
11976
# FIXME: we need at least 68020 code to build shared libraries, but
11977
# adding the `-m68020' flag to GCC prevents building anything better,
11979
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11981
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11982
# PIC is the default for these OSes.
11984
mingw* | os2* | pw32*)
11985
# This hack is so that the source file can tell whether it is being
11986
# built for inclusion in a dll (and should export symbols for example).
11987
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11989
darwin* | rhapsody*)
11990
# PIC is the default on this platform
11991
# Common symbols not allowed in MH_DYLIB files
11992
lt_prog_compiler_pic_CXX='-fno-common'
11995
# DJGPP does not support shared libraries at all
11996
lt_prog_compiler_pic_CXX=
11999
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
12000
# Instead, we relocate shared libraries at runtime.
12003
if test -d /usr/nec; then
12004
lt_prog_compiler_pic_CXX=-Kconform_pic
12008
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12009
# not for PA HP-UX.
12014
lt_prog_compiler_pic_CXX='-fPIC'
12019
lt_prog_compiler_pic_CXX='-fPIC'
12025
# All AIX code is PIC.
12026
if test "$host_cpu" = ia64; then
12027
# AIX 5 now supports IA64 processor
12028
lt_prog_compiler_static_CXX='-Bstatic'
12030
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12034
case $cc_basename in
12036
# Green Hills C++ Compiler
12037
# _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"
12042
# PIC is the default on this platform
12043
# Common symbols not allowed in MH_DYLIB files
12044
case $cc_basename in
12046
lt_prog_compiler_pic_CXX='-qnocommon'
12047
lt_prog_compiler_wl_CXX='-Wl,'
12052
case $cc_basename in
12054
lt_prog_compiler_pic_CXX='-KPIC'
12057
# Green Hills C++ Compiler
12058
lt_prog_compiler_pic_CXX='-pic'
12064
freebsd* | dragonfly*)
12065
# FreeBSD uses GNU C++
12067
hpux9* | hpux10* | hpux11*)
12068
case $cc_basename in
12070
lt_prog_compiler_wl_CXX='-Wl,'
12071
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12072
if test "$host_cpu" != ia64; then
12073
lt_prog_compiler_pic_CXX='+Z'
12077
lt_prog_compiler_wl_CXX='-Wl,'
12078
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12084
lt_prog_compiler_pic_CXX='+Z'
12093
# This is c89, which is MS Visual C++ (no shared libs)
12094
# Anyone wants to do a port?
12096
irix5* | irix6* | nonstopux*)
12097
case $cc_basename in
12099
lt_prog_compiler_wl_CXX='-Wl,'
12100
lt_prog_compiler_static_CXX='-non_shared'
12101
# CC pic flag -KPIC is the default.
12107
linux* | k*bsd*-gnu)
12108
case $cc_basename in
12111
lt_prog_compiler_wl_CXX='--backend -Wl,'
12112
lt_prog_compiler_pic_CXX='-fPIC'
12116
lt_prog_compiler_wl_CXX='-Wl,'
12117
lt_prog_compiler_pic_CXX='-KPIC'
12118
lt_prog_compiler_static_CXX='-static'
12121
# Portland Group C++ compiler.
12122
lt_prog_compiler_wl_CXX='-Wl,'
12123
lt_prog_compiler_pic_CXX='-fpic'
12124
lt_prog_compiler_static_CXX='-Bstatic'
12128
# Make sure the PIC flag is empty. It appears that all Alpha
12129
# Linux and Compaq Tru64 Unix objects are PIC.
12130
lt_prog_compiler_pic_CXX=
12131
lt_prog_compiler_static_CXX='-non_shared'
12142
case $cc_basename in
12144
lt_prog_compiler_pic_CXX='-W c,exportall'
12150
netbsd* | netbsdelf*-gnu)
12152
osf3* | osf4* | osf5*)
12153
case $cc_basename in
12155
lt_prog_compiler_wl_CXX='--backend -Wl,'
12158
# Rational C++ 2.4.1
12159
lt_prog_compiler_pic_CXX='-pic'
12162
# Digital/Compaq C++
12163
lt_prog_compiler_wl_CXX='-Wl,'
12164
# Make sure the PIC flag is empty. It appears that all Alpha
12165
# Linux and Compaq Tru64 Unix objects are PIC.
12166
lt_prog_compiler_pic_CXX=
12167
lt_prog_compiler_static_CXX='-non_shared'
12176
case $cc_basename in
12178
# Sun C++ 4.2, 5.x and Centerline C++
12179
lt_prog_compiler_pic_CXX='-KPIC'
12180
lt_prog_compiler_static_CXX='-Bstatic'
12181
lt_prog_compiler_wl_CXX='-Qoption ld '
12184
# Green Hills C++ Compiler
12185
lt_prog_compiler_pic_CXX='-PIC'
12192
case $cc_basename in
12195
lt_prog_compiler_pic_CXX='-pic'
12196
lt_prog_compiler_static_CXX='-Bstatic'
12200
lt_prog_compiler_pic_CXX='-pic'
12207
case $cc_basename in
12209
# NonStop-UX NCC 3.20
12210
lt_prog_compiler_pic_CXX='-KPIC'
12216
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12217
case $cc_basename in
12219
lt_prog_compiler_wl_CXX='-Wl,'
12220
lt_prog_compiler_pic_CXX='-KPIC'
12221
lt_prog_compiler_static_CXX='-Bstatic'
12228
lt_prog_compiler_can_build_shared_CXX=no
12233
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12234
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12237
# Check to make sure the PIC flag actually works.
12239
if test -n "$lt_prog_compiler_pic_CXX"; then
12241
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12242
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12243
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12244
echo $ECHO_N "(cached) $ECHO_C" >&6
12246
lt_prog_compiler_pic_works_CXX=no
12247
ac_outfile=conftest.$ac_objext
12248
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12249
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12250
# Insert the option either (1) after the last *FLAGS variable, or
12251
# (2) before a word containing "conftest.", or (3) at the end.
12252
# Note that $ac_compile itself does not contain backslashes and begins
12253
# with a dollar sign (not a hyphen), so the echo should work correctly.
12254
# The option is referenced via a variable to avoid confusing sed.
12255
lt_compile=`echo "$ac_compile" | $SED \
12256
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12257
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12258
-e 's:$: $lt_compiler_flag:'`
12259
(eval echo "\"\$as_me:12259: $lt_compile\"" >&5)
12260
(eval "$lt_compile" 2>conftest.err)
12262
cat conftest.err >&5
12263
echo "$as_me:12263: \$? = $ac_status" >&5
12264
if (exit $ac_status) && test -s "$ac_outfile"; then
12265
# The compiler can only warn and ignore the option if not recognized
12266
# So say no if there are warnings other than the usual output.
12267
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12268
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12269
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12270
lt_prog_compiler_pic_works_CXX=yes
12276
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12277
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12279
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12280
case $lt_prog_compiler_pic_CXX in
12282
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12285
lt_prog_compiler_pic_CXX=
12286
lt_prog_compiler_can_build_shared_CXX=no
12291
# For platforms which do not support PIC, -DPIC is meaningless:
12293
lt_prog_compiler_pic_CXX=
12296
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12301
# Check to make sure the static flag actually works.
12303
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12304
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12305
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12306
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12307
echo $ECHO_N "(cached) $ECHO_C" >&6
12309
lt_prog_compiler_static_works_CXX=no
12310
save_LDFLAGS="$LDFLAGS"
12311
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12312
printf "$lt_simple_link_test_code" > conftest.$ac_ext
12313
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12314
# The linker can only warn and ignore the option if not recognized
12315
# So say no if there are warnings
12316
if test -s conftest.err; then
12317
# Append any errors to the config.log.
12318
cat conftest.err 1>&5
12319
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12320
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12321
if diff conftest.exp conftest.er2 >/dev/null; then
12322
lt_prog_compiler_static_works_CXX=yes
12325
lt_prog_compiler_static_works_CXX=yes
12329
LDFLAGS="$save_LDFLAGS"
12332
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12333
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12335
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12338
lt_prog_compiler_static_CXX=
12342
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12343
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12344
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12345
echo $ECHO_N "(cached) $ECHO_C" >&6
12347
lt_cv_prog_compiler_c_o_CXX=no
12348
$rm -r conftest 2>/dev/null
12352
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12354
lt_compiler_flag="-o out/conftest2.$ac_objext"
12355
# Insert the option either (1) after the last *FLAGS variable, or
12356
# (2) before a word containing "conftest.", or (3) at the end.
12357
# Note that $ac_compile itself does not contain backslashes and begins
12358
# with a dollar sign (not a hyphen), so the echo should work correctly.
12359
lt_compile=`echo "$ac_compile" | $SED \
12360
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12361
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12362
-e 's:$: $lt_compiler_flag:'`
12363
(eval echo "\"\$as_me:12363: $lt_compile\"" >&5)
12364
(eval "$lt_compile" 2>out/conftest.err)
12366
cat out/conftest.err >&5
12367
echo "$as_me:12367: \$? = $ac_status" >&5
12368
if (exit $ac_status) && test -s out/conftest2.$ac_objext
12370
# The compiler can only warn and ignore the option if not recognized
12371
# So say no if there are warnings
12372
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12373
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12374
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12375
lt_cv_prog_compiler_c_o_CXX=yes
12380
# SGI C++ compiler will create directory out/ii_files/ for
12381
# template instantiation
12382
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12383
$rm out/* && rmdir out
12389
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12390
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12393
hard_links="nottested"
12394
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12395
# do not overwrite the value of need_locks provided by the user
12396
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12397
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12400
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12402
ln conftest.a conftest.b 2>&5 || hard_links=no
12403
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12404
{ echo "$as_me:$LINENO: result: $hard_links" >&5
12405
echo "${ECHO_T}$hard_links" >&6; }
12406
if test "$hard_links" = no; then
12407
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12408
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12415
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12416
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12418
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12421
# If we're using GNU nm, then we don't want the "-C" option.
12422
# -C means demangle to AIX nm, but means don't demangle with GNU nm
12423
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12424
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'
12426
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'
12430
export_symbols_cmds_CXX="$ltdll_cmds"
12433
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'
12435
linux* | k*bsd*-gnu)
12436
link_all_deplibs_CXX=no
12439
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12443
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12444
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12445
test "$ld_shlibs_CXX" = no && can_build_shared=no
12448
# Do we need to explicitly link libc?
12450
case "x$archive_cmds_need_lc_CXX" in
12452
# Assume -lc should be added
12453
archive_cmds_need_lc_CXX=yes
12455
if test "$enable_shared" = yes && test "$GCC" = yes; then
12456
case $archive_cmds_CXX in
12458
# FIXME: we may have to deal with multi-command sequences.
12461
# Test whether the compiler implicitly links with -lc since on some
12462
# systems, -lgcc has to come before -lc. If gcc already passes -lc
12463
# to ld, don't add -lc before -lgcc.
12464
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12465
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12467
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12469
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12470
(eval $ac_compile) 2>&5
12472
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473
(exit $ac_status); } 2>conftest.err; then
12476
libobjs=conftest.$ac_objext
12478
wl=$lt_prog_compiler_wl_CXX
12479
pic_flag=$lt_prog_compiler_pic_CXX
12485
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12486
allow_undefined_flag_CXX=
12487
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12488
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12490
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491
(exit $ac_status); }
12493
archive_cmds_need_lc_CXX=no
12495
archive_cmds_need_lc_CXX=yes
12497
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12499
cat conftest.err 1>&5
12502
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12503
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12510
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12511
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12512
library_names_spec=
12513
libname_spec='lib$name'
12517
postuninstall_cmds=
12521
shlibpath_overrides_runpath=unknown
12523
dynamic_linker="$host_os ld.so"
12524
sys_lib_dlsearch_path_spec="/lib /usr/lib"
12525
if test "$GCC" = yes; then
12526
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12527
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12528
# if the path contains ";" then we assume it to be the separator
12529
# otherwise default to the standard path separator (i.e. ":") - it is
12530
# assumed that no part of a normal pathname contains ";" but that should
12531
# okay in the real world where ";" in dirpaths is itself problematic.
12532
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12534
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12537
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12539
need_lib_prefix=unknown
12540
hardcode_into_libs=no
12542
# when you set need_version to no, make sure it does not cause -set_version
12543
# flags to be left without arguments
12544
need_version=unknown
12549
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12550
shlibpath_var=LIBPATH
12552
# AIX 3 has no versioning support, so we append a major version to the name.
12553
soname_spec='${libname}${release}${shared_ext}$major'
12560
hardcode_into_libs=yes
12561
if test "$host_cpu" = ia64; then
12562
# AIX 5 supports IA64
12563
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12564
shlibpath_var=LD_LIBRARY_PATH
12566
# With GCC up to 2.95.x, collect2 would create an import file
12567
# for dependence libraries. The import file would start with
12568
# the line `#! .'. This would cause the generated library to
12569
# depend on `.', always an invalid library. This was fixed in
12570
# development snapshots of GCC prior to 3.0.
12572
aix4 | aix4.[01] | aix4.[01].*)
12573
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12575
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12578
can_build_shared=no
12582
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12583
# soname into executable. Probably we can add versioning support to
12584
# collect2, so additional links can be useful in future.
12585
if test "$aix_use_runtimelinking" = yes; then
12586
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
12587
# instead of lib<name>.a to let people know that these are not
12588
# typical AIX shared libraries.
12589
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12591
# We preserve .a as extension for shared libraries through AIX4.2
12592
# and later when we are not doing run time linking.
12593
library_names_spec='${libname}${release}.a $libname.a'
12594
soname_spec='${libname}${release}${shared_ext}$major'
12596
shlibpath_var=LIBPATH
12601
library_names_spec='$libname.ixlibrary $libname.a'
12602
# Create ${libname}_ixlibrary.a entries in /sys/libs.
12603
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'
12607
library_names_spec='${libname}${shared_ext}'
12608
dynamic_linker="$host_os ld.so"
12609
shlibpath_var=LIBRARY_PATH
12615
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12616
soname_spec='${libname}${release}${shared_ext}$major'
12617
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12618
shlibpath_var=LD_LIBRARY_PATH
12619
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12620
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12621
# the default ld.so.conf also contains /usr/contrib/lib and
12622
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12623
# libtool to hard-code these into programs
12626
cygwin* | mingw* | pw32*)
12627
version_type=windows
12632
case $GCC,$host_os in
12633
yes,cygwin* | yes,mingw* | yes,pw32*)
12634
library_names_spec='$libname.dll.a'
12635
# DLL is installed to $(libdir)/../bin by postinstall_cmds
12636
postinstall_cmds='base_file=`basename \${file}`~
12637
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12638
dldir=$destdir/`dirname \$dlpath`~
12639
test -d \$dldir || mkdir -p \$dldir~
12640
$install_prog $dir/$dlname \$dldir/$dlname~
12641
chmod a+x \$dldir/$dlname'
12642
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12643
dlpath=$dir/\$dldll~
12645
shlibpath_overrides_runpath=yes
12649
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
12650
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12651
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12654
# MinGW DLLs use traditional 'lib' prefix
12655
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12656
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12657
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12658
# It is most probably a Windows format PATH printed by
12659
# mingw gcc, but we are running on Cygwin. Gcc prints its search
12660
# path with ; separators, and with drive letters. We can handle the
12661
# drive letters (cygwin fileutils understands them), so leave them,
12662
# especially as we might pass files found there to a mingw objdump,
12663
# which wouldn't understand a cygwinified path. Ahh.
12664
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12666
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12670
# pw32 DLLs use 'pw' prefix rather than 'lib'
12671
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12677
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12680
dynamic_linker='Win32 ld.exe'
12681
# FIXME: first we should search . and the directory the executable is in
12685
darwin* | rhapsody*)
12686
dynamic_linker="$host_os dyld"
12687
version_type=darwin
12690
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12691
soname_spec='${libname}${release}${major}$shared_ext'
12692
shlibpath_overrides_runpath=yes
12693
shlibpath_var=DYLD_LIBRARY_PATH
12694
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12695
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12696
if test "$GCC" = yes; then
12697
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"`
12699
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12701
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12708
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12709
soname_spec='${libname}${release}${shared_ext}$major'
12710
shlibpath_var=LD_LIBRARY_PATH
12717
freebsd* | dragonfly*)
12718
# DragonFly does not have aout. When/if they implement a new
12719
# versioning mechanism, adjust this.
12720
if test -x /usr/bin/objformat; then
12721
objformat=`/usr/bin/objformat`
12724
freebsd[123]*) objformat=aout ;;
12725
*) objformat=elf ;;
12728
version_type=freebsd-$objformat
12729
case $version_type in
12731
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12736
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12740
shlibpath_var=LD_LIBRARY_PATH
12743
shlibpath_overrides_runpath=yes
12745
freebsd3.[01]* | freebsdelf3.[01]*)
12746
shlibpath_overrides_runpath=yes
12747
hardcode_into_libs=yes
12749
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12750
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12751
shlibpath_overrides_runpath=no
12752
hardcode_into_libs=yes
12754
freebsd*) # from 4.6 on
12755
shlibpath_overrides_runpath=yes
12756
hardcode_into_libs=yes
12765
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12766
soname_spec='${libname}${release}${shared_ext}$major'
12767
shlibpath_var=LD_LIBRARY_PATH
12768
hardcode_into_libs=yes
12771
hpux9* | hpux10* | hpux11*)
12772
# Give a soname corresponding to the major version so that dld.sl refuses to
12773
# link against other versions.
12780
hardcode_into_libs=yes
12781
dynamic_linker="$host_os dld.so"
12782
shlibpath_var=LD_LIBRARY_PATH
12783
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12784
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12785
soname_spec='${libname}${release}${shared_ext}$major'
12786
if test "X$HPUX_IA64_MODE" = X32; then
12787
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12789
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12791
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12795
hardcode_into_libs=yes
12796
dynamic_linker="$host_os dld.sl"
12797
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12798
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12799
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12800
soname_spec='${libname}${release}${shared_ext}$major'
12801
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12802
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12806
dynamic_linker="$host_os dld.sl"
12807
shlibpath_var=SHLIB_PATH
12808
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12809
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12810
soname_spec='${libname}${release}${shared_ext}$major'
12813
# HP-UX runs *really* slowly unless shared libraries are mode 555.
12814
postinstall_cmds='chmod 555 $lib'
12821
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12822
soname_spec='${libname}${release}${shared_ext}$major'
12823
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12824
shlibpath_var=LD_LIBRARY_PATH
12825
shlibpath_overrides_runpath=no
12826
hardcode_into_libs=yes
12829
irix5* | irix6* | nonstopux*)
12831
nonstopux*) version_type=nonstopux ;;
12833
if test "$lt_cv_prog_gnu_ld" = yes; then
12841
soname_spec='${libname}${release}${shared_ext}$major'
12842
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12844
irix5* | nonstopux*)
12845
libsuff= shlibsuff=
12848
case $LD in # libtool.m4 will add one of these switches to LD
12849
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12850
libsuff= shlibsuff= libmagic=32-bit;;
12851
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12852
libsuff=32 shlibsuff=N32 libmagic=N32;;
12853
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12854
libsuff=64 shlibsuff=64 libmagic=64-bit;;
12855
*) libsuff= shlibsuff= libmagic=never-match;;
12859
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12860
shlibpath_overrides_runpath=no
12861
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12862
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12863
hardcode_into_libs=yes
12866
# No shared lib support for Linux oldld, aout, or coff.
12867
linux*oldld* | linux*aout* | linux*coff*)
12871
# This must be Linux ELF.
12872
linux* | k*bsd*-gnu)
12876
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12877
soname_spec='${libname}${release}${shared_ext}$major'
12878
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12879
shlibpath_var=LD_LIBRARY_PATH
12880
shlibpath_overrides_runpath=no
12881
# This implies no fast_install, which is unacceptable.
12882
# Some rework will be needed to allow for fast_install
12883
# before this can be enabled.
12884
hardcode_into_libs=yes
12886
# Append ld.so.conf contents to the search path
12887
if test -f /etc/ld.so.conf; then
12888
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' ' '`
12889
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12892
# We used to test for /lib/ld.so.1 and disable shared libraries on
12893
# powerpc, because MkLinux only supported shared libraries with the
12894
# GNU dynamic linker. Since this was broken with cross compilers,
12895
# most powerpc-linux boxes support dynamic linking these days and
12896
# people can always --disable-shared, the test was removed, and we
12897
# assume the GNU/Linux dynamic linker is in use.
12898
dynamic_linker='GNU/Linux ld.so'
12905
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12906
soname_spec='${libname}${release}${shared_ext}$major'
12907
shlibpath_var=LD_LIBRARY_PATH
12908
shlibpath_overrides_runpath=no
12909
hardcode_into_libs=yes
12910
dynamic_linker='NetBSD ld.elf_so'
12917
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12918
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12919
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12920
dynamic_linker='NetBSD (a.out) ld.so'
12922
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12923
soname_spec='${libname}${release}${shared_ext}$major'
12924
dynamic_linker='NetBSD ld.elf_so'
12926
shlibpath_var=LD_LIBRARY_PATH
12927
shlibpath_overrides_runpath=yes
12928
hardcode_into_libs=yes
12933
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12934
shlibpath_var=LD_LIBRARY_PATH
12935
shlibpath_overrides_runpath=yes
12942
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12943
soname_spec='${libname}${release}${shared_ext}$major'
12944
shlibpath_var=LD_LIBRARY_PATH
12945
shlibpath_overrides_runpath=yes
12950
sys_lib_dlsearch_path_spec="/usr/lib"
12952
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12954
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12955
*) need_version=no ;;
12957
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12958
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12959
shlibpath_var=LD_LIBRARY_PATH
12960
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12962
openbsd2.[89] | openbsd2.[89].*)
12963
shlibpath_overrides_runpath=no
12966
shlibpath_overrides_runpath=yes
12970
shlibpath_overrides_runpath=yes
12975
libname_spec='$name'
12978
library_names_spec='$libname${shared_ext} $libname.a'
12979
dynamic_linker='OS/2 ld.exe'
12980
shlibpath_var=LIBPATH
12983
osf3* | osf4* | osf5*)
12987
soname_spec='${libname}${release}${shared_ext}$major'
12988
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12989
shlibpath_var=LD_LIBRARY_PATH
12990
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12991
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12998
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12999
soname_spec='${libname}${release}${shared_ext}$major'
13000
shlibpath_var=LD_LIBRARY_PATH
13001
shlibpath_overrides_runpath=yes
13002
hardcode_into_libs=yes
13003
# ldd complains unless libraries are executable
13004
postinstall_cmds='chmod +x $lib'
13009
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13010
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13011
shlibpath_var=LD_LIBRARY_PATH
13012
shlibpath_overrides_runpath=yes
13013
if test "$with_gnu_ld" = yes; then
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
case $host_vendor in
13026
shlibpath_overrides_runpath=no
13028
export_dynamic_flag_spec='${wl}-Blargedynsym'
13029
runpath_var=LD_RUN_PATH
13037
shlibpath_overrides_runpath=no
13038
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13044
if test -d /usr/nec ;then
13046
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13047
soname_spec='$libname${shared_ext}.$major'
13048
shlibpath_var=LD_LIBRARY_PATH
13052
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13053
version_type=freebsd-elf
13056
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13057
soname_spec='${libname}${release}${shared_ext}$major'
13058
shlibpath_var=LD_LIBRARY_PATH
13059
hardcode_into_libs=yes
13060
if test "$with_gnu_ld" = yes; then
13061
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13062
shlibpath_overrides_runpath=no
13064
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13065
shlibpath_overrides_runpath=yes
13068
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13072
sys_lib_dlsearch_path_spec='/usr/lib'
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
13086
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13087
echo "${ECHO_T}$dynamic_linker" >&6; }
13088
test "$dynamic_linker" = no && can_build_shared=no
13090
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13091
if test "$GCC" = yes; then
13092
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13095
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13096
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13097
hardcode_action_CXX=
13098
if test -n "$hardcode_libdir_flag_spec_CXX" || \
13099
test -n "$runpath_var_CXX" || \
13100
test "X$hardcode_automatic_CXX" = "Xyes" ; then
13102
# We can hardcode non-existant directories.
13103
if test "$hardcode_direct_CXX" != no &&
13104
# If the only mechanism to avoid hardcoding is shlibpath_var, we
13105
# have to relink, otherwise we might link with an installed library
13106
# when we should be linking with a yet-to-be-installed one
13107
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13108
test "$hardcode_minus_L_CXX" != no; then
13109
# Linking always hardcodes the temporary library directory.
13110
hardcode_action_CXX=relink
13112
# We can link without hardcoding, and we can hardcode nonexisting dirs.
13113
hardcode_action_CXX=immediate
13116
# We cannot hardcode anything, or else we can only hardcode existing
13118
hardcode_action_CXX=unsupported
13120
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13121
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13123
if test "$hardcode_action_CXX" = relink; then
13124
# Fast installation is not supported
13125
enable_fast_install=no
13126
elif test "$shlibpath_overrides_runpath" = yes ||
13127
test "$enable_shared" = no; then
13128
# Fast installation is not necessary
13129
enable_fast_install=needless
13133
# The else clause should only fire when bootstrapping the
13134
# libtool distribution, otherwise you forgot to ship ltmain.sh
13135
# with your package, and you will get complaints that there are
13136
# no rules to generate ltmain.sh.
13137
if test -f "$ltmain"; then
13138
# See if we are running on zsh, and set the options which allow our commands through
13139
# without removal of \ escapes.
13140
if test -n "${ZSH_VERSION+set}" ; then
13141
setopt NO_GLOB_SUBST
13143
# Now quote all the things that may contain metacharacters while being
13144
# careful not to overquote the AC_SUBSTed values. We take copies of the
13145
# variables and quote the copies for generation of the libtool script.
13146
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13148
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13149
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13150
deplibs_check_method reload_flag reload_cmds need_locks \
13151
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13152
lt_cv_sys_global_symbol_to_c_name_address \
13153
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13154
old_postinstall_cmds old_postuninstall_cmds \
13158
lt_prog_compiler_wl_CXX \
13159
lt_prog_compiler_pic_CXX \
13160
lt_prog_compiler_static_CXX \
13161
lt_prog_compiler_no_builtin_flag_CXX \
13162
export_dynamic_flag_spec_CXX \
13163
thread_safe_flag_spec_CXX \
13164
whole_archive_flag_spec_CXX \
13165
enable_shared_with_static_runtimes_CXX \
13166
old_archive_cmds_CXX \
13167
old_archive_from_new_cmds_CXX \
13168
predep_objects_CXX \
13169
postdep_objects_CXX \
13172
compiler_lib_search_path_CXX \
13174
archive_expsym_cmds_CXX \
13175
postinstall_cmds_CXX \
13176
postuninstall_cmds_CXX \
13177
old_archive_from_expsyms_cmds_CXX \
13178
allow_undefined_flag_CXX \
13179
no_undefined_flag_CXX \
13180
export_symbols_cmds_CXX \
13181
hardcode_libdir_flag_spec_CXX \
13182
hardcode_libdir_flag_spec_ld_CXX \
13183
hardcode_libdir_separator_CXX \
13184
hardcode_automatic_CXX \
13186
module_expsym_cmds_CXX \
13187
lt_cv_prog_compiler_c_o_CXX \
13188
exclude_expsyms_CXX \
13189
include_expsyms_CXX; do
13192
old_archive_cmds_CXX | \
13193
old_archive_from_new_cmds_CXX | \
13194
archive_cmds_CXX | \
13195
archive_expsym_cmds_CXX | \
13196
module_cmds_CXX | \
13197
module_expsym_cmds_CXX | \
13198
old_archive_from_expsyms_cmds_CXX | \
13199
export_symbols_cmds_CXX | \
13200
extract_expsyms_cmds | reload_cmds | finish_cmds | \
13201
postinstall_cmds | postuninstall_cmds | \
13202
old_postinstall_cmds | old_postuninstall_cmds | \
13203
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13204
# Double-quote double-evaled strings.
13205
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13208
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13214
*'\$0 --fallback-echo"')
13215
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13221
cat <<__EOF__ >> "$cfgfile"
13222
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13224
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13226
# Shell to use when invoking shell scripts.
13229
# Whether or not to build shared libraries.
13230
build_libtool_libs=$enable_shared
13232
# Whether or not to build static libraries.
13233
build_old_libs=$enable_static
13235
# Whether or not to add -lc for building shared libraries.
13236
build_libtool_need_lc=$archive_cmds_need_lc_CXX
13238
# Whether or not to disallow shared libs when runtime libs are static
13239
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13241
# Whether or not to optimize for fast installation.
13242
fast_install=$enable_fast_install
13245
host_alias=$host_alias
13249
# The build system.
13250
build_alias=$build_alias
13254
# An echo program that does not interpret backslashes.
13259
AR_FLAGS=$lt_AR_FLAGS
13264
# LTCC compiler flags.
13265
LTCFLAGS=$lt_LTCFLAGS
13267
# A language-specific compiler.
13268
CC=$lt_compiler_CXX
13270
# Is the compiler the GNU C compiler?
13276
# The linker used to build libraries.
13279
# Whether we need hard or soft links.
13282
# A BSD-compatible nm program.
13285
# A symbol stripping program
13288
# Used to examine libraries when file_magic_cmd begins "file"
13289
MAGIC_CMD=$MAGIC_CMD
13291
# Used on cygwin: DLL creation program.
13294
# Used on cygwin: object dumper.
13297
# Used on cygwin: assembler.
13300
# The name of the directory that contains temporary libtool files.
13303
# How to create reloadable object files.
13304
reload_flag=$lt_reload_flag
13305
reload_cmds=$lt_reload_cmds
13307
# How to pass a linker flag through the compiler.
13308
wl=$lt_lt_prog_compiler_wl_CXX
13310
# Object file suffix (normally "o").
13311
objext="$ac_objext"
13313
# Old archive suffix (normally "a").
13316
# Shared library suffix (normally ".so").
13317
shrext_cmds='$shrext_cmds'
13319
# Executable file suffix (normally "").
13322
# Additional compiler flags for building library objects.
13323
pic_flag=$lt_lt_prog_compiler_pic_CXX
13326
# What is the maximum length of a command?
13327
max_cmd_len=$lt_cv_sys_max_cmd_len
13329
# Does compiler simultaneously support -c and -o options?
13330
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13332
# Must we lock files when doing compilation?
13333
need_locks=$lt_need_locks
13335
# Do we need the lib prefix for modules?
13336
need_lib_prefix=$need_lib_prefix
13338
# Do we need a version for libraries?
13339
need_version=$need_version
13341
# Whether dlopen is supported.
13342
dlopen_support=$enable_dlopen
13344
# Whether dlopen of programs is supported.
13345
dlopen_self=$enable_dlopen_self
13347
# Whether dlopen of statically linked programs is supported.
13348
dlopen_self_static=$enable_dlopen_self_static
13350
# Compiler flag to prevent dynamic linking.
13351
link_static_flag=$lt_lt_prog_compiler_static_CXX
13353
# Compiler flag to turn off builtin functions.
13354
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13356
# Compiler flag to allow reflexive dlopens.
13357
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13359
# Compiler flag to generate shared objects directly from archives.
13360
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13362
# Compiler flag to generate thread-safe objects.
13363
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13365
# Library versioning type.
13366
version_type=$version_type
13368
# Format of library name prefix.
13369
libname_spec=$lt_libname_spec
13371
# List of archive names. First name is the real one, the rest are links.
13372
# The last name is the one that the linker finds with -lNAME.
13373
library_names_spec=$lt_library_names_spec
13375
# The coded name of the library, if different from the real name.
13376
soname_spec=$lt_soname_spec
13378
# Commands used to build and install an old-style archive.
13380
old_archive_cmds=$lt_old_archive_cmds_CXX
13381
old_postinstall_cmds=$lt_old_postinstall_cmds
13382
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13384
# Create an old-style archive from a shared archive.
13385
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13387
# Create a temporary old-style archive to link instead of a shared archive.
13388
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13390
# Commands used to build and install a shared archive.
13391
archive_cmds=$lt_archive_cmds_CXX
13392
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13393
postinstall_cmds=$lt_postinstall_cmds
13394
postuninstall_cmds=$lt_postuninstall_cmds
13396
# Commands used to build a loadable module (assumed same as above if empty)
13397
module_cmds=$lt_module_cmds_CXX
13398
module_expsym_cmds=$lt_module_expsym_cmds_CXX
13400
# Commands to strip libraries.
13401
old_striplib=$lt_old_striplib
13402
striplib=$lt_striplib
13404
# Dependencies to place before the objects being linked to create a
13406
predep_objects=$lt_predep_objects_CXX
13408
# Dependencies to place after the objects being linked to create a
13410
postdep_objects=$lt_postdep_objects_CXX
13412
# Dependencies to place before the objects being linked to create a
13414
predeps=$lt_predeps_CXX
13416
# Dependencies to place after the objects being linked to create a
13418
postdeps=$lt_postdeps_CXX
13420
# The library search path used internally by the compiler when linking
13421
# a shared library.
13422
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13424
# Method to check whether dependent libraries are shared objects.
13425
deplibs_check_method=$lt_deplibs_check_method
13427
# Command to use when deplibs_check_method == file_magic.
13428
file_magic_cmd=$lt_file_magic_cmd
13430
# Flag that allows shared libraries with undefined symbols to be built.
13431
allow_undefined_flag=$lt_allow_undefined_flag_CXX
13433
# Flag that forces no undefined symbols.
13434
no_undefined_flag=$lt_no_undefined_flag_CXX
13436
# Commands used to finish a libtool library installation in a directory.
13437
finish_cmds=$lt_finish_cmds
13439
# Same as above, but a single script fragment to be evaled but not shown.
13440
finish_eval=$lt_finish_eval
13442
# Take the output of nm and produce a listing of raw symbols and C names.
13443
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13445
# Transform the output of nm in a proper C declaration
13446
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13448
# Transform the output of nm in a C name address pair
13449
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13451
# This is the shared library runtime path variable.
13452
runpath_var=$runpath_var
13454
# This is the shared library path variable.
13455
shlibpath_var=$shlibpath_var
13457
# Is shlibpath searched before the hard-coded library search path?
13458
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13460
# How to hardcode a shared library path into an executable.
13461
hardcode_action=$hardcode_action_CXX
13463
# Whether we should hardcode library paths into libraries.
13464
hardcode_into_libs=$hardcode_into_libs
13466
# Flag to hardcode \$libdir into a binary during linking.
13467
# This must work even if \$libdir does not exist.
13468
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13470
# If ld is used when linking, flag to hardcode \$libdir into
13471
# a binary during linking. This must work even if \$libdir does
13473
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13475
# Whether we need a single -rpath flag with a separated argument.
13476
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13478
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13479
# resulting binary.
13480
hardcode_direct=$hardcode_direct_CXX
13482
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13483
# resulting binary.
13484
hardcode_minus_L=$hardcode_minus_L_CXX
13486
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13487
# the resulting binary.
13488
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13490
# Set to yes if building a shared library automatically hardcodes DIR into the library
13491
# and all subsequent libraries and executables linked against it.
13492
hardcode_automatic=$hardcode_automatic_CXX
13494
# Variables whose values should be saved in libtool wrapper scripts and
13495
# restored at relink time.
13496
variables_saved_for_relink="$variables_saved_for_relink"
13498
# Whether libtool must link a program against all its dependency libraries.
13499
link_all_deplibs=$link_all_deplibs_CXX
13501
# Compile-time system search path for libraries
13502
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13504
# Run-time system search path for libraries
13505
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13507
# Fix the shell variable \$srcfile for the compiler.
13508
fix_srcfile_path="$fix_srcfile_path_CXX"
13510
# Set to yes if exported symbols are required.
13511
always_export_symbols=$always_export_symbols_CXX
13513
# The commands to list exported symbols.
13514
export_symbols_cmds=$lt_export_symbols_cmds_CXX
13516
# The commands to extract the exported symbol list from a shared archive.
13517
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13519
# Symbols that should not be listed in the preloaded symbols.
13520
exclude_expsyms=$lt_exclude_expsyms_CXX
13522
# Symbols that must always be exported.
13523
include_expsyms=$lt_include_expsyms_CXX
13525
# ### END LIBTOOL TAG CONFIG: $tagname
13531
# If there is no Makefile yet, we rely on a make rule to execute
13532
# `config.status --recheck' to rerun these tests and create the
13533
# libtool script then.
13534
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13535
if test -f "$ltmain_in"; then
13536
test -f Makefile && make "$ltmain"
13542
ac_cpp='$CPP $CPPFLAGS'
13543
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13544
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13545
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13551
with_gnu_ldcxx=$with_gnu_ld
13552
with_gnu_ld=$lt_save_with_gnu_ld
13553
lt_cv_path_LDCXX=$lt_cv_path_LD
13554
lt_cv_path_LD=$lt_save_path_LD
13555
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13556
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13564
if test -n "$F77" && test "X$F77" != "Xno"; then
13567
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13568
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13569
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13572
archive_cmds_need_lc_F77=no
13573
allow_undefined_flag_F77=
13574
always_export_symbols_F77=no
13575
archive_expsym_cmds_F77=
13576
export_dynamic_flag_spec_F77=
13577
hardcode_direct_F77=no
13578
hardcode_libdir_flag_spec_F77=
13579
hardcode_libdir_flag_spec_ld_F77=
13580
hardcode_libdir_separator_F77=
13581
hardcode_minus_L_F77=no
13582
hardcode_automatic_F77=no
13584
module_expsym_cmds_F77=
13585
link_all_deplibs_F77=unknown
13586
old_archive_cmds_F77=$old_archive_cmds
13587
no_undefined_flag_F77=
13588
whole_archive_flag_spec_F77=
13589
enable_shared_with_static_runtimes_F77=no
13591
# Source file extension for f77 test sources.
13594
# Object file extension for compiled f77 test sources.
13598
# Code to be used in simple compile tests
13599
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13601
# Code to be used in simple link tests
13602
lt_simple_link_test_code=" program t\n end\n"
13604
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13606
# If no C compiler was specified, use CC.
13609
# If no C compiler flags were specified, use CFLAGS.
13610
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13612
# Allow CC to be a program name with arguments.
13616
# save warnings/boilerplate of simple test code
13617
ac_outfile=conftest.$ac_objext
13618
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13619
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13620
_lt_compiler_boilerplate=`cat conftest.err`
13623
ac_outfile=conftest.$ac_objext
13624
printf "$lt_simple_link_test_code" >conftest.$ac_ext
13625
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13626
_lt_linker_boilerplate=`cat conftest.err`
13630
# Allow CC to be a program name with arguments.
13635
for cc_temp in $compiler""; do
13637
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13638
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13643
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13646
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13647
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13648
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
13649
echo "${ECHO_T}$can_build_shared" >&6; }
13651
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13652
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13653
test "$can_build_shared" = "no" && enable_shared=no
13655
# On AIX, shared libraries and static libraries use the same namespace, and
13656
# are all built from PIC.
13659
test "$enable_shared" = yes && enable_static=no
13660
if test -n "$RANLIB"; then
13661
archive_cmds="$archive_cmds~\$RANLIB \$lib"
13662
postinstall_cmds='$RANLIB $lib'
13666
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13667
test "$enable_shared" = yes && enable_static=no
13671
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
13672
echo "${ECHO_T}$enable_shared" >&6; }
13674
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13675
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13676
# Make sure either enable_shared or enable_static is yes.
13677
test "$enable_shared" = yes || enable_static=yes
13678
{ echo "$as_me:$LINENO: result: $enable_static" >&5
13679
echo "${ECHO_T}$enable_static" >&6; }
13684
lt_prog_compiler_wl_F77=
13685
lt_prog_compiler_pic_F77=
13686
lt_prog_compiler_static_F77=
13688
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13689
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13691
if test "$GCC" = yes; then
13692
lt_prog_compiler_wl_F77='-Wl,'
13693
lt_prog_compiler_static_F77='-static'
13697
# All AIX code is PIC.
13698
if test "$host_cpu" = ia64; then
13699
# AIX 5 now supports IA64 processor
13700
lt_prog_compiler_static_F77='-Bstatic'
13705
# FIXME: we need at least 68020 code to build shared libraries, but
13706
# adding the `-m68020' flag to GCC prevents building anything better,
13708
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13711
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13712
# PIC is the default for these OSes.
13715
mingw* | pw32* | os2*)
13716
# This hack is so that the source file can tell whether it is being
13717
# built for inclusion in a dll (and should export symbols for example).
13718
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13721
darwin* | rhapsody*)
13722
# PIC is the default on this platform
13723
# Common symbols not allowed in MH_DYLIB files
13724
lt_prog_compiler_pic_F77='-fno-common'
13728
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
13729
# Instead, we relocate shared libraries at runtime.
13733
# Just because we use GCC doesn't mean we suddenly get shared libraries
13734
# on systems that don't support them.
13735
lt_prog_compiler_can_build_shared_F77=no
13740
if test -d /usr/nec; then
13741
lt_prog_compiler_pic_F77=-Kconform_pic
13746
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13747
# not for PA HP-UX.
13753
lt_prog_compiler_pic_F77='-fPIC'
13759
lt_prog_compiler_pic_F77='-fPIC'
13763
# PORTME Check for flag to pass linker flags through the system compiler.
13766
lt_prog_compiler_wl_F77='-Wl,'
13767
if test "$host_cpu" = ia64; then
13768
# AIX 5 now supports IA64 processor
13769
lt_prog_compiler_static_F77='-Bstatic'
13771
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13775
# PIC is the default on this platform
13776
# Common symbols not allowed in MH_DYLIB files
13777
case $cc_basename in
13779
lt_prog_compiler_pic_F77='-qnocommon'
13780
lt_prog_compiler_wl_F77='-Wl,'
13785
mingw* | pw32* | os2*)
13786
# This hack is so that the source file can tell whether it is being
13787
# built for inclusion in a dll (and should export symbols for example).
13788
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13791
hpux9* | hpux10* | hpux11*)
13792
lt_prog_compiler_wl_F77='-Wl,'
13793
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13794
# not for PA HP-UX.
13800
lt_prog_compiler_pic_F77='+Z'
13803
# Is there a better lt_prog_compiler_static that works with the bundled CC?
13804
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13807
irix5* | irix6* | nonstopux*)
13808
lt_prog_compiler_wl_F77='-Wl,'
13809
# PIC (with -KPIC) is the default.
13810
lt_prog_compiler_static_F77='-non_shared'
13814
lt_prog_compiler_pic_F77='-KPIC'
13815
lt_prog_compiler_static_F77='-Bstatic'
13818
linux* | k*bsd*-gnu)
13819
case $cc_basename in
13821
lt_prog_compiler_wl_F77='-Wl,'
13822
lt_prog_compiler_pic_F77='-KPIC'
13823
lt_prog_compiler_static_F77='-static'
13825
pgcc* | pgf77* | pgf90* | pgf95*)
13826
# Portland Group compilers (*not* the Pentium gcc compiler,
13827
# which looks to be a dead project)
13828
lt_prog_compiler_wl_F77='-Wl,'
13829
lt_prog_compiler_pic_F77='-fpic'
13830
lt_prog_compiler_static_F77='-Bstatic'
13833
lt_prog_compiler_wl_F77='-Wl,'
13834
# All Alpha code is PIC.
13835
lt_prog_compiler_static_F77='-non_shared'
13840
osf3* | osf4* | osf5*)
13841
lt_prog_compiler_wl_F77='-Wl,'
13842
# All OSF/1 code is PIC.
13843
lt_prog_compiler_static_F77='-non_shared'
13847
lt_prog_compiler_pic_F77='-KPIC'
13848
lt_prog_compiler_static_F77='-Bstatic'
13849
case $cc_basename in
13850
f77* | f90* | f95*)
13851
lt_prog_compiler_wl_F77='-Qoption ld ';;
13853
lt_prog_compiler_wl_F77='-Wl,';;
13858
lt_prog_compiler_wl_F77='-Qoption ld '
13859
lt_prog_compiler_pic_F77='-PIC'
13860
lt_prog_compiler_static_F77='-Bstatic'
13863
sysv4 | sysv4.2uw2* | sysv4.3*)
13864
lt_prog_compiler_wl_F77='-Wl,'
13865
lt_prog_compiler_pic_F77='-KPIC'
13866
lt_prog_compiler_static_F77='-Bstatic'
13870
if test -d /usr/nec ;then
13871
lt_prog_compiler_pic_F77='-Kconform_pic'
13872
lt_prog_compiler_static_F77='-Bstatic'
13876
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13877
lt_prog_compiler_wl_F77='-Wl,'
13878
lt_prog_compiler_pic_F77='-KPIC'
13879
lt_prog_compiler_static_F77='-Bstatic'
13883
lt_prog_compiler_wl_F77='-Wl,'
13884
lt_prog_compiler_can_build_shared_F77=no
13888
lt_prog_compiler_pic_F77='-pic'
13889
lt_prog_compiler_static_F77='-Bstatic'
13893
lt_prog_compiler_can_build_shared_F77=no
13898
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13899
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13902
# Check to make sure the PIC flag actually works.
13904
if test -n "$lt_prog_compiler_pic_F77"; then
13906
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13907
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13908
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13909
echo $ECHO_N "(cached) $ECHO_C" >&6
13911
lt_prog_compiler_pic_works_F77=no
13912
ac_outfile=conftest.$ac_objext
13913
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13914
lt_compiler_flag="$lt_prog_compiler_pic_F77"
13915
# Insert the option either (1) after the last *FLAGS variable, or
13916
# (2) before a word containing "conftest.", or (3) at the end.
13917
# Note that $ac_compile itself does not contain backslashes and begins
13918
# with a dollar sign (not a hyphen), so the echo should work correctly.
13919
# The option is referenced via a variable to avoid confusing sed.
13920
lt_compile=`echo "$ac_compile" | $SED \
13921
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13922
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13923
-e 's:$: $lt_compiler_flag:'`
13924
(eval echo "\"\$as_me:13924: $lt_compile\"" >&5)
13925
(eval "$lt_compile" 2>conftest.err)
13927
cat conftest.err >&5
13928
echo "$as_me:13928: \$? = $ac_status" >&5
13929
if (exit $ac_status) && test -s "$ac_outfile"; then
13930
# The compiler can only warn and ignore the option if not recognized
13931
# So say no if there are warnings other than the usual output.
13932
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13933
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13934
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13935
lt_prog_compiler_pic_works_F77=yes
13941
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13942
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13944
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13945
case $lt_prog_compiler_pic_F77 in
13947
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13950
lt_prog_compiler_pic_F77=
13951
lt_prog_compiler_can_build_shared_F77=no
13956
# For platforms which do not support PIC, -DPIC is meaningless:
13958
lt_prog_compiler_pic_F77=
13961
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13966
# Check to make sure the static flag actually works.
13968
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13969
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13970
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13971
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13972
echo $ECHO_N "(cached) $ECHO_C" >&6
13974
lt_prog_compiler_static_works_F77=no
13975
save_LDFLAGS="$LDFLAGS"
13976
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13977
printf "$lt_simple_link_test_code" > conftest.$ac_ext
13978
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13979
# The linker can only warn and ignore the option if not recognized
13980
# So say no if there are warnings
13981
if test -s conftest.err; then
13982
# Append any errors to the config.log.
13983
cat conftest.err 1>&5
13984
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13985
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13986
if diff conftest.exp conftest.er2 >/dev/null; then
13987
lt_prog_compiler_static_works_F77=yes
13990
lt_prog_compiler_static_works_F77=yes
13994
LDFLAGS="$save_LDFLAGS"
13997
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13998
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14000
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14003
lt_prog_compiler_static_F77=
14007
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14008
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14009
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14010
echo $ECHO_N "(cached) $ECHO_C" >&6
14012
lt_cv_prog_compiler_c_o_F77=no
14013
$rm -r conftest 2>/dev/null
14017
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14019
lt_compiler_flag="-o out/conftest2.$ac_objext"
14020
# Insert the option either (1) after the last *FLAGS variable, or
14021
# (2) before a word containing "conftest.", or (3) at the end.
14022
# Note that $ac_compile itself does not contain backslashes and begins
14023
# with a dollar sign (not a hyphen), so the echo should work correctly.
14024
lt_compile=`echo "$ac_compile" | $SED \
14025
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14026
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14027
-e 's:$: $lt_compiler_flag:'`
14028
(eval echo "\"\$as_me:14028: $lt_compile\"" >&5)
14029
(eval "$lt_compile" 2>out/conftest.err)
14031
cat out/conftest.err >&5
14032
echo "$as_me:14032: \$? = $ac_status" >&5
14033
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14035
# The compiler can only warn and ignore the option if not recognized
14036
# So say no if there are warnings
14037
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14038
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14039
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14040
lt_cv_prog_compiler_c_o_F77=yes
14045
# SGI C++ compiler will create directory out/ii_files/ for
14046
# template instantiation
14047
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14048
$rm out/* && rmdir out
14054
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14055
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14058
hard_links="nottested"
14059
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14060
# do not overwrite the value of need_locks provided by the user
14061
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14062
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14065
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14067
ln conftest.a conftest.b 2>&5 || hard_links=no
14068
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14069
{ echo "$as_me:$LINENO: result: $hard_links" >&5
14070
echo "${ECHO_T}$hard_links" >&6; }
14071
if test "$hard_links" = no; then
14072
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14073
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14080
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14081
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14084
allow_undefined_flag_F77=
14085
enable_shared_with_static_runtimes_F77=no
14087
archive_expsym_cmds_F77=
14088
old_archive_From_new_cmds_F77=
14089
old_archive_from_expsyms_cmds_F77=
14090
export_dynamic_flag_spec_F77=
14091
whole_archive_flag_spec_F77=
14092
thread_safe_flag_spec_F77=
14093
hardcode_libdir_flag_spec_F77=
14094
hardcode_libdir_flag_spec_ld_F77=
14095
hardcode_libdir_separator_F77=
14096
hardcode_direct_F77=no
14097
hardcode_minus_L_F77=no
14098
hardcode_shlibpath_var_F77=unsupported
14099
link_all_deplibs_F77=unknown
14100
hardcode_automatic_F77=no
14102
module_expsym_cmds_F77=
14103
always_export_symbols_F77=no
14104
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14105
# include_expsyms should be a list of space-separated symbols to be *always*
14106
# included in the symbol list
14107
include_expsyms_F77=
14108
# exclude_expsyms can be an extended regexp of symbols to exclude
14109
# it will be wrapped by ` (' and `)$', so one must not match beginning or
14110
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14111
# as well as any symbol that contains `d'.
14112
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14113
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14114
# platforms (ab)use it in PIC code, but their linkers get confused if
14115
# the symbol is explicitly referenced. Since portable code cannot
14116
# rely on this symbol name, it's probably fine to never include it in
14117
# preloaded symbol tables.
14118
extract_expsyms_cmds=
14119
# Just being paranoid about ensuring that cc_basename is set.
14120
for cc_temp in $compiler""; do
14122
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14123
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14128
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14131
cygwin* | mingw* | pw32*)
14132
# FIXME: the MSVC++ port hasn't been tested in a loooong time
14133
# When not using gcc, we currently assume that we are using
14134
# Microsoft Visual C++.
14135
if test "$GCC" != yes; then
14140
# we just hope/assume this is gcc and not c89 (= MSVC++)
14149
if test "$with_gnu_ld" = yes; then
14150
# If archive_cmds runs LD, not CC, wlarc should be empty
14153
# Set some defaults for GNU ld with shared library support. These
14154
# are reset later if shared libraries are not supported. Putting them
14155
# here allows them to be overridden if necessary.
14156
runpath_var=LD_RUN_PATH
14157
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14158
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14159
# ancient GNU ld didn't support --whole-archive et. al.
14160
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14161
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14163
whole_archive_flag_spec_F77=
14165
supports_anon_versioning=no
14166
case `$LD -v 2>/dev/null` in
14167
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14168
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14169
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14170
*\ 2.11.*) ;; # other 2.11 versions
14171
*) supports_anon_versioning=yes ;;
14174
# See if GNU ld supports shared libraries.
14176
aix3* | aix4* | aix5*)
14177
# On AIX/PPC, the GNU linker is very broken
14178
if test "$host_cpu" != ia64; then
14182
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14183
*** to be unable to reliably create shared libraries on AIX.
14184
*** Therefore, libtool is disabling shared libraries support. If you
14185
*** really care for shared libraries, you may want to modify your PATH
14186
*** so that a non-GNU linker is found, and then restart.
14193
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)'
14194
hardcode_libdir_flag_spec_F77='-L$libdir'
14195
hardcode_minus_L_F77=yes
14197
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14198
# that the semantics of dynamic libraries on AmigaOS, at least up
14199
# to version 4, is to share data among multiple programs linked
14200
# with the same dynamic library. Since this doesn't match the
14201
# behavior of shared libraries on other platforms, we can't use
14207
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14208
allow_undefined_flag_F77=unsupported
14209
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14210
# support --undefined. This deserves some investigation. FIXME
14211
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14217
cygwin* | mingw* | pw32*)
14218
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14219
# as there is no search path for DLLs.
14220
hardcode_libdir_flag_spec_F77='-L$libdir'
14221
allow_undefined_flag_F77=unsupported
14222
always_export_symbols_F77=no
14223
enable_shared_with_static_runtimes_F77=yes
14224
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14226
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14227
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14228
# If the export-symbols file already is a .def file (1st line
14229
# is EXPORTS), use it as is; otherwise, prepend...
14230
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14231
cp $export_symbols $output_objdir/$soname.def;
14233
echo EXPORTS > $output_objdir/$soname.def;
14234
cat $export_symbols >> $output_objdir/$soname.def;
14236
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14243
hardcode_direct_F77=no
14244
hardcode_shlibpath_var_F77=no
14245
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14246
export_dynamic_flag_spec_F77='${wl}-E'
14247
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14248
# Instead, shared libraries are loaded at an image base (0x10000000 by
14249
# default) and relocated if they conflict, which is a slow very memory
14250
# consuming and fragmenting process. To avoid this, we pick a random,
14251
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14252
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
14253
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'
14254
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'
14257
linux* | k*bsd*-gnu)
14258
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14260
case $cc_basename,$host_cpu in
14261
pgcc*) # Portland Group C compiler
14262
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'
14263
tmp_addflag=' $pic_flag'
14265
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14266
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'
14267
tmp_addflag=' $pic_flag -Mnomain' ;;
14268
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14269
tmp_addflag=' -i_dynamic' ;;
14270
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14271
tmp_addflag=' -i_dynamic -nofor_main' ;;
14272
ifc* | ifort*) # Intel Fortran compiler
14273
tmp_addflag=' -nofor_main' ;;
14275
archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14277
if test $supports_anon_versioning = yes; then
14278
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14279
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14280
$echo "local: *; };" >> $output_objdir/$libname.ver~
14281
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14283
link_all_deplibs_F77=no
14289
netbsd* | netbsdelf*-gnu)
14290
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14291
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14294
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14295
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14300
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14304
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14305
*** create shared libraries on Solaris systems. Therefore, libtool
14306
*** is disabling shared libraries support. We urge you to upgrade GNU
14307
*** binutils to release 2.9.1 or newer. Another option is to modify
14308
*** your PATH or compiler configuration so that the native linker is
14309
*** used, and then restart.
14312
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14313
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14314
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14320
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14321
case `$LD -v 2>&1` in
14322
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14326
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14327
*** reliably create shared libraries on SCO systems. Therefore, libtool
14328
*** is disabling shared libraries support. We urge you to upgrade GNU
14329
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14330
*** your PATH or compiler configuration so that the native linker is
14331
*** used, and then restart.
14336
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14337
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14338
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14339
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14348
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14350
hardcode_direct_F77=yes
14351
hardcode_shlibpath_var_F77=no
14355
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14356
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14357
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14364
if test "$ld_shlibs_F77" = no; then
14366
hardcode_libdir_flag_spec_F77=
14367
export_dynamic_flag_spec_F77=
14368
whole_archive_flag_spec_F77=
14371
# PORTME fill in a description of your system's linker (not GNU ld)
14374
allow_undefined_flag_F77=unsupported
14375
always_export_symbols_F77=yes
14376
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'
14377
# Note: this linker hardcodes the directories in LIBPATH if there
14378
# are no directories specified by -L.
14379
hardcode_minus_L_F77=yes
14380
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14381
# Neither direct hardcoding nor static linking is supported with a
14383
hardcode_direct_F77=unsupported
14388
if test "$host_cpu" = ia64; then
14389
# On IA64, the linker does run time linking by default, so we don't
14390
# have to do anything special.
14391
aix_use_runtimelinking=no
14392
exp_sym_flag='-Bexport'
14395
# If we're using GNU nm, then we don't want the "-C" option.
14396
# -C means demangle to AIX nm, but means don't demangle with GNU nm
14397
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14398
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'
14400
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'
14402
aix_use_runtimelinking=no
14404
# Test if we are trying to use run time linking or normal
14405
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14406
# need to do runtime linking.
14407
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14408
for ld_flag in $LDFLAGS; do
14409
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14410
aix_use_runtimelinking=yes
14417
exp_sym_flag='-bexport'
14418
no_entry_flag='-bnoentry'
14421
# When large executables or shared objects are built, AIX ld can
14422
# have problems creating the table of contents. If linking a library
14423
# or program results in "error TOC overflow" add -mminimal-toc to
14424
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14425
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14427
archive_cmds_F77=''
14428
hardcode_direct_F77=yes
14429
hardcode_libdir_separator_F77=':'
14430
link_all_deplibs_F77=yes
14432
if test "$GCC" = yes; then
14433
case $host_os in aix4.[012]|aix4.[012].*)
14434
# We only want to do this on AIX 4.2 and lower, the check
14435
# below for broken collect2 doesn't work under 4.3+
14436
collect2name=`${CC} -print-prog-name=collect2`
14437
if test -f "$collect2name" && \
14438
strings "$collect2name" | grep resolve_lib_name >/dev/null
14440
# We have reworked collect2
14441
hardcode_direct_F77=yes
14443
# We have old collect2
14444
hardcode_direct_F77=unsupported
14445
# It fails to find uninstalled libraries when the uninstalled
14446
# path is not listed in the libpath. Setting hardcode_minus_L
14447
# to unsupported forces relinking
14448
hardcode_minus_L_F77=yes
14449
hardcode_libdir_flag_spec_F77='-L$libdir'
14450
hardcode_libdir_separator_F77=
14454
shared_flag='-shared'
14455
if test "$aix_use_runtimelinking" = yes; then
14456
shared_flag="$shared_flag "'${wl}-G'
14460
if test "$host_cpu" = ia64; then
14461
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14462
# chokes on -Wl,-G. The following line is correct:
14465
if test "$aix_use_runtimelinking" = yes; then
14466
shared_flag='${wl}-G'
14468
shared_flag='${wl}-bM:SRE'
14473
# It seems that -bexpall does not export symbols beginning with
14474
# underscore (_), so it is better to generate a list of symbols to export.
14475
always_export_symbols_F77=yes
14476
if test "$aix_use_runtimelinking" = yes; then
14477
# Warning - without using the other runtime loading flags (-brtl),
14478
# -berok will link without error, but may produce a broken library.
14479
allow_undefined_flag_F77='-berok'
14480
# Determine the default libpath from the value encoded in an empty executable.
14481
cat >conftest.$ac_ext <<_ACEOF
14486
rm -f conftest.$ac_objext conftest$ac_exeext
14487
if { (ac_try="$ac_link"
14488
case "(($ac_try" in
14489
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14490
*) ac_try_echo=$ac_try;;
14492
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14493
(eval "$ac_link") 2>conftest.er1
14495
grep -v '^ *+' conftest.er1 >conftest.err
14497
cat conftest.err >&5
14498
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499
(exit $ac_status); } && {
14500
test -z "$ac_f77_werror_flag" ||
14501
test ! -s conftest.err
14502
} && test -s conftest$ac_exeext &&
14503
$as_test_x conftest$ac_exeext; then
14505
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14507
# Check for a 64-bit object if we didn't find anything.
14508
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; }
14511
echo "$as_me: failed program was:" >&5
14512
sed 's/^/| /' conftest.$ac_ext >&5
14517
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14518
conftest$ac_exeext conftest.$ac_ext
14519
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14521
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14522
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"
14524
if test "$host_cpu" = ia64; then
14525
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14526
allow_undefined_flag_F77="-z nodefs"
14527
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"
14529
# Determine the default libpath from the value encoded in an empty executable.
14530
cat >conftest.$ac_ext <<_ACEOF
14535
rm -f conftest.$ac_objext conftest$ac_exeext
14536
if { (ac_try="$ac_link"
14537
case "(($ac_try" in
14538
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14539
*) ac_try_echo=$ac_try;;
14541
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14542
(eval "$ac_link") 2>conftest.er1
14544
grep -v '^ *+' conftest.er1 >conftest.err
14546
cat conftest.err >&5
14547
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548
(exit $ac_status); } && {
14549
test -z "$ac_f77_werror_flag" ||
14550
test ! -s conftest.err
14551
} && test -s conftest$ac_exeext &&
14552
$as_test_x conftest$ac_exeext; then
14554
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14556
# Check for a 64-bit object if we didn't find anything.
14557
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; }
14560
echo "$as_me: failed program was:" >&5
14561
sed 's/^/| /' conftest.$ac_ext >&5
14566
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14567
conftest$ac_exeext conftest.$ac_ext
14568
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14570
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14571
# Warning - without using the other run time loading flags,
14572
# -berok will link without error, but may produce a broken library.
14573
no_undefined_flag_F77=' ${wl}-bernotok'
14574
allow_undefined_flag_F77=' ${wl}-berok'
14575
# Exported symbols can be pulled into shared objects from archives
14576
whole_archive_flag_spec_F77='$convenience'
14577
archive_cmds_need_lc_F77=yes
14578
# This is similar to how AIX traditionally builds its shared libraries.
14579
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'
14585
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)'
14586
hardcode_libdir_flag_spec_F77='-L$libdir'
14587
hardcode_minus_L_F77=yes
14588
# see comment about different semantics on the GNU ld section
14593
export_dynamic_flag_spec_F77=-rdynamic
14596
cygwin* | mingw* | pw32*)
14597
# When not using gcc, we currently assume that we are using
14598
# Microsoft Visual C++.
14599
# hardcode_libdir_flag_spec is actually meaningless, as there is
14600
# no search path for DLLs.
14601
hardcode_libdir_flag_spec_F77=' '
14602
allow_undefined_flag_F77=unsupported
14603
# Tell ltmain to make .lib files, not .a files.
14605
# Tell ltmain to make .dll files, not .so files.
14607
# FIXME: Setting linknames here is a bad hack.
14608
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14609
# The linker will automatically build a .lib file if we build a DLL.
14610
old_archive_From_new_cmds_F77='true'
14611
# FIXME: Should let the user specify the lib program.
14612
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14613
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14614
enable_shared_with_static_runtimes_F77=yes
14617
darwin* | rhapsody*)
14619
rhapsody* | darwin1.[012])
14620
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14623
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14624
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14626
case ${MACOSX_DEPLOYMENT_TARGET} in
14628
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14631
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14637
archive_cmds_need_lc_F77=no
14638
hardcode_direct_F77=no
14639
hardcode_automatic_F77=yes
14640
hardcode_shlibpath_var_F77=unsupported
14641
whole_archive_flag_spec_F77=''
14642
link_all_deplibs_F77=yes
14643
if test "$GCC" = yes ; then
14644
output_verbose_link_cmd='echo'
14645
archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14646
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14647
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14648
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}'
14649
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}'
14651
case $cc_basename in
14653
output_verbose_link_cmd='echo'
14654
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14655
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14656
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14657
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}'
14658
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}'
14668
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14669
hardcode_libdir_flag_spec_F77='-L$libdir'
14670
hardcode_shlibpath_var_F77=no
14677
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14678
# support. Future versions do this automatically, but an explicit c++rt0.o
14679
# does not break anything, and helps significantly (at the cost of a little
14682
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14683
hardcode_libdir_flag_spec_F77='-R$libdir'
14684
hardcode_direct_F77=yes
14685
hardcode_shlibpath_var_F77=no
14688
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
14690
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14691
hardcode_direct_F77=yes
14692
hardcode_minus_L_F77=yes
14693
hardcode_shlibpath_var_F77=no
14696
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14697
freebsd* | dragonfly*)
14698
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14699
hardcode_libdir_flag_spec_F77='-R$libdir'
14700
hardcode_direct_F77=yes
14701
hardcode_shlibpath_var_F77=no
14705
if test "$GCC" = yes; then
14706
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'
14708
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'
14710
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14711
hardcode_libdir_separator_F77=:
14712
hardcode_direct_F77=yes
14714
# hardcode_minus_L: Not really in the search PATH,
14715
# but as the default location of the library.
14716
hardcode_minus_L_F77=yes
14717
export_dynamic_flag_spec_F77='${wl}-E'
14721
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14722
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14724
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14726
if test "$with_gnu_ld" = no; then
14727
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14728
hardcode_libdir_separator_F77=:
14730
hardcode_direct_F77=yes
14731
export_dynamic_flag_spec_F77='${wl}-E'
14733
# hardcode_minus_L: Not really in the search PATH,
14734
# but as the default location of the library.
14735
hardcode_minus_L_F77=yes
14740
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14743
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14746
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14749
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14755
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14758
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14761
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14765
if test "$with_gnu_ld" = no; then
14766
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14767
hardcode_libdir_separator_F77=:
14771
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14772
hardcode_direct_F77=no
14773
hardcode_shlibpath_var_F77=no
14776
hardcode_direct_F77=yes
14777
export_dynamic_flag_spec_F77='${wl}-E'
14779
# hardcode_minus_L: Not really in the search PATH,
14780
# but as the default location of the library.
14781
hardcode_minus_L_F77=yes
14787
irix5* | irix6* | nonstopux*)
14788
if test "$GCC" = yes; then
14789
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'
14791
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'
14792
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14794
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14795
hardcode_libdir_separator_F77=:
14796
link_all_deplibs_F77=yes
14799
netbsd* | netbsdelf*-gnu)
14800
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14801
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14803
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14805
hardcode_libdir_flag_spec_F77='-R$libdir'
14806
hardcode_direct_F77=yes
14807
hardcode_shlibpath_var_F77=no
14811
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14812
hardcode_direct_F77=yes
14813
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14814
hardcode_libdir_separator_F77=:
14815
hardcode_shlibpath_var_F77=no
14819
hardcode_direct_F77=yes
14820
hardcode_shlibpath_var_F77=no
14821
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14822
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14823
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14824
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14825
export_dynamic_flag_spec_F77='${wl}-E'
14828
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14829
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14830
hardcode_libdir_flag_spec_F77='-R$libdir'
14833
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14834
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14841
hardcode_libdir_flag_spec_F77='-L$libdir'
14842
hardcode_minus_L_F77=yes
14843
allow_undefined_flag_F77=unsupported
14844
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'
14845
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14849
if test "$GCC" = yes; then
14850
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14851
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'
14853
allow_undefined_flag_F77=' -expect_unresolved \*'
14854
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'
14856
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14857
hardcode_libdir_separator_F77=:
14860
osf4* | osf5*) # as osf3* with the addition of -msym flag
14861
if test "$GCC" = yes; then
14862
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14863
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'
14864
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14866
allow_undefined_flag_F77=' -expect_unresolved \*'
14867
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'
14868
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~
14869
$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'
14871
# Both c and cxx compiler support -rpath directly
14872
hardcode_libdir_flag_spec_F77='-rpath $libdir'
14874
hardcode_libdir_separator_F77=:
14878
no_undefined_flag_F77=' -z text'
14879
if test "$GCC" = yes; then
14881
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14882
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14883
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14886
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14887
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14888
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14890
hardcode_libdir_flag_spec_F77='-R$libdir'
14891
hardcode_shlibpath_var_F77=no
14893
solaris2.[0-5] | solaris2.[0-5].*) ;;
14895
# The compiler driver will combine linker options so we
14896
# cannot just pass the convience library names through
14897
# without $wl, iff we do not link with $LD.
14898
# Luckily, gcc supports the same syntax we need for Sun Studio.
14899
# Supported since Solaris 2.6 (maybe 2.5.1?)
14902
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14904
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' ;;
14907
link_all_deplibs_F77=yes
14911
if test "x$host_vendor" = xsequent; then
14912
# Use $CC to link under sequent, because it throws in some extra .o
14913
# files that make .init and .fini sections work.
14914
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14916
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14918
hardcode_libdir_flag_spec_F77='-L$libdir'
14919
hardcode_direct_F77=yes
14920
hardcode_minus_L_F77=yes
14921
hardcode_shlibpath_var_F77=no
14925
case $host_vendor in
14927
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14928
hardcode_direct_F77=yes # is this really true???
14931
## LD is ld it makes a PLAMLIB
14932
## CC just makes a GrossModule.
14933
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14934
reload_cmds_F77='$CC -r -o $output$reload_objs'
14935
hardcode_direct_F77=no
14938
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14939
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14942
runpath_var='LD_RUN_PATH'
14943
hardcode_shlibpath_var_F77=no
14947
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14948
hardcode_shlibpath_var_F77=no
14949
export_dynamic_flag_spec_F77='-Bexport'
14953
if test -d /usr/nec; then
14954
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14955
hardcode_shlibpath_var_F77=no
14956
runpath_var=LD_RUN_PATH
14957
hardcode_runpath_var=yes
14962
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14963
no_undefined_flag_F77='${wl}-z,text'
14964
archive_cmds_need_lc_F77=no
14965
hardcode_shlibpath_var_F77=no
14966
runpath_var='LD_RUN_PATH'
14968
if test "$GCC" = yes; then
14969
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14970
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14972
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14973
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14977
sysv5* | sco3.2v5* | sco5v6*)
14978
# Note: We can NOT use -z defs as we might desire, because we do not
14979
# link with -lc, and that would cause any symbols used from libc to
14980
# always be unresolved, which means just about no library would
14981
# ever link correctly. If we're not using GNU ld we use -z text
14982
# though, which does catch some bad symbols but isn't as heavy-handed
14984
no_undefined_flag_F77='${wl}-z,text'
14985
allow_undefined_flag_F77='${wl}-z,nodefs'
14986
archive_cmds_need_lc_F77=no
14987
hardcode_shlibpath_var_F77=no
14988
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14989
hardcode_libdir_separator_F77=':'
14990
link_all_deplibs_F77=yes
14991
export_dynamic_flag_spec_F77='${wl}-Bexport'
14992
runpath_var='LD_RUN_PATH'
14994
if test "$GCC" = yes; then
14995
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14996
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14998
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14999
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15004
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15005
hardcode_libdir_flag_spec_F77='-L$libdir'
15006
hardcode_shlibpath_var_F77=no
15015
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15016
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15017
test "$ld_shlibs_F77" = no && can_build_shared=no
15020
# Do we need to explicitly link libc?
15022
case "x$archive_cmds_need_lc_F77" in
15024
# Assume -lc should be added
15025
archive_cmds_need_lc_F77=yes
15027
if test "$enable_shared" = yes && test "$GCC" = yes; then
15028
case $archive_cmds_F77 in
15030
# FIXME: we may have to deal with multi-command sequences.
15033
# Test whether the compiler implicitly links with -lc since on some
15034
# systems, -lgcc has to come before -lc. If gcc already passes -lc
15035
# to ld, don't add -lc before -lgcc.
15036
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15037
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15039
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15041
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15042
(eval $ac_compile) 2>&5
15044
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045
(exit $ac_status); } 2>conftest.err; then
15048
libobjs=conftest.$ac_objext
15050
wl=$lt_prog_compiler_wl_F77
15051
pic_flag=$lt_prog_compiler_pic_F77
15057
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15058
allow_undefined_flag_F77=
15059
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15060
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15062
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063
(exit $ac_status); }
15065
archive_cmds_need_lc_F77=no
15067
archive_cmds_need_lc_F77=yes
15069
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15071
cat conftest.err 1>&5
15074
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15075
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15082
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15083
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15084
library_names_spec=
15085
libname_spec='lib$name'
15089
postuninstall_cmds=
15093
shlibpath_overrides_runpath=unknown
15095
dynamic_linker="$host_os ld.so"
15096
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15097
if test "$GCC" = yes; then
15098
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15099
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15100
# if the path contains ";" then we assume it to be the separator
15101
# otherwise default to the standard path separator (i.e. ":") - it is
15102
# assumed that no part of a normal pathname contains ";" but that should
15103
# okay in the real world where ";" in dirpaths is itself problematic.
15104
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15106
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15109
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15111
need_lib_prefix=unknown
15112
hardcode_into_libs=no
15114
# when you set need_version to no, make sure it does not cause -set_version
15115
# flags to be left without arguments
15116
need_version=unknown
15121
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15122
shlibpath_var=LIBPATH
15124
# AIX 3 has no versioning support, so we append a major version to the name.
15125
soname_spec='${libname}${release}${shared_ext}$major'
15132
hardcode_into_libs=yes
15133
if test "$host_cpu" = ia64; then
15134
# AIX 5 supports IA64
15135
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15136
shlibpath_var=LD_LIBRARY_PATH
15138
# With GCC up to 2.95.x, collect2 would create an import file
15139
# for dependence libraries. The import file would start with
15140
# the line `#! .'. This would cause the generated library to
15141
# depend on `.', always an invalid library. This was fixed in
15142
# development snapshots of GCC prior to 3.0.
15144
aix4 | aix4.[01] | aix4.[01].*)
15145
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15147
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15150
can_build_shared=no
15154
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15155
# soname into executable. Probably we can add versioning support to
15156
# collect2, so additional links can be useful in future.
15157
if test "$aix_use_runtimelinking" = yes; then
15158
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
15159
# instead of lib<name>.a to let people know that these are not
15160
# typical AIX shared libraries.
15161
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15163
# We preserve .a as extension for shared libraries through AIX4.2
15164
# and later when we are not doing run time linking.
15165
library_names_spec='${libname}${release}.a $libname.a'
15166
soname_spec='${libname}${release}${shared_ext}$major'
15168
shlibpath_var=LIBPATH
15173
library_names_spec='$libname.ixlibrary $libname.a'
15174
# Create ${libname}_ixlibrary.a entries in /sys/libs.
15175
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'
15179
library_names_spec='${libname}${shared_ext}'
15180
dynamic_linker="$host_os ld.so"
15181
shlibpath_var=LIBRARY_PATH
15187
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15188
soname_spec='${libname}${release}${shared_ext}$major'
15189
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15190
shlibpath_var=LD_LIBRARY_PATH
15191
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15192
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15193
# the default ld.so.conf also contains /usr/contrib/lib and
15194
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15195
# libtool to hard-code these into programs
15198
cygwin* | mingw* | pw32*)
15199
version_type=windows
15204
case $GCC,$host_os in
15205
yes,cygwin* | yes,mingw* | yes,pw32*)
15206
library_names_spec='$libname.dll.a'
15207
# DLL is installed to $(libdir)/../bin by postinstall_cmds
15208
postinstall_cmds='base_file=`basename \${file}`~
15209
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15210
dldir=$destdir/`dirname \$dlpath`~
15211
test -d \$dldir || mkdir -p \$dldir~
15212
$install_prog $dir/$dlname \$dldir/$dlname~
15213
chmod a+x \$dldir/$dlname'
15214
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15215
dlpath=$dir/\$dldll~
15217
shlibpath_overrides_runpath=yes
15221
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
15222
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15223
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15226
# MinGW DLLs use traditional 'lib' prefix
15227
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15228
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15229
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15230
# It is most probably a Windows format PATH printed by
15231
# mingw gcc, but we are running on Cygwin. Gcc prints its search
15232
# path with ; separators, and with drive letters. We can handle the
15233
# drive letters (cygwin fileutils understands them), so leave them,
15234
# especially as we might pass files found there to a mingw objdump,
15235
# which wouldn't understand a cygwinified path. Ahh.
15236
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15238
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15242
# pw32 DLLs use 'pw' prefix rather than 'lib'
15243
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15249
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15252
dynamic_linker='Win32 ld.exe'
15253
# FIXME: first we should search . and the directory the executable is in
15257
darwin* | rhapsody*)
15258
dynamic_linker="$host_os dyld"
15259
version_type=darwin
15262
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15263
soname_spec='${libname}${release}${major}$shared_ext'
15264
shlibpath_overrides_runpath=yes
15265
shlibpath_var=DYLD_LIBRARY_PATH
15266
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15267
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15268
if test "$GCC" = yes; then
15269
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"`
15271
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15273
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15280
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15281
soname_spec='${libname}${release}${shared_ext}$major'
15282
shlibpath_var=LD_LIBRARY_PATH
15289
freebsd* | dragonfly*)
15290
# DragonFly does not have aout. When/if they implement a new
15291
# versioning mechanism, adjust this.
15292
if test -x /usr/bin/objformat; then
15293
objformat=`/usr/bin/objformat`
15296
freebsd[123]*) objformat=aout ;;
15297
*) objformat=elf ;;
15300
version_type=freebsd-$objformat
15301
case $version_type in
15303
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15308
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15312
shlibpath_var=LD_LIBRARY_PATH
15315
shlibpath_overrides_runpath=yes
15317
freebsd3.[01]* | freebsdelf3.[01]*)
15318
shlibpath_overrides_runpath=yes
15319
hardcode_into_libs=yes
15321
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15322
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15323
shlibpath_overrides_runpath=no
15324
hardcode_into_libs=yes
15326
freebsd*) # from 4.6 on
15327
shlibpath_overrides_runpath=yes
15328
hardcode_into_libs=yes
15337
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15338
soname_spec='${libname}${release}${shared_ext}$major'
15339
shlibpath_var=LD_LIBRARY_PATH
15340
hardcode_into_libs=yes
15343
hpux9* | hpux10* | hpux11*)
15344
# Give a soname corresponding to the major version so that dld.sl refuses to
15345
# link against other versions.
15352
hardcode_into_libs=yes
15353
dynamic_linker="$host_os dld.so"
15354
shlibpath_var=LD_LIBRARY_PATH
15355
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15356
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15357
soname_spec='${libname}${release}${shared_ext}$major'
15358
if test "X$HPUX_IA64_MODE" = X32; then
15359
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15361
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15363
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15367
hardcode_into_libs=yes
15368
dynamic_linker="$host_os dld.sl"
15369
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15370
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15371
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15372
soname_spec='${libname}${release}${shared_ext}$major'
15373
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15374
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15378
dynamic_linker="$host_os dld.sl"
15379
shlibpath_var=SHLIB_PATH
15380
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15381
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15382
soname_spec='${libname}${release}${shared_ext}$major'
15385
# HP-UX runs *really* slowly unless shared libraries are mode 555.
15386
postinstall_cmds='chmod 555 $lib'
15393
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15394
soname_spec='${libname}${release}${shared_ext}$major'
15395
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15396
shlibpath_var=LD_LIBRARY_PATH
15397
shlibpath_overrides_runpath=no
15398
hardcode_into_libs=yes
15401
irix5* | irix6* | nonstopux*)
15403
nonstopux*) version_type=nonstopux ;;
15405
if test "$lt_cv_prog_gnu_ld" = yes; then
15413
soname_spec='${libname}${release}${shared_ext}$major'
15414
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15416
irix5* | nonstopux*)
15417
libsuff= shlibsuff=
15420
case $LD in # libtool.m4 will add one of these switches to LD
15421
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15422
libsuff= shlibsuff= libmagic=32-bit;;
15423
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15424
libsuff=32 shlibsuff=N32 libmagic=N32;;
15425
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15426
libsuff=64 shlibsuff=64 libmagic=64-bit;;
15427
*) libsuff= shlibsuff= libmagic=never-match;;
15431
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15432
shlibpath_overrides_runpath=no
15433
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15434
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15435
hardcode_into_libs=yes
15438
# No shared lib support for Linux oldld, aout, or coff.
15439
linux*oldld* | linux*aout* | linux*coff*)
15443
# This must be Linux ELF.
15444
linux* | k*bsd*-gnu)
15448
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15449
soname_spec='${libname}${release}${shared_ext}$major'
15450
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15451
shlibpath_var=LD_LIBRARY_PATH
15452
shlibpath_overrides_runpath=no
15453
# This implies no fast_install, which is unacceptable.
15454
# Some rework will be needed to allow for fast_install
15455
# before this can be enabled.
15456
hardcode_into_libs=yes
15458
# Append ld.so.conf contents to the search path
15459
if test -f /etc/ld.so.conf; then
15460
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' ' '`
15461
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15464
# We used to test for /lib/ld.so.1 and disable shared libraries on
15465
# powerpc, because MkLinux only supported shared libraries with the
15466
# GNU dynamic linker. Since this was broken with cross compilers,
15467
# most powerpc-linux boxes support dynamic linking these days and
15468
# people can always --disable-shared, the test was removed, and we
15469
# assume the GNU/Linux dynamic linker is in use.
15470
dynamic_linker='GNU/Linux ld.so'
15477
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15478
soname_spec='${libname}${release}${shared_ext}$major'
15479
shlibpath_var=LD_LIBRARY_PATH
15480
shlibpath_overrides_runpath=no
15481
hardcode_into_libs=yes
15482
dynamic_linker='NetBSD ld.elf_so'
15489
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15490
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15491
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15492
dynamic_linker='NetBSD (a.out) ld.so'
15494
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15495
soname_spec='${libname}${release}${shared_ext}$major'
15496
dynamic_linker='NetBSD ld.elf_so'
15498
shlibpath_var=LD_LIBRARY_PATH
15499
shlibpath_overrides_runpath=yes
15500
hardcode_into_libs=yes
15505
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15506
shlibpath_var=LD_LIBRARY_PATH
15507
shlibpath_overrides_runpath=yes
15514
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15515
soname_spec='${libname}${release}${shared_ext}$major'
15516
shlibpath_var=LD_LIBRARY_PATH
15517
shlibpath_overrides_runpath=yes
15522
sys_lib_dlsearch_path_spec="/usr/lib"
15524
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15526
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15527
*) need_version=no ;;
15529
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15530
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15531
shlibpath_var=LD_LIBRARY_PATH
15532
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15534
openbsd2.[89] | openbsd2.[89].*)
15535
shlibpath_overrides_runpath=no
15538
shlibpath_overrides_runpath=yes
15542
shlibpath_overrides_runpath=yes
15547
libname_spec='$name'
15550
library_names_spec='$libname${shared_ext} $libname.a'
15551
dynamic_linker='OS/2 ld.exe'
15552
shlibpath_var=LIBPATH
15555
osf3* | osf4* | osf5*)
15559
soname_spec='${libname}${release}${shared_ext}$major'
15560
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15561
shlibpath_var=LD_LIBRARY_PATH
15562
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15563
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15570
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15571
soname_spec='${libname}${release}${shared_ext}$major'
15572
shlibpath_var=LD_LIBRARY_PATH
15573
shlibpath_overrides_runpath=yes
15574
hardcode_into_libs=yes
15575
# ldd complains unless libraries are executable
15576
postinstall_cmds='chmod +x $lib'
15581
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15582
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15583
shlibpath_var=LD_LIBRARY_PATH
15584
shlibpath_overrides_runpath=yes
15585
if test "$with_gnu_ld" = yes; then
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
case $host_vendor in
15598
shlibpath_overrides_runpath=no
15600
export_dynamic_flag_spec='${wl}-Blargedynsym'
15601
runpath_var=LD_RUN_PATH
15609
shlibpath_overrides_runpath=no
15610
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15616
if test -d /usr/nec ;then
15618
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15619
soname_spec='$libname${shared_ext}.$major'
15620
shlibpath_var=LD_LIBRARY_PATH
15624
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15625
version_type=freebsd-elf
15628
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15629
soname_spec='${libname}${release}${shared_ext}$major'
15630
shlibpath_var=LD_LIBRARY_PATH
15631
hardcode_into_libs=yes
15632
if test "$with_gnu_ld" = yes; then
15633
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15634
shlibpath_overrides_runpath=no
15636
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15637
shlibpath_overrides_runpath=yes
15640
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15644
sys_lib_dlsearch_path_spec='/usr/lib'
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
15658
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15659
echo "${ECHO_T}$dynamic_linker" >&6; }
15660
test "$dynamic_linker" = no && can_build_shared=no
15662
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15663
if test "$GCC" = yes; then
15664
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15667
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15668
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15669
hardcode_action_F77=
15670
if test -n "$hardcode_libdir_flag_spec_F77" || \
15671
test -n "$runpath_var_F77" || \
15672
test "X$hardcode_automatic_F77" = "Xyes" ; then
15674
# We can hardcode non-existant directories.
15675
if test "$hardcode_direct_F77" != no &&
15676
# If the only mechanism to avoid hardcoding is shlibpath_var, we
15677
# have to relink, otherwise we might link with an installed library
15678
# when we should be linking with a yet-to-be-installed one
15679
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15680
test "$hardcode_minus_L_F77" != no; then
15681
# Linking always hardcodes the temporary library directory.
15682
hardcode_action_F77=relink
15684
# We can link without hardcoding, and we can hardcode nonexisting dirs.
15685
hardcode_action_F77=immediate
15688
# We cannot hardcode anything, or else we can only hardcode existing
15690
hardcode_action_F77=unsupported
15692
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15693
echo "${ECHO_T}$hardcode_action_F77" >&6; }
15695
if test "$hardcode_action_F77" = relink; then
15696
# Fast installation is not supported
15697
enable_fast_install=no
15698
elif test "$shlibpath_overrides_runpath" = yes ||
15699
test "$enable_shared" = no; then
15700
# Fast installation is not necessary
15701
enable_fast_install=needless
15705
# The else clause should only fire when bootstrapping the
15706
# libtool distribution, otherwise you forgot to ship ltmain.sh
15707
# with your package, and you will get complaints that there are
15708
# no rules to generate ltmain.sh.
15709
if test -f "$ltmain"; then
15710
# See if we are running on zsh, and set the options which allow our commands through
15711
# without removal of \ escapes.
15712
if test -n "${ZSH_VERSION+set}" ; then
15713
setopt NO_GLOB_SUBST
15715
# Now quote all the things that may contain metacharacters while being
15716
# careful not to overquote the AC_SUBSTed values. We take copies of the
15717
# variables and quote the copies for generation of the libtool script.
15718
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15720
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15721
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15722
deplibs_check_method reload_flag reload_cmds need_locks \
15723
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15724
lt_cv_sys_global_symbol_to_c_name_address \
15725
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15726
old_postinstall_cmds old_postuninstall_cmds \
15730
lt_prog_compiler_wl_F77 \
15731
lt_prog_compiler_pic_F77 \
15732
lt_prog_compiler_static_F77 \
15733
lt_prog_compiler_no_builtin_flag_F77 \
15734
export_dynamic_flag_spec_F77 \
15735
thread_safe_flag_spec_F77 \
15736
whole_archive_flag_spec_F77 \
15737
enable_shared_with_static_runtimes_F77 \
15738
old_archive_cmds_F77 \
15739
old_archive_from_new_cmds_F77 \
15740
predep_objects_F77 \
15741
postdep_objects_F77 \
15744
compiler_lib_search_path_F77 \
15746
archive_expsym_cmds_F77 \
15747
postinstall_cmds_F77 \
15748
postuninstall_cmds_F77 \
15749
old_archive_from_expsyms_cmds_F77 \
15750
allow_undefined_flag_F77 \
15751
no_undefined_flag_F77 \
15752
export_symbols_cmds_F77 \
15753
hardcode_libdir_flag_spec_F77 \
15754
hardcode_libdir_flag_spec_ld_F77 \
15755
hardcode_libdir_separator_F77 \
15756
hardcode_automatic_F77 \
15758
module_expsym_cmds_F77 \
15759
lt_cv_prog_compiler_c_o_F77 \
15760
exclude_expsyms_F77 \
15761
include_expsyms_F77; do
15764
old_archive_cmds_F77 | \
15765
old_archive_from_new_cmds_F77 | \
15766
archive_cmds_F77 | \
15767
archive_expsym_cmds_F77 | \
15768
module_cmds_F77 | \
15769
module_expsym_cmds_F77 | \
15770
old_archive_from_expsyms_cmds_F77 | \
15771
export_symbols_cmds_F77 | \
15772
extract_expsyms_cmds | reload_cmds | finish_cmds | \
15773
postinstall_cmds | postuninstall_cmds | \
15774
old_postinstall_cmds | old_postuninstall_cmds | \
15775
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15776
# Double-quote double-evaled strings.
15777
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15780
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15786
*'\$0 --fallback-echo"')
15787
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15793
cat <<__EOF__ >> "$cfgfile"
15794
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15796
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15798
# Shell to use when invoking shell scripts.
15801
# Whether or not to build shared libraries.
15802
build_libtool_libs=$enable_shared
15804
# Whether or not to build static libraries.
15805
build_old_libs=$enable_static
15807
# Whether or not to add -lc for building shared libraries.
15808
build_libtool_need_lc=$archive_cmds_need_lc_F77
15810
# Whether or not to disallow shared libs when runtime libs are static
15811
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15813
# Whether or not to optimize for fast installation.
15814
fast_install=$enable_fast_install
15817
host_alias=$host_alias
15821
# The build system.
15822
build_alias=$build_alias
15826
# An echo program that does not interpret backslashes.
15831
AR_FLAGS=$lt_AR_FLAGS
15836
# LTCC compiler flags.
15837
LTCFLAGS=$lt_LTCFLAGS
15839
# A language-specific compiler.
15840
CC=$lt_compiler_F77
15842
# Is the compiler the GNU C compiler?
15848
# The linker used to build libraries.
15851
# Whether we need hard or soft links.
15854
# A BSD-compatible nm program.
15857
# A symbol stripping program
15860
# Used to examine libraries when file_magic_cmd begins "file"
15861
MAGIC_CMD=$MAGIC_CMD
15863
# Used on cygwin: DLL creation program.
15866
# Used on cygwin: object dumper.
15869
# Used on cygwin: assembler.
15872
# The name of the directory that contains temporary libtool files.
15875
# How to create reloadable object files.
15876
reload_flag=$lt_reload_flag
15877
reload_cmds=$lt_reload_cmds
15879
# How to pass a linker flag through the compiler.
15880
wl=$lt_lt_prog_compiler_wl_F77
15882
# Object file suffix (normally "o").
15883
objext="$ac_objext"
15885
# Old archive suffix (normally "a").
15888
# Shared library suffix (normally ".so").
15889
shrext_cmds='$shrext_cmds'
15891
# Executable file suffix (normally "").
15894
# Additional compiler flags for building library objects.
15895
pic_flag=$lt_lt_prog_compiler_pic_F77
15898
# What is the maximum length of a command?
15899
max_cmd_len=$lt_cv_sys_max_cmd_len
15901
# Does compiler simultaneously support -c and -o options?
15902
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15904
# Must we lock files when doing compilation?
15905
need_locks=$lt_need_locks
15907
# Do we need the lib prefix for modules?
15908
need_lib_prefix=$need_lib_prefix
15910
# Do we need a version for libraries?
15911
need_version=$need_version
15913
# Whether dlopen is supported.
15914
dlopen_support=$enable_dlopen
15916
# Whether dlopen of programs is supported.
15917
dlopen_self=$enable_dlopen_self
15919
# Whether dlopen of statically linked programs is supported.
15920
dlopen_self_static=$enable_dlopen_self_static
15922
# Compiler flag to prevent dynamic linking.
15923
link_static_flag=$lt_lt_prog_compiler_static_F77
15925
# Compiler flag to turn off builtin functions.
15926
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15928
# Compiler flag to allow reflexive dlopens.
15929
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15931
# Compiler flag to generate shared objects directly from archives.
15932
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15934
# Compiler flag to generate thread-safe objects.
15935
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15937
# Library versioning type.
15938
version_type=$version_type
15940
# Format of library name prefix.
15941
libname_spec=$lt_libname_spec
15943
# List of archive names. First name is the real one, the rest are links.
15944
# The last name is the one that the linker finds with -lNAME.
15945
library_names_spec=$lt_library_names_spec
15947
# The coded name of the library, if different from the real name.
15948
soname_spec=$lt_soname_spec
15950
# Commands used to build and install an old-style archive.
15952
old_archive_cmds=$lt_old_archive_cmds_F77
15953
old_postinstall_cmds=$lt_old_postinstall_cmds
15954
old_postuninstall_cmds=$lt_old_postuninstall_cmds
15956
# Create an old-style archive from a shared archive.
15957
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15959
# Create a temporary old-style archive to link instead of a shared archive.
15960
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15962
# Commands used to build and install a shared archive.
15963
archive_cmds=$lt_archive_cmds_F77
15964
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15965
postinstall_cmds=$lt_postinstall_cmds
15966
postuninstall_cmds=$lt_postuninstall_cmds
15968
# Commands used to build a loadable module (assumed same as above if empty)
15969
module_cmds=$lt_module_cmds_F77
15970
module_expsym_cmds=$lt_module_expsym_cmds_F77
15972
# Commands to strip libraries.
15973
old_striplib=$lt_old_striplib
15974
striplib=$lt_striplib
15976
# Dependencies to place before the objects being linked to create a
15978
predep_objects=$lt_predep_objects_F77
15980
# Dependencies to place after the objects being linked to create a
15982
postdep_objects=$lt_postdep_objects_F77
15984
# Dependencies to place before the objects being linked to create a
15986
predeps=$lt_predeps_F77
15988
# Dependencies to place after the objects being linked to create a
15990
postdeps=$lt_postdeps_F77
15992
# The library search path used internally by the compiler when linking
15993
# a shared library.
15994
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15996
# Method to check whether dependent libraries are shared objects.
15997
deplibs_check_method=$lt_deplibs_check_method
15999
# Command to use when deplibs_check_method == file_magic.
16000
file_magic_cmd=$lt_file_magic_cmd
16002
# Flag that allows shared libraries with undefined symbols to be built.
16003
allow_undefined_flag=$lt_allow_undefined_flag_F77
16005
# Flag that forces no undefined symbols.
16006
no_undefined_flag=$lt_no_undefined_flag_F77
16008
# Commands used to finish a libtool library installation in a directory.
16009
finish_cmds=$lt_finish_cmds
16011
# Same as above, but a single script fragment to be evaled but not shown.
16012
finish_eval=$lt_finish_eval
16014
# Take the output of nm and produce a listing of raw symbols and C names.
16015
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16017
# Transform the output of nm in a proper C declaration
16018
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16020
# Transform the output of nm in a C name address pair
16021
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16023
# This is the shared library runtime path variable.
16024
runpath_var=$runpath_var
16026
# This is the shared library path variable.
16027
shlibpath_var=$shlibpath_var
16029
# Is shlibpath searched before the hard-coded library search path?
16030
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16032
# How to hardcode a shared library path into an executable.
16033
hardcode_action=$hardcode_action_F77
16035
# Whether we should hardcode library paths into libraries.
16036
hardcode_into_libs=$hardcode_into_libs
16038
# Flag to hardcode \$libdir into a binary during linking.
16039
# This must work even if \$libdir does not exist.
16040
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16042
# If ld is used when linking, flag to hardcode \$libdir into
16043
# a binary during linking. This must work even if \$libdir does
16045
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16047
# Whether we need a single -rpath flag with a separated argument.
16048
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16050
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16051
# resulting binary.
16052
hardcode_direct=$hardcode_direct_F77
16054
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16055
# resulting binary.
16056
hardcode_minus_L=$hardcode_minus_L_F77
16058
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16059
# the resulting binary.
16060
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16062
# Set to yes if building a shared library automatically hardcodes DIR into the library
16063
# and all subsequent libraries and executables linked against it.
16064
hardcode_automatic=$hardcode_automatic_F77
16066
# Variables whose values should be saved in libtool wrapper scripts and
16067
# restored at relink time.
16068
variables_saved_for_relink="$variables_saved_for_relink"
16070
# Whether libtool must link a program against all its dependency libraries.
16071
link_all_deplibs=$link_all_deplibs_F77
16073
# Compile-time system search path for libraries
16074
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16076
# Run-time system search path for libraries
16077
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16079
# Fix the shell variable \$srcfile for the compiler.
16080
fix_srcfile_path="$fix_srcfile_path_F77"
16082
# Set to yes if exported symbols are required.
16083
always_export_symbols=$always_export_symbols_F77
16085
# The commands to list exported symbols.
16086
export_symbols_cmds=$lt_export_symbols_cmds_F77
16088
# The commands to extract the exported symbol list from a shared archive.
16089
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16091
# Symbols that should not be listed in the preloaded symbols.
16092
exclude_expsyms=$lt_exclude_expsyms_F77
16094
# Symbols that must always be exported.
16095
include_expsyms=$lt_include_expsyms_F77
16097
# ### END LIBTOOL TAG CONFIG: $tagname
16103
# If there is no Makefile yet, we rely on a make rule to execute
16104
# `config.status --recheck' to rerun these tests and create the
16105
# libtool script then.
16106
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16107
if test -f "$ltmain_in"; then
16108
test -f Makefile && make "$ltmain"
16114
ac_cpp='$CPP $CPPFLAGS'
16115
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16116
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16117
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16127
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16130
# Source file extension for Java test sources.
16133
# Object file extension for compiled Java test sources.
16137
# Code to be used in simple compile tests
16138
lt_simple_compile_test_code="class foo {}\n"
16140
# Code to be used in simple link tests
16141
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16143
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16145
# If no C compiler was specified, use CC.
16148
# If no C compiler flags were specified, use CFLAGS.
16149
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16151
# Allow CC to be a program name with arguments.
16155
# save warnings/boilerplate of simple test code
16156
ac_outfile=conftest.$ac_objext
16157
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16158
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16159
_lt_compiler_boilerplate=`cat conftest.err`
16162
ac_outfile=conftest.$ac_objext
16163
printf "$lt_simple_link_test_code" >conftest.$ac_ext
16164
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16165
_lt_linker_boilerplate=`cat conftest.err`
16169
# Allow CC to be a program name with arguments.
16174
for cc_temp in $compiler""; do
16176
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16177
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16182
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16185
# GCJ did not exist at the time GCC didn't implicitly link libc in.
16186
archive_cmds_need_lc_GCJ=no
16188
old_archive_cmds_GCJ=$old_archive_cmds
16191
lt_prog_compiler_no_builtin_flag_GCJ=
16193
if test "$GCC" = yes; then
16194
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16197
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16198
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16199
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16200
echo $ECHO_N "(cached) $ECHO_C" >&6
16202
lt_cv_prog_compiler_rtti_exceptions=no
16203
ac_outfile=conftest.$ac_objext
16204
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16205
lt_compiler_flag="-fno-rtti -fno-exceptions"
16206
# Insert the option either (1) after the last *FLAGS variable, or
16207
# (2) before a word containing "conftest.", or (3) at the end.
16208
# Note that $ac_compile itself does not contain backslashes and begins
16209
# with a dollar sign (not a hyphen), so the echo should work correctly.
16210
# The option is referenced via a variable to avoid confusing sed.
16211
lt_compile=`echo "$ac_compile" | $SED \
16212
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16213
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16214
-e 's:$: $lt_compiler_flag:'`
16215
(eval echo "\"\$as_me:16215: $lt_compile\"" >&5)
16216
(eval "$lt_compile" 2>conftest.err)
16218
cat conftest.err >&5
16219
echo "$as_me:16219: \$? = $ac_status" >&5
16220
if (exit $ac_status) && test -s "$ac_outfile"; then
16221
# The compiler can only warn and ignore the option if not recognized
16222
# So say no if there are warnings other than the usual output.
16223
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16224
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16225
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16226
lt_cv_prog_compiler_rtti_exceptions=yes
16232
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16233
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16235
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16236
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16243
lt_prog_compiler_wl_GCJ=
16244
lt_prog_compiler_pic_GCJ=
16245
lt_prog_compiler_static_GCJ=
16247
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16248
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16250
if test "$GCC" = yes; then
16251
lt_prog_compiler_wl_GCJ='-Wl,'
16252
lt_prog_compiler_static_GCJ='-static'
16256
# All AIX code is PIC.
16257
if test "$host_cpu" = ia64; then
16258
# AIX 5 now supports IA64 processor
16259
lt_prog_compiler_static_GCJ='-Bstatic'
16264
# FIXME: we need at least 68020 code to build shared libraries, but
16265
# adding the `-m68020' flag to GCC prevents building anything better,
16267
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16270
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16271
# PIC is the default for these OSes.
16274
mingw* | pw32* | os2*)
16275
# This hack is so that the source file can tell whether it is being
16276
# built for inclusion in a dll (and should export symbols for example).
16277
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16280
darwin* | rhapsody*)
16281
# PIC is the default on this platform
16282
# Common symbols not allowed in MH_DYLIB files
16283
lt_prog_compiler_pic_GCJ='-fno-common'
16287
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
16288
# Instead, we relocate shared libraries at runtime.
16292
# Just because we use GCC doesn't mean we suddenly get shared libraries
16293
# on systems that don't support them.
16294
lt_prog_compiler_can_build_shared_GCJ=no
16299
if test -d /usr/nec; then
16300
lt_prog_compiler_pic_GCJ=-Kconform_pic
16305
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16306
# not for PA HP-UX.
16312
lt_prog_compiler_pic_GCJ='-fPIC'
16318
lt_prog_compiler_pic_GCJ='-fPIC'
16322
# PORTME Check for flag to pass linker flags through the system compiler.
16325
lt_prog_compiler_wl_GCJ='-Wl,'
16326
if test "$host_cpu" = ia64; then
16327
# AIX 5 now supports IA64 processor
16328
lt_prog_compiler_static_GCJ='-Bstatic'
16330
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16334
# PIC is the default on this platform
16335
# Common symbols not allowed in MH_DYLIB files
16336
case $cc_basename in
16338
lt_prog_compiler_pic_GCJ='-qnocommon'
16339
lt_prog_compiler_wl_GCJ='-Wl,'
16344
mingw* | pw32* | os2*)
16345
# This hack is so that the source file can tell whether it is being
16346
# built for inclusion in a dll (and should export symbols for example).
16347
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16350
hpux9* | hpux10* | hpux11*)
16351
lt_prog_compiler_wl_GCJ='-Wl,'
16352
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16353
# not for PA HP-UX.
16359
lt_prog_compiler_pic_GCJ='+Z'
16362
# Is there a better lt_prog_compiler_static that works with the bundled CC?
16363
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16366
irix5* | irix6* | nonstopux*)
16367
lt_prog_compiler_wl_GCJ='-Wl,'
16368
# PIC (with -KPIC) is the default.
16369
lt_prog_compiler_static_GCJ='-non_shared'
16373
lt_prog_compiler_pic_GCJ='-KPIC'
16374
lt_prog_compiler_static_GCJ='-Bstatic'
16377
linux* | k*bsd*-gnu)
16378
case $cc_basename in
16380
lt_prog_compiler_wl_GCJ='-Wl,'
16381
lt_prog_compiler_pic_GCJ='-KPIC'
16382
lt_prog_compiler_static_GCJ='-static'
16384
pgcc* | pgf77* | pgf90* | pgf95*)
16385
# Portland Group compilers (*not* the Pentium gcc compiler,
16386
# which looks to be a dead project)
16387
lt_prog_compiler_wl_GCJ='-Wl,'
16388
lt_prog_compiler_pic_GCJ='-fpic'
16389
lt_prog_compiler_static_GCJ='-Bstatic'
16392
lt_prog_compiler_wl_GCJ='-Wl,'
16393
# All Alpha code is PIC.
16394
lt_prog_compiler_static_GCJ='-non_shared'
16399
osf3* | osf4* | osf5*)
16400
lt_prog_compiler_wl_GCJ='-Wl,'
16401
# All OSF/1 code is PIC.
16402
lt_prog_compiler_static_GCJ='-non_shared'
16406
lt_prog_compiler_pic_GCJ='-KPIC'
16407
lt_prog_compiler_static_GCJ='-Bstatic'
16408
case $cc_basename in
16409
f77* | f90* | f95*)
16410
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16412
lt_prog_compiler_wl_GCJ='-Wl,';;
16417
lt_prog_compiler_wl_GCJ='-Qoption ld '
16418
lt_prog_compiler_pic_GCJ='-PIC'
16419
lt_prog_compiler_static_GCJ='-Bstatic'
16422
sysv4 | sysv4.2uw2* | sysv4.3*)
16423
lt_prog_compiler_wl_GCJ='-Wl,'
16424
lt_prog_compiler_pic_GCJ='-KPIC'
16425
lt_prog_compiler_static_GCJ='-Bstatic'
16429
if test -d /usr/nec ;then
16430
lt_prog_compiler_pic_GCJ='-Kconform_pic'
16431
lt_prog_compiler_static_GCJ='-Bstatic'
16435
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16436
lt_prog_compiler_wl_GCJ='-Wl,'
16437
lt_prog_compiler_pic_GCJ='-KPIC'
16438
lt_prog_compiler_static_GCJ='-Bstatic'
16442
lt_prog_compiler_wl_GCJ='-Wl,'
16443
lt_prog_compiler_can_build_shared_GCJ=no
16447
lt_prog_compiler_pic_GCJ='-pic'
16448
lt_prog_compiler_static_GCJ='-Bstatic'
16452
lt_prog_compiler_can_build_shared_GCJ=no
16457
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16458
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16461
# Check to make sure the PIC flag actually works.
16463
if test -n "$lt_prog_compiler_pic_GCJ"; then
16465
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16466
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16467
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16468
echo $ECHO_N "(cached) $ECHO_C" >&6
16470
lt_prog_compiler_pic_works_GCJ=no
16471
ac_outfile=conftest.$ac_objext
16472
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16473
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16474
# Insert the option either (1) after the last *FLAGS variable, or
16475
# (2) before a word containing "conftest.", or (3) at the end.
16476
# Note that $ac_compile itself does not contain backslashes and begins
16477
# with a dollar sign (not a hyphen), so the echo should work correctly.
16478
# The option is referenced via a variable to avoid confusing sed.
16479
lt_compile=`echo "$ac_compile" | $SED \
16480
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16481
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16482
-e 's:$: $lt_compiler_flag:'`
16483
(eval echo "\"\$as_me:16483: $lt_compile\"" >&5)
16484
(eval "$lt_compile" 2>conftest.err)
16486
cat conftest.err >&5
16487
echo "$as_me:16487: \$? = $ac_status" >&5
16488
if (exit $ac_status) && test -s "$ac_outfile"; then
16489
# The compiler can only warn and ignore the option if not recognized
16490
# So say no if there are warnings other than the usual output.
16491
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16492
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16493
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16494
lt_prog_compiler_pic_works_GCJ=yes
16500
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16501
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16503
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16504
case $lt_prog_compiler_pic_GCJ in
16506
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16509
lt_prog_compiler_pic_GCJ=
16510
lt_prog_compiler_can_build_shared_GCJ=no
16515
# For platforms which do not support PIC, -DPIC is meaningless:
16517
lt_prog_compiler_pic_GCJ=
16520
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16525
# Check to make sure the static flag actually works.
16527
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16528
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16529
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16530
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16531
echo $ECHO_N "(cached) $ECHO_C" >&6
16533
lt_prog_compiler_static_works_GCJ=no
16534
save_LDFLAGS="$LDFLAGS"
16535
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16536
printf "$lt_simple_link_test_code" > conftest.$ac_ext
16537
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16538
# The linker can only warn and ignore the option if not recognized
16539
# So say no if there are warnings
16540
if test -s conftest.err; then
16541
# Append any errors to the config.log.
16542
cat conftest.err 1>&5
16543
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16544
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16545
if diff conftest.exp conftest.er2 >/dev/null; then
16546
lt_prog_compiler_static_works_GCJ=yes
16549
lt_prog_compiler_static_works_GCJ=yes
16553
LDFLAGS="$save_LDFLAGS"
16556
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16557
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16559
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16562
lt_prog_compiler_static_GCJ=
16566
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16567
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16568
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16569
echo $ECHO_N "(cached) $ECHO_C" >&6
16571
lt_cv_prog_compiler_c_o_GCJ=no
16572
$rm -r conftest 2>/dev/null
16576
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16578
lt_compiler_flag="-o out/conftest2.$ac_objext"
16579
# Insert the option either (1) after the last *FLAGS variable, or
16580
# (2) before a word containing "conftest.", or (3) at the end.
16581
# Note that $ac_compile itself does not contain backslashes and begins
16582
# with a dollar sign (not a hyphen), so the echo should work correctly.
16583
lt_compile=`echo "$ac_compile" | $SED \
16584
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16585
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16586
-e 's:$: $lt_compiler_flag:'`
16587
(eval echo "\"\$as_me:16587: $lt_compile\"" >&5)
16588
(eval "$lt_compile" 2>out/conftest.err)
16590
cat out/conftest.err >&5
16591
echo "$as_me:16591: \$? = $ac_status" >&5
16592
if (exit $ac_status) && test -s out/conftest2.$ac_objext
16594
# The compiler can only warn and ignore the option if not recognized
16595
# So say no if there are warnings
16596
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16597
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16598
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16599
lt_cv_prog_compiler_c_o_GCJ=yes
16604
# SGI C++ compiler will create directory out/ii_files/ for
16605
# template instantiation
16606
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16607
$rm out/* && rmdir out
16613
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16614
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16617
hard_links="nottested"
16618
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16619
# do not overwrite the value of need_locks provided by the user
16620
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16621
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16624
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16626
ln conftest.a conftest.b 2>&5 || hard_links=no
16627
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16628
{ echo "$as_me:$LINENO: result: $hard_links" >&5
16629
echo "${ECHO_T}$hard_links" >&6; }
16630
if test "$hard_links" = no; then
16631
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16632
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16639
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16640
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16643
allow_undefined_flag_GCJ=
16644
enable_shared_with_static_runtimes_GCJ=no
16646
archive_expsym_cmds_GCJ=
16647
old_archive_From_new_cmds_GCJ=
16648
old_archive_from_expsyms_cmds_GCJ=
16649
export_dynamic_flag_spec_GCJ=
16650
whole_archive_flag_spec_GCJ=
16651
thread_safe_flag_spec_GCJ=
16652
hardcode_libdir_flag_spec_GCJ=
16653
hardcode_libdir_flag_spec_ld_GCJ=
16654
hardcode_libdir_separator_GCJ=
16655
hardcode_direct_GCJ=no
16656
hardcode_minus_L_GCJ=no
16657
hardcode_shlibpath_var_GCJ=unsupported
16658
link_all_deplibs_GCJ=unknown
16659
hardcode_automatic_GCJ=no
16661
module_expsym_cmds_GCJ=
16662
always_export_symbols_GCJ=no
16663
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16664
# include_expsyms should be a list of space-separated symbols to be *always*
16665
# included in the symbol list
16666
include_expsyms_GCJ=
16667
# exclude_expsyms can be an extended regexp of symbols to exclude
16668
# it will be wrapped by ` (' and `)$', so one must not match beginning or
16669
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16670
# as well as any symbol that contains `d'.
16671
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16672
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16673
# platforms (ab)use it in PIC code, but their linkers get confused if
16674
# the symbol is explicitly referenced. Since portable code cannot
16675
# rely on this symbol name, it's probably fine to never include it in
16676
# preloaded symbol tables.
16677
extract_expsyms_cmds=
16678
# Just being paranoid about ensuring that cc_basename is set.
16679
for cc_temp in $compiler""; do
16681
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16682
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16687
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16690
cygwin* | mingw* | pw32*)
16691
# FIXME: the MSVC++ port hasn't been tested in a loooong time
16692
# When not using gcc, we currently assume that we are using
16693
# Microsoft Visual C++.
16694
if test "$GCC" != yes; then
16699
# we just hope/assume this is gcc and not c89 (= MSVC++)
16708
if test "$with_gnu_ld" = yes; then
16709
# If archive_cmds runs LD, not CC, wlarc should be empty
16712
# Set some defaults for GNU ld with shared library support. These
16713
# are reset later if shared libraries are not supported. Putting them
16714
# here allows them to be overridden if necessary.
16715
runpath_var=LD_RUN_PATH
16716
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16717
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16718
# ancient GNU ld didn't support --whole-archive et. al.
16719
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16720
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16722
whole_archive_flag_spec_GCJ=
16724
supports_anon_versioning=no
16725
case `$LD -v 2>/dev/null` in
16726
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16727
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16728
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16729
*\ 2.11.*) ;; # other 2.11 versions
16730
*) supports_anon_versioning=yes ;;
16733
# See if GNU ld supports shared libraries.
16735
aix3* | aix4* | aix5*)
16736
# On AIX/PPC, the GNU linker is very broken
16737
if test "$host_cpu" != ia64; then
16741
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16742
*** to be unable to reliably create shared libraries on AIX.
16743
*** Therefore, libtool is disabling shared libraries support. If you
16744
*** really care for shared libraries, you may want to modify your PATH
16745
*** so that a non-GNU linker is found, and then restart.
16752
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)'
16753
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16754
hardcode_minus_L_GCJ=yes
16756
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16757
# that the semantics of dynamic libraries on AmigaOS, at least up
16758
# to version 4, is to share data among multiple programs linked
16759
# with the same dynamic library. Since this doesn't match the
16760
# behavior of shared libraries on other platforms, we can't use
16766
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16767
allow_undefined_flag_GCJ=unsupported
16768
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16769
# support --undefined. This deserves some investigation. FIXME
16770
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16776
cygwin* | mingw* | pw32*)
16777
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16778
# as there is no search path for DLLs.
16779
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16780
allow_undefined_flag_GCJ=unsupported
16781
always_export_symbols_GCJ=no
16782
enable_shared_with_static_runtimes_GCJ=yes
16783
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16785
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16786
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16787
# If the export-symbols file already is a .def file (1st line
16788
# is EXPORTS), use it as is; otherwise, prepend...
16789
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16790
cp $export_symbols $output_objdir/$soname.def;
16792
echo EXPORTS > $output_objdir/$soname.def;
16793
cat $export_symbols >> $output_objdir/$soname.def;
16795
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16802
hardcode_direct_GCJ=no
16803
hardcode_shlibpath_var_GCJ=no
16804
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16805
export_dynamic_flag_spec_GCJ='${wl}-E'
16806
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16807
# Instead, shared libraries are loaded at an image base (0x10000000 by
16808
# default) and relocated if they conflict, which is a slow very memory
16809
# consuming and fragmenting process. To avoid this, we pick a random,
16810
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16811
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
16812
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'
16813
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'
16816
linux* | k*bsd*-gnu)
16817
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16819
case $cc_basename,$host_cpu in
16820
pgcc*) # Portland Group C compiler
16821
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'
16822
tmp_addflag=' $pic_flag'
16824
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16825
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'
16826
tmp_addflag=' $pic_flag -Mnomain' ;;
16827
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16828
tmp_addflag=' -i_dynamic' ;;
16829
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16830
tmp_addflag=' -i_dynamic -nofor_main' ;;
16831
ifc* | ifort*) # Intel Fortran compiler
16832
tmp_addflag=' -nofor_main' ;;
16834
archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16836
if test $supports_anon_versioning = yes; then
16837
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16838
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16839
$echo "local: *; };" >> $output_objdir/$libname.ver~
16840
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16842
link_all_deplibs_GCJ=no
16848
netbsd* | netbsdelf*-gnu)
16849
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16850
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16853
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16854
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16859
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16863
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16864
*** create shared libraries on Solaris systems. Therefore, libtool
16865
*** is disabling shared libraries support. We urge you to upgrade GNU
16866
*** binutils to release 2.9.1 or newer. Another option is to modify
16867
*** your PATH or compiler configuration so that the native linker is
16868
*** used, and then restart.
16871
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16872
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16873
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16879
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16880
case `$LD -v 2>&1` in
16881
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16885
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16886
*** reliably create shared libraries on SCO systems. Therefore, libtool
16887
*** is disabling shared libraries support. We urge you to upgrade GNU
16888
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16889
*** your PATH or compiler configuration so that the native linker is
16890
*** used, and then restart.
16895
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16896
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16897
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16898
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16907
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16909
hardcode_direct_GCJ=yes
16910
hardcode_shlibpath_var_GCJ=no
16914
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16915
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16916
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16923
if test "$ld_shlibs_GCJ" = no; then
16925
hardcode_libdir_flag_spec_GCJ=
16926
export_dynamic_flag_spec_GCJ=
16927
whole_archive_flag_spec_GCJ=
16930
# PORTME fill in a description of your system's linker (not GNU ld)
16933
allow_undefined_flag_GCJ=unsupported
16934
always_export_symbols_GCJ=yes
16935
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'
16936
# Note: this linker hardcodes the directories in LIBPATH if there
16937
# are no directories specified by -L.
16938
hardcode_minus_L_GCJ=yes
16939
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16940
# Neither direct hardcoding nor static linking is supported with a
16942
hardcode_direct_GCJ=unsupported
16947
if test "$host_cpu" = ia64; then
16948
# On IA64, the linker does run time linking by default, so we don't
16949
# have to do anything special.
16950
aix_use_runtimelinking=no
16951
exp_sym_flag='-Bexport'
16954
# If we're using GNU nm, then we don't want the "-C" option.
16955
# -C means demangle to AIX nm, but means don't demangle with GNU nm
16956
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16957
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'
16959
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'
16961
aix_use_runtimelinking=no
16963
# Test if we are trying to use run time linking or normal
16964
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16965
# need to do runtime linking.
16966
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16967
for ld_flag in $LDFLAGS; do
16968
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16969
aix_use_runtimelinking=yes
16976
exp_sym_flag='-bexport'
16977
no_entry_flag='-bnoentry'
16980
# When large executables or shared objects are built, AIX ld can
16981
# have problems creating the table of contents. If linking a library
16982
# or program results in "error TOC overflow" add -mminimal-toc to
16983
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16984
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16986
archive_cmds_GCJ=''
16987
hardcode_direct_GCJ=yes
16988
hardcode_libdir_separator_GCJ=':'
16989
link_all_deplibs_GCJ=yes
16991
if test "$GCC" = yes; then
16992
case $host_os in aix4.[012]|aix4.[012].*)
16993
# We only want to do this on AIX 4.2 and lower, the check
16994
# below for broken collect2 doesn't work under 4.3+
16995
collect2name=`${CC} -print-prog-name=collect2`
16996
if test -f "$collect2name" && \
16997
strings "$collect2name" | grep resolve_lib_name >/dev/null
16999
# We have reworked collect2
17000
hardcode_direct_GCJ=yes
17002
# We have old collect2
17003
hardcode_direct_GCJ=unsupported
17004
# It fails to find uninstalled libraries when the uninstalled
17005
# path is not listed in the libpath. Setting hardcode_minus_L
17006
# to unsupported forces relinking
17007
hardcode_minus_L_GCJ=yes
17008
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17009
hardcode_libdir_separator_GCJ=
17013
shared_flag='-shared'
17014
if test "$aix_use_runtimelinking" = yes; then
17015
shared_flag="$shared_flag "'${wl}-G'
17019
if test "$host_cpu" = ia64; then
17020
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17021
# chokes on -Wl,-G. The following line is correct:
17024
if test "$aix_use_runtimelinking" = yes; then
17025
shared_flag='${wl}-G'
17027
shared_flag='${wl}-bM:SRE'
17032
# It seems that -bexpall does not export symbols beginning with
17033
# underscore (_), so it is better to generate a list of symbols to export.
17034
always_export_symbols_GCJ=yes
17035
if test "$aix_use_runtimelinking" = yes; then
17036
# Warning - without using the other runtime loading flags (-brtl),
17037
# -berok will link without error, but may produce a broken library.
17038
allow_undefined_flag_GCJ='-berok'
17039
# Determine the default libpath from the value encoded in an empty executable.
17040
cat >conftest.$ac_ext <<_ACEOF
17043
cat confdefs.h >>conftest.$ac_ext
17044
cat >>conftest.$ac_ext <<_ACEOF
17045
/* end confdefs.h. */
17055
rm -f conftest.$ac_objext conftest$ac_exeext
17056
if { (ac_try="$ac_link"
17057
case "(($ac_try" in
17058
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17059
*) ac_try_echo=$ac_try;;
17061
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17062
(eval "$ac_link") 2>conftest.er1
17064
grep -v '^ *+' conftest.er1 >conftest.err
17066
cat conftest.err >&5
17067
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17068
(exit $ac_status); } && {
17069
test -z "$ac_c_werror_flag" ||
17070
test ! -s conftest.err
17071
} && test -s conftest$ac_exeext &&
17072
$as_test_x conftest$ac_exeext; then
17074
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17076
# Check for a 64-bit object if we didn't find anything.
17077
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; }
17080
echo "$as_me: failed program was:" >&5
17081
sed 's/^/| /' conftest.$ac_ext >&5
17086
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17087
conftest$ac_exeext conftest.$ac_ext
17088
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17090
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17091
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"
17093
if test "$host_cpu" = ia64; then
17094
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17095
allow_undefined_flag_GCJ="-z nodefs"
17096
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"
17098
# Determine the default libpath from the value encoded in an empty executable.
17099
cat >conftest.$ac_ext <<_ACEOF
17102
cat confdefs.h >>conftest.$ac_ext
17103
cat >>conftest.$ac_ext <<_ACEOF
17104
/* end confdefs.h. */
17114
rm -f conftest.$ac_objext conftest$ac_exeext
17115
if { (ac_try="$ac_link"
17116
case "(($ac_try" in
17117
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17118
*) ac_try_echo=$ac_try;;
17120
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17121
(eval "$ac_link") 2>conftest.er1
17123
grep -v '^ *+' conftest.er1 >conftest.err
17125
cat conftest.err >&5
17126
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127
(exit $ac_status); } && {
17128
test -z "$ac_c_werror_flag" ||
17129
test ! -s conftest.err
17130
} && test -s conftest$ac_exeext &&
17131
$as_test_x conftest$ac_exeext; then
17133
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17135
# Check for a 64-bit object if we didn't find anything.
17136
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; }
17139
echo "$as_me: failed program was:" >&5
17140
sed 's/^/| /' conftest.$ac_ext >&5
17145
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17146
conftest$ac_exeext conftest.$ac_ext
17147
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17149
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17150
# Warning - without using the other run time loading flags,
17151
# -berok will link without error, but may produce a broken library.
17152
no_undefined_flag_GCJ=' ${wl}-bernotok'
17153
allow_undefined_flag_GCJ=' ${wl}-berok'
17154
# Exported symbols can be pulled into shared objects from archives
17155
whole_archive_flag_spec_GCJ='$convenience'
17156
archive_cmds_need_lc_GCJ=yes
17157
# This is similar to how AIX traditionally builds its shared libraries.
17158
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'
17164
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)'
17165
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17166
hardcode_minus_L_GCJ=yes
17167
# see comment about different semantics on the GNU ld section
17172
export_dynamic_flag_spec_GCJ=-rdynamic
17175
cygwin* | mingw* | pw32*)
17176
# When not using gcc, we currently assume that we are using
17177
# Microsoft Visual C++.
17178
# hardcode_libdir_flag_spec is actually meaningless, as there is
17179
# no search path for DLLs.
17180
hardcode_libdir_flag_spec_GCJ=' '
17181
allow_undefined_flag_GCJ=unsupported
17182
# Tell ltmain to make .lib files, not .a files.
17184
# Tell ltmain to make .dll files, not .so files.
17186
# FIXME: Setting linknames here is a bad hack.
17187
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17188
# The linker will automatically build a .lib file if we build a DLL.
17189
old_archive_From_new_cmds_GCJ='true'
17190
# FIXME: Should let the user specify the lib program.
17191
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17192
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17193
enable_shared_with_static_runtimes_GCJ=yes
17196
darwin* | rhapsody*)
17198
rhapsody* | darwin1.[012])
17199
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17202
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17203
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17205
case ${MACOSX_DEPLOYMENT_TARGET} in
17207
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17210
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17216
archive_cmds_need_lc_GCJ=no
17217
hardcode_direct_GCJ=no
17218
hardcode_automatic_GCJ=yes
17219
hardcode_shlibpath_var_GCJ=unsupported
17220
whole_archive_flag_spec_GCJ=''
17221
link_all_deplibs_GCJ=yes
17222
if test "$GCC" = yes ; then
17223
output_verbose_link_cmd='echo'
17224
archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17225
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17226
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17227
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}'
17228
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}'
17230
case $cc_basename in
17232
output_verbose_link_cmd='echo'
17233
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17234
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17235
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17236
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}'
17237
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}'
17247
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17248
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17249
hardcode_shlibpath_var_GCJ=no
17256
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17257
# support. Future versions do this automatically, but an explicit c++rt0.o
17258
# does not break anything, and helps significantly (at the cost of a little
17261
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17262
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17263
hardcode_direct_GCJ=yes
17264
hardcode_shlibpath_var_GCJ=no
17267
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
17269
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17270
hardcode_direct_GCJ=yes
17271
hardcode_minus_L_GCJ=yes
17272
hardcode_shlibpath_var_GCJ=no
17275
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17276
freebsd* | dragonfly*)
17277
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17278
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17279
hardcode_direct_GCJ=yes
17280
hardcode_shlibpath_var_GCJ=no
17284
if test "$GCC" = yes; then
17285
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'
17287
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'
17289
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17290
hardcode_libdir_separator_GCJ=:
17291
hardcode_direct_GCJ=yes
17293
# hardcode_minus_L: Not really in the search PATH,
17294
# but as the default location of the library.
17295
hardcode_minus_L_GCJ=yes
17296
export_dynamic_flag_spec_GCJ='${wl}-E'
17300
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17301
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17303
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17305
if test "$with_gnu_ld" = no; then
17306
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17307
hardcode_libdir_separator_GCJ=:
17309
hardcode_direct_GCJ=yes
17310
export_dynamic_flag_spec_GCJ='${wl}-E'
17312
# hardcode_minus_L: Not really in the search PATH,
17313
# but as the default location of the library.
17314
hardcode_minus_L_GCJ=yes
17319
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17322
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17325
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17328
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17334
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17337
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17340
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17344
if test "$with_gnu_ld" = no; then
17345
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17346
hardcode_libdir_separator_GCJ=:
17350
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17351
hardcode_direct_GCJ=no
17352
hardcode_shlibpath_var_GCJ=no
17355
hardcode_direct_GCJ=yes
17356
export_dynamic_flag_spec_GCJ='${wl}-E'
17358
# hardcode_minus_L: Not really in the search PATH,
17359
# but as the default location of the library.
17360
hardcode_minus_L_GCJ=yes
17366
irix5* | irix6* | nonstopux*)
17367
if test "$GCC" = yes; then
17368
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'
17370
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'
17371
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17373
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17374
hardcode_libdir_separator_GCJ=:
17375
link_all_deplibs_GCJ=yes
17378
netbsd* | netbsdelf*-gnu)
17379
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17380
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17382
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17384
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17385
hardcode_direct_GCJ=yes
17386
hardcode_shlibpath_var_GCJ=no
17390
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17391
hardcode_direct_GCJ=yes
17392
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17393
hardcode_libdir_separator_GCJ=:
17394
hardcode_shlibpath_var_GCJ=no
17398
hardcode_direct_GCJ=yes
17399
hardcode_shlibpath_var_GCJ=no
17400
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17401
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17402
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17403
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17404
export_dynamic_flag_spec_GCJ='${wl}-E'
17407
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17408
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17409
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17412
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17413
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17420
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17421
hardcode_minus_L_GCJ=yes
17422
allow_undefined_flag_GCJ=unsupported
17423
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'
17424
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17428
if test "$GCC" = yes; then
17429
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17430
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'
17432
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17433
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'
17435
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17436
hardcode_libdir_separator_GCJ=:
17439
osf4* | osf5*) # as osf3* with the addition of -msym flag
17440
if test "$GCC" = yes; then
17441
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17442
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'
17443
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17445
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17446
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'
17447
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~
17448
$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'
17450
# Both c and cxx compiler support -rpath directly
17451
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17453
hardcode_libdir_separator_GCJ=:
17457
no_undefined_flag_GCJ=' -z text'
17458
if test "$GCC" = yes; then
17460
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17461
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17462
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17465
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17466
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17467
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17469
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17470
hardcode_shlibpath_var_GCJ=no
17472
solaris2.[0-5] | solaris2.[0-5].*) ;;
17474
# The compiler driver will combine linker options so we
17475
# cannot just pass the convience library names through
17476
# without $wl, iff we do not link with $LD.
17477
# Luckily, gcc supports the same syntax we need for Sun Studio.
17478
# Supported since Solaris 2.6 (maybe 2.5.1?)
17481
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17483
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' ;;
17486
link_all_deplibs_GCJ=yes
17490
if test "x$host_vendor" = xsequent; then
17491
# Use $CC to link under sequent, because it throws in some extra .o
17492
# files that make .init and .fini sections work.
17493
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17495
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17497
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17498
hardcode_direct_GCJ=yes
17499
hardcode_minus_L_GCJ=yes
17500
hardcode_shlibpath_var_GCJ=no
17504
case $host_vendor in
17506
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17507
hardcode_direct_GCJ=yes # is this really true???
17510
## LD is ld it makes a PLAMLIB
17511
## CC just makes a GrossModule.
17512
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17513
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17514
hardcode_direct_GCJ=no
17517
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17518
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17521
runpath_var='LD_RUN_PATH'
17522
hardcode_shlibpath_var_GCJ=no
17526
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17527
hardcode_shlibpath_var_GCJ=no
17528
export_dynamic_flag_spec_GCJ='-Bexport'
17532
if test -d /usr/nec; then
17533
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17534
hardcode_shlibpath_var_GCJ=no
17535
runpath_var=LD_RUN_PATH
17536
hardcode_runpath_var=yes
17541
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17542
no_undefined_flag_GCJ='${wl}-z,text'
17543
archive_cmds_need_lc_GCJ=no
17544
hardcode_shlibpath_var_GCJ=no
17545
runpath_var='LD_RUN_PATH'
17547
if test "$GCC" = yes; then
17548
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17549
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17551
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17552
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17556
sysv5* | sco3.2v5* | sco5v6*)
17557
# Note: We can NOT use -z defs as we might desire, because we do not
17558
# link with -lc, and that would cause any symbols used from libc to
17559
# always be unresolved, which means just about no library would
17560
# ever link correctly. If we're not using GNU ld we use -z text
17561
# though, which does catch some bad symbols but isn't as heavy-handed
17563
no_undefined_flag_GCJ='${wl}-z,text'
17564
allow_undefined_flag_GCJ='${wl}-z,nodefs'
17565
archive_cmds_need_lc_GCJ=no
17566
hardcode_shlibpath_var_GCJ=no
17567
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17568
hardcode_libdir_separator_GCJ=':'
17569
link_all_deplibs_GCJ=yes
17570
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17571
runpath_var='LD_RUN_PATH'
17573
if test "$GCC" = yes; then
17574
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17575
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17577
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17578
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17583
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17584
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17585
hardcode_shlibpath_var_GCJ=no
17594
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17595
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17596
test "$ld_shlibs_GCJ" = no && can_build_shared=no
17599
# Do we need to explicitly link libc?
17601
case "x$archive_cmds_need_lc_GCJ" in
17603
# Assume -lc should be added
17604
archive_cmds_need_lc_GCJ=yes
17606
if test "$enable_shared" = yes && test "$GCC" = yes; then
17607
case $archive_cmds_GCJ in
17609
# FIXME: we may have to deal with multi-command sequences.
17612
# Test whether the compiler implicitly links with -lc since on some
17613
# systems, -lgcc has to come before -lc. If gcc already passes -lc
17614
# to ld, don't add -lc before -lgcc.
17615
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17616
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17618
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17620
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17621
(eval $ac_compile) 2>&5
17623
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624
(exit $ac_status); } 2>conftest.err; then
17627
libobjs=conftest.$ac_objext
17629
wl=$lt_prog_compiler_wl_GCJ
17630
pic_flag=$lt_prog_compiler_pic_GCJ
17636
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17637
allow_undefined_flag_GCJ=
17638
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17639
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17641
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642
(exit $ac_status); }
17644
archive_cmds_need_lc_GCJ=no
17646
archive_cmds_need_lc_GCJ=yes
17648
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17650
cat conftest.err 1>&5
17653
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17654
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17661
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17662
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17663
library_names_spec=
17664
libname_spec='lib$name'
17668
postuninstall_cmds=
17672
shlibpath_overrides_runpath=unknown
17674
dynamic_linker="$host_os ld.so"
17675
sys_lib_dlsearch_path_spec="/lib /usr/lib"
17676
if test "$GCC" = yes; then
17677
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17678
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17679
# if the path contains ";" then we assume it to be the separator
17680
# otherwise default to the standard path separator (i.e. ":") - it is
17681
# assumed that no part of a normal pathname contains ";" but that should
17682
# okay in the real world where ";" in dirpaths is itself problematic.
17683
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17685
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17688
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17690
need_lib_prefix=unknown
17691
hardcode_into_libs=no
17693
# when you set need_version to no, make sure it does not cause -set_version
17694
# flags to be left without arguments
17695
need_version=unknown
17700
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17701
shlibpath_var=LIBPATH
17703
# AIX 3 has no versioning support, so we append a major version to the name.
17704
soname_spec='${libname}${release}${shared_ext}$major'
17711
hardcode_into_libs=yes
17712
if test "$host_cpu" = ia64; then
17713
# AIX 5 supports IA64
17714
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17715
shlibpath_var=LD_LIBRARY_PATH
17717
# With GCC up to 2.95.x, collect2 would create an import file
17718
# for dependence libraries. The import file would start with
17719
# the line `#! .'. This would cause the generated library to
17720
# depend on `.', always an invalid library. This was fixed in
17721
# development snapshots of GCC prior to 3.0.
17723
aix4 | aix4.[01] | aix4.[01].*)
17724
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17726
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17729
can_build_shared=no
17733
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17734
# soname into executable. Probably we can add versioning support to
17735
# collect2, so additional links can be useful in future.
17736
if test "$aix_use_runtimelinking" = yes; then
17737
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
17738
# instead of lib<name>.a to let people know that these are not
17739
# typical AIX shared libraries.
17740
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17742
# We preserve .a as extension for shared libraries through AIX4.2
17743
# and later when we are not doing run time linking.
17744
library_names_spec='${libname}${release}.a $libname.a'
17745
soname_spec='${libname}${release}${shared_ext}$major'
17747
shlibpath_var=LIBPATH
17752
library_names_spec='$libname.ixlibrary $libname.a'
17753
# Create ${libname}_ixlibrary.a entries in /sys/libs.
17754
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'
17758
library_names_spec='${libname}${shared_ext}'
17759
dynamic_linker="$host_os ld.so"
17760
shlibpath_var=LIBRARY_PATH
17766
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17767
soname_spec='${libname}${release}${shared_ext}$major'
17768
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17769
shlibpath_var=LD_LIBRARY_PATH
17770
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17771
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17772
# the default ld.so.conf also contains /usr/contrib/lib and
17773
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17774
# libtool to hard-code these into programs
17777
cygwin* | mingw* | pw32*)
17778
version_type=windows
17783
case $GCC,$host_os in
17784
yes,cygwin* | yes,mingw* | yes,pw32*)
17785
library_names_spec='$libname.dll.a'
17786
# DLL is installed to $(libdir)/../bin by postinstall_cmds
17787
postinstall_cmds='base_file=`basename \${file}`~
17788
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17789
dldir=$destdir/`dirname \$dlpath`~
17790
test -d \$dldir || mkdir -p \$dldir~
17791
$install_prog $dir/$dlname \$dldir/$dlname~
17792
chmod a+x \$dldir/$dlname'
17793
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17794
dlpath=$dir/\$dldll~
17796
shlibpath_overrides_runpath=yes
17800
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
17801
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17802
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17805
# MinGW DLLs use traditional 'lib' prefix
17806
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17807
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17808
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17809
# It is most probably a Windows format PATH printed by
17810
# mingw gcc, but we are running on Cygwin. Gcc prints its search
17811
# path with ; separators, and with drive letters. We can handle the
17812
# drive letters (cygwin fileutils understands them), so leave them,
17813
# especially as we might pass files found there to a mingw objdump,
17814
# which wouldn't understand a cygwinified path. Ahh.
17815
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17817
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17821
# pw32 DLLs use 'pw' prefix rather than 'lib'
17822
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17828
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17831
dynamic_linker='Win32 ld.exe'
17832
# FIXME: first we should search . and the directory the executable is in
17836
darwin* | rhapsody*)
17837
dynamic_linker="$host_os dyld"
17838
version_type=darwin
17841
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17842
soname_spec='${libname}${release}${major}$shared_ext'
17843
shlibpath_overrides_runpath=yes
17844
shlibpath_var=DYLD_LIBRARY_PATH
17845
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17846
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17847
if test "$GCC" = yes; then
17848
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"`
17850
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17852
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17859
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17860
soname_spec='${libname}${release}${shared_ext}$major'
17861
shlibpath_var=LD_LIBRARY_PATH
17868
freebsd* | dragonfly*)
17869
# DragonFly does not have aout. When/if they implement a new
17870
# versioning mechanism, adjust this.
17871
if test -x /usr/bin/objformat; then
17872
objformat=`/usr/bin/objformat`
17875
freebsd[123]*) objformat=aout ;;
17876
*) objformat=elf ;;
17879
version_type=freebsd-$objformat
17880
case $version_type in
17882
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17887
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17891
shlibpath_var=LD_LIBRARY_PATH
17894
shlibpath_overrides_runpath=yes
17896
freebsd3.[01]* | freebsdelf3.[01]*)
17897
shlibpath_overrides_runpath=yes
17898
hardcode_into_libs=yes
17900
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17901
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17902
shlibpath_overrides_runpath=no
17903
hardcode_into_libs=yes
17905
freebsd*) # from 4.6 on
17906
shlibpath_overrides_runpath=yes
17907
hardcode_into_libs=yes
17916
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17917
soname_spec='${libname}${release}${shared_ext}$major'
17918
shlibpath_var=LD_LIBRARY_PATH
17919
hardcode_into_libs=yes
17922
hpux9* | hpux10* | hpux11*)
17923
# Give a soname corresponding to the major version so that dld.sl refuses to
17924
# link against other versions.
17931
hardcode_into_libs=yes
17932
dynamic_linker="$host_os dld.so"
17933
shlibpath_var=LD_LIBRARY_PATH
17934
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17935
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17936
soname_spec='${libname}${release}${shared_ext}$major'
17937
if test "X$HPUX_IA64_MODE" = X32; then
17938
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17940
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17942
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17946
hardcode_into_libs=yes
17947
dynamic_linker="$host_os dld.sl"
17948
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17949
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17950
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17951
soname_spec='${libname}${release}${shared_ext}$major'
17952
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17953
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17957
dynamic_linker="$host_os dld.sl"
17958
shlibpath_var=SHLIB_PATH
17959
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17960
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17961
soname_spec='${libname}${release}${shared_ext}$major'
17964
# HP-UX runs *really* slowly unless shared libraries are mode 555.
17965
postinstall_cmds='chmod 555 $lib'
17972
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17973
soname_spec='${libname}${release}${shared_ext}$major'
17974
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17975
shlibpath_var=LD_LIBRARY_PATH
17976
shlibpath_overrides_runpath=no
17977
hardcode_into_libs=yes
17980
irix5* | irix6* | nonstopux*)
17982
nonstopux*) version_type=nonstopux ;;
17984
if test "$lt_cv_prog_gnu_ld" = yes; then
17992
soname_spec='${libname}${release}${shared_ext}$major'
17993
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17995
irix5* | nonstopux*)
17996
libsuff= shlibsuff=
17999
case $LD in # libtool.m4 will add one of these switches to LD
18000
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18001
libsuff= shlibsuff= libmagic=32-bit;;
18002
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18003
libsuff=32 shlibsuff=N32 libmagic=N32;;
18004
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18005
libsuff=64 shlibsuff=64 libmagic=64-bit;;
18006
*) libsuff= shlibsuff= libmagic=never-match;;
18010
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18011
shlibpath_overrides_runpath=no
18012
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18013
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18014
hardcode_into_libs=yes
18017
# No shared lib support for Linux oldld, aout, or coff.
18018
linux*oldld* | linux*aout* | linux*coff*)
18022
# This must be Linux ELF.
18023
linux* | k*bsd*-gnu)
18027
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18028
soname_spec='${libname}${release}${shared_ext}$major'
18029
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18030
shlibpath_var=LD_LIBRARY_PATH
18031
shlibpath_overrides_runpath=no
18032
# This implies no fast_install, which is unacceptable.
18033
# Some rework will be needed to allow for fast_install
18034
# before this can be enabled.
18035
hardcode_into_libs=yes
18037
# Append ld.so.conf contents to the search path
18038
if test -f /etc/ld.so.conf; then
18039
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' ' '`
18040
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18043
# We used to test for /lib/ld.so.1 and disable shared libraries on
18044
# powerpc, because MkLinux only supported shared libraries with the
18045
# GNU dynamic linker. Since this was broken with cross compilers,
18046
# most powerpc-linux boxes support dynamic linking these days and
18047
# people can always --disable-shared, the test was removed, and we
18048
# assume the GNU/Linux dynamic linker is in use.
18049
dynamic_linker='GNU/Linux ld.so'
18056
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18057
soname_spec='${libname}${release}${shared_ext}$major'
18058
shlibpath_var=LD_LIBRARY_PATH
18059
shlibpath_overrides_runpath=no
18060
hardcode_into_libs=yes
18061
dynamic_linker='NetBSD ld.elf_so'
18068
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18069
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18070
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18071
dynamic_linker='NetBSD (a.out) ld.so'
18073
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18074
soname_spec='${libname}${release}${shared_ext}$major'
18075
dynamic_linker='NetBSD ld.elf_so'
18077
shlibpath_var=LD_LIBRARY_PATH
18078
shlibpath_overrides_runpath=yes
18079
hardcode_into_libs=yes
18084
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18085
shlibpath_var=LD_LIBRARY_PATH
18086
shlibpath_overrides_runpath=yes
18093
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18094
soname_spec='${libname}${release}${shared_ext}$major'
18095
shlibpath_var=LD_LIBRARY_PATH
18096
shlibpath_overrides_runpath=yes
18101
sys_lib_dlsearch_path_spec="/usr/lib"
18103
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18105
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18106
*) need_version=no ;;
18108
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18109
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18110
shlibpath_var=LD_LIBRARY_PATH
18111
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18113
openbsd2.[89] | openbsd2.[89].*)
18114
shlibpath_overrides_runpath=no
18117
shlibpath_overrides_runpath=yes
18121
shlibpath_overrides_runpath=yes
18126
libname_spec='$name'
18129
library_names_spec='$libname${shared_ext} $libname.a'
18130
dynamic_linker='OS/2 ld.exe'
18131
shlibpath_var=LIBPATH
18134
osf3* | osf4* | osf5*)
18138
soname_spec='${libname}${release}${shared_ext}$major'
18139
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18140
shlibpath_var=LD_LIBRARY_PATH
18141
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18142
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18149
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18150
soname_spec='${libname}${release}${shared_ext}$major'
18151
shlibpath_var=LD_LIBRARY_PATH
18152
shlibpath_overrides_runpath=yes
18153
hardcode_into_libs=yes
18154
# ldd complains unless libraries are executable
18155
postinstall_cmds='chmod +x $lib'
18160
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18161
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18162
shlibpath_var=LD_LIBRARY_PATH
18163
shlibpath_overrides_runpath=yes
18164
if test "$with_gnu_ld" = yes; then
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
case $host_vendor in
18177
shlibpath_overrides_runpath=no
18179
export_dynamic_flag_spec='${wl}-Blargedynsym'
18180
runpath_var=LD_RUN_PATH
18188
shlibpath_overrides_runpath=no
18189
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18195
if test -d /usr/nec ;then
18197
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18198
soname_spec='$libname${shared_ext}.$major'
18199
shlibpath_var=LD_LIBRARY_PATH
18203
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18204
version_type=freebsd-elf
18207
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18208
soname_spec='${libname}${release}${shared_ext}$major'
18209
shlibpath_var=LD_LIBRARY_PATH
18210
hardcode_into_libs=yes
18211
if test "$with_gnu_ld" = yes; then
18212
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18213
shlibpath_overrides_runpath=no
18215
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18216
shlibpath_overrides_runpath=yes
18219
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18223
sys_lib_dlsearch_path_spec='/usr/lib'
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
18237
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18238
echo "${ECHO_T}$dynamic_linker" >&6; }
18239
test "$dynamic_linker" = no && can_build_shared=no
18241
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18242
if test "$GCC" = yes; then
18243
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18246
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18247
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18248
hardcode_action_GCJ=
18249
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18250
test -n "$runpath_var_GCJ" || \
18251
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18253
# We can hardcode non-existant directories.
18254
if test "$hardcode_direct_GCJ" != no &&
18255
# If the only mechanism to avoid hardcoding is shlibpath_var, we
18256
# have to relink, otherwise we might link with an installed library
18257
# when we should be linking with a yet-to-be-installed one
18258
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18259
test "$hardcode_minus_L_GCJ" != no; then
18260
# Linking always hardcodes the temporary library directory.
18261
hardcode_action_GCJ=relink
18263
# We can link without hardcoding, and we can hardcode nonexisting dirs.
18264
hardcode_action_GCJ=immediate
18267
# We cannot hardcode anything, or else we can only hardcode existing
18269
hardcode_action_GCJ=unsupported
18271
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18272
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18274
if test "$hardcode_action_GCJ" = relink; then
18275
# Fast installation is not supported
18276
enable_fast_install=no
18277
elif test "$shlibpath_overrides_runpath" = yes ||
18278
test "$enable_shared" = no; then
18279
# Fast installation is not necessary
18280
enable_fast_install=needless
18284
# The else clause should only fire when bootstrapping the
18285
# libtool distribution, otherwise you forgot to ship ltmain.sh
18286
# with your package, and you will get complaints that there are
18287
# no rules to generate ltmain.sh.
18288
if test -f "$ltmain"; then
18289
# See if we are running on zsh, and set the options which allow our commands through
18290
# without removal of \ escapes.
18291
if test -n "${ZSH_VERSION+set}" ; then
18292
setopt NO_GLOB_SUBST
18294
# Now quote all the things that may contain metacharacters while being
18295
# careful not to overquote the AC_SUBSTed values. We take copies of the
18296
# variables and quote the copies for generation of the libtool script.
18297
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18299
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18300
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18301
deplibs_check_method reload_flag reload_cmds need_locks \
18302
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18303
lt_cv_sys_global_symbol_to_c_name_address \
18304
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18305
old_postinstall_cmds old_postuninstall_cmds \
18309
lt_prog_compiler_wl_GCJ \
18310
lt_prog_compiler_pic_GCJ \
18311
lt_prog_compiler_static_GCJ \
18312
lt_prog_compiler_no_builtin_flag_GCJ \
18313
export_dynamic_flag_spec_GCJ \
18314
thread_safe_flag_spec_GCJ \
18315
whole_archive_flag_spec_GCJ \
18316
enable_shared_with_static_runtimes_GCJ \
18317
old_archive_cmds_GCJ \
18318
old_archive_from_new_cmds_GCJ \
18319
predep_objects_GCJ \
18320
postdep_objects_GCJ \
18323
compiler_lib_search_path_GCJ \
18325
archive_expsym_cmds_GCJ \
18326
postinstall_cmds_GCJ \
18327
postuninstall_cmds_GCJ \
18328
old_archive_from_expsyms_cmds_GCJ \
18329
allow_undefined_flag_GCJ \
18330
no_undefined_flag_GCJ \
18331
export_symbols_cmds_GCJ \
18332
hardcode_libdir_flag_spec_GCJ \
18333
hardcode_libdir_flag_spec_ld_GCJ \
18334
hardcode_libdir_separator_GCJ \
18335
hardcode_automatic_GCJ \
18337
module_expsym_cmds_GCJ \
18338
lt_cv_prog_compiler_c_o_GCJ \
18339
exclude_expsyms_GCJ \
18340
include_expsyms_GCJ; do
18343
old_archive_cmds_GCJ | \
18344
old_archive_from_new_cmds_GCJ | \
18345
archive_cmds_GCJ | \
18346
archive_expsym_cmds_GCJ | \
18347
module_cmds_GCJ | \
18348
module_expsym_cmds_GCJ | \
18349
old_archive_from_expsyms_cmds_GCJ | \
18350
export_symbols_cmds_GCJ | \
18351
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18352
postinstall_cmds | postuninstall_cmds | \
18353
old_postinstall_cmds | old_postuninstall_cmds | \
18354
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18355
# Double-quote double-evaled strings.
18356
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18359
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18365
*'\$0 --fallback-echo"')
18366
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18372
cat <<__EOF__ >> "$cfgfile"
18373
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18375
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18377
# Shell to use when invoking shell scripts.
18380
# Whether or not to build shared libraries.
18381
build_libtool_libs=$enable_shared
18383
# Whether or not to build static libraries.
18384
build_old_libs=$enable_static
18386
# Whether or not to add -lc for building shared libraries.
18387
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18389
# Whether or not to disallow shared libs when runtime libs are static
18390
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18392
# Whether or not to optimize for fast installation.
18393
fast_install=$enable_fast_install
18396
host_alias=$host_alias
18400
# The build system.
18401
build_alias=$build_alias
18405
# An echo program that does not interpret backslashes.
18410
AR_FLAGS=$lt_AR_FLAGS
18415
# LTCC compiler flags.
18416
LTCFLAGS=$lt_LTCFLAGS
18418
# A language-specific compiler.
18419
CC=$lt_compiler_GCJ
18421
# Is the compiler the GNU C compiler?
18427
# The linker used to build libraries.
18430
# Whether we need hard or soft links.
18433
# A BSD-compatible nm program.
18436
# A symbol stripping program
18439
# Used to examine libraries when file_magic_cmd begins "file"
18440
MAGIC_CMD=$MAGIC_CMD
18442
# Used on cygwin: DLL creation program.
18445
# Used on cygwin: object dumper.
18448
# Used on cygwin: assembler.
18451
# The name of the directory that contains temporary libtool files.
18454
# How to create reloadable object files.
18455
reload_flag=$lt_reload_flag
18456
reload_cmds=$lt_reload_cmds
18458
# How to pass a linker flag through the compiler.
18459
wl=$lt_lt_prog_compiler_wl_GCJ
18461
# Object file suffix (normally "o").
18462
objext="$ac_objext"
18464
# Old archive suffix (normally "a").
18467
# Shared library suffix (normally ".so").
18468
shrext_cmds='$shrext_cmds'
18470
# Executable file suffix (normally "").
18473
# Additional compiler flags for building library objects.
18474
pic_flag=$lt_lt_prog_compiler_pic_GCJ
18477
# What is the maximum length of a command?
18478
max_cmd_len=$lt_cv_sys_max_cmd_len
18480
# Does compiler simultaneously support -c and -o options?
18481
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18483
# Must we lock files when doing compilation?
18484
need_locks=$lt_need_locks
18486
# Do we need the lib prefix for modules?
18487
need_lib_prefix=$need_lib_prefix
18489
# Do we need a version for libraries?
18490
need_version=$need_version
18492
# Whether dlopen is supported.
18493
dlopen_support=$enable_dlopen
18495
# Whether dlopen of programs is supported.
18496
dlopen_self=$enable_dlopen_self
18498
# Whether dlopen of statically linked programs is supported.
18499
dlopen_self_static=$enable_dlopen_self_static
18501
# Compiler flag to prevent dynamic linking.
18502
link_static_flag=$lt_lt_prog_compiler_static_GCJ
18504
# Compiler flag to turn off builtin functions.
18505
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18507
# Compiler flag to allow reflexive dlopens.
18508
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18510
# Compiler flag to generate shared objects directly from archives.
18511
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18513
# Compiler flag to generate thread-safe objects.
18514
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18516
# Library versioning type.
18517
version_type=$version_type
18519
# Format of library name prefix.
18520
libname_spec=$lt_libname_spec
18522
# List of archive names. First name is the real one, the rest are links.
18523
# The last name is the one that the linker finds with -lNAME.
18524
library_names_spec=$lt_library_names_spec
18526
# The coded name of the library, if different from the real name.
18527
soname_spec=$lt_soname_spec
18529
# Commands used to build and install an old-style archive.
18531
old_archive_cmds=$lt_old_archive_cmds_GCJ
18532
old_postinstall_cmds=$lt_old_postinstall_cmds
18533
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18535
# Create an old-style archive from a shared archive.
18536
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18538
# Create a temporary old-style archive to link instead of a shared archive.
18539
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18541
# Commands used to build and install a shared archive.
18542
archive_cmds=$lt_archive_cmds_GCJ
18543
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18544
postinstall_cmds=$lt_postinstall_cmds
18545
postuninstall_cmds=$lt_postuninstall_cmds
18547
# Commands used to build a loadable module (assumed same as above if empty)
18548
module_cmds=$lt_module_cmds_GCJ
18549
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18551
# Commands to strip libraries.
18552
old_striplib=$lt_old_striplib
18553
striplib=$lt_striplib
18555
# Dependencies to place before the objects being linked to create a
18557
predep_objects=$lt_predep_objects_GCJ
18559
# Dependencies to place after the objects being linked to create a
18561
postdep_objects=$lt_postdep_objects_GCJ
18563
# Dependencies to place before the objects being linked to create a
18565
predeps=$lt_predeps_GCJ
18567
# Dependencies to place after the objects being linked to create a
18569
postdeps=$lt_postdeps_GCJ
18571
# The library search path used internally by the compiler when linking
18572
# a shared library.
18573
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18575
# Method to check whether dependent libraries are shared objects.
18576
deplibs_check_method=$lt_deplibs_check_method
18578
# Command to use when deplibs_check_method == file_magic.
18579
file_magic_cmd=$lt_file_magic_cmd
18581
# Flag that allows shared libraries with undefined symbols to be built.
18582
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18584
# Flag that forces no undefined symbols.
18585
no_undefined_flag=$lt_no_undefined_flag_GCJ
18587
# Commands used to finish a libtool library installation in a directory.
18588
finish_cmds=$lt_finish_cmds
18590
# Same as above, but a single script fragment to be evaled but not shown.
18591
finish_eval=$lt_finish_eval
18593
# Take the output of nm and produce a listing of raw symbols and C names.
18594
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18596
# Transform the output of nm in a proper C declaration
18597
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18599
# Transform the output of nm in a C name address pair
18600
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18602
# This is the shared library runtime path variable.
18603
runpath_var=$runpath_var
18605
# This is the shared library path variable.
18606
shlibpath_var=$shlibpath_var
18608
# Is shlibpath searched before the hard-coded library search path?
18609
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18611
# How to hardcode a shared library path into an executable.
18612
hardcode_action=$hardcode_action_GCJ
18614
# Whether we should hardcode library paths into libraries.
18615
hardcode_into_libs=$hardcode_into_libs
18617
# Flag to hardcode \$libdir into a binary during linking.
18618
# This must work even if \$libdir does not exist.
18619
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18621
# If ld is used when linking, flag to hardcode \$libdir into
18622
# a binary during linking. This must work even if \$libdir does
18624
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18626
# Whether we need a single -rpath flag with a separated argument.
18627
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18629
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18630
# resulting binary.
18631
hardcode_direct=$hardcode_direct_GCJ
18633
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18634
# resulting binary.
18635
hardcode_minus_L=$hardcode_minus_L_GCJ
18637
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18638
# the resulting binary.
18639
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18641
# Set to yes if building a shared library automatically hardcodes DIR into the library
18642
# and all subsequent libraries and executables linked against it.
18643
hardcode_automatic=$hardcode_automatic_GCJ
18645
# Variables whose values should be saved in libtool wrapper scripts and
18646
# restored at relink time.
18647
variables_saved_for_relink="$variables_saved_for_relink"
18649
# Whether libtool must link a program against all its dependency libraries.
18650
link_all_deplibs=$link_all_deplibs_GCJ
18652
# Compile-time system search path for libraries
18653
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18655
# Run-time system search path for libraries
18656
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18658
# Fix the shell variable \$srcfile for the compiler.
18659
fix_srcfile_path="$fix_srcfile_path_GCJ"
18661
# Set to yes if exported symbols are required.
18662
always_export_symbols=$always_export_symbols_GCJ
18664
# The commands to list exported symbols.
18665
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18667
# The commands to extract the exported symbol list from a shared archive.
18668
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18670
# Symbols that should not be listed in the preloaded symbols.
18671
exclude_expsyms=$lt_exclude_expsyms_GCJ
18673
# Symbols that must always be exported.
18674
include_expsyms=$lt_include_expsyms_GCJ
18676
# ### END LIBTOOL TAG CONFIG: $tagname
18682
# If there is no Makefile yet, we rely on a make rule to execute
18683
# `config.status --recheck' to rerun these tests and create the
18684
# libtool script then.
18685
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18686
if test -f "$ltmain_in"; then
18687
test -f Makefile && make "$ltmain"
18693
ac_cpp='$CPP $CPPFLAGS'
18694
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18695
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18696
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18708
# Source file extension for RC test sources.
18711
# Object file extension for compiled RC test sources.
18715
# Code to be used in simple compile tests
18716
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18718
# Code to be used in simple link tests
18719
lt_simple_link_test_code="$lt_simple_compile_test_code"
18721
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18723
# If no C compiler was specified, use CC.
18726
# If no C compiler flags were specified, use CFLAGS.
18727
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18729
# Allow CC to be a program name with arguments.
18733
# save warnings/boilerplate of simple test code
18734
ac_outfile=conftest.$ac_objext
18735
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18736
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18737
_lt_compiler_boilerplate=`cat conftest.err`
18740
ac_outfile=conftest.$ac_objext
18741
printf "$lt_simple_link_test_code" >conftest.$ac_ext
18742
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18743
_lt_linker_boilerplate=`cat conftest.err`
18747
# Allow CC to be a program name with arguments.
18752
for cc_temp in $compiler""; do
18754
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18755
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18760
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18762
lt_cv_prog_compiler_c_o_RC=yes
18764
# The else clause should only fire when bootstrapping the
18765
# libtool distribution, otherwise you forgot to ship ltmain.sh
18766
# with your package, and you will get complaints that there are
18767
# no rules to generate ltmain.sh.
18768
if test -f "$ltmain"; then
18769
# See if we are running on zsh, and set the options which allow our commands through
18770
# without removal of \ escapes.
18771
if test -n "${ZSH_VERSION+set}" ; then
18772
setopt NO_GLOB_SUBST
18774
# Now quote all the things that may contain metacharacters while being
18775
# careful not to overquote the AC_SUBSTed values. We take copies of the
18776
# variables and quote the copies for generation of the libtool script.
18777
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18779
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18780
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18781
deplibs_check_method reload_flag reload_cmds need_locks \
18782
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18783
lt_cv_sys_global_symbol_to_c_name_address \
18784
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18785
old_postinstall_cmds old_postuninstall_cmds \
18789
lt_prog_compiler_wl_RC \
18790
lt_prog_compiler_pic_RC \
18791
lt_prog_compiler_static_RC \
18792
lt_prog_compiler_no_builtin_flag_RC \
18793
export_dynamic_flag_spec_RC \
18794
thread_safe_flag_spec_RC \
18795
whole_archive_flag_spec_RC \
18796
enable_shared_with_static_runtimes_RC \
18797
old_archive_cmds_RC \
18798
old_archive_from_new_cmds_RC \
18799
predep_objects_RC \
18800
postdep_objects_RC \
18803
compiler_lib_search_path_RC \
18805
archive_expsym_cmds_RC \
18806
postinstall_cmds_RC \
18807
postuninstall_cmds_RC \
18808
old_archive_from_expsyms_cmds_RC \
18809
allow_undefined_flag_RC \
18810
no_undefined_flag_RC \
18811
export_symbols_cmds_RC \
18812
hardcode_libdir_flag_spec_RC \
18813
hardcode_libdir_flag_spec_ld_RC \
18814
hardcode_libdir_separator_RC \
18815
hardcode_automatic_RC \
18817
module_expsym_cmds_RC \
18818
lt_cv_prog_compiler_c_o_RC \
18819
exclude_expsyms_RC \
18820
include_expsyms_RC; do
18823
old_archive_cmds_RC | \
18824
old_archive_from_new_cmds_RC | \
18825
archive_cmds_RC | \
18826
archive_expsym_cmds_RC | \
18828
module_expsym_cmds_RC | \
18829
old_archive_from_expsyms_cmds_RC | \
18830
export_symbols_cmds_RC | \
18831
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18832
postinstall_cmds | postuninstall_cmds | \
18833
old_postinstall_cmds | old_postuninstall_cmds | \
18834
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18835
# Double-quote double-evaled strings.
18836
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18839
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18845
*'\$0 --fallback-echo"')
18846
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18852
cat <<__EOF__ >> "$cfgfile"
18853
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18855
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18857
# Shell to use when invoking shell scripts.
18860
# Whether or not to build shared libraries.
18861
build_libtool_libs=$enable_shared
18863
# Whether or not to build static libraries.
18864
build_old_libs=$enable_static
18866
# Whether or not to add -lc for building shared libraries.
18867
build_libtool_need_lc=$archive_cmds_need_lc_RC
18869
# Whether or not to disallow shared libs when runtime libs are static
18870
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18872
# Whether or not to optimize for fast installation.
18873
fast_install=$enable_fast_install
18876
host_alias=$host_alias
18880
# The build system.
18881
build_alias=$build_alias
18885
# An echo program that does not interpret backslashes.
18890
AR_FLAGS=$lt_AR_FLAGS
18895
# LTCC compiler flags.
18896
LTCFLAGS=$lt_LTCFLAGS
18898
# A language-specific compiler.
18901
# Is the compiler the GNU C compiler?
18907
# The linker used to build libraries.
18910
# Whether we need hard or soft links.
18913
# A BSD-compatible nm program.
18916
# A symbol stripping program
18919
# Used to examine libraries when file_magic_cmd begins "file"
18920
MAGIC_CMD=$MAGIC_CMD
18922
# Used on cygwin: DLL creation program.
18925
# Used on cygwin: object dumper.
18928
# Used on cygwin: assembler.
18931
# The name of the directory that contains temporary libtool files.
18934
# How to create reloadable object files.
18935
reload_flag=$lt_reload_flag
18936
reload_cmds=$lt_reload_cmds
18938
# How to pass a linker flag through the compiler.
18939
wl=$lt_lt_prog_compiler_wl_RC
18941
# Object file suffix (normally "o").
18942
objext="$ac_objext"
18944
# Old archive suffix (normally "a").
18947
# Shared library suffix (normally ".so").
18948
shrext_cmds='$shrext_cmds'
18950
# Executable file suffix (normally "").
18953
# Additional compiler flags for building library objects.
18954
pic_flag=$lt_lt_prog_compiler_pic_RC
18957
# What is the maximum length of a command?
18958
max_cmd_len=$lt_cv_sys_max_cmd_len
18960
# Does compiler simultaneously support -c and -o options?
18961
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18963
# Must we lock files when doing compilation?
18964
need_locks=$lt_need_locks
18966
# Do we need the lib prefix for modules?
18967
need_lib_prefix=$need_lib_prefix
18969
# Do we need a version for libraries?
18970
need_version=$need_version
18972
# Whether dlopen is supported.
18973
dlopen_support=$enable_dlopen
18975
# Whether dlopen of programs is supported.
18976
dlopen_self=$enable_dlopen_self
18978
# Whether dlopen of statically linked programs is supported.
18979
dlopen_self_static=$enable_dlopen_self_static
18981
# Compiler flag to prevent dynamic linking.
18982
link_static_flag=$lt_lt_prog_compiler_static_RC
18984
# Compiler flag to turn off builtin functions.
18985
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18987
# Compiler flag to allow reflexive dlopens.
18988
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18990
# Compiler flag to generate shared objects directly from archives.
18991
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18993
# Compiler flag to generate thread-safe objects.
18994
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18996
# Library versioning type.
18997
version_type=$version_type
18999
# Format of library name prefix.
19000
libname_spec=$lt_libname_spec
19002
# List of archive names. First name is the real one, the rest are links.
19003
# The last name is the one that the linker finds with -lNAME.
19004
library_names_spec=$lt_library_names_spec
19006
# The coded name of the library, if different from the real name.
19007
soname_spec=$lt_soname_spec
19009
# Commands used to build and install an old-style archive.
19011
old_archive_cmds=$lt_old_archive_cmds_RC
19012
old_postinstall_cmds=$lt_old_postinstall_cmds
19013
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19015
# Create an old-style archive from a shared archive.
19016
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19018
# Create a temporary old-style archive to link instead of a shared archive.
19019
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19021
# Commands used to build and install a shared archive.
19022
archive_cmds=$lt_archive_cmds_RC
19023
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19024
postinstall_cmds=$lt_postinstall_cmds
19025
postuninstall_cmds=$lt_postuninstall_cmds
19027
# Commands used to build a loadable module (assumed same as above if empty)
19028
module_cmds=$lt_module_cmds_RC
19029
module_expsym_cmds=$lt_module_expsym_cmds_RC
19031
# Commands to strip libraries.
19032
old_striplib=$lt_old_striplib
19033
striplib=$lt_striplib
19035
# Dependencies to place before the objects being linked to create a
19037
predep_objects=$lt_predep_objects_RC
19039
# Dependencies to place after the objects being linked to create a
19041
postdep_objects=$lt_postdep_objects_RC
19043
# Dependencies to place before the objects being linked to create a
19045
predeps=$lt_predeps_RC
19047
# Dependencies to place after the objects being linked to create a
19049
postdeps=$lt_postdeps_RC
19051
# The library search path used internally by the compiler when linking
19052
# a shared library.
19053
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19055
# Method to check whether dependent libraries are shared objects.
19056
deplibs_check_method=$lt_deplibs_check_method
19058
# Command to use when deplibs_check_method == file_magic.
19059
file_magic_cmd=$lt_file_magic_cmd
19061
# Flag that allows shared libraries with undefined symbols to be built.
19062
allow_undefined_flag=$lt_allow_undefined_flag_RC
19064
# Flag that forces no undefined symbols.
19065
no_undefined_flag=$lt_no_undefined_flag_RC
19067
# Commands used to finish a libtool library installation in a directory.
19068
finish_cmds=$lt_finish_cmds
19070
# Same as above, but a single script fragment to be evaled but not shown.
19071
finish_eval=$lt_finish_eval
19073
# Take the output of nm and produce a listing of raw symbols and C names.
19074
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19076
# Transform the output of nm in a proper C declaration
19077
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19079
# Transform the output of nm in a C name address pair
19080
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19082
# This is the shared library runtime path variable.
19083
runpath_var=$runpath_var
19085
# This is the shared library path variable.
19086
shlibpath_var=$shlibpath_var
19088
# Is shlibpath searched before the hard-coded library search path?
19089
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19091
# How to hardcode a shared library path into an executable.
19092
hardcode_action=$hardcode_action_RC
19094
# Whether we should hardcode library paths into libraries.
19095
hardcode_into_libs=$hardcode_into_libs
19097
# Flag to hardcode \$libdir into a binary during linking.
19098
# This must work even if \$libdir does not exist.
19099
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19101
# If ld is used when linking, flag to hardcode \$libdir into
19102
# a binary during linking. This must work even if \$libdir does
19104
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19106
# Whether we need a single -rpath flag with a separated argument.
19107
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19109
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19110
# resulting binary.
19111
hardcode_direct=$hardcode_direct_RC
19113
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19114
# resulting binary.
19115
hardcode_minus_L=$hardcode_minus_L_RC
19117
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19118
# the resulting binary.
19119
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19121
# Set to yes if building a shared library automatically hardcodes DIR into the library
19122
# and all subsequent libraries and executables linked against it.
19123
hardcode_automatic=$hardcode_automatic_RC
19125
# Variables whose values should be saved in libtool wrapper scripts and
19126
# restored at relink time.
19127
variables_saved_for_relink="$variables_saved_for_relink"
19129
# Whether libtool must link a program against all its dependency libraries.
19130
link_all_deplibs=$link_all_deplibs_RC
19132
# Compile-time system search path for libraries
19133
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19135
# Run-time system search path for libraries
19136
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19138
# Fix the shell variable \$srcfile for the compiler.
19139
fix_srcfile_path="$fix_srcfile_path_RC"
19141
# Set to yes if exported symbols are required.
19142
always_export_symbols=$always_export_symbols_RC
19144
# The commands to list exported symbols.
19145
export_symbols_cmds=$lt_export_symbols_cmds_RC
19147
# The commands to extract the exported symbol list from a shared archive.
19148
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19150
# Symbols that should not be listed in the preloaded symbols.
19151
exclude_expsyms=$lt_exclude_expsyms_RC
19153
# Symbols that must always be exported.
19154
include_expsyms=$lt_include_expsyms_RC
19156
# ### END LIBTOOL TAG CONFIG: $tagname
19162
# If there is no Makefile yet, we rely on a make rule to execute
19163
# `config.status --recheck' to rerun these tests and create the
19164
# libtool script then.
19165
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19166
if test -f "$ltmain_in"; then
19167
test -f Makefile && make "$ltmain"
19173
ac_cpp='$CPP $CPPFLAGS'
19174
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19175
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19176
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19183
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19184
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19185
{ (exit 1); exit 1; }; }
19189
# Append the new tag name to the list of available tags.
19190
if test -n "$tagname" ; then
19191
available_tags="$available_tags $tagname"
19197
# Now substitute the updated list of available tags.
19198
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19199
mv "${ofile}T" "$ofile"
19203
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19204
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19205
{ (exit 1); exit 1; }; }
19211
# This can be used to rebuild libtool when needed
19212
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19214
# Always use our own libtool.
19215
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19217
# Prevent multiple expansion